@mediaradar/design-components 0.44.0 → 0.45.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
@@ -66,7 +66,7 @@ declare function InfoTip({ text, size, label, trigger }: InfoTipProps): react.JS
66
66
  * the copy props make it reusable for any dimension that's also search-first
67
67
  * in its own filter tray, so the dimension reads the same in the quick bar as
68
68
  * it does there.
69
- * @tokens text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
69
+ * @tokens text-dense, text-micro, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
70
70
  * border-border-interactive, border-border-focus, bg-surface, bg-input,
71
71
  * shadow-overlay, text-xs, text-text-primary, text-text-secondary, text-text-tertiary,
72
72
  * text-text-link, bg-brand-primaryAction, text-brand-onprimary,
@@ -461,7 +461,7 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
461
461
  * a chevron that opens a two-pane picker: preset shortcuts on the left, a
462
462
  * dual-month calendar with range highlighting on the right, Start/End fields,
463
463
  * and Cancel/Apply. Shared by Creative Intel and the Account Review.
464
- * @tokens text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
464
+ * @tokens text-micro, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
465
465
  * bg-surface, bg-input, bg-subtle, bg-ai-tint, bg-brand-primaryAction, text-brand-onprimary,
466
466
  * shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary,
467
467
  * hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus, text-dense
@@ -800,7 +800,7 @@ declare function SectionRail({ title, titleSerif, subtitle, viewAllLabel, viewAl
800
800
  * formats, for stable report-ready numbers). One boolean, one control,
801
801
  * shared across every dashboard that has this data-finality concept
802
802
  * (Publisher Intel, Opportunities, Sports).
803
- * @tokens text-control-caption, rounded-control, border-border-strong, bg-input, hover:bg-subtle,
803
+ * @tokens text-dense, text-control-caption, rounded-control, border-border-strong, bg-input, hover:bg-subtle,
804
804
  * hover:text-text-primary, focus-visible:outline-border-focus, rounded-card,
805
805
  * border-border-default, bg-surface, shadow-overlay, text-text-primary,
806
806
  * text-text-secondary, text-text-tertiary, text-brand-primaryAction
@@ -1032,8 +1032,8 @@ interface NoResultsAction {
1032
1032
  /** Rendered as the filled button; every other action renders as the quiet link/button. */
1033
1033
  primary?: boolean;
1034
1034
  }
1035
- declare const PRIMARY_ACTION_CLASS = "rounded-control bg-brand-primaryAction px-3.5 py-2 text-[13px] font-semibold text-brand-onprimary transition-colors hover:opacity-90";
1036
- declare const QUIET_ACTION_CLASS = "rounded-control text-[13px] font-medium text-text-link transition-colors hover:underline focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus";
1035
+ declare const PRIMARY_ACTION_CLASS = "rounded-control bg-brand-primaryAction px-3.5 py-2 text-dense font-semibold text-brand-onprimary transition-colors hover:opacity-90";
1036
+ declare const QUIET_ACTION_CLASS = "rounded-control text-dense font-medium text-text-link transition-colors hover:underline focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus";
1037
1037
  /**
1038
1038
  * @pattern NoResultsEmptyState
1039
1039
  * @status stable
@@ -1046,7 +1046,7 @@ declare const QUIET_ACTION_CLASS = "rounded-control text-[13px] font-medium text
1046
1046
  * stack -- no border, background, or fixed height -- so it can sit directly
1047
1047
  * in a colSpan table cell (or a card, or a chart body) that already owns
1048
1048
  * that chrome, without imposing its own.
1049
- * @tokens bg-subtle, text-text-tertiary, text-base, text-text-primary,
1049
+ * @tokens text-dense, bg-subtle, text-text-tertiary, text-base, text-text-primary,
1050
1050
  * text-text-secondary, rounded-control, bg-brand-primaryAction, text-brand-onprimary, text-text-link,
1051
1051
  * focus-visible:outline-border-focus
1052
1052
  * @dependencies lucide-react
@@ -1444,7 +1444,7 @@ declare function Tooltip({ label, children, anchorRef, className, whenTruncated,
1444
1444
  * `NoResultsEmptyState` (a whole-board "no results match your filters"
1445
1445
  * state) -- this one is scoped to a single search box returning nothing,
1446
1446
  * inline within a picker's option list.
1447
- * @tokens text-text-primary, text-text-tertiary
1447
+ * @tokens text-dense, text-text-primary, text-text-tertiary
1448
1448
  * @usage
1449
1449
  * ```tsx
1450
1450
  * <AdvertiserNoResults query={query} />
@@ -1507,7 +1507,7 @@ declare function SelectAllVisible({ count, allSelected, onToggle, testIdPrefix }
1507
1507
  * row content (plain rows, opacity-dimmed "parked" rows, per-tray custom
1508
1508
  * columns), so a fixed row shape would have forced a compromise none of them
1509
1509
  * need. Self-hides at `count === 0` so a caller can render it unconditionally.
1510
- * @tokens rounded-control, text-text-tertiary, hover:text-text-primary
1510
+ * @tokens text-micro, rounded-control, text-text-tertiary, hover:text-text-primary
1511
1511
  * @dependencies lucide-react
1512
1512
  * @a11y The disclosure header is a button reporting aria-expanded, and the
1513
1513
  * chevron is aria-hidden. It is a disclosure, not a selection control --
@@ -1740,7 +1740,7 @@ interface PublisherBreakdownListProps {
1740
1740
  * deliberately NOT merged into this component -- see the escape-hatch note
1741
1741
  * below. `renderLogo` lets a caller plug in real per-row logos; without it,
1742
1742
  * rows show a plain initials monogram.
1743
- * @tokens text-text-primary, text-text-tertiary, text-text-secondary,
1743
+ * @tokens text-micro, text-text-primary, text-text-tertiary, text-text-secondary,
1744
1744
  * text-text-link, text-text-warning, text-text-success, text-text-danger,
1745
1745
  * border-border-default, bg-surface, bg-subtle, rounded-control, rounded-full,
1746
1746
  * shadow-overlay, text-badge
@@ -1927,7 +1927,7 @@ interface NameListModalProps {
1927
1927
  * checkboxes under it. Shared by the Account Lists table and the list detail
1928
1928
  * page so create/rename look identical; `fieldLabel`/`placeholder` relabel it
1929
1929
  * for dialogs that name something other than a list.
1930
- * @tokens border-border-strong, bg-scrim, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, rounded-control, bg-input, focus-visible:outline-border-focus, text-dense, z-modal
1930
+ * @tokens text-base, border-border-strong, bg-scrim, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, rounded-control, bg-input, focus-visible:outline-border-focus, text-dense, z-modal
1931
1931
  * @behavior Escape closes the dialog via `onCancel`, same as clicking the
1932
1932
  * scrim backdrop. Submit is disabled until the name is non-empty (trimmed).
1933
1933
  * When `options` are given they render as CheckBox rows below the field, and
@@ -2011,7 +2011,7 @@ interface FilterChipBarProps<T extends ChipLike> {
2011
2011
  * (tooltip + outline). "Clear all" trails the chips. Generic over the
2012
2012
  * page's own chip type — only the shared key/label/groupLabel fields are
2013
2013
  * used.
2014
- * @tokens rounded-full, bg-subtle, text-text-secondary, text-text-link, text-text-tertiary, bg-text-primary, border-border-default, group-hover:bg-border-default, group-hover:ring-border-interactive, group-hover:text-text-primary, group-hover:text-text-secondary, hover:text-text-primary, shadow-raised, text-surface
2014
+ * @tokens text-micro, rounded-full, bg-subtle, text-text-secondary, text-text-link, text-text-tertiary, bg-text-primary, border-border-default, group-hover:bg-border-default, group-hover:ring-border-interactive, group-hover:text-text-primary, group-hover:text-text-secondary, hover:text-text-primary, shadow-raised, text-surface
2015
2015
  * @dependencies lucide-react
2016
2016
  * @behavior A parked chip (key in `parkedKeys`) renders with no fill and a
2017
2017
  * dashed edge instead of the solid applied style, and its hover tooltip
@@ -2138,7 +2138,7 @@ interface PagerProps {
2138
2138
  * the left if the reader needs it.
2139
2139
  * @avoid under a full-page table -- use TablePagination, which adds the
2140
2140
  * first/last steps, the range readout and the rows-per-page select.
2141
- * @tokens rounded-control, text-text-secondary, bg-subtle, text-text-primary, hover:bg-subtle, hover:text-text-primary, text-text-tertiary
2141
+ * @tokens text-dense, rounded-control, text-text-secondary, bg-subtle, text-text-primary, hover:bg-subtle, hover:text-text-primary, text-text-tertiary
2142
2142
  * @dependencies lucide-react
2143
2143
  * @a11y Renders its own <nav aria-label="Pagination"> landmark, like
2144
2144
  * TablePagination, so don't wrap it in another <nav>. Pass `label` to name it
@@ -2429,7 +2429,7 @@ interface MultiSelectGroup {
2429
2429
  * button shape (two-line caption + value with a chevron) and opens a
2430
2430
  * searchable checkbox popover. Used for the page-level Media type /
2431
2431
  * Advertiser filters that share state with the filter tray.
2432
- * @tokens border-border-strong, rounded-control, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary, text-text-link, border-border-interactive, bg-brand-primaryAction, bg-input, hover:bg-subtle, hover:text-text-primary, placeholder:text-text-tertiary, text-brand-onprimary, focus-within:outline-border-focus
2432
+ * @tokens text-dense, border-border-strong, rounded-control, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary, text-text-link, border-border-interactive, bg-brand-primaryAction, bg-input, hover:bg-subtle, hover:text-text-primary, placeholder:text-text-tertiary, text-brand-onprimary, focus-within:outline-border-focus
2433
2433
  * @dependencies lucide-react
2434
2434
  * @behavior `variant` picks the trigger's chip stroke: `box` (default, the
2435
2435
  * boxed two-line chip on the default border) or `inline` (same fill,
package/dist/index.d.ts CHANGED
@@ -66,7 +66,7 @@ declare function InfoTip({ text, size, label, trigger }: InfoTipProps): react.JS
66
66
  * the copy props make it reusable for any dimension that's also search-first
67
67
  * in its own filter tray, so the dimension reads the same in the quick bar as
68
68
  * it does there.
69
- * @tokens text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
69
+ * @tokens text-dense, text-micro, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
70
70
  * border-border-interactive, border-border-focus, bg-surface, bg-input,
71
71
  * shadow-overlay, text-xs, text-text-primary, text-text-secondary, text-text-tertiary,
72
72
  * text-text-link, bg-brand-primaryAction, text-brand-onprimary,
@@ -461,7 +461,7 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
461
461
  * a chevron that opens a two-pane picker: preset shortcuts on the left, a
462
462
  * dual-month calendar with range highlighting on the right, Start/End fields,
463
463
  * and Cancel/Apply. Shared by Creative Intel and the Account Review.
464
- * @tokens text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
464
+ * @tokens text-micro, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
465
465
  * bg-surface, bg-input, bg-subtle, bg-ai-tint, bg-brand-primaryAction, text-brand-onprimary,
466
466
  * shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary,
467
467
  * hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus, text-dense
@@ -800,7 +800,7 @@ declare function SectionRail({ title, titleSerif, subtitle, viewAllLabel, viewAl
800
800
  * formats, for stable report-ready numbers). One boolean, one control,
801
801
  * shared across every dashboard that has this data-finality concept
802
802
  * (Publisher Intel, Opportunities, Sports).
803
- * @tokens text-control-caption, rounded-control, border-border-strong, bg-input, hover:bg-subtle,
803
+ * @tokens text-dense, text-control-caption, rounded-control, border-border-strong, bg-input, hover:bg-subtle,
804
804
  * hover:text-text-primary, focus-visible:outline-border-focus, rounded-card,
805
805
  * border-border-default, bg-surface, shadow-overlay, text-text-primary,
806
806
  * text-text-secondary, text-text-tertiary, text-brand-primaryAction
@@ -1032,8 +1032,8 @@ interface NoResultsAction {
1032
1032
  /** Rendered as the filled button; every other action renders as the quiet link/button. */
1033
1033
  primary?: boolean;
1034
1034
  }
1035
- declare const PRIMARY_ACTION_CLASS = "rounded-control bg-brand-primaryAction px-3.5 py-2 text-[13px] font-semibold text-brand-onprimary transition-colors hover:opacity-90";
1036
- declare const QUIET_ACTION_CLASS = "rounded-control text-[13px] font-medium text-text-link transition-colors hover:underline focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus";
1035
+ declare const PRIMARY_ACTION_CLASS = "rounded-control bg-brand-primaryAction px-3.5 py-2 text-dense font-semibold text-brand-onprimary transition-colors hover:opacity-90";
1036
+ declare const QUIET_ACTION_CLASS = "rounded-control text-dense font-medium text-text-link transition-colors hover:underline focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus";
1037
1037
  /**
1038
1038
  * @pattern NoResultsEmptyState
1039
1039
  * @status stable
@@ -1046,7 +1046,7 @@ declare const QUIET_ACTION_CLASS = "rounded-control text-[13px] font-medium text
1046
1046
  * stack -- no border, background, or fixed height -- so it can sit directly
1047
1047
  * in a colSpan table cell (or a card, or a chart body) that already owns
1048
1048
  * that chrome, without imposing its own.
1049
- * @tokens bg-subtle, text-text-tertiary, text-base, text-text-primary,
1049
+ * @tokens text-dense, bg-subtle, text-text-tertiary, text-base, text-text-primary,
1050
1050
  * text-text-secondary, rounded-control, bg-brand-primaryAction, text-brand-onprimary, text-text-link,
1051
1051
  * focus-visible:outline-border-focus
1052
1052
  * @dependencies lucide-react
@@ -1444,7 +1444,7 @@ declare function Tooltip({ label, children, anchorRef, className, whenTruncated,
1444
1444
  * `NoResultsEmptyState` (a whole-board "no results match your filters"
1445
1445
  * state) -- this one is scoped to a single search box returning nothing,
1446
1446
  * inline within a picker's option list.
1447
- * @tokens text-text-primary, text-text-tertiary
1447
+ * @tokens text-dense, text-text-primary, text-text-tertiary
1448
1448
  * @usage
1449
1449
  * ```tsx
1450
1450
  * <AdvertiserNoResults query={query} />
@@ -1507,7 +1507,7 @@ declare function SelectAllVisible({ count, allSelected, onToggle, testIdPrefix }
1507
1507
  * row content (plain rows, opacity-dimmed "parked" rows, per-tray custom
1508
1508
  * columns), so a fixed row shape would have forced a compromise none of them
1509
1509
  * need. Self-hides at `count === 0` so a caller can render it unconditionally.
1510
- * @tokens rounded-control, text-text-tertiary, hover:text-text-primary
1510
+ * @tokens text-micro, rounded-control, text-text-tertiary, hover:text-text-primary
1511
1511
  * @dependencies lucide-react
1512
1512
  * @a11y The disclosure header is a button reporting aria-expanded, and the
1513
1513
  * chevron is aria-hidden. It is a disclosure, not a selection control --
@@ -1740,7 +1740,7 @@ interface PublisherBreakdownListProps {
1740
1740
  * deliberately NOT merged into this component -- see the escape-hatch note
1741
1741
  * below. `renderLogo` lets a caller plug in real per-row logos; without it,
1742
1742
  * rows show a plain initials monogram.
1743
- * @tokens text-text-primary, text-text-tertiary, text-text-secondary,
1743
+ * @tokens text-micro, text-text-primary, text-text-tertiary, text-text-secondary,
1744
1744
  * text-text-link, text-text-warning, text-text-success, text-text-danger,
1745
1745
  * border-border-default, bg-surface, bg-subtle, rounded-control, rounded-full,
1746
1746
  * shadow-overlay, text-badge
@@ -1927,7 +1927,7 @@ interface NameListModalProps {
1927
1927
  * checkboxes under it. Shared by the Account Lists table and the list detail
1928
1928
  * page so create/rename look identical; `fieldLabel`/`placeholder` relabel it
1929
1929
  * for dialogs that name something other than a list.
1930
- * @tokens border-border-strong, bg-scrim, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, rounded-control, bg-input, focus-visible:outline-border-focus, text-dense, z-modal
1930
+ * @tokens text-base, border-border-strong, bg-scrim, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, rounded-control, bg-input, focus-visible:outline-border-focus, text-dense, z-modal
1931
1931
  * @behavior Escape closes the dialog via `onCancel`, same as clicking the
1932
1932
  * scrim backdrop. Submit is disabled until the name is non-empty (trimmed).
1933
1933
  * When `options` are given they render as CheckBox rows below the field, and
@@ -2011,7 +2011,7 @@ interface FilterChipBarProps<T extends ChipLike> {
2011
2011
  * (tooltip + outline). "Clear all" trails the chips. Generic over the
2012
2012
  * page's own chip type — only the shared key/label/groupLabel fields are
2013
2013
  * used.
2014
- * @tokens rounded-full, bg-subtle, text-text-secondary, text-text-link, text-text-tertiary, bg-text-primary, border-border-default, group-hover:bg-border-default, group-hover:ring-border-interactive, group-hover:text-text-primary, group-hover:text-text-secondary, hover:text-text-primary, shadow-raised, text-surface
2014
+ * @tokens text-micro, rounded-full, bg-subtle, text-text-secondary, text-text-link, text-text-tertiary, bg-text-primary, border-border-default, group-hover:bg-border-default, group-hover:ring-border-interactive, group-hover:text-text-primary, group-hover:text-text-secondary, hover:text-text-primary, shadow-raised, text-surface
2015
2015
  * @dependencies lucide-react
2016
2016
  * @behavior A parked chip (key in `parkedKeys`) renders with no fill and a
2017
2017
  * dashed edge instead of the solid applied style, and its hover tooltip
@@ -2138,7 +2138,7 @@ interface PagerProps {
2138
2138
  * the left if the reader needs it.
2139
2139
  * @avoid under a full-page table -- use TablePagination, which adds the
2140
2140
  * first/last steps, the range readout and the rows-per-page select.
2141
- * @tokens rounded-control, text-text-secondary, bg-subtle, text-text-primary, hover:bg-subtle, hover:text-text-primary, text-text-tertiary
2141
+ * @tokens text-dense, rounded-control, text-text-secondary, bg-subtle, text-text-primary, hover:bg-subtle, hover:text-text-primary, text-text-tertiary
2142
2142
  * @dependencies lucide-react
2143
2143
  * @a11y Renders its own <nav aria-label="Pagination"> landmark, like
2144
2144
  * TablePagination, so don't wrap it in another <nav>. Pass `label` to name it
@@ -2429,7 +2429,7 @@ interface MultiSelectGroup {
2429
2429
  * button shape (two-line caption + value with a chevron) and opens a
2430
2430
  * searchable checkbox popover. Used for the page-level Media type /
2431
2431
  * Advertiser filters that share state with the filter tray.
2432
- * @tokens border-border-strong, rounded-control, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary, text-text-link, border-border-interactive, bg-brand-primaryAction, bg-input, hover:bg-subtle, hover:text-text-primary, placeholder:text-text-tertiary, text-brand-onprimary, focus-within:outline-border-focus
2432
+ * @tokens text-dense, border-border-strong, rounded-control, rounded-card, border-border-default, bg-surface, shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary, text-text-link, border-border-interactive, bg-brand-primaryAction, bg-input, hover:bg-subtle, hover:text-text-primary, placeholder:text-text-tertiary, text-brand-onprimary, focus-within:outline-border-focus
2433
2433
  * @dependencies lucide-react
2434
2434
  * @behavior `variant` picks the trigger's chip stroke: `box` (default, the
2435
2435
  * boxed two-line chip on the default border) or `inline` (same fill,