@trops/dash-core 0.1.112 → 0.1.113
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.esm.js +11 -13
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +11 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1916,11 +1916,7 @@ var themes = {
|
|
|
1916
1916
|
dark: {
|
|
1917
1917
|
"bg-primary-very-dark": "bg-black" // override test
|
|
1918
1918
|
},
|
|
1919
|
-
light: {
|
|
1920
|
-
"bg-primary-very-light": "bg-white",
|
|
1921
|
-
// override test
|
|
1922
|
-
"bg-primary-very-dark": "bg-gray-600" // override test
|
|
1923
|
-
}
|
|
1919
|
+
light: {}
|
|
1924
1920
|
},
|
|
1925
1921
|
"theme-2": {
|
|
1926
1922
|
name: "Default 2",
|
|
@@ -1933,11 +1929,7 @@ var themes = {
|
|
|
1933
1929
|
dark: {
|
|
1934
1930
|
"bg-primary-very-dark": "bg-black" // override test
|
|
1935
1931
|
},
|
|
1936
|
-
light: {
|
|
1937
|
-
"bg-primary-very-light": "bg-white",
|
|
1938
|
-
// override test
|
|
1939
|
-
"bg-primary-very-dark": "bg-gray-600" // override test
|
|
1940
|
-
}
|
|
1932
|
+
light: {}
|
|
1941
1933
|
}
|
|
1942
1934
|
};
|
|
1943
1935
|
var ThemeWrapper = function ThemeWrapper(_ref) {
|
|
@@ -21660,8 +21652,8 @@ var ThemeModel = function ThemeModel() {
|
|
|
21660
21652
|
"very-light": 100,
|
|
21661
21653
|
light: 200,
|
|
21662
21654
|
medium: 300,
|
|
21663
|
-
dark:
|
|
21664
|
-
"very-dark":
|
|
21655
|
+
dark: 200,
|
|
21656
|
+
"very-dark": 100
|
|
21665
21657
|
},
|
|
21666
21658
|
dark: {
|
|
21667
21659
|
"very-light": 500,
|
|
@@ -21757,8 +21749,14 @@ var ThemeModel = function ThemeModel() {
|
|
|
21757
21749
|
});
|
|
21758
21750
|
}
|
|
21759
21751
|
if (overrideLight !== null) {
|
|
21752
|
+
// Strip stale light overrides from pre-fix saved themes.
|
|
21753
|
+
// These were band-aids for the old linear shade mapping and
|
|
21754
|
+
// conflict with the corrected light variant (100-300 range).
|
|
21755
|
+
var staleKeys = ["bg-primary-very-light", "bg-primary-very-dark"];
|
|
21760
21756
|
Object.keys(overrideLight).forEach(function (key) {
|
|
21761
|
-
|
|
21757
|
+
if (!staleKeys.includes(key)) {
|
|
21758
|
+
theme["light"][key] = overrideLight[key];
|
|
21759
|
+
}
|
|
21762
21760
|
});
|
|
21763
21761
|
}
|
|
21764
21762
|
|