@editora/ui-react 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,1884 +0,0 @@
1
- function Fa() {
2
- return typeof window < "u" && typeof document < "u";
3
- }
4
- function Wa(e) {
5
- return e ? typeof e == "string" ? e : e instanceof Error && e.message ? e.message : "Something went wrong. Please try again." : "Something went wrong. Please try again.";
6
- }
7
- function $a(e) {
8
- return e === "replace" || e === "stack" ? e : "queue";
9
- }
10
- function Va(e) {
11
- return `ui-alert-dialog-${e}`;
12
- }
13
- function Ka(e, a) {
14
- var i, r;
15
- const t = e.kind === "alert" && a.action === "cancel" ? "dismiss" : a.action, o = (i = e.dialog) == null ? void 0 : i.getChecked();
16
- if (e.kind === "prompt") {
17
- const c = ((r = e.dialog) == null ? void 0 : r.getInputValue()) ?? e.value ?? "";
18
- return {
19
- id: e.id,
20
- action: t,
21
- value: c,
22
- checked: o,
23
- source: a.source,
24
- reason: a.reason
25
- };
26
- }
27
- return {
28
- id: e.id,
29
- action: t,
30
- value: e.value,
31
- checked: o,
32
- source: a.source,
33
- reason: a.reason
34
- };
35
- }
36
- function ba(e, a, i) {
37
- var r, t, o;
38
- return e.kind === "prompt" ? {
39
- id: e.id,
40
- action: "dismiss",
41
- value: ((r = e.dialog) == null ? void 0 : r.getInputValue()) ?? e.value ?? "",
42
- checked: (t = e.dialog) == null ? void 0 : t.getChecked(),
43
- source: a,
44
- reason: i
45
- } : {
46
- id: e.id,
47
- action: "dismiss",
48
- value: e.value,
49
- checked: (o = e.dialog) == null ? void 0 : o.getChecked(),
50
- source: a,
51
- reason: i
52
- };
53
- }
54
- function Na(e) {
55
- return e === "esc" || e === "backdrop" || e === "close-icon" || e === "abort" || e === "unmount" || e === "replace" || e === "programmatic" ? e : "abort";
56
- }
57
- class Ga {
58
- constructor(a) {
59
- this._container = null, this._ownsContainer = !1, this._queue = [], this._active = [], this._disposed = !1, this._seed = 0, this._defaults = {}, this._container = a ?? null;
60
- }
61
- setContainer(a) {
62
- this._container = a, this._ownsContainer = !1;
63
- }
64
- setDefaults(a) {
65
- this._defaults = a ? { ...a } : {};
66
- }
67
- alert(a = {}) {
68
- return this._enqueue("alert", a);
69
- }
70
- confirm(a = {}) {
71
- return this._enqueue("confirm", a);
72
- }
73
- prompt(a = {}) {
74
- return this._enqueue("prompt", a);
75
- }
76
- destroy(a = "unmount") {
77
- this._disposed = !0;
78
- const i = [...this._active, ...this._queue];
79
- this._queue = [];
80
- for (const r of i)
81
- this._settle(r, ba(r, a), !1);
82
- this._active = [], this._ownsContainer && this._container && this._container.parentElement && this._container.parentElement.removeChild(this._container), this._container = null, this._ownsContainer = !1;
83
- }
84
- _enqueue(a, i) {
85
- const r = this._mergeOptions(i);
86
- if (!Fa() || this._disposed) {
87
- const c = {
88
- id: r.id || Va(++this._seed),
89
- action: "dismiss",
90
- source: "unmount"
91
- };
92
- return Promise.resolve(c);
93
- }
94
- const t = r.id || Va(++this._seed), o = $a(r.mode);
95
- return new Promise((c) => {
96
- var u;
97
- const s = {
98
- id: t,
99
- kind: a,
100
- mode: o,
101
- options: r,
102
- settled: !1,
103
- processing: !1,
104
- resolve: c,
105
- cleanup: []
106
- };
107
- if ((u = r.signal) != null && u.aborted) {
108
- this._settle(s, ba(s, "abort"), !1);
109
- return;
110
- }
111
- if (o === "replace") {
112
- const f = this._active[this._active.length - 1];
113
- f && this._settle(f, ba(f, "replace", "replace"), !1, !1), this._open(s);
114
- return;
115
- }
116
- if (o === "stack") {
117
- this._open(s);
118
- return;
119
- }
120
- if (this._active.length > 0) {
121
- this._queue.push(s);
122
- return;
123
- }
124
- this._open(s);
125
- });
126
- }
127
- _open(a) {
128
- var i;
129
- const r = this._ensureContainer();
130
- if (!r) {
131
- this._settle(a, ba(a, "unmount"), !1);
132
- return;
133
- }
134
- const t = document.createElement("ui-alert-dialog");
135
- a.dialog = t, a.checked = !!((i = a.options.checkbox) != null && i.defaultChecked);
136
- const o = this._buildConfig(a);
137
- t.dialogId = a.id, t.config = o;
138
- const c = (f) => {
139
- if (a.settled)
140
- return;
141
- const x = f.detail;
142
- a.value = x == null ? void 0 : x.inputValue, a.checked = x == null ? void 0 : x.checked;
143
- const m = this._validatePrompt(a);
144
- if (m) {
145
- f.preventDefault(), t.setError(m);
146
- return;
147
- }
148
- if (!a.options.onConfirm) {
149
- t.clearError();
150
- return;
151
- }
152
- f.preventDefault(), a.processing = !0, t.state = "loading", t.clearError(), Promise.resolve(
153
- a.options.onConfirm({
154
- id: a.id,
155
- value: a.value,
156
- checked: a.checked,
157
- dialog: t,
158
- signal: a.options.signal
159
- })
160
- ).then(() => {
161
- a.processing = !1, t.state = "idle", t.clearError(), a.settled || t.close("confirm");
162
- }).catch((h) => {
163
- a.processing = !1, t.state = "error", t.setError(Wa(h));
164
- });
165
- }, u = () => {
166
- a.settled || (a.value = t.getInputValue(), a.checked = t.getChecked(), t.state === "error" && t.clearError());
167
- }, s = (f) => {
168
- if (a.settled)
169
- return;
170
- const x = f.detail;
171
- this._handleClose(a, x);
172
- };
173
- if (t.addEventListener("ui-confirm", c), t.addEventListener("ui-change", u), t.addEventListener("ui-close", s), a.cleanup.push(() => t.removeEventListener("ui-confirm", c)), a.cleanup.push(() => t.removeEventListener("ui-change", u)), a.cleanup.push(() => t.removeEventListener("ui-close", s)), a.options.signal) {
174
- const f = () => {
175
- a.settled || this._settle(a, ba(a, "abort"), !1);
176
- };
177
- a.options.signal.addEventListener("abort", f, { once: !0 }), a.cleanup.push(() => {
178
- var x;
179
- return (x = a.options.signal) == null ? void 0 : x.removeEventListener("abort", f);
180
- });
181
- }
182
- this._active.push(a), r.appendChild(t), t.open = !0, this._updateStackZIndex();
183
- }
184
- _validatePrompt(a) {
185
- var i;
186
- if (a.kind !== "prompt")
187
- return null;
188
- const r = a.options.input, t = ((i = a.dialog) == null ? void 0 : i.getInputValue()) ?? a.value ?? "";
189
- return r != null && r.required && !t.trim() ? "Please enter a value." : r != null && r.validate ? r.validate(t) : null;
190
- }
191
- _settle(a, i, r, t = !0) {
192
- if (!a.settled) {
193
- if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((o) => o !== a), this._queue = this._queue.filter((o) => o !== a), a.dialog) {
194
- const o = a.dialog;
195
- if (!r && o.open) {
196
- const c = Na(i.source);
197
- o.close("dismiss", c, i.reason);
198
- }
199
- o.parentElement && o.parentElement.removeChild(o);
200
- }
201
- a.resolve(i), this._updateStackZIndex(), !this._disposed && t && this._drainQueue();
202
- }
203
- }
204
- _cleanupRequest(a) {
205
- for (const i of a.cleanup.splice(0))
206
- try {
207
- i();
208
- } catch {
209
- }
210
- }
211
- _drainQueue() {
212
- if (this._active.length > 0)
213
- return;
214
- const a = this._queue.shift();
215
- a && this._open(a);
216
- }
217
- _buildConfig(a) {
218
- var i, r, t;
219
- const o = a.options, c = a.kind === "prompt", u = a.kind === "alert", s = c ? o.input : void 0;
220
- return {
221
- id: a.id,
222
- title: o.title,
223
- description: o.description,
224
- confirmText: o.confirmText || (u ? "OK" : "Confirm"),
225
- cancelText: o.cancelText || "Cancel",
226
- loadingText: o.loadingText,
227
- errorMessage: o.errorMessage,
228
- dismissible: o.dismissible ?? !0,
229
- closeOnEsc: o.closeOnEsc,
230
- closeOnBackdrop: o.closeOnBackdrop,
231
- lockWhileLoading: o.lockWhileLoading ?? !0,
232
- role: o.role || "alertdialog",
233
- tone: o.tone || (u ? "info" : c ? "neutral" : "warning"),
234
- size: o.size || "md",
235
- variant: o.variant || "surface",
236
- radius: o.radius,
237
- elevation: o.elevation || "low",
238
- indicator: o.indicator || "line",
239
- initialFocus: o.initialFocus,
240
- ariaLabel: o.ariaLabel,
241
- ariaLabelledby: o.ariaLabelledby,
242
- ariaDescribedby: o.ariaDescribedby,
243
- headless: o.headless,
244
- showCancel: !u,
245
- showClose: o.dismissible ?? !0,
246
- input: {
247
- enabled: c,
248
- label: s == null ? void 0 : s.label,
249
- placeholder: s == null ? void 0 : s.placeholder,
250
- value: (s == null ? void 0 : s.defaultValue) || "",
251
- required: s == null ? void 0 : s.required
252
- },
253
- checkbox: {
254
- enabled: !!((i = o.checkbox) != null && i.enabled),
255
- label: (r = o.checkbox) == null ? void 0 : r.label,
256
- checked: (t = o.checkbox) == null ? void 0 : t.defaultChecked
257
- }
258
- };
259
- }
260
- _buildLifecycleContext(a) {
261
- var i, r;
262
- return {
263
- id: a.id,
264
- value: ((i = a.dialog) == null ? void 0 : i.getInputValue()) ?? a.value,
265
- checked: ((r = a.dialog) == null ? void 0 : r.getChecked()) ?? a.checked,
266
- dialog: a.dialog,
267
- signal: a.options.signal
268
- };
269
- }
270
- _handleClose(a, i) {
271
- const r = Ka(a, i);
272
- if (i.action === "cancel" && a.options.onCancel) {
273
- Promise.resolve(a.options.onCancel(this._buildLifecycleContext(a))).finally(() => {
274
- this._settle(a, r, !0);
275
- });
276
- return;
277
- }
278
- if (i.action === "dismiss" && a.options.onDismiss) {
279
- Promise.resolve(
280
- a.options.onDismiss({
281
- ...this._buildLifecycleContext(a),
282
- source: i.source || "programmatic",
283
- reason: i.reason
284
- })
285
- ).finally(() => {
286
- this._settle(a, r, !0);
287
- });
288
- return;
289
- }
290
- this._settle(a, r, !0);
291
- }
292
- _mergeOptions(a) {
293
- const i = this._defaults;
294
- return {
295
- ...i,
296
- ...a,
297
- checkbox: {
298
- ...i.checkbox || {},
299
- ...a.checkbox || {}
300
- }
301
- };
302
- }
303
- _ensureContainer() {
304
- if (!Fa())
305
- return null;
306
- if (this._container && this._container.isConnected)
307
- return this._container;
308
- let a = document.querySelector('[data-ui-alert-dialog-host="true"]');
309
- return a ? this._ownsContainer = !1 : (a = document.createElement("div"), a.setAttribute("data-ui-alert-dialog-host", "true"), a.style.position = "relative", a.style.zIndex = "1000", document.body.appendChild(a), this._ownsContainer = !0), this._container = a, a;
310
- }
311
- _updateStackZIndex() {
312
- for (let a = 0; a < this._active.length; a += 1) {
313
- const i = this._active[a];
314
- i.dialog && (i.dialog.style.setProperty("--ui-alert-backdrop-z", String(1e3 + a * 2)), i.dialog.style.setProperty("--ui-alert-z", String(1001 + a * 2)));
315
- }
316
- }
317
- }
318
- function te(e = {}) {
319
- return new Ga(e.container ?? null);
320
- }
321
- function ja() {
322
- return typeof window < "u" && typeof document < "u";
323
- }
324
- function Ja(e) {
325
- return e === "replace" || e === "stack" ? e : "queue";
326
- }
327
- function Ba(e) {
328
- return `ui-dialog-${e}`;
329
- }
330
- function Xa(e) {
331
- return e ? typeof e == "string" ? e : e instanceof Error && e.message ? e.message : "Something went wrong. Please try again." : "Something went wrong. Please try again.";
332
- }
333
- class Ya {
334
- constructor(a) {
335
- this._container = null, this._ownsContainer = !1, this._queue = [], this._active = [], this._disposed = !1, this._seed = 0, this._container = a ?? null;
336
- }
337
- setContainer(a) {
338
- this._container = a, this._ownsContainer = !1;
339
- }
340
- open(a = {}) {
341
- return this._enqueue(a);
342
- }
343
- confirm(a = {}) {
344
- return this._enqueue({ ...a, showCancel: a.showCancel ?? !0 });
345
- }
346
- destroy(a = "unmount") {
347
- this._disposed = !0;
348
- const i = [...this._active, ...this._queue];
349
- this._queue = [];
350
- for (const r of i)
351
- this._settle(r, {
352
- id: r.id,
353
- action: "dismiss",
354
- source: a,
355
- reason: a
356
- }, !1);
357
- this._active = [], this._ownsContainer && this._container && this._container.parentElement && this._container.parentElement.removeChild(this._container), this._container = null, this._ownsContainer = !1;
358
- }
359
- _enqueue(a) {
360
- if (!ja() || this._disposed)
361
- return Promise.resolve({
362
- id: a.id || Ba(++this._seed),
363
- action: "dismiss",
364
- source: "unmount"
365
- });
366
- const i = a.id || Ba(++this._seed), r = Ja(a.mode);
367
- return new Promise((t) => {
368
- var o;
369
- const c = {
370
- id: i,
371
- mode: r,
372
- options: a,
373
- settled: !1,
374
- resolve: t,
375
- cleanup: []
376
- };
377
- if ((o = a.signal) != null && o.aborted) {
378
- this._settle(c, { id: i, action: "dismiss", source: "abort" }, !1);
379
- return;
380
- }
381
- if (r === "replace") {
382
- const u = this._active[this._active.length - 1];
383
- u && this._settle(u, { id: u.id, action: "dismiss", source: "replace", reason: "replace" }, !1, !1), this._open(c);
384
- return;
385
- }
386
- if (r === "stack") {
387
- this._open(c);
388
- return;
389
- }
390
- if (this._active.length > 0) {
391
- this._queue.push(c);
392
- return;
393
- }
394
- this._open(c);
395
- });
396
- }
397
- _open(a) {
398
- const i = this._ensureContainer();
399
- if (!i) {
400
- this._settle(a, {
401
- id: a.id,
402
- action: "dismiss",
403
- source: "unmount"
404
- }, !1);
405
- return;
406
- }
407
- const r = document.createElement("ui-dialog");
408
- a.dialog = r;
409
- const t = this._buildConfig(a.options, a.id);
410
- r.dialogId = a.id, r.config = t;
411
- const o = (u) => {
412
- if (a.settled)
413
- return;
414
- const s = u.detail;
415
- if (a.resultFormData = s == null ? void 0 : s.formData, !a.options.onSubmit) {
416
- r.clearError();
417
- return;
418
- }
419
- u.preventDefault(), r.state = "loading", r.clearError(), Promise.resolve(
420
- a.options.onSubmit({
421
- id: a.id,
422
- dialog: r,
423
- signal: a.options.signal,
424
- formData: s == null ? void 0 : s.formData
425
- })
426
- ).then(() => {
427
- a.settled || (r.state = "idle", r.clearError(), r.close("submit"));
428
- }).catch((f) => {
429
- r.state = "error", r.setError(Xa(f));
430
- });
431
- }, c = (u) => {
432
- if (a.settled)
433
- return;
434
- const s = u.detail;
435
- this._settle(a, {
436
- id: a.id,
437
- action: s.action,
438
- source: s.source,
439
- reason: s.reason,
440
- formData: a.resultFormData
441
- }, !0);
442
- };
443
- if (r.addEventListener("ui-submit", o), r.addEventListener("ui-close", c), a.cleanup.push(() => r.removeEventListener("ui-submit", o)), a.cleanup.push(() => r.removeEventListener("ui-close", c)), a.options.signal) {
444
- const u = () => {
445
- a.settled || this._settle(a, {
446
- id: a.id,
447
- action: "dismiss",
448
- source: "abort"
449
- }, !1);
450
- };
451
- a.options.signal.addEventListener("abort", u, { once: !0 }), a.cleanup.push(() => {
452
- var s;
453
- return (s = a.options.signal) == null ? void 0 : s.removeEventListener("abort", u);
454
- });
455
- }
456
- this._active.push(a), i.appendChild(r), r.openDialog(), this._updateStackZIndex();
457
- }
458
- _settle(a, i, r, t = !0) {
459
- if (!a.settled) {
460
- if (a.settled = !0, this._cleanupRequest(a), this._active = this._active.filter((o) => o !== a), this._queue = this._queue.filter((o) => o !== a), a.dialog) {
461
- const o = a.dialog;
462
- !r && o.open && o.close("dismiss", i.source || "abort", i.reason), o.parentElement && o.parentElement.removeChild(o);
463
- }
464
- a.resolve(i), this._updateStackZIndex(), !this._disposed && t && this._drainQueue();
465
- }
466
- }
467
- _cleanupRequest(a) {
468
- for (const i of a.cleanup.splice(0))
469
- try {
470
- i();
471
- } catch {
472
- }
473
- }
474
- _drainQueue() {
475
- if (this._active.length > 0)
476
- return;
477
- const a = this._queue.shift();
478
- a && this._open(a);
479
- }
480
- _buildConfig(a, i) {
481
- return {
482
- id: i,
483
- title: a.title,
484
- description: a.description,
485
- submitText: a.submitText || "Submit",
486
- cancelText: a.cancelText || "Cancel",
487
- loadingText: a.loadingText,
488
- errorMessage: a.errorMessage,
489
- dismissible: a.dismissible ?? !0,
490
- closeOnOverlay: a.closeOnOverlay,
491
- closeOnEsc: a.closeOnEsc,
492
- lockWhileLoading: a.lockWhileLoading ?? !0,
493
- role: a.role || "dialog",
494
- size: a.size || "md",
495
- initialFocus: a.initialFocus,
496
- ariaLabel: a.ariaLabel,
497
- ariaLabelledby: a.ariaLabelledby,
498
- ariaDescribedby: a.ariaDescribedby,
499
- headless: a.headless,
500
- showCancel: a.showCancel ?? !0,
501
- showClose: a.showClose ?? a.dismissible ?? !0
502
- };
503
- }
504
- _ensureContainer() {
505
- if (!ja())
506
- return null;
507
- if (this._container && this._container.isConnected)
508
- return this._container;
509
- let a = document.querySelector('[data-ui-dialog-host="true"]');
510
- return a ? this._ownsContainer = !1 : (a = document.createElement("div"), a.setAttribute("data-ui-dialog-host", "true"), a.style.position = "relative", a.style.zIndex = "1200", document.body.appendChild(a), this._ownsContainer = !0), this._container = a, a;
511
- }
512
- _updateStackZIndex() {
513
- for (let a = 0; a < this._active.length; a += 1) {
514
- const i = this._active[a];
515
- i.dialog && (i.dialog.style.setProperty("--ui-dialog-backdrop-z", String(1200 + a * 2)), i.dialog.style.setProperty("--ui-dialog-z", String(1201 + a * 2)));
516
- }
517
- }
518
- }
519
- function le(e = {}) {
520
- return new Ya(e.container ?? null);
521
- }
522
- const Ua = {
523
- 1: "#0000000d",
524
- 2: "#0000001a",
525
- 3: "#00000026",
526
- 4: "#0003",
527
- 5: "#0000004d",
528
- 6: "#0006",
529
- 7: "#00000080",
530
- 8: "#0009",
531
- 9: "#000000b3",
532
- 10: "#000c",
533
- 11: "#000000e6",
534
- 12: "#000000f2"
535
- }, Qa = {
536
- 1: "#ffffff0d",
537
- 2: "#ffffff1a",
538
- 3: "#ffffff26",
539
- 4: "#fff3",
540
- 5: "#ffffff4d",
541
- 6: "#fff6",
542
- 7: "#ffffff80",
543
- 8: "#fff9",
544
- 9: "#ffffffb3",
545
- 10: "#fffc",
546
- 11: "#ffffffe6",
547
- 12: "#fffffff2"
548
- }, v = {
549
- amber: {
550
- light: {
551
- scale: {
552
- 1: "#fefdfb",
553
- 2: "#fefbe9",
554
- 3: "#fff7c2",
555
- 4: "#ffee9c",
556
- 5: "#fbe577",
557
- 6: "#f3d673",
558
- 7: "#e9c162",
559
- 8: "#e2a336",
560
- 9: "#ffc53d",
561
- 10: "#ffba18",
562
- 11: "#ab6400",
563
- 12: "#4f3422"
564
- },
565
- alphaScale: {
566
- 1: "#c0800004",
567
- 2: "#f4d10016",
568
- 3: "#ffde003d",
569
- 4: "#ffd40063",
570
- 5: "#f8cf0088",
571
- 6: "#eab5008c",
572
- 7: "#dc9b009d",
573
- 8: "#da8a00c9",
574
- 9: "#ffb300c2",
575
- 10: "#ffb300e7",
576
- 11: "#ab6400",
577
- 12: "#341500dd"
578
- },
579
- contrast: "#21201c",
580
- surface: "#fefae4cc",
581
- indicator: "#ffc53d",
582
- track: "#ffc53d"
583
- },
584
- dark: {
585
- scale: {
586
- 1: "#16120c",
587
- 2: "#1d180f",
588
- 3: "#302008",
589
- 4: "#3f2700",
590
- 5: "#4d3000",
591
- 6: "#5c3d05",
592
- 7: "#714f19",
593
- 8: "#8f6424",
594
- 9: "#ffc53d",
595
- 10: "#ffd60a",
596
- 11: "#ffca16",
597
- 12: "#ffe7b3"
598
- },
599
- alphaScale: {
600
- 1: "#e63c0006",
601
- 2: "#fd9b000d",
602
- 3: "#fa820022",
603
- 4: "#fc820032",
604
- 5: "#fd8b0041",
605
- 6: "#fd9b0051",
606
- 7: "#ffab2567",
607
- 8: "#ffae3587",
608
- 9: "#ffc53d",
609
- 10: "#ffd60a",
610
- 11: "#ffca16",
611
- 12: "#ffe7b3"
612
- },
613
- contrast: "#21201c",
614
- surface: "#271f1380",
615
- indicator: "#ffc53d",
616
- track: "#ffc53d"
617
- }
618
- },
619
- blue: {
620
- light: {
621
- scale: {
622
- 1: "#fbfdff",
623
- 2: "#f4faff",
624
- 3: "#e6f4fe",
625
- 4: "#d5efff",
626
- 5: "#c2e5ff",
627
- 6: "#acd8fc",
628
- 7: "#8ec8f6",
629
- 8: "#5eb1ef",
630
- 9: "#0090ff",
631
- 10: "#0588f0",
632
- 11: "#0d74ce",
633
- 12: "#113264"
634
- },
635
- alphaScale: {
636
- 1: "#0080ff04",
637
- 2: "#008cff0b",
638
- 3: "#008ff519",
639
- 4: "#009eff2a",
640
- 5: "#0093ff3d",
641
- 6: "#0088f653",
642
- 7: "#0083eb71",
643
- 8: "#0084e6a1",
644
- 9: "#0090ff",
645
- 10: "#0086f0fa",
646
- 11: "#006dcbf2",
647
- 12: "#002359ee"
648
- },
649
- contrast: "#ffffff",
650
- surface: "#f1f9ffcc",
651
- indicator: "#0090ff",
652
- track: "#0090ff"
653
- },
654
- dark: {
655
- scale: {
656
- 1: "#0d1520",
657
- 2: "#111927",
658
- 3: "#0d2847",
659
- 4: "#003362",
660
- 5: "#004074",
661
- 6: "#104d87",
662
- 7: "#205d9e",
663
- 8: "#2870bd",
664
- 9: "#0090ff",
665
- 10: "#3b9eff",
666
- 11: "#70b8ff",
667
- 12: "#c2e6ff"
668
- },
669
- alphaScale: {
670
- 1: "#004df211",
671
- 2: "#1166fb18",
672
- 3: "#0077ff3a",
673
- 4: "#0075ff57",
674
- 5: "#0081fd6b",
675
- 6: "#0f89fd7f",
676
- 7: "#2a91fe98",
677
- 8: "#3094feb9",
678
- 9: "#0090ff",
679
- 10: "#3b9eff",
680
- 11: "#70b8ff",
681
- 12: "#c2e6ff"
682
- },
683
- contrast: "#ffffff",
684
- surface: "#0f274380",
685
- indicator: "#0090ff",
686
- track: "#0090ff"
687
- }
688
- },
689
- green: {
690
- light: {
691
- scale: {
692
- 1: "#fbfefc",
693
- 2: "#f4fbf6",
694
- 3: "#e6f6eb",
695
- 4: "#d6f1df",
696
- 5: "#c4e8d1",
697
- 6: "#adddc0",
698
- 7: "#8eceaa",
699
- 8: "#5bb98b",
700
- 9: "#30a46c",
701
- 10: "#2b9a66",
702
- 11: "#218358",
703
- 12: "#193b2d"
704
- },
705
- alphaScale: {
706
- 1: "#00c04004",
707
- 2: "#00a32f0b",
708
- 3: "#00a43319",
709
- 4: "#00a83829",
710
- 5: "#019c393b",
711
- 6: "#00963c52",
712
- 7: "#00914071",
713
- 8: "#00924ba4",
714
- 9: "#008f4acf",
715
- 10: "#008647d4",
716
- 11: "#00713fde",
717
- 12: "#002616e6"
718
- },
719
- contrast: "#ffffff",
720
- surface: "#f1faf4cc",
721
- indicator: "#30a46c",
722
- track: "#30a46c"
723
- },
724
- dark: {
725
- scale: {
726
- 1: "#0e1512",
727
- 2: "#121b17",
728
- 3: "#132d21",
729
- 4: "#113b29",
730
- 5: "#174933",
731
- 6: "#20573e",
732
- 7: "#28684a",
733
- 8: "#2f7c57",
734
- 9: "#30a46c",
735
- 10: "#33b074",
736
- 11: "#3dd68c",
737
- 12: "#b1f1cb"
738
- },
739
- alphaScale: {
740
- 1: "#00de4505",
741
- 2: "#29f99d0b",
742
- 3: "#22ff991e",
743
- 4: "#11ff9930",
744
- 5: "#2bffa23f",
745
- 6: "#44ffaa4d",
746
- 7: "#50fdac5f",
747
- 8: "#54ffad75",
748
- 9: "#44ffa49f",
749
- 10: "#43fea4ab",
750
- 11: "#46fea5d4",
751
- 12: "#bbffd7ef"
752
- },
753
- contrast: "#0f1a14",
754
- surface: "#13281e80",
755
- indicator: "#30a46c",
756
- track: "#30a46c"
757
- }
758
- },
759
- red: {
760
- light: {
761
- scale: {
762
- 1: "#fffcfc",
763
- 2: "#fff7f7",
764
- 3: "#feebec",
765
- 4: "#ffdbdc",
766
- 5: "#ffcdce",
767
- 6: "#fdbdbe",
768
- 7: "#f4a9aa",
769
- 8: "#eb8e90",
770
- 9: "#e5484d",
771
- 10: "#dc3e42",
772
- 11: "#ce2c31",
773
- 12: "#641723"
774
- },
775
- alphaScale: {
776
- 1: "#ff000003",
777
- 2: "#ff000008",
778
- 3: "#f3000d14",
779
- 4: "#ff000824",
780
- 5: "#ff000632",
781
- 6: "#f8000442",
782
- 7: "#df000356",
783
- 8: "#d2000571",
784
- 9: "#db0007b7",
785
- 10: "#d10005c1",
786
- 11: "#c40006d3",
787
- 12: "#55000de8"
788
- },
789
- contrast: "#ffffff",
790
- surface: "#fff5f5cc",
791
- indicator: "#e5484d",
792
- track: "#e5484d"
793
- },
794
- dark: {
795
- scale: {
796
- 1: "#191111",
797
- 2: "#201314",
798
- 3: "#3b1219",
799
- 4: "#500f1c",
800
- 5: "#611623",
801
- 6: "#72232d",
802
- 7: "#8c333a",
803
- 8: "#b54548",
804
- 9: "#e5484d",
805
- 10: "#ec5d5e",
806
- 11: "#ff9592",
807
- 12: "#ffd1d9"
808
- },
809
- alphaScale: {
810
- 1: "#f4121209",
811
- 2: "#f22f3e11",
812
- 3: "#ff173f2d",
813
- 4: "#fe0a3b44",
814
- 5: "#ff204756",
815
- 6: "#ff3e5668",
816
- 7: "#ff536184",
817
- 8: "#ff5d61b0",
818
- 9: "#fe4e54e4",
819
- 10: "#ff6465eb",
820
- 11: "#ff9592",
821
- 12: "#ffd1d9"
822
- },
823
- contrast: "#ffffff",
824
- surface: "#32141780",
825
- indicator: "#e5484d",
826
- track: "#e5484d"
827
- }
828
- },
829
- gray: {
830
- light: {
831
- scale: {
832
- 1: "#fcfcfc",
833
- 2: "#f9f9f9",
834
- 3: "#f0f0f0",
835
- 4: "#e8e8e8",
836
- 5: "#e0e0e0",
837
- 6: "#d9d9d9",
838
- 7: "#cecece",
839
- 8: "#bbb",
840
- 9: "#8d8d8d",
841
- 10: "#838383",
842
- 11: "#646464",
843
- 12: "#202020"
844
- },
845
- alphaScale: {
846
- 1: "#00000003",
847
- 2: "#00000006",
848
- 3: "#0000000f",
849
- 4: "#00000017",
850
- 5: "#0000001f",
851
- 6: "#00000026",
852
- 7: "#00000031",
853
- 8: "#00000044",
854
- 9: "#00000072",
855
- 10: "#0000007c",
856
- 11: "#0000009b",
857
- 12: "#000000df"
858
- },
859
- contrast: "#ffffff",
860
- surface: "#f8f8f8cc",
861
- indicator: "#8d8d8d",
862
- track: "#8d8d8d"
863
- },
864
- dark: {
865
- scale: {
866
- 1: "#111",
867
- 2: "#191919",
868
- 3: "#222",
869
- 4: "#2a2a2a",
870
- 5: "#313131",
871
- 6: "#3a3a3a",
872
- 7: "#484848",
873
- 8: "#606060",
874
- 9: "#6e6e6e",
875
- 10: "#7b7b7b",
876
- 11: "#b4b4b4",
877
- 12: "#eee"
878
- },
879
- alphaScale: {
880
- 1: "#0000",
881
- 2: "#ffffff09",
882
- 3: "#ffffff12",
883
- 4: "#ffffff1b",
884
- 5: "#ffffff22",
885
- 6: "#ffffff2c",
886
- 7: "#ffffff3b",
887
- 8: "#ffffff55",
888
- 9: "#ffffff64",
889
- 10: "#ffffff72",
890
- 11: "#ffffffaf",
891
- 12: "#ffffffed"
892
- },
893
- contrast: "#111111",
894
- surface: "#1d1d1d80",
895
- indicator: "#7b7b7b",
896
- track: "#7b7b7b"
897
- }
898
- }
899
- }, ae = {
900
- button: {
901
- "height-sm": "32px",
902
- "height-md": "36px",
903
- "height-lg": "44px",
904
- "classic-after-inset": "2px",
905
- "classic-box-shadow-top": "inset 0 0 0 1px var(--gray-a5), inset 0 1px 1px var(--white-a10)",
906
- "classic-box-shadow-bottom": "inset 0 4px 2px -2px var(--white-a9), inset 0 2px 1px -1px var(--white-a9)",
907
- "classic-disabled-box-shadow": "inset 0 0 0 1px var(--gray-a4), inset 0 1px 1px var(--gray-a1)",
908
- "classic-active-filter": "brightness(0.985) saturate(0.98)",
909
- "solid-active-filter": "brightness(0.96) saturate(1.02)"
910
- },
911
- badge: {
912
- radius: "999px",
913
- shadow: "none",
914
- "font-size": "12px",
915
- "font-weight": "600",
916
- gap: "6px",
917
- "padding-block": "5px",
918
- "padding-inline": "10px",
919
- "border-width": "1px"
920
- },
921
- blockControls: {
922
- bg: "var(--color-panel)",
923
- border: "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
924
- radius: "var(--ui-radius)",
925
- shadow: "var(--shadow-2)",
926
- gap: "6px",
927
- padding: "8px",
928
- "item-radius": "var(--ui-radius)"
929
- },
930
- box: {
931
- bg: "var(--color-panel-solid)",
932
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
933
- radius: "var(--ui-radius)",
934
- shadow: "var(--shadow-2)",
935
- backdrop: "var(--backdrop-filter-panel)"
936
- },
937
- breadcrumb: {
938
- radius: "var(--ui-radius)",
939
- gap: "8px",
940
- "font-size": "14px",
941
- shadow: "none",
942
- "item-padding-block": "4px",
943
- "item-padding-inline": "9px"
944
- },
945
- dropdown: {
946
- bg: "color-mix(in srgb, var(--color-panel-solid) 98%, transparent)",
947
- border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
948
- radius: "var(--radius-4)",
949
- shadow: "var(--shadow-5)",
950
- backdrop: "none",
951
- "content-padding": "0px",
952
- "min-width": "224px",
953
- "item-height": "36px",
954
- "item-padding-x": "12px",
955
- "item-padding-y": "8px",
956
- "item-gap": "10px",
957
- "item-radius": "0px",
958
- "item-font-size": "14px",
959
- "item-line-height": "20px",
960
- "separator-margin": "6px 10px"
961
- },
962
- select: {
963
- bg: "var(--color-panel-solid)",
964
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
965
- radius: "var(--ui-radius)",
966
- shadow: "none",
967
- "height-sm": "34px",
968
- "height-md": "42px",
969
- "height-lg": "46px",
970
- "padding-x": "12px",
971
- gap: "8px",
972
- "label-color": "var(--ui-color-text)",
973
- "description-color": "var(--ui-color-muted)",
974
- "menu-bg": "var(--color-panel-solid)",
975
- "menu-color": "var(--ui-color-text)",
976
- "menu-border": "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
977
- "menu-radius": "var(--radius-4)",
978
- "menu-shadow": "var(--shadow-5)",
979
- "menu-padding": "8px",
980
- "menu-min-width": "232px",
981
- "menu-item-height": "36px",
982
- "menu-item-padding-x": "12px",
983
- "menu-item-padding-y": "8px",
984
- "menu-item-gap": "10px",
985
- "menu-item-radius": "var(--radius-2)",
986
- "menu-item-font-size": "14px",
987
- "menu-item-line-height": "20px",
988
- "menu-separator-margin": "6px 10px"
989
- },
990
- sidebar: {
991
- bg: "var(--color-panel-solid)",
992
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
993
- radius: "4px",
994
- shadow: "var(--shadow-5)",
995
- padding: "12px",
996
- gap: "12px",
997
- "header-padding": "6px 8px 10px",
998
- "item-radius": "4px",
999
- "item-height": "45px",
1000
- "item-padding-x": "6px",
1001
- "item-padding-y": "3px",
1002
- "item-gap": "8px",
1003
- "item-font-size": "12px",
1004
- "item-line-height": "22px",
1005
- "section-gap": "10px",
1006
- "section-label-size": "12px",
1007
- "section-label-spacing": "0.06em",
1008
- "submenu-indent": "18px",
1009
- "promo-radius": "4px",
1010
- "promo-padding": "18px"
1011
- },
1012
- card: {
1013
- bg: "var(--color-panel-solid)",
1014
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1015
- radius: "var(--ui-radius)",
1016
- shadow: "var(--shadow-2)",
1017
- "hover-shadow": "var(--shadow-3)",
1018
- "active-shadow": "var(--shadow-2)",
1019
- "classic-shadow": "var(--shadow-2)",
1020
- "classic-hover-shadow": "var(--shadow-3)",
1021
- "classic-active-shadow": "var(--shadow-2)"
1022
- },
1023
- multiSelect: {
1024
- bg: "var(--color-panel-solid)",
1025
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1026
- radius: "var(--ui-radius)",
1027
- shadow: "none",
1028
- "height-sm": "38px",
1029
- "height-md": "44px",
1030
- "height-lg": "48px",
1031
- "padding-x": "10px",
1032
- "padding-y": "8px",
1033
- "panel-bg": "var(--color-panel-solid)",
1034
- "panel-border": "1px solid color-mix(in srgb, var(--gray-a5) 84%, transparent)",
1035
- "panel-radius": "calc(var(--ui-radius) + 2px)",
1036
- "panel-shadow": "var(--shadow-4)",
1037
- "chip-radius": "999px",
1038
- "chip-gap": "6px",
1039
- "chip-padding-x": "10px",
1040
- "chip-padding-y": "6px",
1041
- "option-radius": "10px",
1042
- "option-gap": "10px",
1043
- "option-padding-x": "10px",
1044
- "option-padding-y": "10px"
1045
- },
1046
- navigationMenu: {
1047
- bg: "var(--color-panel-solid)",
1048
- border: "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1049
- radius: "var(--radius-4)",
1050
- shadow: "var(--shadow-2)",
1051
- padding: "6px",
1052
- gap: "6px",
1053
- "item-radius": "var(--radius-2)",
1054
- "item-padding-x": "12px",
1055
- "item-padding-y": "8px",
1056
- "item-font-size": "14px",
1057
- "item-font-weight": "600",
1058
- "item-line-height": "20px",
1059
- "panel-bg": "var(--color-panel-solid)",
1060
- "panel-border": "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1061
- "panel-radius": "var(--radius-4)",
1062
- "panel-shadow": "var(--shadow-3)",
1063
- "panel-padding": "12px"
1064
- },
1065
- menubar: {
1066
- bg: "var(--color-panel-solid)",
1067
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1068
- radius: "var(--radius-4)",
1069
- shadow: "var(--shadow-2)",
1070
- padding: "6px",
1071
- gap: "6px",
1072
- "item-radius": "var(--radius-2)",
1073
- "item-padding-x": "14px",
1074
- "item-padding-y": "9px",
1075
- "item-font-size": "14px",
1076
- "item-font-weight": "600",
1077
- "item-line-height": "20px",
1078
- "panel-bg": "var(--color-panel-solid)",
1079
- "panel-color": "var(--ui-color-text)",
1080
- "panel-border": "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1081
- "panel-shadow": "var(--shadow-5)",
1082
- "panel-radius": "var(--radius-4)",
1083
- "panel-padding": "8px",
1084
- "panel-min-width": "232px",
1085
- "panel-item-height": "36px",
1086
- "panel-item-padding-x": "12px",
1087
- "panel-item-padding-y": "8px",
1088
- "panel-item-gap": "10px",
1089
- "panel-item-radius": "var(--radius-2)",
1090
- "panel-item-font-size": "14px",
1091
- "panel-item-line-height": "20px",
1092
- "panel-separator-margin": "6px 10px"
1093
- },
1094
- contextMenu: {
1095
- bg: "var(--color-panel-solid)",
1096
- border: "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1097
- radius: "var(--radius-4)",
1098
- shadow: "var(--shadow-5)",
1099
- padding: "8px",
1100
- "min-width": "232px",
1101
- "item-height": "36px",
1102
- "item-padding-x": "12px",
1103
- "item-padding-y": "8px",
1104
- "item-gap": "10px",
1105
- "item-radius": "var(--radius-2)",
1106
- "item-font-size": "14px",
1107
- "item-line-height": "20px",
1108
- "submenu-radius": "var(--radius-4)",
1109
- "submenu-padding": "8px"
1110
- },
1111
- alert: {
1112
- bg: "var(--color-panel-solid)",
1113
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1114
- radius: "var(--ui-radius)",
1115
- shadow: "var(--shadow-2)",
1116
- "padding-x": "16px",
1117
- "padding-y": "14px",
1118
- gap: "var(--ui-default-gap)",
1119
- "icon-size": "26px",
1120
- "dismiss-size": "28px"
1121
- },
1122
- alertDialog: {
1123
- bg: "var(--color-panel-solid)",
1124
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1125
- radius: "var(--ui-radius)",
1126
- shadow: "var(--shadow-4)",
1127
- backdrop: "var(--color-overlay)",
1128
- padding: "20px",
1129
- gap: "var(--ui-default-gap)",
1130
- "min-width": "360px",
1131
- "max-width": "min(90vw, 560px)",
1132
- "header-gap": "10px",
1133
- "footer-gap": "10px"
1134
- },
1135
- appHeader: {
1136
- bg: "var(--color-panel)",
1137
- border: "1px solid color-mix(in srgb, var(--gray-a5) 78%, transparent)",
1138
- radius: "0px",
1139
- shadow: "none",
1140
- padding: "16px",
1141
- gap: "12px",
1142
- height: "64px",
1143
- "height-dense": "52px",
1144
- "control-radius": "var(--ui-radius)"
1145
- },
1146
- aspectRatio: {
1147
- bg: "var(--color-panel-solid)",
1148
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1149
- radius: "var(--radius-4)",
1150
- shadow: "none",
1151
- "empty-bg": "color-mix(in srgb, var(--accent-a3) 24%, transparent)",
1152
- "badge-radius": "999px"
1153
- },
1154
- avatar: {
1155
- bg: "var(--color-panel-solid)",
1156
- border: "1px solid color-mix(in srgb, var(--gray-a5) 82%, transparent)",
1157
- radius: "999px",
1158
- shadow: "0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 24px rgba(15, 23, 42, 0.12)",
1159
- "size-sm": "30px",
1160
- "size-md": "40px",
1161
- "size-lg": "52px",
1162
- "badge-radius": "999px",
1163
- "status-border": "2px solid var(--color-panel-solid)"
1164
- },
1165
- menu: {
1166
- bg: "var(--color-panel-solid)",
1167
- border: "1px solid color-mix(in srgb, var(--gray-a5) 80%, transparent)",
1168
- radius: "var(--radius-4)",
1169
- shadow: "var(--shadow-5)",
1170
- backdrop: "none",
1171
- "content-padding": "8px",
1172
- "min-width": "232px",
1173
- "item-height": "36px",
1174
- "item-padding-x": "12px",
1175
- "item-padding-y": "8px",
1176
- "item-gap": "10px",
1177
- "item-radius": "var(--radius-2)",
1178
- "item-font-size": "14px",
1179
- "item-line-height": "20px",
1180
- "separator-margin": "6px 10px"
1181
- },
1182
- panel: {
1183
- bg: "var(--color-panel)",
1184
- border: "1px solid color-mix(in srgb, var(--gray-a5) 72%, transparent)",
1185
- radius: "var(--ui-radius)",
1186
- shadow: "var(--shadow-4)",
1187
- backdrop: "var(--backdrop-filter-panel)",
1188
- padding: "var(--ui-default-gap)"
1189
- },
1190
- input: {
1191
- "height-sm": "32px",
1192
- "height-md": "36px",
1193
- "height-lg": "44px",
1194
- bg: "var(--color-panel-solid)",
1195
- border: "1px solid color-mix(in srgb, var(--gray-a5) 84%, transparent)",
1196
- "focus-ring": "0 0 0 3px color-mix(in srgb, var(--accent-a5) 48%, transparent)"
1197
- }
1198
- }, ee = {
1199
- button: {
1200
- "height-sm": "32px",
1201
- "height-md": "36px",
1202
- "height-lg": "44px",
1203
- "classic-after-inset": "1px",
1204
- "classic-box-shadow-top": "inset 0 0 0 1px var(--white-a2), inset 0 4px 2px -2px var(--white-a3), inset 0 1px 1px var(--white-a6), inset 0 -1px 1px var(--black-a6)",
1205
- "classic-box-shadow-bottom": "inset 0 0 0 1px var(--black-a4), inset 0 -1px 1px var(--black-a8)",
1206
- "classic-disabled-box-shadow": "inset 0 0 0 1px var(--gray-a5), inset 0 4px 2px -2px var(--gray-a2), inset 0 1px 1px var(--gray-a5), inset 0 -1px 1px var(--black-a3), inset 0 0 0 1px var(--gray-a2)",
1207
- "classic-active-filter": "brightness(0.94) saturate(0.95)",
1208
- "solid-active-filter": "brightness(0.92) saturate(1.04)"
1209
- },
1210
- badge: {
1211
- radius: "999px",
1212
- shadow: "none",
1213
- "font-size": "12px",
1214
- "font-weight": "600",
1215
- gap: "6px",
1216
- "padding-block": "5px",
1217
- "padding-inline": "10px",
1218
- "border-width": "1px"
1219
- },
1220
- blockControls: {
1221
- bg: "var(--color-panel)",
1222
- border: "1px solid color-mix(in srgb, var(--gray-a6) 86%, transparent)",
1223
- radius: "var(--ui-radius)",
1224
- shadow: "var(--shadow-2)",
1225
- gap: "6px",
1226
- padding: "8px",
1227
- "item-radius": "var(--ui-radius)"
1228
- },
1229
- box: {
1230
- bg: "var(--color-panel-solid)",
1231
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1232
- radius: "var(--ui-radius)",
1233
- shadow: "var(--shadow-2)",
1234
- backdrop: "var(--backdrop-filter-panel)"
1235
- },
1236
- breadcrumb: {
1237
- radius: "var(--ui-radius)",
1238
- gap: "8px",
1239
- "font-size": "14px",
1240
- shadow: "none",
1241
- "item-padding-block": "4px",
1242
- "item-padding-inline": "9px"
1243
- },
1244
- dropdown: {
1245
- bg: "color-mix(in srgb, var(--color-panel-solid) 98%, transparent)",
1246
- border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1247
- radius: "var(--radius-4)",
1248
- shadow: "var(--shadow-5)",
1249
- backdrop: "none",
1250
- "content-padding": "0px",
1251
- "min-width": "224px",
1252
- "item-height": "36px",
1253
- "item-padding-x": "12px",
1254
- "item-padding-y": "8px",
1255
- "item-gap": "10px",
1256
- "item-radius": "0px",
1257
- "item-font-size": "14px",
1258
- "item-line-height": "20px",
1259
- "separator-margin": "6px 10px"
1260
- },
1261
- select: {
1262
- bg: "var(--color-panel-solid)",
1263
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1264
- radius: "var(--ui-radius)",
1265
- shadow: "none",
1266
- "height-sm": "34px",
1267
- "height-md": "42px",
1268
- "height-lg": "46px",
1269
- "padding-x": "12px",
1270
- gap: "8px",
1271
- "label-color": "var(--ui-color-text)",
1272
- "description-color": "var(--ui-color-muted)",
1273
- "menu-bg": "var(--color-panel-solid)",
1274
- "menu-color": "var(--ui-color-text)",
1275
- "menu-border": "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1276
- "menu-radius": "var(--radius-4)",
1277
- "menu-shadow": "var(--shadow-5)",
1278
- "menu-padding": "8px",
1279
- "menu-min-width": "232px",
1280
- "menu-item-height": "36px",
1281
- "menu-item-padding-x": "12px",
1282
- "menu-item-padding-y": "8px",
1283
- "menu-item-gap": "10px",
1284
- "menu-item-radius": "var(--radius-2)",
1285
- "menu-item-font-size": "14px",
1286
- "menu-item-line-height": "20px",
1287
- "menu-separator-margin": "6px 10px"
1288
- },
1289
- sidebar: {
1290
- bg: "var(--color-panel-solid)",
1291
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1292
- radius: "4px",
1293
- shadow: "var(--shadow-5)",
1294
- padding: "12px",
1295
- gap: "12px",
1296
- "header-padding": "6px 8px 10px",
1297
- "item-radius": "4px",
1298
- "item-height": "45px",
1299
- "item-padding-x": "6px",
1300
- "item-padding-y": "3px",
1301
- "item-gap": "8px",
1302
- "item-font-size": "12px",
1303
- "item-line-height": "22px",
1304
- "section-gap": "10px",
1305
- "section-label-size": "12px",
1306
- "section-label-spacing": "0.06em",
1307
- "submenu-indent": "18px",
1308
- "promo-radius": "4px",
1309
- "promo-padding": "18px"
1310
- },
1311
- card: {
1312
- bg: "var(--color-panel-solid)",
1313
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1314
- radius: "var(--ui-radius)",
1315
- shadow: "var(--shadow-2)",
1316
- "hover-shadow": "var(--shadow-3)",
1317
- "active-shadow": "var(--shadow-2)",
1318
- "classic-shadow": "var(--shadow-2)",
1319
- "classic-hover-shadow": "var(--shadow-3)",
1320
- "classic-active-shadow": "var(--shadow-2)"
1321
- },
1322
- multiSelect: {
1323
- bg: "var(--color-panel-solid)",
1324
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1325
- radius: "var(--ui-radius)",
1326
- shadow: "none",
1327
- "height-sm": "38px",
1328
- "height-md": "44px",
1329
- "height-lg": "48px",
1330
- "padding-x": "10px",
1331
- "padding-y": "8px",
1332
- "panel-bg": "var(--color-panel-solid)",
1333
- "panel-border": "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1334
- "panel-radius": "calc(var(--ui-radius) + 2px)",
1335
- "panel-shadow": "var(--shadow-4)",
1336
- "chip-radius": "999px",
1337
- "chip-gap": "6px",
1338
- "chip-padding-x": "10px",
1339
- "chip-padding-y": "6px",
1340
- "option-radius": "10px",
1341
- "option-gap": "10px",
1342
- "option-padding-x": "10px",
1343
- "option-padding-y": "10px"
1344
- },
1345
- navigationMenu: {
1346
- bg: "var(--color-panel-solid)",
1347
- border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1348
- radius: "var(--radius-4)",
1349
- shadow: "var(--shadow-2)",
1350
- padding: "6px",
1351
- gap: "6px",
1352
- "item-radius": "var(--radius-2)",
1353
- "item-padding-x": "12px",
1354
- "item-padding-y": "8px",
1355
- "item-font-size": "14px",
1356
- "item-font-weight": "600",
1357
- "item-line-height": "20px",
1358
- "panel-bg": "var(--color-panel-solid)",
1359
- "panel-border": "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1360
- "panel-radius": "var(--radius-4)",
1361
- "panel-shadow": "var(--shadow-3)",
1362
- "panel-padding": "12px"
1363
- },
1364
- menubar: {
1365
- bg: "var(--color-panel-solid)",
1366
- border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1367
- radius: "var(--radius-4)",
1368
- shadow: "var(--shadow-2)",
1369
- padding: "6px",
1370
- gap: "6px",
1371
- "item-radius": "var(--radius-2)",
1372
- "item-padding-x": "14px",
1373
- "item-padding-y": "9px",
1374
- "item-font-size": "14px",
1375
- "item-font-weight": "600",
1376
- "item-line-height": "20px",
1377
- "panel-bg": "var(--color-panel-solid)",
1378
- "panel-color": "var(--ui-color-text)",
1379
- "panel-border": "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1380
- "panel-shadow": "var(--shadow-5)",
1381
- "panel-radius": "var(--radius-4)",
1382
- "panel-padding": "8px",
1383
- "panel-min-width": "232px",
1384
- "panel-item-height": "36px",
1385
- "panel-item-padding-x": "12px",
1386
- "panel-item-padding-y": "8px",
1387
- "panel-item-gap": "10px",
1388
- "panel-item-radius": "var(--radius-2)",
1389
- "panel-item-font-size": "14px",
1390
- "panel-item-line-height": "20px",
1391
- "panel-separator-margin": "6px 10px"
1392
- },
1393
- contextMenu: {
1394
- bg: "var(--color-panel-solid)",
1395
- border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1396
- radius: "var(--radius-4)",
1397
- shadow: "var(--shadow-5)",
1398
- padding: "8px",
1399
- "min-width": "232px",
1400
- "item-height": "36px",
1401
- "item-padding-x": "12px",
1402
- "item-padding-y": "8px",
1403
- "item-gap": "10px",
1404
- "item-radius": "var(--radius-2)",
1405
- "item-font-size": "14px",
1406
- "item-line-height": "20px",
1407
- "submenu-radius": "var(--radius-4)",
1408
- "submenu-padding": "8px"
1409
- },
1410
- alert: {
1411
- bg: "var(--color-panel-solid)",
1412
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1413
- radius: "var(--ui-radius)",
1414
- shadow: "var(--shadow-2)",
1415
- "padding-x": "16px",
1416
- "padding-y": "14px",
1417
- gap: "var(--ui-default-gap)",
1418
- "icon-size": "26px",
1419
- "dismiss-size": "28px"
1420
- },
1421
- alertDialog: {
1422
- bg: "var(--color-panel-solid)",
1423
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1424
- radius: "var(--ui-radius)",
1425
- shadow: "var(--shadow-4)",
1426
- backdrop: "var(--color-overlay)",
1427
- padding: "20px",
1428
- gap: "var(--ui-default-gap)",
1429
- "min-width": "360px",
1430
- "max-width": "min(90vw, 560px)",
1431
- "header-gap": "10px",
1432
- "footer-gap": "10px"
1433
- },
1434
- appHeader: {
1435
- bg: "var(--color-panel)",
1436
- border: "1px solid color-mix(in srgb, var(--gray-a6) 82%, transparent)",
1437
- radius: "0px",
1438
- shadow: "none",
1439
- padding: "16px",
1440
- gap: "12px",
1441
- height: "64px",
1442
- "height-dense": "52px",
1443
- "control-radius": "var(--ui-radius)"
1444
- },
1445
- aspectRatio: {
1446
- bg: "var(--color-panel-solid)",
1447
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1448
- radius: "var(--radius-4)",
1449
- shadow: "none",
1450
- "empty-bg": "color-mix(in srgb, var(--accent-a3) 20%, transparent)",
1451
- "badge-radius": "999px"
1452
- },
1453
- avatar: {
1454
- bg: "var(--color-panel-solid)",
1455
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1456
- radius: "999px",
1457
- shadow: "0 1px 2px rgba(2, 6, 23, 0.18), 0 12px 24px rgba(2, 6, 23, 0.28)",
1458
- "size-sm": "30px",
1459
- "size-md": "40px",
1460
- "size-lg": "52px",
1461
- "badge-radius": "999px",
1462
- "status-border": "2px solid var(--color-panel-solid)"
1463
- },
1464
- menu: {
1465
- bg: "var(--color-panel-solid)",
1466
- border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1467
- radius: "var(--radius-4)",
1468
- shadow: "var(--shadow-5)",
1469
- backdrop: "none",
1470
- "content-padding": "8px",
1471
- "min-width": "232px",
1472
- "item-height": "36px",
1473
- "item-padding-x": "12px",
1474
- "item-padding-y": "8px",
1475
- "item-gap": "10px",
1476
- "item-radius": "var(--radius-2)",
1477
- "item-font-size": "14px",
1478
- "item-line-height": "20px",
1479
- "separator-margin": "6px 10px"
1480
- },
1481
- panel: {
1482
- bg: "var(--color-panel)",
1483
- border: "1px solid color-mix(in srgb, var(--gray-a6) 84%, transparent)",
1484
- radius: "var(--ui-radius)",
1485
- shadow: "var(--shadow-4)",
1486
- backdrop: "var(--backdrop-filter-panel)",
1487
- padding: "var(--ui-default-gap)"
1488
- },
1489
- input: {
1490
- "height-sm": "32px",
1491
- "height-md": "36px",
1492
- "height-lg": "44px",
1493
- bg: "var(--color-panel-solid)",
1494
- border: "1px solid color-mix(in srgb, var(--gray-a6) 88%, transparent)",
1495
- "focus-ring": "0 0 0 3px color-mix(in srgb, var(--accent-a6) 42%, transparent)"
1496
- }
1497
- };
1498
- function ie(e) {
1499
- return {
1500
- primary: e.scale[9],
1501
- primaryHover: e.scale[10] || e.scale[9],
1502
- foregroundOnPrimary: e.contrast,
1503
- focusRing: e.scale[8] || e.scale[9],
1504
- warning: e.scale[9]
1505
- };
1506
- }
1507
- const ya = {
1508
- colors: {
1509
- primary: "#ffc53d",
1510
- primaryHover: "#ffba18",
1511
- foregroundOnPrimary: "#21201c",
1512
- background: "#ffffff",
1513
- surface: "#fcfcfc",
1514
- surfaceAlt: "#f9f9f9",
1515
- text: "#202020",
1516
- muted: "#646464",
1517
- border: "#0000001f",
1518
- focusRing: "#e2a336",
1519
- success: "#30a46c",
1520
- danger: "#e5484d",
1521
- warning: "#ffc53d"
1522
- },
1523
- palette: {
1524
- gray: {
1525
- 1: "#fcfcfc",
1526
- 2: "#f9f9f9",
1527
- 3: "#f0f0f0",
1528
- 4: "#e8e8e8",
1529
- 5: "#e0e0e0",
1530
- 6: "#d9d9d9",
1531
- 7: "#cecece",
1532
- 8: "#bbb",
1533
- 9: "#8d8d8d",
1534
- 10: "#838383",
1535
- 11: "#646464",
1536
- 12: "#202020"
1537
- },
1538
- grayAlpha: {
1539
- 1: "#00000003",
1540
- 2: "#00000006",
1541
- 3: "#0000000f",
1542
- 4: "#00000017",
1543
- 5: "#0000001f",
1544
- 6: "#00000026",
1545
- 7: "#00000031",
1546
- 8: "#00000044",
1547
- 9: "#00000072",
1548
- 10: "#0000007c",
1549
- 11: "#0000009b",
1550
- 12: "#000000df"
1551
- },
1552
- blackAlpha: Ua,
1553
- whiteAlpha: Qa,
1554
- accent: {
1555
- ...v.amber.light.scale
1556
- },
1557
- accentAlpha: {
1558
- ...v.amber.light.alphaScale
1559
- },
1560
- accentContrast: v.amber.light.contrast,
1561
- accentSurface: v.amber.light.surface,
1562
- accentIndicator: v.amber.light.indicator,
1563
- accentTrack: v.amber.light.track
1564
- },
1565
- surfaces: {
1566
- background: "#ffffff",
1567
- surface: "#fcfcfc",
1568
- panel: "#ffffffcc",
1569
- panelSolid: "#ffffff",
1570
- panelTranslucent: "#ffffffcc",
1571
- overlay: "rgba(2, 6, 23, 0.52)",
1572
- transparent: "transparent"
1573
- },
1574
- radius: "4px",
1575
- radiusScale: {
1576
- 1: "3px",
1577
- 2: "4px",
1578
- 3: "6px",
1579
- 4: "8px",
1580
- 5: "12px",
1581
- 6: "16px"
1582
- },
1583
- shadows: {
1584
- sm: "0 0 0 1px var(--gray-a3),0 0 0 0.5px var(--black-a1),0 1px 1px 0 var(--gray-a2),0 2px 1px -1px var(--black-a1),0 1px 3px 0 var(--black-a1)",
1585
- md: "0 0 0 1px var(--gray-a3),0 2px 3px -2px var(--gray-a3),0 3px 12px -4px var(--black-a2),0 4px 16px -8px var(--black-a2)",
1586
- lg: "0 0 0 1px var(--gray-a3),0 8px 40px var(--black-a1),0 12px 32px -16px var(--gray-a3)",
1587
- 1: "inset 0 0 0 1px var(--gray-a5),inset 0 1.5px 2px 0 var(--gray-a2),inset 0 1.5px 2px 0 var(--black-a2)",
1588
- 2: "0 0 0 1px var(--gray-a3),0 0 0 0.5px var(--black-a1),0 1px 1px 0 var(--gray-a2),0 2px 1px -1px var(--black-a1),0 1px 3px 0 var(--black-a1)",
1589
- 3: "0 0 0 1px var(--gray-a3),0 2px 3px -2px var(--gray-a3),0 3px 12px -4px var(--black-a2),0 4px 16px -8px var(--black-a2)",
1590
- 4: "0 0 0 1px var(--gray-a3),0 8px 40px var(--black-a1),0 12px 32px -16px var(--gray-a3)",
1591
- 5: "0 0 0 1px var(--gray-a3),0 12px 60px var(--black-a3),0 12px 32px -16px var(--gray-a5)",
1592
- 6: "0 0 0 1px var(--gray-a3),0 12px 60px var(--black-a3),0 16px 64px var(--gray-a2),0 16px 36px -20px var(--gray-a7)"
1593
- },
1594
- spacing: {
1595
- xs: "4px",
1596
- sm: "8px",
1597
- md: "12px",
1598
- lg: "24px",
1599
- xl: "32px",
1600
- xxl: "48px"
1601
- },
1602
- spaceScale: {
1603
- 1: "4px",
1604
- 2: "8px",
1605
- 3: "12px",
1606
- 4: "16px",
1607
- 5: "24px",
1608
- 6: "32px",
1609
- 7: "40px",
1610
- 8: "48px",
1611
- 9: "64px"
1612
- },
1613
- typography: {
1614
- family: '-apple-system,BlinkMacSystemFont,"Segoe UI (Custom)",Roboto,"Helvetica Neue","Open Sans (Custom)",system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
1615
- headingFamily: '-apple-system,BlinkMacSystemFont,"Segoe UI (Custom)",Roboto,"Helvetica Neue","Open Sans (Custom)",system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',
1616
- codeFamily: '"Menlo","Consolas (Custom)","Bitstream Vera Sans Mono",monospace,"Apple Color Emoji","Segoe UI Emoji"',
1617
- size: { sm: "12px", md: "14px", lg: "16px" },
1618
- fontScale: {
1619
- 1: "12px",
1620
- 2: "14px",
1621
- 3: "16px",
1622
- 4: "18px",
1623
- 5: "20px",
1624
- 6: "24px",
1625
- 7: "28px",
1626
- 8: "35px",
1627
- 9: "60px"
1628
- },
1629
- lineHeight: {
1630
- 1: "16px",
1631
- 2: "20px",
1632
- 3: "24px",
1633
- 4: "26px",
1634
- 5: "28px",
1635
- 6: "30px",
1636
- 7: "36px",
1637
- 8: "40px",
1638
- 9: "60px"
1639
- },
1640
- letterSpacing: {
1641
- 1: "0.0025em",
1642
- 2: "0em",
1643
- 3: "0em",
1644
- 4: "-0.0025em",
1645
- 5: "-0.005em",
1646
- 6: "-0.00625em",
1647
- 7: "-0.0075em",
1648
- 8: "-0.01em",
1649
- 9: "-0.025em"
1650
- }
1651
- },
1652
- motion: {
1653
- durationShort: "120ms",
1654
- durationBase: "180ms",
1655
- durationLong: "260ms",
1656
- easing: "cubic-bezier(0.2, 0.8, 0.2, 1)"
1657
- },
1658
- effects: {
1659
- backdropFilterPanel: "blur(64px)"
1660
- },
1661
- components: ae,
1662
- zIndex: { modal: 1e3, overlay: 900, toast: 1100 },
1663
- breakpoints: { sm: "640px", md: "768px", lg: "1024px" }
1664
- }, re = {
1665
- ...ya,
1666
- colors: {
1667
- primary: "#ffc53d",
1668
- primaryHover: "#ffd60a",
1669
- foregroundOnPrimary: "#21201c",
1670
- background: "#111111",
1671
- surface: "#111111",
1672
- surfaceAlt: "#191919",
1673
- text: "#eeeeee",
1674
- muted: "#b4b4b4",
1675
- border: "#ffffff22",
1676
- focusRing: "#ffc53d",
1677
- success: "#30a46c",
1678
- danger: "#e5484d",
1679
- warning: "#ffc53d"
1680
- },
1681
- palette: {
1682
- ...ya.palette,
1683
- gray: {
1684
- 1: "#111",
1685
- 2: "#191919",
1686
- 3: "#222",
1687
- 4: "#2a2a2a",
1688
- 5: "#313131",
1689
- 6: "#3a3a3a",
1690
- 7: "#484848",
1691
- 8: "#606060",
1692
- 9: "#6e6e6e",
1693
- 10: "#7b7b7b",
1694
- 11: "#b4b4b4",
1695
- 12: "#eee"
1696
- },
1697
- grayAlpha: {
1698
- 1: "#0000",
1699
- 2: "#ffffff09",
1700
- 3: "#ffffff12",
1701
- 4: "#ffffff1b",
1702
- 5: "#ffffff22",
1703
- 6: "#ffffff2c",
1704
- 7: "#ffffff3b",
1705
- 8: "#ffffff55",
1706
- 9: "#ffffff64",
1707
- 10: "#ffffff72",
1708
- 11: "#ffffffaf",
1709
- 12: "#ffffffed"
1710
- },
1711
- blackAlpha: Ua,
1712
- whiteAlpha: Qa,
1713
- accent: {
1714
- ...v.amber.dark.scale
1715
- },
1716
- accentAlpha: {
1717
- ...v.amber.dark.alphaScale
1718
- },
1719
- accentContrast: v.amber.dark.contrast,
1720
- accentSurface: v.amber.dark.surface,
1721
- accentIndicator: v.amber.dark.indicator,
1722
- accentTrack: v.amber.dark.track
1723
- },
1724
- surfaces: {
1725
- background: "#111111",
1726
- surface: "#111111",
1727
- panel: "#21212180",
1728
- panelSolid: "#191919",
1729
- panelTranslucent: "#21212180",
1730
- overlay: "rgba(0, 0, 0, 0.72)",
1731
- transparent: "transparent"
1732
- },
1733
- shadows: {
1734
- sm: "0 0 0 1px var(--gray-a6),0 0 0 0.5px var(--black-a3),0 1px 1px 0 var(--black-a6),0 2px 1px -1px var(--black-a6),0 1px 3px 0 var(--black-a5)",
1735
- md: "0 0 0 1px var(--gray-a6),0 2px 3px -2px var(--black-a3),0 3px 8px -2px var(--black-a6),0 4px 12px -4px var(--black-a7)",
1736
- lg: "0 0 0 1px var(--gray-a6),0 8px 40px var(--black-a3),0 12px 32px -16px var(--black-a5)",
1737
- 1: "inset 0 -1px 1px 0 var(--gray-a3),inset 0 0 0 1px var(--gray-a3),inset 0 3px 4px 0 var(--black-a5),inset 0 0 0 1px var(--gray-a4)",
1738
- 2: "0 0 0 1px var(--gray-a6),0 0 0 0.5px var(--black-a3),0 1px 1px 0 var(--black-a6),0 2px 1px -1px var(--black-a6),0 1px 3px 0 var(--black-a5)",
1739
- 3: "0 0 0 1px var(--gray-a6),0 2px 3px -2px var(--black-a3),0 3px 8px -2px var(--black-a6),0 4px 12px -4px var(--black-a7)",
1740
- 4: "0 0 0 1px var(--gray-a6),0 8px 40px var(--black-a3),0 12px 32px -16px var(--black-a5)",
1741
- 5: "0 0 0 1px var(--gray-a6),0 12px 60px var(--black-a5),0 12px 32px -16px var(--black-a7)",
1742
- 6: "0 0 0 1px var(--gray-a6),0 12px 60px var(--black-a4),0 16px 64px var(--black-a6),0 16px 36px -20px var(--black-a11)"
1743
- },
1744
- components: ee
1745
- }, se = ya, oe = /* @__PURE__ */ new Set();
1746
- function p(e, a) {
1747
- if (!(!e && !a))
1748
- return { ...e || {}, ...a || {} };
1749
- }
1750
- function ne(e, a) {
1751
- var i, r, t, o, c, u, s, f, x, m, h, y, w, k, _, S, C, z, E, A, q, I, L, P, D, O, T, M, H, R, F, V, j, B, Z, U, Q, W, $, K, N, G, J, X, Y, aa, ea, ia, ra, oa, na, ta, la, sa, da, pa, ca, ua, fa, xa, ga, va;
1752
- const ma = (a == null ? void 0 : a.mode) || "light", l = ma === "dark" ? re : ya, ha = a == null ? void 0 : a.accentPalette, g = ha ? v[ha][ma] : null, b = g ? {
1753
- colors: {
1754
- ...ie(g)
1755
- },
1756
- palette: {
1757
- accent: g.scale,
1758
- accentAlpha: g.alphaScale,
1759
- accentContrast: g.contrast,
1760
- accentSurface: g.surface,
1761
- accentIndicator: g.indicator,
1762
- accentTrack: g.track
1763
- }
1764
- } : null;
1765
- return {
1766
- ...l,
1767
- ...e,
1768
- colors: {
1769
- ...l.colors,
1770
- ...(b == null ? void 0 : b.colors) || {},
1771
- ...(e == null ? void 0 : e.colors) || {}
1772
- },
1773
- palette: {
1774
- ...l.palette || {},
1775
- ...(b == null ? void 0 : b.palette) || {},
1776
- ...(e == null ? void 0 : e.palette) || {},
1777
- gray: p((i = l.palette) == null ? void 0 : i.gray, (r = e == null ? void 0 : e.palette) == null ? void 0 : r.gray),
1778
- grayAlpha: p((t = l.palette) == null ? void 0 : t.grayAlpha, (o = e == null ? void 0 : e.palette) == null ? void 0 : o.grayAlpha),
1779
- blackAlpha: p((c = l.palette) == null ? void 0 : c.blackAlpha, (u = e == null ? void 0 : e.palette) == null ? void 0 : u.blackAlpha),
1780
- whiteAlpha: p((s = l.palette) == null ? void 0 : s.whiteAlpha, (f = e == null ? void 0 : e.palette) == null ? void 0 : f.whiteAlpha),
1781
- accent: p((g == null ? void 0 : g.scale) || ((x = l.palette) == null ? void 0 : x.accent), (m = e == null ? void 0 : e.palette) == null ? void 0 : m.accent),
1782
- accentAlpha: p((g == null ? void 0 : g.alphaScale) || ((h = l.palette) == null ? void 0 : h.accentAlpha), (y = e == null ? void 0 : e.palette) == null ? void 0 : y.accentAlpha)
1783
- },
1784
- surfaces: {
1785
- ...l.surfaces || {},
1786
- ...(e == null ? void 0 : e.surfaces) || {}
1787
- },
1788
- shadows: {
1789
- ...l.shadows || {},
1790
- ...(e == null ? void 0 : e.shadows) || {}
1791
- },
1792
- spacing: {
1793
- ...l.spacing || {},
1794
- ...(e == null ? void 0 : e.spacing) || {}
1795
- },
1796
- spaceScale: p(l.spaceScale, e == null ? void 0 : e.spaceScale),
1797
- radiusScale: p(l.radiusScale, e == null ? void 0 : e.radiusScale),
1798
- typography: {
1799
- ...l.typography || {},
1800
- ...(e == null ? void 0 : e.typography) || {},
1801
- size: {
1802
- ...((w = l.typography) == null ? void 0 : w.size) || {},
1803
- ...((k = e == null ? void 0 : e.typography) == null ? void 0 : k.size) || {}
1804
- },
1805
- fontScale: p((_ = l.typography) == null ? void 0 : _.fontScale, (S = e == null ? void 0 : e.typography) == null ? void 0 : S.fontScale),
1806
- lineHeight: p((C = l.typography) == null ? void 0 : C.lineHeight, (z = e == null ? void 0 : e.typography) == null ? void 0 : z.lineHeight),
1807
- letterSpacing: p((E = l.typography) == null ? void 0 : E.letterSpacing, (A = e == null ? void 0 : e.typography) == null ? void 0 : A.letterSpacing)
1808
- },
1809
- motion: {
1810
- ...l.motion || {},
1811
- ...(e == null ? void 0 : e.motion) || {}
1812
- },
1813
- effects: {
1814
- ...l.effects || {},
1815
- ...(e == null ? void 0 : e.effects) || {}
1816
- },
1817
- components: {
1818
- ...l.components || {},
1819
- ...(e == null ? void 0 : e.components) || {},
1820
- button: p((q = l.components) == null ? void 0 : q.button, (I = e == null ? void 0 : e.components) == null ? void 0 : I.button),
1821
- badge: p((L = l.components) == null ? void 0 : L.badge, (P = e == null ? void 0 : e.components) == null ? void 0 : P.badge),
1822
- dropdown: p((D = l.components) == null ? void 0 : D.dropdown, (O = e == null ? void 0 : e.components) == null ? void 0 : O.dropdown),
1823
- select: p((T = l.components) == null ? void 0 : T.select, (M = e == null ? void 0 : e.components) == null ? void 0 : M.select),
1824
- sidebar: p((H = l.components) == null ? void 0 : H.sidebar, (R = e == null ? void 0 : e.components) == null ? void 0 : R.sidebar),
1825
- card: p((F = l.components) == null ? void 0 : F.card, (V = e == null ? void 0 : e.components) == null ? void 0 : V.card),
1826
- navigationMenu: p((j = l.components) == null ? void 0 : j.navigationMenu, (B = e == null ? void 0 : e.components) == null ? void 0 : B.navigationMenu),
1827
- blockControls: p((Z = l.components) == null ? void 0 : Z.blockControls, (U = e == null ? void 0 : e.components) == null ? void 0 : U.blockControls),
1828
- box: p((Q = l.components) == null ? void 0 : Q.box, (W = e == null ? void 0 : e.components) == null ? void 0 : W.box),
1829
- breadcrumb: p(($ = l.components) == null ? void 0 : $.breadcrumb, (K = e == null ? void 0 : e.components) == null ? void 0 : K.breadcrumb),
1830
- contextMenu: p((N = l.components) == null ? void 0 : N.contextMenu, (G = e == null ? void 0 : e.components) == null ? void 0 : G.contextMenu),
1831
- menubar: p((J = l.components) == null ? void 0 : J.menubar, (X = e == null ? void 0 : e.components) == null ? void 0 : X.menubar),
1832
- alert: p((Y = l.components) == null ? void 0 : Y.alert, (aa = e == null ? void 0 : e.components) == null ? void 0 : aa.alert),
1833
- alertDialog: p((ea = l.components) == null ? void 0 : ea.alertDialog, (ia = e == null ? void 0 : e.components) == null ? void 0 : ia.alertDialog),
1834
- appHeader: p((ra = l.components) == null ? void 0 : ra.appHeader, (oa = e == null ? void 0 : e.components) == null ? void 0 : oa.appHeader),
1835
- aspectRatio: p((na = l.components) == null ? void 0 : na.aspectRatio, (ta = e == null ? void 0 : e.components) == null ? void 0 : ta.aspectRatio),
1836
- avatar: p((la = l.components) == null ? void 0 : la.avatar, (sa = e == null ? void 0 : e.components) == null ? void 0 : sa.avatar),
1837
- menu: p((da = l.components) == null ? void 0 : da.menu, (pa = e == null ? void 0 : e.components) == null ? void 0 : pa.menu),
1838
- multiSelect: p((ca = l.components) == null ? void 0 : ca.multiSelect, (ua = e == null ? void 0 : e.components) == null ? void 0 : ua.multiSelect),
1839
- panel: p((fa = l.components) == null ? void 0 : fa.panel, (xa = e == null ? void 0 : e.components) == null ? void 0 : xa.panel),
1840
- input: p((ga = l.components) == null ? void 0 : ga.input, (va = e == null ? void 0 : e.components) == null ? void 0 : va.input)
1841
- },
1842
- zIndex: {
1843
- ...l.zIndex || {},
1844
- ...(e == null ? void 0 : e.zIndex) || {}
1845
- },
1846
- breakpoints: {
1847
- ...l.breakpoints || {},
1848
- ...(e == null ? void 0 : e.breakpoints) || {}
1849
- }
1850
- };
1851
- }
1852
- function n(e, a, i) {
1853
- try {
1854
- e.style.setProperty(a, i);
1855
- } catch {
1856
- }
1857
- }
1858
- function d(e, a, i) {
1859
- i && Object.entries(i).forEach(([r, t]) => {
1860
- typeof t == "string" && t && e.style.setProperty(`${a}${r}`, t);
1861
- });
1862
- }
1863
- function Za(e, a) {
1864
- var i, r, t, o, c, u, s, f, x, m, h, y, w, k, _, S, C, z, E, A, q, I, L, P, D, O, T, M, H, R, F, V, j, B, Z, U, Q, W, $, K, N, G, J, X, Y, aa, ea, ia, ra, oa, na, ta, la, sa, da, pa, ca, ua, fa, xa, ga, va, ma, l, ha, g, b, wa, ka, _a, Sa, Ca, za, Ea, Aa, qa, Ia, La, Pa, Da, Oa, Ta, Ma, Ha, Ra;
1865
- n(e, "--ui-color-primary", a.colors.primary), n(e, "--ui-color-primary-hover", a.colors.primaryHover || a.colors.primary), n(e, "--ui-color-foreground-on-primary", a.colors.foregroundOnPrimary || "#ffffff"), n(e, "--ui-color-background", a.colors.background || "#ffffff"), n(e, "--ui-color-surface", a.colors.surface || a.colors.background || "#ffffff"), n(e, "--ui-color-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), n(e, "--ui-color-text", a.colors.text || "#202020"), n(e, "--ui-color-muted", a.colors.muted || "#646464"), n(e, "--ui-color-border", a.colors.border || "#0000001f"), n(e, "--ui-color-focus-ring", a.colors.focusRing || a.colors.primary), n(e, "--ui-color-success", a.colors.success || "#30a46c"), n(e, "--ui-color-danger", a.colors.danger || "#e5484d"), n(e, "--ui-color-warning", a.colors.warning || a.colors.primary), n(e, "--ui-primary", a.colors.primary), n(e, "--ui-primary-hover", a.colors.primaryHover || a.colors.primary), n(e, "--ui-foreground", a.colors.foregroundOnPrimary || "#ffffff"), n(e, "--ui-background", a.colors.background || "#ffffff"), n(e, "--ui-surface", a.colors.surface || a.colors.background || "#ffffff"), n(e, "--ui-surface-alt", a.colors.surfaceAlt || a.colors.surface || "#f9f9f9"), n(e, "--ui-text", a.colors.text || "#202020"), n(e, "--ui-muted", a.colors.muted || "#646464"), n(e, "--ui-border", a.colors.border || "#0000001f"), n(e, "--ui-focus-ring", a.colors.focusRing || a.colors.primary), n(e, "--ui-success", a.colors.success || "#30a46c"), n(e, "--ui-error", a.colors.danger || "#e5484d"), n(e, "--ui-warning", a.colors.warning || a.colors.primary), n(e, "--ui-radius", a.radius || "4px"), n(e, "--ui-space-xs", ((i = a.spacing) == null ? void 0 : i.xs) || "4px"), n(e, "--ui-space-sm", ((r = a.spacing) == null ? void 0 : r.sm) || "8px"), n(e, "--ui-space-md", ((t = a.spacing) == null ? void 0 : t.md) || "12px"), n(e, "--ui-space-lg", ((o = a.spacing) == null ? void 0 : o.lg) || "24px"), n(e, "--ui-space-xl", ((c = a.spacing) == null ? void 0 : c.xl) || "32px"), n(e, "--ui-space-xxl", ((u = a.spacing) == null ? void 0 : u.xxl) || "48px"), n(e, "--ui-default-gap", ((s = a.spacing) == null ? void 0 : s.sm) || ((f = a.spaceScale) == null ? void 0 : f[2]) || "8px"), n(e, "--ui-shadow-sm", ((x = a.shadows) == null ? void 0 : x.sm) || ((m = a.shadows) == null ? void 0 : m[2]) || "none"), n(e, "--ui-shadow-md", ((h = a.shadows) == null ? void 0 : h.md) || ((y = a.shadows) == null ? void 0 : y[3]) || "none"), n(e, "--ui-shadow-lg", ((w = a.shadows) == null ? void 0 : w.lg) || ((k = a.shadows) == null ? void 0 : k[4]) || "none"), n(e, "--ui-font-family", ((_ = a.typography) == null ? void 0 : _.family) || "system-ui, sans-serif"), n(e, "--ui-font-family-heading", ((S = a.typography) == null ? void 0 : S.headingFamily) || ((C = a.typography) == null ? void 0 : C.family) || "system-ui, sans-serif"), n(e, "--ui-font-family-code", ((z = a.typography) == null ? void 0 : z.codeFamily) || "monospace"), n(e, "--ui-font-size-sm", ((A = (E = a.typography) == null ? void 0 : E.size) == null ? void 0 : A.sm) || "12px"), n(e, "--ui-font-size-md", ((I = (q = a.typography) == null ? void 0 : q.size) == null ? void 0 : I.md) || "14px"), n(e, "--ui-font-size-lg", ((P = (L = a.typography) == null ? void 0 : L.size) == null ? void 0 : P.lg) || "16px"), n(e, "--ui-default-font-size", ((O = (D = a.typography) == null ? void 0 : D.size) == null ? void 0 : O.md) || ((M = (T = a.typography) == null ? void 0 : T.fontScale) == null ? void 0 : M[2]) || "14px"), n(e, "--ui-default-line-height", ((R = (H = a.typography) == null ? void 0 : H.lineHeight) == null ? void 0 : R[2]) || "20px"), n(e, "--ui-default-letter-spacing", ((V = (F = a.typography) == null ? void 0 : F.letterSpacing) == null ? void 0 : V[2]) || "0em"), n(e, "--ui-motion-short", ((j = a.motion) == null ? void 0 : j.durationShort) || "120ms"), n(e, "--ui-motion-base", ((B = a.motion) == null ? void 0 : B.durationBase) || "180ms"), n(e, "--ui-motion-long", ((Z = a.motion) == null ? void 0 : Z.durationLong) || "260ms"), n(e, "--ui-motion-easing", ((U = a.motion) == null ? void 0 : U.easing) || "cubic-bezier(0.2, 0.8, 0.2, 1)"), n(e, "--ui-z-modal", String(((Q = a.zIndex) == null ? void 0 : Q.modal) ?? 1e3)), n(e, "--ui-z-overlay", String(((W = a.zIndex) == null ? void 0 : W.overlay) ?? 900)), n(e, "--ui-z-toast", String((($ = a.zIndex) == null ? void 0 : $.toast) ?? 1100)), n(e, "--ui-breakpoint-sm", ((K = a.breakpoints) == null ? void 0 : K.sm) || "640px"), n(e, "--ui-breakpoint-md", ((N = a.breakpoints) == null ? void 0 : N.md) || "768px"), n(e, "--ui-breakpoint-lg", ((G = a.breakpoints) == null ? void 0 : G.lg) || "1024px"), n(e, "--color-background", ((J = a.surfaces) == null ? void 0 : J.background) || a.colors.background || "#ffffff"), n(e, "--color-surface", ((X = a.surfaces) == null ? void 0 : X.surface) || a.colors.surface || "#fcfcfc"), n(e, "--color-panel", ((Y = a.surfaces) == null ? void 0 : Y.panel) || ((aa = a.surfaces) == null ? void 0 : aa.panelTranslucent) || "#ffffffcc"), n(e, "--color-panel-solid", ((ea = a.surfaces) == null ? void 0 : ea.panelSolid) || a.colors.surface || "#ffffff"), n(e, "--color-panel-translucent", ((ia = a.surfaces) == null ? void 0 : ia.panelTranslucent) || "#ffffffcc"), n(e, "--color-overlay", ((ra = a.surfaces) == null ? void 0 : ra.overlay) || "rgba(2, 6, 23, 0.52)"), n(e, "--color-transparent", ((oa = a.surfaces) == null ? void 0 : oa.transparent) || "transparent"), n(e, "--backdrop-filter-panel", ((na = a.effects) == null ? void 0 : na.backdropFilterPanel) || "blur(64px)"), (ta = a.palette) != null && ta.accentContrast && n(e, "--accent-contrast", a.palette.accentContrast), (la = a.palette) != null && la.accentSurface && n(e, "--accent-surface", a.palette.accentSurface), (sa = a.palette) != null && sa.accentIndicator && n(e, "--accent-indicator", a.palette.accentIndicator), (da = a.palette) != null && da.accentTrack && n(e, "--accent-track", a.palette.accentTrack), d(e, "--gray-", (pa = a.palette) == null ? void 0 : pa.gray), d(e, "--gray-a", (ca = a.palette) == null ? void 0 : ca.grayAlpha), d(e, "--black-a", (ua = a.palette) == null ? void 0 : ua.blackAlpha), d(e, "--white-a", (fa = a.palette) == null ? void 0 : fa.whiteAlpha), d(e, "--accent-", (xa = a.palette) == null ? void 0 : xa.accent), d(e, "--accent-a", (ga = a.palette) == null ? void 0 : ga.accentAlpha), d(e, "--space-", a.spaceScale), d(e, "--radius-", a.radiusScale), d(e, "--font-size-", (va = a.typography) == null ? void 0 : va.fontScale), d(e, "--line-height-", (ma = a.typography) == null ? void 0 : ma.lineHeight), d(e, "--letter-spacing-", (l = a.typography) == null ? void 0 : l.letterSpacing), d(e, "--shadow-", a.shadows), d(e, "--base-button-", (ha = a.components) == null ? void 0 : ha.button), d(e, "--base-badge-", (g = a.components) == null ? void 0 : g.badge), d(e, "--base-dropdown-", (b = a.components) == null ? void 0 : b.dropdown), d(e, "--base-select-", (wa = a.components) == null ? void 0 : wa.select), d(e, "--base-sidebar-", (ka = a.components) == null ? void 0 : ka.sidebar), d(e, "--base-block-controls-", (_a = a.components) == null ? void 0 : _a.blockControls), d(e, "--base-box-", (Sa = a.components) == null ? void 0 : Sa.box), d(e, "--base-breadcrumb-", (Ca = a.components) == null ? void 0 : Ca.breadcrumb), d(e, "--base-card-", (za = a.components) == null ? void 0 : za.card), d(e, "--base-multi-select-", (Ea = a.components) == null ? void 0 : Ea.multiSelect), d(e, "--base-navigation-menu-", (Aa = a.components) == null ? void 0 : Aa.navigationMenu), d(e, "--base-menubar-", (qa = a.components) == null ? void 0 : qa.menubar), d(e, "--base-context-menu-", (Ia = a.components) == null ? void 0 : Ia.contextMenu), d(e, "--base-alert-", (La = a.components) == null ? void 0 : La.alert), d(e, "--base-alert-dialog-", (Pa = a.components) == null ? void 0 : Pa.alertDialog), d(e, "--base-app-header-", (Da = a.components) == null ? void 0 : Da.appHeader), d(e, "--base-aspect-ratio-", (Oa = a.components) == null ? void 0 : Oa.aspectRatio), d(e, "--base-avatar-", (Ta = a.components) == null ? void 0 : Ta.avatar), d(e, "--base-menu-", (Ma = a.components) == null ? void 0 : Ma.menu), d(e, "--base-panel-", (Ha = a.components) == null ? void 0 : Ha.panel), d(e, "--base-input-", (Ra = a.components) == null ? void 0 : Ra.input);
1866
- }
1867
- function de(e, a = typeof document < "u" ? document : null) {
1868
- if (!a)
1869
- return;
1870
- const i = ne(e), r = a === document || a instanceof ShadowRoot;
1871
- let t;
1872
- if (a === document ? t = document.documentElement : a instanceof ShadowRoot ? t = a.host : t = a, Za(t, i), r)
1873
- for (const o of oe)
1874
- try {
1875
- Za(o, i);
1876
- } catch {
1877
- }
1878
- }
1879
- export {
1880
- de as _,
1881
- te as o,
1882
- le as p,
1883
- se as w
1884
- };