@mediaradar/design-components 0.18.3 → 0.18.5

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
@@ -76,6 +76,9 @@ __export(index_exports, {
76
76
  });
77
77
  module.exports = __toCommonJS(index_exports);
78
78
 
79
+ // <define:__FONT_SIZE_KEYS__>
80
+ var define_FONT_SIZE_KEYS_default = ["control-caption", "micro", "xs", "card-title", "dense", "sm", "panel-title", "base", "md", "lg", "xl", "h1"];
81
+
79
82
  // src/InfoTip.tsx
80
83
  var import_react = require("react");
81
84
  var import_react_dom = require("react-dom");
@@ -488,7 +491,7 @@ var import_tailwind_merge = require("tailwind-merge");
488
491
  var twMerge = (0, import_tailwind_merge.extendTailwindMerge)({
489
492
  extend: {
490
493
  classGroups: {
491
- "font-size": [{ text: ["micro", "dense"] }]
494
+ "font-size": [{ text: define_FONT_SIZE_KEYS_default }]
492
495
  }
493
496
  }
494
497
  });
@@ -2828,7 +2831,7 @@ function MetricCells({ spendN, yoy }) {
2828
2831
  return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
2829
2832
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-right text-[12px] font-bold tabular-nums text-text-primary", style: { width: COL_CURRENT }, children: fmtM(spendN) }),
2830
2833
  /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "text-right text-[12px] font-normal tabular-nums text-text-primary", style: { width: COL_PREVIOUS }, children: prior ?? "\u2014" }),
2831
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-[10px] font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: cx9("text-right text-[12px] font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
2834
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-micro font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("span", { className: cx9("text-right text-[12px] font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
2832
2835
  up ? "+" : "\u2212",
2833
2836
  Math.abs(yoy),
2834
2837
  "%"