@bluepic/embed 0.6.51 → 0.7.0-layouts.1
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/bluepic-embed.iife.js +129 -129
- package/dist/bluepic-embed.umd.js +129 -129
- package/dist/components/BxThemeScope.vue.d.ts +32 -0
- package/dist/components/TemplateEditor/BxTemplateEditor.vue.d.ts +21 -0
- package/dist/components/TemplateEditor/editorArrangement.d.ts +20 -0
- package/dist/embed/embed.d.ts +28 -2
- package/dist/main.cjs +41 -41
- package/dist/main.d.ts +2 -0
- package/dist/main.mjs +3278 -3149
- package/dist/style.css +1 -1
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/scope.d.ts +27 -0
- package/dist/theme.cjs +1 -1
- package/dist/theme.mjs +516 -473
- package/package.json +4 -2
package/dist/theme.mjs
CHANGED
|
@@ -261,23 +261,23 @@ var e = Object.defineProperty, t = (t, n) => {
|
|
|
261
261
|
}, c = /* @__PURE__ */ t({
|
|
262
262
|
BLACK: () => u,
|
|
263
263
|
WHITE: () => l,
|
|
264
|
-
adjustL: () =>
|
|
265
|
-
bestOn: () =>
|
|
266
|
-
composite: () =>
|
|
267
|
-
contrastRatio: () =>
|
|
268
|
-
ensureContrast: () =>
|
|
264
|
+
adjustL: () => V,
|
|
265
|
+
bestOn: () => de,
|
|
266
|
+
composite: () => R,
|
|
267
|
+
contrastRatio: () => L,
|
|
268
|
+
ensureContrast: () => G,
|
|
269
269
|
formatHex: () => se,
|
|
270
270
|
formatRgb: () => F,
|
|
271
|
-
formatTriplet: () =>
|
|
271
|
+
formatTriplet: () => ce,
|
|
272
272
|
fromOklch: () => oe,
|
|
273
|
-
isDarkSurface: () =>
|
|
274
|
-
lightness: () =>
|
|
275
|
-
mix: () =>
|
|
273
|
+
isDarkSurface: () => ue,
|
|
274
|
+
lightness: () => le,
|
|
275
|
+
mix: () => z,
|
|
276
276
|
parseColor: () => E,
|
|
277
|
-
relativeLuminance: () =>
|
|
278
|
-
setL: () =>
|
|
277
|
+
relativeLuminance: () => I,
|
|
278
|
+
setL: () => H,
|
|
279
279
|
toOklch: () => P,
|
|
280
|
-
withAlpha: () =>
|
|
280
|
+
withAlpha: () => B
|
|
281
281
|
}), l = Object.freeze({
|
|
282
282
|
r: 255,
|
|
283
283
|
g: 255,
|
|
@@ -647,23 +647,23 @@ function F(e) {
|
|
|
647
647
|
let t = p(m(e.a, 1)), n = g(e.r), r = g(e.g), i = g(e.b);
|
|
648
648
|
return t >= 1 ? `rgb(${n}, ${r}, ${i})` : `rgba(${n}, ${r}, ${i}, ${Number(t.toFixed(3))})`;
|
|
649
649
|
}
|
|
650
|
-
function
|
|
650
|
+
function ce(e) {
|
|
651
651
|
return `${g(e.r)}, ${g(e.g)}, ${g(e.b)}`;
|
|
652
652
|
}
|
|
653
|
-
function
|
|
653
|
+
function I(e) {
|
|
654
654
|
return .2126 * D(m(e.r) / 255) + .7152 * D(m(e.g) / 255) + .0722 * D(m(e.b) / 255);
|
|
655
655
|
}
|
|
656
|
-
function
|
|
657
|
-
let n = t.a >= 1 ? t : h(t.r, t.g, t.b, 1), r =
|
|
656
|
+
function L(e, t) {
|
|
657
|
+
let n = t.a >= 1 ? t : h(t.r, t.g, t.b, 1), r = I(e.a < 1 ? R(e, n) : e), i = I(n), a = Math.max(r, i), o = Math.min(r, i);
|
|
658
658
|
return (a + .05) / (o + .05);
|
|
659
659
|
}
|
|
660
|
-
function
|
|
660
|
+
function R(e, t) {
|
|
661
661
|
let n = p(m(e.a, 1)), r = p(m(t.a, 1)), i = n + r * (1 - n);
|
|
662
662
|
if (i <= 0) return h(0, 0, 0, 0);
|
|
663
663
|
let a = r * (1 - n) / i, o = n / i;
|
|
664
664
|
return h(e.r * o + t.r * a, e.g * o + t.g * a, e.b * o + t.b * a, i);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
666
|
+
function z(e, t, n) {
|
|
667
667
|
let r = p(m(n));
|
|
668
668
|
if (r <= 0) return h(e.r, e.g, e.b, p(m(e.a, 1)));
|
|
669
669
|
if (r >= 1) return h(t.r, t.g, t.b, p(m(t.a, 1)));
|
|
@@ -674,40 +674,40 @@ function B(e, t, n) {
|
|
|
674
674
|
});
|
|
675
675
|
return N(d.l, d.c, d.h, c);
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function B(e, t) {
|
|
678
678
|
return h(e.r, e.g, e.b, p(m(t, 1)));
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function le(e) {
|
|
681
681
|
return A(e).L;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function V(e, t) {
|
|
684
684
|
let n = P(e);
|
|
685
685
|
return N(p(n.l + m(t)), n.c, n.h, n.a);
|
|
686
686
|
}
|
|
687
|
-
function
|
|
687
|
+
function H(e, t) {
|
|
688
688
|
let n = P(e);
|
|
689
689
|
return N(p(m(t)), n.c, n.h, n.a);
|
|
690
690
|
}
|
|
691
|
-
var
|
|
691
|
+
var U = [
|
|
692
692
|
1,
|
|
693
693
|
.75,
|
|
694
694
|
.5,
|
|
695
695
|
.25,
|
|
696
696
|
0
|
|
697
|
-
],
|
|
698
|
-
function
|
|
697
|
+
], W = 24;
|
|
698
|
+
function G(e, t, n, r = "auto") {
|
|
699
699
|
let i = m(n, 1);
|
|
700
|
-
if (
|
|
701
|
-
let a = P(e), o = h(t.r, t.g, t.b, 1), s =
|
|
700
|
+
if (L(e, t) >= i) return e;
|
|
701
|
+
let a = P(e), o = h(t.r, t.g, t.b, 1), s = I(o), c = (e, t) => N(e, t, a.h, a.a), l = (e) => L(e, o), u = (e) => I(e.a < 1 ? R(e, o) : e), d = (e) => h(Math.round(e.r), Math.round(e.g), Math.round(e.b), e.a), f = (e) => {
|
|
702
702
|
let t = +(e === "lighter"), n = (t) => e === "lighter" ? u(t) >= s : u(t) <= s, r = (e) => n(e) && l(e) >= i, o = (e) => r(e) && r(d(e)), f = null;
|
|
703
|
-
for (let e of
|
|
703
|
+
for (let e of U) {
|
|
704
704
|
let n = a.c * e, r = c(t, n), i = l(r);
|
|
705
705
|
if ((!f || i > f.ratio) && (f = {
|
|
706
706
|
color: r,
|
|
707
707
|
ratio: i
|
|
708
708
|
}), !o(r)) continue;
|
|
709
709
|
let s = a.l, u = t;
|
|
710
|
-
for (let e = 0; e <
|
|
710
|
+
for (let e = 0; e < W; e++) {
|
|
711
711
|
let e = (s + u) / 2;
|
|
712
712
|
o(c(e, n)) ? u = e : s = e;
|
|
713
713
|
}
|
|
@@ -721,20 +721,20 @@ function K(e, t, n, r = "auto") {
|
|
|
721
721
|
};
|
|
722
722
|
return r === "lighter" || r === "darker" ? f(r).color : f(l(c(1, 0)) >= l(c(0, 0)) ? "lighter" : "darker").color;
|
|
723
723
|
}
|
|
724
|
-
function
|
|
725
|
-
return
|
|
724
|
+
function ue(e) {
|
|
725
|
+
return L(l, e) >= L(u, e);
|
|
726
726
|
}
|
|
727
|
-
function
|
|
727
|
+
function de(e, t = d) {
|
|
728
728
|
let n = t.length ? t : d, r = n[0], i = -1;
|
|
729
729
|
for (let t of n) {
|
|
730
|
-
let n =
|
|
730
|
+
let n = L(t, e);
|
|
731
731
|
n > i && (i = n, r = t);
|
|
732
732
|
}
|
|
733
733
|
return h(r.r, r.g, r.b, r.a);
|
|
734
734
|
}
|
|
735
735
|
//#endregion
|
|
736
736
|
//#region src/theme/resolve.ts
|
|
737
|
-
var
|
|
737
|
+
var fe = {
|
|
738
738
|
none: [
|
|
739
739
|
"0px",
|
|
740
740
|
"0px",
|
|
@@ -765,8 +765,8 @@ var de = {
|
|
|
765
765
|
"24px",
|
|
766
766
|
"9999px"
|
|
767
767
|
]
|
|
768
|
-
},
|
|
769
|
-
function
|
|
768
|
+
}, pe = "url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxyZWN0IHg9IjAlIiB5PSIwJSIgd2lkdGg9IjUwJSIgaGVpZ2h0PSI1MCUiIHN0eWxlPSJmaWxsOiByZ2JhKDI1NSwgMjU1LCAyNTUsIDAuMDcpOyIgLz4KICA8cmVjdCB4PSI1MCUiIHk9IjAlIiB3aWR0aD0iNTAlIiBoZWlnaHQ9IjUwJSIgc3R5bGU9ImZpbGw6IHJnYmEoMjU1LCAyNTUsIDI1NSwgMCk7IiAvPgogIDxyZWN0IHg9IjUwJSIgeT0iNTAlIiB3aWR0aD0iNTAlIiBoZWlnaHQ9IjUwJSIgc3R5bGU9ImZpbGw6IHJnYmEoMjU1LCAyNTUsIDI1NSwgMC4wNyk7IiAvPgogIDxyZWN0IHg9IjAlIiB5PSI1MCUiIHdpZHRoPSI1MCUiIGhlaWdodD0iNTAlIiBzdHlsZT0iZmlsbDogcmdiYSgyNTUsIDI1NSwgMjU1LCAwKTsiIC8+Cjwvc3ZnPg==')", me = "url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxyZWN0IHg9IjAlIiB5PSIwJSIgd2lkdGg9IjUwJSIgaGVpZ2h0PSI1MCUiIHN0eWxlPSJmaWxsOiByZ2JhKDAsIDAsIDAsIDAuMDQ1KTsiIC8+CiAgPHJlY3QgeD0iNTAlIiB5PSI1MCUiIHdpZHRoPSI1MCUiIGhlaWdodD0iNTAlIiBzdHlsZT0iZmlsbDogcmdiYSgwLCAwLCAwLCAwLjA0NSk7IiAvPgo8L3N2Zz4=')";
|
|
769
|
+
function he(e, t) {
|
|
770
770
|
let n = e === "dark", r = t ? .06 : 0;
|
|
771
771
|
return {
|
|
772
772
|
text: t ? 1 : n ? .92 : .88,
|
|
@@ -788,18 +788,18 @@ function me(e, t) {
|
|
|
788
788
|
elevationMin: t ? 1.3 : n ? 1.18 : 1.06
|
|
789
789
|
};
|
|
790
790
|
}
|
|
791
|
-
var
|
|
791
|
+
var K = (e) => F(e), q = (e) => ce(e), J = (e, t) => F(B(e, t)), ge = (e) => ({
|
|
792
792
|
r: Math.round(e.r),
|
|
793
793
|
g: Math.round(e.g),
|
|
794
794
|
b: Math.round(e.b),
|
|
795
795
|
a: e.a
|
|
796
796
|
});
|
|
797
|
-
function
|
|
798
|
-
let a = n, o =
|
|
799
|
-
for (;
|
|
800
|
-
return
|
|
797
|
+
function Y(e, t, n, r, i = (e) => e) {
|
|
798
|
+
let a = n, o = ge(i(z(e, t, a))), s = 0;
|
|
799
|
+
for (; L(o, e) < r && a < 1 && s++ < 40;) a = Math.min(1, a + .02), o = ge(i(z(e, t, a)));
|
|
800
|
+
return B(o, 1);
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function _e(e, t, n) {
|
|
803
803
|
if (n <= 0) return e;
|
|
804
804
|
let r = P(e), i = P(t);
|
|
805
805
|
return oe({
|
|
@@ -809,7 +809,7 @@ function ge(e, t, n) {
|
|
|
809
809
|
a: r.a
|
|
810
810
|
});
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function ve(e) {
|
|
813
813
|
let t = {
|
|
814
814
|
version: 2,
|
|
815
815
|
...e ?? {}
|
|
@@ -817,28 +817,28 @@ function _e(e) {
|
|
|
817
817
|
o ||= (t.surface && i.push({
|
|
818
818
|
token: "surface",
|
|
819
819
|
reason: `unparsable surface "${t.surface}", using preset`
|
|
820
|
-
}), E(r.surface)), o =
|
|
820
|
+
}), E(r.surface)), o = B(o, 1);
|
|
821
821
|
let c = E(t.primary) ?? null;
|
|
822
822
|
c ||= (t.primary && i.push({
|
|
823
823
|
token: "primary",
|
|
824
824
|
reason: `unparsable primary "${t.primary}", using preset`
|
|
825
|
-
}), E(r.primary)), c =
|
|
826
|
-
let d =
|
|
825
|
+
}), E(r.primary)), c = B(c, 1);
|
|
826
|
+
let d = ue(o) ? "dark" : "light", f = d === "dark", p = t.contrast === "high", m = he(d, p), h = Math.max(0, Math.min(1, t.tint ?? 0)), g = p ? 7 : 4.5, _ = p ? 4.5 : 3, v = _e(f ? l : {
|
|
827
827
|
r: 17,
|
|
828
828
|
g: 17,
|
|
829
829
|
b: 17,
|
|
830
830
|
a: 1
|
|
831
|
-
}, c, h), y, b, x, S = (e) =>
|
|
831
|
+
}, c, h), y, b, x, S = (e) => _e(e, c, h);
|
|
832
832
|
if (f) {
|
|
833
|
-
let e =
|
|
834
|
-
y =
|
|
833
|
+
let e = L(l, o) >= 6 ? l : u;
|
|
834
|
+
y = Y(o, e, .07, m.elevationMin, S), b = Y(y, e, .05, 1.12, S), x = Y(b, e, .05, 1.12, S);
|
|
835
835
|
} else {
|
|
836
|
-
let e =
|
|
836
|
+
let e = L(l, o);
|
|
837
837
|
if (e >= m.elevationMin * 1.01) {
|
|
838
838
|
let t = e >= 1.149995 ? 1.1 : m.elevationMin;
|
|
839
|
-
y =
|
|
839
|
+
y = Y(o, l, .5, t, S), b = L(l, y) >= 1.03 ? Y(y, l, .6, 1.03, S) : B(l, 1), x = S(z(b, u, .035));
|
|
840
840
|
}
|
|
841
|
-
(!y ||
|
|
841
|
+
(!y || L(y, o) < m.elevationMin) && (y = Y(o, u, .03, m.elevationMin, S), b = B(l, 1), x = S(z(b, u, .05)));
|
|
842
842
|
}
|
|
843
843
|
if (!y || !b || !x) throw Error("theme: elevation ladder not resolved");
|
|
844
844
|
let C = oe(f ? {
|
|
@@ -851,20 +851,20 @@ function _e(e) {
|
|
|
851
851
|
c: 0,
|
|
852
852
|
h: 0,
|
|
853
853
|
a: 1
|
|
854
|
-
}), w =
|
|
854
|
+
}), w = de(C), ee = (e) => [
|
|
855
855
|
o,
|
|
856
856
|
y,
|
|
857
857
|
b,
|
|
858
858
|
x
|
|
859
|
-
].reduce((t, n) =>
|
|
859
|
+
].reduce((t, n) => L(e, n) < L(e, t) ? n : t, o), T = (e, t, n) => {
|
|
860
860
|
let r = e, a = 0;
|
|
861
|
-
for (;
|
|
861
|
+
for (; L(B(v, r), ee(B(v, r))) < t && r < 1 && a++ < 25;) r = Math.min(1, r + .04);
|
|
862
862
|
return r !== e && i.push({
|
|
863
863
|
token: n,
|
|
864
864
|
reason: `raised opacity ${e}→${r.toFixed(2)} to reach ${t}:1 on surfaces`
|
|
865
865
|
}), r;
|
|
866
866
|
}, te = T(m.text, g, "text"), ne = T(m.textMuted, g, "text-muted"), D = T(m.textFaint, _, "text-faint"), O = (() => {
|
|
867
|
-
let e =
|
|
867
|
+
let e = L(l, c), t = L({
|
|
868
868
|
r: 17,
|
|
869
869
|
g: 17,
|
|
870
870
|
b: 17,
|
|
@@ -881,13 +881,13 @@ function _e(e) {
|
|
|
881
881
|
token: "on-primary",
|
|
882
882
|
reason: `neither white nor black reaches ${g}:1 on primary (best ${Math.max(e, t).toFixed(2)}:1)`
|
|
883
883
|
}), n;
|
|
884
|
-
})(), re =
|
|
885
|
-
|
|
884
|
+
})(), re = V(c, f ? .06 : -.06), k = V(c, f ? .1 : -.1), A = G(c, o, g, "auto");
|
|
885
|
+
L(A, o) > L(c, o) + .01 && i.push({
|
|
886
886
|
token: "primary-text",
|
|
887
887
|
reason: `primary lightened/darkened to reach ${g}:1 as text on surface`
|
|
888
888
|
});
|
|
889
|
-
let ie =
|
|
890
|
-
let t = E(s[e]), n =
|
|
889
|
+
let ie = G(c, o, _, "auto"), j = G(c, o, _, "auto"), M = (e) => {
|
|
890
|
+
let t = E(s[e]), n = L(l, t), r = L({
|
|
891
891
|
r: 17,
|
|
892
892
|
g: 17,
|
|
893
893
|
b: 17,
|
|
@@ -897,80 +897,80 @@ function _e(e) {
|
|
|
897
897
|
g: 17,
|
|
898
898
|
b: 17,
|
|
899
899
|
a: 1
|
|
900
|
-
} : l, a =
|
|
900
|
+
} : l, a = B(t, m.soft), c = R(a, o), u = (e) => G(G(t, o, g, e), c, g, e), d = G(t, o, g, "auto");
|
|
901
901
|
return {
|
|
902
902
|
base: t,
|
|
903
903
|
on: i,
|
|
904
|
-
text: [u("darker"), u("lighter")].find((e) =>
|
|
904
|
+
text: [u("darker"), u("lighter")].find((e) => L(e, o) >= g && L(e, c) >= g) ?? d,
|
|
905
905
|
soft: a,
|
|
906
|
-
border:
|
|
907
|
-
dark:
|
|
908
|
-
light:
|
|
909
|
-
darker:
|
|
910
|
-
bright:
|
|
906
|
+
border: G(t, o, _, "auto"),
|
|
907
|
+
dark: V(t, -.1),
|
|
908
|
+
light: V(t, .12),
|
|
909
|
+
darker: V(t, -.18),
|
|
910
|
+
bright: V(t, .22)
|
|
911
911
|
};
|
|
912
|
-
}, ae = M("success"), N = M("warning"), P = M("error"), se = M("info"), [F,
|
|
912
|
+
}, ae = M("success"), N = M("warning"), P = M("error"), se = M("info"), [F, ce, I, le] = fe[t.radius ?? "md"], H = "'Inter', sans-serif", U = (e) => e?.name?.trim() ? `'${e.name.trim().replace(/'/g, "\\'")}', ${H}` : H, W = U(t.fonts?.ui), ge = t.fonts?.heading ? U(t.fonts.heading) : W, ve = Array.from(new Set([t.fonts?.ui?.src, t.fonts?.heading?.src].filter((e) => !!e && /^https?:\/\//.test(e)))), X = t.font?.size && t.font.size > 0 ? t.font.size : 14, Z = {
|
|
913
913
|
"color-scheme": d,
|
|
914
|
-
surface:
|
|
915
|
-
"surface-rgb":
|
|
916
|
-
"surface-1":
|
|
917
|
-
"surface-1-rgb":
|
|
918
|
-
"surface-2":
|
|
919
|
-
"surface-2-rgb":
|
|
920
|
-
"surface-3":
|
|
921
|
-
"surface-inverse":
|
|
914
|
+
surface: K(o),
|
|
915
|
+
"surface-rgb": q(o),
|
|
916
|
+
"surface-1": K(y),
|
|
917
|
+
"surface-1-rgb": q(y),
|
|
918
|
+
"surface-2": K(b),
|
|
919
|
+
"surface-2-rgb": q(b),
|
|
920
|
+
"surface-3": K(x),
|
|
921
|
+
"surface-inverse": K(C),
|
|
922
922
|
scrim: "rgba(0, 0, 0, 0.5)",
|
|
923
|
-
ink:
|
|
924
|
-
"ink-rgb":
|
|
925
|
-
text:
|
|
926
|
-
"text-muted":
|
|
927
|
-
"text-faint":
|
|
928
|
-
"text-inverse":
|
|
929
|
-
"text-on-surface-rgb":
|
|
930
|
-
"text-on-inverse-rgb":
|
|
931
|
-
border:
|
|
932
|
-
"border-strong":
|
|
933
|
-
divider:
|
|
934
|
-
"border-rgb":
|
|
935
|
-
fill:
|
|
936
|
-
"fill-hover":
|
|
937
|
-
"fill-active":
|
|
938
|
-
field:
|
|
939
|
-
"field-hover":
|
|
940
|
-
"field-focus":
|
|
941
|
-
hover:
|
|
942
|
-
pressed:
|
|
943
|
-
primary:
|
|
944
|
-
"primary-rgb":
|
|
945
|
-
"primary-hover":
|
|
946
|
-
"primary-active":
|
|
947
|
-
"on-primary":
|
|
948
|
-
"primary-text":
|
|
949
|
-
"primary-border":
|
|
950
|
-
"primary-soft":
|
|
951
|
-
"primary-soft-hover":
|
|
952
|
-
"focus-ring":
|
|
923
|
+
ink: K(v),
|
|
924
|
+
"ink-rgb": q(v),
|
|
925
|
+
text: J(v, te),
|
|
926
|
+
"text-muted": J(v, ne),
|
|
927
|
+
"text-faint": J(v, D),
|
|
928
|
+
"text-inverse": K(w),
|
|
929
|
+
"text-on-surface-rgb": q(v),
|
|
930
|
+
"text-on-inverse-rgb": q(w),
|
|
931
|
+
border: J(v, m.border),
|
|
932
|
+
"border-strong": J(v, m.borderStrong),
|
|
933
|
+
divider: J(v, m.divider),
|
|
934
|
+
"border-rgb": q(v),
|
|
935
|
+
fill: J(v, m.fill),
|
|
936
|
+
"fill-hover": J(v, m.fillHover),
|
|
937
|
+
"fill-active": J(v, m.fillActive),
|
|
938
|
+
field: J(v, m.field),
|
|
939
|
+
"field-hover": J(v, m.fieldHover),
|
|
940
|
+
"field-focus": J(v, m.fieldFocus),
|
|
941
|
+
hover: J(v, m.hover),
|
|
942
|
+
pressed: J(v, m.pressed),
|
|
943
|
+
primary: K(c),
|
|
944
|
+
"primary-rgb": q(c),
|
|
945
|
+
"primary-hover": K(re),
|
|
946
|
+
"primary-active": K(k),
|
|
947
|
+
"on-primary": K(O),
|
|
948
|
+
"primary-text": K(A),
|
|
949
|
+
"primary-border": K(ie),
|
|
950
|
+
"primary-soft": J(c, m.soft),
|
|
951
|
+
"primary-soft-hover": J(c, m.softHover),
|
|
952
|
+
"focus-ring": K(j),
|
|
953
953
|
"focus-ring-width": p ? "3px" : "2px",
|
|
954
954
|
"focus-ring-offset": "2px",
|
|
955
|
-
"primary-dark":
|
|
956
|
-
"primary-dark-rgb":
|
|
957
|
-
"primary-light":
|
|
958
|
-
"primary-light-rgb":
|
|
959
|
-
"primary-bright":
|
|
960
|
-
"primary-bright-rgb":
|
|
955
|
+
"primary-dark": K(V(c, -.1)),
|
|
956
|
+
"primary-dark-rgb": q(V(c, -.1)),
|
|
957
|
+
"primary-light": K(V(c, .1)),
|
|
958
|
+
"primary-light-rgb": q(V(c, .1)),
|
|
959
|
+
"primary-bright": K(V(c, .2)),
|
|
960
|
+
"primary-bright-rgb": q(V(c, .2)),
|
|
961
961
|
"shadow-1": f ? "0 1px 2px rgba(0, 0, 0, 0.4)" : "0 1px 2px rgba(0, 0, 0, 0.08)",
|
|
962
962
|
"shadow-2": f ? "0 6px 20px rgba(0, 0, 0, 0.45)" : "0 6px 20px rgba(0, 0, 0, 0.12)",
|
|
963
963
|
"shadow-3": f ? "0 12px 40px rgba(0, 0, 0, 0.5)" : "0 12px 40px rgba(0, 0, 0, 0.16)",
|
|
964
964
|
"radius-sm": F,
|
|
965
|
-
"radius-md":
|
|
966
|
-
"radius-lg":
|
|
967
|
-
"radius-full":
|
|
968
|
-
"font-family":
|
|
969
|
-
"font-family-heading":
|
|
970
|
-
"font-size": `${
|
|
971
|
-
"root-font-size": String(
|
|
965
|
+
"radius-md": ce,
|
|
966
|
+
"radius-lg": I,
|
|
967
|
+
"radius-full": le,
|
|
968
|
+
"font-family": W,
|
|
969
|
+
"font-family-heading": ge,
|
|
970
|
+
"font-size": `${X}px`,
|
|
971
|
+
"root-font-size": String(X),
|
|
972
972
|
canvas: f ? "rgba(0, 0, 0, 0.25)" : "rgba(0, 0, 0, 0.04)",
|
|
973
|
-
"canvas-image": f ?
|
|
973
|
+
"canvas-image": f ? pe : me,
|
|
974
974
|
"canvas-control": "rgba(0, 0, 0, 0.45)",
|
|
975
975
|
"canvas-control-hover": "rgba(0, 0, 0, 0.6)",
|
|
976
976
|
"on-canvas-control": "#ffffff",
|
|
@@ -981,19 +981,19 @@ function _e(e) {
|
|
|
981
981
|
["warning", N],
|
|
982
982
|
["error", P],
|
|
983
983
|
["info", se]
|
|
984
|
-
])
|
|
984
|
+
]) Z[e] = K(t.base), Z[`${e}-rgb`] = q(t.base), Z[`on-${e}`] = K(t.on), Z[`${e}-text`] = K(t.text), Z[`${e}-soft`] = K(t.soft), Z[`${e}-border`] = K(t.border), Z[`${e}-dark-rgb`] = q(t.dark), Z[`${e}-light-rgb`] = q(t.light), e === "info" ? Z["info-bright-rgb"] = q(t.bright) : Z[`${e}-darker-rgb`] = q(t.darker);
|
|
985
985
|
if (t.overrides) for (let [e, r] of Object.entries(t.overrides)) {
|
|
986
986
|
if (!r || !n.includes(e)) continue;
|
|
987
|
-
|
|
987
|
+
Z[e] = r;
|
|
988
988
|
let t = `${e}-rgb`;
|
|
989
989
|
if (n.includes(t)) {
|
|
990
990
|
let e = E(r);
|
|
991
|
-
e && (
|
|
991
|
+
e && (Z[t] = q(e));
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
|
-
for (let e of n)
|
|
995
|
-
let
|
|
996
|
-
let i =
|
|
994
|
+
for (let e of n) Z[e] === void 0 && (Z[e] = "");
|
|
995
|
+
let ye = Z, be = (e) => E(ye[e]), Q = (e, t, n, r) => {
|
|
996
|
+
let i = be(t), a = be(n), s = i && a ? L(i, R(a, o)) : 0;
|
|
997
997
|
return {
|
|
998
998
|
label: e,
|
|
999
999
|
fg: t,
|
|
@@ -1006,429 +1006,472 @@ function _e(e) {
|
|
|
1006
1006
|
return {
|
|
1007
1007
|
input: t,
|
|
1008
1008
|
mode: d,
|
|
1009
|
-
tokens:
|
|
1009
|
+
tokens: ye,
|
|
1010
1010
|
report: {
|
|
1011
1011
|
mode: d,
|
|
1012
1012
|
checks: [
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1013
|
+
Q("Text on surface", "text", "surface", g),
|
|
1014
|
+
Q("Muted text on surface", "text-muted", "surface", g),
|
|
1015
|
+
Q("Faint text on surface", "text-faint", "surface", _),
|
|
1016
|
+
Q("Text on cards (surface-1)", "text", "surface-1", g),
|
|
1017
|
+
Q("Text on popovers (surface-2)", "text", "surface-2", g),
|
|
1018
|
+
Q("Cards distinguishable from surface", "surface-1", "surface", m.elevationMin),
|
|
1019
|
+
Q("Popovers distinguishable from cards", "surface-2", "surface-1", f ? 1.12 : 1),
|
|
1020
|
+
Q("Strong border on surface", "border-strong", "surface", p ? 3 : 1.5),
|
|
1021
|
+
Q("Text on primary", "on-primary", "primary", g),
|
|
1022
|
+
Q("Primary as text on surface", "primary-text", "surface", g),
|
|
1023
|
+
Q("Primary border on surface", "primary-border", "surface", _),
|
|
1024
|
+
Q("Focus ring on surface", "focus-ring", "surface", _),
|
|
1025
|
+
Q("Success text on surface", "success-text", "surface", g),
|
|
1026
|
+
Q("Warning text on surface", "warning-text", "surface", g),
|
|
1027
|
+
Q("Error text on surface", "error-text", "surface", g),
|
|
1028
|
+
Q("Info text on surface", "info-text", "surface", g),
|
|
1029
|
+
Q("Success text on success tint", "success-text", "success-soft", g),
|
|
1030
|
+
Q("Warning text on warning tint", "warning-text", "warning-soft", g),
|
|
1031
|
+
Q("Error text on error tint", "error-text", "error-soft", g),
|
|
1032
|
+
Q("Info text on info tint", "info-text", "info-soft", g),
|
|
1033
|
+
Q("Text on success", "on-success", "success", g),
|
|
1034
|
+
Q("Text on warning", "on-warning", "warning", g),
|
|
1035
|
+
Q("Text on error", "on-error", "error", g),
|
|
1036
|
+
Q("Text on tooltip", "text-inverse", "surface-inverse", g)
|
|
1037
1037
|
],
|
|
1038
1038
|
adjustments: i
|
|
1039
1039
|
},
|
|
1040
|
-
fontUrls:
|
|
1040
|
+
fontUrls: ve
|
|
1041
1041
|
};
|
|
1042
1042
|
}
|
|
1043
1043
|
//#endregion
|
|
1044
1044
|
//#region src/theme/bridge.ts
|
|
1045
|
-
var
|
|
1046
|
-
"root-font-size":
|
|
1047
|
-
"font-family":
|
|
1048
|
-
"bx-focus-ring-color":
|
|
1049
|
-
"bx-focus-ring-width":
|
|
1050
|
-
"bx-focus-ring-offset":
|
|
1051
|
-
"app-background-color":
|
|
1052
|
-
"app-background-color-rgb":
|
|
1053
|
-
"app-divider-color":
|
|
1054
|
-
"secondary-color-rgb":
|
|
1055
|
-
"editor-view-background-color":
|
|
1045
|
+
var X = (e) => `var(${r}${e})`, Z = {
|
|
1046
|
+
"root-font-size": X("root-font-size"),
|
|
1047
|
+
"font-family": X("font-family"),
|
|
1048
|
+
"bx-focus-ring-color": X("focus-ring"),
|
|
1049
|
+
"bx-focus-ring-width": X("focus-ring-width"),
|
|
1050
|
+
"bx-focus-ring-offset": X("focus-ring-offset"),
|
|
1051
|
+
"app-background-color": X("surface"),
|
|
1052
|
+
"app-background-color-rgb": X("surface-rgb"),
|
|
1053
|
+
"app-divider-color": X("divider"),
|
|
1054
|
+
"secondary-color-rgb": X("surface-2-rgb"),
|
|
1055
|
+
"editor-view-background-color": X("surface"),
|
|
1056
1056
|
"fields-view-background-color": "transparent",
|
|
1057
1057
|
"live-view-background-color": "transparent",
|
|
1058
|
-
"popup-background-color":
|
|
1059
|
-
"bluepic-embed-editor-border": `1px solid ${
|
|
1060
|
-
"bluepic-embed-editor-border-radius":
|
|
1061
|
-
"primary-color-base":
|
|
1062
|
-
"primary-color-dark":
|
|
1063
|
-
"primary-color-light":
|
|
1064
|
-
"primary-color-bright":
|
|
1065
|
-
"info-color-base":
|
|
1066
|
-
"info-color-dark":
|
|
1067
|
-
"info-color-light":
|
|
1068
|
-
"info-color-bright":
|
|
1069
|
-
"success-color-base":
|
|
1070
|
-
"success-color-light":
|
|
1071
|
-
"success-color-dark":
|
|
1072
|
-
"success-color-darker":
|
|
1073
|
-
"error-color-base":
|
|
1074
|
-
"error-color-light":
|
|
1075
|
-
"error-color-dark":
|
|
1076
|
-
"error-color-darker":
|
|
1077
|
-
"warning-color-base":
|
|
1078
|
-
"warning-color-light":
|
|
1079
|
-
"warning-color-dark":
|
|
1080
|
-
"warning-color-darker":
|
|
1081
|
-
"text-color-base":
|
|
1082
|
-
"text-color-alt":
|
|
1083
|
-
"border-color-base":
|
|
1084
|
-
"background-color-base":
|
|
1085
|
-
"priinfomary-color-base":
|
|
1086
|
-
"primainfory-color-bright":
|
|
1087
|
-
"primary-color":
|
|
1088
|
-
"info-color":
|
|
1089
|
-
"bx-primary-color":
|
|
1090
|
-
"bx-text-color":
|
|
1091
|
-
"bx-modal-color":
|
|
1092
|
-
"bx-card-color":
|
|
1093
|
-
"upload-background-color":
|
|
1094
|
-
"upload-text-color-title":
|
|
1095
|
-
"upload-text-color-description":
|
|
1096
|
-
"input-background-color":
|
|
1097
|
-
"input-background-color-hover":
|
|
1098
|
-
"input-background-color-focus":
|
|
1058
|
+
"popup-background-color": X("surface-1"),
|
|
1059
|
+
"bluepic-embed-editor-border": `1px solid ${X("border")}`,
|
|
1060
|
+
"bluepic-embed-editor-border-radius": X("radius-lg"),
|
|
1061
|
+
"primary-color-base": X("primary-rgb"),
|
|
1062
|
+
"primary-color-dark": X("primary-dark-rgb"),
|
|
1063
|
+
"primary-color-light": X("primary-light-rgb"),
|
|
1064
|
+
"primary-color-bright": X("primary-bright-rgb"),
|
|
1065
|
+
"info-color-base": X("info-rgb"),
|
|
1066
|
+
"info-color-dark": X("info-dark-rgb"),
|
|
1067
|
+
"info-color-light": X("info-light-rgb"),
|
|
1068
|
+
"info-color-bright": X("info-bright-rgb"),
|
|
1069
|
+
"success-color-base": X("success-rgb"),
|
|
1070
|
+
"success-color-light": X("success-light-rgb"),
|
|
1071
|
+
"success-color-dark": X("success-dark-rgb"),
|
|
1072
|
+
"success-color-darker": X("success-darker-rgb"),
|
|
1073
|
+
"error-color-base": X("error-rgb"),
|
|
1074
|
+
"error-color-light": X("error-light-rgb"),
|
|
1075
|
+
"error-color-dark": X("error-dark-rgb"),
|
|
1076
|
+
"error-color-darker": X("error-darker-rgb"),
|
|
1077
|
+
"warning-color-base": X("warning-rgb"),
|
|
1078
|
+
"warning-color-light": X("warning-light-rgb"),
|
|
1079
|
+
"warning-color-dark": X("warning-dark-rgb"),
|
|
1080
|
+
"warning-color-darker": X("warning-darker-rgb"),
|
|
1081
|
+
"text-color-base": X("text-on-surface-rgb"),
|
|
1082
|
+
"text-color-alt": X("text-on-inverse-rgb"),
|
|
1083
|
+
"border-color-base": X("border-rgb"),
|
|
1084
|
+
"background-color-base": X("surface-rgb"),
|
|
1085
|
+
"priinfomary-color-base": X("info-rgb"),
|
|
1086
|
+
"primainfory-color-bright": X("primary-bright-rgb"),
|
|
1087
|
+
"primary-color": X("primary"),
|
|
1088
|
+
"info-color": X("info"),
|
|
1089
|
+
"bx-primary-color": X("primary"),
|
|
1090
|
+
"bx-text-color": X("text"),
|
|
1091
|
+
"bx-modal-color": X("surface-1"),
|
|
1092
|
+
"bx-card-color": X("surface-1"),
|
|
1093
|
+
"upload-background-color": X("field"),
|
|
1094
|
+
"upload-text-color-title": X("text"),
|
|
1095
|
+
"upload-text-color-description": X("text-muted"),
|
|
1096
|
+
"input-background-color": X("field"),
|
|
1097
|
+
"input-background-color-hover": X("field-hover"),
|
|
1098
|
+
"input-background-color-focus": X("field-focus"),
|
|
1099
1099
|
"input-border-color": "transparent",
|
|
1100
1100
|
"input-border-color-hover": "transparent",
|
|
1101
|
-
"input-border-color-focus":
|
|
1102
|
-
"input-shadow-focus-color":
|
|
1103
|
-
"input-bordered-border-color":
|
|
1104
|
-
"input-bordered-border-color-hover":
|
|
1105
|
-
"input-bordered-border-color-focus":
|
|
1106
|
-
"input-outline-color-focus":
|
|
1107
|
-
"input-border-color-disabled":
|
|
1108
|
-
"input-opacity-disabled":
|
|
1109
|
-
"input-ghost-border-color-hover":
|
|
1110
|
-
"input-ghost-border-color-focus":
|
|
1111
|
-
"input-number-ctrl-separator-color":
|
|
1112
|
-
"input-number-ctrl-color":
|
|
1113
|
-
"input-number-ctrl-color-hover":
|
|
1114
|
-
"input-number-ctrl-background-color-hover":
|
|
1115
|
-
"input-state-active-background-color":
|
|
1116
|
-
"input-state-active-background-color-hover":
|
|
1117
|
-
"input-state-active-background-color-focus":
|
|
1118
|
-
"input-state-active-border-color":
|
|
1119
|
-
"input-state-active-border-color-hover":
|
|
1120
|
-
"input-state-active-border-color-focus":
|
|
1121
|
-
"input-state-success-background-color":
|
|
1122
|
-
"input-state-success-background-color-hover":
|
|
1123
|
-
"input-state-success-background-color-focus":
|
|
1124
|
-
"input-state-success-border-color":
|
|
1125
|
-
"input-state-success-border-color-hover":
|
|
1126
|
-
"input-state-success-border-color-focus":
|
|
1127
|
-
"input-state-error-background-color":
|
|
1128
|
-
"input-state-error-background-color-hover":
|
|
1129
|
-
"input-state-error-background-color-focus":
|
|
1130
|
-
"input-state-error-border-color":
|
|
1131
|
-
"input-state-error-border-color-hover":
|
|
1132
|
-
"input-state-error-border-color-focus":
|
|
1133
|
-
"input-state-warning-background-color":
|
|
1134
|
-
"input-state-warning-background-color-hover":
|
|
1135
|
-
"input-state-warning-background-color-focus":
|
|
1136
|
-
"input-state-warning-border-color":
|
|
1137
|
-
"input-state-warning-border-color-hover":
|
|
1138
|
-
"input-state-warning-border-color-focus":
|
|
1139
|
-
"card-background-color":
|
|
1140
|
-
"card-background-color-hover":
|
|
1141
|
-
"card-border-color":
|
|
1142
|
-
"card-header-divider-color":
|
|
1143
|
-
"card-footer-divider-color":
|
|
1144
|
-
"card-footer-background-color":
|
|
1145
|
-
"select-background-color":
|
|
1146
|
-
"select-background-color-hover":
|
|
1147
|
-
"select-background-color-focus":
|
|
1101
|
+
"input-border-color-focus": X("primary-border"),
|
|
1102
|
+
"input-shadow-focus-color": X("focus-ring"),
|
|
1103
|
+
"input-bordered-border-color": X("border-strong"),
|
|
1104
|
+
"input-bordered-border-color-hover": X("border-strong"),
|
|
1105
|
+
"input-bordered-border-color-focus": X("primary-border"),
|
|
1106
|
+
"input-outline-color-focus": X("focus-ring"),
|
|
1107
|
+
"input-border-color-disabled": X("border"),
|
|
1108
|
+
"input-opacity-disabled": X("disabled-opacity"),
|
|
1109
|
+
"input-ghost-border-color-hover": X("border"),
|
|
1110
|
+
"input-ghost-border-color-focus": X("primary-border"),
|
|
1111
|
+
"input-number-ctrl-separator-color": X("divider"),
|
|
1112
|
+
"input-number-ctrl-color": X("text-muted"),
|
|
1113
|
+
"input-number-ctrl-color-hover": X("text"),
|
|
1114
|
+
"input-number-ctrl-background-color-hover": X("hover"),
|
|
1115
|
+
"input-state-active-background-color": X("primary-soft"),
|
|
1116
|
+
"input-state-active-background-color-hover": X("primary-soft"),
|
|
1117
|
+
"input-state-active-background-color-focus": X("primary-soft"),
|
|
1118
|
+
"input-state-active-border-color": X("primary-border"),
|
|
1119
|
+
"input-state-active-border-color-hover": X("primary-border"),
|
|
1120
|
+
"input-state-active-border-color-focus": X("primary-border"),
|
|
1121
|
+
"input-state-success-background-color": X("success-soft"),
|
|
1122
|
+
"input-state-success-background-color-hover": X("success-soft"),
|
|
1123
|
+
"input-state-success-background-color-focus": X("success-soft"),
|
|
1124
|
+
"input-state-success-border-color": X("success-border"),
|
|
1125
|
+
"input-state-success-border-color-hover": X("success-border"),
|
|
1126
|
+
"input-state-success-border-color-focus": X("success-border"),
|
|
1127
|
+
"input-state-error-background-color": X("error-soft"),
|
|
1128
|
+
"input-state-error-background-color-hover": X("error-soft"),
|
|
1129
|
+
"input-state-error-background-color-focus": X("error-soft"),
|
|
1130
|
+
"input-state-error-border-color": X("error-border"),
|
|
1131
|
+
"input-state-error-border-color-hover": X("error-border"),
|
|
1132
|
+
"input-state-error-border-color-focus": X("error-border"),
|
|
1133
|
+
"input-state-warning-background-color": X("warning-soft"),
|
|
1134
|
+
"input-state-warning-background-color-hover": X("warning-soft"),
|
|
1135
|
+
"input-state-warning-background-color-focus": X("warning-soft"),
|
|
1136
|
+
"input-state-warning-border-color": X("warning-border"),
|
|
1137
|
+
"input-state-warning-border-color-hover": X("warning-border"),
|
|
1138
|
+
"input-state-warning-border-color-focus": X("warning-border"),
|
|
1139
|
+
"card-background-color": X("surface-1"),
|
|
1140
|
+
"card-background-color-hover": X("surface-2"),
|
|
1141
|
+
"card-border-color": X("border"),
|
|
1142
|
+
"card-header-divider-color": X("divider"),
|
|
1143
|
+
"card-footer-divider-color": X("divider"),
|
|
1144
|
+
"card-footer-background-color": X("hover"),
|
|
1145
|
+
"select-background-color": X("field"),
|
|
1146
|
+
"select-background-color-hover": X("field-hover"),
|
|
1147
|
+
"select-background-color-focus": X("field-focus"),
|
|
1148
1148
|
"select-border": "1px solid transparent",
|
|
1149
1149
|
"select-border-hover": "1px solid transparent",
|
|
1150
|
-
"select-border-focus": `1px solid ${
|
|
1151
|
-
"select-color":
|
|
1152
|
-
"select-color-hover":
|
|
1153
|
-
"select-color-focus":
|
|
1154
|
-
"select-button-background-color":
|
|
1155
|
-
"select-button-background-color-hover":
|
|
1156
|
-
"select-item-border": `2px solid ${
|
|
1157
|
-
"checkbox-background-color":
|
|
1158
|
-
"checkbox-border-color":
|
|
1159
|
-
"checkbox-border-color-hover":
|
|
1160
|
-
"checkbox-outline-color-focus":
|
|
1161
|
-
"checkbox-border-color-focus":
|
|
1162
|
-
"checkbox-background-color-checked":
|
|
1150
|
+
"select-border-focus": `1px solid ${X("primary-border")}`,
|
|
1151
|
+
"select-color": X("text"),
|
|
1152
|
+
"select-color-hover": X("text"),
|
|
1153
|
+
"select-color-focus": X("text"),
|
|
1154
|
+
"select-button-background-color": X("fill"),
|
|
1155
|
+
"select-button-background-color-hover": X("fill-hover"),
|
|
1156
|
+
"select-item-border": `2px solid ${X("primary-border")}`,
|
|
1157
|
+
"checkbox-background-color": X("field"),
|
|
1158
|
+
"checkbox-border-color": X("border-strong"),
|
|
1159
|
+
"checkbox-border-color-hover": X("primary-border"),
|
|
1160
|
+
"checkbox-outline-color-focus": X("focus-ring"),
|
|
1161
|
+
"checkbox-border-color-focus": X("primary-border"),
|
|
1162
|
+
"checkbox-background-color-checked": X("primary"),
|
|
1163
1163
|
"checkbox-border-color-checked": "transparent",
|
|
1164
|
-
"checkbox-background-color-checked-hover":
|
|
1164
|
+
"checkbox-background-color-checked-hover": X("primary-hover"),
|
|
1165
1165
|
"checkbox-border-color-checked-hover": "transparent",
|
|
1166
|
-
"checkbox-symbol-color":
|
|
1167
|
-
"checkbox-symbol-color-checked":
|
|
1168
|
-
"checkbox-secondary-background-color":
|
|
1169
|
-
"checkbox-secondary-background-color-hover":
|
|
1170
|
-
"checkbox-secondary-background-color-checked":
|
|
1171
|
-
"checkbox-secondary-border": `1px solid ${
|
|
1172
|
-
"checkbox-secondary-border-hover": `1px solid ${
|
|
1173
|
-
"checkbox-secondary-border-checked": `1px solid ${
|
|
1174
|
-
"checkbox-secondary-symbol-color":
|
|
1175
|
-
"checkbox-secondary-symbol-color-checked":
|
|
1176
|
-
"popover-background-color":
|
|
1177
|
-
"popover-border-color":
|
|
1178
|
-
"popover-border": `1px solid ${
|
|
1179
|
-
"popover-arrow-border-color":
|
|
1180
|
-
"popover-without-darkened-bg-background-color":
|
|
1181
|
-
"popover-without-darkened-bg-box-shadow":
|
|
1182
|
-
"tooltip-background-color":
|
|
1183
|
-
"tooltip-text-color":
|
|
1166
|
+
"checkbox-symbol-color": X("text-faint"),
|
|
1167
|
+
"checkbox-symbol-color-checked": X("on-primary"),
|
|
1168
|
+
"checkbox-secondary-background-color": X("fill"),
|
|
1169
|
+
"checkbox-secondary-background-color-hover": X("fill-hover"),
|
|
1170
|
+
"checkbox-secondary-background-color-checked": X("fill-active"),
|
|
1171
|
+
"checkbox-secondary-border": `1px solid ${X("border")}`,
|
|
1172
|
+
"checkbox-secondary-border-hover": `1px solid ${X("border-strong")}`,
|
|
1173
|
+
"checkbox-secondary-border-checked": `1px solid ${X("border-strong")}`,
|
|
1174
|
+
"checkbox-secondary-symbol-color": X("text-muted"),
|
|
1175
|
+
"checkbox-secondary-symbol-color-checked": X("primary-text"),
|
|
1176
|
+
"popover-background-color": X("surface-2"),
|
|
1177
|
+
"popover-border-color": X("border"),
|
|
1178
|
+
"popover-border": `1px solid ${X("border")}`,
|
|
1179
|
+
"popover-arrow-border-color": X("border"),
|
|
1180
|
+
"popover-without-darkened-bg-background-color": X("surface-2-rgb"),
|
|
1181
|
+
"popover-without-darkened-bg-box-shadow": X("shadow-2"),
|
|
1182
|
+
"tooltip-background-color": X("surface-inverse"),
|
|
1183
|
+
"tooltip-text-color": X("text-inverse"),
|
|
1184
1184
|
"tooltip-border-color": "transparent",
|
|
1185
|
-
"menu-item-color":
|
|
1186
|
-
"menu-item-color-active":
|
|
1185
|
+
"menu-item-color": X("text"),
|
|
1186
|
+
"menu-item-color-active": X("primary-text"),
|
|
1187
1187
|
"menu-item-background-color": "transparent",
|
|
1188
|
-
"menu-item-background-color-active":
|
|
1189
|
-
"menu-item-background-color-hover":
|
|
1190
|
-
"menu-item-background-color-active-hover":
|
|
1191
|
-
"menu-divider": `1px solid ${
|
|
1192
|
-
"labeled-text-color":
|
|
1193
|
-
"label-background-color":
|
|
1194
|
-
"list-divider": `1px solid ${
|
|
1195
|
-
"list-item-background-color-hover":
|
|
1196
|
-
"empty-text-color":
|
|
1197
|
-
"tag-background-color":
|
|
1198
|
-
"tag-color":
|
|
1199
|
-
"tag-border-color":
|
|
1200
|
-
"tag-error-background-color":
|
|
1201
|
-
"tag-error-color":
|
|
1202
|
-
"tag-error-border-color":
|
|
1203
|
-
"tag-success-background-color":
|
|
1204
|
-
"tag-success-color":
|
|
1205
|
-
"tag-success-border-color":
|
|
1206
|
-
"tag-warning-background-color":
|
|
1207
|
-
"tag-warning-color":
|
|
1208
|
-
"tag-warning-border-color":
|
|
1209
|
-
"tag-info-background-color":
|
|
1210
|
-
"tag-info-color":
|
|
1211
|
-
"tag-info-border-color":
|
|
1212
|
-
"alert-background-color":
|
|
1213
|
-
"alert-color":
|
|
1214
|
-
"alert-border-color":
|
|
1215
|
-
"alert-icon-color":
|
|
1216
|
-
"alert-info-background-color":
|
|
1217
|
-
"alert-info-color":
|
|
1218
|
-
"alert-info-icon-color":
|
|
1219
|
-
"alert-info-border-color":
|
|
1220
|
-
"alert-success-background-color":
|
|
1221
|
-
"alert-success-color":
|
|
1222
|
-
"alert-success-icon-color":
|
|
1223
|
-
"alert-success-border-color":
|
|
1224
|
-
"alert-warning-background-color":
|
|
1225
|
-
"alert-warning-color":
|
|
1226
|
-
"alert-warning-icon-color":
|
|
1227
|
-
"alert-warning-border-color":
|
|
1228
|
-
"alert-error-background-color":
|
|
1229
|
-
"alert-error-color":
|
|
1230
|
-
"alert-error-icon-color":
|
|
1231
|
-
"alert-error-border-color":
|
|
1232
|
-
"slider-body-background-color":
|
|
1233
|
-
"slider-body-background-color-hover":
|
|
1234
|
-
"slider-body-background-color-focus":
|
|
1235
|
-
"slider-thumb-background-color":
|
|
1236
|
-
"slider-thumb-background-color-hover":
|
|
1237
|
-
"slider-thumb-background-color-focus":
|
|
1238
|
-
"slider-thumb-box-shadow":
|
|
1239
|
-
"slider-value-background-color":
|
|
1240
|
-
"slider-value-background-color-hover":
|
|
1241
|
-
"slider-value-background-color-focus":
|
|
1242
|
-
"progress-background-color":
|
|
1243
|
-
"progress-value-color":
|
|
1244
|
-
"tab-color":
|
|
1245
|
-
"tab-color-active":
|
|
1246
|
-
"tab-segment-background-color":
|
|
1247
|
-
"tab-segment-background-color-active":
|
|
1248
|
-
"tab-segment-color":
|
|
1249
|
-
"tab-segment-color-active":
|
|
1250
|
-
"tab-inline-item-background-color-hover":
|
|
1251
|
-
"tab-item-active-box-shadow":
|
|
1252
|
-
"switch-background-color":
|
|
1188
|
+
"menu-item-background-color-active": X("primary-soft"),
|
|
1189
|
+
"menu-item-background-color-hover": X("hover"),
|
|
1190
|
+
"menu-item-background-color-active-hover": X("primary-soft-hover"),
|
|
1191
|
+
"menu-divider": `1px solid ${X("divider")}`,
|
|
1192
|
+
"labeled-text-color": X("text-muted"),
|
|
1193
|
+
"label-background-color": X("fill"),
|
|
1194
|
+
"list-divider": `1px solid ${X("divider")}`,
|
|
1195
|
+
"list-item-background-color-hover": X("hover"),
|
|
1196
|
+
"empty-text-color": X("text-faint"),
|
|
1197
|
+
"tag-background-color": X("fill"),
|
|
1198
|
+
"tag-color": X("text"),
|
|
1199
|
+
"tag-border-color": X("border"),
|
|
1200
|
+
"tag-error-background-color": X("error-soft"),
|
|
1201
|
+
"tag-error-color": X("error-text"),
|
|
1202
|
+
"tag-error-border-color": X("error-border"),
|
|
1203
|
+
"tag-success-background-color": X("success-soft"),
|
|
1204
|
+
"tag-success-color": X("success-text"),
|
|
1205
|
+
"tag-success-border-color": X("success-border"),
|
|
1206
|
+
"tag-warning-background-color": X("warning-soft"),
|
|
1207
|
+
"tag-warning-color": X("warning-text"),
|
|
1208
|
+
"tag-warning-border-color": X("warning-border"),
|
|
1209
|
+
"tag-info-background-color": X("info-soft"),
|
|
1210
|
+
"tag-info-color": X("info-text"),
|
|
1211
|
+
"tag-info-border-color": X("info-border"),
|
|
1212
|
+
"alert-background-color": X("fill"),
|
|
1213
|
+
"alert-color": X("text"),
|
|
1214
|
+
"alert-border-color": X("border"),
|
|
1215
|
+
"alert-icon-color": X("text-muted"),
|
|
1216
|
+
"alert-info-background-color": X("info-soft"),
|
|
1217
|
+
"alert-info-color": X("info-text"),
|
|
1218
|
+
"alert-info-icon-color": X("info-text"),
|
|
1219
|
+
"alert-info-border-color": X("info-border"),
|
|
1220
|
+
"alert-success-background-color": X("success-soft"),
|
|
1221
|
+
"alert-success-color": X("success-text"),
|
|
1222
|
+
"alert-success-icon-color": X("success-text"),
|
|
1223
|
+
"alert-success-border-color": X("success-border"),
|
|
1224
|
+
"alert-warning-background-color": X("warning-soft"),
|
|
1225
|
+
"alert-warning-color": X("warning-text"),
|
|
1226
|
+
"alert-warning-icon-color": X("warning-text"),
|
|
1227
|
+
"alert-warning-border-color": X("warning-border"),
|
|
1228
|
+
"alert-error-background-color": X("error-soft"),
|
|
1229
|
+
"alert-error-color": X("error-text"),
|
|
1230
|
+
"alert-error-icon-color": X("error-text"),
|
|
1231
|
+
"alert-error-border-color": X("error-border"),
|
|
1232
|
+
"slider-body-background-color": X("fill-active"),
|
|
1233
|
+
"slider-body-background-color-hover": X("fill-active"),
|
|
1234
|
+
"slider-body-background-color-focus": X("fill-active"),
|
|
1235
|
+
"slider-thumb-background-color": X("primary"),
|
|
1236
|
+
"slider-thumb-background-color-hover": X("primary-hover"),
|
|
1237
|
+
"slider-thumb-background-color-focus": X("primary-hover"),
|
|
1238
|
+
"slider-thumb-box-shadow": X("shadow-1"),
|
|
1239
|
+
"slider-value-background-color": X("primary"),
|
|
1240
|
+
"slider-value-background-color-hover": X("primary"),
|
|
1241
|
+
"slider-value-background-color-focus": X("primary"),
|
|
1242
|
+
"progress-background-color": X("fill"),
|
|
1243
|
+
"progress-value-color": X("primary"),
|
|
1244
|
+
"tab-color": X("text-muted"),
|
|
1245
|
+
"tab-color-active": X("primary-text"),
|
|
1246
|
+
"tab-segment-background-color": X("fill"),
|
|
1247
|
+
"tab-segment-background-color-active": X("surface-2"),
|
|
1248
|
+
"tab-segment-color": X("text-muted"),
|
|
1249
|
+
"tab-segment-color-active": X("text"),
|
|
1250
|
+
"tab-inline-item-background-color-hover": X("hover"),
|
|
1251
|
+
"tab-item-active-box-shadow": X("shadow-1"),
|
|
1252
|
+
"switch-background-color": X("fill-active"),
|
|
1253
1253
|
"switch-border": "none",
|
|
1254
|
-
"switch-thumb-background-color":
|
|
1254
|
+
"switch-thumb-background-color": X("surface-3"),
|
|
1255
1255
|
"switch-thumb-border": "none",
|
|
1256
|
-
"switch-thumb-shadow":
|
|
1256
|
+
"switch-thumb-shadow": X("shadow-1"),
|
|
1257
1257
|
"switch-border-hover": "none",
|
|
1258
|
-
"switch-background-color-hover":
|
|
1259
|
-
"switch-thumb-background-color-hover":
|
|
1258
|
+
"switch-background-color-hover": X("fill-active"),
|
|
1259
|
+
"switch-thumb-background-color-hover": X("surface-3"),
|
|
1260
1260
|
"switch-thumb-border-hover": "none",
|
|
1261
|
-
"switch-active-background-color":
|
|
1261
|
+
"switch-active-background-color": X("primary"),
|
|
1262
1262
|
"switch-active-border": "none",
|
|
1263
|
-
"switch-active-thumb-background-color":
|
|
1263
|
+
"switch-active-thumb-background-color": X("on-primary"),
|
|
1264
1264
|
"switch-active-thumb-border": "none",
|
|
1265
|
-
"switch-active-thumb-shadow":
|
|
1266
|
-
"switch-active-background-color-hover":
|
|
1265
|
+
"switch-active-thumb-shadow": X("shadow-1"),
|
|
1266
|
+
"switch-active-background-color-hover": X("primary-hover"),
|
|
1267
1267
|
"switch-active-border-hover": "none",
|
|
1268
|
-
"switch-active-thumb-background-color-hover":
|
|
1268
|
+
"switch-active-thumb-background-color-hover": X("on-primary"),
|
|
1269
1269
|
"switch-active-thumb-border-hover": "none",
|
|
1270
1270
|
"radio-background-color": "transparent",
|
|
1271
|
-
"radio-background-color-active":
|
|
1271
|
+
"radio-background-color-active": X("primary"),
|
|
1272
1272
|
"radio-background-color-hover": "transparent",
|
|
1273
|
-
"radio-border": `1px solid ${
|
|
1274
|
-
"radio-border-active": `1px solid ${
|
|
1275
|
-
"radio-border-color-hover":
|
|
1276
|
-
"radio-symbol-color":
|
|
1277
|
-
"radio-label-color":
|
|
1278
|
-
"radio-label-color-active":
|
|
1273
|
+
"radio-border": `1px solid ${X("border-strong")}`,
|
|
1274
|
+
"radio-border-active": `1px solid ${X("primary")}`,
|
|
1275
|
+
"radio-border-color-hover": X("primary-border"),
|
|
1276
|
+
"radio-symbol-color": X("on-primary"),
|
|
1277
|
+
"radio-label-color": X("text"),
|
|
1278
|
+
"radio-label-color-active": X("text"),
|
|
1279
1279
|
"button-background-color": "transparent",
|
|
1280
|
-
"button-background-color-hover":
|
|
1281
|
-
"button-background-color-focus":
|
|
1280
|
+
"button-background-color-hover": X("hover"),
|
|
1281
|
+
"button-background-color-focus": X("hover"),
|
|
1282
1282
|
"button-border": "1px solid transparent",
|
|
1283
1283
|
"button-border-hover": "1px solid transparent",
|
|
1284
1284
|
"button-border-focus": "1px solid transparent",
|
|
1285
|
-
"button-text-color":
|
|
1286
|
-
"button-text-color-hover":
|
|
1287
|
-
"button-text-color-focus":
|
|
1285
|
+
"button-text-color": X("text"),
|
|
1286
|
+
"button-text-color-hover": X("text"),
|
|
1287
|
+
"button-text-color-focus": X("text"),
|
|
1288
1288
|
"button-box-shadow": "none",
|
|
1289
1289
|
"button-box-shadow-hover": "none",
|
|
1290
|
-
"button-border-radius":
|
|
1291
|
-
"button-active-background-color":
|
|
1292
|
-
"button-active-text-color":
|
|
1290
|
+
"button-border-radius": X("radius-md"),
|
|
1291
|
+
"button-active-background-color": X("primary"),
|
|
1292
|
+
"button-active-text-color": X("on-primary"),
|
|
1293
1293
|
"button-active-border": "1px solid transparent",
|
|
1294
1294
|
"button-active-box-shadow": "none",
|
|
1295
|
-
"button-active-background-color-hover":
|
|
1296
|
-
"button-active-text-color-hover":
|
|
1295
|
+
"button-active-background-color-hover": X("primary-hover"),
|
|
1296
|
+
"button-active-text-color-hover": X("on-primary"),
|
|
1297
1297
|
"button-active-border-hover": "1px solid transparent",
|
|
1298
1298
|
"button-active-box-shadow-hover": "none",
|
|
1299
|
-
"button-secondary-background-color":
|
|
1300
|
-
"button-secondary-background-color-hover":
|
|
1301
|
-
"button-secondary-background-color-focus":
|
|
1299
|
+
"button-secondary-background-color": X("fill"),
|
|
1300
|
+
"button-secondary-background-color-hover": X("fill-hover"),
|
|
1301
|
+
"button-secondary-background-color-focus": X("fill-hover"),
|
|
1302
1302
|
"button-secondary-border": "1px solid transparent",
|
|
1303
1303
|
"button-secondary-border-hover": "1px solid transparent",
|
|
1304
1304
|
"button-secondary-border-focus": "1px solid transparent",
|
|
1305
|
-
"button-secondary-text-color":
|
|
1306
|
-
"button-secondary-text-color-hover":
|
|
1307
|
-
"button-secondary-text-color-focus":
|
|
1305
|
+
"button-secondary-text-color": X("text"),
|
|
1306
|
+
"button-secondary-text-color-hover": X("text"),
|
|
1307
|
+
"button-secondary-text-color-focus": X("text"),
|
|
1308
1308
|
"button-secondary-box-shadow": "none",
|
|
1309
1309
|
"button-secondary-box-shadow-hover": "none",
|
|
1310
|
-
"button-secondary-active-background-color":
|
|
1311
|
-
"button-secondary-active-background-color-hover":
|
|
1312
|
-
"button-secondary-active-background-color-focus":
|
|
1310
|
+
"button-secondary-active-background-color": X("fill-active"),
|
|
1311
|
+
"button-secondary-active-background-color-hover": X("fill-active"),
|
|
1312
|
+
"button-secondary-active-background-color-focus": X("fill-active"),
|
|
1313
1313
|
"button-secondary-active-border": "1px solid transparent",
|
|
1314
1314
|
"button-secondary-active-border-hover": "1px solid transparent",
|
|
1315
1315
|
"button-secondary-active-border-focus": "1px solid transparent",
|
|
1316
|
-
"button-secondary-active-text-color":
|
|
1317
|
-
"button-secondary-active-text-color-hover":
|
|
1318
|
-
"button-secondary-active-text-color-focus":
|
|
1316
|
+
"button-secondary-active-text-color": X("text"),
|
|
1317
|
+
"button-secondary-active-text-color-hover": X("text"),
|
|
1318
|
+
"button-secondary-active-text-color-focus": X("text"),
|
|
1319
1319
|
"button-secondary-active-box-shadow": "none",
|
|
1320
1320
|
"button-secondary-active-box-shadow-hover": "none",
|
|
1321
1321
|
"button-tertiary-background-color": "transparent",
|
|
1322
|
-
"button-tertiary-background-color-hover":
|
|
1323
|
-
"button-tertiary-background-color-focus":
|
|
1324
|
-
"button-tertiary-border": `1px solid ${
|
|
1325
|
-
"button-tertiary-border-hover": `1px solid ${
|
|
1326
|
-
"button-tertiary-border-focus": `1px solid ${
|
|
1327
|
-
"button-tertiary-text-color":
|
|
1328
|
-
"button-tertiary-text-color-hover":
|
|
1329
|
-
"button-tertiary-text-color-focus":
|
|
1322
|
+
"button-tertiary-background-color-hover": X("hover"),
|
|
1323
|
+
"button-tertiary-background-color-focus": X("hover"),
|
|
1324
|
+
"button-tertiary-border": `1px solid ${X("border-strong")}`,
|
|
1325
|
+
"button-tertiary-border-hover": `1px solid ${X("border-strong")}`,
|
|
1326
|
+
"button-tertiary-border-focus": `1px solid ${X("border-strong")}`,
|
|
1327
|
+
"button-tertiary-text-color": X("text"),
|
|
1328
|
+
"button-tertiary-text-color-hover": X("text"),
|
|
1329
|
+
"button-tertiary-text-color-focus": X("text"),
|
|
1330
1330
|
"button-tertiary-box-shadow": "none",
|
|
1331
1331
|
"button-tertiary-box-shadow-hover": "none",
|
|
1332
1332
|
"button-tertiary-box-shadow-focus": "none",
|
|
1333
|
-
"button-tertiary-active-background-color":
|
|
1334
|
-
"button-tertiary-active-background-color-hover":
|
|
1335
|
-
"button-tertiary-active-background-color-focus":
|
|
1336
|
-
"button-tertiary-active-border": `1px solid ${
|
|
1337
|
-
"button-tertiary-active-border-hover": `1px solid ${
|
|
1338
|
-
"button-tertiary-active-border-focus": `1px solid ${
|
|
1339
|
-
"button-tertiary-active-text-color":
|
|
1340
|
-
"button-tertiary-active-text-color-hover":
|
|
1341
|
-
"button-tertiary-active-text-color-focus":
|
|
1333
|
+
"button-tertiary-active-background-color": X("primary"),
|
|
1334
|
+
"button-tertiary-active-background-color-hover": X("primary-hover"),
|
|
1335
|
+
"button-tertiary-active-background-color-focus": X("primary-hover"),
|
|
1336
|
+
"button-tertiary-active-border": `1px solid ${X("primary")}`,
|
|
1337
|
+
"button-tertiary-active-border-hover": `1px solid ${X("primary")}`,
|
|
1338
|
+
"button-tertiary-active-border-focus": `1px solid ${X("primary")}`,
|
|
1339
|
+
"button-tertiary-active-text-color": X("on-primary"),
|
|
1340
|
+
"button-tertiary-active-text-color-hover": X("on-primary"),
|
|
1341
|
+
"button-tertiary-active-text-color-focus": X("on-primary"),
|
|
1342
1342
|
"button-tertiary-active-box-shadow": "none",
|
|
1343
1343
|
"button-tertiary-active-box-shadow-hover": "none",
|
|
1344
1344
|
"button-tertiary-active-box-shadow-focus": "none",
|
|
1345
1345
|
"button-quaternary-background-color": "transparent",
|
|
1346
1346
|
"button-quaternary-background-color-hover": "transparent",
|
|
1347
|
-
"button-quaternary-text-color":
|
|
1348
|
-
"button-quaternary-text-color-hover":
|
|
1347
|
+
"button-quaternary-text-color": X("text-muted"),
|
|
1348
|
+
"button-quaternary-text-color-hover": X("text"),
|
|
1349
1349
|
"button-quaternary-active-background-color": "transparent",
|
|
1350
1350
|
"button-quaternary-active-background-color-hover": "transparent",
|
|
1351
|
-
"button-quaternary-active-text-color":
|
|
1352
|
-
"button-quaternary-active-text-color-hover":
|
|
1353
|
-
"button-state-active-background-color":
|
|
1354
|
-
"button-state-active-background-color-hover":
|
|
1355
|
-
"button-state-active-background-color-active":
|
|
1356
|
-
"button-state-active-background-color-active-hover":
|
|
1357
|
-
"button-state-active-background-color-solid":
|
|
1358
|
-
"button-state-active-background-color-solid-hover":
|
|
1359
|
-
"button-state-active-border-color":
|
|
1360
|
-
"button-state-active-border-color-hover":
|
|
1361
|
-
"button-state-active-text-color":
|
|
1362
|
-
"button-state-active-text-color-tertiary":
|
|
1363
|
-
"button-state-success-background-color":
|
|
1364
|
-
"button-state-success-background-color-hover":
|
|
1365
|
-
"button-state-success-background-color-active":
|
|
1366
|
-
"button-state-success-background-color-active-hover":
|
|
1367
|
-
"button-state-success-background-color-solid":
|
|
1368
|
-
"button-state-success-background-color-solid-hover":
|
|
1369
|
-
"button-state-success-border-color":
|
|
1370
|
-
"button-state-success-border-color-hover":
|
|
1371
|
-
"button-state-success-text-color":
|
|
1372
|
-
"button-state-success-text-color-tertiary":
|
|
1373
|
-
"button-state-error-background-color":
|
|
1374
|
-
"button-state-error-background-color-hover":
|
|
1375
|
-
"button-state-error-background-color-active":
|
|
1376
|
-
"button-state-error-background-color-active-hover":
|
|
1377
|
-
"button-state-error-background-color-solid":
|
|
1378
|
-
"button-state-error-background-color-solid-hover":
|
|
1379
|
-
"button-state-error-border-color":
|
|
1380
|
-
"button-state-error-border-color-hover":
|
|
1381
|
-
"button-state-error-text-color":
|
|
1382
|
-
"button-state-error-text-color-tertiary":
|
|
1383
|
-
"button-state-warning-background-color":
|
|
1384
|
-
"button-state-warning-background-color-hover":
|
|
1385
|
-
"button-state-warning-background-color-active":
|
|
1386
|
-
"button-state-warning-background-color-active-hover":
|
|
1387
|
-
"button-state-warning-background-color-solid":
|
|
1388
|
-
"button-state-warning-background-color-solid-hover":
|
|
1389
|
-
"button-state-warning-border-color":
|
|
1390
|
-
"button-state-warning-border-color-hover":
|
|
1391
|
-
"button-state-warning-text-color":
|
|
1392
|
-
"button-state-warning-text-color-tertiary":
|
|
1393
|
-
"message-body-background-color":
|
|
1394
|
-
"message-body-text-color":
|
|
1395
|
-
"message-body-border": `1px solid ${
|
|
1396
|
-
"canvas-background-color":
|
|
1397
|
-
"canvas-background-image":
|
|
1398
|
-
"canvas-btn-background-color":
|
|
1399
|
-
"canvas-btn-background-color-hover":
|
|
1400
|
-
"canvas-btn-color":
|
|
1401
|
-
"btn-color":
|
|
1402
|
-
"gallery-card-background-color":
|
|
1403
|
-
"gallery-card-background-color-hover":
|
|
1404
|
-
"gallery-card-border": `1px solid ${
|
|
1405
|
-
"gallery-action-btn-background-color":
|
|
1351
|
+
"button-quaternary-active-text-color": X("text"),
|
|
1352
|
+
"button-quaternary-active-text-color-hover": X("text"),
|
|
1353
|
+
"button-state-active-background-color": X("primary-soft"),
|
|
1354
|
+
"button-state-active-background-color-hover": X("primary-soft-hover"),
|
|
1355
|
+
"button-state-active-background-color-active": X("primary-soft"),
|
|
1356
|
+
"button-state-active-background-color-active-hover": X("primary-soft-hover"),
|
|
1357
|
+
"button-state-active-background-color-solid": X("primary"),
|
|
1358
|
+
"button-state-active-background-color-solid-hover": X("primary-hover"),
|
|
1359
|
+
"button-state-active-border-color": X("primary-border"),
|
|
1360
|
+
"button-state-active-border-color-hover": X("primary-border"),
|
|
1361
|
+
"button-state-active-text-color": X("primary-text"),
|
|
1362
|
+
"button-state-active-text-color-tertiary": X("primary-text"),
|
|
1363
|
+
"button-state-success-background-color": X("success-soft"),
|
|
1364
|
+
"button-state-success-background-color-hover": X("success-soft"),
|
|
1365
|
+
"button-state-success-background-color-active": X("success-soft"),
|
|
1366
|
+
"button-state-success-background-color-active-hover": X("success-soft"),
|
|
1367
|
+
"button-state-success-background-color-solid": X("success"),
|
|
1368
|
+
"button-state-success-background-color-solid-hover": X("success"),
|
|
1369
|
+
"button-state-success-border-color": X("success-border"),
|
|
1370
|
+
"button-state-success-border-color-hover": X("success-border"),
|
|
1371
|
+
"button-state-success-text-color": X("success-text"),
|
|
1372
|
+
"button-state-success-text-color-tertiary": X("success-text"),
|
|
1373
|
+
"button-state-error-background-color": X("error-soft"),
|
|
1374
|
+
"button-state-error-background-color-hover": X("error-soft"),
|
|
1375
|
+
"button-state-error-background-color-active": X("error-soft"),
|
|
1376
|
+
"button-state-error-background-color-active-hover": X("error-soft"),
|
|
1377
|
+
"button-state-error-background-color-solid": X("error"),
|
|
1378
|
+
"button-state-error-background-color-solid-hover": X("error"),
|
|
1379
|
+
"button-state-error-border-color": X("error-border"),
|
|
1380
|
+
"button-state-error-border-color-hover": X("error-border"),
|
|
1381
|
+
"button-state-error-text-color": X("error-text"),
|
|
1382
|
+
"button-state-error-text-color-tertiary": X("error-text"),
|
|
1383
|
+
"button-state-warning-background-color": X("warning-soft"),
|
|
1384
|
+
"button-state-warning-background-color-hover": X("warning-soft"),
|
|
1385
|
+
"button-state-warning-background-color-active": X("warning-soft"),
|
|
1386
|
+
"button-state-warning-background-color-active-hover": X("warning-soft"),
|
|
1387
|
+
"button-state-warning-background-color-solid": X("warning"),
|
|
1388
|
+
"button-state-warning-background-color-solid-hover": X("warning"),
|
|
1389
|
+
"button-state-warning-border-color": X("warning-border"),
|
|
1390
|
+
"button-state-warning-border-color-hover": X("warning-border"),
|
|
1391
|
+
"button-state-warning-text-color": X("warning-text"),
|
|
1392
|
+
"button-state-warning-text-color-tertiary": X("warning-text"),
|
|
1393
|
+
"message-body-background-color": X("surface-2"),
|
|
1394
|
+
"message-body-text-color": X("text"),
|
|
1395
|
+
"message-body-border": `1px solid ${X("border")}`,
|
|
1396
|
+
"canvas-background-color": X("canvas"),
|
|
1397
|
+
"canvas-background-image": X("canvas-image"),
|
|
1398
|
+
"canvas-btn-background-color": X("canvas-control"),
|
|
1399
|
+
"canvas-btn-background-color-hover": X("canvas-control-hover"),
|
|
1400
|
+
"canvas-btn-color": X("on-canvas-control"),
|
|
1401
|
+
"btn-color": X("on-canvas-control"),
|
|
1402
|
+
"gallery-card-background-color": X("surface-1"),
|
|
1403
|
+
"gallery-card-background-color-hover": X("surface-2"),
|
|
1404
|
+
"gallery-card-border": `1px solid ${X("border")}`,
|
|
1405
|
+
"gallery-action-btn-background-color": X("scrim"),
|
|
1406
1406
|
"gallery-action-btn-color": "#ffffff",
|
|
1407
|
-
"gallery-card-name-text-color":
|
|
1408
|
-
"gallery-card-description-text-color":
|
|
1409
|
-
"spinner-color":
|
|
1410
|
-
},
|
|
1407
|
+
"gallery-card-name-text-color": X("text"),
|
|
1408
|
+
"gallery-card-description-text-color": X("text-muted"),
|
|
1409
|
+
"spinner-color": X("text")
|
|
1410
|
+
}, ye = new Set(Object.keys(Z).filter((e) => `--${e}`.startsWith("--bx-") && n.includes(`--${e}`.slice(5)))), be = Object.entries(Z).filter(([e]) => !ye.has(e));
|
|
1411
1411
|
//#endregion
|
|
1412
1412
|
//#region src/theme/css.ts
|
|
1413
|
-
function
|
|
1413
|
+
function Q(e) {
|
|
1414
1414
|
let t = {};
|
|
1415
1415
|
for (let [n, i] of Object.entries(e.tokens)) i !== "" && (t[`${r}${n}`] = i);
|
|
1416
|
-
for (let [e, n] of
|
|
1416
|
+
for (let [e, n] of be) t[`--${e}`] = n;
|
|
1417
1417
|
if (e.input.customStyle) for (let [n, r] of Object.entries(e.input.customStyle)) n !== "key" && r != null && r !== "" && (t[n.startsWith("--") ? n : `--${n}`] = String(r));
|
|
1418
1418
|
return t;
|
|
1419
1419
|
}
|
|
1420
|
-
function
|
|
1421
|
-
let n = Array.isArray(t) ? t.join(", ") : t, r =
|
|
1420
|
+
function xe(e, t) {
|
|
1421
|
+
let n = Array.isArray(t) ? t.join(", ") : t, r = Q(e), i = Object.entries(r).map(([e, t]) => `${e}: ${t};`).join(" ");
|
|
1422
1422
|
return `${n} { color-scheme: ${e.mode}; ${i} }`;
|
|
1423
1423
|
}
|
|
1424
1424
|
//#endregion
|
|
1425
1425
|
//#region src/theme/legacy.ts
|
|
1426
|
-
function
|
|
1426
|
+
function Se(e) {
|
|
1427
1427
|
return !!e && typeof e == "object" && e.version === 2;
|
|
1428
1428
|
}
|
|
1429
|
-
function
|
|
1429
|
+
function Ce(e) {
|
|
1430
1430
|
let t = e ?? {}, n = t["editor-view-background-color"] || (t["app-background-color-rgb"] ? `rgb(${t["app-background-color-rgb"]})` : void 0) || t["popup-background-color"], r = t["primary-color-base"] ? `rgb(${t["primary-color-base"]})` : void 0, i = E(n) ? n : void 0, a = E(r) ? r : void 0, o = typeof t.key == "string" && t.key.endsWith("-wcag"), s = { version: 2 };
|
|
1431
1431
|
return i && (s.surface = i), a && (s.primary = a), o && (s.contrast = "high"), typeof t.key == "string" && (s.preset = t.key.startsWith("light") ? "light" : "dark"), s;
|
|
1432
1432
|
}
|
|
1433
1433
|
//#endregion
|
|
1434
|
-
|
|
1434
|
+
//#region src/theme/scope.ts
|
|
1435
|
+
var we = Symbol.for("bluepic.embed.theme-input"), Te = [
|
|
1436
|
+
"surface",
|
|
1437
|
+
"ink",
|
|
1438
|
+
"text",
|
|
1439
|
+
"border",
|
|
1440
|
+
"fill",
|
|
1441
|
+
"field",
|
|
1442
|
+
"shadow"
|
|
1443
|
+
], Ee = /* @__PURE__ */ new Set([
|
|
1444
|
+
"divider",
|
|
1445
|
+
"hover",
|
|
1446
|
+
"pressed",
|
|
1447
|
+
"color-scheme"
|
|
1448
|
+
]);
|
|
1449
|
+
function De(e) {
|
|
1450
|
+
return Ee.has(e) ? !0 : Te.some((t) => e === t || e.startsWith(`${t}-`));
|
|
1451
|
+
}
|
|
1452
|
+
function Oe(e, t) {
|
|
1453
|
+
let n = e ?? { version: 2 }, r = {
|
|
1454
|
+
...n,
|
|
1455
|
+
version: 2,
|
|
1456
|
+
surface: t,
|
|
1457
|
+
customStyle: void 0
|
|
1458
|
+
};
|
|
1459
|
+
if (delete r.customStyle, n.overrides) {
|
|
1460
|
+
let e = Object.fromEntries(Object.entries(n.overrides).filter(([e, t]) => t != null && t !== "" && !De(e)));
|
|
1461
|
+
Object.keys(e).length > 0 ? r.overrides = e : delete r.overrides;
|
|
1462
|
+
}
|
|
1463
|
+
return r;
|
|
1464
|
+
}
|
|
1465
|
+
var ke = 64, $ = /* @__PURE__ */ new Map();
|
|
1466
|
+
function Ae(e, t) {
|
|
1467
|
+
if (!t || !E(t)) return null;
|
|
1468
|
+
let n = `${t}\u0000${e ? JSON.stringify(e) : ""}`, r = $.get(n);
|
|
1469
|
+
if (r) return $.delete(n), $.set(n, r), r;
|
|
1470
|
+
let i = ve(Oe(e, t)), a = {
|
|
1471
|
+
theme: i,
|
|
1472
|
+
vars: Q(i)
|
|
1473
|
+
};
|
|
1474
|
+
return $.set(n, a), $.size > ke && $.delete($.keys().next().value), a;
|
|
1475
|
+
}
|
|
1476
|
+
//#endregion
|
|
1477
|
+
export { Z as LEGACY_BRIDGE, r as SEMANTIC_PREFIX, i as SEMANTIC_TOKEN_GROUPS, n as SEMANTIC_TOKEN_NAMES, s as STATUS_BASES, o as THEME_HOUSE_PRESETS, we as THEME_INPUT_KEY, a as THEME_PRESETS, Oe as deriveScopeInput, De as isSurfaceDerivedToken, Se as looksLikeThemeInput, ve as resolveTheme, Ae as resolveThemeScope, c as themeColor, Ce as themeInputFromLegacyCustomStyle, xe as themeToCssText, Q as themeToCssVars };
|