@trops/dash-core 0.1.830 → 0.1.831

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
@@ -13092,13 +13092,16 @@ function useConfigTokens() {
13092
13092
  var _ref = React.useContext(DashReact.ThemeContext) || {},
13093
13093
  _ref$currentTheme = _ref.currentTheme,
13094
13094
  currentTheme = _ref$currentTheme === void 0 ? {} : _ref$currentTheme;
13095
+ var key = function key(role) {
13096
+ return currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme[DashReact.DASH_ROLES[role].key];
13097
+ };
13095
13098
  return {
13096
- muted: currentTheme["text-neutral-medium"] || "text-gray-400",
13097
- strong: currentTheme["text-neutral-light"] || "text-gray-200",
13098
- hairline: currentTheme["border-neutral-dark"] || "border-gray-700",
13099
- selectedBg: currentTheme["bg-neutral-very-dark"] || "bg-gray-800",
13100
- selectedBorder: currentTheme["border-primary-dark"] || "border-gray-600",
13101
- fieldBg: currentTheme["bg-neutral-very-dark"] || "bg-gray-900"
13099
+ muted: key("muted") || "text-gray-400",
13100
+ strong: key("text") || "text-gray-200",
13101
+ hairline: key("hairline") || "border-gray-700",
13102
+ selectedBg: key("surface") || "bg-gray-800",
13103
+ selectedBorder: (currentTheme === null || currentTheme === void 0 ? void 0 : currentTheme["border-primary-dark"]) || "border-gray-600",
13104
+ fieldBg: key("well") || "bg-gray-900"
13102
13105
  };
13103
13106
  }
13104
13107