@mediaradar/design-components 0.5.1 → 0.6.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.d.cts CHANGED
@@ -6,7 +6,7 @@ import { ReactNode, RefObject } from 'react';
6
6
  * @description Info tooltip — a small info glyph that opens a portalled,
7
7
  * viewport-clamped bubble. Mirrors the Publisher Intel header affordance so
8
8
  * page subtitles can collapse into the eyebrow.
9
- * @tokens text-text-tertiary, rounded-control, border-border, bg-surface,
9
+ * @tokens text-text-tertiary, rounded-control, border-border-default, bg-surface,
10
10
  * shadow-overlay, text-text-secondary, focus-visible:outline-border-focus,
11
11
  * hover:text-text-primary, tracking-normal
12
12
  * @dependencies lucide-react
@@ -320,7 +320,7 @@ declare function SearchBar({ placeholder, value, onChange, variant, matchValue,
320
320
  * desktop grid exactly, or a variable-length list with no "view all" link
321
321
  * at all — both need to keep working without the row assuming a count.
322
322
  * @tokens text-text-primary, text-text-secondary, text-text-link,
323
- * rounded-control, rounded-sm, border-border, focus-visible:outline-solid,
323
+ * rounded-control, rounded-sm, border-border-default, focus-visible:outline-solid,
324
324
  * focus-visible:outline-border-focus, hover:bg-subtle, hover:text-text-primary,
325
325
  * tracking-tight, font-serif
326
326
  * @dependencies lucide-react
@@ -617,10 +617,10 @@ interface SummaryGroup {
617
617
  * naming maps to this package's `shadow-raised`/`shadow-overlay` respectively
618
618
  * (raised: a static card like this one; overlay: a floating popover/menu),
619
619
  * not a 1:1 name swap.
620
- * @tokens rounded-card, border-border, bg-surface, shadow-raised,
620
+ * @tokens rounded-card, border-border-default, bg-surface, shadow-raised,
621
621
  * text-text-secondary, text-text-primary, rounded-full, bg-subtle,
622
622
  * rounded-control, bg-canvas, hover:bg-subtle, hover:text-text-danger,
623
- * text-text-link, divide-border
623
+ * text-text-link, divide-border-default
624
624
  * @dependencies lucide-react
625
625
  * @behavior A group auto-expands only on the empty-to-nonempty transition
626
626
  * (including via a nested sub-group's items) and auto-collapses when
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { ReactNode, RefObject } from 'react';
6
6
  * @description Info tooltip — a small info glyph that opens a portalled,
7
7
  * viewport-clamped bubble. Mirrors the Publisher Intel header affordance so
8
8
  * page subtitles can collapse into the eyebrow.
9
- * @tokens text-text-tertiary, rounded-control, border-border, bg-surface,
9
+ * @tokens text-text-tertiary, rounded-control, border-border-default, bg-surface,
10
10
  * shadow-overlay, text-text-secondary, focus-visible:outline-border-focus,
11
11
  * hover:text-text-primary, tracking-normal
12
12
  * @dependencies lucide-react
@@ -320,7 +320,7 @@ declare function SearchBar({ placeholder, value, onChange, variant, matchValue,
320
320
  * desktop grid exactly, or a variable-length list with no "view all" link
321
321
  * at all — both need to keep working without the row assuming a count.
322
322
  * @tokens text-text-primary, text-text-secondary, text-text-link,
323
- * rounded-control, rounded-sm, border-border, focus-visible:outline-solid,
323
+ * rounded-control, rounded-sm, border-border-default, focus-visible:outline-solid,
324
324
  * focus-visible:outline-border-focus, hover:bg-subtle, hover:text-text-primary,
325
325
  * tracking-tight, font-serif
326
326
  * @dependencies lucide-react
@@ -617,10 +617,10 @@ interface SummaryGroup {
617
617
  * naming maps to this package's `shadow-raised`/`shadow-overlay` respectively
618
618
  * (raised: a static card like this one; overlay: a floating popover/menu),
619
619
  * not a 1:1 name swap.
620
- * @tokens rounded-card, border-border, bg-surface, shadow-raised,
620
+ * @tokens rounded-card, border-border-default, bg-surface, shadow-raised,
621
621
  * text-text-secondary, text-text-primary, rounded-full, bg-subtle,
622
622
  * rounded-control, bg-canvas, hover:bg-subtle, hover:text-text-danger,
623
- * text-text-link, divide-border
623
+ * text-text-link, divide-border-default
624
624
  * @dependencies lucide-react
625
625
  * @behavior A group auto-expands only on the empty-to-nonempty transition
626
626
  * (including via a nested sub-group's items) and auto-collapses when
package/dist/index.js CHANGED
@@ -62,7 +62,7 @@ function InfoTip({ text, size = 11, label = "More information", trigger = "click
62
62
  {
63
63
  role: "tooltip",
64
64
  style: { position: "fixed", top: pos.top, left: pos.left, width: pos.width },
65
- className: "z-[90] rounded-control border border-border bg-surface px-3 py-2 text-[12px] font-normal not-italic normal-case leading-relaxed tracking-normal text-text-secondary shadow-overlay",
65
+ className: "z-[90] rounded-control border border-border-default bg-surface px-3 py-2 text-[12px] font-normal not-italic normal-case leading-relaxed tracking-normal text-text-secondary shadow-overlay",
66
66
  children: text
67
67
  }
68
68
  ),
@@ -1084,7 +1084,7 @@ function SectionRail({
1084
1084
  type: "button",
1085
1085
  onClick: () => scroll(-1),
1086
1086
  "aria-label": "Previous",
1087
- className: "hidden h-10 w-10 items-center justify-center rounded-control border border-border text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary sm:flex lg:hidden",
1087
+ className: "hidden h-10 w-10 items-center justify-center rounded-control border border-border-default text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary sm:flex lg:hidden",
1088
1088
  children: /* @__PURE__ */ jsx7(ChevronLeft2, { size: 16 })
1089
1089
  }
1090
1090
  ),
@@ -1094,7 +1094,7 @@ function SectionRail({
1094
1094
  type: "button",
1095
1095
  onClick: () => scroll(1),
1096
1096
  "aria-label": "Next",
1097
- className: "hidden h-10 w-10 items-center justify-center rounded-control border border-border text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary sm:flex lg:hidden",
1097
+ className: "hidden h-10 w-10 items-center justify-center rounded-control border border-border-default text-text-secondary transition-colors hover:bg-subtle hover:text-text-primary sm:flex lg:hidden",
1098
1098
  children: /* @__PURE__ */ jsx7(ChevronRight2, { size: 16 })
1099
1099
  }
1100
1100
  )
@@ -1445,7 +1445,7 @@ function cx5(...parts) {
1445
1445
  return parts.filter(Boolean).join(" ");
1446
1446
  }
1447
1447
  function WorkspaceSelectedCard({ groups, testIdPrefix }) {
1448
- return /* @__PURE__ */ jsx12("aside", { className: "sticky top-4 flex min-w-0 flex-col gap-4 self-start rounded-card border border-border bg-surface px-5 pb-5 pt-4 shadow-raised sm:px-6 sm:pb-6", children: /* @__PURE__ */ jsx12("div", { className: "flex flex-col divide-y divide-border", children: groups.map((g) => /* @__PURE__ */ jsx12(SummaryGroupItem, { group: g, testIdPrefix }, g.id)) }) });
1448
+ return /* @__PURE__ */ jsx12("aside", { className: "sticky top-4 flex min-w-0 flex-col gap-4 self-start rounded-card border border-border-default bg-surface px-5 pb-5 pt-4 shadow-raised sm:px-6 sm:pb-6", children: /* @__PURE__ */ jsx12("div", { className: "flex flex-col divide-y divide-border-default", children: groups.map((g) => /* @__PURE__ */ jsx12(SummaryGroupItem, { group: g, testIdPrefix }, g.id)) }) });
1449
1449
  }
1450
1450
  function SummaryGroupItem({
1451
1451
  group,
@@ -1490,7 +1490,7 @@ function SummaryGroupItem({
1490
1490
  group.items.map((item) => /* @__PURE__ */ jsxs11(
1491
1491
  "div",
1492
1492
  {
1493
- className: "flex items-center justify-between gap-2 rounded-control border border-border bg-canvas px-2 py-1",
1493
+ className: "flex items-center justify-between gap-2 rounded-control border border-border-default bg-canvas px-2 py-1",
1494
1494
  children: [
1495
1495
  /* @__PURE__ */ jsxs11("span", { className: "min-w-0 flex-1", children: [
1496
1496
  /* @__PURE__ */ jsx12("span", { className: "block truncate text-[12px] text-text-primary", children: item.name }),