@minimalstuff/ui 0.0.14 → 0.0.15
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/index.d.ts +21 -28
- package/dist/index.es.js +362 -319
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -1
package/dist/index.es.js
CHANGED
|
@@ -1,41 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { ThemeProvider as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import Oe from "@emotion/styled";
|
|
2
|
+
import Pe, { createContext as gr, useState as mr, useEffect as yr } from "react";
|
|
3
|
+
import { ThemeProvider as hr } from "@emotion/react";
|
|
4
|
+
import _r from "hex-rgb";
|
|
5
|
+
import je from "tinycolor2";
|
|
6
|
+
const Wr = Oe.button(
|
|
7
|
+
({ theme: i, danger: c = !1, secondary: p = !1 }) => {
|
|
8
|
+
const d = c ? i.colors.red.default : i.colors.blue.default, T = c ? i.colors.red.dark : i.colors.blue.dark, w = p ? d : i.colors.white, _ = p ? "transparent" : d;
|
|
8
9
|
return {
|
|
9
10
|
cursor: "pointer",
|
|
10
11
|
width: "100%",
|
|
11
12
|
textTransform: "uppercase",
|
|
12
|
-
fontSize:
|
|
13
|
-
color:
|
|
13
|
+
fontSize: i.fontSizes.m,
|
|
14
|
+
color: w,
|
|
14
15
|
background: _,
|
|
15
16
|
padding: "0.75em",
|
|
16
17
|
border: `1px solid ${d}`,
|
|
17
|
-
borderRadius:
|
|
18
|
-
transition:
|
|
18
|
+
borderRadius: i.borders.radius.m,
|
|
19
|
+
transition: i.transitions.delay.fast,
|
|
19
20
|
"&:disabled": {
|
|
20
21
|
cursor: "not-allowed",
|
|
21
22
|
opacity: "0.5"
|
|
22
23
|
},
|
|
23
24
|
"&:not(:disabled):hover": {
|
|
24
|
-
background:
|
|
25
|
+
background: p ? i.colors.secondary : T,
|
|
26
|
+
borderColor: p ? i.colors.secondary : T
|
|
25
27
|
}
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
|
-
),
|
|
30
|
+
), Yr = Oe.p(({ lines: i = 1 }) => i > 1 ? {
|
|
29
31
|
overflow: "hidden",
|
|
30
32
|
display: "-webkit-box",
|
|
31
|
-
WebkitLineClamp:
|
|
33
|
+
WebkitLineClamp: i,
|
|
32
34
|
WebkitBoxOrient: "vertical"
|
|
33
35
|
} : {
|
|
34
36
|
textOverflow: "ellipsis",
|
|
35
37
|
whiteSpace: "nowrap",
|
|
36
38
|
overflow: "hidden"
|
|
37
39
|
});
|
|
38
|
-
var
|
|
40
|
+
var ee = { exports: {} }, W = {};
|
|
39
41
|
/**
|
|
40
42
|
* @license React
|
|
41
43
|
* react-jsx-runtime.production.min.js
|
|
@@ -45,21 +47,21 @@ var Z = { exports: {} }, I = {};
|
|
|
45
47
|
* This source code is licensed under the MIT license found in the
|
|
46
48
|
* LICENSE file in the root directory of this source tree.
|
|
47
49
|
*/
|
|
48
|
-
var
|
|
49
|
-
function
|
|
50
|
-
if (
|
|
51
|
-
|
|
52
|
-
var
|
|
53
|
-
function _(
|
|
54
|
-
var
|
|
55
|
-
|
|
56
|
-
for (
|
|
57
|
-
if (
|
|
58
|
-
return { $$typeof:
|
|
50
|
+
var Se;
|
|
51
|
+
function Er() {
|
|
52
|
+
if (Se) return W;
|
|
53
|
+
Se = 1;
|
|
54
|
+
var i = Pe, c = Symbol.for("react.element"), p = Symbol.for("react.fragment"), d = Object.prototype.hasOwnProperty, T = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, w = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
55
|
+
function _(S, b, P) {
|
|
56
|
+
var y, x = {}, k = null, L = null;
|
|
57
|
+
P !== void 0 && (k = "" + P), b.key !== void 0 && (k = "" + b.key), b.ref !== void 0 && (L = b.ref);
|
|
58
|
+
for (y in b) d.call(b, y) && !w.hasOwnProperty(y) && (x[y] = b[y]);
|
|
59
|
+
if (S && S.defaultProps) for (y in b = S.defaultProps, b) x[y] === void 0 && (x[y] = b[y]);
|
|
60
|
+
return { $$typeof: c, type: S, key: k, ref: L, props: x, _owner: T.current };
|
|
59
61
|
}
|
|
60
|
-
return
|
|
62
|
+
return W.Fragment = p, W.jsx = _, W.jsxs = _, W;
|
|
61
63
|
}
|
|
62
|
-
var
|
|
64
|
+
var Y = {};
|
|
63
65
|
/**
|
|
64
66
|
* @license React
|
|
65
67
|
* react-jsx-runtime.development.js
|
|
@@ -69,91 +71,91 @@ var W = {};
|
|
|
69
71
|
* This source code is licensed under the MIT license found in the
|
|
70
72
|
* LICENSE file in the root directory of this source tree.
|
|
71
73
|
*/
|
|
72
|
-
var
|
|
73
|
-
function
|
|
74
|
-
return
|
|
75
|
-
var
|
|
76
|
-
function
|
|
74
|
+
var ke;
|
|
75
|
+
function Rr() {
|
|
76
|
+
return ke || (ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
77
|
+
var i = Pe, c = Symbol.for("react.element"), p = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), T = Symbol.for("react.strict_mode"), w = Symbol.for("react.profiler"), _ = Symbol.for("react.provider"), S = Symbol.for("react.context"), b = Symbol.for("react.forward_ref"), P = Symbol.for("react.suspense"), y = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), k = Symbol.for("react.lazy"), L = Symbol.for("react.offscreen"), re = Symbol.iterator, Fe = "@@iterator";
|
|
78
|
+
function Ae(e) {
|
|
77
79
|
if (e === null || typeof e != "object")
|
|
78
80
|
return null;
|
|
79
|
-
var r =
|
|
81
|
+
var r = re && e[re] || e[Fe];
|
|
80
82
|
return typeof r == "function" ? r : null;
|
|
81
83
|
}
|
|
82
|
-
var
|
|
83
|
-
function
|
|
84
|
+
var j = i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
85
|
+
function v(e) {
|
|
84
86
|
{
|
|
85
87
|
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
|
|
86
88
|
t[n - 1] = arguments[n];
|
|
87
|
-
|
|
89
|
+
$e("error", e, t);
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
|
-
function
|
|
92
|
+
function $e(e, r, t) {
|
|
91
93
|
{
|
|
92
|
-
var n =
|
|
93
|
-
|
|
94
|
-
var
|
|
94
|
+
var n = j.ReactDebugCurrentFrame, s = n.getStackAddendum();
|
|
95
|
+
s !== "" && (r += "%s", t = t.concat([s]));
|
|
96
|
+
var u = t.map(function(o) {
|
|
95
97
|
return String(o);
|
|
96
98
|
});
|
|
97
|
-
|
|
99
|
+
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
98
100
|
}
|
|
99
101
|
}
|
|
100
|
-
var
|
|
101
|
-
|
|
102
|
-
function
|
|
103
|
-
return !!(typeof e == "string" || typeof e == "function" || e === d || e ===
|
|
102
|
+
var Ie = !1, We = !1, Ye = !1, Le = !1, Ve = !1, te;
|
|
103
|
+
te = Symbol.for("react.module.reference");
|
|
104
|
+
function Me(e) {
|
|
105
|
+
return !!(typeof e == "string" || typeof e == "function" || e === d || e === w || Ve || e === T || e === P || e === y || Le || e === L || Ie || We || Ye || typeof e == "object" && e !== null && (e.$$typeof === k || e.$$typeof === x || e.$$typeof === _ || e.$$typeof === S || e.$$typeof === b || // This needs to include all possible module reference object
|
|
104
106
|
// types supported by any Flight configuration anywhere since
|
|
105
107
|
// we don't know which Flight build this will end up being used
|
|
106
108
|
// with.
|
|
107
|
-
e.$$typeof ===
|
|
109
|
+
e.$$typeof === te || e.getModuleId !== void 0));
|
|
108
110
|
}
|
|
109
|
-
function
|
|
111
|
+
function Ue(e, r, t) {
|
|
110
112
|
var n = e.displayName;
|
|
111
113
|
if (n)
|
|
112
114
|
return n;
|
|
113
|
-
var
|
|
114
|
-
return
|
|
115
|
+
var s = r.displayName || r.name || "";
|
|
116
|
+
return s !== "" ? t + "(" + s + ")" : t;
|
|
115
117
|
}
|
|
116
|
-
function
|
|
118
|
+
function ne(e) {
|
|
117
119
|
return e.displayName || "Context";
|
|
118
120
|
}
|
|
119
121
|
function E(e) {
|
|
120
122
|
if (e == null)
|
|
121
123
|
return null;
|
|
122
|
-
if (typeof e.tag == "number" &&
|
|
124
|
+
if (typeof e.tag == "number" && v("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
123
125
|
return e.displayName || e.name || null;
|
|
124
126
|
if (typeof e == "string")
|
|
125
127
|
return e;
|
|
126
128
|
switch (e) {
|
|
127
129
|
case d:
|
|
128
130
|
return "Fragment";
|
|
129
|
-
case
|
|
131
|
+
case p:
|
|
130
132
|
return "Portal";
|
|
131
|
-
case
|
|
133
|
+
case w:
|
|
132
134
|
return "Profiler";
|
|
133
135
|
case T:
|
|
134
136
|
return "StrictMode";
|
|
135
|
-
case
|
|
137
|
+
case P:
|
|
136
138
|
return "Suspense";
|
|
137
|
-
case
|
|
139
|
+
case y:
|
|
138
140
|
return "SuspenseList";
|
|
139
141
|
}
|
|
140
142
|
if (typeof e == "object")
|
|
141
143
|
switch (e.$$typeof) {
|
|
142
|
-
case
|
|
144
|
+
case S:
|
|
143
145
|
var r = e;
|
|
144
|
-
return
|
|
146
|
+
return ne(r) + ".Consumer";
|
|
145
147
|
case _:
|
|
146
148
|
var t = e;
|
|
147
|
-
return
|
|
148
|
-
case
|
|
149
|
-
return
|
|
150
|
-
case
|
|
149
|
+
return ne(t._context) + ".Provider";
|
|
150
|
+
case b:
|
|
151
|
+
return Ue(e, e.render, "ForwardRef");
|
|
152
|
+
case x:
|
|
151
153
|
var n = e.displayName || null;
|
|
152
154
|
return n !== null ? n : E(e.type) || "Memo";
|
|
153
|
-
case
|
|
154
|
-
var
|
|
155
|
+
case k: {
|
|
156
|
+
var s = e, u = s._payload, o = s._init;
|
|
155
157
|
try {
|
|
156
|
-
return E(o(
|
|
158
|
+
return E(o(u));
|
|
157
159
|
} catch {
|
|
158
160
|
return null;
|
|
159
161
|
}
|
|
@@ -161,18 +163,18 @@ function wr() {
|
|
|
161
163
|
}
|
|
162
164
|
return null;
|
|
163
165
|
}
|
|
164
|
-
var
|
|
165
|
-
function
|
|
166
|
+
var C = Object.assign, A = 0, ae, oe, ie, se, ue, le, fe;
|
|
167
|
+
function ce() {
|
|
166
168
|
}
|
|
167
|
-
|
|
168
|
-
function
|
|
169
|
+
ce.__reactDisabledLog = !0;
|
|
170
|
+
function Ne() {
|
|
169
171
|
{
|
|
170
|
-
if (
|
|
171
|
-
|
|
172
|
+
if (A === 0) {
|
|
173
|
+
ae = console.log, oe = console.info, ie = console.warn, se = console.error, ue = console.group, le = console.groupCollapsed, fe = console.groupEnd;
|
|
172
174
|
var e = {
|
|
173
175
|
configurable: !0,
|
|
174
176
|
enumerable: !0,
|
|
175
|
-
value:
|
|
177
|
+
value: ce,
|
|
176
178
|
writable: !0
|
|
177
179
|
};
|
|
178
180
|
Object.defineProperties(console, {
|
|
@@ -185,65 +187,65 @@ function wr() {
|
|
|
185
187
|
groupEnd: e
|
|
186
188
|
});
|
|
187
189
|
}
|
|
188
|
-
|
|
190
|
+
A++;
|
|
189
191
|
}
|
|
190
192
|
}
|
|
191
|
-
function
|
|
193
|
+
function Be() {
|
|
192
194
|
{
|
|
193
|
-
if (
|
|
195
|
+
if (A--, A === 0) {
|
|
194
196
|
var e = {
|
|
195
197
|
configurable: !0,
|
|
196
198
|
enumerable: !0,
|
|
197
199
|
writable: !0
|
|
198
200
|
};
|
|
199
201
|
Object.defineProperties(console, {
|
|
200
|
-
log:
|
|
201
|
-
value: te
|
|
202
|
-
}),
|
|
203
|
-
info: k({}, e, {
|
|
204
|
-
value: ne
|
|
205
|
-
}),
|
|
206
|
-
warn: k({}, e, {
|
|
202
|
+
log: C({}, e, {
|
|
207
203
|
value: ae
|
|
208
204
|
}),
|
|
209
|
-
|
|
205
|
+
info: C({}, e, {
|
|
210
206
|
value: oe
|
|
211
207
|
}),
|
|
212
|
-
|
|
208
|
+
warn: C({}, e, {
|
|
213
209
|
value: ie
|
|
214
210
|
}),
|
|
215
|
-
|
|
211
|
+
error: C({}, e, {
|
|
216
212
|
value: se
|
|
217
213
|
}),
|
|
218
|
-
|
|
214
|
+
group: C({}, e, {
|
|
219
215
|
value: ue
|
|
216
|
+
}),
|
|
217
|
+
groupCollapsed: C({}, e, {
|
|
218
|
+
value: le
|
|
219
|
+
}),
|
|
220
|
+
groupEnd: C({}, e, {
|
|
221
|
+
value: fe
|
|
220
222
|
})
|
|
221
223
|
});
|
|
222
224
|
}
|
|
223
|
-
|
|
225
|
+
A < 0 && v("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
224
226
|
}
|
|
225
227
|
}
|
|
226
|
-
var
|
|
227
|
-
function
|
|
228
|
+
var J = j.ReactCurrentDispatcher, K;
|
|
229
|
+
function V(e, r, t) {
|
|
228
230
|
{
|
|
229
|
-
if (
|
|
231
|
+
if (K === void 0)
|
|
230
232
|
try {
|
|
231
233
|
throw Error();
|
|
232
|
-
} catch (
|
|
233
|
-
var n =
|
|
234
|
-
|
|
234
|
+
} catch (s) {
|
|
235
|
+
var n = s.stack.trim().match(/\n( *(at )?)/);
|
|
236
|
+
K = n && n[1] || "";
|
|
235
237
|
}
|
|
236
238
|
return `
|
|
237
|
-
` +
|
|
239
|
+
` + K + e;
|
|
238
240
|
}
|
|
239
241
|
}
|
|
240
|
-
var
|
|
242
|
+
var q = !1, M;
|
|
241
243
|
{
|
|
242
|
-
var
|
|
243
|
-
M = new
|
|
244
|
+
var Je = typeof WeakMap == "function" ? WeakMap : Map;
|
|
245
|
+
M = new Je();
|
|
244
246
|
}
|
|
245
|
-
function
|
|
246
|
-
if (!e ||
|
|
247
|
+
function de(e, r) {
|
|
248
|
+
if (!e || q)
|
|
247
249
|
return "";
|
|
248
250
|
{
|
|
249
251
|
var t = M.get(e);
|
|
@@ -251,11 +253,11 @@ function wr() {
|
|
|
251
253
|
return t;
|
|
252
254
|
}
|
|
253
255
|
var n;
|
|
254
|
-
|
|
255
|
-
var
|
|
256
|
+
q = !0;
|
|
257
|
+
var s = Error.prepareStackTrace;
|
|
256
258
|
Error.prepareStackTrace = void 0;
|
|
257
|
-
var
|
|
258
|
-
|
|
259
|
+
var u;
|
|
260
|
+
u = J.current, J.current = null, Ne();
|
|
259
261
|
try {
|
|
260
262
|
if (r) {
|
|
261
263
|
var o = function() {
|
|
@@ -268,171 +270,171 @@ function wr() {
|
|
|
268
270
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
269
271
|
try {
|
|
270
272
|
Reflect.construct(o, []);
|
|
271
|
-
} catch (
|
|
272
|
-
n =
|
|
273
|
+
} catch (m) {
|
|
274
|
+
n = m;
|
|
273
275
|
}
|
|
274
276
|
Reflect.construct(e, [], o);
|
|
275
277
|
} else {
|
|
276
278
|
try {
|
|
277
279
|
o.call();
|
|
278
|
-
} catch (
|
|
279
|
-
n =
|
|
280
|
+
} catch (m) {
|
|
281
|
+
n = m;
|
|
280
282
|
}
|
|
281
283
|
e.call(o.prototype);
|
|
282
284
|
}
|
|
283
285
|
} else {
|
|
284
286
|
try {
|
|
285
287
|
throw Error();
|
|
286
|
-
} catch (
|
|
287
|
-
n =
|
|
288
|
+
} catch (m) {
|
|
289
|
+
n = m;
|
|
288
290
|
}
|
|
289
291
|
e();
|
|
290
292
|
}
|
|
291
|
-
} catch (
|
|
292
|
-
if (
|
|
293
|
-
for (var a =
|
|
294
|
-
`),
|
|
295
|
-
`), l = a.length - 1, f =
|
|
293
|
+
} catch (m) {
|
|
294
|
+
if (m && n && typeof m.stack == "string") {
|
|
295
|
+
for (var a = m.stack.split(`
|
|
296
|
+
`), g = n.stack.split(`
|
|
297
|
+
`), l = a.length - 1, f = g.length - 1; l >= 1 && f >= 0 && a[l] !== g[f]; )
|
|
296
298
|
f--;
|
|
297
299
|
for (; l >= 1 && f >= 0; l--, f--)
|
|
298
|
-
if (a[l] !==
|
|
300
|
+
if (a[l] !== g[f]) {
|
|
299
301
|
if (l !== 1 || f !== 1)
|
|
300
302
|
do
|
|
301
|
-
if (l--, f--, f < 0 || a[l] !==
|
|
302
|
-
var
|
|
303
|
+
if (l--, f--, f < 0 || a[l] !== g[f]) {
|
|
304
|
+
var h = `
|
|
303
305
|
` + a[l].replace(" at new ", " at ");
|
|
304
|
-
return e.displayName &&
|
|
306
|
+
return e.displayName && h.includes("<anonymous>") && (h = h.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, h), h;
|
|
305
307
|
}
|
|
306
308
|
while (l >= 1 && f >= 0);
|
|
307
309
|
break;
|
|
308
310
|
}
|
|
309
311
|
}
|
|
310
312
|
} finally {
|
|
311
|
-
|
|
313
|
+
q = !1, J.current = u, Be(), Error.prepareStackTrace = s;
|
|
312
314
|
}
|
|
313
|
-
var
|
|
314
|
-
return typeof e == "function" && M.set(e,
|
|
315
|
+
var F = e ? e.displayName || e.name : "", O = F ? V(F) : "";
|
|
316
|
+
return typeof e == "function" && M.set(e, O), O;
|
|
315
317
|
}
|
|
316
|
-
function
|
|
317
|
-
return
|
|
318
|
+
function Ke(e, r, t) {
|
|
319
|
+
return de(e, !1);
|
|
318
320
|
}
|
|
319
|
-
function
|
|
321
|
+
function qe(e) {
|
|
320
322
|
var r = e.prototype;
|
|
321
323
|
return !!(r && r.isReactComponent);
|
|
322
324
|
}
|
|
323
|
-
function
|
|
325
|
+
function U(e, r, t) {
|
|
324
326
|
if (e == null)
|
|
325
327
|
return "";
|
|
326
328
|
if (typeof e == "function")
|
|
327
|
-
return
|
|
329
|
+
return de(e, qe(e));
|
|
328
330
|
if (typeof e == "string")
|
|
329
|
-
return
|
|
331
|
+
return V(e);
|
|
330
332
|
switch (e) {
|
|
331
|
-
case
|
|
332
|
-
return
|
|
333
|
-
case
|
|
334
|
-
return
|
|
333
|
+
case P:
|
|
334
|
+
return V("Suspense");
|
|
335
|
+
case y:
|
|
336
|
+
return V("SuspenseList");
|
|
335
337
|
}
|
|
336
338
|
if (typeof e == "object")
|
|
337
339
|
switch (e.$$typeof) {
|
|
338
|
-
case
|
|
339
|
-
return
|
|
340
|
-
case
|
|
341
|
-
return
|
|
342
|
-
case
|
|
343
|
-
var n = e,
|
|
340
|
+
case b:
|
|
341
|
+
return Ke(e.render);
|
|
342
|
+
case x:
|
|
343
|
+
return U(e.type, r, t);
|
|
344
|
+
case k: {
|
|
345
|
+
var n = e, s = n._payload, u = n._init;
|
|
344
346
|
try {
|
|
345
|
-
return
|
|
347
|
+
return U(u(s), r, t);
|
|
346
348
|
} catch {
|
|
347
349
|
}
|
|
348
350
|
}
|
|
349
351
|
}
|
|
350
352
|
return "";
|
|
351
353
|
}
|
|
352
|
-
var
|
|
353
|
-
function
|
|
354
|
+
var $ = Object.prototype.hasOwnProperty, ve = {}, pe = j.ReactDebugCurrentFrame;
|
|
355
|
+
function N(e) {
|
|
354
356
|
if (e) {
|
|
355
|
-
var r = e._owner, t =
|
|
356
|
-
|
|
357
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
358
|
+
pe.setExtraStackFrame(t);
|
|
357
359
|
} else
|
|
358
|
-
|
|
360
|
+
pe.setExtraStackFrame(null);
|
|
359
361
|
}
|
|
360
|
-
function
|
|
362
|
+
function ze(e, r, t, n, s) {
|
|
361
363
|
{
|
|
362
|
-
var
|
|
364
|
+
var u = Function.call.bind($);
|
|
363
365
|
for (var o in e)
|
|
364
|
-
if (
|
|
366
|
+
if (u(e, o)) {
|
|
365
367
|
var a = void 0;
|
|
366
368
|
try {
|
|
367
369
|
if (typeof e[o] != "function") {
|
|
368
|
-
var
|
|
369
|
-
throw
|
|
370
|
+
var g = 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`.");
|
|
371
|
+
throw g.name = "Invariant Violation", g;
|
|
370
372
|
}
|
|
371
373
|
a = e[o](r, o, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
372
374
|
} catch (l) {
|
|
373
375
|
a = l;
|
|
374
376
|
}
|
|
375
|
-
a && !(a instanceof Error) && (
|
|
377
|
+
a && !(a instanceof Error) && (N(s), v("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, o, typeof a), N(null)), a instanceof Error && !(a.message in ve) && (ve[a.message] = !0, N(s), v("Failed %s type: %s", t, a.message), N(null));
|
|
376
378
|
}
|
|
377
379
|
}
|
|
378
380
|
}
|
|
379
|
-
var
|
|
380
|
-
function
|
|
381
|
-
return
|
|
381
|
+
var Ge = Array.isArray;
|
|
382
|
+
function z(e) {
|
|
383
|
+
return Ge(e);
|
|
382
384
|
}
|
|
383
|
-
function
|
|
385
|
+
function He(e) {
|
|
384
386
|
{
|
|
385
387
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
386
388
|
return t;
|
|
387
389
|
}
|
|
388
390
|
}
|
|
389
|
-
function
|
|
391
|
+
function Xe(e) {
|
|
390
392
|
try {
|
|
391
|
-
return
|
|
393
|
+
return be(e), !1;
|
|
392
394
|
} catch {
|
|
393
395
|
return !0;
|
|
394
396
|
}
|
|
395
397
|
}
|
|
396
|
-
function
|
|
398
|
+
function be(e) {
|
|
397
399
|
return "" + e;
|
|
398
400
|
}
|
|
399
|
-
function
|
|
400
|
-
if (
|
|
401
|
-
return
|
|
401
|
+
function ge(e) {
|
|
402
|
+
if (Xe(e))
|
|
403
|
+
return v("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", He(e)), be(e);
|
|
402
404
|
}
|
|
403
|
-
var
|
|
405
|
+
var I = j.ReactCurrentOwner, Ze = {
|
|
404
406
|
key: !0,
|
|
405
407
|
ref: !0,
|
|
406
408
|
__self: !0,
|
|
407
409
|
__source: !0
|
|
408
|
-
},
|
|
409
|
-
|
|
410
|
-
function
|
|
411
|
-
if (
|
|
410
|
+
}, me, ye, G;
|
|
411
|
+
G = {};
|
|
412
|
+
function Qe(e) {
|
|
413
|
+
if ($.call(e, "ref")) {
|
|
412
414
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
413
415
|
if (r && r.isReactWarning)
|
|
414
416
|
return !1;
|
|
415
417
|
}
|
|
416
418
|
return e.ref !== void 0;
|
|
417
419
|
}
|
|
418
|
-
function
|
|
419
|
-
if (
|
|
420
|
+
function er(e) {
|
|
421
|
+
if ($.call(e, "key")) {
|
|
420
422
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
421
423
|
if (r && r.isReactWarning)
|
|
422
424
|
return !1;
|
|
423
425
|
}
|
|
424
426
|
return e.key !== void 0;
|
|
425
427
|
}
|
|
426
|
-
function
|
|
427
|
-
if (typeof e.ref == "string" &&
|
|
428
|
-
var t = E(
|
|
429
|
-
|
|
428
|
+
function rr(e, r) {
|
|
429
|
+
if (typeof e.ref == "string" && I.current && r && I.current.stateNode !== r) {
|
|
430
|
+
var t = E(I.current.type);
|
|
431
|
+
G[t] || (v('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', E(I.current.type), e.ref), G[t] = !0);
|
|
430
432
|
}
|
|
431
433
|
}
|
|
432
|
-
function
|
|
434
|
+
function tr(e, r) {
|
|
433
435
|
{
|
|
434
436
|
var t = function() {
|
|
435
|
-
|
|
437
|
+
me || (me = !0, v("%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));
|
|
436
438
|
};
|
|
437
439
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
438
440
|
get: t,
|
|
@@ -440,10 +442,10 @@ function wr() {
|
|
|
440
442
|
});
|
|
441
443
|
}
|
|
442
444
|
}
|
|
443
|
-
function
|
|
445
|
+
function nr(e, r) {
|
|
444
446
|
{
|
|
445
447
|
var t = function() {
|
|
446
|
-
|
|
448
|
+
ye || (ye = !0, v("%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));
|
|
447
449
|
};
|
|
448
450
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
449
451
|
get: t,
|
|
@@ -451,17 +453,17 @@ function wr() {
|
|
|
451
453
|
});
|
|
452
454
|
}
|
|
453
455
|
}
|
|
454
|
-
var
|
|
456
|
+
var ar = function(e, r, t, n, s, u, o) {
|
|
455
457
|
var a = {
|
|
456
458
|
// This tag allows us to uniquely identify this as a React Element
|
|
457
|
-
$$typeof:
|
|
459
|
+
$$typeof: c,
|
|
458
460
|
// Built-in properties that belong on the element
|
|
459
461
|
type: e,
|
|
460
462
|
key: r,
|
|
461
463
|
ref: t,
|
|
462
464
|
props: o,
|
|
463
465
|
// Record the component responsible for creating this element.
|
|
464
|
-
_owner:
|
|
466
|
+
_owner: u
|
|
465
467
|
};
|
|
466
468
|
return a._store = {}, Object.defineProperty(a._store, "validated", {
|
|
467
469
|
configurable: !1,
|
|
@@ -477,44 +479,44 @@ function wr() {
|
|
|
477
479
|
configurable: !1,
|
|
478
480
|
enumerable: !1,
|
|
479
481
|
writable: !1,
|
|
480
|
-
value:
|
|
482
|
+
value: s
|
|
481
483
|
}), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
|
|
482
484
|
};
|
|
483
|
-
function
|
|
485
|
+
function or(e, r, t, n, s) {
|
|
484
486
|
{
|
|
485
|
-
var
|
|
486
|
-
t !== void 0 && (
|
|
487
|
-
for (
|
|
488
|
-
|
|
487
|
+
var u, o = {}, a = null, g = null;
|
|
488
|
+
t !== void 0 && (ge(t), a = "" + t), er(r) && (ge(r.key), a = "" + r.key), Qe(r) && (g = r.ref, rr(r, s));
|
|
489
|
+
for (u in r)
|
|
490
|
+
$.call(r, u) && !Ze.hasOwnProperty(u) && (o[u] = r[u]);
|
|
489
491
|
if (e && e.defaultProps) {
|
|
490
492
|
var l = e.defaultProps;
|
|
491
|
-
for (
|
|
492
|
-
o[
|
|
493
|
+
for (u in l)
|
|
494
|
+
o[u] === void 0 && (o[u] = l[u]);
|
|
493
495
|
}
|
|
494
|
-
if (a ||
|
|
496
|
+
if (a || g) {
|
|
495
497
|
var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
496
|
-
a &&
|
|
498
|
+
a && tr(o, f), g && nr(o, f);
|
|
497
499
|
}
|
|
498
|
-
return
|
|
500
|
+
return ar(e, a, g, s, n, I.current, o);
|
|
499
501
|
}
|
|
500
502
|
}
|
|
501
|
-
var
|
|
502
|
-
function
|
|
503
|
+
var H = j.ReactCurrentOwner, he = j.ReactDebugCurrentFrame;
|
|
504
|
+
function D(e) {
|
|
503
505
|
if (e) {
|
|
504
|
-
var r = e._owner, t =
|
|
505
|
-
|
|
506
|
+
var r = e._owner, t = U(e.type, e._source, r ? r.type : null);
|
|
507
|
+
he.setExtraStackFrame(t);
|
|
506
508
|
} else
|
|
507
|
-
|
|
509
|
+
he.setExtraStackFrame(null);
|
|
508
510
|
}
|
|
509
|
-
var
|
|
510
|
-
|
|
511
|
-
function
|
|
512
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
511
|
+
var X;
|
|
512
|
+
X = !1;
|
|
513
|
+
function Z(e) {
|
|
514
|
+
return typeof e == "object" && e !== null && e.$$typeof === c;
|
|
513
515
|
}
|
|
514
|
-
function
|
|
516
|
+
function _e() {
|
|
515
517
|
{
|
|
516
|
-
if (
|
|
517
|
-
var e = E(
|
|
518
|
+
if (H.current) {
|
|
519
|
+
var e = E(H.current.type);
|
|
518
520
|
if (e)
|
|
519
521
|
return `
|
|
520
522
|
|
|
@@ -523,13 +525,13 @@ Check the render method of \`` + e + "`.";
|
|
|
523
525
|
return "";
|
|
524
526
|
}
|
|
525
527
|
}
|
|
526
|
-
function
|
|
528
|
+
function ir(e) {
|
|
527
529
|
return "";
|
|
528
530
|
}
|
|
529
|
-
var
|
|
530
|
-
function
|
|
531
|
+
var Ee = {};
|
|
532
|
+
function sr(e) {
|
|
531
533
|
{
|
|
532
|
-
var r =
|
|
534
|
+
var r = _e();
|
|
533
535
|
if (!r) {
|
|
534
536
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
535
537
|
t && (r = `
|
|
@@ -539,39 +541,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
539
541
|
return r;
|
|
540
542
|
}
|
|
541
543
|
}
|
|
542
|
-
function
|
|
544
|
+
function Re(e, r) {
|
|
543
545
|
{
|
|
544
546
|
if (!e._store || e._store.validated || e.key != null)
|
|
545
547
|
return;
|
|
546
548
|
e._store.validated = !0;
|
|
547
|
-
var t =
|
|
548
|
-
if (
|
|
549
|
+
var t = sr(r);
|
|
550
|
+
if (Ee[t])
|
|
549
551
|
return;
|
|
550
|
-
|
|
552
|
+
Ee[t] = !0;
|
|
551
553
|
var n = "";
|
|
552
|
-
e && e._owner && e._owner !==
|
|
554
|
+
e && e._owner && e._owner !== H.current && (n = " It was passed a child from " + E(e._owner.type) + "."), D(e), v('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), D(null);
|
|
553
555
|
}
|
|
554
556
|
}
|
|
555
|
-
function
|
|
557
|
+
function Te(e, r) {
|
|
556
558
|
{
|
|
557
559
|
if (typeof e != "object")
|
|
558
560
|
return;
|
|
559
|
-
if (
|
|
561
|
+
if (z(e))
|
|
560
562
|
for (var t = 0; t < e.length; t++) {
|
|
561
563
|
var n = e[t];
|
|
562
|
-
|
|
564
|
+
Z(n) && Re(n, r);
|
|
563
565
|
}
|
|
564
|
-
else if (
|
|
566
|
+
else if (Z(e))
|
|
565
567
|
e._store && (e._store.validated = !0);
|
|
566
568
|
else if (e) {
|
|
567
|
-
var
|
|
568
|
-
if (typeof
|
|
569
|
-
for (var
|
|
570
|
-
|
|
569
|
+
var s = Ae(e);
|
|
570
|
+
if (typeof s == "function" && s !== e.entries)
|
|
571
|
+
for (var u = s.call(e), o; !(o = u.next()).done; )
|
|
572
|
+
Z(o.value) && Re(o.value, r);
|
|
571
573
|
}
|
|
572
574
|
}
|
|
573
575
|
}
|
|
574
|
-
function
|
|
576
|
+
function ur(e) {
|
|
575
577
|
{
|
|
576
578
|
var r = e.type;
|
|
577
579
|
if (r == null || typeof r == "string")
|
|
@@ -579,93 +581,93 @@ Check the top-level render call using <` + t + ">.");
|
|
|
579
581
|
var t;
|
|
580
582
|
if (typeof r == "function")
|
|
581
583
|
t = r.propTypes;
|
|
582
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
584
|
+
else if (typeof r == "object" && (r.$$typeof === b || // Note: Memo only checks outer props here.
|
|
583
585
|
// Inner props are checked in the reconciler.
|
|
584
|
-
r.$$typeof ===
|
|
586
|
+
r.$$typeof === x))
|
|
585
587
|
t = r.propTypes;
|
|
586
588
|
else
|
|
587
589
|
return;
|
|
588
590
|
if (t) {
|
|
589
591
|
var n = E(r);
|
|
590
|
-
|
|
591
|
-
} else if (r.PropTypes !== void 0 && !
|
|
592
|
-
|
|
593
|
-
var
|
|
594
|
-
|
|
592
|
+
ze(t, e.props, "prop", n, e);
|
|
593
|
+
} else if (r.PropTypes !== void 0 && !X) {
|
|
594
|
+
X = !0;
|
|
595
|
+
var s = E(r);
|
|
596
|
+
v("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", s || "Unknown");
|
|
595
597
|
}
|
|
596
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
598
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && v("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
597
599
|
}
|
|
598
600
|
}
|
|
599
|
-
function
|
|
601
|
+
function lr(e) {
|
|
600
602
|
{
|
|
601
603
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
602
604
|
var n = r[t];
|
|
603
605
|
if (n !== "children" && n !== "key") {
|
|
604
|
-
|
|
606
|
+
D(e), v("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), D(null);
|
|
605
607
|
break;
|
|
606
608
|
}
|
|
607
609
|
}
|
|
608
|
-
e.ref !== null && (
|
|
610
|
+
e.ref !== null && (D(e), v("Invalid attribute `ref` supplied to `React.Fragment`."), D(null));
|
|
609
611
|
}
|
|
610
612
|
}
|
|
611
|
-
var
|
|
612
|
-
function
|
|
613
|
+
var xe = {};
|
|
614
|
+
function we(e, r, t, n, s, u) {
|
|
613
615
|
{
|
|
614
|
-
var o =
|
|
616
|
+
var o = Me(e);
|
|
615
617
|
if (!o) {
|
|
616
618
|
var a = "";
|
|
617
619
|
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
618
|
-
var
|
|
619
|
-
|
|
620
|
+
var g = ir();
|
|
621
|
+
g ? a += g : a += _e();
|
|
620
622
|
var l;
|
|
621
|
-
e === null ? l = "null" :
|
|
623
|
+
e === null ? l = "null" : z(e) ? l = "array" : e !== void 0 && e.$$typeof === c ? (l = "<" + (E(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l = typeof e, v("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l, a);
|
|
622
624
|
}
|
|
623
|
-
var f =
|
|
625
|
+
var f = or(e, r, t, s, u);
|
|
624
626
|
if (f == null)
|
|
625
627
|
return f;
|
|
626
628
|
if (o) {
|
|
627
|
-
var
|
|
628
|
-
if (
|
|
629
|
+
var h = r.children;
|
|
630
|
+
if (h !== void 0)
|
|
629
631
|
if (n)
|
|
630
|
-
if (
|
|
631
|
-
for (var
|
|
632
|
-
|
|
633
|
-
Object.freeze && Object.freeze(
|
|
632
|
+
if (z(h)) {
|
|
633
|
+
for (var F = 0; F < h.length; F++)
|
|
634
|
+
Te(h[F], e);
|
|
635
|
+
Object.freeze && Object.freeze(h);
|
|
634
636
|
} else
|
|
635
|
-
|
|
637
|
+
v("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
636
638
|
else
|
|
637
|
-
|
|
639
|
+
Te(h, e);
|
|
638
640
|
}
|
|
639
|
-
if (
|
|
640
|
-
var
|
|
641
|
-
return
|
|
642
|
-
}),
|
|
643
|
-
if (!
|
|
644
|
-
var
|
|
645
|
-
|
|
641
|
+
if ($.call(r, "key")) {
|
|
642
|
+
var O = E(e), m = Object.keys(r).filter(function(br) {
|
|
643
|
+
return br !== "key";
|
|
644
|
+
}), Q = m.length > 0 ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
645
|
+
if (!xe[O + Q]) {
|
|
646
|
+
var pr = m.length > 0 ? "{" + m.join(": ..., ") + ": ...}" : "{}";
|
|
647
|
+
v(`A props object containing a "key" prop is being spread into JSX:
|
|
646
648
|
let props = %s;
|
|
647
649
|
<%s {...props} />
|
|
648
650
|
React keys must be passed directly to JSX without using spread:
|
|
649
651
|
let props = %s;
|
|
650
|
-
<%s key={someKey} {...props} />`,
|
|
652
|
+
<%s key={someKey} {...props} />`, Q, O, pr, O), xe[O + Q] = !0;
|
|
651
653
|
}
|
|
652
654
|
}
|
|
653
|
-
return e === d ?
|
|
655
|
+
return e === d ? lr(f) : ur(f), f;
|
|
654
656
|
}
|
|
655
657
|
}
|
|
656
|
-
function
|
|
657
|
-
return
|
|
658
|
+
function fr(e, r, t) {
|
|
659
|
+
return we(e, r, t, !0);
|
|
658
660
|
}
|
|
659
|
-
function
|
|
660
|
-
return
|
|
661
|
+
function cr(e, r, t) {
|
|
662
|
+
return we(e, r, t, !1);
|
|
661
663
|
}
|
|
662
|
-
var
|
|
663
|
-
|
|
664
|
-
}()),
|
|
664
|
+
var dr = cr, vr = fr;
|
|
665
|
+
Y.Fragment = d, Y.jsx = dr, Y.jsxs = vr;
|
|
666
|
+
}()), Y;
|
|
665
667
|
}
|
|
666
|
-
process.env.NODE_ENV === "production" ?
|
|
667
|
-
var
|
|
668
|
-
const
|
|
668
|
+
process.env.NODE_ENV === "production" ? ee.exports = Er() : ee.exports = Rr();
|
|
669
|
+
var Ce = ee.exports;
|
|
670
|
+
const Tr = "__minimstuff_dark_theme__", xr = {
|
|
669
671
|
radius: {
|
|
670
672
|
xs: "1px",
|
|
671
673
|
s: "2px",
|
|
@@ -673,106 +675,147 @@ const Sr = "__minimstuff_dark_theme__", kr = {
|
|
|
673
675
|
l: "4px",
|
|
674
676
|
xl: "5px"
|
|
675
677
|
}
|
|
676
|
-
},
|
|
678
|
+
}, wr = {
|
|
677
679
|
xs: "10px",
|
|
678
680
|
s: "12px",
|
|
679
681
|
m: "14px",
|
|
680
682
|
l: "16px",
|
|
681
683
|
xl: "18px"
|
|
682
|
-
},
|
|
684
|
+
}, Sr = {
|
|
683
685
|
mobile: "768px",
|
|
684
686
|
tablet: "1024px",
|
|
685
687
|
small_desktop: "1280px",
|
|
686
688
|
medium_desktop: "1440px",
|
|
687
689
|
large_desktop: "1920px",
|
|
688
690
|
xlarge_desktop: "2560px"
|
|
689
|
-
},
|
|
691
|
+
}, kr = {
|
|
690
692
|
delay: {
|
|
691
693
|
fast: "0.075s",
|
|
692
694
|
normal: "0.15s",
|
|
693
695
|
slow: "0.3s"
|
|
694
696
|
}
|
|
695
|
-
},
|
|
696
|
-
borders:
|
|
697
|
-
medias:
|
|
698
|
-
transitions:
|
|
699
|
-
fontSizes:
|
|
700
|
-
},
|
|
697
|
+
}, Cr = {
|
|
698
|
+
borders: xr,
|
|
699
|
+
medias: Sr,
|
|
700
|
+
transitions: kr,
|
|
701
|
+
fontSizes: wr
|
|
702
|
+
}, De = (i, c) => `rgba(${_r(i, { format: "array" }).slice(0, -1).join(",")},${c})`;
|
|
703
|
+
function R(i) {
|
|
704
|
+
const c = je(i.color);
|
|
705
|
+
if (!c.isValid())
|
|
706
|
+
throw new Error("Invalid color provided");
|
|
707
|
+
return {
|
|
708
|
+
lightest: B({
|
|
709
|
+
...i,
|
|
710
|
+
multiplicator: 2,
|
|
711
|
+
type: "lighten"
|
|
712
|
+
}),
|
|
713
|
+
light: B({
|
|
714
|
+
...i,
|
|
715
|
+
multiplicator: 1,
|
|
716
|
+
type: "lighten"
|
|
717
|
+
}),
|
|
718
|
+
default: c.toString(),
|
|
719
|
+
dark: B({
|
|
720
|
+
...i,
|
|
721
|
+
multiplicator: 1,
|
|
722
|
+
type: "darken"
|
|
723
|
+
}),
|
|
724
|
+
darkest: B({
|
|
725
|
+
...i,
|
|
726
|
+
multiplicator: 2,
|
|
727
|
+
type: "darken"
|
|
728
|
+
})
|
|
729
|
+
};
|
|
730
|
+
}
|
|
731
|
+
function B({
|
|
732
|
+
color: i,
|
|
733
|
+
fadeStep: c = 15,
|
|
734
|
+
multiplicator: p,
|
|
735
|
+
type: d
|
|
736
|
+
}) {
|
|
737
|
+
return je(i)[d](c * p).toString();
|
|
738
|
+
}
|
|
739
|
+
const Or = {
|
|
701
740
|
font: "#f0eef6",
|
|
702
741
|
background: "#222831",
|
|
703
|
-
primary: "#4fadfc",
|
|
704
742
|
secondary: "#323a47",
|
|
705
743
|
black: "#333333",
|
|
706
744
|
white: "#ffffff",
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
745
|
+
grey: R({
|
|
746
|
+
color: "#aaaaaa"
|
|
747
|
+
}),
|
|
748
|
+
blue: R({
|
|
749
|
+
color: "#4fadfc"
|
|
750
|
+
}),
|
|
751
|
+
green: R({
|
|
752
|
+
color: "#09b909"
|
|
753
|
+
}),
|
|
754
|
+
red: R({ color: "red" }),
|
|
755
|
+
yellow: R({ color: "#ffc107" }),
|
|
756
|
+
boxShadow: `0 0 1em 0 ${De("#111", 0.4)}`
|
|
757
|
+
}, Pr = {
|
|
719
758
|
font: "#333",
|
|
720
759
|
background: "#f0eef6",
|
|
721
|
-
primary: ke,
|
|
722
760
|
secondary: "#fff",
|
|
723
761
|
black: "#333",
|
|
724
762
|
white: "#ffffff",
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
},
|
|
763
|
+
grey: R({
|
|
764
|
+
color: "#777777"
|
|
765
|
+
}),
|
|
766
|
+
blue: R({
|
|
767
|
+
color: "#3f88c5"
|
|
768
|
+
}),
|
|
769
|
+
green: R({
|
|
770
|
+
color: "green"
|
|
771
|
+
}),
|
|
772
|
+
red: R({
|
|
773
|
+
color: "red"
|
|
774
|
+
}),
|
|
775
|
+
yellow: R({
|
|
776
|
+
color: "#ffc107"
|
|
777
|
+
}),
|
|
778
|
+
boxShadow: `0 0 1em 0 ${De("#aaa", 0.4)}`
|
|
779
|
+
}, jr = gr({
|
|
737
780
|
isDarkTheme: !0,
|
|
738
781
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
739
|
-
toggleDarkTheme: (
|
|
782
|
+
toggleDarkTheme: (i) => {
|
|
740
783
|
}
|
|
741
784
|
});
|
|
742
|
-
function
|
|
743
|
-
preferDarkTheme:
|
|
744
|
-
children:
|
|
745
|
-
onPreferenceChange:
|
|
785
|
+
function Lr({
|
|
786
|
+
preferDarkTheme: i = !0,
|
|
787
|
+
children: c,
|
|
788
|
+
onPreferenceChange: p
|
|
746
789
|
}) {
|
|
747
|
-
const [d, T] =
|
|
748
|
-
T(_),
|
|
790
|
+
const [d, T] = mr(i), w = (_) => {
|
|
791
|
+
T(_), p == null || p(_);
|
|
749
792
|
};
|
|
750
|
-
return
|
|
751
|
-
localStorage.setItem(
|
|
752
|
-
}, [d]), /* @__PURE__ */
|
|
753
|
-
|
|
793
|
+
return yr(() => {
|
|
794
|
+
localStorage.setItem(Tr, String(d));
|
|
795
|
+
}, [d]), /* @__PURE__ */ Ce.jsx(
|
|
796
|
+
hr,
|
|
754
797
|
{
|
|
755
798
|
theme: {
|
|
756
|
-
...
|
|
757
|
-
colors: d ?
|
|
799
|
+
...Cr,
|
|
800
|
+
colors: d ? Or : Pr
|
|
758
801
|
},
|
|
759
|
-
children: /* @__PURE__ */
|
|
760
|
-
|
|
802
|
+
children: /* @__PURE__ */ Ce.jsx(
|
|
803
|
+
jr.Provider,
|
|
761
804
|
{
|
|
762
805
|
value: {
|
|
763
806
|
isDarkTheme: d,
|
|
764
|
-
toggleDarkTheme:
|
|
807
|
+
toggleDarkTheme: w
|
|
765
808
|
},
|
|
766
|
-
children:
|
|
809
|
+
children: c
|
|
767
810
|
}
|
|
768
811
|
)
|
|
769
812
|
}
|
|
770
813
|
);
|
|
771
814
|
}
|
|
772
815
|
export {
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
816
|
+
Wr as Button,
|
|
817
|
+
Yr as TextEllipsis,
|
|
818
|
+
Lr as ThemeContextProvider,
|
|
819
|
+
jr as _ThemeContext
|
|
777
820
|
};
|
|
778
821
|
//# sourceMappingURL=index.es.js.map
|