@starasia/theme 1.0.0 → 1.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/default.json.d.ts +23 -27
- package/dist/index.es.js +198 -835
- package/dist/index.umd.js +21 -50
- package/dist/types/components/card.d.ts +1 -1
- package/dist/types/theme.d.ts +3 -6
- package/package.json +11 -11
package/dist/index.es.js
CHANGED
|
@@ -1,828 +1,195 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* This source code is licensed under the MIT license found in the
|
|
10
|
-
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/
|
|
12
|
-
var $r;
|
|
13
|
-
function Ra() {
|
|
14
|
-
if ($r)
|
|
15
|
-
return Y;
|
|
16
|
-
$r = 1;
|
|
17
|
-
var o = jr, t = Symbol.for("react.element"), i = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, c = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
18
|
-
function v(g, d, m) {
|
|
19
|
-
var x, _ = {}, S = null, C = null;
|
|
20
|
-
m !== void 0 && (S = "" + m), d.key !== void 0 && (S = "" + d.key), d.ref !== void 0 && (C = d.ref);
|
|
21
|
-
for (x in d)
|
|
22
|
-
s.call(d, x) && !l.hasOwnProperty(x) && (_[x] = d[x]);
|
|
23
|
-
if (g && g.defaultProps)
|
|
24
|
-
for (x in d = g.defaultProps, d)
|
|
25
|
-
_[x] === void 0 && (_[x] = d[x]);
|
|
26
|
-
return { $$typeof: t, type: g, key: S, ref: C, props: _, _owner: c.current };
|
|
27
|
-
}
|
|
28
|
-
return Y.Fragment = i, Y.jsx = v, Y.jsxs = v, Y;
|
|
29
|
-
}
|
|
30
|
-
var N = {};
|
|
31
|
-
/**
|
|
32
|
-
* @license React
|
|
33
|
-
* react-jsx-runtime.development.js
|
|
34
|
-
*
|
|
35
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
36
|
-
*
|
|
37
|
-
* This source code is licensed under the MIT license found in the
|
|
38
|
-
* LICENSE file in the root directory of this source tree.
|
|
39
|
-
*/
|
|
40
|
-
var Cr;
|
|
41
|
-
function _a() {
|
|
42
|
-
return Cr || (Cr = 1, process.env.NODE_ENV !== "production" && function() {
|
|
43
|
-
var o = jr, t = Symbol.for("react.element"), i = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), c = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), g = Symbol.for("react.context"), d = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), x = Symbol.for("react.suspense_list"), _ = Symbol.for("react.memo"), S = Symbol.for("react.lazy"), C = Symbol.for("react.offscreen"), D = Symbol.iterator, L = "@@iterator";
|
|
44
|
-
function Ir(r) {
|
|
45
|
-
if (r === null || typeof r != "object")
|
|
46
|
-
return null;
|
|
47
|
-
var a = D && r[D] || r[L];
|
|
48
|
-
return typeof a == "function" ? a : null;
|
|
49
|
-
}
|
|
50
|
-
var j = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
51
|
-
function h(r) {
|
|
52
|
-
{
|
|
53
|
-
for (var a = arguments.length, e = new Array(a > 1 ? a - 1 : 0), n = 1; n < a; n++)
|
|
54
|
-
e[n - 1] = arguments[n];
|
|
55
|
-
Wr("error", r, e);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
function Wr(r, a, e) {
|
|
59
|
-
{
|
|
60
|
-
var n = j.ReactDebugCurrentFrame, f = n.getStackAddendum();
|
|
61
|
-
f !== "" && (a += "%s", e = e.concat([f]));
|
|
62
|
-
var p = e.map(function(b) {
|
|
63
|
-
return String(b);
|
|
64
|
-
});
|
|
65
|
-
p.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, p);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
var Yr = !1, Nr = !1, Lr = !1, Mr = !1, Vr = !1, er;
|
|
69
|
-
er = Symbol.for("react.module.reference");
|
|
70
|
-
function Ur(r) {
|
|
71
|
-
return !!(typeof r == "string" || typeof r == "function" || r === s || r === l || Vr || r === c || r === m || r === x || Mr || r === C || Yr || Nr || Lr || typeof r == "object" && r !== null && (r.$$typeof === S || r.$$typeof === _ || r.$$typeof === v || r.$$typeof === g || r.$$typeof === d || // This needs to include all possible module reference object
|
|
72
|
-
// types supported by any Flight configuration anywhere since
|
|
73
|
-
// we don't know which Flight build this will end up being used
|
|
74
|
-
// with.
|
|
75
|
-
r.$$typeof === er || r.getModuleId !== void 0));
|
|
76
|
-
}
|
|
77
|
-
function Jr(r, a, e) {
|
|
78
|
-
var n = r.displayName;
|
|
79
|
-
if (n)
|
|
80
|
-
return n;
|
|
81
|
-
var f = a.displayName || a.name || "";
|
|
82
|
-
return f !== "" ? e + "(" + f + ")" : e;
|
|
83
|
-
}
|
|
84
|
-
function tr(r) {
|
|
85
|
-
return r.displayName || "Context";
|
|
86
|
-
}
|
|
87
|
-
function $(r) {
|
|
88
|
-
if (r == null)
|
|
89
|
-
return null;
|
|
90
|
-
if (typeof r.tag == "number" && h("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
91
|
-
return r.displayName || r.name || null;
|
|
92
|
-
if (typeof r == "string")
|
|
93
|
-
return r;
|
|
94
|
-
switch (r) {
|
|
95
|
-
case s:
|
|
96
|
-
return "Fragment";
|
|
97
|
-
case i:
|
|
98
|
-
return "Portal";
|
|
99
|
-
case l:
|
|
100
|
-
return "Profiler";
|
|
101
|
-
case c:
|
|
102
|
-
return "StrictMode";
|
|
103
|
-
case m:
|
|
104
|
-
return "Suspense";
|
|
105
|
-
case x:
|
|
106
|
-
return "SuspenseList";
|
|
107
|
-
}
|
|
108
|
-
if (typeof r == "object")
|
|
109
|
-
switch (r.$$typeof) {
|
|
110
|
-
case g:
|
|
111
|
-
var a = r;
|
|
112
|
-
return tr(a) + ".Consumer";
|
|
113
|
-
case v:
|
|
114
|
-
var e = r;
|
|
115
|
-
return tr(e._context) + ".Provider";
|
|
116
|
-
case d:
|
|
117
|
-
return Jr(r, r.render, "ForwardRef");
|
|
118
|
-
case _:
|
|
119
|
-
var n = r.displayName || null;
|
|
120
|
-
return n !== null ? n : $(r.type) || "Memo";
|
|
121
|
-
case S: {
|
|
122
|
-
var f = r, p = f._payload, b = f._init;
|
|
123
|
-
try {
|
|
124
|
-
return $(b(p));
|
|
125
|
-
} catch {
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
return null;
|
|
131
|
-
}
|
|
132
|
-
var O = Object.assign, A = 0, ir, sr, nr, cr, lr, ur, br;
|
|
133
|
-
function gr() {
|
|
134
|
-
}
|
|
135
|
-
gr.__reactDisabledLog = !0;
|
|
136
|
-
function Br() {
|
|
137
|
-
{
|
|
138
|
-
if (A === 0) {
|
|
139
|
-
ir = console.log, sr = console.info, nr = console.warn, cr = console.error, lr = console.group, ur = console.groupCollapsed, br = console.groupEnd;
|
|
140
|
-
var r = {
|
|
141
|
-
configurable: !0,
|
|
142
|
-
enumerable: !0,
|
|
143
|
-
value: gr,
|
|
144
|
-
writable: !0
|
|
145
|
-
};
|
|
146
|
-
Object.defineProperties(console, {
|
|
147
|
-
info: r,
|
|
148
|
-
log: r,
|
|
149
|
-
warn: r,
|
|
150
|
-
error: r,
|
|
151
|
-
group: r,
|
|
152
|
-
groupCollapsed: r,
|
|
153
|
-
groupEnd: r
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
A++;
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
function qr() {
|
|
160
|
-
{
|
|
161
|
-
if (A--, A === 0) {
|
|
162
|
-
var r = {
|
|
163
|
-
configurable: !0,
|
|
164
|
-
enumerable: !0,
|
|
165
|
-
writable: !0
|
|
166
|
-
};
|
|
167
|
-
Object.defineProperties(console, {
|
|
168
|
-
log: O({}, r, {
|
|
169
|
-
value: ir
|
|
170
|
-
}),
|
|
171
|
-
info: O({}, r, {
|
|
172
|
-
value: sr
|
|
173
|
-
}),
|
|
174
|
-
warn: O({}, r, {
|
|
175
|
-
value: nr
|
|
176
|
-
}),
|
|
177
|
-
error: O({}, r, {
|
|
178
|
-
value: cr
|
|
179
|
-
}),
|
|
180
|
-
group: O({}, r, {
|
|
181
|
-
value: lr
|
|
182
|
-
}),
|
|
183
|
-
groupCollapsed: O({}, r, {
|
|
184
|
-
value: ur
|
|
185
|
-
}),
|
|
186
|
-
groupEnd: O({}, r, {
|
|
187
|
-
value: br
|
|
188
|
-
})
|
|
189
|
-
});
|
|
190
|
-
}
|
|
191
|
-
A < 0 && h("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
var q = j.ReactCurrentDispatcher, K;
|
|
195
|
-
function M(r, a, e) {
|
|
196
|
-
{
|
|
197
|
-
if (K === void 0)
|
|
198
|
-
try {
|
|
199
|
-
throw Error();
|
|
200
|
-
} catch (f) {
|
|
201
|
-
var n = f.stack.trim().match(/\n( *(at )?)/);
|
|
202
|
-
K = n && n[1] || "";
|
|
203
|
-
}
|
|
204
|
-
return `
|
|
205
|
-
` + K + r;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
var z = !1, V;
|
|
209
|
-
{
|
|
210
|
-
var Kr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
211
|
-
V = new Kr();
|
|
212
|
-
}
|
|
213
|
-
function fr(r, a) {
|
|
214
|
-
if (!r || z)
|
|
215
|
-
return "";
|
|
216
|
-
{
|
|
217
|
-
var e = V.get(r);
|
|
218
|
-
if (e !== void 0)
|
|
219
|
-
return e;
|
|
220
|
-
}
|
|
221
|
-
var n;
|
|
222
|
-
z = !0;
|
|
223
|
-
var f = Error.prepareStackTrace;
|
|
224
|
-
Error.prepareStackTrace = void 0;
|
|
225
|
-
var p;
|
|
226
|
-
p = q.current, q.current = null, Br();
|
|
227
|
-
try {
|
|
228
|
-
if (a) {
|
|
229
|
-
var b = function() {
|
|
230
|
-
throw Error();
|
|
231
|
-
};
|
|
232
|
-
if (Object.defineProperty(b.prototype, "props", {
|
|
233
|
-
set: function() {
|
|
234
|
-
throw Error();
|
|
235
|
-
}
|
|
236
|
-
}), typeof Reflect == "object" && Reflect.construct) {
|
|
237
|
-
try {
|
|
238
|
-
Reflect.construct(b, []);
|
|
239
|
-
} catch (R) {
|
|
240
|
-
n = R;
|
|
241
|
-
}
|
|
242
|
-
Reflect.construct(r, [], b);
|
|
243
|
-
} else {
|
|
244
|
-
try {
|
|
245
|
-
b.call();
|
|
246
|
-
} catch (R) {
|
|
247
|
-
n = R;
|
|
248
|
-
}
|
|
249
|
-
r.call(b.prototype);
|
|
250
|
-
}
|
|
251
|
-
} else {
|
|
252
|
-
try {
|
|
253
|
-
throw Error();
|
|
254
|
-
} catch (R) {
|
|
255
|
-
n = R;
|
|
256
|
-
}
|
|
257
|
-
r();
|
|
258
|
-
}
|
|
259
|
-
} catch (R) {
|
|
260
|
-
if (R && n && typeof R.stack == "string") {
|
|
261
|
-
for (var u = R.stack.split(`
|
|
262
|
-
`), E = n.stack.split(`
|
|
263
|
-
`), w = u.length - 1, y = E.length - 1; w >= 1 && y >= 0 && u[w] !== E[y]; )
|
|
264
|
-
y--;
|
|
265
|
-
for (; w >= 1 && y >= 0; w--, y--)
|
|
266
|
-
if (u[w] !== E[y]) {
|
|
267
|
-
if (w !== 1 || y !== 1)
|
|
268
|
-
do
|
|
269
|
-
if (w--, y--, y < 0 || u[w] !== E[y]) {
|
|
270
|
-
var k = `
|
|
271
|
-
` + u[w].replace(" at new ", " at ");
|
|
272
|
-
return r.displayName && k.includes("<anonymous>") && (k = k.replace("<anonymous>", r.displayName)), typeof r == "function" && V.set(r, k), k;
|
|
273
|
-
}
|
|
274
|
-
while (w >= 1 && y >= 0);
|
|
275
|
-
break;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
} finally {
|
|
279
|
-
z = !1, q.current = p, qr(), Error.prepareStackTrace = f;
|
|
280
|
-
}
|
|
281
|
-
var F = r ? r.displayName || r.name : "", P = F ? M(F) : "";
|
|
282
|
-
return typeof r == "function" && V.set(r, P), P;
|
|
283
|
-
}
|
|
284
|
-
function zr(r, a, e) {
|
|
285
|
-
return fr(r, !1);
|
|
286
|
-
}
|
|
287
|
-
function Gr(r) {
|
|
288
|
-
var a = r.prototype;
|
|
289
|
-
return !!(a && a.isReactComponent);
|
|
290
|
-
}
|
|
291
|
-
function U(r, a, e) {
|
|
292
|
-
if (r == null)
|
|
293
|
-
return "";
|
|
294
|
-
if (typeof r == "function")
|
|
295
|
-
return fr(r, Gr(r));
|
|
296
|
-
if (typeof r == "string")
|
|
297
|
-
return M(r);
|
|
298
|
-
switch (r) {
|
|
299
|
-
case m:
|
|
300
|
-
return M("Suspense");
|
|
301
|
-
case x:
|
|
302
|
-
return M("SuspenseList");
|
|
303
|
-
}
|
|
304
|
-
if (typeof r == "object")
|
|
305
|
-
switch (r.$$typeof) {
|
|
306
|
-
case d:
|
|
307
|
-
return zr(r.render);
|
|
308
|
-
case _:
|
|
309
|
-
return U(r.type, a, e);
|
|
310
|
-
case S: {
|
|
311
|
-
var n = r, f = n._payload, p = n._init;
|
|
312
|
-
try {
|
|
313
|
-
return U(p(f), a, e);
|
|
314
|
-
} catch {
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
return "";
|
|
319
|
-
}
|
|
320
|
-
var I = Object.prototype.hasOwnProperty, vr = {}, dr = j.ReactDebugCurrentFrame;
|
|
321
|
-
function J(r) {
|
|
322
|
-
if (r) {
|
|
323
|
-
var a = r._owner, e = U(r.type, r._source, a ? a.type : null);
|
|
324
|
-
dr.setExtraStackFrame(e);
|
|
325
|
-
} else
|
|
326
|
-
dr.setExtraStackFrame(null);
|
|
327
|
-
}
|
|
328
|
-
function Hr(r, a, e, n, f) {
|
|
329
|
-
{
|
|
330
|
-
var p = Function.call.bind(I);
|
|
331
|
-
for (var b in r)
|
|
332
|
-
if (p(r, b)) {
|
|
333
|
-
var u = void 0;
|
|
334
|
-
try {
|
|
335
|
-
if (typeof r[b] != "function") {
|
|
336
|
-
var E = Error((n || "React class") + ": " + e + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
337
|
-
throw E.name = "Invariant Violation", E;
|
|
338
|
-
}
|
|
339
|
-
u = r[b](a, b, n, e, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
340
|
-
} catch (w) {
|
|
341
|
-
u = w;
|
|
342
|
-
}
|
|
343
|
-
u && !(u instanceof Error) && (J(f), h("%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", e, b, typeof u), J(null)), u instanceof Error && !(u.message in vr) && (vr[u.message] = !0, J(f), h("Failed %s type: %s", e, u.message), J(null));
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
var Xr = Array.isArray;
|
|
348
|
-
function G(r) {
|
|
349
|
-
return Xr(r);
|
|
350
|
-
}
|
|
351
|
-
function Zr(r) {
|
|
352
|
-
{
|
|
353
|
-
var a = typeof Symbol == "function" && Symbol.toStringTag, e = a && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
354
|
-
return e;
|
|
355
|
-
}
|
|
356
|
-
}
|
|
357
|
-
function Qr(r) {
|
|
358
|
-
try {
|
|
359
|
-
return pr(r), !1;
|
|
360
|
-
} catch {
|
|
361
|
-
return !0;
|
|
362
|
-
}
|
|
363
|
-
}
|
|
364
|
-
function pr(r) {
|
|
365
|
-
return "" + r;
|
|
366
|
-
}
|
|
367
|
-
function wr(r) {
|
|
368
|
-
if (Qr(r))
|
|
369
|
-
return h("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Zr(r)), pr(r);
|
|
370
|
-
}
|
|
371
|
-
var W = j.ReactCurrentOwner, ra = {
|
|
372
|
-
key: !0,
|
|
373
|
-
ref: !0,
|
|
374
|
-
__self: !0,
|
|
375
|
-
__source: !0
|
|
376
|
-
}, yr, xr, H;
|
|
377
|
-
H = {};
|
|
378
|
-
function aa(r) {
|
|
379
|
-
if (I.call(r, "ref")) {
|
|
380
|
-
var a = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
381
|
-
if (a && a.isReactWarning)
|
|
382
|
-
return !1;
|
|
383
|
-
}
|
|
384
|
-
return r.ref !== void 0;
|
|
385
|
-
}
|
|
386
|
-
function oa(r) {
|
|
387
|
-
if (I.call(r, "key")) {
|
|
388
|
-
var a = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
389
|
-
if (a && a.isReactWarning)
|
|
390
|
-
return !1;
|
|
391
|
-
}
|
|
392
|
-
return r.key !== void 0;
|
|
393
|
-
}
|
|
394
|
-
function ea(r, a) {
|
|
395
|
-
if (typeof r.ref == "string" && W.current && a && W.current.stateNode !== a) {
|
|
396
|
-
var e = $(W.current.type);
|
|
397
|
-
H[e] || (h('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', $(W.current.type), r.ref), H[e] = !0);
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
function ta(r, a) {
|
|
401
|
-
{
|
|
402
|
-
var e = function() {
|
|
403
|
-
yr || (yr = !0, h("%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)", a));
|
|
404
|
-
};
|
|
405
|
-
e.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
406
|
-
get: e,
|
|
407
|
-
configurable: !0
|
|
408
|
-
});
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
function ia(r, a) {
|
|
412
|
-
{
|
|
413
|
-
var e = function() {
|
|
414
|
-
xr || (xr = !0, h("%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)", a));
|
|
415
|
-
};
|
|
416
|
-
e.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
417
|
-
get: e,
|
|
418
|
-
configurable: !0
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
var sa = function(r, a, e, n, f, p, b) {
|
|
423
|
-
var u = {
|
|
424
|
-
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof: t,
|
|
426
|
-
// Built-in properties that belong on the element
|
|
427
|
-
type: r,
|
|
428
|
-
key: a,
|
|
429
|
-
ref: e,
|
|
430
|
-
props: b,
|
|
431
|
-
// Record the component responsible for creating this element.
|
|
432
|
-
_owner: p
|
|
433
|
-
};
|
|
434
|
-
return u._store = {}, Object.defineProperty(u._store, "validated", {
|
|
435
|
-
configurable: !1,
|
|
436
|
-
enumerable: !1,
|
|
437
|
-
writable: !0,
|
|
438
|
-
value: !1
|
|
439
|
-
}), Object.defineProperty(u, "_self", {
|
|
440
|
-
configurable: !1,
|
|
441
|
-
enumerable: !1,
|
|
442
|
-
writable: !1,
|
|
443
|
-
value: n
|
|
444
|
-
}), Object.defineProperty(u, "_source", {
|
|
445
|
-
configurable: !1,
|
|
446
|
-
enumerable: !1,
|
|
447
|
-
writable: !1,
|
|
448
|
-
value: f
|
|
449
|
-
}), Object.freeze && (Object.freeze(u.props), Object.freeze(u)), u;
|
|
450
|
-
};
|
|
451
|
-
function na(r, a, e, n, f) {
|
|
452
|
-
{
|
|
453
|
-
var p, b = {}, u = null, E = null;
|
|
454
|
-
e !== void 0 && (wr(e), u = "" + e), oa(a) && (wr(a.key), u = "" + a.key), aa(a) && (E = a.ref, ea(a, f));
|
|
455
|
-
for (p in a)
|
|
456
|
-
I.call(a, p) && !ra.hasOwnProperty(p) && (b[p] = a[p]);
|
|
457
|
-
if (r && r.defaultProps) {
|
|
458
|
-
var w = r.defaultProps;
|
|
459
|
-
for (p in w)
|
|
460
|
-
b[p] === void 0 && (b[p] = w[p]);
|
|
461
|
-
}
|
|
462
|
-
if (u || E) {
|
|
463
|
-
var y = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
464
|
-
u && ta(b, y), E && ia(b, y);
|
|
465
|
-
}
|
|
466
|
-
return sa(r, u, E, f, n, W.current, b);
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
var X = j.ReactCurrentOwner, mr = j.ReactDebugCurrentFrame;
|
|
470
|
-
function T(r) {
|
|
471
|
-
if (r) {
|
|
472
|
-
var a = r._owner, e = U(r.type, r._source, a ? a.type : null);
|
|
473
|
-
mr.setExtraStackFrame(e);
|
|
474
|
-
} else
|
|
475
|
-
mr.setExtraStackFrame(null);
|
|
476
|
-
}
|
|
477
|
-
var Z;
|
|
478
|
-
Z = !1;
|
|
479
|
-
function Q(r) {
|
|
480
|
-
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
481
|
-
}
|
|
482
|
-
function hr() {
|
|
483
|
-
{
|
|
484
|
-
if (X.current) {
|
|
485
|
-
var r = $(X.current.type);
|
|
486
|
-
if (r)
|
|
487
|
-
return `
|
|
488
|
-
|
|
489
|
-
Check the render method of \`` + r + "`.";
|
|
490
|
-
}
|
|
491
|
-
return "";
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
function ca(r) {
|
|
495
|
-
return "";
|
|
496
|
-
}
|
|
497
|
-
var Er = {};
|
|
498
|
-
function la(r) {
|
|
499
|
-
{
|
|
500
|
-
var a = hr();
|
|
501
|
-
if (!a) {
|
|
502
|
-
var e = typeof r == "string" ? r : r.displayName || r.name;
|
|
503
|
-
e && (a = `
|
|
504
|
-
|
|
505
|
-
Check the top-level render call using <` + e + ">.");
|
|
506
|
-
}
|
|
507
|
-
return a;
|
|
508
|
-
}
|
|
509
|
-
}
|
|
510
|
-
function Rr(r, a) {
|
|
511
|
-
{
|
|
512
|
-
if (!r._store || r._store.validated || r.key != null)
|
|
513
|
-
return;
|
|
514
|
-
r._store.validated = !0;
|
|
515
|
-
var e = la(a);
|
|
516
|
-
if (Er[e])
|
|
517
|
-
return;
|
|
518
|
-
Er[e] = !0;
|
|
519
|
-
var n = "";
|
|
520
|
-
r && r._owner && r._owner !== X.current && (n = " It was passed a child from " + $(r._owner.type) + "."), T(r), h('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', e, n), T(null);
|
|
521
|
-
}
|
|
522
|
-
}
|
|
523
|
-
function _r(r, a) {
|
|
524
|
-
{
|
|
525
|
-
if (typeof r != "object")
|
|
526
|
-
return;
|
|
527
|
-
if (G(r))
|
|
528
|
-
for (var e = 0; e < r.length; e++) {
|
|
529
|
-
var n = r[e];
|
|
530
|
-
Q(n) && Rr(n, a);
|
|
531
|
-
}
|
|
532
|
-
else if (Q(r))
|
|
533
|
-
r._store && (r._store.validated = !0);
|
|
534
|
-
else if (r) {
|
|
535
|
-
var f = Ir(r);
|
|
536
|
-
if (typeof f == "function" && f !== r.entries)
|
|
537
|
-
for (var p = f.call(r), b; !(b = p.next()).done; )
|
|
538
|
-
Q(b.value) && Rr(b.value, a);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
}
|
|
542
|
-
function ua(r) {
|
|
543
|
-
{
|
|
544
|
-
var a = r.type;
|
|
545
|
-
if (a == null || typeof a == "string")
|
|
546
|
-
return;
|
|
547
|
-
var e;
|
|
548
|
-
if (typeof a == "function")
|
|
549
|
-
e = a.propTypes;
|
|
550
|
-
else if (typeof a == "object" && (a.$$typeof === d || // Note: Memo only checks outer props here.
|
|
551
|
-
// Inner props are checked in the reconciler.
|
|
552
|
-
a.$$typeof === _))
|
|
553
|
-
e = a.propTypes;
|
|
554
|
-
else
|
|
555
|
-
return;
|
|
556
|
-
if (e) {
|
|
557
|
-
var n = $(a);
|
|
558
|
-
Hr(e, r.props, "prop", n, r);
|
|
559
|
-
} else if (a.PropTypes !== void 0 && !Z) {
|
|
560
|
-
Z = !0;
|
|
561
|
-
var f = $(a);
|
|
562
|
-
h("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", f || "Unknown");
|
|
563
|
-
}
|
|
564
|
-
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && h("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
function ba(r) {
|
|
568
|
-
{
|
|
569
|
-
for (var a = Object.keys(r.props), e = 0; e < a.length; e++) {
|
|
570
|
-
var n = a[e];
|
|
571
|
-
if (n !== "children" && n !== "key") {
|
|
572
|
-
T(r), h("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), T(null);
|
|
573
|
-
break;
|
|
574
|
-
}
|
|
575
|
-
}
|
|
576
|
-
r.ref !== null && (T(r), h("Invalid attribute `ref` supplied to `React.Fragment`."), T(null));
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
var kr = {};
|
|
580
|
-
function Sr(r, a, e, n, f, p) {
|
|
581
|
-
{
|
|
582
|
-
var b = Ur(r);
|
|
583
|
-
if (!b) {
|
|
584
|
-
var u = "";
|
|
585
|
-
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (u += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
|
-
var E = ca();
|
|
587
|
-
E ? u += E : u += hr();
|
|
588
|
-
var w;
|
|
589
|
-
r === null ? w = "null" : G(r) ? w = "array" : r !== void 0 && r.$$typeof === t ? (w = "<" + ($(r.type) || "Unknown") + " />", u = " Did you accidentally export a JSX literal instead of a component?") : w = typeof r, h("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", w, u);
|
|
590
|
-
}
|
|
591
|
-
var y = na(r, a, e, f, p);
|
|
592
|
-
if (y == null)
|
|
593
|
-
return y;
|
|
594
|
-
if (b) {
|
|
595
|
-
var k = a.children;
|
|
596
|
-
if (k !== void 0)
|
|
597
|
-
if (n)
|
|
598
|
-
if (G(k)) {
|
|
599
|
-
for (var F = 0; F < k.length; F++)
|
|
600
|
-
_r(k[F], r);
|
|
601
|
-
Object.freeze && Object.freeze(k);
|
|
602
|
-
} else
|
|
603
|
-
h("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
|
-
else
|
|
605
|
-
_r(k, r);
|
|
606
|
-
}
|
|
607
|
-
if (I.call(a, "key")) {
|
|
608
|
-
var P = $(r), R = Object.keys(a).filter(function(wa) {
|
|
609
|
-
return wa !== "key";
|
|
610
|
-
}), rr = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
-
if (!kr[P + rr]) {
|
|
612
|
-
var pa = R.length > 0 ? "{" + R.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
-
h(`A props object containing a "key" prop is being spread into JSX:
|
|
614
|
-
let props = %s;
|
|
615
|
-
<%s {...props} />
|
|
616
|
-
React keys must be passed directly to JSX without using spread:
|
|
617
|
-
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`, rr, P, pa, P), kr[P + rr] = !0;
|
|
619
|
-
}
|
|
620
|
-
}
|
|
621
|
-
return r === s ? ba(y) : ua(y), y;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
function ga(r, a, e) {
|
|
625
|
-
return Sr(r, a, e, !0);
|
|
626
|
-
}
|
|
627
|
-
function fa(r, a, e) {
|
|
628
|
-
return Sr(r, a, e, !1);
|
|
629
|
-
}
|
|
630
|
-
var va = fa, da = ga;
|
|
631
|
-
N.Fragment = s, N.jsx = va, N.jsxs = da;
|
|
632
|
-
}()), N;
|
|
633
|
-
}
|
|
634
|
-
process.env.NODE_ENV === "production" ? or.exports = Ra() : or.exports = _a();
|
|
635
|
-
var ka = or.exports;
|
|
636
|
-
function Or(o, t = "") {
|
|
637
|
-
let i = "";
|
|
638
|
-
for (const s in o)
|
|
639
|
-
if (Object.hasOwnProperty.call(o, s)) {
|
|
640
|
-
const c = o[s];
|
|
641
|
-
i += `/* ${s} */
|
|
1
|
+
import { jsx as C } from "react/jsx-runtime";
|
|
2
|
+
import { createContext as h, useState as j, useMemo as f, useRef as O, useEffect as E, useContext as P } from "react";
|
|
3
|
+
function y(r, a = "") {
|
|
4
|
+
let o = "";
|
|
5
|
+
for (const s in r)
|
|
6
|
+
if (Object.hasOwnProperty.call(r, s)) {
|
|
7
|
+
const t = r[s];
|
|
8
|
+
o += `/* ${s} */
|
|
642
9
|
`;
|
|
643
|
-
for (const
|
|
644
|
-
if (Object.hasOwnProperty.call(
|
|
645
|
-
const
|
|
646
|
-
|
|
10
|
+
for (const i in t)
|
|
11
|
+
if (Object.hasOwnProperty.call(t, i)) {
|
|
12
|
+
const e = t[i];
|
|
13
|
+
o += `--${a}-${s}-${i}: ${e};
|
|
647
14
|
`;
|
|
648
15
|
}
|
|
649
16
|
}
|
|
650
|
-
return
|
|
17
|
+
return o;
|
|
651
18
|
}
|
|
652
|
-
function
|
|
653
|
-
let
|
|
654
|
-
for (const s in
|
|
655
|
-
const
|
|
656
|
-
for (const
|
|
657
|
-
const
|
|
658
|
-
|
|
19
|
+
function $(r, a) {
|
|
20
|
+
let o = "";
|
|
21
|
+
for (const s in r) {
|
|
22
|
+
const t = r[s];
|
|
23
|
+
for (const i in t) {
|
|
24
|
+
const e = t[i], c = `${a}-${s}-${i}`;
|
|
25
|
+
o += `--${c}: ${e};
|
|
659
26
|
`;
|
|
660
27
|
}
|
|
661
28
|
}
|
|
662
|
-
return
|
|
29
|
+
return o;
|
|
663
30
|
}
|
|
664
|
-
function
|
|
665
|
-
let
|
|
666
|
-
function s(
|
|
667
|
-
if (
|
|
668
|
-
const
|
|
669
|
-
|
|
31
|
+
function F(r, a) {
|
|
32
|
+
let o = "";
|
|
33
|
+
function s(t, i, e = "", c = "", l = "") {
|
|
34
|
+
if (l) {
|
|
35
|
+
const b = `${e}${l}-${c}-${t}`;
|
|
36
|
+
o += `--${b}: ${i};
|
|
670
37
|
`;
|
|
671
38
|
} else {
|
|
672
|
-
const
|
|
673
|
-
|
|
39
|
+
const b = `${e}${t}-${c}`;
|
|
40
|
+
o += `--${b}: ${i};
|
|
674
41
|
`;
|
|
675
42
|
}
|
|
676
43
|
}
|
|
677
|
-
for (const
|
|
678
|
-
const
|
|
679
|
-
for (const
|
|
680
|
-
const
|
|
681
|
-
if (typeof
|
|
682
|
-
for (const
|
|
683
|
-
const
|
|
44
|
+
for (const t in r) {
|
|
45
|
+
const i = r[t];
|
|
46
|
+
for (const e in i) {
|
|
47
|
+
const c = i[e];
|
|
48
|
+
if (typeof c == "object")
|
|
49
|
+
for (const l in c) {
|
|
50
|
+
const b = c[l], u = `${a}-`;
|
|
684
51
|
s(
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
52
|
+
e,
|
|
53
|
+
b,
|
|
54
|
+
u,
|
|
55
|
+
t,
|
|
56
|
+
l
|
|
690
57
|
);
|
|
691
58
|
}
|
|
692
59
|
else {
|
|
693
|
-
const
|
|
694
|
-
s(
|
|
60
|
+
const l = `${a}-`;
|
|
61
|
+
s(e, c, l, t);
|
|
695
62
|
}
|
|
696
63
|
}
|
|
697
64
|
}
|
|
698
|
-
return
|
|
65
|
+
return o;
|
|
699
66
|
}
|
|
700
|
-
function
|
|
701
|
-
let
|
|
702
|
-
function s(
|
|
703
|
-
if (typeof
|
|
704
|
-
for (const
|
|
705
|
-
const
|
|
706
|
-
|
|
67
|
+
function N(r, a = "") {
|
|
68
|
+
let o = "";
|
|
69
|
+
function s(t, i, e = "") {
|
|
70
|
+
if (typeof i == "object")
|
|
71
|
+
for (const c in i) {
|
|
72
|
+
const l = i[c], b = `--${e}-${t}-${c}`;
|
|
73
|
+
o += `${b}: ${l};
|
|
707
74
|
`;
|
|
708
75
|
}
|
|
709
76
|
else {
|
|
710
|
-
const
|
|
711
|
-
|
|
77
|
+
const c = `--${e}-${t}`;
|
|
78
|
+
o += `${c}: ${i};
|
|
712
79
|
`;
|
|
713
80
|
}
|
|
714
81
|
}
|
|
715
|
-
for (const
|
|
716
|
-
const
|
|
717
|
-
if (typeof
|
|
718
|
-
s(
|
|
82
|
+
for (const t in r) {
|
|
83
|
+
const i = r[t];
|
|
84
|
+
if (typeof i == "object")
|
|
85
|
+
s(t, i, `${a}`);
|
|
719
86
|
else {
|
|
720
|
-
const
|
|
721
|
-
|
|
87
|
+
const e = `--${a}-${t}`;
|
|
88
|
+
o += `${e}: ${i};
|
|
722
89
|
`;
|
|
723
90
|
}
|
|
724
91
|
}
|
|
725
|
-
return
|
|
92
|
+
return o;
|
|
726
93
|
}
|
|
727
|
-
function
|
|
728
|
-
let
|
|
729
|
-
for (const s in
|
|
730
|
-
const
|
|
731
|
-
for (const
|
|
732
|
-
const
|
|
733
|
-
|
|
94
|
+
function M(r, a = "") {
|
|
95
|
+
let o = "";
|
|
96
|
+
for (const s in r) {
|
|
97
|
+
const t = r[s];
|
|
98
|
+
for (const i in t) {
|
|
99
|
+
const e = `--${a}-${s}-${i}`, c = t[i];
|
|
100
|
+
o += `${e}: ${c};
|
|
734
101
|
`;
|
|
735
102
|
}
|
|
736
103
|
}
|
|
737
|
-
return
|
|
104
|
+
return o;
|
|
738
105
|
}
|
|
739
|
-
function
|
|
740
|
-
let
|
|
741
|
-
for (const s in
|
|
742
|
-
if (Object.hasOwnProperty.call(
|
|
743
|
-
const
|
|
744
|
-
s === "default" ?
|
|
745
|
-
` :
|
|
106
|
+
function D(r, a) {
|
|
107
|
+
let o = "";
|
|
108
|
+
for (const s in r)
|
|
109
|
+
if (Object.hasOwnProperty.call(r, s)) {
|
|
110
|
+
const t = r[s];
|
|
111
|
+
s === "default" ? o += `--${a}: ${t};
|
|
112
|
+
` : o += `--${a}-${s}: ${t};
|
|
746
113
|
`;
|
|
747
114
|
}
|
|
748
|
-
return
|
|
115
|
+
return o;
|
|
749
116
|
}
|
|
750
|
-
const
|
|
751
|
-
const
|
|
752
|
-
if (
|
|
753
|
-
return
|
|
754
|
-
const
|
|
755
|
-
return
|
|
117
|
+
const J = (r) => {
|
|
118
|
+
const a = document.getElementById(r);
|
|
119
|
+
if (a)
|
|
120
|
+
return a;
|
|
121
|
+
const o = document.createElement("style");
|
|
122
|
+
return o.id = r, document.head.appendChild(o), o;
|
|
756
123
|
};
|
|
757
|
-
function
|
|
758
|
-
let
|
|
759
|
-
return Object.keys(
|
|
760
|
-
const
|
|
761
|
-
if (
|
|
762
|
-
|
|
124
|
+
function m(r, a) {
|
|
125
|
+
let o = "";
|
|
126
|
+
return Object.keys(r).forEach((s) => {
|
|
127
|
+
const t = r[s];
|
|
128
|
+
if (t && typeof t == "object") {
|
|
129
|
+
o += m(t, `${a}-${s}`);
|
|
763
130
|
return;
|
|
764
131
|
}
|
|
765
|
-
|
|
132
|
+
o += `${a}-${s}: ${t};
|
|
766
133
|
`;
|
|
767
|
-
}),
|
|
134
|
+
}), o;
|
|
768
135
|
}
|
|
769
|
-
function
|
|
770
|
-
let
|
|
771
|
-
return
|
|
136
|
+
function B(r, a) {
|
|
137
|
+
let o = "";
|
|
138
|
+
return r && (o += m(r, a)), o;
|
|
772
139
|
}
|
|
773
|
-
function
|
|
774
|
-
var
|
|
775
|
-
if (!
|
|
140
|
+
function H(r) {
|
|
141
|
+
var u, v, w, d, p, x;
|
|
142
|
+
if (!r)
|
|
776
143
|
return;
|
|
777
|
-
const
|
|
778
|
-
|
|
144
|
+
const a = (u = r.colors) != null && u.raw ? $(
|
|
145
|
+
r.colors.raw,
|
|
779
146
|
"starasia-ui-raw-color"
|
|
780
|
-
) : "",
|
|
781
|
-
|
|
147
|
+
) : "", o = (v = r.colors) != null && v.computed ? $(
|
|
148
|
+
r.colors.computed,
|
|
782
149
|
"starasia-ui-color"
|
|
783
|
-
) : "", s = (
|
|
784
|
-
|
|
150
|
+
) : "", s = (w = r.colors) != null && w.main ? F(r.colors.main, "starasia-ui") : "", t = (d = r.colors) != null && d.brand ? y(r.colors.brand, "starasia-ui-brand") : "", i = (p = r.colors) != null && p.utility ? y(
|
|
151
|
+
r.colors.utility,
|
|
785
152
|
"starasia-ui-utility"
|
|
786
|
-
) : "",
|
|
787
|
-
|
|
153
|
+
) : "", e = (x = r.colors) != null && x.text ? D(
|
|
154
|
+
r.colors.text,
|
|
788
155
|
"starasia-ui-color-text"
|
|
789
|
-
) : "",
|
|
156
|
+
) : "", c = r.metrics ? N(r.metrics, "starasia-ui") : "", l = r.font ? M(r.font, "starasia-ui") : "", b = r.components ? B(r.components, "--starasia-ui") : "";
|
|
790
157
|
return `
|
|
791
158
|
:root {
|
|
159
|
+
${a}
|
|
160
|
+
${o}
|
|
161
|
+
${s}
|
|
792
162
|
${t}
|
|
793
163
|
${i}
|
|
794
|
-
${
|
|
164
|
+
${e}
|
|
795
165
|
${c}
|
|
796
166
|
${l}
|
|
797
|
-
${
|
|
798
|
-
${g}
|
|
799
|
-
${d}
|
|
800
|
-
${m}
|
|
167
|
+
${b}
|
|
801
168
|
}
|
|
802
169
|
`;
|
|
803
170
|
}
|
|
804
|
-
const
|
|
171
|
+
const k = h({
|
|
805
172
|
theme: void 0,
|
|
806
173
|
setTheme: () => {
|
|
807
174
|
}
|
|
808
|
-
}),
|
|
809
|
-
function
|
|
810
|
-
const [
|
|
811
|
-
() =>
|
|
812
|
-
[
|
|
813
|
-
),
|
|
814
|
-
|
|
815
|
-
if (
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
}
|
|
819
|
-
}, [
|
|
820
|
-
const
|
|
821
|
-
|
|
175
|
+
}), L = "starasia-theme-style";
|
|
176
|
+
function K({ value: r, children: a }) {
|
|
177
|
+
const [o, s] = j(r), t = f(
|
|
178
|
+
() => o ? JSON.stringify(o) : "",
|
|
179
|
+
[o]
|
|
180
|
+
), i = O(J(L));
|
|
181
|
+
E(() => {
|
|
182
|
+
if (t) {
|
|
183
|
+
const c = H(JSON.parse(t));
|
|
184
|
+
c && (i != null && i.current) && (i.current.textContent = c);
|
|
185
|
+
}
|
|
186
|
+
}, [t]);
|
|
187
|
+
const e = (c) => {
|
|
188
|
+
c && s(c);
|
|
822
189
|
};
|
|
823
|
-
return /* @__PURE__ */
|
|
190
|
+
return /* @__PURE__ */ C(k.Provider, { value: { theme: o, setTheme: e }, children: a });
|
|
824
191
|
}
|
|
825
|
-
const
|
|
192
|
+
const V = {
|
|
826
193
|
raw: {
|
|
827
194
|
white: {
|
|
828
195
|
900: "255, 255, 255"
|
|
@@ -1077,18 +444,18 @@ const Da = {
|
|
|
1077
444
|
},
|
|
1078
445
|
tertiary: {
|
|
1079
446
|
"background-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.21)",
|
|
1080
|
-
"text-color": "rgb(var(--starasia-ui-raw-color-blue-
|
|
447
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
1081
448
|
"border-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.21)",
|
|
1082
449
|
hover: {
|
|
1083
450
|
"background-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.3)",
|
|
1084
451
|
"border-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.3)",
|
|
1085
|
-
"text-color": "rgb(var(--starasia-ui-raw-color-blue-
|
|
452
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
1086
453
|
shadow: "0px 0px 0px -1px #f0f0f0"
|
|
1087
454
|
},
|
|
1088
455
|
active: {
|
|
1089
456
|
"background-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.46)",
|
|
1090
457
|
"border-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.46)",
|
|
1091
|
-
"text-color": "rgb(var(--starasia-ui-raw-color-blue-
|
|
458
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
1092
459
|
shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-blue-300), 0.28)"
|
|
1093
460
|
},
|
|
1094
461
|
disable: {
|
|
@@ -1099,17 +466,17 @@ const Da = {
|
|
|
1099
466
|
},
|
|
1100
467
|
quaternary: {
|
|
1101
468
|
"background-color": "rgba(255, 255, 255, 0)",
|
|
1102
|
-
"text-color": "rgb(var(--starasia-ui-raw-color-blue-
|
|
1103
|
-
"border-color": "rgb(var(--starasia-ui-raw-color-blue-
|
|
469
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
470
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
1104
471
|
hover: {
|
|
1105
472
|
"background-color": "rgba(255, 255, 255, 0)",
|
|
1106
|
-
"border-color": "rgba(var(--starasia-ui-raw-color-blue-
|
|
1107
|
-
"text-color": "rgba(var(--starasia-ui-raw-color-blue-
|
|
473
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-blue-700), 0.9)",
|
|
474
|
+
"text-color": "rgba(var(--starasia-ui-raw-color-blue-700), 0.9)"
|
|
1108
475
|
},
|
|
1109
476
|
active: {
|
|
1110
477
|
"background-color": "rgb(255, 255, 255)",
|
|
1111
|
-
"border-color": "rgb(
|
|
1112
|
-
"text-color": "rgb(var(--starasia-ui-raw-color-blue-
|
|
478
|
+
"border-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
479
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
1113
480
|
shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-blue-300), 0.28)"
|
|
1114
481
|
},
|
|
1115
482
|
disable: {
|
|
@@ -1120,17 +487,17 @@ const Da = {
|
|
|
1120
487
|
},
|
|
1121
488
|
link: {
|
|
1122
489
|
"background-color": "rgba(255, 255, 255, 0)",
|
|
1123
|
-
"text-color": "rgb(var(--starasia-ui-raw-color-blue-
|
|
490
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
|
|
1124
491
|
"border-color": "rgba(255, 255, 255, 0)",
|
|
1125
492
|
hover: {
|
|
1126
493
|
"background-color": "rgba(255, 255, 255, 0)",
|
|
1127
494
|
"border-color": "rgba(255, 255, 255, 0)",
|
|
1128
|
-
"text-color": "rgba(
|
|
495
|
+
"text-color": "rgba(var(--starasia-ui-raw-color-blue-900), 0.9)"
|
|
1129
496
|
},
|
|
1130
497
|
active: {
|
|
1131
498
|
"background-color": "rgba(255, 255, 255, 0)",
|
|
1132
499
|
"border-color": "rgba(255, 255, 255, 0)",
|
|
1133
|
-
"text-color": "rgb(var(--starasia-ui-raw-color-blue-
|
|
500
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-blue-700))"
|
|
1134
501
|
},
|
|
1135
502
|
disable: {
|
|
1136
503
|
"background-color": "rgba(255, 255, 255, 0)",
|
|
@@ -1151,7 +518,7 @@ const Da = {
|
|
|
1151
518
|
"background-color": "rgba(var(--starasia-ui-raw-color-green-600), 0.75)",
|
|
1152
519
|
"border-color": "rgba(var(--starasia-ui-raw-color-green-600), 0.75)",
|
|
1153
520
|
"text-color": "rgb(255, 255, 255)",
|
|
1154
|
-
shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-green-
|
|
521
|
+
shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-green-800), 0.28)"
|
|
1155
522
|
},
|
|
1156
523
|
disable: {
|
|
1157
524
|
"background-color": "rgb(var(--starasia-ui-raw-color-gray-400))",
|
|
@@ -1169,10 +536,10 @@ const Da = {
|
|
|
1169
536
|
"text-color": "rgb(255, 255, 255)"
|
|
1170
537
|
},
|
|
1171
538
|
active: {
|
|
1172
|
-
"background-color": "rgba(var(--starasia-ui-raw-color-red-
|
|
1173
|
-
"border-color": "rgba(var(--starasia-ui-raw-color-red-
|
|
539
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-red-800), 0.68)",
|
|
540
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-red-800), 0.68)",
|
|
1174
541
|
"text-color": "rgb(255, 255, 255)",
|
|
1175
|
-
shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-red-
|
|
542
|
+
shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-red-800), 0.28)"
|
|
1176
543
|
},
|
|
1177
544
|
disable: {
|
|
1178
545
|
"background-color": "rgb(var(--starasia-ui-raw-color-red-300))",
|
|
@@ -1190,15 +557,15 @@ const Da = {
|
|
|
1190
557
|
"text-color": "rgb(255, 255, 255)"
|
|
1191
558
|
},
|
|
1192
559
|
active: {
|
|
1193
|
-
"background-color": "rgba(var(--starasia-ui-raw-color-orange-
|
|
1194
|
-
"border-color": "rgba(var(--starasia-ui-raw-color-orange-
|
|
560
|
+
"background-color": "rgba(var(--starasia-ui-raw-color-orange-800), 0.75)",
|
|
561
|
+
"border-color": "rgba(var(--starasia-ui-raw-color-orange-800), 0.75)",
|
|
1195
562
|
"text-color": "rgb(255, 255, 255)",
|
|
1196
|
-
shadow: "0px 0px 0px 2px rgba(var(--starasia-ui-raw-color-orange-
|
|
563
|
+
shadow: "0px 0px 0px 2px rgba(var(--starasia-ui-raw-color-orange-800), 0.28)"
|
|
1197
564
|
},
|
|
1198
565
|
disable: {
|
|
1199
566
|
"background-color": "rgb(var(--starasia-ui-raw-color-orange-300))",
|
|
1200
567
|
"border-color": "rgb(var(--starasia-ui-raw-color-orange-300))",
|
|
1201
|
-
"text-color": "rgb(
|
|
568
|
+
"text-color": "rgb(var(--starasia-ui-raw-color-orange-600))"
|
|
1202
569
|
}
|
|
1203
570
|
}
|
|
1204
571
|
},
|
|
@@ -1219,7 +586,7 @@ const Da = {
|
|
|
1219
586
|
secondary: "var(--starasia-ui-color-gray-700)",
|
|
1220
587
|
tertiary: "var(--starasia-ui-color-gray-500)",
|
|
1221
588
|
disable: "var(--starasia-ui-color-gray-200)",
|
|
1222
|
-
white: "
|
|
589
|
+
white: "var(--starasia-ui-color-white-900)"
|
|
1223
590
|
},
|
|
1224
591
|
utility: {
|
|
1225
592
|
success: {
|
|
@@ -1253,7 +620,7 @@ const Da = {
|
|
|
1253
620
|
tertiary: "rgba(120, 134, 127, 0.1)"
|
|
1254
621
|
}
|
|
1255
622
|
}
|
|
1256
|
-
},
|
|
623
|
+
}, _ = {
|
|
1257
624
|
radii: {
|
|
1258
625
|
none: "0",
|
|
1259
626
|
xs: "0.25rem",
|
|
@@ -1309,13 +676,9 @@ const Da = {
|
|
|
1309
676
|
xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
|
|
1310
677
|
"2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
|
|
1311
678
|
inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
|
|
1312
|
-
|
|
1313
|
-
},
|
|
1314
|
-
borderRadius: {
|
|
1315
|
-
rounded: "8px",
|
|
1316
|
-
circular: "192px"
|
|
679
|
+
card: "0px 4px 35px 0px rgba(112, 144, 176, 0.25)"
|
|
1317
680
|
}
|
|
1318
|
-
},
|
|
681
|
+
}, q = {
|
|
1319
682
|
fontSizes: {
|
|
1320
683
|
xs: "0.625rem",
|
|
1321
684
|
sm: "0.75rem",
|
|
@@ -1329,7 +692,7 @@ const Da = {
|
|
|
1329
692
|
"6xl": "3rem"
|
|
1330
693
|
},
|
|
1331
694
|
fontWeights: {
|
|
1332
|
-
hairline:
|
|
695
|
+
hairline: 100,
|
|
1333
696
|
thin: 100,
|
|
1334
697
|
light: 200,
|
|
1335
698
|
normal: 300,
|
|
@@ -1355,64 +718,64 @@ const Da = {
|
|
|
1355
718
|
relaxed: 1.625,
|
|
1356
719
|
loose: 2
|
|
1357
720
|
}
|
|
1358
|
-
},
|
|
1359
|
-
colors:
|
|
1360
|
-
metrics:
|
|
1361
|
-
font:
|
|
1362
|
-
},
|
|
1363
|
-
const
|
|
1364
|
-
return Object.keys(
|
|
1365
|
-
if (
|
|
1366
|
-
|
|
1367
|
-
...
|
|
1368
|
-
...
|
|
1369
|
-
...
|
|
721
|
+
}, z = {
|
|
722
|
+
colors: V,
|
|
723
|
+
metrics: _,
|
|
724
|
+
font: q
|
|
725
|
+
}, n = z, S = (r, a) => {
|
|
726
|
+
const o = {};
|
|
727
|
+
return Object.keys(r).forEach((s) => {
|
|
728
|
+
if (r != null && r[s] && typeof (r == null ? void 0 : r[s]) == "object") {
|
|
729
|
+
o[s] = {
|
|
730
|
+
...r == null ? void 0 : r[s],
|
|
731
|
+
...a == null ? void 0 : a[s],
|
|
732
|
+
...S(r == null ? void 0 : r[s], a == null ? void 0 : a[s])
|
|
1370
733
|
};
|
|
1371
734
|
return;
|
|
1372
735
|
}
|
|
1373
|
-
|
|
1374
|
-
}),
|
|
736
|
+
o[s] = (a == null ? void 0 : a[s]) || (r == null ? void 0 : r[s]);
|
|
737
|
+
}), o;
|
|
1375
738
|
};
|
|
1376
|
-
function
|
|
1377
|
-
const
|
|
739
|
+
function g() {
|
|
740
|
+
const r = P(k), a = f(
|
|
1378
741
|
() => ({
|
|
1379
|
-
...
|
|
1380
|
-
...
|
|
1381
|
-
...
|
|
742
|
+
...n,
|
|
743
|
+
...r.theme,
|
|
744
|
+
...S(n, r.theme)
|
|
1382
745
|
}),
|
|
1383
|
-
[
|
|
746
|
+
[r.theme, n]
|
|
1384
747
|
);
|
|
1385
|
-
return { ...
|
|
748
|
+
return { ...r, theme: a };
|
|
1386
749
|
}
|
|
1387
|
-
function
|
|
1388
|
-
const { theme:
|
|
1389
|
-
return
|
|
750
|
+
function R() {
|
|
751
|
+
const { theme: r } = g();
|
|
752
|
+
return r.colors;
|
|
1390
753
|
}
|
|
1391
|
-
function
|
|
1392
|
-
var
|
|
1393
|
-
const { theme:
|
|
1394
|
-
return (
|
|
754
|
+
function U() {
|
|
755
|
+
var a;
|
|
756
|
+
const { theme: r } = g();
|
|
757
|
+
return (a = r.metrics) == null ? void 0 : a.spacing;
|
|
1395
758
|
}
|
|
1396
|
-
function
|
|
1397
|
-
var
|
|
1398
|
-
const { theme:
|
|
1399
|
-
return (
|
|
759
|
+
function W() {
|
|
760
|
+
var a;
|
|
761
|
+
const { theme: r } = g();
|
|
762
|
+
return (a = r.metrics) == null ? void 0 : a.radii;
|
|
1400
763
|
}
|
|
1401
|
-
function
|
|
1402
|
-
var
|
|
1403
|
-
const { theme:
|
|
1404
|
-
return (
|
|
764
|
+
function Y() {
|
|
765
|
+
var a;
|
|
766
|
+
const { theme: r } = g();
|
|
767
|
+
return (a = r == null ? void 0 : r.metrics) == null ? void 0 : a.shadows;
|
|
1405
768
|
}
|
|
1406
|
-
function
|
|
1407
|
-
return
|
|
769
|
+
function G(r) {
|
|
770
|
+
return r;
|
|
1408
771
|
}
|
|
1409
772
|
export {
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
773
|
+
k as ThemeContext,
|
|
774
|
+
K as ThemeProvider,
|
|
775
|
+
G as createTheme,
|
|
776
|
+
R as useColor,
|
|
777
|
+
W as useRadius,
|
|
778
|
+
Y as useShadow,
|
|
779
|
+
U as useSpacing,
|
|
780
|
+
g as useTheme
|
|
1418
781
|
};
|