@mediaradar/design-components 0.50.1 → 0.54.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
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, RefObject, ButtonHTMLAttributes, Ref, ReactElement, MouseEventHandler, InputHTMLAttributes, ComponentType } from 'react';
2
+ import { ReactNode, HTMLAttributes, RefObject, ButtonHTMLAttributes, Ref, ReactElement, MouseEventHandler, InputHTMLAttributes, ComponentType } from 'react';
3
3
  import * as class_variance_authority_types from 'class-variance-authority/types';
4
4
  import { VariantProps } from 'class-variance-authority';
5
5
 
@@ -24,6 +24,7 @@ interface CommonProps {
24
24
 
25
25
  /**
26
26
  * @pattern InfoTip
27
+ * @since 0.1.0
27
28
  * @status stable
28
29
  * @description Info tooltip — a small info glyph that opens a portalled,
29
30
  * viewport-clamped bubble. Mirrors the Publisher Intel header affordance so
@@ -77,6 +78,7 @@ declare function InfoTip({ text, size, label, trigger, className, testIdPrefix }
77
78
 
78
79
  /**
79
80
  * @pattern AdvertiserQuickFilter
81
+ * @since 0.4.0
80
82
  * @status stable
81
83
  * @description Search-first quick filter. Mirrors the standard filter-chip
82
84
  * shape (two-line caption + value + chevron) but by default never preloads the
@@ -89,7 +91,7 @@ declare function InfoTip({ text, size, label, trigger, className, testIdPrefix }
89
91
  * the copy props make it reusable for any dimension that's also search-first
90
92
  * in its own filter tray, so the dimension reads the same in the quick bar as
91
93
  * it does there.
92
- * @tokens text-dense, text-micro, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
94
+ * @tokens rounded-small, text-dense, text-micro, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
93
95
  * border-border-interactive, border-border-focus, bg-surface, bg-input,
94
96
  * shadow-overlay, text-xs, text-text-primary, text-text-secondary, text-text-tertiary,
95
97
  * text-text-link, bg-brand-primaryAction, text-brand-onprimary,
@@ -102,7 +104,8 @@ declare function InfoTip({ text, size, label, trigger, className, testIdPrefix }
102
104
  * other close path discards the draft, so the trigger label never previews
103
105
  * an unapplied change. The pinned "selected" section persists across
104
106
  * searches and collapses when the search is cleared. With `pageSize`, a new
105
- * query or reopening the tray goes back to the first page.
107
+ * query or reopening the tray goes back to the first page. Clear all applies
108
+ * the default at once and closes.
106
109
  * @a11y Trigger is a <button> with aria-expanded and aria-haspopup; the menu is
107
110
  * role="dialog", closed on Escape. Option rows are role="checkbox" with
108
111
  * aria-checked, so each row is itself the control -- don't wrap them in
@@ -138,8 +141,8 @@ interface AdvertiserQuickFilterProps extends CommonProps {
138
141
  * this component.
139
142
  */
140
143
  showFooter?: boolean;
141
- /** What "Clear all" resets the draft to in footer mode (the page's
142
- * default selection). */
144
+ /** What "Clear all" resets to in footer mode (the page's default
145
+ * selection). Clear all applies it at once and closes the menu. */
143
146
  clearValue?: string[];
144
147
  /** Selected ids the active workspace can't resolve. They stay in the
145
148
  * selection -- still committed back, still removable -- but they narrow
@@ -186,6 +189,7 @@ declare function AdvertiserQuickFilter({ caption, options, selected, onChange, a
186
189
 
187
190
  /**
188
191
  * @pattern AdvertiserSearchPrompt
192
+ * @since 0.4.0
189
193
  * @status stable
190
194
  * @description Pre-search empty state for a search-first picker — shown the
191
195
  * moment the tray opens, before anything has been typed. Used for option
@@ -248,6 +252,7 @@ interface BadgeProps extends CommonProps {
248
252
  }
249
253
  /**
250
254
  * @pattern Badge
255
+ * @since 0.12.0
251
256
  * @status stable
252
257
  * @description The one small label that annotates something else: a count on
253
258
  * a filter, a status, a category, an AI marker, a flag over artwork. Two
@@ -324,6 +329,7 @@ interface DeltaProps extends CommonProps {
324
329
  }
325
330
  /**
326
331
  * @pattern Delta
332
+ * @since 0.16.0
327
333
  * @status stable
328
334
  * @description A change over time -- the +6.2% / -2.1% beside a figure. Green
329
335
  * up, red down, always with an explicit sign.
@@ -364,6 +370,7 @@ declare function Delta({ value, suffix, arrow, period, className, testIdPrefix }
364
370
 
365
371
  /**
366
372
  * @pattern CheckBox
373
+ * @since 0.4.0
367
374
  * @status stable
368
375
  * @audited 2026-11-12
369
376
  * @description Tri-state checkbox rendered as a `<button>` (not a native
@@ -449,6 +456,7 @@ interface CheckBoxProps extends CommonProps {
449
456
  declare const CheckBox: react.ForwardRefExoticComponent<CheckBoxProps & react.RefAttributes<HTMLButtonElement>>;
450
457
  /**
451
458
  * @pattern CheckBoxBox
459
+ * @since 0.9.0
452
460
  * @status stable
453
461
  * @description Presentational checkbox -- draws the same box as `CheckBox`
454
462
  * and nothing else. Use it when an ancestor already carries the interaction
@@ -493,12 +501,13 @@ declare const CheckBoxBox: react.ForwardRefExoticComponent<CheckBoxBoxProps & re
493
501
 
494
502
  /**
495
503
  * @pattern DateRangeFilter
504
+ * @since 0.4.0
496
505
  * @status stable
497
506
  * @description Date-range control -- the two-line chip (caption + value) with
498
507
  * a chevron that opens a two-pane picker: preset shortcuts on the left, a
499
508
  * dual-month calendar with range highlighting on the right, Start/End fields,
500
509
  * and Cancel/Apply. Shared by Creative Intel and the Account Review.
501
- * @tokens text-micro, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
510
+ * @tokens text-micro, text-panel-title, text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
502
511
  * bg-surface, bg-input, bg-subtle, bg-ai-tint, bg-brand-primaryAction, text-brand-onprimary,
503
512
  * shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary,
504
513
  * hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus, text-dense, text-panel-title
@@ -657,6 +666,7 @@ declare function DateRangeFilter({ caption, defaultValue, value: controlledValue
657
666
 
658
667
  /**
659
668
  * @pattern SearchBar
669
+ * @since 0.4.0
660
670
  * @status stable
661
671
  * @description Filter-bar keyword search. 'default' is a plain keyword
662
672
  * input; 'filterable' adds an attached match-type dropdown sharing one
@@ -671,7 +681,7 @@ declare function DateRangeFilter({ caption, defaultValue, value: controlledValue
671
681
  * With `scope`, a dropdown in front of the field picks what it searches
672
682
  * (media owner / publisher / property; holding company / network /
673
683
  * independent), for pickers that search one of several pools.
674
- * @tokens text-dense, focus-within:outline-border-focus, focus-within:outline-2,
684
+ * @tokens text-card-title, text-dense, focus-within:outline-border-focus, focus-within:outline-2,
675
685
  * focus-within:outline-offset-1, rounded-control, border-border-strong, bg-input, text-text-primary,
676
686
  * text-text-tertiary, hover:bg-subtle, bg-brand-primaryAction, bg-subtle,
677
687
  * bg-status-danger/15, text-text-danger, text-brand-onprimary, text-xs, text-card-title, text-text-link,
@@ -819,6 +829,7 @@ declare const SearchBar: react.ForwardRefExoticComponent<SearchBarProps & react.
819
829
 
820
830
  /**
821
831
  * @pattern SectionRail
832
+ * @since 0.4.0
822
833
  * @status stable
823
834
  * @audited 2026-11-12
824
835
  * @description Generic titled section wrapper for a row of cards — a
@@ -871,6 +882,7 @@ declare function SectionRail({ title, titleSerif, subtitle, viewAllLabel, viewAl
871
882
 
872
883
  /**
873
884
  * @pattern DataScopeFilter
885
+ * @since 0.4.0
874
886
  * @status stable
875
887
  * @description "Data" scope chip -- toggles the filter bar between All data
876
888
  * and Final-only data (data that's finalized across the selected media
@@ -915,6 +927,7 @@ declare function DataScopeFilter({ value, onChange, align, className, testIdPref
915
927
 
916
928
  /**
917
929
  * @pattern SelectFilter
930
+ * @since 0.4.0
918
931
  * @status stable
919
932
  * @description Single-select filter chip -- the caption-over-value trigger
920
933
  * shape shared with AdvertiserQuickFilter/DateRangeFilter, opening a
@@ -1024,6 +1037,7 @@ declare function SelectFilter({ caption, value, options, onChange, align, fullWi
1024
1037
 
1025
1038
  /**
1026
1039
  * @pattern Card
1040
+ * @since 0.4.0
1027
1041
  * @status stable
1028
1042
  * @description Layout primitive for grouping content in a bordered, elevated
1029
1043
  * surface. Width is controlled by the parent container, not the Card itself,
@@ -1034,7 +1048,7 @@ declare function SelectFilter({ caption, value, options, onChange, align, fullWi
1034
1048
  * shell mr-clientapps-insights-studio's own `CardShell` used to hand-roll.
1035
1049
  * @tokens rounded-card, border-border-default, bg-surface, shadow-raised,
1036
1050
  * hover:shadow-overlay, p-card-padding, text-style-card-title, text-xs,
1037
- * text-text-tertiary
1051
+ * text-text-tertiary, text-panel-title, text-text-primary
1038
1052
  * @behavior Without `title`, children render directly as the card's only
1039
1053
  * content -- no padding is applied, so callers that need a full-bleed image
1040
1054
  * or gradient flush against the card edge (the common case in
@@ -1052,7 +1066,12 @@ declare function SelectFilter({ caption, value, options, onChange, align, fullWi
1052
1066
  * shadow on hover signals it responds to the cursor.
1053
1067
  * @variant static - Set `staticCard`. Non-clickable content -- no hover
1054
1068
  * treatment.
1069
+ * @variant chart - Set `variant="chart"` for a chart or data panel on a
1070
+ * dashboard: 15px title (`text-panel-title`), border only (no shadow, no
1071
+ * hover). Add `info` for the tip beside the title and put a toggle in `action`.
1055
1072
  * @use to group related content on a surface: a stat tile, a chart, a content panel.
1073
+ * @use `variant="chart"` for every chart or data panel on a dashboard, so
1074
+ * they all share one title size and edge.
1056
1075
  * @use `staticCard` on any card that is only read; the hover lift means the
1057
1076
  * whole card is a link.
1058
1077
  * @avoid setting a width on the card -- the parent grid or row decides it.
@@ -1068,6 +1087,10 @@ declare function SelectFilter({ caption, value, options, onChange, align, fullWi
1068
1087
  * <Card title="Spend trend" subtitle="Last 90 days" titleAs="h2" action={<Link to="/spend">View all</Link>}>
1069
1088
  * <SpendChart />
1070
1089
  * </Card>
1090
+ * <Card variant="chart" title="Share of spend over time" info="Each member's share of the set's spend, month by month."
1091
+ * subtitle="Monthly, for the selected months" action={<SegmentedControl ... />}>
1092
+ * <LineChart ... />
1093
+ * </Card>
1071
1094
  * ```
1072
1095
  */
1073
1096
  interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title">, CommonProps {
@@ -1088,6 +1111,13 @@ interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title">, Co
1088
1111
  titleAs?: "h2" | "h3" | "h4";
1089
1112
  /** Shown under `title` in a muted tertiary color. Ignored without `title`. */
1090
1113
  subtitle?: string;
1114
+ /** Explains the card: an info tip beside `title`. Ignored without `title`. */
1115
+ info?: string;
1116
+ /**
1117
+ * `chart` for a chart or data panel on a dashboard: a 15px title and a
1118
+ * border only, with no shadow or hover (it's read, not clicked).
1119
+ */
1120
+ variant?: "default" | "chart";
1091
1121
  /** Trailing header content, e.g. a "View all" link. Ignored without `title`. */
1092
1122
  action?: ReactNode;
1093
1123
  /** Card body. Rendered edge to edge without `title`; inside the standard padding with it. */
@@ -1095,6 +1125,176 @@ interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title">, Co
1095
1125
  }
1096
1126
  declare const Card: react.ForwardRefExoticComponent<CardProps & react.RefAttributes<HTMLElement>>;
1097
1127
 
1128
+ /**
1129
+ * @pattern StatStrip
1130
+ * @status stable
1131
+ * @since 0.54.0
1132
+ * @description The headline figures at the top of a dashboard, side by side in
1133
+ * one slim strip: share of spend, spend rank, spend. `StatStrip` is the strip;
1134
+ * each `StatTile` is one figure with its label, the change beside it, and an
1135
+ * optional quieter line under it. The strip is context for the charts below,
1136
+ * not the headline itself, so it stays one row high.
1137
+ * @variant StatTile: plain | icon (before the label) | info (tip after the label) | unit ("of 12") | change (a Delta) | note (second line) | children (a "compared with" row)
1138
+ * @tokens rounded-card, border-border-default, bg-surface, divide-border-default, px-5, py-3, text-micro, text-xl, leading-tight, tracking-tight, tracking-normal, text-dense, text-card-title, text-xs, text-text-primary, text-text-secondary, text-text-tertiary, text-brand-primaryAction
1139
+ * @dependencies InfoTip, Delta (passed in `change`)
1140
+ * @a11y The strip is a group named by `aria-label` ("Your position"). Each
1141
+ * tile reads in order: label, figure, change, note. The icon is decorative
1142
+ * and hidden; the label names the figure. The change is a `Delta`, which
1143
+ * always shows its sign, so direction never rests on colour alone. The info
1144
+ * tip is a button with its own label ("About share of spend").
1145
+ * @behavior Tiles share the width equally and are split by a thin line; below
1146
+ * the small breakpoint they stack, split the same way. Figures use tabular
1147
+ * numbers so they don't jump when they change.
1148
+ * @use for the two to four headline figures above a dashboard's charts.
1149
+ * @use `change` with a `Delta`, so every up/down change looks the same.
1150
+ * @avoid more than four tiles: past that the figures stop being headlines.
1151
+ * @avoid colouring the figure itself: only the change is green or red.
1152
+ * @usage
1153
+ * ```tsx
1154
+ * <StatStrip aria-label="Your position">
1155
+ * <StatTile label="Share of spend" icon={<PieChart size={13} />} info="Share of the set's total spend."
1156
+ * value="18.4%" change={<Delta value={1.2} suffix="pts" period="vs prior" />} />
1157
+ * <StatTile label="Spend rank" value="#3" unit="of 12" note="#9 of 18 in Luxury auto" />
1158
+ * <StatTile label="Spend" value="$4.2M" change={<Delta value={6.5} period="vs prior" />} note="Jan–Jun 2026" />
1159
+ * </StatStrip>
1160
+ * ```
1161
+ */
1162
+ interface StatStripProps extends HTMLAttributes<HTMLDivElement>, CommonProps {
1163
+ }
1164
+ declare const StatStrip: react.ForwardRefExoticComponent<StatStripProps & react.RefAttributes<HTMLDivElement>>;
1165
+ interface StatTileProps extends CommonProps {
1166
+ /** What the figure is ("Share of spend"). Shown small and uppercase. */
1167
+ label: string;
1168
+ /** The figure itself ("18.4%", "#3", "$4.2M"). */
1169
+ value: ReactNode;
1170
+ /** Small grey text after the figure ("of 12"). */
1171
+ unit?: ReactNode;
1172
+ /** The change beside the figure: pass a `Delta`. */
1173
+ change?: ReactNode;
1174
+ /** A quieter line under the figure (a category rank, the months). */
1175
+ note?: ReactNode;
1176
+ /** Icon before the label, about 13px. Decoration only. */
1177
+ icon?: ReactNode;
1178
+ /** Explains the figure: an info tip after the label. */
1179
+ info?: string;
1180
+ /** Extra rows under the note, e.g. the figure for a brand it's compared with. */
1181
+ children?: ReactNode;
1182
+ }
1183
+ declare function StatTile({ label, value, unit, change, note, icon, info, children, className, testIdPrefix }: StatTileProps): react.JSX.Element;
1184
+
1185
+ /**
1186
+ * @pattern ChartLegend
1187
+ * @status stable
1188
+ * @since 0.54.0
1189
+ * @description The key under or beside a chart: a small mark in each
1190
+ * series' colour and its name. `ChartLegend` is the row; each `LegendItem`
1191
+ * is one entry. The mark matches the chart: a line for a line chart, a
1192
+ * square for bars and areas, a dot for pies and points, and a dashed line
1193
+ * for preliminary data. Your own brand gets a bolder mark, darker text and
1194
+ * "(you)".
1195
+ * @variant LegendItem: dot | square | line | dashed | you
1196
+ * @tokens text-xs, text-text-tertiary, text-text-secondary, bg-text-tertiary, border-text-tertiary, rounded-pill, rounded-xs, gap-x-4, gap-y-1, gap-1.5
1197
+ * @a11y The legend is a list (`ul`), so screen readers announce how many
1198
+ * entries it has. The marks are decorative and hidden: the name says which
1199
+ * series it is, and "(you)" is real text, not a colour.
1200
+ * @behavior Entries wrap onto more lines when there isn't room. Without a
1201
+ * `color`, the mark is the muted grey used for "everyone else".
1202
+ * @use under every chart with more than one series, or with a dashed
1203
+ * preliminary stretch.
1204
+ * @use the same `mark` the chart draws, so the key looks like the chart.
1205
+ * @avoid a legend for a single series: the card title already names it.
1206
+ * @avoid colour as the only difference between entries that matter: name them.
1207
+ * @usage
1208
+ * ```tsx
1209
+ * <ChartLegend>
1210
+ * <LegendItem mark="line" color="var(--mr-color-brand-primary-action)" you>BMW</LegendItem>
1211
+ * <LegendItem mark="line">11 others in the set</LegendItem>
1212
+ * <LegendItem mark="dashed">Preliminary</LegendItem>
1213
+ * </ChartLegend>
1214
+ * ```
1215
+ */
1216
+ interface ChartLegendProps extends HTMLAttributes<HTMLUListElement>, CommonProps {
1217
+ }
1218
+ declare const ChartLegend: react.ForwardRefExoticComponent<ChartLegendProps & react.RefAttributes<HTMLUListElement>>;
1219
+ type LegendMark = "dot" | "square" | "line" | "dashed";
1220
+ interface LegendItemProps extends CommonProps {
1221
+ /** The mark: match what the chart draws. Default `dot`. */
1222
+ mark?: LegendMark;
1223
+ /** The series colour, any CSS colour or variable. Omit for the muted grey. */
1224
+ color?: string;
1225
+ /** Your own brand: bolder mark, darker text, and "(you)" after the name. */
1226
+ you?: boolean;
1227
+ /** The series name. */
1228
+ children: ReactNode;
1229
+ }
1230
+ declare function LegendItem({ mark, color, you, children, className, testIdPrefix }: LegendItemProps): react.JSX.Element;
1231
+
1232
+ /**
1233
+ * @pattern BarList
1234
+ * @status stable
1235
+ * @since 0.54.0
1236
+ * @description Rows of a name, its figures and a horizontal bar under them:
1237
+ * a brand's spend by channel, the set's top markets. Two forms from one part.
1238
+ * Full: give `columns` and each row's `values` line up under those headings
1239
+ * (Spend, Share), with an optional benchmark tick on the bar. Compact: no
1240
+ * `columns`, one value per row. Bars are 8px, and the biggest row fills the
1241
+ * width so small differences are easy to see.
1242
+ * @variant form: full (columns + values) | compact (one value)
1243
+ * @variant row: plain | note (grey text after the name) | color (series colour) | tick (benchmark mark)
1244
+ * @tokens text-dense, text-xs, text-micro, font-semibold, text-text-primary, text-text-secondary, text-text-tertiary, bg-subtle, bg-brand-primaryAction, bg-text-primary, rounded-pill, gap-2, py-2, w-16, w-13
1245
+ * @a11y The rows are a list, so screen readers say how many there are. Each
1246
+ * figure is read with its column heading ("Spend: $1.8M"); the visible
1247
+ * heading row is hidden from them to avoid saying it twice. Bars and the
1248
+ * tick are decorative: the figures carry the numbers, and `tickLabel` gives
1249
+ * the tick's value in words ("Set average 35%").
1250
+ * @behavior Bar length is each row's `bar` against the largest `bar` or
1251
+ * `tick` in the list. Long names truncate; the figures never wrap.
1252
+ * @use for a ranked breakdown where reading the figure and seeing the
1253
+ * proportion both matter.
1254
+ * @use `tick` for a benchmark (the set or category average) on the same scale.
1255
+ * @avoid when the order means nothing: sort rows by their bar, biggest first.
1256
+ * @avoid for more than about ten rows: show the top ones and link to the rest.
1257
+ * @usage
1258
+ * ```tsx
1259
+ * <BarList
1260
+ * aria-label="Spend by channel"
1261
+ * columns={["Spend", "Share"]}
1262
+ * rows={[
1263
+ * { key: "tv", label: "TV", values: ["$1.8M", "42%"], bar: 42, tick: 35, tickLabel: "Set average 35%", color: "var(--mr-color-media-tv)" },
1264
+ * { key: "digital", label: "Digital", values: ["$1.3M", "31%"], bar: 31, tick: 38, tickLabel: "Set average 38%" },
1265
+ * ]}
1266
+ * />
1267
+ * <BarList aria-label="Top markets" rows={[{ key: "ny", label: "New York", values: ["24%"], bar: 24 }]} />
1268
+ * ```
1269
+ */
1270
+ interface BarListRow {
1271
+ key: string;
1272
+ /** The name ("TV", "New York"). */
1273
+ label: ReactNode;
1274
+ /** Grey text after the name, e.g. a publisher's channel. */
1275
+ note?: string;
1276
+ /** The figures, in `columns` order. The first is bold in the full form. */
1277
+ values?: ReactNode[];
1278
+ /** The bar's length, in any unit shared by the list (usually a share). */
1279
+ bar: number;
1280
+ /** A benchmark on the same scale, drawn as a tick on the bar. */
1281
+ tick?: number;
1282
+ /** The tick in words, for screen readers ("Set average 35%"). */
1283
+ tickLabel?: string;
1284
+ /** Bar colour, any CSS colour or variable. Default is the brand colour. */
1285
+ color?: string;
1286
+ }
1287
+ interface BarListProps extends CommonProps {
1288
+ rows: BarListRow[];
1289
+ /** Column headings for the full form ("Spend", "Share"). Omit for the compact form. */
1290
+ columns?: string[];
1291
+ /** Names the list for screen readers ("Spend by channel"). */
1292
+ "aria-label"?: string;
1293
+ /** Shown instead when there are no rows. */
1294
+ empty?: ReactNode;
1295
+ }
1296
+ declare function BarList({ rows, columns, empty, className, testIdPrefix, "aria-label": ariaLabel }: BarListProps): react.JSX.Element | null;
1297
+
1098
1298
  /**
1099
1299
  * The one "no results" message, shared across every filtered table/list that
1100
1300
  * can end up empty for the same two reasons -- see the component doc below
@@ -1119,6 +1319,7 @@ declare const PRIMARY_ACTION_CLASS = "rounded-control bg-brand-primaryAction px-
1119
1319
  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-offset-1 focus-visible:outline-border-focus";
1120
1320
  /**
1121
1321
  * @pattern NoResultsEmptyState
1322
+ * @since 0.4.0
1122
1323
  * @status stable
1123
1324
  * @description Guided empty state for a query that returned nothing.
1124
1325
  * Deliberately one state for two causes, because the user can't tell them
@@ -1208,6 +1409,7 @@ interface SummaryGroup {
1208
1409
  }
1209
1410
  /**
1210
1411
  * @pattern WorkspaceSelectedCard
1412
+ * @since 0.4.0
1211
1413
  * @audited 2026-11-12
1212
1414
  * @status stable
1213
1415
  * @description Sticky recap card listing what each section's picker has
@@ -1270,6 +1472,8 @@ declare function WorkspaceSelectedCard({ groups, className, testIdPrefix }: Work
1270
1472
 
1271
1473
  /**
1272
1474
  * @pattern BarChartPlaceholder
1475
+ * @since 0.4.0
1476
+ * @audited 2026-11-16
1273
1477
  * @audited 2026-11-12
1274
1478
  * @status stable
1275
1479
  * @description Neutral, dataless stand-in for a ranked-bar chart --
@@ -1301,6 +1505,7 @@ declare function BarChartPlaceholder({ height, className, testIdPrefix }: BarCha
1301
1505
 
1302
1506
  /**
1303
1507
  * @pattern LineChartPlaceholder
1508
+ * @since 0.4.0
1304
1509
  * @audited 2026-11-12
1305
1510
  * @status stable
1306
1511
  * @description Neutral, dataless stand-in for a multi-series trend chart --
@@ -1333,6 +1538,7 @@ declare function LineChartPlaceholder({ height, className, testIdPrefix }: LineC
1333
1538
 
1334
1539
  /**
1335
1540
  * @pattern PieChartPlaceholder
1541
+ * @since 0.4.0
1336
1542
  * @audited 2026-11-12
1337
1543
  * @status stable
1338
1544
  * @description Neutral, dataless stand-in for a pie chart -- a grey disc
@@ -1365,6 +1571,7 @@ declare function PieChartPlaceholder({ height, legendRows, className, testIdPref
1365
1571
 
1366
1572
  /**
1367
1573
  * @pattern StackedColumnPlaceholder
1574
+ * @since 0.4.0
1368
1575
  * @status stable
1369
1576
  * @audited 2026-11-12
1370
1577
  * @description Neutral, dataless stand-in for a 100% stacked column -- a
@@ -1402,6 +1609,7 @@ declare function StackedColumnPlaceholder({ height, width, legendRows, axis, cla
1402
1609
 
1403
1610
  /**
1404
1611
  * @pattern Tooltip
1612
+ * @since 0.4.0
1405
1613
  * @status stable
1406
1614
  * @description Portalled hover/focus tooltip. Two ways to attach a trigger:
1407
1615
  * wrap `children` (the default -- an inline trigger, e.g. a truncated table
@@ -1519,6 +1727,7 @@ declare function Tooltip({ label, children, anchorRef, className, whenTruncated,
1519
1727
 
1520
1728
  /**
1521
1729
  * @pattern AdvertiserNoResults
1730
+ * @since 0.4.0
1522
1731
  * @status stable
1523
1732
  * @description Shown when a search-first picker's search returns nothing --
1524
1733
  * gives an actionable next step rather than just a bare "no results"
@@ -1546,6 +1755,7 @@ declare function AdvertiserNoResults({ query, hint, className, testIdPrefix, }:
1546
1755
 
1547
1756
  /**
1548
1757
  * @pattern SelectAllVisible
1758
+ * @since 0.4.0
1549
1759
  * @status stable
1550
1760
  * @description "Select all visible" row for a search-first picker's result
1551
1761
  * list -- only render it once the caller decides the visible result set is
@@ -1580,6 +1790,7 @@ declare function SelectAllVisible({ count, allSelected, onToggle, className, tes
1580
1790
 
1581
1791
  /**
1582
1792
  * @pattern SelectedSection
1793
+ * @since 0.4.0
1583
1794
  * @status stable
1584
1795
  * @description Collapsible "Selected (n)" container for a search-first
1585
1796
  * picker. Selections can pile up and crowd out the live search results, so
@@ -1728,7 +1939,8 @@ interface SelectionPickerProps<T extends PickerRow> extends CommonProps {
1728
1939
  }
1729
1940
  /**
1730
1941
  * @pattern SelectionPicker
1731
- * @audited 2026-11-13
1942
+ * @since 0.4.0
1943
+ * @audited 2026-11-16
1732
1944
  * @status stable
1733
1945
  * @description Generic search-and-filter picker for building a selection out
1734
1946
  * of a larger catalog -- a search box plus filter dropdowns above a checkbox
@@ -1819,6 +2031,7 @@ interface PublisherBreakdownListProps extends CommonProps {
1819
2031
  }
1820
2032
  /**
1821
2033
  * @pattern PublisherBreakdownList
2034
+ * @since 0.4.0
1822
2035
  * @description Flat Current/Previous/YoY spend list, prop-driven end to end
1823
2036
  * -- no data fetching of its own. Row padding is configurable so it can sit
1824
2037
  * flush inside a bordered card or inline within an already-padded container.
@@ -1886,6 +2099,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantPr
1886
2099
  }
1887
2100
  /**
1888
2101
  * @pattern Button
2102
+ * @since 0.7.0
1889
2103
  * @status stable
1890
2104
  * @description The one control for every clickable action, from the main call
1891
2105
  * to action on a screen down to a quiet toolbar utility. Six variants
@@ -1961,6 +2175,7 @@ interface FilterDropdownFooterProps extends CommonProps {
1961
2175
  }
1962
2176
  /**
1963
2177
  * @pattern FilterDropdownFooter
2178
+ * @since 0.7.0
1964
2179
  * @status stable
1965
2180
  * @description Fixed Apply/Clear All footer for quick-filter dropdowns —
1966
2181
  * pinned below the (independently scrollable) option list so it's always
@@ -2013,6 +2228,8 @@ interface NameListModalProps extends CommonProps {
2013
2228
  }
2014
2229
  /**
2015
2230
  * @pattern NameListModal
2231
+ * @since 0.7.0
2232
+ * @audited 2026-11-16
2016
2233
  * @status stable
2017
2234
  * @description Create/rename dialog — a name field, and optionally a few
2018
2235
  * checkboxes under it. Shared by the Account Lists table and the list detail
@@ -2054,6 +2271,7 @@ interface ChipContentProps extends CommonProps {
2054
2271
  }
2055
2272
  /**
2056
2273
  * @pattern ChipTrigger
2274
+ * @since 0.7.0
2057
2275
  * @status stable
2058
2276
  * @description Shared foundation for filter-bar chip triggers — pairs
2059
2277
  * `chipTriggerClass` with `ChipContent` for the caption/value/icon layout, so
@@ -2096,6 +2314,7 @@ interface FilterChipBarProps<T extends ChipLike> extends CommonProps {
2096
2314
  }
2097
2315
  /**
2098
2316
  * @pattern FilterChipBar
2317
+ * @since 0.7.0
2099
2318
  * @status stable
2100
2319
  * @description Applied-filter chips — wrap freely across as many rows as
2101
2320
  * needed, every chip shown. Each chip reveals its filter category on hover
@@ -2173,6 +2392,7 @@ interface SortButtonProps<K extends string> extends CommonProps {
2173
2392
  }
2174
2393
  /**
2175
2394
  * @pattern SortButton
2395
+ * @since 0.7.0
2176
2396
  * @status stable
2177
2397
  * @audited 2026-11-12
2178
2398
  * @description Design-system rule: every sortable table column header uses
@@ -2226,6 +2446,7 @@ interface PagerProps extends CommonProps {
2226
2446
  }
2227
2447
  /**
2228
2448
  * @pattern Pager
2449
+ * @since 0.7.0
2229
2450
  * @status stable
2230
2451
  * @description Compact prev/next pager with a windowed page-number list —
2231
2452
  * shows every page up to 7 total, otherwise 1 … current±1 … last with
@@ -2269,6 +2490,7 @@ interface WorkspaceAvatarProps extends CommonProps {
2269
2490
  }
2270
2491
  /**
2271
2492
  * @pattern WorkspaceAvatar
2493
+ * @since 0.7.0
2272
2494
  * @status stable
2273
2495
  * @audited 2026-11-12
2274
2496
  * @description The square tile that identifies a workspace in a switch
@@ -2314,6 +2536,7 @@ interface ToastProps extends CommonProps {
2314
2536
  }
2315
2537
  /**
2316
2538
  * @pattern Toast
2539
+ * @since 0.20.0
2317
2540
  * @status stable
2318
2541
  * @description Transient feedback about the page or the task: "12 accounts
2319
2542
  * removed", "Export started". Floats at the bottom of the window so it never
@@ -2384,6 +2607,7 @@ interface TagProps extends CommonProps {
2384
2607
  }
2385
2608
  /**
2386
2609
  * @pattern Tag
2610
+ * @since 0.8.0
2387
2611
  * @description Being retired into Badge: a Tag is now `<Badge kind="category">`,
2388
2612
  * the quiet grey pill naming what a thing is (a topic, a category). Kept
2389
2613
  * exported so existing screens don't break; it renders exactly that Badge.
@@ -2400,6 +2624,7 @@ declare function Tag({ children, className, testIdPrefix }: TagProps): react.JSX
2400
2624
 
2401
2625
  /**
2402
2626
  * @pattern TablePagination
2627
+ * @since 0.8.0
2403
2628
  * @status stable
2404
2629
  * @audited 2026-11-12
2405
2630
  * @description Full table-footer pagination bar: a rows-per-page select, a
@@ -2522,6 +2747,7 @@ interface MultiSelectGroup {
2522
2747
  }
2523
2748
  /**
2524
2749
  * @pattern MultiSelectFilter
2750
+ * @since 0.8.0
2525
2751
  * @status stable
2526
2752
  * @description Quick-access multi-select chip — mirrors the DateRangeFilter
2527
2753
  * button shape (two-line caption + value with a chevron) and opens a
@@ -2536,6 +2762,7 @@ interface MultiSelectGroup {
2536
2762
  * the imported ChipVariant alias through this component's inline prop
2537
2763
  * type, so such a tag would be unvalidated -- and this exact component
2538
2764
  * has had stale ones stripped before.
2765
+ * The search box shows on its own once there are more than 8 options.
2539
2766
  * Same draft/commit-on-close pattern as AdvertiserQuickFilter — the
2540
2767
  * draft resyncs from `selected` every time the tray opens, and (without
2541
2768
  * showFooter) any close path commits it, while showFooter mode requires the
@@ -2552,6 +2779,7 @@ interface MultiSelectGroup {
2552
2779
  * filter where nothing and everything mean the same). `hints` puts a short
2553
2780
  * definition under an option's label, keyed by option or group id, for a term
2554
2781
  * the user may not know. `note` is one line of explanation under the list.
2782
+ * Clear all applies the default at once and closes the menu.
2555
2783
  * @behavior `loading` swaps the list for grey placeholder rows and `error`
2556
2784
  * for a plain "Couldn't load options." line with a Try again link
2557
2785
  * (`onRetry`). The trigger never changes in either state.
@@ -2588,6 +2816,9 @@ declare function MultiSelectFilter({ caption, options, groups, counts, variant,
2588
2816
  selected: string[];
2589
2817
  onChange: (next: string[]) => void;
2590
2818
  allLabel?: string;
2819
+ /** Shows the search box. Left out, it appears on its own once there are
2820
+ * more than 8 options (counting group children), and never for a short
2821
+ * list. Pass true or false only to override that. */
2591
2822
  searchable?: boolean;
2592
2823
  /** Overrides the search box's placeholder. The default derives from the
2593
2824
  * caption, which reads wrong once a caption is singular ("Search topic"). */
@@ -2601,7 +2832,8 @@ declare function MultiSelectFilter({ caption, options, groups, counts, variant,
2601
2832
  /** Deferred mode: checkbox edits stage in a draft; only the fixed Apply/Clear
2602
2833
  * All footer commits or discards them (no live commit on close). */
2603
2834
  showFooter?: boolean;
2604
- /** What "Clear all" resets the draft to — the page's default selection. */
2835
+ /** What "Clear all" resets to — the page's default selection. Clear all
2836
+ * applies it at once and closes the menu. */
2605
2837
  clearValue?: string[];
2606
2838
  /** Tailwind width class for the dropdown panel (default `w-60`). Widen it when
2607
2839
  * option labels are long and would otherwise wrap. */
@@ -2637,12 +2869,12 @@ declare const SIZES: {
2637
2869
  readonly sm: {
2638
2870
  readonly track: "h-5 w-9";
2639
2871
  readonly knob: "h-4 w-4";
2640
- readonly on: "translate-x-[18px]";
2872
+ readonly on: "translate-x-4.5";
2641
2873
  };
2642
2874
  readonly md: {
2643
2875
  readonly track: "h-6 w-11";
2644
2876
  readonly knob: "h-5 w-5";
2645
- readonly on: "translate-x-[22px]";
2877
+ readonly on: "translate-x-5.5";
2646
2878
  };
2647
2879
  };
2648
2880
  interface ToggleProps extends CommonProps {
@@ -2663,6 +2895,7 @@ interface ToggleProps extends CommonProps {
2663
2895
  }
2664
2896
  /**
2665
2897
  * @pattern Toggle
2898
+ * @since 0.8.0
2666
2899
  * @status stable
2667
2900
  * @description The app's on/off switch. Use it for a setting that takes effect
2668
2901
  * as a state the user keeps — "only include enriched creatives", "email me a
@@ -2700,10 +2933,13 @@ interface AISparkProps extends CommonProps {
2700
2933
  }
2701
2934
  /**
2702
2935
  * @pattern AISpark
2936
+ * @since 0.8.0
2703
2937
  * @status stable
2704
2938
  * @description Assistant glyph — the lucide Sparkles icon stroked with the
2705
2939
  * MR orange→violet assistant gradient. Each instance scopes its own gradient
2706
- * id, and the stops follow light/dark mode.
2940
+ * id, and the stops follow light/dark mode (brand primary to the
2941
+ * `color.ai.violet` token, design-tokens 3.9.0 or later).
2942
+ * @tokens mr-color-brand-primary, mr-color-ai-violet
2707
2943
  * @dependencies lucide-react
2708
2944
  * @usage
2709
2945
  * ```tsx
@@ -2718,6 +2954,7 @@ interface FreshnessProps extends CommonProps {
2718
2954
  }
2719
2955
  /**
2720
2956
  * @pattern Freshness
2957
+ * @since 0.8.0
2721
2958
  * @status stable
2722
2959
  * @audited 2026-11-12
2723
2960
  * @description Freshness dot — prefixed to card meta rows so a row of 4
@@ -2749,6 +2986,7 @@ interface SectionHeadingProps extends CommonProps {
2749
2986
  }
2750
2987
  /**
2751
2988
  * @pattern SectionHeading
2989
+ * @since 0.19.0
2752
2990
  * @status stable
2753
2991
  * @description The title of a section within a page -- "Start from a template",
2754
2992
  * "Saved reports". One size everywhere (16px semibold), so every page's sections
@@ -2812,6 +3050,7 @@ interface PageHeaderProps extends CommonProps {
2812
3050
  }
2813
3051
  /**
2814
3052
  * @pattern PageHeader
3053
+ * @since 0.19.0
2815
3054
  * @status stable
2816
3055
  * @description The top of a page: its title (the page's only h1), an optional
2817
3056
  * one-line description under it, and the page's main actions on the right.
@@ -2877,6 +3116,7 @@ interface ModalProps extends CommonProps {
2877
3116
  }
2878
3117
  /**
2879
3118
  * @pattern Modal
3119
+ * @since 0.21.0
2880
3120
  * @status stable
2881
3121
  * @description A dialog over a dimmed page: title, optional one-line
2882
3122
  * description, content, and a footer of buttons. Four widths -- sm 440 for a
@@ -2939,6 +3179,7 @@ interface EmptyStateProps extends CommonProps {
2939
3179
  }
2940
3180
  /**
2941
3181
  * @pattern EmptyState
3182
+ * @since 0.21.0
2942
3183
  * @status stable
2943
3184
  * @description What shows where content would be: an icon, a title saying
2944
3185
  * what's empty, one line on what to do next, and one action. Two sizes -- sm
@@ -2991,6 +3232,7 @@ interface TabsProps<T extends string = string> extends CommonProps {
2991
3232
  }
2992
3233
  /**
2993
3234
  * @pattern Tabs
3235
+ * @since 0.21.0
2994
3236
  * @status stable
2995
3237
  * @description Underline tabs that switch between the sections of one page --
2996
3238
  * Overview, Creative, Contacts. The selected tab is semibold with a brand
@@ -3045,6 +3287,7 @@ interface SegmentedControlProps<T extends string = string> extends CommonProps {
3045
3287
  }
3046
3288
  /**
3047
3289
  * @pattern SegmentedControl
3290
+ * @since 0.21.0
3048
3291
  * @status stable
3049
3292
  * @description A pill of 2 to 4 options that switches how the same data is
3050
3293
  * shown -- Spend / Share, Chart / Table, Weekly / Monthly. The selected option
@@ -3094,6 +3337,7 @@ interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "si
3094
3337
  }
3095
3338
  /**
3096
3339
  * @pattern TextField
3340
+ * @since 0.21.0
3097
3341
  * @status stable
3098
3342
  * @description A single-line text input with an optional label, hint and
3099
3343
  * error. Same heights as Button -- sm 32, md 40, lg 44 -- so a field and a
@@ -3145,6 +3389,7 @@ interface DrawerProps extends CommonProps {
3145
3389
  }
3146
3390
  /**
3147
3391
  * @pattern Drawer
3392
+ * @since 0.33.0
3148
3393
  * @status stable
3149
3394
  * @description A panel that slides in from the right over the dimmed page:
3150
3395
  * title, optional one-line description, a scrolling body, and an optional
@@ -3251,6 +3496,7 @@ interface DataTableProps<T, K extends string = string> extends CommonProps {
3251
3496
  }
3252
3497
  /**
3253
3498
  * @pattern DataTable
3499
+ * @since 0.24.0
3254
3500
  * @status stable
3255
3501
  * @description The shared table: a card frame, an optional title row, the
3256
3502
  * header band, rows with hairline dividers and a hover wash, and the empty
@@ -3319,6 +3565,7 @@ interface MediaLabelProps extends CommonProps {
3319
3565
  }
3320
3566
  /**
3321
3567
  * @pattern MediaLabel
3568
+ * @since 0.32.0
3322
3569
  * @status stable
3323
3570
  * @description The small solid label naming a creative's media type -- TV,
3324
3571
  * CTV, Digital, Social, Radio, Newspaper, Magazine -- usually laid over the
@@ -3359,6 +3606,7 @@ interface SuggestionChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
3359
3606
  }
3360
3607
  /**
3361
3608
  * @pattern SuggestionChip
3609
+ * @since 0.32.0
3362
3610
  * @status stable
3363
3611
  * @description An outlined grey pill offering a ready-made search or
3364
3612
  * question: "Or try: Luxury SUV brands", an AI follow-up, a "Did you mean".
@@ -3398,6 +3646,7 @@ interface ToggleChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
3398
3646
  }
3399
3647
  /**
3400
3648
  * @pattern ToggleChip
3649
+ * @since 0.32.0
3401
3650
  * @status stable
3402
3651
  * @description A pill you switch on and off, in a row where several can be
3403
3652
  * on at once: countries, media types, quick filters. On, it takes a pale
@@ -3439,6 +3688,7 @@ interface CopyButtonProps extends CommonProps {
3439
3688
  }
3440
3689
  /**
3441
3690
  * @pattern CopyButton
3691
+ * @since 0.32.0
3442
3692
  * @status stable
3443
3693
  * @description Copies a value to the clipboard and confirms on the button
3444
3694
  * itself: the copy icon becomes a green tick for two seconds (a labelled
@@ -3481,6 +3731,7 @@ interface InlineMessageProps extends CommonProps {
3481
3731
  }
3482
3732
  /**
3483
3733
  * @pattern InlineMessage
3734
+ * @since 0.32.0
3484
3735
  * @status stable
3485
3736
  * @description A message that sits in the page, next to what it's about, and
3486
3737
  * stays until it's dealt with: "A similar organization already exists",
@@ -3546,7 +3797,7 @@ interface FilterDrawerProps<Id extends string = string> extends CommonProps {
3546
3797
  onClearSection: (id: Id) => void;
3547
3798
  /** Empties the draft: Clear all on the list. */
3548
3799
  onClearAll: () => void;
3549
- /** Commits the draft. The drawer closes itself after. */
3800
+ /** Commits the draft: See results, on the list. The drawer closes itself after. */
3550
3801
  onApply: () => void;
3551
3802
  /** Opens straight onto this filter instead of the list. */
3552
3803
  focus?: Id | null;
@@ -3555,29 +3806,34 @@ interface FilterDrawerProps<Id extends string = string> extends CommonProps {
3555
3806
  }
3556
3807
  /**
3557
3808
  * @pattern FilterDrawer
3809
+ * @since 0.50.0
3558
3810
  * @status stable
3559
3811
  * @description The page's filter panel (Target-style). A Drawer listing every
3560
3812
  * filter as a row with a right arrow; opening a row replaces the list with
3561
- * that filter as the whole panel, with a back arrow to the list. The page
3562
- * keeps the draft and renders each filter's contents; FilterDrawer owns the
3563
- * list, the navigation, the slide between the two and the footer (Clear or
3564
- * Clear all, Cancel, Apply). Opened from AllFiltersButton.
3813
+ * that filter as the whole panel, with a back arrow and a line under its
3814
+ * title. The page keeps the draft and renders each filter's contents;
3815
+ * FilterDrawer owns the list, the navigation, the slide between the two and
3816
+ * the footer: Clear inside a filter; Clear all, Cancel and See
3817
+ * results on the list. Opened from AllFiltersButton.
3565
3818
  * @tokens border-t, border-b, border-border-default, px-5, py-3.5, text-sm,
3566
3819
  * font-medium, text-text-primary, text-text-secondary, text-brand-primaryAction,
3567
3820
  * hover:bg-subtle, rounded-control, focus-visible:outline-border-focus,
3568
3821
  * transition-transform, duration-(--mr-motion-duration-interactive),
3569
- * ease-interactive, motion-reduce:transition-none, overflow-x-clip
3822
+ * ease-interactive, motion-reduce:transition-none, overflow-x-clip, pt-4,
3823
+ * focus-visible:outline-offset-1
3570
3824
  * @dependencies lucide-react, react-dom
3571
- * @behavior Picks stay in the page's draft until Apply, so moving between
3825
+ * @behavior Picks are kept in the page's draft as they're made: a filter's
3826
+ * panel has no apply button, only Clear, and the back arrow beside its
3827
+ * title returns to the list. See results, on the list only, applies the draft. Moving between
3572
3828
  * filters loses nothing; Cancel, Escape and the dimmed page drop them. Each
3573
3829
  * opening starts on the list (or on `focus`). Opening a filter slides it in
3574
3830
  * from the right as the list moves a third of the way out to the left; the
3575
3831
  * back arrow reverses it. 200ms, the Drawer's own timing; with reduced motion
3576
3832
  * it swaps without moving. Clear in a filter calls `onClearSection`, Clear all
3577
- * on the list `onClearAll`, Apply `onApply` and then `onClose`.
3833
+ * on the list `onClearAll`, See results `onApply` and then `onClose`.
3578
3834
  * @a11y Built on Drawer: role="dialog", focus trap, Escape, focus back to the
3579
- * opener. Each row is a button. Opening a filter moves focus to its back
3580
- * arrow ("Back to all filters"); going back puts focus on the row you left,
3835
+ * opener. Each row is a button. Opening a filter moves focus to its
3836
+ * back arrow ("Back to all filters"); going back puts focus on the row you left,
3581
3837
  * so the keyboard never lands back at the top. The outgoing panel is inert
3582
3838
  * while it slides out.
3583
3839
  * @use for a page's filters, opened from AllFiltersButton.
@@ -3610,6 +3866,7 @@ interface AllFiltersButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElem
3610
3866
  }
3611
3867
  /**
3612
3868
  * @pattern AllFiltersButton
3869
+ * @since 0.50.0
3613
3870
  * @status stable
3614
3871
  * @description The one way into a page's FilterDrawer: "All filters" with a
3615
3872
  * sliders icon and a count of the filters in use. The same bordered look as
@@ -3632,4 +3889,64 @@ interface AllFiltersButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElem
3632
3889
  */
3633
3890
  declare const AllFiltersButton: react.ForwardRefExoticComponent<AllFiltersButtonProps & react.RefAttributes<HTMLButtonElement>>;
3634
3891
 
3635
- export { AISpark, type AISparkProps, AdvertiserNoResults, type AdvertiserNoResultsProps, AdvertiserQuickFilter, type AdvertiserQuickFilterProps, AdvertiserSearchPrompt, type AdvertiserSearchPromptProps, AllFiltersButton, type AllFiltersButtonProps, Badge, type BadgeKind, type BadgeProps, type BadgeTone, BarChartPlaceholder, type BarChartPlaceholderProps, Button, type ButtonProps, Card, type CardProps, CheckBox, CheckBoxBox, type CheckBoxBoxProps, type CheckBoxProps, ChipContent, type ChipContentProps, type ChipVariant, type CommonProps, CopyButton, type CopyButtonProps, DEFAULT_SEARCH_MATCH, DataScopeFilter, type DataScopeFilterProps, DataTable, type DataTableColumn, type DataTableColumnWidth, type DataTableDensity, type DataTableProps, type DateGranularity, DateRangeFilter, type DateRangeFilterProps, DateRangePicker, type DateRangePickerProps, Delta, type DeltaProps, Drawer, type DrawerProps, type DrawerSize, EmptyState, type EmptyStateProps, type EmptyStateSize, FilterChipBar, type FilterChipBarProps, FilterDrawer, type FilterDrawerProps, type FilterDrawerSection, FilterDropdownFooter, type FilterDropdownFooterProps, Freshness, type FreshnessLevel, type FreshnessProps, InfoTip, type InfoTipProps, InlineMessage, type InlineMessageProps, type InlineMessageTone, LineChartPlaceholder, type LineChartPlaceholderProps, MediaLabel, type MediaLabelProps, type MediaType, Modal, type ModalProps, type ModalSize, MultiSelectFilter, type MultiSelectFilterProps, type MultiSelectGroup, NO_RESULTS_BODY, NO_RESULTS_TITLE, NameListModal, type NameListModalProps, type NoResultsAction, NoResultsEmptyState, type NoResultsEmptyStateProps, PRIMARY_ACTION_CLASS, PageHeader, type PageHeaderProps, Pager, type PagerProps, type PickerColumn, type PickerFilter, type PickerRow, PieChartPlaceholder, type PieChartPlaceholderProps, type PubBreak, PublisherBreakdownList, type PublisherBreakdownListProps, QUIET_ACTION_CLASS, SearchBar, type SearchBarProps, type SearchBarSize, type SearchBarVariant, type SearchMatchMode, type SearchMatchValue, type SearchScope, SectionHeading, type SectionHeadingProps, SectionRail, type SectionRailProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, SelectAllVisible, type SelectAllVisibleProps, SelectFilter, type SelectFilterProps, SelectedSection, type SelectedSectionProps, SelectionPicker, type SelectionPickerAccountList, type SelectionPickerProps, SortButton, type SortButtonProps, type SortDir, type SortState, StackedColumnPlaceholder, type StackedColumnPlaceholderProps, SuggestionChip, type SuggestionChipProps, type SummaryGroup, type SummaryGroupItemValue, type TabItem, TablePagination, type TablePaginationProps, Tabs, type TabsProps, Tag, type TagProps, TextField, type TextFieldProps, type TextFieldSize, Toast, type ToastProps, type ToastTone, Toggle, ToggleChip, type ToggleChipProps, type ToggleProps, Tooltip, type TooltipProps, WorkspaceAvatar, type WorkspaceAvatarProps, WorkspaceSelectedCard, type WorkspaceSelectedCardProps, ariaSortFor, buttonVariants, chipTriggerClass, cycleSort, noResultsBody, resolveRange, sortProp };
3892
+ /**
3893
+ * @pattern Menu
3894
+ * @status stable
3895
+ * @since 0.53.0
3896
+ * @description The panel of actions a button opens: the account menu, a
3897
+ * row's "..." menu, Saved views. `Menu` is the list; `MenuItem` is each row;
3898
+ * `MenuLabel` and `MenuSeparator` group them. Rows are 36px, 14px text,
3899
+ * rounded and inset from the panel edge. Menu is the list only: put it inside
3900
+ * whatever panel positions and dismisses it (the app's dropdown shell).
3901
+ * @variant MenuItem: plain | icon | trailing (tag, value) | submenu (chevron) | checked (tick) | danger | disabled | description (second line)
3902
+ * @tokens rounded-control, px-3, gap-2.5, text-sm, text-xs, text-micro, hover:bg-subtle, text-text-primary, text-text-secondary, text-text-tertiary, text-text-danger, text-brand-primaryAction, border-border-default, focus-visible:outline-border-focus
3903
+ * @dependencies lucide-react, @radix-ui/react-slot
3904
+ * @a11y `Menu` is role="menu" and moves focus between rows with the up and
3905
+ * down arrows, Home and End. Each row is a button with role="menuitem", or
3906
+ * "menuitemradio" with aria-checked when `checked` is set. A row that opens
3907
+ * another menu sets aria-haspopup. Icons are aria-hidden: the label names the
3908
+ * row. A row that goes to a page renders a real link through `asChild`.
3909
+ * Rows take tabIndex -1: when the menu opens, the panel moves focus to the
3910
+ * first row, and the arrows take it from there.
3911
+ * @behavior Hover and keyboard focus tint the row; the focus ring sits inside
3912
+ * the row so the panel edge never clips it. Disabled rows fade and can't be
3913
+ * picked, but stay in the list so it doesn't change shape.
3914
+ * @usage
3915
+ * ```tsx
3916
+ * <Menu aria-label="Account">
3917
+ * <MenuLabel>Workspace</MenuLabel>
3918
+ * <MenuItem icon={<Layers size={16} />} trailing="All data" submenu>Workspace</MenuItem>
3919
+ * <MenuItem asChild icon={<List size={16} />}><a href="/lists">Account lists</a></MenuItem>
3920
+ * <MenuSeparator />
3921
+ * <MenuItem icon={<LogOut size={16} />} onClick={signOut}>Log out</MenuItem>
3922
+ * </Menu>
3923
+ * ```
3924
+ */
3925
+ interface MenuProps extends HTMLAttributes<HTMLDivElement>, CommonProps {
3926
+ }
3927
+ declare const Menu: react.ForwardRefExoticComponent<MenuProps & react.RefAttributes<HTMLDivElement>>;
3928
+ interface MenuItemProps extends ButtonHTMLAttributes<HTMLButtonElement>, CommonProps {
3929
+ /** Leading icon, 16px. Decoration only: the label names the row. */
3930
+ icon?: ReactNode;
3931
+ /** Right-hand extra: a tag ("Internal") or the current value ("All data"). */
3932
+ trailing?: ReactNode;
3933
+ /** A grey second line under the label, e.g. a role or an email. */
3934
+ description?: ReactNode;
3935
+ /** Opens another menu: adds the chevron and aria-haspopup. */
3936
+ submenu?: boolean;
3937
+ /** Makes it a pick-one row (menuitemradio) with a tick when true. */
3938
+ checked?: boolean;
3939
+ /** Destructive action, drawn in the danger colour. */
3940
+ danger?: boolean;
3941
+ /** Render the child (a link) as the row, for rows that go to a page. */
3942
+ asChild?: boolean;
3943
+ }
3944
+ declare const MenuItem: react.ForwardRefExoticComponent<MenuItemProps & react.RefAttributes<HTMLButtonElement>>;
3945
+ /** A small heading over a group of rows ("Workspace"). */
3946
+ declare function MenuLabel({ className, testIdPrefix, children }: CommonProps & {
3947
+ children: ReactNode;
3948
+ }): react.JSX.Element;
3949
+ /** A line between groups of rows. */
3950
+ declare function MenuSeparator({ className, testIdPrefix }: CommonProps): react.JSX.Element;
3951
+
3952
+ export { AISpark, type AISparkProps, AdvertiserNoResults, type AdvertiserNoResultsProps, AdvertiserQuickFilter, type AdvertiserQuickFilterProps, AdvertiserSearchPrompt, type AdvertiserSearchPromptProps, AllFiltersButton, type AllFiltersButtonProps, Badge, type BadgeKind, type BadgeProps, type BadgeTone, BarChartPlaceholder, type BarChartPlaceholderProps, BarList, type BarListProps, type BarListRow, Button, type ButtonProps, Card, type CardProps, ChartLegend, type ChartLegendProps, CheckBox, CheckBoxBox, type CheckBoxBoxProps, type CheckBoxProps, ChipContent, type ChipContentProps, type ChipVariant, type CommonProps, CopyButton, type CopyButtonProps, DEFAULT_SEARCH_MATCH, DataScopeFilter, type DataScopeFilterProps, DataTable, type DataTableColumn, type DataTableColumnWidth, type DataTableDensity, type DataTableProps, type DateGranularity, DateRangeFilter, type DateRangeFilterProps, DateRangePicker, type DateRangePickerProps, Delta, type DeltaProps, Drawer, type DrawerProps, type DrawerSize, EmptyState, type EmptyStateProps, type EmptyStateSize, FilterChipBar, type FilterChipBarProps, FilterDrawer, type FilterDrawerProps, type FilterDrawerSection, FilterDropdownFooter, type FilterDropdownFooterProps, Freshness, type FreshnessLevel, type FreshnessProps, InfoTip, type InfoTipProps, InlineMessage, type InlineMessageProps, type InlineMessageTone, LegendItem, type LegendItemProps, type LegendMark, LineChartPlaceholder, type LineChartPlaceholderProps, MediaLabel, type MediaLabelProps, type MediaType, Menu, MenuItem, type MenuItemProps, MenuLabel, type MenuProps, MenuSeparator, Modal, type ModalProps, type ModalSize, MultiSelectFilter, type MultiSelectFilterProps, type MultiSelectGroup, NO_RESULTS_BODY, NO_RESULTS_TITLE, NameListModal, type NameListModalProps, type NoResultsAction, NoResultsEmptyState, type NoResultsEmptyStateProps, PRIMARY_ACTION_CLASS, PageHeader, type PageHeaderProps, Pager, type PagerProps, type PickerColumn, type PickerFilter, type PickerRow, PieChartPlaceholder, type PieChartPlaceholderProps, type PubBreak, PublisherBreakdownList, type PublisherBreakdownListProps, QUIET_ACTION_CLASS, SearchBar, type SearchBarProps, type SearchBarSize, type SearchBarVariant, type SearchMatchMode, type SearchMatchValue, type SearchScope, SectionHeading, type SectionHeadingProps, SectionRail, type SectionRailProps, SegmentedControl, type SegmentedControlProps, type SegmentedControlSize, type SegmentedOption, SelectAllVisible, type SelectAllVisibleProps, SelectFilter, type SelectFilterProps, SelectedSection, type SelectedSectionProps, SelectionPicker, type SelectionPickerAccountList, type SelectionPickerProps, SortButton, type SortButtonProps, type SortDir, type SortState, StackedColumnPlaceholder, type StackedColumnPlaceholderProps, StatStrip, type StatStripProps, StatTile, type StatTileProps, SuggestionChip, type SuggestionChipProps, type SummaryGroup, type SummaryGroupItemValue, type TabItem, TablePagination, type TablePaginationProps, Tabs, type TabsProps, Tag, type TagProps, TextField, type TextFieldProps, type TextFieldSize, Toast, type ToastProps, type ToastTone, Toggle, ToggleChip, type ToggleChipProps, type ToggleProps, Tooltip, type TooltipProps, WorkspaceAvatar, type WorkspaceAvatarProps, WorkspaceSelectedCard, type WorkspaceSelectedCardProps, ariaSortFor, buttonVariants, chipTriggerClass, cycleSort, noResultsBody, resolveRange, sortProp };