@mediaradar/design-components 0.33.0 → 0.35.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
@@ -301,13 +301,14 @@ declare function Delta({ value, suffix, arrow, period, className }: DeltaProps):
301
301
 
302
302
  /**
303
303
  * @pattern CheckBox
304
+ * @audited 2026-11-12
304
305
  * @description Tri-state checkbox rendered as a `<button>` (not a native
305
306
  * `<input type="checkbox">`), so it can carry an indeterminate "some but not
306
307
  * all" state without the native element's limited styling hooks. Designed to
307
308
  * be dropped into a row that already has its own click-to-toggle handler
308
309
  * (a common list/table pattern) without double-firing. Where the row itself
309
310
  * is the control, use `CheckBoxBox` instead.
310
- * @tokens bg-brand-primaryAction, text-brand-onprimary, border-border-interactive, bg-input,
311
+ * @tokens rounded-small, bg-brand-primaryAction, text-brand-onprimary, border-border-interactive, bg-input,
311
312
  * hover:border-brand-primaryAction, focus-visible:outline-border-focus
312
313
  * @dependencies lucide-react
313
314
  * @behavior `aria-checked` is `"mixed"` when indeterminate, otherwise the
@@ -389,7 +390,7 @@ declare function CheckBox({ checked, indeterminate, onChange, ariaLabel, disable
389
390
  * the same control is worse for keyboard users, not better. The owning
390
391
  * element supplies `role="checkbox"` and `aria-checked`; this is
391
392
  * `aria-hidden` so the state isn't announced twice.
392
- * @tokens bg-brand-primaryAction, text-brand-onprimary, border-border-interactive, bg-input
393
+ * @tokens rounded-small, bg-brand-primaryAction, text-brand-onprimary, border-border-interactive, bg-input
393
394
  * @dependencies lucide-react
394
395
  * @behavior Renders through the same `boxClass` as `CheckBox`, so geometry
395
396
  * and fill can't drift. Takes neither the focus ring nor the hover border,
@@ -433,13 +434,20 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
433
434
  * @tokens text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
434
435
  * bg-surface, bg-input, bg-subtle, bg-ai-tint, bg-brand-primaryAction, text-brand-onprimary,
435
436
  * shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary,
436
- * hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus
437
+ * hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus, text-dense
437
438
  * @dependencies lucide-react
438
439
  * @behavior Escape and outside-click both close the popup. Opening always
439
440
  * resets the draft (shortcut/start/end/visible month) to the last committed
440
441
  * values, so a previous unsaved edit never lingers into the next open. Only
441
442
  * the Apply button commits -- Cancel, Escape, and outside-click all discard
442
- * the draft silently.
443
+ * the draft silently. "Last 30 days" is a hidden preset: a `defaultValue` or
444
+ * `value` naming it resolves to its dates, but the rail never offers it.
445
+ * `excludePresets` drops presets from the rail. `emptyLabel` starts the chip
446
+ * with no range chosen (Apply stays disabled until a day is picked).
447
+ * `compare` adds a "Compare to" radio group under the calendar, staged with
448
+ * the dates until Apply; the chip then reads "Last 7 days · vs prior period".
449
+ * `today` sets the day presets end on, for data that stops before the real
450
+ * today.
443
451
  * `granularity="month"` rounds every range out to whole months (presets,
444
452
  * clicked days and Apply alike), shows months on the trigger, and adds a
445
453
  * "Data is monthly" note beside Cancel/Apply.
@@ -454,6 +462,17 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
454
462
  * <DateRangeFilter caption="Dates" showDates shortDates placement="right" />
455
463
  * <DateRangeFilter presetSet="creativeIntel" defaultValue="Last 7 days" onChange={setRange} />
456
464
  * <DateRangeFilter presetSet="creativeIntel" value={preset} range={[start, end]} onChange={setPreset} onRangeChange={(s, e) => setRange({ start: s, end: e })} />
465
+ * <DateRangeFilter presetSet="creativeIntel" excludePresets={["Rolling 3 months", "Rolling 6 months"]} emptyLabel="Any time" onRangeChange={setRange} />
466
+ * <DateRangeFilter
467
+ * presetSet="creativeIntel"
468
+ * defaultValue={filters.range}
469
+ * initialRange={customDates}
470
+ * today={dataDay}
471
+ * showDates
472
+ * shortDates
473
+ * compare={{ value: filters.compare, options: [{ id: "prior", label: "Prior period" }, { id: "year", label: "Same period last year" }] }}
474
+ * onApply={(label, start, end, compare) => update({ range: label, compare })}
475
+ * />
457
476
  * ```
458
477
  */
459
478
  interface DateRangeFilterProps {
@@ -496,11 +515,39 @@ interface DateRangeFilterProps {
496
515
  icon?: React.ReactNode;
497
516
  /** 'creativeIntel' swaps in the day-level shortcut list (Today/Yesterday/Last N days/All available history) used by that dashboard. */
498
517
  presetSet?: "default" | "creativeIntel";
518
+ /** Preset labels to leave out of the rail, e.g. the rolling-month ones. */
519
+ excludePresets?: readonly string[];
520
+ /**
521
+ * Start with no range chosen and show this label ("Any time") until a range
522
+ * is applied. Uncontrolled only. Remount (change `key`) to reset.
523
+ */
524
+ emptyLabel?: string;
525
+ /** The day presets end on: the data's last day. Defaults to the real today. */
526
+ today?: Date;
527
+ /** The dates behind a `defaultValue` that isn't a preset (a custom span). Uncontrolled only. */
528
+ initialRange?: [Date, Date];
529
+ /**
530
+ * What changes are measured against, picked under the calendar and staged
531
+ * with the dates until Apply. The chip reads "· vs <label>" for the applied
532
+ * pick; a new `compare.value` from the parent replaces it.
533
+ */
534
+ compare?: {
535
+ value?: string;
536
+ options: {
537
+ id: string;
538
+ label: string;
539
+ }[];
540
+ };
541
+ /**
542
+ * Fired on Apply only: the preset's name (or a custom span as "Oct 1, 2025 – Oct 17, 2026"),
543
+ * its dates, and the compare-to pick.
544
+ */
545
+ onApply?: (label: string, start: Date, end: Date, compare?: string) => void;
499
546
  /**
500
547
  * Prefix for `data-testid` attributes on the trigger (`${testIdPrefix}-trigger`),
501
548
  * the popover (`-popover`), each preset (`-option-<slugified-label>`, e.g.
502
- * `-option-last-7-days`), and Cancel (`-cancel`) / Apply (`-apply`). Omit for
503
- * no test-id wiring.
549
+ * `-option-last-7-days`), each `compare` option (`-compare-<slugified-id>`),
550
+ * and Cancel (`-cancel`) / Apply (`-apply`). Omit for no test-id wiring.
504
551
  */
505
552
  testIdPrefix?: string;
506
553
  /**
@@ -510,7 +557,7 @@ interface DateRangeFilterProps {
510
557
  */
511
558
  granularity?: "day" | "month";
512
559
  }
513
- declare function DateRangeFilter({ caption, defaultValue, value: controlledValue, range: controlledRange, align, placement, onChange, onRangeChange, showDates, shortDates, icon, presetSet, testIdPrefix, granularity, }: DateRangeFilterProps): react.JSX.Element;
560
+ declare function DateRangeFilter({ caption, defaultValue, value: controlledValue, range: controlledRange, align, placement, onChange, onRangeChange, showDates, shortDates, icon, presetSet, excludePresets, emptyLabel, today: todayProp, initialRange, compare, onApply, testIdPrefix, granularity, }: DateRangeFilterProps): react.JSX.Element;
514
561
 
515
562
  /**
516
563
  * @pattern SearchBar
@@ -598,6 +645,7 @@ declare function SearchBar({ placeholder, value, onChange, variant, size, matchV
598
645
 
599
646
  /**
600
647
  * @pattern SectionRail
648
+ * @audited 2026-11-12
601
649
  * @description Generic titled section wrapper for a row of cards — a
602
650
  * horizontal scroll rail on mobile/tablet (snap, bleeds to edges), a
603
651
  * left-aligned 4-column grid on desktop. Card width is handled here, not on
@@ -965,6 +1013,7 @@ interface SummaryGroup {
965
1013
  }
966
1014
  /**
967
1015
  * @pattern WorkspaceSelectedCard
1016
+ * @audited 2026-11-12
968
1017
  * @status stable
969
1018
  * @description Sticky recap card listing what each section's picker has
970
1019
  * added, as collapsible groups with per-item remove and "Remove all" --
@@ -981,7 +1030,7 @@ interface SummaryGroup {
981
1030
  * naming maps to this package's `shadow-raised`/`shadow-overlay` respectively
982
1031
  * (raised: a static card like this one; overlay: a floating popover/menu),
983
1032
  * not a 1:1 name swap.
984
- * @tokens rounded-card, border-border-default, bg-surface, shadow-raised,
1033
+ * @tokens text-micro, text-dense, rounded-card, border-border-default, bg-surface, shadow-raised,
985
1034
  * text-text-secondary, text-text-primary, rounded-full, bg-subtle,
986
1035
  * rounded-control, bg-canvas, hover:bg-subtle, hover:text-text-danger,
987
1036
  * text-text-link, divide-border-default
@@ -1027,6 +1076,7 @@ declare function WorkspaceSelectedCard({ groups, testIdPrefix }: WorkspaceSelect
1027
1076
 
1028
1077
  /**
1029
1078
  * @pattern BarChartPlaceholder
1079
+ * @audited 2026-11-12
1030
1080
  * @status stable
1031
1081
  * @description Neutral, dataless stand-in for a ranked-bar chart --
1032
1082
  * descending bar profile under a blank-labelled axis frame (dashed
@@ -1035,7 +1085,7 @@ declare function WorkspaceSelectedCard({ groups, testIdPrefix }: WorkspaceSelect
1035
1085
  * appears (no channel/league names, media types, dollar amounts,
1036
1086
  * percentages, or series colors), and the shape holds the card's layout
1037
1087
  * steady so nothing jumps when real data arrives.
1038
- * @tokens bg-subtle, border-border-default, rounded-xs
1088
+ * @tokens bg-subtle, border-border-default, rounded-t-small
1039
1089
  * @behavior Purely presentational -- `role="presentation"` and
1040
1090
  * `aria-hidden="true"` throughout, since none of the boxes carry real
1041
1091
  * content for assistive tech to announce. The bar count and profile are a
@@ -1057,6 +1107,7 @@ declare function BarChartPlaceholder({ height }: BarChartPlaceholderProps): reac
1057
1107
 
1058
1108
  /**
1059
1109
  * @pattern LineChartPlaceholder
1110
+ * @audited 2026-11-12
1060
1111
  * @status stable
1061
1112
  * @description Neutral, dataless stand-in for a multi-series trend chart --
1062
1113
  * four grey paths over the shared axis frame, each with a solid-then-dashed
@@ -1088,6 +1139,7 @@ declare function LineChartPlaceholder({ height }: LineChartPlaceholderProps): re
1088
1139
 
1089
1140
  /**
1090
1141
  * @pattern PieChartPlaceholder
1142
+ * @audited 2026-11-12
1091
1143
  * @status stable
1092
1144
  * @description Neutral, dataless stand-in for a pie chart -- a grey disc
1093
1145
  * seamed where slices would fall, beside a blank legend. No axis, matching
@@ -1119,6 +1171,7 @@ declare function PieChartPlaceholder({ height, legendRows }: PieChartPlaceholder
1119
1171
 
1120
1172
  /**
1121
1173
  * @pattern StackedColumnPlaceholder
1174
+ * @audited 2026-11-12
1122
1175
  * @description Neutral, dataless stand-in for a 100% stacked column -- a
1123
1176
  * single banded column beside a blank legend. `axis` follows the live card
1124
1177
  * it stands in for: a share-of-total chart plotting on a 0-100% axis passes
@@ -1906,6 +1959,7 @@ interface SortButtonProps<K extends string> {
1906
1959
  }
1907
1960
  /**
1908
1961
  * @pattern SortButton
1962
+ * @audited 2026-11-12
1909
1963
  * @description Design-system rule: every sortable table column header uses
1910
1964
  * this exact icon/color treatment. Sortable-but-inactive columns show a
1911
1965
  * neutral ArrowUpDown in text-tertiary at half opacity, coming up to full on
@@ -1979,11 +2033,12 @@ declare function Pager({ page, totalPages, onPage, disabled, label }: PagerProps
1979
2033
 
1980
2034
  declare const SIZES$1: {
1981
2035
  /** Matches a 15px lucide icon exactly, so a workspace name in a menu row
1982
- * left-aligns with labels in icon-led rows above and below it. */
1983
- readonly xs: "h-[15px] w-[15px] rounded-[4px] text-[8px] tracking-tight";
1984
- /** 10px, not text-control-caption: that step is for dropdown captions.
1985
- * Two initials need to sit inside the 24px circle, a step below md. */
1986
- readonly sm: "h-6 w-6 text-[10px]";
2036
+ * left-aligns with labels in icon-led rows above and below it. Shows one
2037
+ * initial: two at the smallest type step (10px) don't fit in 15px. */
2038
+ readonly xs: "size-3.75 rounded-small text-badge";
2039
+ /** text-badge (10px), not text-control-caption: that step is for dropdown
2040
+ * captions. Two initials need to sit inside the 24px tile, a step below md. */
2041
+ readonly sm: "h-6 w-6 text-badge";
1987
2042
  readonly md: "h-7 w-7 text-micro";
1988
2043
  readonly lg: "h-11 w-11 text-panel-title";
1989
2044
  };
@@ -1994,11 +2049,13 @@ interface WorkspaceAvatarProps {
1994
2049
  }
1995
2050
  /**
1996
2051
  * @pattern WorkspaceAvatar
2052
+ * @audited 2026-11-12
1997
2053
  * @description The square tile that identifies a workspace in a switch
1998
2054
  * list — first 1–2 word initials of the workspace name. Pass no name for
1999
2055
  * the unscoped "All data workspace", which renders "AD" through the same
2000
2056
  * rule so the unscoped default reads as a peer of named workspaces rather
2001
- * than a special case.
2057
+ * than a special case. The xs size (15px, for menu rows) shows the first
2058
+ * initial only.
2002
2059
  * @tokens rounded-control, bg-subtle, text-text-secondary
2003
2060
  * @usage
2004
2061
  * ```tsx
@@ -2121,6 +2178,7 @@ declare function Tag({ children, className }: TagProps): react.JSX.Element;
2121
2178
 
2122
2179
  /**
2123
2180
  * @pattern TablePagination
2181
+ * @audited 2026-11-12
2124
2182
  * @description Full table-footer pagination bar: a rows-per-page select, a
2125
2183
  * first/prev/pages/next/last pager, and the resolved "1 – 25 of N results"
2126
2184
  * range. Owns no state — the host page holds `page` and `perPage` so the
@@ -2132,7 +2190,7 @@ declare function Tag({ children, className }: TagProps): react.JSX.Element;
2132
2190
  * works through, where the total and the page size matter.
2133
2191
  * @avoid in a card or a compact list -- use Pager, which is only the page
2134
2192
  * controls and fits the narrower space.
2135
- * @tokens rounded-control, text-text-primary, text-text-secondary, text-text-tertiary, bg-subtle, hover:bg-subtle, hover:text-text-primary
2193
+ * @tokens text-dense, rounded-control, text-text-primary, text-text-secondary, text-text-tertiary, bg-subtle, hover:bg-subtle, hover:text-text-primary
2136
2194
  * @behavior The current page is a quiet grey fill with a dark bold number,
2137
2195
  * keeping blue for actions. The rows-per-page control is the compact
2138
2196
  * SelectFilter (`size="sm"`), our own menu, not the browser's. First/prev disable on page 1, next/last on the last
@@ -2400,6 +2458,7 @@ interface FreshnessProps {
2400
2458
  }
2401
2459
  /**
2402
2460
  * @pattern Freshness
2461
+ * @audited 2026-11-12
2403
2462
  * @description Freshness dot — prefixed to card meta rows so a row of 4
2404
2463
  * timestamps stops reading as a wall of identical text. Color carries the
2405
2464
  * urgency signal at a glance.
package/dist/index.d.ts CHANGED
@@ -301,13 +301,14 @@ declare function Delta({ value, suffix, arrow, period, className }: DeltaProps):
301
301
 
302
302
  /**
303
303
  * @pattern CheckBox
304
+ * @audited 2026-11-12
304
305
  * @description Tri-state checkbox rendered as a `<button>` (not a native
305
306
  * `<input type="checkbox">`), so it can carry an indeterminate "some but not
306
307
  * all" state without the native element's limited styling hooks. Designed to
307
308
  * be dropped into a row that already has its own click-to-toggle handler
308
309
  * (a common list/table pattern) without double-firing. Where the row itself
309
310
  * is the control, use `CheckBoxBox` instead.
310
- * @tokens bg-brand-primaryAction, text-brand-onprimary, border-border-interactive, bg-input,
311
+ * @tokens rounded-small, bg-brand-primaryAction, text-brand-onprimary, border-border-interactive, bg-input,
311
312
  * hover:border-brand-primaryAction, focus-visible:outline-border-focus
312
313
  * @dependencies lucide-react
313
314
  * @behavior `aria-checked` is `"mixed"` when indeterminate, otherwise the
@@ -389,7 +390,7 @@ declare function CheckBox({ checked, indeterminate, onChange, ariaLabel, disable
389
390
  * the same control is worse for keyboard users, not better. The owning
390
391
  * element supplies `role="checkbox"` and `aria-checked`; this is
391
392
  * `aria-hidden` so the state isn't announced twice.
392
- * @tokens bg-brand-primaryAction, text-brand-onprimary, border-border-interactive, bg-input
393
+ * @tokens rounded-small, bg-brand-primaryAction, text-brand-onprimary, border-border-interactive, bg-input
393
394
  * @dependencies lucide-react
394
395
  * @behavior Renders through the same `boxClass` as `CheckBox`, so geometry
395
396
  * and fill can't drift. Takes neither the focus ring nor the hover border,
@@ -433,13 +434,20 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
433
434
  * @tokens text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
434
435
  * bg-surface, bg-input, bg-subtle, bg-ai-tint, bg-brand-primaryAction, text-brand-onprimary,
435
436
  * shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary,
436
- * hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus
437
+ * hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus, text-dense
437
438
  * @dependencies lucide-react
438
439
  * @behavior Escape and outside-click both close the popup. Opening always
439
440
  * resets the draft (shortcut/start/end/visible month) to the last committed
440
441
  * values, so a previous unsaved edit never lingers into the next open. Only
441
442
  * the Apply button commits -- Cancel, Escape, and outside-click all discard
442
- * the draft silently.
443
+ * the draft silently. "Last 30 days" is a hidden preset: a `defaultValue` or
444
+ * `value` naming it resolves to its dates, but the rail never offers it.
445
+ * `excludePresets` drops presets from the rail. `emptyLabel` starts the chip
446
+ * with no range chosen (Apply stays disabled until a day is picked).
447
+ * `compare` adds a "Compare to" radio group under the calendar, staged with
448
+ * the dates until Apply; the chip then reads "Last 7 days · vs prior period".
449
+ * `today` sets the day presets end on, for data that stops before the real
450
+ * today.
443
451
  * `granularity="month"` rounds every range out to whole months (presets,
444
452
  * clicked days and Apply alike), shows months on the trigger, and adds a
445
453
  * "Data is monthly" note beside Cancel/Apply.
@@ -454,6 +462,17 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
454
462
  * <DateRangeFilter caption="Dates" showDates shortDates placement="right" />
455
463
  * <DateRangeFilter presetSet="creativeIntel" defaultValue="Last 7 days" onChange={setRange} />
456
464
  * <DateRangeFilter presetSet="creativeIntel" value={preset} range={[start, end]} onChange={setPreset} onRangeChange={(s, e) => setRange({ start: s, end: e })} />
465
+ * <DateRangeFilter presetSet="creativeIntel" excludePresets={["Rolling 3 months", "Rolling 6 months"]} emptyLabel="Any time" onRangeChange={setRange} />
466
+ * <DateRangeFilter
467
+ * presetSet="creativeIntel"
468
+ * defaultValue={filters.range}
469
+ * initialRange={customDates}
470
+ * today={dataDay}
471
+ * showDates
472
+ * shortDates
473
+ * compare={{ value: filters.compare, options: [{ id: "prior", label: "Prior period" }, { id: "year", label: "Same period last year" }] }}
474
+ * onApply={(label, start, end, compare) => update({ range: label, compare })}
475
+ * />
457
476
  * ```
458
477
  */
459
478
  interface DateRangeFilterProps {
@@ -496,11 +515,39 @@ interface DateRangeFilterProps {
496
515
  icon?: React.ReactNode;
497
516
  /** 'creativeIntel' swaps in the day-level shortcut list (Today/Yesterday/Last N days/All available history) used by that dashboard. */
498
517
  presetSet?: "default" | "creativeIntel";
518
+ /** Preset labels to leave out of the rail, e.g. the rolling-month ones. */
519
+ excludePresets?: readonly string[];
520
+ /**
521
+ * Start with no range chosen and show this label ("Any time") until a range
522
+ * is applied. Uncontrolled only. Remount (change `key`) to reset.
523
+ */
524
+ emptyLabel?: string;
525
+ /** The day presets end on: the data's last day. Defaults to the real today. */
526
+ today?: Date;
527
+ /** The dates behind a `defaultValue` that isn't a preset (a custom span). Uncontrolled only. */
528
+ initialRange?: [Date, Date];
529
+ /**
530
+ * What changes are measured against, picked under the calendar and staged
531
+ * with the dates until Apply. The chip reads "· vs <label>" for the applied
532
+ * pick; a new `compare.value` from the parent replaces it.
533
+ */
534
+ compare?: {
535
+ value?: string;
536
+ options: {
537
+ id: string;
538
+ label: string;
539
+ }[];
540
+ };
541
+ /**
542
+ * Fired on Apply only: the preset's name (or a custom span as "Oct 1, 2025 – Oct 17, 2026"),
543
+ * its dates, and the compare-to pick.
544
+ */
545
+ onApply?: (label: string, start: Date, end: Date, compare?: string) => void;
499
546
  /**
500
547
  * Prefix for `data-testid` attributes on the trigger (`${testIdPrefix}-trigger`),
501
548
  * the popover (`-popover`), each preset (`-option-<slugified-label>`, e.g.
502
- * `-option-last-7-days`), and Cancel (`-cancel`) / Apply (`-apply`). Omit for
503
- * no test-id wiring.
549
+ * `-option-last-7-days`), each `compare` option (`-compare-<slugified-id>`),
550
+ * and Cancel (`-cancel`) / Apply (`-apply`). Omit for no test-id wiring.
504
551
  */
505
552
  testIdPrefix?: string;
506
553
  /**
@@ -510,7 +557,7 @@ interface DateRangeFilterProps {
510
557
  */
511
558
  granularity?: "day" | "month";
512
559
  }
513
- declare function DateRangeFilter({ caption, defaultValue, value: controlledValue, range: controlledRange, align, placement, onChange, onRangeChange, showDates, shortDates, icon, presetSet, testIdPrefix, granularity, }: DateRangeFilterProps): react.JSX.Element;
560
+ declare function DateRangeFilter({ caption, defaultValue, value: controlledValue, range: controlledRange, align, placement, onChange, onRangeChange, showDates, shortDates, icon, presetSet, excludePresets, emptyLabel, today: todayProp, initialRange, compare, onApply, testIdPrefix, granularity, }: DateRangeFilterProps): react.JSX.Element;
514
561
 
515
562
  /**
516
563
  * @pattern SearchBar
@@ -598,6 +645,7 @@ declare function SearchBar({ placeholder, value, onChange, variant, size, matchV
598
645
 
599
646
  /**
600
647
  * @pattern SectionRail
648
+ * @audited 2026-11-12
601
649
  * @description Generic titled section wrapper for a row of cards — a
602
650
  * horizontal scroll rail on mobile/tablet (snap, bleeds to edges), a
603
651
  * left-aligned 4-column grid on desktop. Card width is handled here, not on
@@ -965,6 +1013,7 @@ interface SummaryGroup {
965
1013
  }
966
1014
  /**
967
1015
  * @pattern WorkspaceSelectedCard
1016
+ * @audited 2026-11-12
968
1017
  * @status stable
969
1018
  * @description Sticky recap card listing what each section's picker has
970
1019
  * added, as collapsible groups with per-item remove and "Remove all" --
@@ -981,7 +1030,7 @@ interface SummaryGroup {
981
1030
  * naming maps to this package's `shadow-raised`/`shadow-overlay` respectively
982
1031
  * (raised: a static card like this one; overlay: a floating popover/menu),
983
1032
  * not a 1:1 name swap.
984
- * @tokens rounded-card, border-border-default, bg-surface, shadow-raised,
1033
+ * @tokens text-micro, text-dense, rounded-card, border-border-default, bg-surface, shadow-raised,
985
1034
  * text-text-secondary, text-text-primary, rounded-full, bg-subtle,
986
1035
  * rounded-control, bg-canvas, hover:bg-subtle, hover:text-text-danger,
987
1036
  * text-text-link, divide-border-default
@@ -1027,6 +1076,7 @@ declare function WorkspaceSelectedCard({ groups, testIdPrefix }: WorkspaceSelect
1027
1076
 
1028
1077
  /**
1029
1078
  * @pattern BarChartPlaceholder
1079
+ * @audited 2026-11-12
1030
1080
  * @status stable
1031
1081
  * @description Neutral, dataless stand-in for a ranked-bar chart --
1032
1082
  * descending bar profile under a blank-labelled axis frame (dashed
@@ -1035,7 +1085,7 @@ declare function WorkspaceSelectedCard({ groups, testIdPrefix }: WorkspaceSelect
1035
1085
  * appears (no channel/league names, media types, dollar amounts,
1036
1086
  * percentages, or series colors), and the shape holds the card's layout
1037
1087
  * steady so nothing jumps when real data arrives.
1038
- * @tokens bg-subtle, border-border-default, rounded-xs
1088
+ * @tokens bg-subtle, border-border-default, rounded-t-small
1039
1089
  * @behavior Purely presentational -- `role="presentation"` and
1040
1090
  * `aria-hidden="true"` throughout, since none of the boxes carry real
1041
1091
  * content for assistive tech to announce. The bar count and profile are a
@@ -1057,6 +1107,7 @@ declare function BarChartPlaceholder({ height }: BarChartPlaceholderProps): reac
1057
1107
 
1058
1108
  /**
1059
1109
  * @pattern LineChartPlaceholder
1110
+ * @audited 2026-11-12
1060
1111
  * @status stable
1061
1112
  * @description Neutral, dataless stand-in for a multi-series trend chart --
1062
1113
  * four grey paths over the shared axis frame, each with a solid-then-dashed
@@ -1088,6 +1139,7 @@ declare function LineChartPlaceholder({ height }: LineChartPlaceholderProps): re
1088
1139
 
1089
1140
  /**
1090
1141
  * @pattern PieChartPlaceholder
1142
+ * @audited 2026-11-12
1091
1143
  * @status stable
1092
1144
  * @description Neutral, dataless stand-in for a pie chart -- a grey disc
1093
1145
  * seamed where slices would fall, beside a blank legend. No axis, matching
@@ -1119,6 +1171,7 @@ declare function PieChartPlaceholder({ height, legendRows }: PieChartPlaceholder
1119
1171
 
1120
1172
  /**
1121
1173
  * @pattern StackedColumnPlaceholder
1174
+ * @audited 2026-11-12
1122
1175
  * @description Neutral, dataless stand-in for a 100% stacked column -- a
1123
1176
  * single banded column beside a blank legend. `axis` follows the live card
1124
1177
  * it stands in for: a share-of-total chart plotting on a 0-100% axis passes
@@ -1906,6 +1959,7 @@ interface SortButtonProps<K extends string> {
1906
1959
  }
1907
1960
  /**
1908
1961
  * @pattern SortButton
1962
+ * @audited 2026-11-12
1909
1963
  * @description Design-system rule: every sortable table column header uses
1910
1964
  * this exact icon/color treatment. Sortable-but-inactive columns show a
1911
1965
  * neutral ArrowUpDown in text-tertiary at half opacity, coming up to full on
@@ -1979,11 +2033,12 @@ declare function Pager({ page, totalPages, onPage, disabled, label }: PagerProps
1979
2033
 
1980
2034
  declare const SIZES$1: {
1981
2035
  /** Matches a 15px lucide icon exactly, so a workspace name in a menu row
1982
- * left-aligns with labels in icon-led rows above and below it. */
1983
- readonly xs: "h-[15px] w-[15px] rounded-[4px] text-[8px] tracking-tight";
1984
- /** 10px, not text-control-caption: that step is for dropdown captions.
1985
- * Two initials need to sit inside the 24px circle, a step below md. */
1986
- readonly sm: "h-6 w-6 text-[10px]";
2036
+ * left-aligns with labels in icon-led rows above and below it. Shows one
2037
+ * initial: two at the smallest type step (10px) don't fit in 15px. */
2038
+ readonly xs: "size-3.75 rounded-small text-badge";
2039
+ /** text-badge (10px), not text-control-caption: that step is for dropdown
2040
+ * captions. Two initials need to sit inside the 24px tile, a step below md. */
2041
+ readonly sm: "h-6 w-6 text-badge";
1987
2042
  readonly md: "h-7 w-7 text-micro";
1988
2043
  readonly lg: "h-11 w-11 text-panel-title";
1989
2044
  };
@@ -1994,11 +2049,13 @@ interface WorkspaceAvatarProps {
1994
2049
  }
1995
2050
  /**
1996
2051
  * @pattern WorkspaceAvatar
2052
+ * @audited 2026-11-12
1997
2053
  * @description The square tile that identifies a workspace in a switch
1998
2054
  * list — first 1–2 word initials of the workspace name. Pass no name for
1999
2055
  * the unscoped "All data workspace", which renders "AD" through the same
2000
2056
  * rule so the unscoped default reads as a peer of named workspaces rather
2001
- * than a special case.
2057
+ * than a special case. The xs size (15px, for menu rows) shows the first
2058
+ * initial only.
2002
2059
  * @tokens rounded-control, bg-subtle, text-text-secondary
2003
2060
  * @usage
2004
2061
  * ```tsx
@@ -2121,6 +2178,7 @@ declare function Tag({ children, className }: TagProps): react.JSX.Element;
2121
2178
 
2122
2179
  /**
2123
2180
  * @pattern TablePagination
2181
+ * @audited 2026-11-12
2124
2182
  * @description Full table-footer pagination bar: a rows-per-page select, a
2125
2183
  * first/prev/pages/next/last pager, and the resolved "1 – 25 of N results"
2126
2184
  * range. Owns no state — the host page holds `page` and `perPage` so the
@@ -2132,7 +2190,7 @@ declare function Tag({ children, className }: TagProps): react.JSX.Element;
2132
2190
  * works through, where the total and the page size matter.
2133
2191
  * @avoid in a card or a compact list -- use Pager, which is only the page
2134
2192
  * controls and fits the narrower space.
2135
- * @tokens rounded-control, text-text-primary, text-text-secondary, text-text-tertiary, bg-subtle, hover:bg-subtle, hover:text-text-primary
2193
+ * @tokens text-dense, rounded-control, text-text-primary, text-text-secondary, text-text-tertiary, bg-subtle, hover:bg-subtle, hover:text-text-primary
2136
2194
  * @behavior The current page is a quiet grey fill with a dark bold number,
2137
2195
  * keeping blue for actions. The rows-per-page control is the compact
2138
2196
  * SelectFilter (`size="sm"`), our own menu, not the browser's. First/prev disable on page 1, next/last on the last
@@ -2400,6 +2458,7 @@ interface FreshnessProps {
2400
2458
  }
2401
2459
  /**
2402
2460
  * @pattern Freshness
2461
+ * @audited 2026-11-12
2403
2462
  * @description Freshness dot — prefixed to card meta rows so a row of 4
2404
2463
  * timestamps stops reading as a wall of identical text. Color carries the
2405
2464
  * urgency signal at a glance.