react-semaphor 0.1.445 → 0.1.447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics-protocol/index.js +8 -8
- package/dist/appearance/index.cjs +1 -1
- package/dist/appearance/index.js +1 -1
- package/dist/brand-studio/index.cjs +2 -2
- package/dist/brand-studio/index.js +9 -9
- package/dist/briefings/index.js +4 -4
- package/dist/chunks/{analyze-result-contract-DUv3QnMl.js → analyze-result-contract-T-0Ntzys.js} +1 -1
- package/dist/chunks/{braces-BdbUk_r9.js → braces-8TRlDwDw.js} +1 -1
- package/dist/chunks/{braces-BKimshER.cjs → braces-v55uLCAK.cjs} +1 -1
- package/dist/chunks/{catalog-field-grounding-AOGwWu0K.js → catalog-field-grounding-S2jKwKGD.js} +9 -9
- package/dist/chunks/{common-types-DFsDdpH7.js → common-types-B7Jk3Rtj.js} +5 -5
- package/dist/chunks/{dashboard-briefing-launcher-2SLNOaTg.js → dashboard-briefing-launcher-CDjcivK2.js} +192 -191
- package/dist/chunks/dashboard-briefing-launcher-D44Au-Qp.cjs +26 -0
- package/dist/chunks/dashboard-controls-DH3J4L1D.cjs +52 -0
- package/dist/chunks/dashboard-controls-tHwb3g3W.js +2409 -0
- package/dist/chunks/{dashboard-date-comparison-definition-BaYxjLi5.js → dashboard-date-comparison-definition-Ba-clViK.js} +1 -1
- package/dist/chunks/{dashboard-input-contract-BFpERluO.js → dashboard-input-contract-DSt8dGzP.js} +4 -4
- package/dist/chunks/{dashboard-json-BZwq3EcS.js → dashboard-json-Bihrrl5_.js} +11 -11
- package/dist/chunks/dashboard-json-VOXcUBqx.cjs +1 -0
- package/dist/chunks/edit-dashboard-visual-8XtuSSKG.cjs +177 -0
- package/dist/chunks/{edit-dashboard-visual-njLPYip3.js → edit-dashboard-visual-Dsc9mZnc.js} +7113 -7097
- package/dist/chunks/{editor-action-buttons-CBVMFipA.cjs → editor-action-buttons-BFqvBlLw.cjs} +1 -1
- package/dist/chunks/{editor-action-buttons-BhLX5Q6m.js → editor-action-buttons-BbVgPOda.js} +41 -41
- package/dist/chunks/{format-types-CZH5w1lo.js → format-types-DZGgYj39.js} +5 -5
- package/dist/chunks/index-BSTyv45D.cjs +1395 -0
- package/dist/chunks/{index-If0wlXGi.js → index-CJdxSyQq.js} +308 -308
- package/dist/chunks/{index-Dpm_VET4.cjs → index-DRlMUglg.cjs} +2 -2
- package/dist/chunks/{dashboard-u61yfU6u.js → index-srGACKDr.js} +148223 -151540
- package/dist/chunks/{layout-grid-D5tYJg1-.js → layout-grid-CiubineE.js} +1 -1
- package/dist/chunks/{layout-grid-3-HWzEwU.cjs → layout-grid-xm8pqtx0.cjs} +1 -1
- package/dist/chunks/{metric-comparison-BJ_Qu1ZF.js → metric-comparison-97zHGEx5.js} +7 -7
- package/dist/chunks/mouse-pointer-2-BZvGk45-.js +19 -0
- package/dist/chunks/mouse-pointer-2-DX4A_XZw.cjs +6 -0
- package/dist/chunks/{palette-DW_l7Jr0.cjs → palette-BN-jYtaK.cjs} +1 -1
- package/dist/chunks/{palette-jqaAcwiQ.js → palette-Cp1hqZtm.js} +1 -1
- package/dist/chunks/{pivot-result-identity-B6QCWOSi.js → pivot-result-identity-CwJWpKI7.js} +3 -3
- package/dist/chunks/{pivot-result-lifecycle-BM3Pl-D1.js → pivot-result-lifecycle-BBabQ_da.js} +27 -27
- package/dist/chunks/{presentation-execution-CGlb7YZ6.js → presentation-execution-BLfPTGX_.js} +10 -10
- package/dist/chunks/{report-preferences-dialog-D_NJu2wU.js → report-preferences-dialog-DZez53xw.js} +6 -6
- package/dist/chunks/report-preferences-dialog-TYTIHpHi.cjs +1 -0
- package/dist/chunks/{report-runtime-context-Qzn11HQe.js → report-runtime-context-bCy3CVzK.js} +1 -1
- package/dist/chunks/{save-4_uMnE6s.cjs → save-3dYRmehL.cjs} +1 -1
- package/dist/chunks/{save-HCJjjzdX.js → save-DgMfP0j8.js} +1 -1
- package/dist/chunks/{search-DHZCro8B.js → search-BHsQIWBV.js} +1 -1
- package/dist/chunks/{search-6ZmeMq55.cjs → search-BqqhaMx9.cjs} +1 -1
- package/dist/chunks/{code-editor-B4gTfvc5.js → switch-Bz2uj3q0.js} +9405 -9330
- package/dist/chunks/switch-rbwGjmad.cjs +138 -0
- package/dist/chunks/{temporal-bucket-authoring-BUZMuVca.js → temporal-bucket-authoring-CgOuakGW.js} +2 -2
- package/dist/chunks/{temporal-bucket-contract-B2bJ1oe4.js → temporal-bucket-contract-_F6vNhhH.js} +3 -3
- package/dist/chunks/{temporal-result-owner-Cb27SSG9.js → temporal-result-owner-6peubmhU.js} +3 -3
- package/dist/chunks/{token-types-DLo91nOf.js → token-types-BHR58aTy.js} +1 -1
- package/dist/chunks/{update-policy-eg59mQqv.js → update-policy-g0rCQ9BM.js} +9 -9
- package/dist/chunks/{validators-wZ2WlNHc.js → validators-Cs74WVie.js} +46 -46
- package/dist/chunks/x-B6ghREd2.cjs +31 -0
- package/dist/chunks/{index-xHCrHprY.js → x-CXDkqdur.js} +59 -59
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.js +6 -6
- package/dist/data-app-builder/index.cjs +13 -18
- package/dist/data-app-builder/index.js +92 -106
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.js +3 -3
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +6 -6
- package/dist/data-app-sdk-adapters/index.js +2 -2
- package/dist/data-app-sdk-validation/index.js +4 -4
- package/dist/format-utils/index.js +8 -8
- package/dist/index.cjs +1 -1
- package/dist/index.js +16 -16
- package/dist/report-runtime-context/index.js +2 -2
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/brand-studio.d.ts +2 -2
- package/dist/types/dashboard.d.ts +3 -2
- package/dist/types/data-app-builder.d.ts +2 -2
- package/dist/types/data-app-sdk.d.ts +1 -1
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +7 -7
- package/dist/types/main.d.ts +27 -25
- package/dist/types/surfboard.d.ts +3 -2
- package/package.json +1 -2
- package/dist/chunks/code-editor-BYVorgOf.cjs +0 -138
- package/dist/chunks/dashboard-CAiwJW3L.cjs +0 -1397
- package/dist/chunks/dashboard-briefing-launcher-CHwjpUYz.cjs +0 -26
- package/dist/chunks/dashboard-controls-BfL14aqO.js +0 -2238
- package/dist/chunks/dashboard-controls-BgGTg4yw.cjs +0 -36
- package/dist/chunks/dashboard-json-BOv8tCa9.cjs +0 -1
- package/dist/chunks/edit-dashboard-visual-BdVCH0DJ.cjs +0 -182
- package/dist/chunks/index-jSrCwPQz.cjs +0 -31
- package/dist/chunks/report-preferences-dialog-r8QzOSFb.cjs +0 -1
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
const
|
|
1
|
+
const be = '"Open Sans", Arial, ui-sans-serif, system-ui, sans-serif', Fn = be, Rn = 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace', aa = [
|
|
2
|
+
{
|
|
3
|
+
id: "open-sans",
|
|
4
|
+
label: "Semaphor default / Open Sans",
|
|
5
|
+
value: be
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
id: "inter",
|
|
9
|
+
label: "Inter",
|
|
10
|
+
value: 'Inter, "Open Sans", Arial, ui-sans-serif, system-ui, sans-serif'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: "ibm-plex-sans",
|
|
14
|
+
label: "IBM Plex Sans",
|
|
15
|
+
value: '"IBM Plex Sans", "Open Sans", Arial, ui-sans-serif, system-ui, sans-serif'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: "system",
|
|
19
|
+
label: "System UI",
|
|
20
|
+
value: 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'
|
|
21
|
+
}
|
|
22
|
+
], dt = (e, n) => {
|
|
2
23
|
if (typeof e == "number") {
|
|
3
24
|
if (n === 3)
|
|
4
25
|
return {
|
|
@@ -221,7 +242,7 @@ const dt = (e, n) => {
|
|
|
221
242
|
)
|
|
222
243
|
)
|
|
223
244
|
)
|
|
224
|
-
) : void 0, A = {}, lt = {},
|
|
245
|
+
) : void 0, A = {}, lt = {}, ge = [], st = {}, i0 = (e) => e, b = (e) => (A[e.mode] = {
|
|
225
246
|
...A[e.mode],
|
|
226
247
|
...e.toMode
|
|
227
248
|
}, Object.keys(e.fromMode || {}).forEach((n) => {
|
|
@@ -239,7 +260,7 @@ const dt = (e, n) => {
|
|
|
239
260
|
if (!n)
|
|
240
261
|
throw new Error("'mode' required when 'parser' is a string");
|
|
241
262
|
st[e] = n;
|
|
242
|
-
} else typeof e == "function" &&
|
|
263
|
+
} else typeof e == "function" && ge.indexOf(e) < 0 && ge.push(e);
|
|
243
264
|
}, sn = /[^\x00-\x7F]|[a-zA-Z_]/, f0 = /[^\x00-\x7F]|[-\w]/, f = {
|
|
244
265
|
Function: "function",
|
|
245
266
|
Ident: "ident",
|
|
@@ -278,7 +299,7 @@ const l0 = {
|
|
|
278
299
|
function ie(e) {
|
|
279
300
|
let n = "";
|
|
280
301
|
if ((e[c] === "-" || e[c] === "+") && (n += e[c++]), n += he(e), e[c] === "." && /\d/.test(e[c + 1]) && (n += e[c++] + he(e)), (e[c] === "e" || e[c] === "E") && ((e[c + 1] === "-" || e[c + 1] === "+") && /\d/.test(e[c + 2]) ? n += e[c++] + e[c++] + he(e) : /\d/.test(e[c + 1]) && (n += e[c++] + he(e))), un(e)) {
|
|
281
|
-
let t =
|
|
302
|
+
let t = me(e);
|
|
282
303
|
return t === "deg" || t === "rad" || t === "turn" || t === "grad" ? { type: f.Hue, value: n * l0[t] } : void 0;
|
|
283
304
|
}
|
|
284
305
|
return e[c] === "%" ? (c++, { type: f.Percentage, value: +n }) : { type: f.Number, value: +n };
|
|
@@ -289,14 +310,14 @@ function he(e) {
|
|
|
289
310
|
n += e[c++];
|
|
290
311
|
return n;
|
|
291
312
|
}
|
|
292
|
-
function
|
|
313
|
+
function me(e) {
|
|
293
314
|
let n = "";
|
|
294
315
|
for (; c < e.length && f0.test(e[c]); )
|
|
295
316
|
n += e[c++];
|
|
296
317
|
return n;
|
|
297
318
|
}
|
|
298
319
|
function s0(e) {
|
|
299
|
-
let n =
|
|
320
|
+
let n = me(e);
|
|
300
321
|
return e[c] === "(" ? (c++, { type: f.Function, value: n }) : n === "none" ? { type: f.None, value: void 0 } : { type: f.Ident, value: n };
|
|
301
322
|
}
|
|
302
323
|
function u0(e = "") {
|
|
@@ -328,7 +349,7 @@ function u0(e = "") {
|
|
|
328
349
|
continue;
|
|
329
350
|
}
|
|
330
351
|
if (un(n)) {
|
|
331
|
-
t.push({ type: f.Ident, value:
|
|
352
|
+
t.push({ type: f.Ident, value: me(n) });
|
|
332
353
|
continue;
|
|
333
354
|
}
|
|
334
355
|
return;
|
|
@@ -349,7 +370,7 @@ function u0(e = "") {
|
|
|
349
370
|
t.push({ type: f.Alpha, value: r });
|
|
350
371
|
continue;
|
|
351
372
|
}
|
|
352
|
-
if (un(n) &&
|
|
373
|
+
if (un(n) && me(n) === "none") {
|
|
353
374
|
t.push({
|
|
354
375
|
type: f.Alpha,
|
|
355
376
|
value: { type: f.None, value: void 0 }
|
|
@@ -423,9 +444,9 @@ const Mn = (e) => {
|
|
|
423
444
|
if (typeof e != "string")
|
|
424
445
|
return;
|
|
425
446
|
const n = u0(e), t = n ? h0(n, !0) : void 0;
|
|
426
|
-
let a, r = 0, i =
|
|
447
|
+
let a, r = 0, i = ge.length;
|
|
427
448
|
for (; r < i; )
|
|
428
|
-
if ((a =
|
|
449
|
+
if ((a = ge[r++](e, t)) !== void 0)
|
|
429
450
|
return a;
|
|
430
451
|
return n ? c0(n) : void 0;
|
|
431
452
|
};
|
|
@@ -479,7 +500,7 @@ const b0 = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
479
500
|
gamut: !0,
|
|
480
501
|
white: { r: 1, g: 1, b: 1 },
|
|
481
502
|
black: { r: 0, g: 0, b: 0 }
|
|
482
|
-
}, Xe = (e = 0) => Math.pow(Math.abs(e), 563 / 256) * Math.sign(e),
|
|
503
|
+
}, Xe = (e = 0) => Math.pow(Math.abs(e), 563 / 256) * Math.sign(e), In = (e) => {
|
|
483
504
|
let n = Xe(e.r), t = Xe(e.g), a = Xe(e.b), r = {
|
|
484
505
|
mode: "xyz65",
|
|
485
506
|
x: 0.5766690429101305 * n + 0.1855582379065463 * t + 0.1882286462349947 * a,
|
|
@@ -487,7 +508,7 @@ const b0 = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
487
508
|
z: 0.0270313613864123 * n + 0.0706888525358272 * t + 0.9913375368376386 * a
|
|
488
509
|
};
|
|
489
510
|
return e.alpha !== void 0 && (r.alpha = e.alpha), r;
|
|
490
|
-
}, Le = (e) => Math.pow(Math.abs(e), 256 / 563) * Math.sign(e),
|
|
511
|
+
}, Le = (e) => Math.pow(Math.abs(e), 256 / 563) * Math.sign(e), En = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
491
512
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
492
513
|
let r = {
|
|
493
514
|
mode: "a98",
|
|
@@ -546,12 +567,12 @@ const b0 = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
546
567
|
parse: ["a98-rgb"],
|
|
547
568
|
serialize: "a98-rgb",
|
|
548
569
|
fromMode: {
|
|
549
|
-
rgb: (e) =>
|
|
550
|
-
xyz65:
|
|
570
|
+
rgb: (e) => En(D(e)),
|
|
571
|
+
xyz65: En
|
|
551
572
|
},
|
|
552
573
|
toMode: {
|
|
553
|
-
rgb: (e) => Z(
|
|
554
|
-
xyz65:
|
|
574
|
+
rgb: (e) => Z(In(e)),
|
|
575
|
+
xyz65: In
|
|
555
576
|
}
|
|
556
577
|
}, w = (e) => (e = e % 360) < 0 ? e + 360 : e, y0 = (e, n) => e.map((t, a, r) => {
|
|
557
578
|
if (t === void 0)
|
|
@@ -559,10 +580,10 @@ const b0 = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
559
580
|
let i = w(t);
|
|
560
581
|
return a === 0 || e[a - 1] === void 0 ? i : n(i - w(r[a - 1]));
|
|
561
582
|
}).reduce((t, a) => !t.length || a === void 0 || t[t.length - 1] === void 0 ? (t.push(a), t) : (t.push(a + t[t.length - 1]), t), []), C = (e) => y0(e, (n) => Math.abs(n) <= 180 ? n : n - 360 * Math.sign(n)), $ = [-0.14861, 1.78277, -0.29227, -0.90649, 1.97294, 0], v0 = Math.PI / 180, k0 = 180 / Math.PI;
|
|
562
|
-
let
|
|
583
|
+
let Hn = $[3] * $[4], On = $[1] * $[4], Xn = $[1] * $[2] - $[0] * $[3];
|
|
563
584
|
const _0 = ({ r: e, g: n, b: t, alpha: a }) => {
|
|
564
585
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
565
|
-
let r = (
|
|
586
|
+
let r = (Xn * t + e * Hn - n * On) / (Xn + Hn - On), i = t - r, o = ($[4] * (n - r) - $[2] * i) / $[3], d = {
|
|
566
587
|
mode: "cubehelix",
|
|
567
588
|
l: r,
|
|
568
589
|
s: r === 0 || r === 1 ? void 0 : Math.sqrt(i * i + o * o) / ($[4] * r * (1 - r))
|
|
@@ -678,32 +699,32 @@ const pt = ({ l: e, a: n, b: t, alpha: a }) => {
|
|
|
678
699
|
}, ze = (e) => {
|
|
679
700
|
let n = bt(D(e));
|
|
680
701
|
return e.r === e.b && e.b === e.g && (n.a = n.b = 0), n;
|
|
681
|
-
},
|
|
702
|
+
}, xe = 1, gt = 1, fe = 26 / 180 * Math.PI, Me = Math.cos(fe), ye = Math.sin(fe), mt = 100 / Math.log(139 / 100), cn = ({ l: e, c: n, h: t, alpha: a }) => {
|
|
682
703
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
683
704
|
let r = {
|
|
684
705
|
mode: "lab65",
|
|
685
|
-
l: (Math.exp(e *
|
|
686
|
-
}, i = (Math.exp(0.0435 * n * gt *
|
|
687
|
-
return r.a = o *
|
|
706
|
+
l: (Math.exp(e * xe / mt) - 1) / 39e-4
|
|
707
|
+
}, i = (Math.exp(0.0435 * n * gt * xe) - 1) / 0.075, o = i * Math.cos(t / 180 * Math.PI - fe), d = i * Math.sin(t / 180 * Math.PI - fe);
|
|
708
|
+
return r.a = o * Me - d / 0.83 * ye, r.b = o * ye + d / 0.83 * Me, a !== void 0 && (r.alpha = a), r;
|
|
688
709
|
}, hn = ({ l: e, a: n, b: t, alpha: a }) => {
|
|
689
710
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
690
|
-
let r = n *
|
|
711
|
+
let r = n * Me + t * ye, i = 0.83 * (t * Me - n * ye), o = Math.sqrt(r * r + i * i), d = {
|
|
691
712
|
mode: "dlch",
|
|
692
|
-
l: mt /
|
|
693
|
-
c: Math.log(1 + 0.075 * o) / (0.0435 * gt *
|
|
713
|
+
l: mt / xe * Math.log(1 + 39e-4 * e),
|
|
714
|
+
c: Math.log(1 + 0.075 * o) / (0.0435 * gt * xe)
|
|
694
715
|
};
|
|
695
716
|
return d.c && (d.h = w((Math.atan2(i, r) + fe) / Math.PI * 180)), a !== void 0 && (d.alpha = a), d;
|
|
696
|
-
},
|
|
717
|
+
}, Ln = (e) => cn(H(e, "dlch")), jn = (e) => O(hn(e), "dlab"), T0 = {
|
|
697
718
|
mode: "dlab",
|
|
698
719
|
parse: ["--din99o-lab"],
|
|
699
720
|
serialize: "--din99o-lab",
|
|
700
721
|
toMode: {
|
|
701
|
-
lab65:
|
|
702
|
-
rgb: (e) => $e(
|
|
722
|
+
lab65: Ln,
|
|
723
|
+
rgb: (e) => $e(Ln(e))
|
|
703
724
|
},
|
|
704
725
|
fromMode: {
|
|
705
|
-
lab65:
|
|
706
|
-
rgb: (e) =>
|
|
726
|
+
lab65: jn,
|
|
727
|
+
rgb: (e) => jn(ze(e))
|
|
707
728
|
},
|
|
708
729
|
channels: ["l", "a", "b", "alpha"],
|
|
709
730
|
ranges: {
|
|
@@ -1108,7 +1129,7 @@ function Be(e) {
|
|
|
1108
1129
|
const n = Math.pow(e / 1e4, we);
|
|
1109
1130
|
return Math.pow((Te + Ne * n) / (1 + Pe * n), _t);
|
|
1110
1131
|
}
|
|
1111
|
-
const Ge = (e) => Math.max(e / kt, 0),
|
|
1132
|
+
const Ge = (e) => Math.max(e / kt, 0), qn = ({ i: e, t: n, p: t, alpha: a }) => {
|
|
1112
1133
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1113
1134
|
const r = Ze(
|
|
1114
1135
|
e + 0.008609037037932761 * n + 0.11102962500302593 * t
|
|
@@ -1129,7 +1150,7 @@ const Ge = (e) => Math.max(e / kt, 0), Ln = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1129
1150
|
)
|
|
1130
1151
|
};
|
|
1131
1152
|
return a !== void 0 && (d.alpha = a), d;
|
|
1132
|
-
}, Ue = (e = 0) => Math.max(e * kt, 0),
|
|
1153
|
+
}, Ue = (e = 0) => Math.max(e * kt, 0), Yn = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
1133
1154
|
const r = Ue(e), i = Ue(n), o = Ue(t), d = Be(
|
|
1134
1155
|
0.3592832590121217 * r + 0.6976051147779502 * i - 0.0358915932320289 * o
|
|
1135
1156
|
), s = Be(
|
|
@@ -1144,12 +1165,12 @@ const Ge = (e) => Math.max(e / kt, 0), Ln = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1144
1165
|
parse: ["--ictcp"],
|
|
1145
1166
|
serialize: "--ictcp",
|
|
1146
1167
|
toMode: {
|
|
1147
|
-
xyz65:
|
|
1148
|
-
rgb: (e) => Z(
|
|
1168
|
+
xyz65: qn,
|
|
1169
|
+
rgb: (e) => Z(qn(e))
|
|
1149
1170
|
},
|
|
1150
1171
|
fromMode: {
|
|
1151
|
-
xyz65:
|
|
1152
|
-
rgb: (e) =>
|
|
1172
|
+
xyz65: Yn,
|
|
1173
|
+
rgb: (e) => Yn(D(e))
|
|
1153
1174
|
},
|
|
1154
1175
|
ranges: {
|
|
1155
1176
|
i: [0, 0.581],
|
|
@@ -1175,13 +1196,13 @@ const Ge = (e) => Math.max(e / kt, 0), Ln = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1175
1196
|
b: 0.199076 * o + 1.096799 * d - 1.295875 * s
|
|
1176
1197
|
};
|
|
1177
1198
|
return a !== void 0 && (h.alpha = a), h;
|
|
1178
|
-
}, Z0 = 134.03437499999998,
|
|
1199
|
+
}, Z0 = 134.03437499999998, Dn = 16295499532821565e-27, We = (e) => {
|
|
1179
1200
|
if (e < 0) return 0;
|
|
1180
1201
|
let n = Math.pow(e, 1 / Z0);
|
|
1181
1202
|
return 1e4 * Math.pow((Te - n) / (Pe * n - Ne), 1 / we);
|
|
1182
1203
|
}, Ke = (e) => e / 203, zt = ({ j: e, a: n, b: t, alpha: a }) => {
|
|
1183
1204
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1184
|
-
let r = (e +
|
|
1205
|
+
let r = (e + Dn) / (0.44 + 0.56 * (e + Dn)), i = We(r + 0.13860504 * n + 0.058047316 * t), o = We(r - 0.13860504 * n - 0.058047316 * t), d = We(r - 0.096019242 * n - 0.8118919 * t), s = {
|
|
1185
1206
|
mode: "xyz65",
|
|
1186
1207
|
x: Ke(
|
|
1187
1208
|
1.661373024652174 * i - 0.914523081304348 * o + 0.23136208173913045 * d
|
|
@@ -1219,7 +1240,7 @@ const Ge = (e) => Math.max(e / kt, 0), Ln = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1219
1240
|
b: l,
|
|
1220
1241
|
alpha: { use: l, fixup: k }
|
|
1221
1242
|
}
|
|
1222
|
-
},
|
|
1243
|
+
}, Zn = ({ j: e, a: n, b: t, alpha: a }) => {
|
|
1223
1244
|
n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1224
1245
|
let r = Math.sqrt(n * n + t * t), i = {
|
|
1225
1246
|
mode: "jch",
|
|
@@ -1227,7 +1248,7 @@ const Ge = (e) => Math.max(e / kt, 0), Ln = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1227
1248
|
c: r
|
|
1228
1249
|
};
|
|
1229
1250
|
return r && (i.h = w(Math.atan2(t, n) * 180 / Math.PI)), a !== void 0 && (i.alpha = a), i;
|
|
1230
|
-
},
|
|
1251
|
+
}, Bn = ({ j: e, c: n, h: t, alpha: a }) => {
|
|
1231
1252
|
t === void 0 && (t = 0);
|
|
1232
1253
|
let r = {
|
|
1233
1254
|
mode: "jab",
|
|
@@ -1241,12 +1262,12 @@ const Ge = (e) => Math.max(e / kt, 0), Ln = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1241
1262
|
parse: ["--jzczhz"],
|
|
1242
1263
|
serialize: "--jzczhz",
|
|
1243
1264
|
toMode: {
|
|
1244
|
-
jab:
|
|
1245
|
-
rgb: (e) => Tt(
|
|
1265
|
+
jab: Bn,
|
|
1266
|
+
rgb: (e) => Tt(Bn(e))
|
|
1246
1267
|
},
|
|
1247
1268
|
fromMode: {
|
|
1248
|
-
rgb: (e) =>
|
|
1249
|
-
jab:
|
|
1269
|
+
rgb: (e) => Zn(wt(e)),
|
|
1270
|
+
jab: Zn
|
|
1250
1271
|
},
|
|
1251
1272
|
channels: ["j", "c", "h", "alpha"],
|
|
1252
1273
|
ranges: {
|
|
@@ -1566,7 +1587,7 @@ function gn(e) {
|
|
|
1566
1587
|
const a = 1.170873786407767;
|
|
1567
1588
|
return 0.5 * (a * e - 0.206 + Math.sqrt((a * e - 0.206) * (a * e - 0.206) + 4 * 0.03 * a * e));
|
|
1568
1589
|
}
|
|
1569
|
-
function
|
|
1590
|
+
function ve(e) {
|
|
1570
1591
|
return (e * e + 0.206 * e) / (1.170873786407767 * (e + 0.03));
|
|
1571
1592
|
}
|
|
1572
1593
|
function sr(e, n) {
|
|
@@ -1613,7 +1634,7 @@ function It(e, n, t) {
|
|
|
1613
1634
|
);
|
|
1614
1635
|
return u = e * 0.4, h = (1 - e) * 0.8, [Math.sqrt(1 / (1 / (u * u) + 1 / (h * h))), p, r];
|
|
1615
1636
|
}
|
|
1616
|
-
function
|
|
1637
|
+
function Gn(e) {
|
|
1617
1638
|
const n = e.l !== void 0 ? e.l : 0, t = e.a !== void 0 ? e.a : 0, a = e.b !== void 0 ? e.b : 0, r = { mode: "okhsl", l: gn(n) };
|
|
1618
1639
|
e.alpha !== void 0 && (r.alpha = e.alpha);
|
|
1619
1640
|
let i = Math.sqrt(t * t + a * a);
|
|
@@ -1629,9 +1650,9 @@ function Zn(e) {
|
|
|
1629
1650
|
}
|
|
1630
1651
|
return u && (r.s = u, r.h = w(Math.atan2(a, t) * 180 / Math.PI)), r;
|
|
1631
1652
|
}
|
|
1632
|
-
function
|
|
1653
|
+
function Un(e) {
|
|
1633
1654
|
let n = e.h !== void 0 ? e.h : 0, t = e.s !== void 0 ? e.s : 0, a = e.l !== void 0 ? e.l : 0;
|
|
1634
|
-
const r = { mode: "oklab", l:
|
|
1655
|
+
const r = { mode: "oklab", l: ve(a) };
|
|
1635
1656
|
if (e.alpha !== void 0 && (r.alpha = e.alpha), !t || a === 1)
|
|
1636
1657
|
return r.a = r.b = 0, r;
|
|
1637
1658
|
let i = Math.cos(n / 180 * Math.PI), o = Math.sin(n / 180 * Math.PI), [d, s, u] = It(r.l, i, o), h, p, g, M;
|
|
@@ -1646,16 +1667,16 @@ const cr = {
|
|
|
1646
1667
|
parse: ["--okhsl"],
|
|
1647
1668
|
serialize: "--okhsl",
|
|
1648
1669
|
fromMode: {
|
|
1649
|
-
oklab:
|
|
1650
|
-
rgb: (e) =>
|
|
1670
|
+
oklab: Gn,
|
|
1671
|
+
rgb: (e) => Gn(Ae(e))
|
|
1651
1672
|
},
|
|
1652
1673
|
toMode: {
|
|
1653
|
-
oklab:
|
|
1654
|
-
rgb: (e) => Ce(
|
|
1674
|
+
oklab: Un,
|
|
1675
|
+
rgb: (e) => Ce(Un(e))
|
|
1655
1676
|
}
|
|
1656
1677
|
};
|
|
1657
|
-
function
|
|
1658
|
-
let n = e.l !== void 0 ? e.l : 0, t = e.a !== void 0 ? e.a : 0, a = e.b !== void 0 ? e.b : 0, r = Math.sqrt(t * t + a * a), i = r ? t / r : 1, o = r ? a / r : 1, [d, s] = wn(i, o), u = 0.5, h = 1 - u / d, p = s / (r + n * s), g = p * n, M = p * r, v =
|
|
1678
|
+
function Vn(e) {
|
|
1679
|
+
let n = e.l !== void 0 ? e.l : 0, t = e.a !== void 0 ? e.a : 0, a = e.b !== void 0 ? e.b : 0, r = Math.sqrt(t * t + a * a), i = r ? t / r : 1, o = r ? a / r : 1, [d, s] = wn(i, o), u = 0.5, h = 1 - u / d, p = s / (r + n * s), g = p * n, M = p * r, v = ve(g), z = M * v / g, _ = ue({ l: v, a: i * z, b: o * z }), S = Math.cbrt(
|
|
1659
1680
|
1 / Math.max(_.r, _.g, _.b, 0)
|
|
1660
1681
|
);
|
|
1661
1682
|
n = n / S, r = r / S * gn(n) / n, n = gn(n);
|
|
@@ -1666,16 +1687,16 @@ function Gn(e) {
|
|
|
1666
1687
|
};
|
|
1667
1688
|
return T.s && (T.h = w(Math.atan2(a, t) * 180 / Math.PI)), e.alpha !== void 0 && (T.alpha = e.alpha), T;
|
|
1668
1689
|
}
|
|
1669
|
-
function
|
|
1690
|
+
function Jn(e) {
|
|
1670
1691
|
const n = { mode: "oklab" };
|
|
1671
1692
|
e.alpha !== void 0 && (n.alpha = e.alpha);
|
|
1672
|
-
const t = e.h !== void 0 ? e.h : 0, a = e.s !== void 0 ? e.s : 0, r = e.v !== void 0 ? e.v : 0, i = Math.cos(t / 180 * Math.PI), o = Math.sin(t / 180 * Math.PI), [d, s] = wn(i, o), u = 0.5, h = 1 - u / d, p = 1 - a * u / (u + s - s * h * a), g = a * s * u / (u + s - s * h * a), M =
|
|
1693
|
+
const t = e.h !== void 0 ? e.h : 0, a = e.s !== void 0 ? e.s : 0, r = e.v !== void 0 ? e.v : 0, i = Math.cos(t / 180 * Math.PI), o = Math.sin(t / 180 * Math.PI), [d, s] = wn(i, o), u = 0.5, h = 1 - u / d, p = 1 - a * u / (u + s - s * h * a), g = a * s * u / (u + s - s * h * a), M = ve(p), v = g * M / p, z = ue({
|
|
1673
1694
|
l: M,
|
|
1674
1695
|
a: i * v,
|
|
1675
1696
|
b: o * v
|
|
1676
1697
|
}), _ = Math.cbrt(
|
|
1677
1698
|
1 / Math.max(z.r, z.g, z.b, 0)
|
|
1678
|
-
), S =
|
|
1699
|
+
), S = ve(r * p), T = g * S / p;
|
|
1679
1700
|
return n.l = S * _, n.a = T * i * _, n.b = T * o * _, n;
|
|
1680
1701
|
}
|
|
1681
1702
|
const hr = {
|
|
@@ -1685,12 +1706,12 @@ const hr = {
|
|
|
1685
1706
|
parse: ["--okhsv"],
|
|
1686
1707
|
serialize: "--okhsv",
|
|
1687
1708
|
fromMode: {
|
|
1688
|
-
oklab:
|
|
1689
|
-
rgb: (e) =>
|
|
1709
|
+
oklab: Vn,
|
|
1710
|
+
rgb: (e) => Vn(Ae(e))
|
|
1690
1711
|
},
|
|
1691
1712
|
toMode: {
|
|
1692
|
-
oklab:
|
|
1693
|
-
rgb: (e) => Ce(
|
|
1713
|
+
oklab: Jn,
|
|
1714
|
+
rgb: (e) => Ce(Jn(e))
|
|
1694
1715
|
}
|
|
1695
1716
|
};
|
|
1696
1717
|
function pr(e, n) {
|
|
@@ -1774,7 +1795,7 @@ const mr = {
|
|
|
1774
1795
|
c: [0, 0.4],
|
|
1775
1796
|
h: [0, 360]
|
|
1776
1797
|
}
|
|
1777
|
-
},
|
|
1798
|
+
}, Wn = (e) => {
|
|
1778
1799
|
let { r: n, g: t, b: a, alpha: r } = J(e), i = {
|
|
1779
1800
|
mode: "xyz65",
|
|
1780
1801
|
x: 0.486570948648216 * n + 0.265667693169093 * t + 0.1982172852343625 * a,
|
|
@@ -1782,7 +1803,7 @@ const mr = {
|
|
|
1782
1803
|
z: 0 * n + 0.0451133818589026 * t + 1.043944368900976 * a
|
|
1783
1804
|
};
|
|
1784
1805
|
return r !== void 0 && (i.alpha = r), i;
|
|
1785
|
-
},
|
|
1806
|
+
}, Kn = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
1786
1807
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1787
1808
|
let r = W(
|
|
1788
1809
|
{
|
|
@@ -1799,17 +1820,17 @@ const mr = {
|
|
|
1799
1820
|
parse: ["display-p3"],
|
|
1800
1821
|
serialize: "display-p3",
|
|
1801
1822
|
fromMode: {
|
|
1802
|
-
rgb: (e) =>
|
|
1803
|
-
xyz65:
|
|
1823
|
+
rgb: (e) => Kn(D(e)),
|
|
1824
|
+
xyz65: Kn
|
|
1804
1825
|
},
|
|
1805
1826
|
toMode: {
|
|
1806
|
-
rgb: (e) => Z(
|
|
1807
|
-
xyz65:
|
|
1827
|
+
rgb: (e) => Z(Wn(e)),
|
|
1828
|
+
xyz65: Wn
|
|
1808
1829
|
}
|
|
1809
1830
|
}, nn = (e) => {
|
|
1810
1831
|
let n = Math.abs(e);
|
|
1811
1832
|
return n >= 1 / 512 ? Math.sign(e) * Math.pow(n, 1 / 1.8) : 16 * e;
|
|
1812
|
-
},
|
|
1833
|
+
}, Qn = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
1813
1834
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1814
1835
|
let r = {
|
|
1815
1836
|
mode: "prophoto",
|
|
@@ -1825,7 +1846,7 @@ const mr = {
|
|
|
1825
1846
|
}, tn = (e = 0) => {
|
|
1826
1847
|
let n = Math.abs(e);
|
|
1827
1848
|
return n >= 16 / 512 ? Math.sign(e) * Math.pow(n, 1.8) : e / 16;
|
|
1828
|
-
},
|
|
1849
|
+
}, et = (e) => {
|
|
1829
1850
|
let n = tn(e.r), t = tn(e.g), a = tn(e.b), r = {
|
|
1830
1851
|
mode: "xyz50",
|
|
1831
1852
|
x: 0.7977666449006423 * n + 0.1351812974005331 * t + 0.0313477341283922 * a,
|
|
@@ -1839,17 +1860,17 @@ const mr = {
|
|
|
1839
1860
|
parse: ["prophoto-rgb"],
|
|
1840
1861
|
serialize: "prophoto-rgb",
|
|
1841
1862
|
fromMode: {
|
|
1842
|
-
xyz50:
|
|
1843
|
-
rgb: (e) =>
|
|
1863
|
+
xyz50: Qn,
|
|
1864
|
+
rgb: (e) => Qn(se(e))
|
|
1844
1865
|
},
|
|
1845
1866
|
toMode: {
|
|
1846
|
-
xyz50:
|
|
1847
|
-
rgb: (e) => le(
|
|
1867
|
+
xyz50: et,
|
|
1868
|
+
rgb: (e) => le(et(e))
|
|
1848
1869
|
}
|
|
1849
|
-
},
|
|
1870
|
+
}, nt = 1.09929682680944, yr = 0.018053968510807, rn = (e) => {
|
|
1850
1871
|
const n = Math.abs(e);
|
|
1851
|
-
return n > yr ? (Math.sign(e) || 1) * (
|
|
1852
|
-
},
|
|
1872
|
+
return n > yr ? (Math.sign(e) || 1) * (nt * Math.pow(n, 0.45) - (nt - 1)) : 4.5 * e;
|
|
1873
|
+
}, tt = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
1853
1874
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1854
1875
|
let r = {
|
|
1855
1876
|
mode: "rec2020",
|
|
@@ -1864,10 +1885,10 @@ const mr = {
|
|
|
1864
1885
|
)
|
|
1865
1886
|
};
|
|
1866
1887
|
return a !== void 0 && (r.alpha = a), r;
|
|
1867
|
-
},
|
|
1888
|
+
}, rt = 1.09929682680944, vr = 0.018053968510807, an = (e = 0) => {
|
|
1868
1889
|
let n = Math.abs(e);
|
|
1869
|
-
return n < vr * 4.5 ? e / 4.5 : (Math.sign(e) || 1) * Math.pow((n +
|
|
1870
|
-
},
|
|
1890
|
+
return n < vr * 4.5 ? e / 4.5 : (Math.sign(e) || 1) * Math.pow((n + rt - 1) / rt, 1 / 0.45);
|
|
1891
|
+
}, at = (e) => {
|
|
1871
1892
|
let n = an(e.r), t = an(e.g), a = an(e.b), r = {
|
|
1872
1893
|
mode: "xyz65",
|
|
1873
1894
|
x: 0.6369580483012911 * n + 0.1446169035862083 * t + 0.1688809751641721 * a,
|
|
@@ -1879,12 +1900,12 @@ const mr = {
|
|
|
1879
1900
|
...V,
|
|
1880
1901
|
mode: "rec2020",
|
|
1881
1902
|
fromMode: {
|
|
1882
|
-
xyz65:
|
|
1883
|
-
rgb: (e) =>
|
|
1903
|
+
xyz65: tt,
|
|
1904
|
+
rgb: (e) => tt(D(e))
|
|
1884
1905
|
},
|
|
1885
1906
|
toMode: {
|
|
1886
|
-
xyz65:
|
|
1887
|
-
rgb: (e) => Z(
|
|
1907
|
+
xyz65: at,
|
|
1908
|
+
rgb: (e) => Z(at(e))
|
|
1888
1909
|
},
|
|
1889
1910
|
parse: ["rec2020"],
|
|
1890
1911
|
serialize: "rec2020"
|
|
@@ -2078,7 +2099,7 @@ function Ot(e) {
|
|
|
2078
2099
|
b: q(t.b) * 255
|
|
2079
2100
|
};
|
|
2080
2101
|
}
|
|
2081
|
-
function
|
|
2102
|
+
function ia(e) {
|
|
2082
2103
|
const n = Mn(e);
|
|
2083
2104
|
if (!n) return null;
|
|
2084
2105
|
const t = Ht(n);
|
|
@@ -2120,7 +2141,7 @@ function Rr(e) {
|
|
|
2120
2141
|
const { h: n, s: t, l: a } = Fr(e);
|
|
2121
2142
|
return `${n} ${t}% ${a}%`;
|
|
2122
2143
|
}
|
|
2123
|
-
function
|
|
2144
|
+
function oa(e) {
|
|
2124
2145
|
const n = Ot(e);
|
|
2125
2146
|
return n ? Rr(n) : null;
|
|
2126
2147
|
}
|
|
@@ -2130,11 +2151,152 @@ function j(e) {
|
|
|
2130
2151
|
function q(e) {
|
|
2131
2152
|
return Math.min(1, Math.max(0, e));
|
|
2132
2153
|
}
|
|
2133
|
-
const
|
|
2154
|
+
const it = [
|
|
2155
|
+
"#3b82f6",
|
|
2156
|
+
"#10b981",
|
|
2157
|
+
"#f59e0b",
|
|
2158
|
+
"#ef4444",
|
|
2159
|
+
"#8b5cf6",
|
|
2160
|
+
"#06b6d4",
|
|
2161
|
+
"#84cc16",
|
|
2162
|
+
"#f97316"
|
|
2163
|
+
], Ir = {
|
|
2164
|
+
version: 1,
|
|
2165
|
+
mode: "system",
|
|
2166
|
+
schemes: {
|
|
2167
|
+
light: {
|
|
2168
|
+
tokens: {
|
|
2169
|
+
color: {
|
|
2170
|
+
background: "hsl(0 0% 100%)",
|
|
2171
|
+
foreground: "hsl(240 5.9% 10%)",
|
|
2172
|
+
muted: "hsl(0 0% 98%)",
|
|
2173
|
+
mutedForeground: "hsl(240 3.8% 46.1%)",
|
|
2174
|
+
border: "hsl(240 5.9% 90%)",
|
|
2175
|
+
input: "hsl(240 5.9% 90%)",
|
|
2176
|
+
primary: "hsl(240 5.9% 10%)",
|
|
2177
|
+
primaryForeground: "hsl(0 0% 98%)",
|
|
2178
|
+
accent: "hsl(240 4.8% 95.9%)",
|
|
2179
|
+
accentForeground: "hsl(240 5.9% 10%)",
|
|
2180
|
+
card: "hsl(0 0% 100%)",
|
|
2181
|
+
cardForeground: "hsl(240 5.9% 10%)",
|
|
2182
|
+
positive: "#16a34a",
|
|
2183
|
+
negative: "#dc2626",
|
|
2184
|
+
warning: "#d97706",
|
|
2185
|
+
info: "#0284c7",
|
|
2186
|
+
destructive: "hsl(0 72.2% 50.6%)",
|
|
2187
|
+
destructiveForeground: "hsl(0 0% 98%)"
|
|
2188
|
+
},
|
|
2189
|
+
typography: {
|
|
2190
|
+
fontFamily: be,
|
|
2191
|
+
headingFontFamily: Fn,
|
|
2192
|
+
monoFontFamily: Rn,
|
|
2193
|
+
baseFontSize: 14,
|
|
2194
|
+
density: "comfortable"
|
|
2195
|
+
},
|
|
2196
|
+
radius: {
|
|
2197
|
+
control: 5,
|
|
2198
|
+
card: 5,
|
|
2199
|
+
table: 5,
|
|
2200
|
+
badge: 999
|
|
2201
|
+
},
|
|
2202
|
+
spacing: {
|
|
2203
|
+
dashboardPadding: 16,
|
|
2204
|
+
gridGap: 12,
|
|
2205
|
+
cardPadding: 16,
|
|
2206
|
+
controlGap: 8,
|
|
2207
|
+
tableCellX: 12,
|
|
2208
|
+
tableCellY: 8
|
|
2209
|
+
},
|
|
2210
|
+
shadow: {
|
|
2211
|
+
card: "0 1px 2px rgba(15, 23, 42, 0.08)",
|
|
2212
|
+
popover: "0 12px 32px rgba(15, 23, 42, 0.14)",
|
|
2213
|
+
focusRing: "0 0 0 2px rgba(37, 99, 235, 0.35)"
|
|
2214
|
+
}
|
|
2215
|
+
},
|
|
2216
|
+
components: {
|
|
2217
|
+
chart: {
|
|
2218
|
+
palette: it
|
|
2219
|
+
},
|
|
2220
|
+
table: {
|
|
2221
|
+
density: "compact"
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
},
|
|
2225
|
+
dark: {
|
|
2226
|
+
tokens: {
|
|
2227
|
+
color: {
|
|
2228
|
+
background: "hsl(240 10% 3.9%)",
|
|
2229
|
+
foreground: "hsl(0 0% 93%)",
|
|
2230
|
+
muted: "hsl(240 5.9% 10%)",
|
|
2231
|
+
mutedForeground: "hsl(240 5% 64.9%)",
|
|
2232
|
+
border: "hsl(240 3.7% 15.9%)",
|
|
2233
|
+
input: "hsl(240 3.7% 15.9%)",
|
|
2234
|
+
primary: "hsl(0 0% 98%)",
|
|
2235
|
+
primaryForeground: "hsl(240 5.9% 10%)",
|
|
2236
|
+
accent: "hsl(240 3.7% 15.9%)",
|
|
2237
|
+
accentForeground: "hsl(0 0% 93%)",
|
|
2238
|
+
card: "hsl(240 10% 3.9%)",
|
|
2239
|
+
cardForeground: "hsl(0 0% 93%)",
|
|
2240
|
+
positive: "#22c55e",
|
|
2241
|
+
negative: "#f87171",
|
|
2242
|
+
warning: "#fbbf24",
|
|
2243
|
+
info: "#38bdf8",
|
|
2244
|
+
destructive: "hsl(0 62.8% 30.6%)",
|
|
2245
|
+
destructiveForeground: "hsl(0 0% 93%)"
|
|
2246
|
+
},
|
|
2247
|
+
typography: {
|
|
2248
|
+
fontFamily: be,
|
|
2249
|
+
headingFontFamily: Fn,
|
|
2250
|
+
monoFontFamily: Rn,
|
|
2251
|
+
baseFontSize: 14,
|
|
2252
|
+
density: "comfortable"
|
|
2253
|
+
},
|
|
2254
|
+
radius: {
|
|
2255
|
+
control: 5,
|
|
2256
|
+
card: 5,
|
|
2257
|
+
table: 5,
|
|
2258
|
+
badge: 999
|
|
2259
|
+
},
|
|
2260
|
+
spacing: {
|
|
2261
|
+
dashboardPadding: 16,
|
|
2262
|
+
gridGap: 12,
|
|
2263
|
+
cardPadding: 16,
|
|
2264
|
+
controlGap: 8,
|
|
2265
|
+
tableCellX: 12,
|
|
2266
|
+
tableCellY: 8
|
|
2267
|
+
},
|
|
2268
|
+
shadow: {
|
|
2269
|
+
card: "0 1px 2px rgba(0, 0, 0, 0.3)",
|
|
2270
|
+
popover: "0 12px 32px rgba(0, 0, 0, 0.45)",
|
|
2271
|
+
focusRing: "0 0 0 2px rgba(96, 165, 250, 0.35)"
|
|
2272
|
+
}
|
|
2273
|
+
},
|
|
2274
|
+
components: {
|
|
2275
|
+
chart: {
|
|
2276
|
+
palette: it
|
|
2277
|
+
},
|
|
2278
|
+
table: {
|
|
2279
|
+
density: "compact"
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
}, Xt = Lt(
|
|
2285
|
+
Ir
|
|
2286
|
+
);
|
|
2287
|
+
function Lt(e) {
|
|
2288
|
+
if (typeof e != "object" || e === null || Object.isFrozen(e))
|
|
2289
|
+
return e;
|
|
2290
|
+
Object.freeze(e);
|
|
2291
|
+
for (const n of Object.values(e))
|
|
2292
|
+
Lt(n);
|
|
2293
|
+
return e;
|
|
2294
|
+
}
|
|
2295
|
+
const jt = 1, Er = /* @__PURE__ */ new Set(["light", "dark", "system"]), Hr = /* @__PURE__ */ new Set([
|
|
2134
2296
|
"compact",
|
|
2135
2297
|
"comfortable",
|
|
2136
2298
|
"spacious"
|
|
2137
|
-
]),
|
|
2299
|
+
]), Or = Object.fromEntries(
|
|
2138
2300
|
[
|
|
2139
2301
|
"background",
|
|
2140
2302
|
"foreground",
|
|
@@ -2155,25 +2317,25 @@ const Xt = 1, Ir = /* @__PURE__ */ new Set(["light", "dark", "system"]), Er = /*
|
|
|
2155
2317
|
"destructive",
|
|
2156
2318
|
"destructiveForeground"
|
|
2157
2319
|
].map((e) => [e, m])
|
|
2158
|
-
),
|
|
2320
|
+
), Xr = {
|
|
2159
2321
|
fontFamily: E,
|
|
2160
2322
|
headingFontFamily: E,
|
|
2161
2323
|
monoFontFamily: E,
|
|
2162
2324
|
baseFontSize: oe,
|
|
2163
|
-
density:
|
|
2164
|
-
},
|
|
2325
|
+
density: Yt
|
|
2326
|
+
}, Lr = {
|
|
2165
2327
|
control: P,
|
|
2166
2328
|
card: P,
|
|
2167
2329
|
table: P,
|
|
2168
2330
|
badge: P
|
|
2169
|
-
},
|
|
2331
|
+
}, jr = {
|
|
2170
2332
|
dashboardPadding: P,
|
|
2171
2333
|
gridGap: P,
|
|
2172
2334
|
cardPadding: P,
|
|
2173
2335
|
controlGap: P,
|
|
2174
2336
|
tableCellX: P,
|
|
2175
2337
|
tableCellY: P
|
|
2176
|
-
},
|
|
2338
|
+
}, qr = {
|
|
2177
2339
|
card: E,
|
|
2178
2340
|
popover: E,
|
|
2179
2341
|
focusRing: E
|
|
@@ -2184,23 +2346,23 @@ const Xt = 1, Ir = /* @__PURE__ */ new Set(["light", "dark", "system"]), Er = /*
|
|
|
2184
2346
|
borderRadius: P,
|
|
2185
2347
|
shadow: E,
|
|
2186
2348
|
padding: P
|
|
2187
|
-
},
|
|
2349
|
+
}, Yr = {
|
|
2188
2350
|
...pe,
|
|
2189
2351
|
toolbarBackground: m
|
|
2190
|
-
},
|
|
2191
|
-
palette:
|
|
2352
|
+
}, Dr = {
|
|
2353
|
+
palette: na,
|
|
2192
2354
|
background: m,
|
|
2193
2355
|
foreground: m,
|
|
2194
2356
|
gridColor: m,
|
|
2195
2357
|
axisColor: m
|
|
2196
|
-
},
|
|
2358
|
+
}, Zr = {
|
|
2197
2359
|
background: m,
|
|
2198
2360
|
borderColor: m,
|
|
2199
2361
|
borderRadius: P,
|
|
2200
2362
|
shadow: E
|
|
2201
2363
|
}, fn = {
|
|
2202
|
-
density:
|
|
2203
|
-
container: x(
|
|
2364
|
+
density: Yt,
|
|
2365
|
+
container: x(Zr),
|
|
2204
2366
|
header: x({
|
|
2205
2367
|
background: m,
|
|
2206
2368
|
foreground: m,
|
|
@@ -2220,8 +2382,8 @@ const Xt = 1, Ir = /* @__PURE__ */ new Set(["light", "dark", "system"]), Er = /*
|
|
|
2220
2382
|
cell: x({
|
|
2221
2383
|
paddingX: P,
|
|
2222
2384
|
paddingY: P,
|
|
2223
|
-
verticalAlign:
|
|
2224
|
-
wrap:
|
|
2385
|
+
verticalAlign: Qr,
|
|
2386
|
+
wrap: ea
|
|
2225
2387
|
}),
|
|
2226
2388
|
subtotal: x({
|
|
2227
2389
|
background: m,
|
|
@@ -2239,42 +2401,42 @@ const Xt = 1, Ir = /* @__PURE__ */ new Set(["light", "dark", "system"]), Er = /*
|
|
|
2239
2401
|
foreground: m,
|
|
2240
2402
|
borderColor: m
|
|
2241
2403
|
})
|
|
2242
|
-
}, Zr = {
|
|
2243
|
-
color: x(Hr),
|
|
2244
|
-
typography: x(Or),
|
|
2245
|
-
radius: x(Xr),
|
|
2246
|
-
spacing: x(Lr),
|
|
2247
|
-
shadow: x(jr)
|
|
2248
2404
|
}, Br = {
|
|
2405
|
+
color: x(Or),
|
|
2406
|
+
typography: x(Xr),
|
|
2407
|
+
radius: x(Lr),
|
|
2408
|
+
spacing: x(jr),
|
|
2409
|
+
shadow: x(qr)
|
|
2410
|
+
}, Gr = {
|
|
2249
2411
|
dashboard: x(pe),
|
|
2250
2412
|
card: x(pe),
|
|
2251
|
-
interactive: x(
|
|
2252
|
-
chart: x(
|
|
2413
|
+
interactive: x(Yr),
|
|
2414
|
+
chart: x(Dr),
|
|
2253
2415
|
table: x(fn),
|
|
2254
2416
|
pivotTable: x(fn),
|
|
2255
2417
|
aggregateTable: x(fn),
|
|
2256
2418
|
pagination: x(pe)
|
|
2257
|
-
},
|
|
2258
|
-
tokens: x(
|
|
2259
|
-
components: x(
|
|
2260
|
-
}, Gr = {
|
|
2261
|
-
light: x(rt),
|
|
2262
|
-
dark: x(rt)
|
|
2419
|
+
}, ot = {
|
|
2420
|
+
tokens: x(Br),
|
|
2421
|
+
components: x(Gr)
|
|
2263
2422
|
}, Ur = {
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2423
|
+
light: x(ot),
|
|
2424
|
+
dark: x(ot)
|
|
2425
|
+
}, Vr = {
|
|
2426
|
+
version: Wr,
|
|
2427
|
+
mode: Kr,
|
|
2428
|
+
schemes: x(Ur)
|
|
2267
2429
|
};
|
|
2268
|
-
function
|
|
2430
|
+
function Jr(e) {
|
|
2269
2431
|
const n = [];
|
|
2270
|
-
return x(
|
|
2432
|
+
return x(Vr)(e, "$", n), Dt(e) && !("version" in e) && N(n, "$.version", "invalid_version", "version must be 1"), n.length > 0 ? { success: !1, issues: n } : {
|
|
2271
2433
|
success: !0,
|
|
2272
2434
|
value: e,
|
|
2273
2435
|
issues: []
|
|
2274
2436
|
};
|
|
2275
2437
|
}
|
|
2276
|
-
function
|
|
2277
|
-
const n =
|
|
2438
|
+
function qt(e) {
|
|
2439
|
+
const n = Jr(e);
|
|
2278
2440
|
if (n.success) return;
|
|
2279
2441
|
const t = n.issues[0];
|
|
2280
2442
|
throw new Error(
|
|
@@ -2283,7 +2445,7 @@ function Lt(e) {
|
|
|
2283
2445
|
}
|
|
2284
2446
|
function x(e) {
|
|
2285
2447
|
return (n, t, a) => {
|
|
2286
|
-
if (!
|
|
2448
|
+
if (!Dt(n)) {
|
|
2287
2449
|
N(a, t, "invalid_type", "expected an object");
|
|
2288
2450
|
return;
|
|
2289
2451
|
}
|
|
@@ -2297,19 +2459,19 @@ function x(e) {
|
|
|
2297
2459
|
}
|
|
2298
2460
|
};
|
|
2299
2461
|
}
|
|
2300
|
-
function Jr(e, n, t) {
|
|
2301
|
-
e !== Xt && N(t, n, "invalid_version", "version must be 1");
|
|
2302
|
-
}
|
|
2303
2462
|
function Wr(e, n, t) {
|
|
2304
|
-
|
|
2305
|
-
}
|
|
2306
|
-
function jt(e, n, t) {
|
|
2307
|
-
(typeof e != "string" || !Er.has(e)) && N(t, n, "invalid_value", "density must be compact, comfortable, or spacious");
|
|
2463
|
+
e !== jt && N(t, n, "invalid_version", "version must be 1");
|
|
2308
2464
|
}
|
|
2309
2465
|
function Kr(e, n, t) {
|
|
2310
|
-
|
|
2466
|
+
(typeof e != "string" || !Er.has(e)) && N(t, n, "invalid_value", "mode must be light, dark, or system");
|
|
2467
|
+
}
|
|
2468
|
+
function Yt(e, n, t) {
|
|
2469
|
+
(typeof e != "string" || !Hr.has(e)) && N(t, n, "invalid_value", "density must be compact, comfortable, or spacious");
|
|
2311
2470
|
}
|
|
2312
2471
|
function Qr(e, n, t) {
|
|
2472
|
+
e !== "top" && e !== "middle" && e !== "bottom" && N(t, n, "invalid_value", "verticalAlign must be top, middle, or bottom");
|
|
2473
|
+
}
|
|
2474
|
+
function ea(e, n, t) {
|
|
2313
2475
|
e !== "wrap" && e !== "nowrap" && N(t, n, "invalid_value", "wrap must be wrap or nowrap");
|
|
2314
2476
|
}
|
|
2315
2477
|
function ln(e, n, t) {
|
|
@@ -2322,7 +2484,7 @@ function m(e, n, t) {
|
|
|
2322
2484
|
}
|
|
2323
2485
|
Ot(e) || N(t, n, "invalid_color", "color must be a valid opaque CSS color");
|
|
2324
2486
|
}
|
|
2325
|
-
function
|
|
2487
|
+
function na(e, n, t) {
|
|
2326
2488
|
if (!Array.isArray(e)) {
|
|
2327
2489
|
N(t, n, "invalid_type", "expected an array of colors");
|
|
2328
2490
|
return;
|
|
@@ -2345,179 +2507,17 @@ function P(e, n, t) {
|
|
|
2345
2507
|
function N(e, n, t, a) {
|
|
2346
2508
|
e.push({ path: n, code: t, message: a });
|
|
2347
2509
|
}
|
|
2348
|
-
function
|
|
2510
|
+
function Dt(e) {
|
|
2349
2511
|
if (typeof e != "object" || e === null || Array.isArray(e))
|
|
2350
2512
|
return !1;
|
|
2351
2513
|
const n = Object.getPrototypeOf(e);
|
|
2352
2514
|
return n === Object.prototype || n === null;
|
|
2353
2515
|
}
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
id: "open-sans",
|
|
2357
|
-
label: "Semaphor default / Open Sans",
|
|
2358
|
-
value: ve
|
|
2359
|
-
},
|
|
2360
|
-
{
|
|
2361
|
-
id: "inter",
|
|
2362
|
-
label: "Inter",
|
|
2363
|
-
value: 'Inter, "Open Sans", Arial, ui-sans-serif, system-ui, sans-serif'
|
|
2364
|
-
},
|
|
2365
|
-
{
|
|
2366
|
-
id: "ibm-plex-sans",
|
|
2367
|
-
label: "IBM Plex Sans",
|
|
2368
|
-
value: '"IBM Plex Sans", "Open Sans", Arial, ui-sans-serif, system-ui, sans-serif'
|
|
2369
|
-
},
|
|
2370
|
-
{
|
|
2371
|
-
id: "system",
|
|
2372
|
-
label: "System UI",
|
|
2373
|
-
value: 'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif'
|
|
2374
|
-
}
|
|
2375
|
-
], ot = [
|
|
2376
|
-
"#3b82f6",
|
|
2377
|
-
"#10b981",
|
|
2378
|
-
"#f59e0b",
|
|
2379
|
-
"#ef4444",
|
|
2380
|
-
"#8b5cf6",
|
|
2381
|
-
"#06b6d4",
|
|
2382
|
-
"#84cc16",
|
|
2383
|
-
"#f97316"
|
|
2384
|
-
], na = {
|
|
2385
|
-
version: 1,
|
|
2386
|
-
mode: "system",
|
|
2387
|
-
schemes: {
|
|
2388
|
-
light: {
|
|
2389
|
-
tokens: {
|
|
2390
|
-
color: {
|
|
2391
|
-
background: "hsl(0 0% 100%)",
|
|
2392
|
-
foreground: "hsl(240 5.9% 10%)",
|
|
2393
|
-
muted: "hsl(0 0% 98%)",
|
|
2394
|
-
mutedForeground: "hsl(240 3.8% 46.1%)",
|
|
2395
|
-
border: "hsl(240 5.9% 90%)",
|
|
2396
|
-
input: "hsl(240 5.9% 90%)",
|
|
2397
|
-
primary: "hsl(240 5.9% 10%)",
|
|
2398
|
-
primaryForeground: "hsl(0 0% 98%)",
|
|
2399
|
-
accent: "hsl(240 4.8% 95.9%)",
|
|
2400
|
-
accentForeground: "hsl(240 5.9% 10%)",
|
|
2401
|
-
card: "hsl(0 0% 100%)",
|
|
2402
|
-
cardForeground: "hsl(240 5.9% 10%)",
|
|
2403
|
-
positive: "#16a34a",
|
|
2404
|
-
negative: "#dc2626",
|
|
2405
|
-
warning: "#d97706",
|
|
2406
|
-
info: "#0284c7",
|
|
2407
|
-
destructive: "hsl(0 72.2% 50.6%)",
|
|
2408
|
-
destructiveForeground: "hsl(0 0% 98%)"
|
|
2409
|
-
},
|
|
2410
|
-
typography: {
|
|
2411
|
-
fontFamily: ve,
|
|
2412
|
-
headingFontFamily: at,
|
|
2413
|
-
monoFontFamily: it,
|
|
2414
|
-
baseFontSize: 14,
|
|
2415
|
-
density: "comfortable"
|
|
2416
|
-
},
|
|
2417
|
-
radius: {
|
|
2418
|
-
control: 5,
|
|
2419
|
-
card: 5,
|
|
2420
|
-
table: 5,
|
|
2421
|
-
badge: 999
|
|
2422
|
-
},
|
|
2423
|
-
spacing: {
|
|
2424
|
-
dashboardPadding: 16,
|
|
2425
|
-
gridGap: 12,
|
|
2426
|
-
cardPadding: 16,
|
|
2427
|
-
controlGap: 8,
|
|
2428
|
-
tableCellX: 12,
|
|
2429
|
-
tableCellY: 8
|
|
2430
|
-
},
|
|
2431
|
-
shadow: {
|
|
2432
|
-
card: "0 1px 2px rgba(15, 23, 42, 0.08)",
|
|
2433
|
-
popover: "0 12px 32px rgba(15, 23, 42, 0.14)",
|
|
2434
|
-
focusRing: "0 0 0 2px rgba(37, 99, 235, 0.35)"
|
|
2435
|
-
}
|
|
2436
|
-
},
|
|
2437
|
-
components: {
|
|
2438
|
-
chart: {
|
|
2439
|
-
palette: ot
|
|
2440
|
-
},
|
|
2441
|
-
table: {
|
|
2442
|
-
density: "compact"
|
|
2443
|
-
}
|
|
2444
|
-
}
|
|
2445
|
-
},
|
|
2446
|
-
dark: {
|
|
2447
|
-
tokens: {
|
|
2448
|
-
color: {
|
|
2449
|
-
background: "hsl(240 10% 3.9%)",
|
|
2450
|
-
foreground: "hsl(0 0% 93%)",
|
|
2451
|
-
muted: "hsl(240 5.9% 10%)",
|
|
2452
|
-
mutedForeground: "hsl(240 5% 64.9%)",
|
|
2453
|
-
border: "hsl(240 3.7% 15.9%)",
|
|
2454
|
-
input: "hsl(240 3.7% 15.9%)",
|
|
2455
|
-
primary: "hsl(0 0% 98%)",
|
|
2456
|
-
primaryForeground: "hsl(240 5.9% 10%)",
|
|
2457
|
-
accent: "hsl(240 3.7% 15.9%)",
|
|
2458
|
-
accentForeground: "hsl(0 0% 93%)",
|
|
2459
|
-
card: "hsl(240 10% 3.9%)",
|
|
2460
|
-
cardForeground: "hsl(0 0% 93%)",
|
|
2461
|
-
positive: "#22c55e",
|
|
2462
|
-
negative: "#f87171",
|
|
2463
|
-
warning: "#fbbf24",
|
|
2464
|
-
info: "#38bdf8",
|
|
2465
|
-
destructive: "hsl(0 62.8% 30.6%)",
|
|
2466
|
-
destructiveForeground: "hsl(0 0% 93%)"
|
|
2467
|
-
},
|
|
2468
|
-
typography: {
|
|
2469
|
-
fontFamily: ve,
|
|
2470
|
-
headingFontFamily: at,
|
|
2471
|
-
monoFontFamily: it,
|
|
2472
|
-
baseFontSize: 14,
|
|
2473
|
-
density: "comfortable"
|
|
2474
|
-
},
|
|
2475
|
-
radius: {
|
|
2476
|
-
control: 5,
|
|
2477
|
-
card: 5,
|
|
2478
|
-
table: 5,
|
|
2479
|
-
badge: 999
|
|
2480
|
-
},
|
|
2481
|
-
spacing: {
|
|
2482
|
-
dashboardPadding: 16,
|
|
2483
|
-
gridGap: 12,
|
|
2484
|
-
cardPadding: 16,
|
|
2485
|
-
controlGap: 8,
|
|
2486
|
-
tableCellX: 12,
|
|
2487
|
-
tableCellY: 8
|
|
2488
|
-
},
|
|
2489
|
-
shadow: {
|
|
2490
|
-
card: "0 1px 2px rgba(0, 0, 0, 0.3)",
|
|
2491
|
-
popover: "0 12px 32px rgba(0, 0, 0, 0.45)",
|
|
2492
|
-
focusRing: "0 0 0 2px rgba(96, 165, 250, 0.35)"
|
|
2493
|
-
}
|
|
2494
|
-
},
|
|
2495
|
-
components: {
|
|
2496
|
-
chart: {
|
|
2497
|
-
palette: ot
|
|
2498
|
-
},
|
|
2499
|
-
table: {
|
|
2500
|
-
density: "compact"
|
|
2501
|
-
}
|
|
2502
|
-
}
|
|
2503
|
-
}
|
|
2504
|
-
}
|
|
2505
|
-
}, Yt = Dt(
|
|
2506
|
-
na
|
|
2507
|
-
);
|
|
2508
|
-
function Dt(e) {
|
|
2509
|
-
if (typeof e != "object" || e === null || Object.isFrozen(e))
|
|
2510
|
-
return e;
|
|
2511
|
-
Object.freeze(e);
|
|
2512
|
-
for (const n of Object.values(e))
|
|
2513
|
-
Dt(n);
|
|
2514
|
-
return e;
|
|
2515
|
-
}
|
|
2516
|
-
function ta(e, n = Yt) {
|
|
2517
|
-
return Lt(e), Zt(n, e);
|
|
2516
|
+
function ta(e, n = Xt) {
|
|
2517
|
+
return qt(e), Zt(n, e);
|
|
2518
2518
|
}
|
|
2519
2519
|
function ra(e, n) {
|
|
2520
|
-
return
|
|
2520
|
+
return qt(n), Zt(e, n);
|
|
2521
2521
|
}
|
|
2522
2522
|
function Zt(e, n) {
|
|
2523
2523
|
return Bt(e, n);
|
|
@@ -2548,9 +2548,9 @@ function mn(e) {
|
|
|
2548
2548
|
return typeof e == "object" && e !== null && !Array.isArray(e);
|
|
2549
2549
|
}
|
|
2550
2550
|
function da(e = {}) {
|
|
2551
|
-
const n = e.defaults ??
|
|
2551
|
+
const n = e.defaults ?? Xt;
|
|
2552
2552
|
let t = ta(
|
|
2553
|
-
{ version:
|
|
2553
|
+
{ version: jt },
|
|
2554
2554
|
n
|
|
2555
2555
|
);
|
|
2556
2556
|
for (const a of [
|
|
@@ -2562,17 +2562,17 @@ function da(e = {}) {
|
|
|
2562
2562
|
return t;
|
|
2563
2563
|
}
|
|
2564
2564
|
export {
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2565
|
+
jt as A,
|
|
2566
|
+
be as S,
|
|
2567
|
+
aa as a,
|
|
2568
|
+
ia as b,
|
|
2569
|
+
Xt as c,
|
|
2570
|
+
oa as d,
|
|
2571
|
+
it as e,
|
|
2572
|
+
qt as f,
|
|
2573
2573
|
ra as m,
|
|
2574
2574
|
ta as n,
|
|
2575
2575
|
Ot as p,
|
|
2576
2576
|
da as r,
|
|
2577
|
-
|
|
2577
|
+
Jr as v
|
|
2578
2578
|
};
|