@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.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
|
|
|
@@ -21772,6 +21770,14 @@ var ThemeModel = function ThemeModel() {
|
|
|
21772
21770
|
});
|
|
21773
21771
|
theme["dark"]["name"] = theme.name;
|
|
21774
21772
|
|
|
21773
|
+
// Darkest shade (950 dark / 50 light) for stage backgrounds.
|
|
21774
|
+
// Added outside the variant loop to avoid generating invalid text/border
|
|
21775
|
+
// classes (invert(950) would be negative).
|
|
21776
|
+
DashReact.colorTypes.forEach(function (type) {
|
|
21777
|
+
theme["dark"]["bg-".concat(type, "-darkest")] = "bg-".concat(theme[type], "-950");
|
|
21778
|
+
theme["light"]["bg-".concat(type, "-darkest")] = "bg-".concat(theme[type], "-50");
|
|
21779
|
+
});
|
|
21780
|
+
|
|
21775
21781
|
// transparent colors
|
|
21776
21782
|
theme["dark"]["bg-none"] = "bg-transparent";
|
|
21777
21783
|
theme["dark"]["border-none"] = "border-transparent";
|
|
@@ -41157,8 +41163,8 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
41157
41163
|
onChange: onNameChange,
|
|
41158
41164
|
textSize: "text-lg",
|
|
41159
41165
|
placeholder: "My Workspace",
|
|
41160
|
-
bgColor: "bg-
|
|
41161
|
-
textColor: "text-
|
|
41166
|
+
bgColor: currentTheme["bg-primary-very-dark"],
|
|
41167
|
+
textColor: currentTheme["text-primary-medium"],
|
|
41162
41168
|
hasBorder: false,
|
|
41163
41169
|
autoFocus: true
|
|
41164
41170
|
}), onFolderChange && menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsx(DashReact.SelectInput, {
|
|
@@ -41172,9 +41178,9 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
41172
41178
|
}),
|
|
41173
41179
|
onChange: onFolderChange,
|
|
41174
41180
|
placeholder: "Folder",
|
|
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
|
}), onThemeChange && Object.keys(resolvedThemes).length > 0 && /*#__PURE__*/jsxRuntime.jsx(DashReact.SelectInput, {
|
|
@@ -41191,9 +41197,9 @@ var DashboardHeader = function DashboardHeader(_ref) {
|
|
|
41191
41197
|
}),
|
|
41192
41198
|
onChange: onThemeChange,
|
|
41193
41199
|
placeholder: "Theme",
|
|
41194
|
-
backgroundColor: "bg-
|
|
41195
|
-
textColor: "text-
|
|
41196
|
-
borderColor: "border-
|
|
41200
|
+
backgroundColor: currentTheme["bg-primary-very-dark"],
|
|
41201
|
+
textColor: currentTheme["text-primary-medium"],
|
|
41202
|
+
borderColor: currentTheme["border-primary-dark"],
|
|
41197
41203
|
inputClassName: "py-1 text-sm",
|
|
41198
41204
|
className: "w-40 shrink-0"
|
|
41199
41205
|
}), onScrollableChange && /*#__PURE__*/jsxRuntime.jsx(DashReact.Toggle, {
|