@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.esm.js
CHANGED
|
@@ -1897,11 +1897,7 @@ var themes = {
|
|
|
1897
1897
|
dark: {
|
|
1898
1898
|
"bg-primary-very-dark": "bg-black" // override test
|
|
1899
1899
|
},
|
|
1900
|
-
light: {
|
|
1901
|
-
"bg-primary-very-light": "bg-white",
|
|
1902
|
-
// override test
|
|
1903
|
-
"bg-primary-very-dark": "bg-gray-600" // override test
|
|
1904
|
-
}
|
|
1900
|
+
light: {}
|
|
1905
1901
|
},
|
|
1906
1902
|
"theme-2": {
|
|
1907
1903
|
name: "Default 2",
|
|
@@ -1914,11 +1910,7 @@ var themes = {
|
|
|
1914
1910
|
dark: {
|
|
1915
1911
|
"bg-primary-very-dark": "bg-black" // override test
|
|
1916
1912
|
},
|
|
1917
|
-
light: {
|
|
1918
|
-
"bg-primary-very-light": "bg-white",
|
|
1919
|
-
// override test
|
|
1920
|
-
"bg-primary-very-dark": "bg-gray-600" // override test
|
|
1921
|
-
}
|
|
1913
|
+
light: {}
|
|
1922
1914
|
}
|
|
1923
1915
|
};
|
|
1924
1916
|
var ThemeWrapper = function ThemeWrapper(_ref) {
|
|
@@ -21641,8 +21633,8 @@ var ThemeModel = function ThemeModel() {
|
|
|
21641
21633
|
"very-light": 100,
|
|
21642
21634
|
light: 200,
|
|
21643
21635
|
medium: 300,
|
|
21644
|
-
dark:
|
|
21645
|
-
"very-dark":
|
|
21636
|
+
dark: 200,
|
|
21637
|
+
"very-dark": 100
|
|
21646
21638
|
},
|
|
21647
21639
|
dark: {
|
|
21648
21640
|
"very-light": 500,
|
|
@@ -21738,8 +21730,14 @@ var ThemeModel = function ThemeModel() {
|
|
|
21738
21730
|
});
|
|
21739
21731
|
}
|
|
21740
21732
|
if (overrideLight !== null) {
|
|
21733
|
+
// Strip stale light overrides from pre-fix saved themes.
|
|
21734
|
+
// These were band-aids for the old linear shade mapping and
|
|
21735
|
+
// conflict with the corrected light variant (100-300 range).
|
|
21736
|
+
var staleKeys = ["bg-primary-very-light", "bg-primary-very-dark"];
|
|
21741
21737
|
Object.keys(overrideLight).forEach(function (key) {
|
|
21742
|
-
|
|
21738
|
+
if (!staleKeys.includes(key)) {
|
|
21739
|
+
theme["light"][key] = overrideLight[key];
|
|
21740
|
+
}
|
|
21743
21741
|
});
|
|
21744
21742
|
}
|
|
21745
21743
|
|