@mediaradar/design-components 0.47.0 → 0.48.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
@@ -28,7 +28,7 @@ interface CommonProps {
28
28
  * @description Info tooltip — a small info glyph that opens a portalled,
29
29
  * viewport-clamped bubble. Mirrors the Publisher Intel header affordance so
30
30
  * page subtitles can collapse into the eyebrow.
31
- * @tokens text-text-tertiary, rounded-control, border-border-default, bg-surface,
31
+ * @tokens z-tooltip, text-text-tertiary, rounded-control, border-border-default, bg-surface,
32
32
  * shadow-overlay, text-text-secondary, focus-visible:outline-border-focus,
33
33
  * hover:text-text-primary, tracking-normal
34
34
  * @dependencies lucide-react
@@ -883,7 +883,7 @@ declare function DataScopeFilter({ value, onChange, align, className, testIdPref
883
883
  * `document.body` so the popover is never clipped by a scrollable ancestor
884
884
  * (e.g. inside a modal) -- unlike this package's other chip popovers, none
885
885
  * of which are known to sit inside a clipping container today.
886
- * @tokens text-control-caption, rounded-control, rounded-card, border-border-default,
886
+ * @tokens z-dropdown, text-control-caption, rounded-control, rounded-card, border-border-default,
887
887
  * border-border-strong, bg-input, bg-surface, shadow-overlay,
888
888
  * text-text-primary, text-text-secondary,
889
889
  * text-text-tertiary, hover:bg-subtle, hover:text-text-primary,
@@ -1374,7 +1374,7 @@ declare function StackedColumnPlaceholder({ height, width, legendRows, axis, cla
1374
1374
  * bounding rect and rendered through a portal to `document.body`, so it
1375
1375
  * escapes both `overflow` clipping inside scrollable panels and the broken
1376
1376
  * `fixed` containing block a transformed ancestor creates.
1377
- * @tokens rounded-control, border-border-default, bg-surface, shadow-overlay,
1377
+ * @tokens z-tooltip, rounded-control, border-border-default, bg-surface, shadow-overlay,
1378
1378
  * text-text-primary, bg-text-primary, text-surface,
1379
1379
  * duration-(--mr-motion-duration-interactive)
1380
1380
  * @variant surface - Default. Themed surface/border bubble -- matches the
@@ -1689,6 +1689,7 @@ interface SelectionPickerProps<T extends PickerRow> extends CommonProps {
1689
1689
  }
1690
1690
  /**
1691
1691
  * @pattern SelectionPicker
1692
+ * @audited 2026-11-13
1692
1693
  * @status stable
1693
1694
  * @description Generic search-and-filter picker for building a selection out
1694
1695
  * of a larger catalog -- a search box plus filter dropdowns above a checkbox
@@ -1700,7 +1701,7 @@ interface SelectionPickerProps<T extends PickerRow> extends CommonProps {
1700
1701
  * filtered client-side (the default), or externally-computed `results` for a
1701
1702
  * caller whose search is server-side/async, with `loading`/`error`/
1702
1703
  * `hasMore`/`onLoadMore` covering that mode's states.
1703
- * @tokens text-micro, text-dense, border-border-strong, rounded-control, rounded-card, border-border-default, bg-input, focus-within:outline-border-focus,
1704
+ * @tokens tracking-wider, z-dropdown, text-micro, text-dense, border-border-strong, rounded-control, rounded-card, border-border-default, bg-input, focus-within:outline-border-focus,
1704
1705
  * bg-canvas, bg-surface, shadow-raised, shadow-overlay, text-text-primary,
1705
1706
  * text-text-secondary, text-text-tertiary, text-text-link,
1706
1707
  * text-brand-primaryAction, border-brand-primaryAction, bg-brand-primaryAction,
package/dist/index.d.ts CHANGED
@@ -28,7 +28,7 @@ interface CommonProps {
28
28
  * @description Info tooltip — a small info glyph that opens a portalled,
29
29
  * viewport-clamped bubble. Mirrors the Publisher Intel header affordance so
30
30
  * page subtitles can collapse into the eyebrow.
31
- * @tokens text-text-tertiary, rounded-control, border-border-default, bg-surface,
31
+ * @tokens z-tooltip, text-text-tertiary, rounded-control, border-border-default, bg-surface,
32
32
  * shadow-overlay, text-text-secondary, focus-visible:outline-border-focus,
33
33
  * hover:text-text-primary, tracking-normal
34
34
  * @dependencies lucide-react
@@ -883,7 +883,7 @@ declare function DataScopeFilter({ value, onChange, align, className, testIdPref
883
883
  * `document.body` so the popover is never clipped by a scrollable ancestor
884
884
  * (e.g. inside a modal) -- unlike this package's other chip popovers, none
885
885
  * of which are known to sit inside a clipping container today.
886
- * @tokens text-control-caption, rounded-control, rounded-card, border-border-default,
886
+ * @tokens z-dropdown, text-control-caption, rounded-control, rounded-card, border-border-default,
887
887
  * border-border-strong, bg-input, bg-surface, shadow-overlay,
888
888
  * text-text-primary, text-text-secondary,
889
889
  * text-text-tertiary, hover:bg-subtle, hover:text-text-primary,
@@ -1374,7 +1374,7 @@ declare function StackedColumnPlaceholder({ height, width, legendRows, axis, cla
1374
1374
  * bounding rect and rendered through a portal to `document.body`, so it
1375
1375
  * escapes both `overflow` clipping inside scrollable panels and the broken
1376
1376
  * `fixed` containing block a transformed ancestor creates.
1377
- * @tokens rounded-control, border-border-default, bg-surface, shadow-overlay,
1377
+ * @tokens z-tooltip, rounded-control, border-border-default, bg-surface, shadow-overlay,
1378
1378
  * text-text-primary, bg-text-primary, text-surface,
1379
1379
  * duration-(--mr-motion-duration-interactive)
1380
1380
  * @variant surface - Default. Themed surface/border bubble -- matches the
@@ -1689,6 +1689,7 @@ interface SelectionPickerProps<T extends PickerRow> extends CommonProps {
1689
1689
  }
1690
1690
  /**
1691
1691
  * @pattern SelectionPicker
1692
+ * @audited 2026-11-13
1692
1693
  * @status stable
1693
1694
  * @description Generic search-and-filter picker for building a selection out
1694
1695
  * of a larger catalog -- a search box plus filter dropdowns above a checkbox
@@ -1700,7 +1701,7 @@ interface SelectionPickerProps<T extends PickerRow> extends CommonProps {
1700
1701
  * filtered client-side (the default), or externally-computed `results` for a
1701
1702
  * caller whose search is server-side/async, with `loading`/`error`/
1702
1703
  * `hasMore`/`onLoadMore` covering that mode's states.
1703
- * @tokens text-micro, text-dense, border-border-strong, rounded-control, rounded-card, border-border-default, bg-input, focus-within:outline-border-focus,
1704
+ * @tokens tracking-wider, z-dropdown, text-micro, text-dense, border-border-strong, rounded-control, rounded-card, border-border-default, bg-input, focus-within:outline-border-focus,
1704
1705
  * bg-canvas, bg-surface, shadow-raised, shadow-overlay, text-text-primary,
1705
1706
  * text-text-secondary, text-text-tertiary, text-text-link,
1706
1707
  * text-brand-primaryAction, border-brand-primaryAction, bg-brand-primaryAction,
package/dist/index.js CHANGED
@@ -103,7 +103,7 @@ function InfoTip({ text, size = 11, label = "More information", trigger = "click
103
103
  onMouseEnter: trigger === "hover" ? cancelClose : void 0,
104
104
  onMouseLeave: trigger === "hover" ? closeSoon : void 0,
105
105
  style: { position: "fixed", top: pos.top, left: pos.left, width: pos.width },
106
- className: "z-[90] rounded-control border border-border-default bg-surface px-3 py-2 text-xs font-normal not-italic normal-case leading-relaxed tracking-normal text-text-secondary shadow-overlay",
106
+ className: "z-tooltip rounded-control border border-border-default bg-surface px-3 py-2 text-xs font-normal not-italic normal-case leading-relaxed tracking-normal text-text-secondary shadow-overlay",
107
107
  children: text
108
108
  }
109
109
  ),
@@ -1931,7 +1931,7 @@ function SelectFilter({
1931
1931
  "data-testid": testIdPrefix && `${testIdPrefix}-popover`,
1932
1932
  style: { position: "fixed", top: pos.top, left: pos.left, right: pos.right, width: fullWidth ? pos.width : void 0 },
1933
1933
  className: cn(
1934
- "z-[65] flex flex-col overflow-hidden rounded-card border border-border-default bg-surface shadow-overlay",
1934
+ "z-dropdown flex flex-col overflow-hidden rounded-card border border-border-default bg-surface shadow-overlay",
1935
1935
  !fullWidth && (sm ? "w-max min-w-28 max-w-72" : "w-56")
1936
1936
  ),
1937
1937
  role: loading || error ? "group" : "listbox",
@@ -2557,7 +2557,7 @@ function Tooltip({
2557
2557
  onMouseLeave: interactive ? hide : void 0,
2558
2558
  onTransitionEnd: onBoxTransitionEnd,
2559
2559
  className: cn(
2560
- "fixed z-[90] w-max max-w-xs whitespace-normal break-words px-2.5 py-1.5 text-xs leading-snug",
2560
+ "fixed z-tooltip w-max max-w-xs whitespace-normal break-words px-2.5 py-1.5 text-xs leading-snug",
2561
2561
  // Fade in/out. The sys duration token rather than a ref one:
2562
2562
  // it is what Button's hover/press transition uses, and a
2563
2563
  // tooltip's fade is the same kind of interactive feedback.
@@ -2919,7 +2919,7 @@ function SelectionPicker({
2919
2919
  "div",
2920
2920
  {
2921
2921
  className: cn(
2922
- "grid items-center gap-2 border-b border-border-default bg-canvas px-3 py-2 text-micro font-semibold uppercase tracking-[0.06em] text-text-secondary",
2922
+ "grid items-center gap-2 border-b border-border-default bg-canvas px-3 py-2 text-micro font-semibold uppercase tracking-wider text-text-secondary",
2923
2923
  rowGridCols
2924
2924
  ),
2925
2925
  children: [
@@ -3207,7 +3207,7 @@ function FilterDropdown({
3207
3207
  role: "group",
3208
3208
  "aria-label": filter.label,
3209
3209
  style: { top: pos.top, left: pos.left },
3210
- className: "fixed z-[80] min-w-55 rounded-card border border-border-default bg-surface p-2 shadow-overlay",
3210
+ className: "fixed z-dropdown min-w-55 rounded-card border border-border-default bg-surface p-2 shadow-overlay",
3211
3211
  children: [
3212
3212
  searchable && /* @__PURE__ */ jsxs25("div", { className: "mb-1.5 flex h-8 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5", children: [
3213
3213
  /* @__PURE__ */ jsx27(Search4, { size: 14, className: "shrink-0 text-text-secondary", "aria-hidden": "true" }),