@mediaradar/design-components 0.18.3 → 0.18.4

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.d.cts CHANGED
@@ -1466,7 +1466,7 @@ interface PublisherBreakdownListProps {
1466
1466
  * @tokens text-text-primary, text-text-tertiary, text-text-secondary,
1467
1467
  * text-text-link, text-text-warning, text-text-success, text-text-danger,
1468
1468
  * border-border-default, bg-surface, bg-subtle, rounded-control, rounded-full,
1469
- * shadow-overlay
1469
+ * shadow-overlay, text-micro
1470
1470
  * @behavior Truncates to `defaultVisibleCount` rows with a "See all (N more)"
1471
1471
  * / "Show less" toggle, unless `viewAllHref` is given, in which case the
1472
1472
  * footer becomes a plain link out instead (e.g. to a full breakdown page).
package/dist/index.d.ts CHANGED
@@ -1466,7 +1466,7 @@ interface PublisherBreakdownListProps {
1466
1466
  * @tokens text-text-primary, text-text-tertiary, text-text-secondary,
1467
1467
  * text-text-link, text-text-warning, text-text-success, text-text-danger,
1468
1468
  * border-border-default, bg-surface, bg-subtle, rounded-control, rounded-full,
1469
- * shadow-overlay
1469
+ * shadow-overlay, text-micro
1470
1470
  * @behavior Truncates to `defaultVisibleCount` rows with a "See all (N more)"
1471
1471
  * / "Show less" toggle, unless `viewAllHref` is given, in which case the
1472
1472
  * footer becomes a plain link out instead (e.g. to a full breakdown page).
package/dist/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  "use client";
2
2
 
3
+ // <define:__FONT_SIZE_KEYS__>
4
+ var define_FONT_SIZE_KEYS_default = ["micro", "xs", "card-title", "dense", "sm", "panel-title", "base", "md", "lg", "xl", "h1"];
5
+
3
6
  // src/InfoTip.tsx
4
7
  import { useEffect, useId, useRef, useState } from "react";
5
8
  import { createPortal } from "react-dom";
@@ -412,7 +415,7 @@ import { extendTailwindMerge } from "tailwind-merge";
412
415
  var twMerge = extendTailwindMerge({
413
416
  extend: {
414
417
  classGroups: {
415
- "font-size": [{ text: ["micro", "dense"] }]
418
+ "font-size": [{ text: define_FONT_SIZE_KEYS_default }]
416
419
  }
417
420
  }
418
421
  });
@@ -2752,7 +2755,7 @@ function MetricCells({ spendN, yoy }) {
2752
2755
  return /* @__PURE__ */ jsxs23("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
2753
2756
  /* @__PURE__ */ jsx25("span", { className: "text-right text-[12px] font-bold tabular-nums text-text-primary", style: { width: COL_CURRENT }, children: fmtM(spendN) }),
2754
2757
  /* @__PURE__ */ jsx25("span", { className: "text-right text-[12px] font-normal tabular-nums text-text-primary", style: { width: COL_PREVIOUS }, children: prior ?? "\u2014" }),
2755
- /* @__PURE__ */ jsx25("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ jsx25("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-[10px] font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ jsxs23("span", { className: cx9("text-right text-[12px] font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
2758
+ /* @__PURE__ */ jsx25("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ jsx25("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-micro font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ jsxs23("span", { className: cx9("text-right text-[12px] font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
2756
2759
  up ? "+" : "\u2212",
2757
2760
  Math.abs(yoy),
2758
2761
  "%"