@fileverse-dev/ddoc 3.0.60-theme-fix-1 → 3.0.61
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/index.es.js
CHANGED
|
@@ -181752,10 +181752,7 @@ const iqe = async (e, t, n) => {
|
|
|
181752
181752
|
const u = El(
|
|
181753
181753
|
r == null ? void 0 : r.canvasBackground,
|
|
181754
181754
|
o
|
|
181755
|
-
), c = El(
|
|
181756
|
-
r == null ? void 0 : r.textColor,
|
|
181757
|
-
o
|
|
181758
|
-
), d = c ? mC(r == null ? void 0 : r.textColor) ? c : Wx(c, o) : void 0, p = {
|
|
181755
|
+
), c = El(r == null ? void 0 : r.textColor, o), d = c ? mC(r == null ? void 0 : r.textColor) ? c : Wx(c, o) : void 0, p = {
|
|
181759
181756
|
...u && {
|
|
181760
181757
|
backgroundColor: u
|
|
181761
181758
|
},
|
|
@@ -182222,10 +182219,7 @@ const yqe = ({
|
|
|
182222
182219
|
const u = El(
|
|
182223
182220
|
s == null ? void 0 : s.canvasBackground,
|
|
182224
182221
|
a
|
|
182225
|
-
), c = El(
|
|
182226
|
-
s == null ? void 0 : s.textColor,
|
|
182227
|
-
a
|
|
182228
|
-
), d = c ? mC(s == null ? void 0 : s.textColor) ? c : Wx(c, a) : void 0, p = {
|
|
182222
|
+
), c = El(s == null ? void 0 : s.textColor, a), d = c ? mC(s == null ? void 0 : s.textColor) ? c : Wx(c, a) : void 0, p = {
|
|
182229
182223
|
...u && {
|
|
182230
182224
|
backgroundColor: u
|
|
182231
182225
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DocumentStylingValue, ThemeVariantValue } from '../types';
|
|
2
2
|
|
|
3
3
|
export declare const isThemeVariantValue: (value: DocumentStylingValue | undefined) => value is ThemeVariantValue;
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const getThemeStyle: (value?: DocumentStylingValue, theme?: "light" | "dark") => string | undefined;
|