@trops/dash-core 0.1.112 → 0.1.114
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 +27 -21
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +27 -21
- 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
|
|
|
@@ -21753,6 +21751,14 @@ var ThemeModel = function ThemeModel() {
|
|
|
21753
21751
|
});
|
|
21754
21752
|
theme["dark"]["name"] = theme.name;
|
|
21755
21753
|
|
|
21754
|
+
// Darkest shade (950 dark / 50 light) for stage backgrounds.
|
|
21755
|
+
// Added outside the variant loop to avoid generating invalid text/border
|
|
21756
|
+
// classes (invert(950) would be negative).
|
|
21757
|
+
colorTypes.forEach(function (type) {
|
|
21758
|
+
theme["dark"]["bg-".concat(type, "-darkest")] = "bg-".concat(theme[type], "-950");
|
|
21759
|
+
theme["light"]["bg-".concat(type, "-darkest")] = "bg-".concat(theme[type], "-50");
|
|
21760
|
+
});
|
|
21761
|
+
|
|
21756
21762
|
// transparent colors
|
|
21757
21763
|
theme["dark"]["bg-none"] = "bg-transparent";
|
|
21758
21764
|
theme["dark"]["border-none"] = "border-transparent";
|
|
@@ -41138,8 +41144,8 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
41138
41144
|
onChange: onNameChange,
|
|
41139
41145
|
textSize: "text-lg",
|
|
41140
41146
|
placeholder: "My Workspace",
|
|
41141
|
-
bgColor: "bg-
|
|
41142
|
-
textColor: "text-
|
|
41147
|
+
bgColor: currentTheme["bg-primary-very-dark"],
|
|
41148
|
+
textColor: currentTheme["text-primary-medium"],
|
|
41143
41149
|
hasBorder: false,
|
|
41144
41150
|
autoFocus: true
|
|
41145
41151
|
}), onFolderChange && menuItems.length > 0 && /*#__PURE__*/jsx(SelectInput, {
|
|
@@ -41153,9 +41159,9 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
41153
41159
|
}),
|
|
41154
41160
|
onChange: onFolderChange,
|
|
41155
41161
|
placeholder: "Folder",
|
|
41156
|
-
backgroundColor: "bg-
|
|
41157
|
-
textColor: "text-
|
|
41158
|
-
borderColor: "border-
|
|
41162
|
+
backgroundColor: currentTheme["bg-primary-very-dark"],
|
|
41163
|
+
textColor: currentTheme["text-primary-medium"],
|
|
41164
|
+
borderColor: currentTheme["border-primary-dark"],
|
|
41159
41165
|
inputClassName: "py-1 text-sm",
|
|
41160
41166
|
className: "w-40 shrink-0"
|
|
41161
41167
|
}), onThemeChange && Object.keys(resolvedThemes).length > 0 && /*#__PURE__*/jsx(SelectInput, {
|
|
@@ -41172,9 +41178,9 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
41172
41178
|
}),
|
|
41173
41179
|
onChange: onThemeChange,
|
|
41174
41180
|
placeholder: "Theme",
|
|
41175
|
-
backgroundColor: "bg-
|
|
41176
|
-
textColor: "text-
|
|
41177
|
-
borderColor: "border-
|
|
41181
|
+
backgroundColor: currentTheme["bg-primary-very-dark"],
|
|
41182
|
+
textColor: currentTheme["text-primary-medium"],
|
|
41183
|
+
borderColor: currentTheme["border-primary-dark"],
|
|
41178
41184
|
inputClassName: "py-1 text-sm",
|
|
41179
41185
|
className: "w-40 shrink-0"
|
|
41180
41186
|
}), onScrollableChange && /*#__PURE__*/jsx(Toggle, {
|