react-semaphor 0.1.423 → 0.1.425
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.cjs +1 -1
- package/dist/analytics-protocol/index.js +243 -91
- 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 +8 -8
- package/dist/chunks/{analyze-result-contract-D7pjjYPy.js → analyze-result-contract-DnfF8kBb.js} +434 -427
- package/dist/chunks/analyze-result-contract-ege_u6Nl.js +1 -0
- package/dist/chunks/{braces-8TRlDwDw.js → braces-BdbUk_r9.js} +1 -1
- package/dist/chunks/{braces-D2tStQjF.js → braces-CbO-aIwH.js} +1 -1
- package/dist/chunks/calendar-preferences-dialog-BLaSWhLl.js +1 -0
- package/dist/chunks/{calendar-preferences-dialog-t5ET6MON.js → calendar-preferences-dialog-DJwV0aqn.js} +4 -4
- package/dist/chunks/{catalog-field-grounding-CJKAqtiC.js → catalog-field-grounding-DcxPLns0.js} +10 -10
- package/dist/chunks/{switch-2bh3Hka1.js → code-editor-Bkk7s8hI.js} +7382 -6809
- package/dist/chunks/code-editor-CkXyNgYc.js +138 -0
- package/dist/chunks/{common-types-4bjoIgvm.js → common-types-ClkOI-3O.js} +4 -4
- package/dist/chunks/comparison-document-migration-CQJ0DZlL.js +414 -0
- package/dist/chunks/comparison-document-migration-Db64RWYD.js +1 -0
- package/dist/chunks/{index-yHe0SeLO.js → dashboard-5agU0G_D.js} +56752 -55440
- package/dist/chunks/dashboard-MKIqgGDp.js +1402 -0
- package/dist/chunks/{dashboard-briefing-launcher-S2akO-ub.js → dashboard-briefing-launcher-CII8-4qo.js} +11 -6
- package/dist/chunks/{dashboard-briefing-launcher-Cavd0QJb.js → dashboard-briefing-launcher-qyEVfuOm.js} +226 -209
- package/dist/chunks/dashboard-controls-PJpeYZHw.js +36 -0
- package/dist/chunks/dashboard-controls-aJY0FNPP.js +2196 -0
- package/dist/chunks/dashboard-input-contract-BFpERluO.js +18 -0
- package/dist/chunks/dashboard-input-contract-DV3cshjz.js +1 -0
- package/dist/chunks/{dashboard-json-Do2-pdPZ.js → dashboard-json-CzHSP6Fa.js} +16 -15
- package/dist/chunks/dashboard-json-DtmR5yCf.js +1 -0
- package/dist/chunks/date-formatter-BTTYdAik.js +1 -0
- package/dist/chunks/date-formatter-D-89jTjG.js +514 -0
- package/dist/chunks/{edit-dashboard-visual-Cw6bq4_w.js → edit-dashboard-visual-AkZzwBCV.js} +8892 -8996
- package/dist/chunks/edit-dashboard-visual-Cif6uDqN.js +182 -0
- package/dist/chunks/{index-CjzRe2su.js → index-CnujJ3fa.js} +3 -3
- package/dist/chunks/{index-DRlMUglg.js → index-Dpm_VET4.js} +2 -2
- package/dist/chunks/{index-CJdxSyQq.js → index-If0wlXGi.js} +308 -308
- package/dist/chunks/index-jSrCwPQz.js +31 -0
- package/dist/chunks/{x-CXDkqdur.js → index-xHCrHprY.js} +59 -59
- package/dist/chunks/{layout-grid-C0OI-MRn.js → layout-grid-B08pP7v6.js} +1 -1
- package/dist/chunks/{layout-grid-CiubineE.js → layout-grid-D5tYJg1-.js} +1 -1
- package/dist/chunks/metric-comparison-4oA4ouU9.js +354 -0
- package/dist/chunks/metric-comparison-nQKquVnx.js +1 -0
- package/dist/chunks/{palette-C4KTXOug.js → palette-C0yjT5Tv.js} +1 -1
- package/dist/chunks/{palette-Cp1hqZtm.js → palette-jqaAcwiQ.js} +1 -1
- package/dist/chunks/{save-DgMfP0j8.js → save-HCJjjzdX.js} +1 -1
- package/dist/chunks/{save-C__QggEE.js → save-Xdc4pnys.js} +1 -1
- package/dist/chunks/{search-BHsQIWBV.js → search-DHZCro8B.js} +1 -1
- package/dist/chunks/{search-DNCejM7Z.js → search-Dcud9ajy.js} +1 -1
- package/dist/chunks/{update-policy-C1pmhLz9.js → update-policy-BgONreNd.js} +1 -1
- package/dist/chunks/{update-policy-BCJc0oI5.js → update-policy-CY2k-pJP.js} +9 -9
- package/dist/chunks/{use-create-flow-overlay-state-5MDbZcs1.js → use-create-flow-overlay-state-ByOKVV2K.js} +62 -62
- package/dist/chunks/{use-create-flow-overlay-state-BNczg9Gj.js → use-create-flow-overlay-state-DmuReEnk.js} +2 -2
- package/dist/chunks/validators-B4VMLX3_.js +1 -0
- package/dist/chunks/{validators-PXkij33j.js → validators-Cz-XuORM.js} +123 -119
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/dashboard-authoring/index.cjs +2 -2
- package/dist/dashboard-authoring/index.js +6 -4
- package/dist/data-app-builder/index.cjs +6 -6
- package/dist/data-app-builder/index.js +5 -5
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +1 -1
- 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.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +1 -1
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +65 -68
- package/dist/format-utils/index.cjs +2 -2
- package/dist/format-utils/index.js +59 -58
- package/dist/index.cjs +1 -1
- package/dist/index.js +19 -19
- package/dist/style.css +1 -1
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/analytics-protocol.d.ts +299 -3
- package/dist/types/brand-studio.d.ts +2 -2
- package/dist/types/briefings.d.ts +65 -41
- package/dist/types/dashboard-assistant.d.ts +28 -7
- package/dist/types/dashboard-authoring.d.ts +123 -43
- package/dist/types/dashboard.d.ts +97 -48
- package/dist/types/data-app-builder.d.ts +2 -2
- package/dist/types/data-app-sdk.d.ts +1 -1
- package/dist/types/format-utils.d.ts +98 -10
- package/dist/types/index.js +1 -1
- package/dist/types/main.d.ts +229 -95
- package/dist/types/shared.d.ts +84 -43
- package/dist/types/surfboard.d.ts +99 -49
- package/dist/types/types.d.ts +110 -50
- package/package.json +2 -1
- package/dist/chunks/analyze-result-contract-DpDcImgk.js +0 -1
- package/dist/chunks/calendar-preferences-dialog-CTmeASaM.js +0 -1
- package/dist/chunks/contracts-CoCOpd_i.js +0 -11
- package/dist/chunks/contracts-CtB2VONT.js +0 -1
- package/dist/chunks/dashboard-controls-BJLrErjW.js +0 -2322
- package/dist/chunks/dashboard-controls-DzbP8AXA.js +0 -52
- package/dist/chunks/dashboard-json-5tWb5KD6.js +0 -1
- package/dist/chunks/date-formatter-B4EBSe9C.js +0 -1
- package/dist/chunks/date-formatter-BlhBftA9.js +0 -416
- package/dist/chunks/edit-dashboard-visual-Yh5YFgMF.js +0 -178
- package/dist/chunks/index-BPM3gDRw.js +0 -1406
- package/dist/chunks/switch-DMT7qf_R.js +0 -138
- package/dist/chunks/validators-DMlVbd1p.js +0 -1
- package/dist/chunks/x-B6ghREd2.js +0 -31
|
@@ -1,25 +1,4 @@
|
|
|
1
|
-
const
|
|
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) => {
|
|
1
|
+
const dt = (e, n) => {
|
|
23
2
|
if (typeof e == "number") {
|
|
24
3
|
if (n === 3)
|
|
25
4
|
return {
|
|
@@ -242,7 +221,7 @@ const be = '"Open Sans", Arial, ui-sans-serif, system-ui, sans-serif', Fn = be,
|
|
|
242
221
|
)
|
|
243
222
|
)
|
|
244
223
|
)
|
|
245
|
-
) : void 0, A = {}, lt = {},
|
|
224
|
+
) : void 0, A = {}, lt = {}, be = [], st = {}, i0 = (e) => e, b = (e) => (A[e.mode] = {
|
|
246
225
|
...A[e.mode],
|
|
247
226
|
...e.toMode
|
|
248
227
|
}, Object.keys(e.fromMode || {}).forEach((n) => {
|
|
@@ -260,7 +239,7 @@ const be = '"Open Sans", Arial, ui-sans-serif, system-ui, sans-serif', Fn = be,
|
|
|
260
239
|
if (!n)
|
|
261
240
|
throw new Error("'mode' required when 'parser' is a string");
|
|
262
241
|
st[e] = n;
|
|
263
|
-
} else typeof e == "function" &&
|
|
242
|
+
} else typeof e == "function" && be.indexOf(e) < 0 && be.push(e);
|
|
264
243
|
}, sn = /[^\x00-\x7F]|[a-zA-Z_]/, f0 = /[^\x00-\x7F]|[-\w]/, f = {
|
|
265
244
|
Function: "function",
|
|
266
245
|
Ident: "ident",
|
|
@@ -299,7 +278,7 @@ const l0 = {
|
|
|
299
278
|
function ie(e) {
|
|
300
279
|
let n = "";
|
|
301
280
|
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)) {
|
|
302
|
-
let t =
|
|
281
|
+
let t = ge(e);
|
|
303
282
|
return t === "deg" || t === "rad" || t === "turn" || t === "grad" ? { type: f.Hue, value: n * l0[t] } : void 0;
|
|
304
283
|
}
|
|
305
284
|
return e[c] === "%" ? (c++, { type: f.Percentage, value: +n }) : { type: f.Number, value: +n };
|
|
@@ -310,14 +289,14 @@ function he(e) {
|
|
|
310
289
|
n += e[c++];
|
|
311
290
|
return n;
|
|
312
291
|
}
|
|
313
|
-
function
|
|
292
|
+
function ge(e) {
|
|
314
293
|
let n = "";
|
|
315
294
|
for (; c < e.length && f0.test(e[c]); )
|
|
316
295
|
n += e[c++];
|
|
317
296
|
return n;
|
|
318
297
|
}
|
|
319
298
|
function s0(e) {
|
|
320
|
-
let n =
|
|
299
|
+
let n = ge(e);
|
|
321
300
|
return e[c] === "(" ? (c++, { type: f.Function, value: n }) : n === "none" ? { type: f.None, value: void 0 } : { type: f.Ident, value: n };
|
|
322
301
|
}
|
|
323
302
|
function u0(e = "") {
|
|
@@ -349,7 +328,7 @@ function u0(e = "") {
|
|
|
349
328
|
continue;
|
|
350
329
|
}
|
|
351
330
|
if (un(n)) {
|
|
352
|
-
t.push({ type: f.Ident, value:
|
|
331
|
+
t.push({ type: f.Ident, value: ge(n) });
|
|
353
332
|
continue;
|
|
354
333
|
}
|
|
355
334
|
return;
|
|
@@ -370,7 +349,7 @@ function u0(e = "") {
|
|
|
370
349
|
t.push({ type: f.Alpha, value: r });
|
|
371
350
|
continue;
|
|
372
351
|
}
|
|
373
|
-
if (un(n) &&
|
|
352
|
+
if (un(n) && ge(n) === "none") {
|
|
374
353
|
t.push({
|
|
375
354
|
type: f.Alpha,
|
|
376
355
|
value: { type: f.None, value: void 0 }
|
|
@@ -444,9 +423,9 @@ const Mn = (e) => {
|
|
|
444
423
|
if (typeof e != "string")
|
|
445
424
|
return;
|
|
446
425
|
const n = u0(e), t = n ? h0(n, !0) : void 0;
|
|
447
|
-
let a, r = 0, i =
|
|
426
|
+
let a, r = 0, i = be.length;
|
|
448
427
|
for (; r < i; )
|
|
449
|
-
if ((a =
|
|
428
|
+
if ((a = be[r++](e, t)) !== void 0)
|
|
450
429
|
return a;
|
|
451
430
|
return n ? c0(n) : void 0;
|
|
452
431
|
};
|
|
@@ -500,7 +479,7 @@ const b0 = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
500
479
|
gamut: !0,
|
|
501
480
|
white: { r: 1, g: 1, b: 1 },
|
|
502
481
|
black: { r: 0, g: 0, b: 0 }
|
|
503
|
-
}, Xe = (e = 0) => Math.pow(Math.abs(e), 563 / 256) * Math.sign(e),
|
|
482
|
+
}, Xe = (e = 0) => Math.pow(Math.abs(e), 563 / 256) * Math.sign(e), Fn = (e) => {
|
|
504
483
|
let n = Xe(e.r), t = Xe(e.g), a = Xe(e.b), r = {
|
|
505
484
|
mode: "xyz65",
|
|
506
485
|
x: 0.5766690429101305 * n + 0.1855582379065463 * t + 0.1882286462349947 * a,
|
|
@@ -508,7 +487,7 @@ const b0 = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
508
487
|
z: 0.0270313613864123 * n + 0.0706888525358272 * t + 0.9913375368376386 * a
|
|
509
488
|
};
|
|
510
489
|
return e.alpha !== void 0 && (r.alpha = e.alpha), r;
|
|
511
|
-
}, Le = (e) => Math.pow(Math.abs(e), 256 / 563) * Math.sign(e),
|
|
490
|
+
}, Le = (e) => Math.pow(Math.abs(e), 256 / 563) * Math.sign(e), Rn = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
512
491
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
513
492
|
let r = {
|
|
514
493
|
mode: "a98",
|
|
@@ -567,12 +546,12 @@ const b0 = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
567
546
|
parse: ["a98-rgb"],
|
|
568
547
|
serialize: "a98-rgb",
|
|
569
548
|
fromMode: {
|
|
570
|
-
rgb: (e) =>
|
|
571
|
-
xyz65:
|
|
549
|
+
rgb: (e) => Rn(D(e)),
|
|
550
|
+
xyz65: Rn
|
|
572
551
|
},
|
|
573
552
|
toMode: {
|
|
574
|
-
rgb: (e) => Z(
|
|
575
|
-
xyz65:
|
|
553
|
+
rgb: (e) => Z(Fn(e)),
|
|
554
|
+
xyz65: Fn
|
|
576
555
|
}
|
|
577
556
|
}, w = (e) => (e = e % 360) < 0 ? e + 360 : e, y0 = (e, n) => e.map((t, a, r) => {
|
|
578
557
|
if (t === void 0)
|
|
@@ -580,10 +559,10 @@ const b0 = (e) => e === "transparent" ? { mode: "rgb", r: 0, g: 0, b: 0, alpha:
|
|
|
580
559
|
let i = w(t);
|
|
581
560
|
return a === 0 || e[a - 1] === void 0 ? i : n(i - w(r[a - 1]));
|
|
582
561
|
}).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;
|
|
583
|
-
let
|
|
562
|
+
let In = $[3] * $[4], En = $[1] * $[4], Hn = $[1] * $[2] - $[0] * $[3];
|
|
584
563
|
const _0 = ({ r: e, g: n, b: t, alpha: a }) => {
|
|
585
564
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
586
|
-
let r = (
|
|
565
|
+
let r = (Hn * t + e * In - n * En) / (Hn + In - En), i = t - r, o = ($[4] * (n - r) - $[2] * i) / $[3], d = {
|
|
587
566
|
mode: "cubehelix",
|
|
588
567
|
l: r,
|
|
589
568
|
s: r === 0 || r === 1 ? void 0 : Math.sqrt(i * i + o * o) / ($[4] * r * (1 - r))
|
|
@@ -699,32 +678,32 @@ const pt = ({ l: e, a: n, b: t, alpha: a }) => {
|
|
|
699
678
|
}, ze = (e) => {
|
|
700
679
|
let n = bt(D(e));
|
|
701
680
|
return e.r === e.b && e.b === e.g && (n.a = n.b = 0), n;
|
|
702
|
-
},
|
|
681
|
+
}, me = 1, gt = 1, fe = 26 / 180 * Math.PI, xe = Math.cos(fe), Me = Math.sin(fe), mt = 100 / Math.log(139 / 100), cn = ({ l: e, c: n, h: t, alpha: a }) => {
|
|
703
682
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
704
683
|
let r = {
|
|
705
684
|
mode: "lab65",
|
|
706
|
-
l: (Math.exp(e *
|
|
707
|
-
}, i = (Math.exp(0.0435 * n * gt *
|
|
708
|
-
return r.a = o *
|
|
685
|
+
l: (Math.exp(e * me / mt) - 1) / 39e-4
|
|
686
|
+
}, i = (Math.exp(0.0435 * n * gt * me) - 1) / 0.075, o = i * Math.cos(t / 180 * Math.PI - fe), d = i * Math.sin(t / 180 * Math.PI - fe);
|
|
687
|
+
return r.a = o * xe - d / 0.83 * Me, r.b = o * Me + d / 0.83 * xe, a !== void 0 && (r.alpha = a), r;
|
|
709
688
|
}, hn = ({ l: e, a: n, b: t, alpha: a }) => {
|
|
710
689
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
711
|
-
let r = n *
|
|
690
|
+
let r = n * xe + t * Me, i = 0.83 * (t * xe - n * Me), o = Math.sqrt(r * r + i * i), d = {
|
|
712
691
|
mode: "dlch",
|
|
713
|
-
l: mt /
|
|
714
|
-
c: Math.log(1 + 0.075 * o) / (0.0435 * gt *
|
|
692
|
+
l: mt / me * Math.log(1 + 39e-4 * e),
|
|
693
|
+
c: Math.log(1 + 0.075 * o) / (0.0435 * gt * me)
|
|
715
694
|
};
|
|
716
695
|
return d.c && (d.h = w((Math.atan2(i, r) + fe) / Math.PI * 180)), a !== void 0 && (d.alpha = a), d;
|
|
717
|
-
},
|
|
696
|
+
}, On = (e) => cn(H(e, "dlch")), Xn = (e) => O(hn(e), "dlab"), T0 = {
|
|
718
697
|
mode: "dlab",
|
|
719
698
|
parse: ["--din99o-lab"],
|
|
720
699
|
serialize: "--din99o-lab",
|
|
721
700
|
toMode: {
|
|
722
|
-
lab65:
|
|
723
|
-
rgb: (e) => $e(
|
|
701
|
+
lab65: On,
|
|
702
|
+
rgb: (e) => $e(On(e))
|
|
724
703
|
},
|
|
725
704
|
fromMode: {
|
|
726
|
-
lab65:
|
|
727
|
-
rgb: (e) =>
|
|
705
|
+
lab65: Xn,
|
|
706
|
+
rgb: (e) => Xn(ze(e))
|
|
728
707
|
},
|
|
729
708
|
channels: ["l", "a", "b", "alpha"],
|
|
730
709
|
ranges: {
|
|
@@ -1129,7 +1108,7 @@ function Be(e) {
|
|
|
1129
1108
|
const n = Math.pow(e / 1e4, we);
|
|
1130
1109
|
return Math.pow((Te + Ne * n) / (1 + Pe * n), _t);
|
|
1131
1110
|
}
|
|
1132
|
-
const Ge = (e) => Math.max(e / kt, 0),
|
|
1111
|
+
const Ge = (e) => Math.max(e / kt, 0), Ln = ({ i: e, t: n, p: t, alpha: a }) => {
|
|
1133
1112
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1134
1113
|
const r = Ze(
|
|
1135
1114
|
e + 0.008609037037932761 * n + 0.11102962500302593 * t
|
|
@@ -1150,7 +1129,7 @@ const Ge = (e) => Math.max(e / kt, 0), qn = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1150
1129
|
)
|
|
1151
1130
|
};
|
|
1152
1131
|
return a !== void 0 && (d.alpha = a), d;
|
|
1153
|
-
}, Ue = (e = 0) => Math.max(e * kt, 0),
|
|
1132
|
+
}, Ue = (e = 0) => Math.max(e * kt, 0), jn = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
1154
1133
|
const r = Ue(e), i = Ue(n), o = Ue(t), d = Be(
|
|
1155
1134
|
0.3592832590121217 * r + 0.6976051147779502 * i - 0.0358915932320289 * o
|
|
1156
1135
|
), s = Be(
|
|
@@ -1165,12 +1144,12 @@ const Ge = (e) => Math.max(e / kt, 0), qn = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1165
1144
|
parse: ["--ictcp"],
|
|
1166
1145
|
serialize: "--ictcp",
|
|
1167
1146
|
toMode: {
|
|
1168
|
-
xyz65:
|
|
1169
|
-
rgb: (e) => Z(
|
|
1147
|
+
xyz65: Ln,
|
|
1148
|
+
rgb: (e) => Z(Ln(e))
|
|
1170
1149
|
},
|
|
1171
1150
|
fromMode: {
|
|
1172
|
-
xyz65:
|
|
1173
|
-
rgb: (e) =>
|
|
1151
|
+
xyz65: jn,
|
|
1152
|
+
rgb: (e) => jn(D(e))
|
|
1174
1153
|
},
|
|
1175
1154
|
ranges: {
|
|
1176
1155
|
i: [0, 0.581],
|
|
@@ -1196,13 +1175,13 @@ const Ge = (e) => Math.max(e / kt, 0), qn = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1196
1175
|
b: 0.199076 * o + 1.096799 * d - 1.295875 * s
|
|
1197
1176
|
};
|
|
1198
1177
|
return a !== void 0 && (h.alpha = a), h;
|
|
1199
|
-
}, Z0 = 134.03437499999998,
|
|
1178
|
+
}, Z0 = 134.03437499999998, qn = 16295499532821565e-27, We = (e) => {
|
|
1200
1179
|
if (e < 0) return 0;
|
|
1201
1180
|
let n = Math.pow(e, 1 / Z0);
|
|
1202
1181
|
return 1e4 * Math.pow((Te - n) / (Pe * n - Ne), 1 / we);
|
|
1203
1182
|
}, Ke = (e) => e / 203, zt = ({ j: e, a: n, b: t, alpha: a }) => {
|
|
1204
1183
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1205
|
-
let r = (e +
|
|
1184
|
+
let r = (e + qn) / (0.44 + 0.56 * (e + qn)), 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 = {
|
|
1206
1185
|
mode: "xyz65",
|
|
1207
1186
|
x: Ke(
|
|
1208
1187
|
1.661373024652174 * i - 0.914523081304348 * o + 0.23136208173913045 * d
|
|
@@ -1240,7 +1219,7 @@ const Ge = (e) => Math.max(e / kt, 0), qn = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1240
1219
|
b: l,
|
|
1241
1220
|
alpha: { use: l, fixup: k }
|
|
1242
1221
|
}
|
|
1243
|
-
},
|
|
1222
|
+
}, Yn = ({ j: e, a: n, b: t, alpha: a }) => {
|
|
1244
1223
|
n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1245
1224
|
let r = Math.sqrt(n * n + t * t), i = {
|
|
1246
1225
|
mode: "jch",
|
|
@@ -1248,7 +1227,7 @@ const Ge = (e) => Math.max(e / kt, 0), qn = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1248
1227
|
c: r
|
|
1249
1228
|
};
|
|
1250
1229
|
return r && (i.h = w(Math.atan2(t, n) * 180 / Math.PI)), a !== void 0 && (i.alpha = a), i;
|
|
1251
|
-
},
|
|
1230
|
+
}, Dn = ({ j: e, c: n, h: t, alpha: a }) => {
|
|
1252
1231
|
t === void 0 && (t = 0);
|
|
1253
1232
|
let r = {
|
|
1254
1233
|
mode: "jab",
|
|
@@ -1262,12 +1241,12 @@ const Ge = (e) => Math.max(e / kt, 0), qn = ({ i: e, t: n, p: t, alpha: a }) =>
|
|
|
1262
1241
|
parse: ["--jzczhz"],
|
|
1263
1242
|
serialize: "--jzczhz",
|
|
1264
1243
|
toMode: {
|
|
1265
|
-
jab:
|
|
1266
|
-
rgb: (e) => Tt(
|
|
1244
|
+
jab: Dn,
|
|
1245
|
+
rgb: (e) => Tt(Dn(e))
|
|
1267
1246
|
},
|
|
1268
1247
|
fromMode: {
|
|
1269
|
-
rgb: (e) =>
|
|
1270
|
-
jab:
|
|
1248
|
+
rgb: (e) => Yn(wt(e)),
|
|
1249
|
+
jab: Yn
|
|
1271
1250
|
},
|
|
1272
1251
|
channels: ["j", "c", "h", "alpha"],
|
|
1273
1252
|
ranges: {
|
|
@@ -1587,7 +1566,7 @@ function gn(e) {
|
|
|
1587
1566
|
const a = 1.170873786407767;
|
|
1588
1567
|
return 0.5 * (a * e - 0.206 + Math.sqrt((a * e - 0.206) * (a * e - 0.206) + 4 * 0.03 * a * e));
|
|
1589
1568
|
}
|
|
1590
|
-
function
|
|
1569
|
+
function ye(e) {
|
|
1591
1570
|
return (e * e + 0.206 * e) / (1.170873786407767 * (e + 0.03));
|
|
1592
1571
|
}
|
|
1593
1572
|
function sr(e, n) {
|
|
@@ -1634,7 +1613,7 @@ function It(e, n, t) {
|
|
|
1634
1613
|
);
|
|
1635
1614
|
return u = e * 0.4, h = (1 - e) * 0.8, [Math.sqrt(1 / (1 / (u * u) + 1 / (h * h))), p, r];
|
|
1636
1615
|
}
|
|
1637
|
-
function
|
|
1616
|
+
function Zn(e) {
|
|
1638
1617
|
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) };
|
|
1639
1618
|
e.alpha !== void 0 && (r.alpha = e.alpha);
|
|
1640
1619
|
let i = Math.sqrt(t * t + a * a);
|
|
@@ -1650,9 +1629,9 @@ function Gn(e) {
|
|
|
1650
1629
|
}
|
|
1651
1630
|
return u && (r.s = u, r.h = w(Math.atan2(a, t) * 180 / Math.PI)), r;
|
|
1652
1631
|
}
|
|
1653
|
-
function
|
|
1632
|
+
function Bn(e) {
|
|
1654
1633
|
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;
|
|
1655
|
-
const r = { mode: "oklab", l:
|
|
1634
|
+
const r = { mode: "oklab", l: ye(a) };
|
|
1656
1635
|
if (e.alpha !== void 0 && (r.alpha = e.alpha), !t || a === 1)
|
|
1657
1636
|
return r.a = r.b = 0, r;
|
|
1658
1637
|
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;
|
|
@@ -1667,16 +1646,16 @@ const cr = {
|
|
|
1667
1646
|
parse: ["--okhsl"],
|
|
1668
1647
|
serialize: "--okhsl",
|
|
1669
1648
|
fromMode: {
|
|
1670
|
-
oklab:
|
|
1671
|
-
rgb: (e) =>
|
|
1649
|
+
oklab: Zn,
|
|
1650
|
+
rgb: (e) => Zn(Ae(e))
|
|
1672
1651
|
},
|
|
1673
1652
|
toMode: {
|
|
1674
|
-
oklab:
|
|
1675
|
-
rgb: (e) => Ce(
|
|
1653
|
+
oklab: Bn,
|
|
1654
|
+
rgb: (e) => Ce(Bn(e))
|
|
1676
1655
|
}
|
|
1677
1656
|
};
|
|
1678
|
-
function
|
|
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 =
|
|
1657
|
+
function Gn(e) {
|
|
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 = ye(g), z = M * v / g, _ = ue({ l: v, a: i * z, b: o * z }), S = Math.cbrt(
|
|
1680
1659
|
1 / Math.max(_.r, _.g, _.b, 0)
|
|
1681
1660
|
);
|
|
1682
1661
|
n = n / S, r = r / S * gn(n) / n, n = gn(n);
|
|
@@ -1687,16 +1666,16 @@ function Vn(e) {
|
|
|
1687
1666
|
};
|
|
1688
1667
|
return T.s && (T.h = w(Math.atan2(a, t) * 180 / Math.PI)), e.alpha !== void 0 && (T.alpha = e.alpha), T;
|
|
1689
1668
|
}
|
|
1690
|
-
function
|
|
1669
|
+
function Un(e) {
|
|
1691
1670
|
const n = { mode: "oklab" };
|
|
1692
1671
|
e.alpha !== void 0 && (n.alpha = e.alpha);
|
|
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 =
|
|
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 = ye(p), v = g * M / p, z = ue({
|
|
1694
1673
|
l: M,
|
|
1695
1674
|
a: i * v,
|
|
1696
1675
|
b: o * v
|
|
1697
1676
|
}), _ = Math.cbrt(
|
|
1698
1677
|
1 / Math.max(z.r, z.g, z.b, 0)
|
|
1699
|
-
), S =
|
|
1678
|
+
), S = ye(r * p), T = g * S / p;
|
|
1700
1679
|
return n.l = S * _, n.a = T * i * _, n.b = T * o * _, n;
|
|
1701
1680
|
}
|
|
1702
1681
|
const hr = {
|
|
@@ -1706,12 +1685,12 @@ const hr = {
|
|
|
1706
1685
|
parse: ["--okhsv"],
|
|
1707
1686
|
serialize: "--okhsv",
|
|
1708
1687
|
fromMode: {
|
|
1709
|
-
oklab:
|
|
1710
|
-
rgb: (e) =>
|
|
1688
|
+
oklab: Gn,
|
|
1689
|
+
rgb: (e) => Gn(Ae(e))
|
|
1711
1690
|
},
|
|
1712
1691
|
toMode: {
|
|
1713
|
-
oklab:
|
|
1714
|
-
rgb: (e) => Ce(
|
|
1692
|
+
oklab: Un,
|
|
1693
|
+
rgb: (e) => Ce(Un(e))
|
|
1715
1694
|
}
|
|
1716
1695
|
};
|
|
1717
1696
|
function pr(e, n) {
|
|
@@ -1795,7 +1774,7 @@ const mr = {
|
|
|
1795
1774
|
c: [0, 0.4],
|
|
1796
1775
|
h: [0, 360]
|
|
1797
1776
|
}
|
|
1798
|
-
},
|
|
1777
|
+
}, Vn = (e) => {
|
|
1799
1778
|
let { r: n, g: t, b: a, alpha: r } = J(e), i = {
|
|
1800
1779
|
mode: "xyz65",
|
|
1801
1780
|
x: 0.486570948648216 * n + 0.265667693169093 * t + 0.1982172852343625 * a,
|
|
@@ -1803,7 +1782,7 @@ const mr = {
|
|
|
1803
1782
|
z: 0 * n + 0.0451133818589026 * t + 1.043944368900976 * a
|
|
1804
1783
|
};
|
|
1805
1784
|
return r !== void 0 && (i.alpha = r), i;
|
|
1806
|
-
},
|
|
1785
|
+
}, Jn = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
1807
1786
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1808
1787
|
let r = W(
|
|
1809
1788
|
{
|
|
@@ -1820,17 +1799,17 @@ const mr = {
|
|
|
1820
1799
|
parse: ["display-p3"],
|
|
1821
1800
|
serialize: "display-p3",
|
|
1822
1801
|
fromMode: {
|
|
1823
|
-
rgb: (e) =>
|
|
1824
|
-
xyz65:
|
|
1802
|
+
rgb: (e) => Jn(D(e)),
|
|
1803
|
+
xyz65: Jn
|
|
1825
1804
|
},
|
|
1826
1805
|
toMode: {
|
|
1827
|
-
rgb: (e) => Z(
|
|
1828
|
-
xyz65:
|
|
1806
|
+
rgb: (e) => Z(Vn(e)),
|
|
1807
|
+
xyz65: Vn
|
|
1829
1808
|
}
|
|
1830
1809
|
}, nn = (e) => {
|
|
1831
1810
|
let n = Math.abs(e);
|
|
1832
1811
|
return n >= 1 / 512 ? Math.sign(e) * Math.pow(n, 1 / 1.8) : 16 * e;
|
|
1833
|
-
},
|
|
1812
|
+
}, Wn = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
1834
1813
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1835
1814
|
let r = {
|
|
1836
1815
|
mode: "prophoto",
|
|
@@ -1846,7 +1825,7 @@ const mr = {
|
|
|
1846
1825
|
}, tn = (e = 0) => {
|
|
1847
1826
|
let n = Math.abs(e);
|
|
1848
1827
|
return n >= 16 / 512 ? Math.sign(e) * Math.pow(n, 1.8) : e / 16;
|
|
1849
|
-
},
|
|
1828
|
+
}, Kn = (e) => {
|
|
1850
1829
|
let n = tn(e.r), t = tn(e.g), a = tn(e.b), r = {
|
|
1851
1830
|
mode: "xyz50",
|
|
1852
1831
|
x: 0.7977666449006423 * n + 0.1351812974005331 * t + 0.0313477341283922 * a,
|
|
@@ -1860,17 +1839,17 @@ const mr = {
|
|
|
1860
1839
|
parse: ["prophoto-rgb"],
|
|
1861
1840
|
serialize: "prophoto-rgb",
|
|
1862
1841
|
fromMode: {
|
|
1863
|
-
xyz50:
|
|
1864
|
-
rgb: (e) =>
|
|
1842
|
+
xyz50: Wn,
|
|
1843
|
+
rgb: (e) => Wn(se(e))
|
|
1865
1844
|
},
|
|
1866
1845
|
toMode: {
|
|
1867
|
-
xyz50:
|
|
1868
|
-
rgb: (e) => le(
|
|
1846
|
+
xyz50: Kn,
|
|
1847
|
+
rgb: (e) => le(Kn(e))
|
|
1869
1848
|
}
|
|
1870
|
-
},
|
|
1849
|
+
}, Qn = 1.09929682680944, yr = 0.018053968510807, rn = (e) => {
|
|
1871
1850
|
const n = Math.abs(e);
|
|
1872
|
-
return n > yr ? (Math.sign(e) || 1) * (
|
|
1873
|
-
},
|
|
1851
|
+
return n > yr ? (Math.sign(e) || 1) * (Qn * Math.pow(n, 0.45) - (Qn - 1)) : 4.5 * e;
|
|
1852
|
+
}, et = ({ x: e, y: n, z: t, alpha: a }) => {
|
|
1874
1853
|
e === void 0 && (e = 0), n === void 0 && (n = 0), t === void 0 && (t = 0);
|
|
1875
1854
|
let r = {
|
|
1876
1855
|
mode: "rec2020",
|
|
@@ -1885,10 +1864,10 @@ const mr = {
|
|
|
1885
1864
|
)
|
|
1886
1865
|
};
|
|
1887
1866
|
return a !== void 0 && (r.alpha = a), r;
|
|
1888
|
-
},
|
|
1867
|
+
}, nt = 1.09929682680944, vr = 0.018053968510807, an = (e = 0) => {
|
|
1889
1868
|
let n = Math.abs(e);
|
|
1890
|
-
return n < vr * 4.5 ? e / 4.5 : (Math.sign(e) || 1) * Math.pow((n +
|
|
1891
|
-
},
|
|
1869
|
+
return n < vr * 4.5 ? e / 4.5 : (Math.sign(e) || 1) * Math.pow((n + nt - 1) / nt, 1 / 0.45);
|
|
1870
|
+
}, tt = (e) => {
|
|
1892
1871
|
let n = an(e.r), t = an(e.g), a = an(e.b), r = {
|
|
1893
1872
|
mode: "xyz65",
|
|
1894
1873
|
x: 0.6369580483012911 * n + 0.1446169035862083 * t + 0.1688809751641721 * a,
|
|
@@ -1900,12 +1879,12 @@ const mr = {
|
|
|
1900
1879
|
...V,
|
|
1901
1880
|
mode: "rec2020",
|
|
1902
1881
|
fromMode: {
|
|
1903
|
-
xyz65:
|
|
1904
|
-
rgb: (e) =>
|
|
1882
|
+
xyz65: et,
|
|
1883
|
+
rgb: (e) => et(D(e))
|
|
1905
1884
|
},
|
|
1906
1885
|
toMode: {
|
|
1907
|
-
xyz65:
|
|
1908
|
-
rgb: (e) => Z(
|
|
1886
|
+
xyz65: tt,
|
|
1887
|
+
rgb: (e) => Z(tt(e))
|
|
1909
1888
|
},
|
|
1910
1889
|
parse: ["rec2020"],
|
|
1911
1890
|
serialize: "rec2020"
|
|
@@ -2099,7 +2078,7 @@ function Ot(e) {
|
|
|
2099
2078
|
b: q(t.b) * 255
|
|
2100
2079
|
};
|
|
2101
2080
|
}
|
|
2102
|
-
function
|
|
2081
|
+
function aa(e) {
|
|
2103
2082
|
const n = Mn(e);
|
|
2104
2083
|
if (!n) return null;
|
|
2105
2084
|
const t = Ht(n);
|
|
@@ -2141,7 +2120,7 @@ function Rr(e) {
|
|
|
2141
2120
|
const { h: n, s: t, l: a } = Fr(e);
|
|
2142
2121
|
return `${n} ${t}% ${a}%`;
|
|
2143
2122
|
}
|
|
2144
|
-
function
|
|
2123
|
+
function ia(e) {
|
|
2145
2124
|
const n = Ot(e);
|
|
2146
2125
|
return n ? Rr(n) : null;
|
|
2147
2126
|
}
|
|
@@ -2151,152 +2130,11 @@ function j(e) {
|
|
|
2151
2130
|
function q(e) {
|
|
2152
2131
|
return Math.min(1, Math.max(0, e));
|
|
2153
2132
|
}
|
|
2154
|
-
const
|
|
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([
|
|
2133
|
+
const Xt = 1, Ir = /* @__PURE__ */ new Set(["light", "dark", "system"]), Er = /* @__PURE__ */ new Set([
|
|
2296
2134
|
"compact",
|
|
2297
2135
|
"comfortable",
|
|
2298
2136
|
"spacious"
|
|
2299
|
-
]),
|
|
2137
|
+
]), Hr = Object.fromEntries(
|
|
2300
2138
|
[
|
|
2301
2139
|
"background",
|
|
2302
2140
|
"foreground",
|
|
@@ -2317,25 +2155,25 @@ const jt = 1, Er = /* @__PURE__ */ new Set(["light", "dark", "system"]), Hr = /*
|
|
|
2317
2155
|
"destructive",
|
|
2318
2156
|
"destructiveForeground"
|
|
2319
2157
|
].map((e) => [e, m])
|
|
2320
|
-
),
|
|
2158
|
+
), Or = {
|
|
2321
2159
|
fontFamily: E,
|
|
2322
2160
|
headingFontFamily: E,
|
|
2323
2161
|
monoFontFamily: E,
|
|
2324
2162
|
baseFontSize: oe,
|
|
2325
|
-
density:
|
|
2326
|
-
},
|
|
2163
|
+
density: jt
|
|
2164
|
+
}, Xr = {
|
|
2327
2165
|
control: P,
|
|
2328
2166
|
card: P,
|
|
2329
2167
|
table: P,
|
|
2330
2168
|
badge: P
|
|
2331
|
-
},
|
|
2169
|
+
}, Lr = {
|
|
2332
2170
|
dashboardPadding: P,
|
|
2333
2171
|
gridGap: P,
|
|
2334
2172
|
cardPadding: P,
|
|
2335
2173
|
controlGap: P,
|
|
2336
2174
|
tableCellX: P,
|
|
2337
2175
|
tableCellY: P
|
|
2338
|
-
},
|
|
2176
|
+
}, jr = {
|
|
2339
2177
|
card: E,
|
|
2340
2178
|
popover: E,
|
|
2341
2179
|
focusRing: E
|
|
@@ -2346,23 +2184,23 @@ const jt = 1, Er = /* @__PURE__ */ new Set(["light", "dark", "system"]), Hr = /*
|
|
|
2346
2184
|
borderRadius: P,
|
|
2347
2185
|
shadow: E,
|
|
2348
2186
|
padding: P
|
|
2349
|
-
},
|
|
2187
|
+
}, qr = {
|
|
2350
2188
|
...pe,
|
|
2351
2189
|
toolbarBackground: m
|
|
2352
|
-
},
|
|
2353
|
-
palette:
|
|
2190
|
+
}, Yr = {
|
|
2191
|
+
palette: ea,
|
|
2354
2192
|
background: m,
|
|
2355
2193
|
foreground: m,
|
|
2356
2194
|
gridColor: m,
|
|
2357
2195
|
axisColor: m
|
|
2358
|
-
},
|
|
2196
|
+
}, Dr = {
|
|
2359
2197
|
background: m,
|
|
2360
2198
|
borderColor: m,
|
|
2361
2199
|
borderRadius: P,
|
|
2362
2200
|
shadow: E
|
|
2363
2201
|
}, fn = {
|
|
2364
|
-
density:
|
|
2365
|
-
container: x(
|
|
2202
|
+
density: jt,
|
|
2203
|
+
container: x(Dr),
|
|
2366
2204
|
header: x({
|
|
2367
2205
|
background: m,
|
|
2368
2206
|
foreground: m,
|
|
@@ -2382,8 +2220,8 @@ const jt = 1, Er = /* @__PURE__ */ new Set(["light", "dark", "system"]), Hr = /*
|
|
|
2382
2220
|
cell: x({
|
|
2383
2221
|
paddingX: P,
|
|
2384
2222
|
paddingY: P,
|
|
2385
|
-
verticalAlign:
|
|
2386
|
-
wrap:
|
|
2223
|
+
verticalAlign: Kr,
|
|
2224
|
+
wrap: Qr
|
|
2387
2225
|
}),
|
|
2388
2226
|
subtotal: x({
|
|
2389
2227
|
background: m,
|
|
@@ -2401,42 +2239,42 @@ const jt = 1, Er = /* @__PURE__ */ new Set(["light", "dark", "system"]), Hr = /*
|
|
|
2401
2239
|
foreground: m,
|
|
2402
2240
|
borderColor: m
|
|
2403
2241
|
})
|
|
2242
|
+
}, Zr = {
|
|
2243
|
+
color: x(Hr),
|
|
2244
|
+
typography: x(Or),
|
|
2245
|
+
radius: x(Xr),
|
|
2246
|
+
spacing: x(Lr),
|
|
2247
|
+
shadow: x(jr)
|
|
2404
2248
|
}, Br = {
|
|
2405
|
-
color: x(Or),
|
|
2406
|
-
typography: x(Xr),
|
|
2407
|
-
radius: x(Lr),
|
|
2408
|
-
spacing: x(jr),
|
|
2409
|
-
shadow: x(qr)
|
|
2410
|
-
}, Gr = {
|
|
2411
2249
|
dashboard: x(pe),
|
|
2412
2250
|
card: x(pe),
|
|
2413
|
-
interactive: x(
|
|
2414
|
-
chart: x(
|
|
2251
|
+
interactive: x(qr),
|
|
2252
|
+
chart: x(Yr),
|
|
2415
2253
|
table: x(fn),
|
|
2416
2254
|
pivotTable: x(fn),
|
|
2417
2255
|
aggregateTable: x(fn),
|
|
2418
2256
|
pagination: x(pe)
|
|
2419
|
-
},
|
|
2420
|
-
tokens: x(
|
|
2421
|
-
components: x(
|
|
2257
|
+
}, rt = {
|
|
2258
|
+
tokens: x(Zr),
|
|
2259
|
+
components: x(Br)
|
|
2260
|
+
}, Gr = {
|
|
2261
|
+
light: x(rt),
|
|
2262
|
+
dark: x(rt)
|
|
2422
2263
|
}, Ur = {
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
version: Wr,
|
|
2427
|
-
mode: Kr,
|
|
2428
|
-
schemes: x(Ur)
|
|
2264
|
+
version: Jr,
|
|
2265
|
+
mode: Wr,
|
|
2266
|
+
schemes: x(Gr)
|
|
2429
2267
|
};
|
|
2430
|
-
function
|
|
2268
|
+
function Vr(e) {
|
|
2431
2269
|
const n = [];
|
|
2432
|
-
return x(
|
|
2270
|
+
return x(Ur)(e, "$", n), qt(e) && !("version" in e) && N(n, "$.version", "invalid_version", "version must be 1"), n.length > 0 ? { success: !1, issues: n } : {
|
|
2433
2271
|
success: !0,
|
|
2434
2272
|
value: e,
|
|
2435
2273
|
issues: []
|
|
2436
2274
|
};
|
|
2437
2275
|
}
|
|
2438
|
-
function
|
|
2439
|
-
const n =
|
|
2276
|
+
function Lt(e) {
|
|
2277
|
+
const n = Vr(e);
|
|
2440
2278
|
if (n.success) return;
|
|
2441
2279
|
const t = n.issues[0];
|
|
2442
2280
|
throw new Error(
|
|
@@ -2445,7 +2283,7 @@ function qt(e) {
|
|
|
2445
2283
|
}
|
|
2446
2284
|
function x(e) {
|
|
2447
2285
|
return (n, t, a) => {
|
|
2448
|
-
if (!
|
|
2286
|
+
if (!qt(n)) {
|
|
2449
2287
|
N(a, t, "invalid_type", "expected an object");
|
|
2450
2288
|
return;
|
|
2451
2289
|
}
|
|
@@ -2459,19 +2297,19 @@ function x(e) {
|
|
|
2459
2297
|
}
|
|
2460
2298
|
};
|
|
2461
2299
|
}
|
|
2462
|
-
function
|
|
2463
|
-
e !==
|
|
2300
|
+
function Jr(e, n, t) {
|
|
2301
|
+
e !== Xt && N(t, n, "invalid_version", "version must be 1");
|
|
2464
2302
|
}
|
|
2465
|
-
function
|
|
2466
|
-
(typeof e != "string" || !
|
|
2303
|
+
function Wr(e, n, t) {
|
|
2304
|
+
(typeof e != "string" || !Ir.has(e)) && N(t, n, "invalid_value", "mode must be light, dark, or system");
|
|
2467
2305
|
}
|
|
2468
|
-
function
|
|
2469
|
-
(typeof e != "string" || !
|
|
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");
|
|
2470
2308
|
}
|
|
2471
|
-
function
|
|
2309
|
+
function Kr(e, n, t) {
|
|
2472
2310
|
e !== "top" && e !== "middle" && e !== "bottom" && N(t, n, "invalid_value", "verticalAlign must be top, middle, or bottom");
|
|
2473
2311
|
}
|
|
2474
|
-
function
|
|
2312
|
+
function Qr(e, n, t) {
|
|
2475
2313
|
e !== "wrap" && e !== "nowrap" && N(t, n, "invalid_value", "wrap must be wrap or nowrap");
|
|
2476
2314
|
}
|
|
2477
2315
|
function ln(e, n, t) {
|
|
@@ -2484,7 +2322,7 @@ function m(e, n, t) {
|
|
|
2484
2322
|
}
|
|
2485
2323
|
Ot(e) || N(t, n, "invalid_color", "color must be a valid opaque CSS color");
|
|
2486
2324
|
}
|
|
2487
|
-
function
|
|
2325
|
+
function ea(e, n, t) {
|
|
2488
2326
|
if (!Array.isArray(e)) {
|
|
2489
2327
|
N(t, n, "invalid_type", "expected an array of colors");
|
|
2490
2328
|
return;
|
|
@@ -2507,17 +2345,179 @@ function P(e, n, t) {
|
|
|
2507
2345
|
function N(e, n, t, a) {
|
|
2508
2346
|
e.push({ path: n, code: t, message: a });
|
|
2509
2347
|
}
|
|
2510
|
-
function
|
|
2348
|
+
function qt(e) {
|
|
2511
2349
|
if (typeof e != "object" || e === null || Array.isArray(e))
|
|
2512
2350
|
return !1;
|
|
2513
2351
|
const n = Object.getPrototypeOf(e);
|
|
2514
2352
|
return n === Object.prototype || n === null;
|
|
2515
2353
|
}
|
|
2516
|
-
|
|
2517
|
-
|
|
2354
|
+
const ve = '"Open Sans", Arial, ui-sans-serif, system-ui, sans-serif', at = ve, it = 'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace', oa = [
|
|
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);
|
|
2518
2518
|
}
|
|
2519
2519
|
function ra(e, n) {
|
|
2520
|
-
return
|
|
2520
|
+
return Lt(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 ?? Yt;
|
|
2552
2552
|
let t = ta(
|
|
2553
|
-
{ version:
|
|
2553
|
+
{ version: Xt },
|
|
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
|
+
Xt as A,
|
|
2566
|
+
ve as S,
|
|
2567
|
+
oa as a,
|
|
2568
|
+
aa as b,
|
|
2569
|
+
Yt as c,
|
|
2570
|
+
ia as d,
|
|
2571
|
+
ot as e,
|
|
2572
|
+
Lt as f,
|
|
2573
2573
|
ra as m,
|
|
2574
2574
|
ta as n,
|
|
2575
2575
|
Ot as p,
|
|
2576
2576
|
da as r,
|
|
2577
|
-
|
|
2577
|
+
Vr as v
|
|
2578
2578
|
};
|