@starasia/theme 1.0.0

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.
Files changed (36) hide show
  1. package/README.md +143 -0
  2. package/dist/components/ThemeProvider.d.ts +12 -0
  3. package/dist/components/index.d.ts +1 -0
  4. package/dist/default.json.d.ts +542 -0
  5. package/dist/helpers/brandcolor.d.ts +3 -0
  6. package/dist/helpers/colorpalette.d.ts +3 -0
  7. package/dist/helpers/components.d.ts +3 -0
  8. package/dist/helpers/createTheme.d.ts +3 -0
  9. package/dist/helpers/font.d.ts +8 -0
  10. package/dist/helpers/generator.d.ts +3 -0
  11. package/dist/helpers/index.d.ts +6 -0
  12. package/dist/helpers/injector.d.ts +2 -0
  13. package/dist/helpers/maincolor.d.ts +3 -0
  14. package/dist/helpers/metric.d.ts +3 -0
  15. package/dist/hooks/index.d.ts +4 -0
  16. package/dist/hooks/use.d.ts +4 -0
  17. package/dist/hooks/useTheme.d.ts +6 -0
  18. package/dist/index.d.ts +4 -0
  19. package/dist/index.es.js +1418 -0
  20. package/dist/index.umd.js +54 -0
  21. package/dist/types/components/alert.d.ts +33 -0
  22. package/dist/types/components/badge.d.ts +43 -0
  23. package/dist/types/components/button.d.ts +18 -0
  24. package/dist/types/components/card.d.ts +18 -0
  25. package/dist/types/components/checkbox.d.ts +29 -0
  26. package/dist/types/components/date.d.ts +39 -0
  27. package/dist/types/components/input.d.ts +33 -0
  28. package/dist/types/components/menu.d.ts +21 -0
  29. package/dist/types/components/pagination.d.ts +32 -0
  30. package/dist/types/components/radio.d.ts +26 -0
  31. package/dist/types/components/tab.d.ts +25 -0
  32. package/dist/types/components/table.d.ts +35 -0
  33. package/dist/types/components/textarea.d.ts +37 -0
  34. package/dist/types/index.d.ts +1 -0
  35. package/dist/types/theme.d.ts +236 -0
  36. package/package.json +46 -0
@@ -0,0 +1,1418 @@
1
+ import jr, { createContext as ya, useState as xa, useMemo as Tr, useRef as ma, useEffect as ha, useContext as Ea } from "react";
2
+ var or = { exports: {} }, Y = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var $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} */
642
+ `;
643
+ for (const l in c)
644
+ if (Object.hasOwnProperty.call(c, l)) {
645
+ const v = c[l];
646
+ i += `--${t}-${s}-${l}: ${v};
647
+ `;
648
+ }
649
+ }
650
+ return i;
651
+ }
652
+ function Pr(o, t) {
653
+ let i = "";
654
+ for (const s in o) {
655
+ const c = o[s];
656
+ for (const l in c) {
657
+ const v = c[l], g = `${t}-${s}-${l}`;
658
+ i += `--${g}: ${v};
659
+ `;
660
+ }
661
+ }
662
+ return i;
663
+ }
664
+ function Sa(o, t) {
665
+ let i = "";
666
+ function s(c, l, v = "", g = "", d = "") {
667
+ if (d) {
668
+ const m = `${v}${d}-${g}-${c}`;
669
+ i += `--${m}: ${l};
670
+ `;
671
+ } else {
672
+ const m = `${v}${c}-${g}`;
673
+ i += `--${m}: ${l};
674
+ `;
675
+ }
676
+ }
677
+ for (const c in o) {
678
+ const l = o[c];
679
+ for (const v in l) {
680
+ const g = l[v];
681
+ if (typeof g == "object")
682
+ for (const d in g) {
683
+ const m = g[d], x = `${t}-`;
684
+ s(
685
+ v,
686
+ m,
687
+ x,
688
+ c,
689
+ d
690
+ );
691
+ }
692
+ else {
693
+ const d = `${t}-`;
694
+ s(v, g, d, c);
695
+ }
696
+ }
697
+ }
698
+ return i;
699
+ }
700
+ function $a(o, t = "") {
701
+ let i = "";
702
+ function s(c, l, v = "") {
703
+ if (typeof l == "object")
704
+ for (const g in l) {
705
+ const d = l[g], m = `--${v}-${c}-${g}`;
706
+ i += `${m}: ${d};
707
+ `;
708
+ }
709
+ else {
710
+ const g = `--${v}-${c}`;
711
+ i += `${g}: ${l};
712
+ `;
713
+ }
714
+ }
715
+ for (const c in o) {
716
+ const l = o[c];
717
+ if (typeof l == "object")
718
+ s(c, l, `${t}`);
719
+ else {
720
+ const v = `--${t}-${c}`;
721
+ i += `${v}: ${l};
722
+ `;
723
+ }
724
+ }
725
+ return i;
726
+ }
727
+ function Ca(o, t = "") {
728
+ let i = "";
729
+ for (const s in o) {
730
+ const c = o[s];
731
+ for (const l in c) {
732
+ const v = `--${t}-${s}-${l}`, g = c[l];
733
+ i += `${v}: ${g};
734
+ `;
735
+ }
736
+ }
737
+ return i;
738
+ }
739
+ function Oa(o, t) {
740
+ let i = "";
741
+ for (const s in o)
742
+ if (Object.hasOwnProperty.call(o, s)) {
743
+ const c = o[s];
744
+ s === "default" ? i += `--${t}: ${c};
745
+ ` : i += `--${t}-${s}: ${c};
746
+ `;
747
+ }
748
+ return i;
749
+ }
750
+ const Pa = (o) => {
751
+ const t = document.getElementById(o);
752
+ if (t)
753
+ return t;
754
+ const i = document.createElement("style");
755
+ return i.id = o, document.head.appendChild(i), i;
756
+ };
757
+ function Fr(o, t) {
758
+ let i = "";
759
+ return Object.keys(o).forEach((s) => {
760
+ const c = o[s];
761
+ if (c && typeof c == "object") {
762
+ i += Fr(c, `${t}-${s}`);
763
+ return;
764
+ }
765
+ i += `${t}-${s}: ${c};
766
+ `;
767
+ }), i;
768
+ }
769
+ function ja(o, t) {
770
+ let i = "";
771
+ return o && (i += Fr(o, t)), i;
772
+ }
773
+ function Ta(o) {
774
+ var x, _, S, C, D, L;
775
+ if (!o)
776
+ return;
777
+ const t = (x = o.colors) != null && x.raw ? Pr(
778
+ o.colors.raw,
779
+ "starasia-ui-raw-color"
780
+ ) : "", i = (_ = o.colors) != null && _.computed ? Pr(
781
+ o.colors.computed,
782
+ "starasia-ui-color"
783
+ ) : "", s = (S = o.colors) != null && S.main ? Sa(o.colors.main, "starasia-ui") : "", c = (C = o.colors) != null && C.brand ? Or(o.colors.brand, "starasia-ui-brand") : "", l = (D = o.colors) != null && D.utility ? Or(
784
+ o.colors.utility,
785
+ "starasia-ui-utility"
786
+ ) : "", v = (L = o.colors) != null && L.text ? Oa(
787
+ o.colors.text,
788
+ "starasia-ui-color-text"
789
+ ) : "", g = o.metrics ? $a(o.metrics, "starasia-ui") : "", d = o.font ? Ca(o.font, "starasia-ui") : "", m = o.components ? ja(o.components, "--starasia-ui") : "";
790
+ return `
791
+ :root {
792
+ ${t}
793
+ ${i}
794
+ ${s}
795
+ ${c}
796
+ ${l}
797
+ ${v}
798
+ ${g}
799
+ ${d}
800
+ ${m}
801
+ }
802
+ `;
803
+ }
804
+ const Dr = ya({
805
+ theme: void 0,
806
+ setTheme: () => {
807
+ }
808
+ }), Fa = "starasia-theme-style";
809
+ function Na({ value: o, children: t }) {
810
+ const [i, s] = xa(o), c = Tr(
811
+ () => i ? JSON.stringify(i) : "",
812
+ [i]
813
+ ), l = ma(Pa(Fa));
814
+ ha(() => {
815
+ if (c) {
816
+ const g = Ta(JSON.parse(c));
817
+ g && (l != null && l.current) && (l.current.textContent = g);
818
+ }
819
+ }, [c]);
820
+ const v = (g) => {
821
+ g && s(g);
822
+ };
823
+ return /* @__PURE__ */ ka.jsx(Dr.Provider, { value: { theme: i, setTheme: v }, children: t });
824
+ }
825
+ const Da = {
826
+ raw: {
827
+ white: {
828
+ 900: "255, 255, 255"
829
+ },
830
+ black: {
831
+ 900: "0, 0, 0"
832
+ },
833
+ blue: {
834
+ 50: "227, 242, 253",
835
+ 100: "187, 222, 251",
836
+ 200: "144, 202, 249",
837
+ 300: "100, 181, 246",
838
+ 400: "66, 165, 245",
839
+ 500: "33, 150, 243",
840
+ 600: "30, 136, 229",
841
+ 700: "25, 118, 210",
842
+ 800: "21, 101, 192",
843
+ 900: "13, 71, 161"
844
+ },
845
+ pink: {
846
+ 50: "251, 219, 241",
847
+ 100: "248, 183, 228",
848
+ 200: "245, 147, 215",
849
+ 300: "241, 111, 202",
850
+ 400: "238, 75, 189",
851
+ 500: "235, 39, 176",
852
+ 600: "215, 19, 157",
853
+ 700: "179, 16, 131",
854
+ 800: "143, 13, 104",
855
+ 900: "107, 9, 78"
856
+ },
857
+ purple: {
858
+ 50: "233, 222, 245",
859
+ 100: "212, 189, 235",
860
+ 200: "190, 156, 226",
861
+ 300: "169, 123, 216",
862
+ 400: "147, 90, 207",
863
+ 500: "126, 57, 197",
864
+ 600: "105, 47, 164",
865
+ 700: "84, 38, 131",
866
+ 800: "63, 28, 98",
867
+ 900: "42, 19, 65"
868
+ },
869
+ gray: {
870
+ 50: "255, 254, 255",
871
+ 100: "239, 243, 248",
872
+ 200: "201, 206, 204",
873
+ 300: "174, 182, 178",
874
+ 400: "147, 158, 153",
875
+ 500: "120, 134, 127",
876
+ 600: "96, 107, 102",
877
+ 700: "72, 80, 76",
878
+ 800: "48, 53, 51",
879
+ 900: "24, 26, 25"
880
+ },
881
+ red: {
882
+ 50: "255, 240, 243",
883
+ 100: "255, 204, 213",
884
+ 200: "255, 179, 193",
885
+ 300: "255, 143, 163",
886
+ 400: "255, 117, 143",
887
+ 500: "255, 77, 109",
888
+ 600: "201, 24, 74",
889
+ 700: "164, 19, 60",
890
+ 800: "128, 15, 47",
891
+ 900: "89, 13, 34"
892
+ },
893
+ orange: {
894
+ 50: "250, 246, 224",
895
+ 100: "255, 245, 193",
896
+ 200: "255, 225, 139",
897
+ 300: "255, 203, 105",
898
+ 400: "234, 183, 84",
899
+ 500: "210, 160, 58",
900
+ 600: "179, 130, 10",
901
+ 700: "152, 104, 0",
902
+ 800: "126, 80, 0",
903
+ 900: "97, 52, 0"
904
+ },
905
+ aloha: {
906
+ 50: "219, 247, 242",
907
+ 100: "184, 240, 230",
908
+ 200: "149, 232, 218",
909
+ 300: "114, 225, 206",
910
+ 400: "79, 218, 194",
911
+ 500: "44, 210, 182",
912
+ 600: "36, 175, 152",
913
+ 700: "29, 140, 121",
914
+ 800: "22, 105, 91",
915
+ 900: "14, 70, 60"
916
+ },
917
+ green: {
918
+ 50: "220, 246, 234",
919
+ 100: "186, 238, 214",
920
+ 200: "151, 230, 193",
921
+ 300: "117, 222, 173",
922
+ 400: "82, 214, 152",
923
+ 500: "48, 206, 132",
924
+ 600: "40, 172, 110",
925
+ 700: "32, 137, 88",
926
+ 800: "24, 103, 66",
927
+ 900: "16, 68, 44"
928
+ }
929
+ },
930
+ computed: {
931
+ white: {
932
+ 900: "rgba(var(--starasia-ui-raw-color-white-900), 1)"
933
+ },
934
+ black: {
935
+ 900: "rgba(var(--starasia-ui-raw-color-black-900), 1)"
936
+ },
937
+ blue: {
938
+ 50: "rgba(var(--starasia-ui-raw-color-blue-50), 1)",
939
+ 100: "rgba(var(--starasia-ui-raw-color-blue-100), 1)",
940
+ 200: "rgba(var(--starasia-ui-raw-color-blue-200), 1)",
941
+ 300: "rgba(var(--starasia-ui-raw-color-blue-300), 1)",
942
+ 400: "rgba(var(--starasia-ui-raw-color-blue-400), 1)",
943
+ 500: "rgba(var(--starasia-ui-raw-color-blue-500), 1)",
944
+ 600: "rgba(var(--starasia-ui-raw-color-blue-600), 1)",
945
+ 700: "rgba(var(--starasia-ui-raw-color-blue-700), 1)",
946
+ 800: "rgba(var(--starasia-ui-raw-color-blue-800), 1)",
947
+ 900: "rgba(var(--starasia-ui-raw-color-blue-900), 1)"
948
+ },
949
+ pink: {
950
+ 50: "rgba(var(--starasia-ui-raw-color-pink-50), 1)",
951
+ 100: "rgba(var(--starasia-ui-raw-color-pink-100), 1)",
952
+ 200: "rgba(var(--starasia-ui-raw-color-pink-200), 1)",
953
+ 300: "rgba(var(--starasia-ui-raw-color-pink-300), 1)",
954
+ 400: "rgba(var(--starasia-ui-raw-color-pink-400), 1)",
955
+ 500: "rgba(var(--starasia-ui-raw-color-pink-500), 1)",
956
+ 600: "rgba(var(--starasia-ui-raw-color-pink-600), 1)",
957
+ 700: "rgba(var(--starasia-ui-raw-color-pink-700), 1)",
958
+ 800: "rgba(var(--starasia-ui-raw-color-pink-800), 1)",
959
+ 900: "rgba(var(--starasia-ui-raw-color-pink-900), 1)"
960
+ },
961
+ purple: {
962
+ 50: "rgba(var(--starasia-ui-raw-color-purple-50), 1)",
963
+ 100: "rgba(var(--starasia-ui-raw-color-purple-100), 1)",
964
+ 200: "rgba(var(--starasia-ui-raw-color-purple-200), 1)",
965
+ 300: "rgba(var(--starasia-ui-raw-color-purple-300), 1)",
966
+ 400: "rgba(var(--starasia-ui-raw-color-purple-400), 1)",
967
+ 500: "rgba(var(--starasia-ui-raw-color-purple-500), 1)",
968
+ 600: "rgba(var(--starasia-ui-raw-color-purple-600), 1)",
969
+ 700: "rgba(var(--starasia-ui-raw-color-purple-700), 1)",
970
+ 800: "rgba(var(--starasia-ui-raw-color-purple-800), 1)",
971
+ 900: "rgba(var(--starasia-ui-raw-color-purple-900), 1)"
972
+ },
973
+ gray: {
974
+ 50: "rgba(var(--starasia-ui-raw-color-gray-50), 1)",
975
+ 100: "rgba(var(--starasia-ui-raw-color-gray-100), 1)",
976
+ 200: "rgba(var(--starasia-ui-raw-color-gray-200), 1)",
977
+ 300: "rgba(var(--starasia-ui-raw-color-gray-300), 1)",
978
+ 400: "rgba(var(--starasia-ui-raw-color-gray-400), 1)",
979
+ 500: "rgba(var(--starasia-ui-raw-color-gray-500), 1)",
980
+ 600: "rgba(var(--starasia-ui-raw-color-gray-600), 1)",
981
+ 700: "rgba(var(--starasia-ui-raw-color-gray-700), 1)",
982
+ 800: "rgba(var(--starasia-ui-raw-color-gray-800), 1)",
983
+ 900: "rgba(var(--starasia-ui-raw-color-gray-900), 1)"
984
+ },
985
+ red: {
986
+ 50: "rgba(var(--starasia-ui-raw-color-red-50), 1)",
987
+ 100: "rgba(var(--starasia-ui-raw-color-red-100), 1)",
988
+ 200: "rgba(var(--starasia-ui-raw-color-red-200), 1)",
989
+ 300: "rgba(var(--starasia-ui-raw-color-red-300), 1)",
990
+ 400: "rgba(var(--starasia-ui-raw-color-red-400), 1)",
991
+ 500: "rgba(var(--starasia-ui-raw-color-red-500), 1)",
992
+ 600: "rgba(var(--starasia-ui-raw-color-red-600), 1)",
993
+ 700: "rgba(var(--starasia-ui-raw-color-red-700), 1)",
994
+ 800: "rgba(var(--starasia-ui-raw-color-red-800), 1)",
995
+ 900: "rgba(var(--starasia-ui-raw-color-red-900), 1)"
996
+ },
997
+ orange: {
998
+ 50: "rgba(var(--starasia-ui-raw-color-orange-50), 1)",
999
+ 100: "rgba(var(--starasia-ui-raw-color-orange-100), 1)",
1000
+ 200: "rgba(var(--starasia-ui-raw-color-orange-200), 1)",
1001
+ 300: "rgba(var(--starasia-ui-raw-color-orange-300), 1)",
1002
+ 400: "rgba(var(--starasia-ui-raw-color-orange-400), 1)",
1003
+ 500: "rgba(var(--starasia-ui-raw-color-orange-500), 1)",
1004
+ 600: "rgba(var(--starasia-ui-raw-color-orange-600), 1)",
1005
+ 700: "rgba(var(--starasia-ui-raw-color-orange-700), 1)",
1006
+ 800: "rgba(var(--starasia-ui-raw-color-orange-800), 1)",
1007
+ 900: "rgba(var(--starasia-ui-raw-color-orange-900), 1)"
1008
+ },
1009
+ aloha: {
1010
+ 50: "rgba(var(--starasia-ui-raw-color-aloha-50), 1)",
1011
+ 100: "rgba(var(--starasia-ui-raw-color-aloha-100), 1)",
1012
+ 200: "rgba(var(--starasia-ui-raw-color-aloha-200), 1)",
1013
+ 300: "rgba(var(--starasia-ui-raw-color-aloha-300), 1)",
1014
+ 400: "rgba(var(--starasia-ui-raw-color-aloha-400), 1)",
1015
+ 500: "rgba(var(--starasia-ui-raw-color-aloha-500), 1)",
1016
+ 600: "rgba(var(--starasia-ui-raw-color-aloha-600), 1)",
1017
+ 700: "rgba(var(--starasia-ui-raw-color-aloha-700), 1)",
1018
+ 800: "rgba(var(--starasia-ui-raw-color-aloha-800), 1)",
1019
+ 900: "rgba(var(--starasia-ui-raw-color-aloha-900), 1)"
1020
+ },
1021
+ green: {
1022
+ 50: "rgba(var(--starasia-ui-raw-color-green-50), 1)",
1023
+ 100: "rgba(var(--starasia-ui-raw-color-green-100), 1)",
1024
+ 200: "rgba(var(--starasia-ui-raw-color-green-200), 1)",
1025
+ 300: "rgba(var(--starasia-ui-raw-color-green-300), 1)",
1026
+ 400: "rgba(var(--starasia-ui-raw-color-green-400), 1)",
1027
+ 500: "rgba(var(--starasia-ui-raw-color-green-500), 1)",
1028
+ 600: "rgba(var(--starasia-ui-raw-color-green-600), 1)",
1029
+ 700: "rgba(var(--starasia-ui-raw-color-green-700), 1)",
1030
+ 800: "rgba(var(--starasia-ui-raw-color-green-800), 1)",
1031
+ 900: "rgba(var(--starasia-ui-raw-color-green-900), 1)"
1032
+ }
1033
+ },
1034
+ main: {
1035
+ primary: {
1036
+ "background-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
1037
+ "text-color": "rgb(255, 255, 255)",
1038
+ "border-color": "rgb(var(--starasia-ui-raw-color-blue-700))",
1039
+ hover: {
1040
+ "background-color": "rgba(var(--starasia-ui-raw-color-blue-700), 0.9)",
1041
+ "border-color": "rgba(var(--starasia-ui-raw-color-blue-700), 0.9)",
1042
+ "text-color": "rgb(255, 255, 255)"
1043
+ },
1044
+ active: {
1045
+ "background-color": "rgb(var(--starasia-ui-raw-color-blue-800))",
1046
+ "border-color": "rgb(var(--starasia-ui-raw-color-blue-800))",
1047
+ "text-color": "rgb(255, 255, 255)",
1048
+ shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-blue-300), 0.28)"
1049
+ },
1050
+ disable: {
1051
+ "background-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.68)",
1052
+ "border-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.68)",
1053
+ "text-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)"
1054
+ }
1055
+ },
1056
+ secondary: {
1057
+ "background-color": "rgb(var(--starasia-ui-raw-color-gray-50))",
1058
+ "text-color": "rgb(72, 80, 76)",
1059
+ "border-color": "rgba(120, 134, 127, 0.2)",
1060
+ hover: {
1061
+ "background-color": "rgba(var(--starasia-ui-raw-color-gray-100), 0.9)",
1062
+ "border-color": "rgba(120, 134, 127, 0.2)",
1063
+ "text-color": "rgb(72, 80, 76)",
1064
+ shadow: "0px 0px 0px -1px #f0f0f0"
1065
+ },
1066
+ active: {
1067
+ "background-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.1)",
1068
+ "border-color": "rgba(120, 134, 127, 0.2)",
1069
+ "text-color": "rgb(72, 80, 76)",
1070
+ shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-gray-200), 0.28), 0px 0px 0px -1px #f0f0f0"
1071
+ },
1072
+ disable: {
1073
+ "background-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.68)",
1074
+ "border-color": "rgba(var(--starasia-ui-raw-color-gray-200), 0.68)",
1075
+ "text-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)"
1076
+ }
1077
+ },
1078
+ tertiary: {
1079
+ "background-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.21)",
1080
+ "text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
1081
+ "border-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.21)",
1082
+ hover: {
1083
+ "background-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.3)",
1084
+ "border-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.3)",
1085
+ "text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
1086
+ shadow: "0px 0px 0px -1px #f0f0f0"
1087
+ },
1088
+ active: {
1089
+ "background-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.46)",
1090
+ "border-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.46)",
1091
+ "text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
1092
+ shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-blue-300), 0.28)"
1093
+ },
1094
+ disable: {
1095
+ "background-color": "rgba(var(--starasia-ui-raw-color-blue-200), 0.8)",
1096
+ "border-color": "rgba(var(--starasia-ui-raw-color-blue-200), 0.8)",
1097
+ "text-color": "rgba(var(--starasia-ui-raw-color-blue-300), 0.5)"
1098
+ }
1099
+ },
1100
+ quaternary: {
1101
+ "background-color": "rgba(255, 255, 255, 0)",
1102
+ "text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
1103
+ "border-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
1104
+ hover: {
1105
+ "background-color": "rgba(255, 255, 255, 0)",
1106
+ "border-color": "rgba(var(--starasia-ui-raw-color-blue-500), 0.9)",
1107
+ "text-color": "rgba(var(--starasia-ui-raw-color-blue-500), 0.9)"
1108
+ },
1109
+ active: {
1110
+ "background-color": "rgb(255, 255, 255)",
1111
+ "border-color": "rgb(26, 117, 209)",
1112
+ "text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
1113
+ shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-blue-300), 0.28)"
1114
+ },
1115
+ disable: {
1116
+ "background-color": "rgba(255, 255, 255, 0)",
1117
+ "border-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)",
1118
+ "text-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)"
1119
+ }
1120
+ },
1121
+ link: {
1122
+ "background-color": "rgba(255, 255, 255, 0)",
1123
+ "text-color": "rgb(var(--starasia-ui-raw-color-blue-300))",
1124
+ "border-color": "rgba(255, 255, 255, 0)",
1125
+ hover: {
1126
+ "background-color": "rgba(255, 255, 255, 0)",
1127
+ "border-color": "rgba(255, 255, 255, 0)",
1128
+ "text-color": "rgba(13, 71, 161, 0.9)"
1129
+ },
1130
+ active: {
1131
+ "background-color": "rgba(255, 255, 255, 0)",
1132
+ "border-color": "rgba(255, 255, 255, 0)",
1133
+ "text-color": "rgb(var(--starasia-ui-raw-color-blue-300))"
1134
+ },
1135
+ disable: {
1136
+ "background-color": "rgba(255, 255, 255, 0)",
1137
+ "border-color": "rgba(255, 255, 255, 0)",
1138
+ "text-color": "rgba(var(--starasia-ui-raw-color-gray-500), 0.62)"
1139
+ }
1140
+ },
1141
+ success: {
1142
+ "background-color": "rgb(var(--starasia-ui-raw-color-green-500))",
1143
+ "text-color": "rgb(255, 255, 255)",
1144
+ "border-color": "rgb(var(--starasia-ui-raw-color-green-500))",
1145
+ hover: {
1146
+ "background-color": "rgba(var(--starasia-ui-raw-color-green-500), 0.9)",
1147
+ "border-color": "rgba(var(--starasia-ui-raw-color-green-500), 0.9)",
1148
+ "text-color": "rgb(255, 255, 255)"
1149
+ },
1150
+ active: {
1151
+ "background-color": "rgba(var(--starasia-ui-raw-color-green-600), 0.75)",
1152
+ "border-color": "rgba(var(--starasia-ui-raw-color-green-600), 0.75)",
1153
+ "text-color": "rgb(255, 255, 255)",
1154
+ shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-green-500), 0.28)"
1155
+ },
1156
+ disable: {
1157
+ "background-color": "rgb(var(--starasia-ui-raw-color-gray-400))",
1158
+ "border-color": "rgb(var(--starasia-ui-raw-color-gray-400))",
1159
+ "text-color": "rgba(120, 134, 127, 0.62)"
1160
+ }
1161
+ },
1162
+ danger: {
1163
+ "background-color": "rgb(var(--starasia-ui-raw-color-red-600))",
1164
+ "text-color": "rgb(255, 255, 255)",
1165
+ "border-color": "rgb(var(--starasia-ui-raw-color-red-600))",
1166
+ hover: {
1167
+ "background-color": "rgba(var(--starasia-ui-raw-color-red-600), 0.9)",
1168
+ "border-color": "rgba(var(--starasia-ui-raw-color-red-600), 0.9)",
1169
+ "text-color": "rgb(255, 255, 255)"
1170
+ },
1171
+ active: {
1172
+ "background-color": "rgba(var(--starasia-ui-raw-color-red-700), 0.68)",
1173
+ "border-color": "rgba(var(--starasia-ui-raw-color-red-700), 0.68)",
1174
+ "text-color": "rgb(255, 255, 255)",
1175
+ shadow: "0px 0px 0px 3px rgba(var(--starasia-ui-raw-color-red-600), 0.28)"
1176
+ },
1177
+ disable: {
1178
+ "background-color": "rgb(var(--starasia-ui-raw-color-red-300))",
1179
+ "border-color": "rgb(var(--starasia-ui-raw-color-red-300))",
1180
+ "text-color": "rgba(201, 24, 74, 0.3)"
1181
+ }
1182
+ },
1183
+ warning: {
1184
+ "background-color": "rgb(var(--starasia-ui-raw-color-orange-600))",
1185
+ "text-color": "rgb(255, 255, 255)",
1186
+ "border-color": "rgb(var(--starasia-ui-raw-color-orange-600))",
1187
+ hover: {
1188
+ "background-color": "rgba(var(--starasia-ui-raw-color-orange-600), 0.9)",
1189
+ "border-color": "rgba(var(--starasia-ui-raw-color-orange-600), 0.9)",
1190
+ "text-color": "rgb(255, 255, 255)"
1191
+ },
1192
+ active: {
1193
+ "background-color": "rgba(var(--starasia-ui-raw-color-orange-700), 0.75)",
1194
+ "border-color": "rgba(var(--starasia-ui-raw-color-orange-700), 0.75)",
1195
+ "text-color": "rgb(255, 255, 255)",
1196
+ shadow: "0px 0px 0px 2px rgba(var(--starasia-ui-raw-color-orange-600), 0.28)"
1197
+ },
1198
+ disable: {
1199
+ "background-color": "rgb(var(--starasia-ui-raw-color-orange-300))",
1200
+ "border-color": "rgb(var(--starasia-ui-raw-color-orange-300))",
1201
+ "text-color": "rgb(152, 104, 0)"
1202
+ }
1203
+ }
1204
+ },
1205
+ brand: {
1206
+ primary: {
1207
+ default: "var(--starasia-ui-color-blue-700)",
1208
+ secondary: "var(--starasia-ui-color-blue-300)",
1209
+ tertiary: "var(--starasia-ui-color-blue-50)"
1210
+ },
1211
+ secondary: {
1212
+ default: "var(--starasia-ui-color-pink-700)",
1213
+ secondary: "var(--starasia-ui-color-pink-300)",
1214
+ tertiary: "var(--starasia-ui-color-pink-50)"
1215
+ }
1216
+ },
1217
+ text: {
1218
+ default: "var(--starasia-ui-color-gray-900)",
1219
+ secondary: "var(--starasia-ui-color-gray-700)",
1220
+ tertiary: "var(--starasia-ui-color-gray-500)",
1221
+ disable: "var(--starasia-ui-color-gray-200)",
1222
+ white: "#ffffff"
1223
+ },
1224
+ utility: {
1225
+ success: {
1226
+ default: "var(--starasia-ui-color-green-600)",
1227
+ secondary: "var(--starasia-ui-color-green-200)",
1228
+ tertiary: "var(--starasia-ui-color-green-50)"
1229
+ },
1230
+ danger: {
1231
+ default: "var(--starasia-ui-color-red-600)",
1232
+ secondary: "var(--starasia-ui-color-red-200)",
1233
+ tertiary: "var(--starasia-ui-color-red-50)"
1234
+ },
1235
+ warning: {
1236
+ default: "var(--starasia-ui-color-orange-600)",
1237
+ secondary: "var(--starasia-ui-color-orange-200)",
1238
+ tertiary: "var(--starasia-ui-color-orange-50)"
1239
+ },
1240
+ information: {
1241
+ default: "var(--starasia-ui-color-blue-600)",
1242
+ secondary: "var(--starasia-ui-color-blue-200)",
1243
+ tertiary: "var(--starasia-ui-color-blue-50)"
1244
+ },
1245
+ dark: {
1246
+ default: "var(--starasia-ui-color-gray-600)",
1247
+ secondary: "var(--starasia-ui-color-gray-200)",
1248
+ tertiary: "var(--starasia-ui-color-gray-50)"
1249
+ },
1250
+ fill: {
1251
+ default: "rgba(120, 134, 127, 0.2)",
1252
+ secondary: "rgba(120, 134, 127, 0.16)",
1253
+ tertiary: "rgba(120, 134, 127, 0.1)"
1254
+ }
1255
+ }
1256
+ }, Aa = {
1257
+ radii: {
1258
+ none: "0",
1259
+ xs: "0.25rem",
1260
+ sm: "0.375rem",
1261
+ md: "0.5rem",
1262
+ lg: "0.75rem",
1263
+ xl: "0.875rem",
1264
+ "2xl": "1rem",
1265
+ full: "12rem"
1266
+ },
1267
+ spacing: {
1268
+ 0: "0rem",
1269
+ 1: "0.063rem",
1270
+ 2: "0.125rem",
1271
+ 4: "0.25rem",
1272
+ 6: "0.375rem",
1273
+ 8: "0.5rem",
1274
+ 10: "0.625rem",
1275
+ 12: "0.75rem",
1276
+ 14: "0.875rem",
1277
+ 16: "1rem",
1278
+ 18: "1.125rem",
1279
+ 20: "1.25rem",
1280
+ 24: "1.5rem",
1281
+ 28: "1.75rem",
1282
+ 32: "2rem",
1283
+ 36: "2.25rem",
1284
+ 40: "2.5rem",
1285
+ 48: "3rem",
1286
+ 64: "4rem",
1287
+ 80: "5rem",
1288
+ 96: "6rem",
1289
+ 128: "8rem",
1290
+ 160: "10rem",
1291
+ 192: "12rem",
1292
+ 224: "14rem",
1293
+ 256: "16rem",
1294
+ xs: "0.25rem",
1295
+ sm: "0.5rem",
1296
+ md: "0.75rem",
1297
+ lg: "1rem",
1298
+ xl: "1.5rem",
1299
+ "2xl": "2rem",
1300
+ "3xl": "4rem"
1301
+ },
1302
+ border: {
1303
+ default: "1px solid var(--starasia-ui-color-border)"
1304
+ },
1305
+ shadows: {
1306
+ sm: "0 1px 2px 0 rgb(0 0 0 / 0.05)",
1307
+ md: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
1308
+ lg: "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
1309
+ xl: "0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)",
1310
+ "2xl": "0 25px 50px -12px rgb(0 0 0 / 0.25)",
1311
+ inner: "inset 0 2px 4px 0 rgb(0 0 0 / 0.05)",
1312
+ unnamed: "0px 4px 35px 0px rgba(112, 144, 176, 0.25)"
1313
+ },
1314
+ borderRadius: {
1315
+ rounded: "8px",
1316
+ circular: "192px"
1317
+ }
1318
+ }, Ia = {
1319
+ fontSizes: {
1320
+ xs: "0.625rem",
1321
+ sm: "0.75rem",
1322
+ md: "0.875rem",
1323
+ lg: "1rem",
1324
+ xl: "1.125rem",
1325
+ "2xl": "1.25rem",
1326
+ "3xl": "1.5rem",
1327
+ "4xl": "2rem",
1328
+ "5xl": "2.25rem",
1329
+ "6xl": "3rem"
1330
+ },
1331
+ fontWeights: {
1332
+ hairline: 50,
1333
+ thin: 100,
1334
+ light: 200,
1335
+ normal: 300,
1336
+ medium: 400,
1337
+ semibold: 500,
1338
+ bold: 600,
1339
+ extrabold: 700,
1340
+ black: 800
1341
+ },
1342
+ lineHeights: {
1343
+ 3: "0.75rem",
1344
+ 4: "1rem",
1345
+ 5: "1.25rem",
1346
+ 6: "1.5rem",
1347
+ 7: "1.75rem",
1348
+ 8: "1.875rem",
1349
+ 9: "2.25rem",
1350
+ 10: "2.5rem",
1351
+ none: 1,
1352
+ tight: 1.25,
1353
+ snug: 1.375,
1354
+ normal: 1.5,
1355
+ relaxed: 1.625,
1356
+ loose: 2
1357
+ }
1358
+ }, Wa = {
1359
+ colors: Da,
1360
+ metrics: Aa,
1361
+ font: Ia
1362
+ }, ar = Wa, Ar = (o, t) => {
1363
+ const i = {};
1364
+ return Object.keys(o).forEach((s) => {
1365
+ if (o != null && o[s] && typeof (o == null ? void 0 : o[s]) == "object") {
1366
+ i[s] = {
1367
+ ...o == null ? void 0 : o[s],
1368
+ ...t == null ? void 0 : t[s],
1369
+ ...Ar(o == null ? void 0 : o[s], t == null ? void 0 : t[s])
1370
+ };
1371
+ return;
1372
+ }
1373
+ i[s] = (t == null ? void 0 : t[s]) || (o == null ? void 0 : o[s]);
1374
+ }), i;
1375
+ };
1376
+ function B() {
1377
+ const o = Ea(Dr), t = Tr(
1378
+ () => ({
1379
+ ...ar,
1380
+ ...o.theme,
1381
+ ...Ar(ar, o.theme)
1382
+ }),
1383
+ [o.theme, ar]
1384
+ );
1385
+ return { ...o, theme: t };
1386
+ }
1387
+ function La() {
1388
+ const { theme: o } = B();
1389
+ return o.colors;
1390
+ }
1391
+ function Ma() {
1392
+ var t;
1393
+ const { theme: o } = B();
1394
+ return (t = o.metrics) == null ? void 0 : t.spacing;
1395
+ }
1396
+ function Va() {
1397
+ var t;
1398
+ const { theme: o } = B();
1399
+ return (t = o.metrics) == null ? void 0 : t.radii;
1400
+ }
1401
+ function Ua() {
1402
+ var t;
1403
+ const { theme: o } = B();
1404
+ return (t = o == null ? void 0 : o.metrics) == null ? void 0 : t.shadows;
1405
+ }
1406
+ function Ja(o) {
1407
+ return o;
1408
+ }
1409
+ export {
1410
+ Dr as ThemeContext,
1411
+ Na as ThemeProvider,
1412
+ Ja as createTheme,
1413
+ La as useColor,
1414
+ Va as useRadius,
1415
+ Ua as useShadow,
1416
+ Ma as useSpacing,
1417
+ B as useTheme
1418
+ };