@mediaradar/design-components 0.10.0 → 0.11.0

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.cjs CHANGED
@@ -2757,13 +2757,13 @@ function NameListModal({
2757
2757
  return () => window.removeEventListener("keydown", onKey);
2758
2758
  }, [onCancel]);
2759
2759
  return (0, import_react_dom5.createPortal)(
2760
- // The scrim is a literal: @mediaradar/design-tokens has no scrim token yet.
2761
- // Same light/dark values as insights-studio-prototype's local --color-scrim;
2762
- // the dark one keys off data-theme, the attribute design-tokens' dark.css uses.
2760
+ // bg-scrim, not a literal: design-tokens gained a scrim token in 2.5.0.
2761
+ // No in-data-[theme=dark] override needed any more -- the token redefines
2762
+ // itself under that attribute in dark.css, so one class covers both themes.
2763
2763
  /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2764
2764
  "div",
2765
2765
  {
2766
- className: "fixed inset-0 z-70 flex items-center justify-center bg-[rgba(20,17,13,0.55)] in-data-[theme=dark]:bg-[rgba(0,0,0,0.65)] px-4",
2766
+ className: "fixed inset-0 z-70 flex items-center justify-center bg-scrim px-4",
2767
2767
  onMouseDown: (e) => e.target === e.currentTarget && onCancel(),
2768
2768
  children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
2769
2769
  "div",