@trops/dash-core 0.1.113 → 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.js CHANGED
@@ -21770,6 +21770,14 @@ var ThemeModel = function ThemeModel() {
21770
21770
  });
21771
21771
  theme["dark"]["name"] = theme.name;
21772
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
+
21773
21781
  // transparent colors
21774
21782
  theme["dark"]["bg-none"] = "bg-transparent";
21775
21783
  theme["dark"]["border-none"] = "border-transparent";
@@ -41155,8 +41163,8 @@ var DashboardHeader = function DashboardHeader(_ref) {
41155
41163
  onChange: onNameChange,
41156
41164
  textSize: "text-lg",
41157
41165
  placeholder: "My Workspace",
41158
- bgColor: "bg-gray-800",
41159
- textColor: "text-gray-400",
41166
+ bgColor: currentTheme["bg-primary-very-dark"],
41167
+ textColor: currentTheme["text-primary-medium"],
41160
41168
  hasBorder: false,
41161
41169
  autoFocus: true
41162
41170
  }), onFolderChange && menuItems.length > 0 && /*#__PURE__*/jsxRuntime.jsx(DashReact.SelectInput, {
@@ -41170,9 +41178,9 @@ var DashboardHeader = function DashboardHeader(_ref) {
41170
41178
  }),
41171
41179
  onChange: onFolderChange,
41172
41180
  placeholder: "Folder",
41173
- backgroundColor: "bg-gray-800",
41174
- textColor: "text-gray-400",
41175
- borderColor: "border-gray-700",
41181
+ backgroundColor: currentTheme["bg-primary-very-dark"],
41182
+ textColor: currentTheme["text-primary-medium"],
41183
+ borderColor: currentTheme["border-primary-dark"],
41176
41184
  inputClassName: "py-1 text-sm",
41177
41185
  className: "w-40 shrink-0"
41178
41186
  }), onThemeChange && Object.keys(resolvedThemes).length > 0 && /*#__PURE__*/jsxRuntime.jsx(DashReact.SelectInput, {
@@ -41189,9 +41197,9 @@ var DashboardHeader = function DashboardHeader(_ref) {
41189
41197
  }),
41190
41198
  onChange: onThemeChange,
41191
41199
  placeholder: "Theme",
41192
- backgroundColor: "bg-gray-800",
41193
- textColor: "text-gray-400",
41194
- borderColor: "border-gray-700",
41200
+ backgroundColor: currentTheme["bg-primary-very-dark"],
41201
+ textColor: currentTheme["text-primary-medium"],
41202
+ borderColor: currentTheme["border-primary-dark"],
41195
41203
  inputClassName: "py-1 text-sm",
41196
41204
  className: "w-40 shrink-0"
41197
41205
  }), onScrollableChange && /*#__PURE__*/jsxRuntime.jsx(DashReact.Toggle, {