@mediaradar/design-components 0.45.3 → 0.47.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,8 +1,27 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, RefObject, ButtonHTMLAttributes, MouseEventHandler, InputHTMLAttributes } from 'react';
2
+ import { ReactNode, RefObject, ButtonHTMLAttributes, Ref, ReactElement, MouseEventHandler, InputHTMLAttributes } 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
 
6
+ /**
7
+ * Props every component in this package accepts (PLA-357's consistency
8
+ * rules), so an app can place, adjust and test any of them the same way.
9
+ */
10
+ interface CommonProps {
11
+ /**
12
+ * Extra classes on the component's root element. They're merged last with
13
+ * `cn`, so for the same property they win over the component's own class
14
+ * (`className="w-full"` beats a built-in width).
15
+ */
16
+ className?: string;
17
+ /**
18
+ * Sets `data-testid` on the component's root element. Parts that have
19
+ * their own test ids use it as their prefix (`${testIdPrefix}-trigger`,
20
+ * ...); each component documents its own.
21
+ */
22
+ testIdPrefix?: string;
23
+ }
24
+
6
25
  /**
7
26
  * @pattern InfoTip
8
27
  * @status stable
@@ -37,7 +56,7 @@ import { VariantProps } from 'class-variance-authority';
37
56
  * <InfoTip text="Hover variant" trigger="hover" />
38
57
  * ```
39
58
  */
40
- interface InfoTipProps {
59
+ interface InfoTipProps extends CommonProps {
41
60
  /** The bubble's content. */
42
61
  text: string;
43
62
  /** Glyph size in pixels. */
@@ -49,8 +68,12 @@ interface InfoTipProps {
49
68
  * also on keyboard focus so it stays reachable without a pointer.
50
69
  */
51
70
  trigger?: "click" | "hover";
71
+ /** Classes on the trigger button. */
72
+ className?: string;
73
+ /** `data-testid` on the trigger button. */
74
+ testIdPrefix?: string;
52
75
  }
53
- declare function InfoTip({ text, size, label, trigger }: InfoTipProps): react.JSX.Element;
76
+ declare function InfoTip({ text, size, label, trigger, className, testIdPrefix }: InfoTipProps): react.JSX.Element;
54
77
 
55
78
  /**
56
79
  * @pattern AdvertiserQuickFilter
@@ -95,7 +118,7 @@ declare function InfoTip({ text, size, label, trigger }: InfoTipProps): react.JS
95
118
  * <AdvertiserQuickFilter caption="League" options={leagues} selected={selected} onChange={setSelected} prepopulate pageSize={10} />
96
119
  * ```
97
120
  */
98
- interface AdvertiserQuickFilterProps {
121
+ interface AdvertiserQuickFilterProps extends CommonProps {
99
122
  /** Small uppercase label above the value. */
100
123
  caption?: string;
101
124
  options: {
@@ -146,7 +169,7 @@ interface AdvertiserQuickFilterProps {
146
169
  /** The clear link in footerless mode (unused when `showFooter` is set). */
147
170
  clearLabel?: string;
148
171
  /**
149
- * Optional prefix for `data-testid` attributes on the trigger
172
+ * `data-testid` on the wrapper, and the prefix for the trigger
150
173
  * (`${testIdPrefix}-trigger`), the popover (`-popover`), the search input
151
174
  * (`-search`), the selected-section toggle (`-selected-toggle`), the
152
175
  * select-all-visible row (`-select-all-visible`), each option row
@@ -159,7 +182,7 @@ interface AdvertiserQuickFilterProps {
159
182
  */
160
183
  testIdPrefix?: string;
161
184
  }
162
- declare function AdvertiserQuickFilter({ caption, options, selected, onChange, align, icon, showFooter, clearValue, parked, prepopulate, pageSize, searchPlaceholder, promptLabel, noResultsHint, clearLabel, testIdPrefix, }: AdvertiserQuickFilterProps): react.JSX.Element;
185
+ declare function AdvertiserQuickFilter({ caption, options, selected, onChange, align, icon, showFooter, clearValue, parked, prepopulate, pageSize, searchPlaceholder, promptLabel, noResultsHint, clearLabel, className, testIdPrefix, }: AdvertiserQuickFilterProps): react.JSX.Element;
163
186
 
164
187
  /**
165
188
  * @pattern AdvertiserSearchPrompt
@@ -178,11 +201,11 @@ declare function AdvertiserQuickFilter({ caption, options, selected, onChange, a
178
201
  * <AdvertiserSearchPrompt label="a league name" />
179
202
  * ```
180
203
  */
181
- interface AdvertiserSearchPromptProps {
204
+ interface AdvertiserSearchPromptProps extends CommonProps {
182
205
  /** Completes "Start typing … to filter." */
183
206
  label?: string;
184
207
  }
185
- declare function AdvertiserSearchPrompt({ label }: AdvertiserSearchPromptProps): react.JSX.Element;
208
+ declare function AdvertiserSearchPrompt({ label, className, testIdPrefix }: AdvertiserSearchPromptProps): react.JSX.Element;
186
209
 
187
210
  /**
188
211
  * Fill and ink. `tone` answers "what kind of thing is this", never "what
@@ -196,12 +219,12 @@ type BadgeTone = "neutral" | "brand" | "brandSolid" | "success" | "warning" | "d
196
219
  * product happens to use today.
197
220
  */
198
221
  type BadgeKind = "label" | "count" | "eyebrow" | "category";
199
- interface BadgeProps {
222
+ interface BadgeProps extends CommonProps {
200
223
  /** What kind of thing this marks. Not a colour choice. */
201
224
  tone?: BadgeTone;
202
225
  /**
203
226
  * Shape and case. `count` for a number, `eyebrow` for a small-caps label,
204
- * `category` for what a thing is (a topic, a category): always quiet grey,
227
+ * `category` for what a thing is (a topic, a category): quiet grey unless `highlight`,
205
228
  * `tone` is ignored.
206
229
  */
207
230
  kind?: BadgeKind;
@@ -213,6 +236,12 @@ interface BadgeProps {
213
236
  * hidden from assistive tech rather than announced as a second thing.
214
237
  */
215
238
  dot?: boolean;
239
+ /**
240
+ * Only with `kind="category"`. Marks the one original or primary item in a
241
+ * set of versions -- "Original" among a creative's revisions -- in the pale
242
+ * brand tint instead of grey. At most one per set.
243
+ */
244
+ highlight?: boolean;
216
245
  /** Text, or an icon plus text. Keep it to a few words -- a badge annotates, it does not explain. */
217
246
  children: ReactNode;
218
247
  className?: string;
@@ -226,8 +255,9 @@ interface BadgeProps {
226
255
  * between them cover every badge treatment in the product.
227
256
  * @props
228
257
  * tone?: 'neutral' | 'brand' | 'brandSolid' | 'success' | 'warning' | 'danger' | 'ai' | 'overlay' (default 'neutral')
229
- * kind?: 'label' | 'count' | 'eyebrow' | 'category' (default 'label') -- category is always grey, tone ignored
258
+ * kind?: 'label' | 'count' | 'eyebrow' | 'category' (default 'label') -- category is grey unless highlight, tone ignored
230
259
  * dot?: boolean (default false) -- a filled dot before the label, in the tone's ink
260
+ * highlight?: boolean (default false) -- with kind="category" only: pale brand tint for the one original/primary item in a set
231
261
  * children: ReactNode
232
262
  * @tokens text-micro, rounded-full, bg-current, bg-subtle, bg-brand-primarySoft, bg-brand-primaryAction,
233
263
  * bg-status-success/15, bg-status-warning/30, bg-status-danger/15, bg-scrim,
@@ -258,11 +288,16 @@ interface BadgeProps {
258
288
  * has become a callout; use one.
259
289
  * @avoid when you are choosing the tone by colour rather than by meaning. A
260
290
  * red badge that does not mean failure teaches readers to ignore red.
291
+ * @use highlight on a category only to mark the one original or primary item
292
+ * in a set of versions, e.g. "Original" among a creative's revisions.
293
+ * @avoid highlight on more than one category in a set, or to make a category
294
+ * stand out for emphasis -- then nothing stands out.
261
295
  * @avoid when several sit in a row and all say something different -- that is
262
296
  * a definition list wearing badges, and reads as noise.
263
297
  * @usage
264
298
  * ```tsx
265
299
  * <Badge>Financial Services</Badge>
300
+ * <Badge kind="category" highlight>Original</Badge>
266
301
  * <Badge tone="brandSolid" kind="count">{activeFilters}</Badge>
267
302
  * <Badge tone="warning">Partial month</Badge>
268
303
  * <Badge tone="success" dot>Completed</Badge>
@@ -270,9 +305,9 @@ interface BadgeProps {
270
305
  * <Badge tone="brand"><Check size={11} aria-hidden="true" />Primary</Badge>
271
306
  * ```
272
307
  */
273
- declare function Badge({ tone, kind, dot, children, className }: BadgeProps): react.JSX.Element;
308
+ declare function Badge({ tone, kind, dot, highlight, children, className, testIdPrefix }: BadgeProps): react.JSX.Element;
274
309
 
275
- interface DeltaProps {
310
+ interface DeltaProps extends CommonProps {
276
311
  /** The change itself. Its sign picks the direction; render the absolute value. */
277
312
  value: number;
278
313
  /** What the number is in -- "%" for a percentage, "pts" for share points. */
@@ -325,7 +360,7 @@ interface DeltaProps {
325
360
  * <Delta value={1.4} suffix="pts" arrow />
326
361
  * ```
327
362
  */
328
- declare function Delta({ value, suffix, arrow, period, className }: DeltaProps): react.JSX.Element;
363
+ declare function Delta({ value, suffix, arrow, period, className, testIdPrefix }: DeltaProps): react.JSX.Element;
329
364
 
330
365
  /**
331
366
  * @pattern CheckBox
@@ -372,7 +407,7 @@ declare function Delta({ value, suffix, arrow, period, className }: DeltaProps):
372
407
  * <CheckBox checked={false} disabled ariaLabel="Select row" title="Max 5 rows -- remove one first" onChange={toggle} />
373
408
  * ```
374
409
  */
375
- interface CheckBoxProps {
410
+ interface CheckBoxProps extends CommonProps {
376
411
  /** Whether the box is checked. Controlled: the parent owns this value. */
377
412
  checked: boolean;
378
413
  /**
@@ -398,7 +433,9 @@ interface CheckBoxProps {
398
433
  * selects and opens a detail panel.
399
434
  */
400
435
  stopPropagation?: boolean;
401
- /** Forwarded as `data-testid`, for Playwright/test selectors. */
436
+ /** Sets `data-testid` on the `<button>`, for Playwright/test selectors. */
437
+ testIdPrefix?: string;
438
+ /** @deprecated Use `testIdPrefix`; it sets the same `data-testid`. Still works, and wins if both are set. */
402
439
  testId?: string;
403
440
  /**
404
441
  * Native tooltip -- e.g. explaining why a disabled box is disabled. Forwarded
@@ -409,7 +446,7 @@ interface CheckBoxProps {
409
446
  /** Extra classes merged onto the box -- e.g. a cursor or margin override. */
410
447
  className?: string;
411
448
  }
412
- declare function CheckBox({ checked, indeterminate, onChange, ariaLabel, disabled, stopPropagation, testId, title, className, }: CheckBoxProps): react.JSX.Element;
449
+ declare const CheckBox: react.ForwardRefExoticComponent<CheckBoxProps & react.RefAttributes<HTMLButtonElement>>;
413
450
  /**
414
451
  * @pattern CheckBoxBox
415
452
  * @status stable
@@ -442,7 +479,7 @@ declare function CheckBox({ checked, indeterminate, onChange, ariaLabel, disable
442
479
  * </button>
443
480
  * ```
444
481
  */
445
- interface CheckBoxBoxProps {
482
+ interface CheckBoxBoxProps extends CommonProps {
446
483
  /** Whether the box is checked. The owning element reports this to AT. */
447
484
  checked: boolean;
448
485
  /** Some-but-not-all state -- shows a dash instead of a check. */
@@ -452,7 +489,7 @@ interface CheckBoxBoxProps {
452
489
  /** Extra classes merged onto the box. */
453
490
  className?: string;
454
491
  }
455
- declare function CheckBoxBox({ checked, indeterminate, disabled, className }: CheckBoxBoxProps): react.JSX.Element;
492
+ declare const CheckBoxBox: react.ForwardRefExoticComponent<CheckBoxBoxProps & react.RefAttributes<HTMLSpanElement>>;
456
493
 
457
494
  /**
458
495
  * @pattern DateRangeFilter
@@ -511,7 +548,7 @@ declare function CheckBoxBox({ checked, indeterminate, disabled, className }: Ch
511
548
  * />
512
549
  * ```
513
550
  */
514
- interface DateRangeFilterProps {
551
+ interface DateRangeFilterProps extends CommonProps {
515
552
  /** Static label shown above the value when `showDates` is false. */
516
553
  caption?: string;
517
554
  /** Initial preset (matched case-insensitively against the active preset set) or, if unmatched, treated as a custom label. Ignored once `value`/`range` are given -- see those. */
@@ -580,7 +617,7 @@ interface DateRangeFilterProps {
580
617
  */
581
618
  onApply?: (label: string, start: Date, end: Date, compare?: string) => void;
582
619
  /**
583
- * Prefix for `data-testid` attributes on the trigger (`${testIdPrefix}-trigger`),
620
+ * `data-testid` on the wrapper, and the prefix for the trigger (`${testIdPrefix}-trigger`),
584
621
  * the popover (`-popover`), each preset (`-option-<slugified-label>`, e.g.
585
622
  * `-option-last-7-days`), each `compare` option (`-compare-<slugified-id>`),
586
623
  * and Cancel (`-cancel`) / Apply (`-apply`). Omit for no test-id wiring.
@@ -610,7 +647,7 @@ interface DateRangeFilterProps {
610
647
  */
611
648
  formatRange?: (start: Date, end: Date) => string;
612
649
  }
613
- 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, formatDate, formatRange, }: DateRangeFilterProps): react.JSX.Element;
650
+ declare function DateRangeFilter({ caption, defaultValue, value: controlledValue, range: controlledRange, align, placement, onChange, onRangeChange, showDates, shortDates, icon, presetSet, excludePresets, emptyLabel, today: todayProp, initialRange, compare, onApply, className, testIdPrefix, granularity, formatDate, formatRange, }: DateRangeFilterProps): react.JSX.Element;
614
651
 
615
652
  /**
616
653
  * @pattern SearchBar
@@ -693,7 +730,7 @@ interface SearchMatchValue {
693
730
  wordJoin: "Or" | "And";
694
731
  }
695
732
  declare const DEFAULT_SEARCH_MATCH: SearchMatchValue;
696
- interface SearchBarProps {
733
+ interface SearchBarProps extends CommonProps {
697
734
  /** Input placeholder text. Also used as the input's `aria-label`. */
698
735
  placeholder?: string;
699
736
  value?: string;
@@ -722,7 +759,8 @@ interface SearchBarProps {
722
759
  onDownloadAdCodes?: (codes: string[]) => void;
723
760
  className?: string;
724
761
  /**
725
- * Optional prefix for `data-testid` attributes on the input
762
+ * `data-testid` on the field's frame (`testIdPrefix` itself, 0.46.0+), and
763
+ * the prefix for `data-testid` attributes on the input
726
764
  * (`${testIdPrefix}-search`), its clear button (`-clear`), the match-type
727
765
  * trigger (`-mode-trigger`) and popover (`-mode-popover`), each mode row
728
766
  * (`-mode-anyWord`, `-mode-exactMatch`, `-mode-contextual`, `-mode-adCode`),
@@ -738,7 +776,7 @@ interface SearchBarProps {
738
776
  */
739
777
  testIdPrefix?: string;
740
778
  }
741
- declare function SearchBar({ placeholder, value, onChange, variant, size, matchValue, onMatchChange, adCodes, onAdCodesChange, isAdCodeMatched, onDownloadAdCodes, className, testIdPrefix, }: SearchBarProps): react.JSX.Element;
779
+ declare const SearchBar: react.ForwardRefExoticComponent<SearchBarProps & react.RefAttributes<HTMLInputElement>>;
742
780
 
743
781
  /**
744
782
  * @pattern SectionRail
@@ -776,7 +814,7 @@ declare function SearchBar({ placeholder, value, onChange, variant, size, matchV
776
814
  * </SectionRail>
777
815
  * ```
778
816
  */
779
- interface SectionRailProps {
817
+ interface SectionRailProps extends CommonProps {
780
818
  /** Section heading. */
781
819
  title: string;
782
820
  /** Use the serif display treatment instead of the default sans heading. */
@@ -790,7 +828,7 @@ interface SectionRailProps {
790
828
  /** The row's cards. Any content works — width is handled by the row, not the card. */
791
829
  children: React.ReactNode;
792
830
  }
793
- declare function SectionRail({ title, titleSerif, subtitle, viewAllLabel, viewAllHref, children, }: SectionRailProps): react.JSX.Element;
831
+ declare function SectionRail({ title, titleSerif, subtitle, viewAllLabel, viewAllHref, children, className, testIdPrefix, }: SectionRailProps): react.JSX.Element;
794
832
 
795
833
  /**
796
834
  * @pattern DataScopeFilter
@@ -822,14 +860,19 @@ declare function SectionRail({ title, titleSerif, subtitle, viewAllLabel, viewAl
822
860
  * <DataScopeFilter value={finalOnly} onChange={setFinalOnly} />
823
861
  * ```
824
862
  */
825
- interface DataScopeFilterProps {
863
+ interface DataScopeFilterProps extends CommonProps {
826
864
  value: boolean;
827
865
  onChange: (v: boolean) => void;
828
866
  /** Which edge of the trigger the popover aligns to. Both known consumers
829
867
  * anchor this at the right edge of a filter bar, hence the default. */
830
868
  align?: "left" | "right";
869
+ /**
870
+ * `data-testid` on the wrapper, and the prefix for the trigger
871
+ * (`${testIdPrefix}-trigger`) and the open menu (`${testIdPrefix}-popover`).
872
+ */
873
+ testIdPrefix?: string;
831
874
  }
832
- declare function DataScopeFilter({ value, onChange, align }: DataScopeFilterProps): react.JSX.Element;
875
+ declare function DataScopeFilter({ value, onChange, align, className, testIdPrefix }: DataScopeFilterProps): react.JSX.Element;
833
876
 
834
877
  /**
835
878
  * @pattern SelectFilter
@@ -886,7 +929,7 @@ declare function DataScopeFilter({ value, onChange, align }: DataScopeFilterProp
886
929
  * <SelectFilter caption="Country" value={country} onChange={setCountry} options={['United States', 'Canada', 'United Kingdom']} renderIcon={(c) => <img src={FLAGS[c]} alt="" />} />
887
930
  * ```
888
931
  */
889
- interface SelectFilterProps {
932
+ interface SelectFilterProps extends CommonProps {
890
933
  caption: string;
891
934
  value: string;
892
935
  options: string[];
@@ -896,10 +939,11 @@ interface SelectFilterProps {
896
939
  /** Stretch the trigger (and the popover, when true) to fill its container. */
897
940
  fullWidth?: boolean;
898
941
  /** Extra classes merged onto the trigger button -- e.g. a background
899
- * override for a filter bar that isn't sitting on a filter-tray canvas. */
942
+ * override for a filter bar that isn't sitting on a filter-tray canvas.
943
+ * (The trigger, not the wrapper: kept from before the package-wide rule.) */
900
944
  className?: string;
901
945
  /**
902
- * Optional prefix for `data-testid` attributes on the trigger
946
+ * `data-testid` on the wrapper, and the prefix for the trigger
903
947
  * (`${testIdPrefix}-trigger`), the popover (`${testIdPrefix}-popover`),
904
948
  * and each option (`${testIdPrefix}-option-<slugified-label>`). Omit
905
949
  * entirely for no test-id wiring at all -- added specifically so an
@@ -987,7 +1031,7 @@ declare function SelectFilter({ caption, value, options, onChange, align, fullWi
987
1031
  * </Card>
988
1032
  * ```
989
1033
  */
990
- interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title"> {
1034
+ interface CardProps extends Omit<React.HTMLAttributes<HTMLElement>, "title">, CommonProps {
991
1035
  /** Disable interactive hover treatment (when card isn't clickable). */
992
1036
  staticCard?: boolean;
993
1037
  /**
@@ -1032,7 +1076,7 @@ interface NoResultsAction {
1032
1076
  /** Rendered as the filled button; every other action renders as the quiet link/button. */
1033
1077
  primary?: boolean;
1034
1078
  }
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";
1079
+ 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 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-border-focus";
1036
1080
  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
1081
  /**
1038
1082
  * @pattern NoResultsEmptyState
@@ -1073,7 +1117,7 @@ declare const QUIET_ACTION_CLASS = "rounded-control text-dense font-medium text-
1073
1117
  * />
1074
1118
  * ```
1075
1119
  */
1076
- interface NoResultsEmptyStateProps {
1120
+ interface NoResultsEmptyStateProps extends CommonProps {
1077
1121
  /** @default NO_RESULTS_TITLE */
1078
1122
  title?: string;
1079
1123
  /** Replaces the default body wholesale, workspace name included. */
@@ -1100,7 +1144,7 @@ interface NoResultsEmptyStateProps {
1100
1144
  */
1101
1145
  testIdPrefix?: string;
1102
1146
  }
1103
- declare function NoResultsEmptyState({ title, body, workspaceName, hasFilters, onClearFilters, onEditFilters, actions, testIdPrefix, }: NoResultsEmptyStateProps): react.JSX.Element;
1147
+ declare function NoResultsEmptyState({ title, body, workspaceName, hasFilters, onClearFilters, onEditFilters, actions, className, testIdPrefix, }: NoResultsEmptyStateProps): react.JSX.Element;
1104
1148
 
1105
1149
  interface SummaryGroupItemValue {
1106
1150
  id: string;
@@ -1142,7 +1186,7 @@ interface SummaryGroup {
1142
1186
  * naming maps to this package's `shadow-raised`/`shadow-overlay` respectively
1143
1187
  * (raised: a static card like this one; overlay: a floating popover/menu),
1144
1188
  * not a 1:1 name swap.
1145
- * @tokens text-micro, text-dense, rounded-card, border-border-default, bg-surface, shadow-raised,
1189
+ * @tokens text-micro, text-dense, rounded-card, border-border-default, bg-surface, shadow-raised, focus-visible:outline-border-focus,
1146
1190
  * text-text-secondary, text-text-primary, rounded-full, bg-subtle,
1147
1191
  * rounded-control, bg-canvas, hover:bg-subtle, hover:text-text-danger,
1148
1192
  * text-text-link, divide-border-default
@@ -1163,19 +1207,18 @@ interface SummaryGroup {
1163
1207
  * <WorkspaceSelectedCard groups={[{ id: 'advertisers', label: 'Advertisers', items: selected, onRemove: removeOne, onRemoveAll: clearAll }]} />
1164
1208
  * ```
1165
1209
  */
1166
- interface WorkspaceSelectedCardProps {
1210
+ interface WorkspaceSelectedCardProps extends CommonProps {
1167
1211
  groups: SummaryGroup[];
1168
1212
  /**
1169
- * Optional prefix for `data-testid` attributes on each group's toggle
1213
+ * `data-testid` on the card (`testIdPrefix` itself, 0.46.0+), and the
1214
+ * prefix for `data-testid` attributes on each group's toggle
1170
1215
  * (`${testIdPrefix}-group-<group.id>`) and its "Remove all" button
1171
1216
  * (`${testIdPrefix}-remove-all-<group.id>`), applied recursively to
1172
1217
  * sub-groups too. Omit for no test-id wiring.
1173
1218
  *
1174
1219
  * NOTE: this does not reproduce mr-clientapps-insights-studio's current
1175
1220
  * fixed ids byte-for-byte -- its container carries a separate, unrelated
1176
- * `workspace-selected-summary` id (this component has no single container
1177
- * element those groups sit inside, by design, so there's nothing to attach
1178
- * an equivalent id to) while its groups use a *different* prefix,
1221
+ * `workspace-selected-summary` id while its groups use a *different* prefix,
1179
1222
  * `workspace-summary-group-<type>` / `workspace-summary-remove-all-<type>`.
1180
1223
  * A consumer with existing Playwright locators keyed off those exact
1181
1224
  * strings needs to update them, or the caller needs its own id mapping --
@@ -1184,7 +1227,7 @@ interface WorkspaceSelectedCardProps {
1184
1227
  */
1185
1228
  testIdPrefix?: string;
1186
1229
  }
1187
- declare function WorkspaceSelectedCard({ groups, testIdPrefix }: WorkspaceSelectedCardProps): react.JSX.Element;
1230
+ declare function WorkspaceSelectedCard({ groups, className, testIdPrefix }: WorkspaceSelectedCardProps): react.JSX.Element;
1188
1231
 
1189
1232
  /**
1190
1233
  * @pattern BarChartPlaceholder
@@ -1211,11 +1254,11 @@ declare function WorkspaceSelectedCard({ groups, testIdPrefix }: WorkspaceSelect
1211
1254
  * <BarChartPlaceholder height={180} />
1212
1255
  * ```
1213
1256
  */
1214
- interface BarChartPlaceholderProps {
1257
+ interface BarChartPlaceholderProps extends CommonProps {
1215
1258
  /** Chart height in pixels. */
1216
1259
  height?: number;
1217
1260
  }
1218
- declare function BarChartPlaceholder({ height }: BarChartPlaceholderProps): react.JSX.Element;
1261
+ declare function BarChartPlaceholder({ height, className, testIdPrefix }: BarChartPlaceholderProps): react.JSX.Element;
1219
1262
 
1220
1263
  /**
1221
1264
  * @pattern LineChartPlaceholder
@@ -1243,11 +1286,11 @@ declare function BarChartPlaceholder({ height }: BarChartPlaceholderProps): reac
1243
1286
  * <LineChartPlaceholder height={200} />
1244
1287
  * ```
1245
1288
  */
1246
- interface LineChartPlaceholderProps {
1289
+ interface LineChartPlaceholderProps extends CommonProps {
1247
1290
  /** Chart height in pixels. */
1248
1291
  height?: number;
1249
1292
  }
1250
- declare function LineChartPlaceholder({ height }: LineChartPlaceholderProps): react.JSX.Element;
1293
+ declare function LineChartPlaceholder({ height, className, testIdPrefix }: LineChartPlaceholderProps): react.JSX.Element;
1251
1294
 
1252
1295
  /**
1253
1296
  * @pattern PieChartPlaceholder
@@ -1273,13 +1316,13 @@ declare function LineChartPlaceholder({ height }: LineChartPlaceholderProps): re
1273
1316
  * <PieChartPlaceholder legendRows={4} />
1274
1317
  * ```
1275
1318
  */
1276
- interface PieChartPlaceholderProps {
1319
+ interface PieChartPlaceholderProps extends CommonProps {
1277
1320
  /** Chart height in pixels. */
1278
1321
  height?: number;
1279
1322
  /** Number of blank legend rows to render beside the disc. */
1280
1323
  legendRows?: number;
1281
1324
  }
1282
- declare function PieChartPlaceholder({ height, legendRows }: PieChartPlaceholderProps): react.JSX.Element;
1325
+ declare function PieChartPlaceholder({ height, legendRows, className, testIdPrefix }: PieChartPlaceholderProps): react.JSX.Element;
1283
1326
 
1284
1327
  /**
1285
1328
  * @pattern StackedColumnPlaceholder
@@ -1306,7 +1349,7 @@ declare function PieChartPlaceholder({ height, legendRows }: PieChartPlaceholder
1306
1349
  * <StackedColumnPlaceholder axis />
1307
1350
  * ```
1308
1351
  */
1309
- interface StackedColumnPlaceholderProps {
1352
+ interface StackedColumnPlaceholderProps extends CommonProps {
1310
1353
  /** Chart height in pixels. */
1311
1354
  height?: number;
1312
1355
  /** Column width in pixels. */
@@ -1316,7 +1359,7 @@ interface StackedColumnPlaceholderProps {
1316
1359
  /** Wrap the column in a 0-100% axis frame, matching a live share-of-total chart. */
1317
1360
  axis?: boolean;
1318
1361
  }
1319
- declare function StackedColumnPlaceholder({ height, width, legendRows, axis, }: StackedColumnPlaceholderProps): react.JSX.Element;
1362
+ declare function StackedColumnPlaceholder({ height, width, legendRows, axis, className, testIdPrefix, }: StackedColumnPlaceholderProps): react.JSX.Element;
1320
1363
 
1321
1364
  /**
1322
1365
  * @pattern Tooltip
@@ -1379,7 +1422,7 @@ declare function StackedColumnPlaceholder({ height, width, legendRows, axis, }:
1379
1422
  * <Tooltip label="Sports" anchorRef={ref} placement="right" delay={500} variant="inverted" />
1380
1423
  * ```
1381
1424
  */
1382
- interface TooltipProps {
1425
+ interface TooltipProps extends CommonProps {
1383
1426
  /** Tooltip content shown on hover/focus. */
1384
1427
  label: ReactNode;
1385
1428
  /** The trigger content, wrapped inline. Omit when using `anchorRef`. */
@@ -1427,7 +1470,10 @@ interface TooltipProps {
1427
1470
  delay?: number;
1428
1471
  /** 'surface' (default) or 'inverted' -- see the pattern description. */
1429
1472
  variant?: "surface" | "inverted";
1430
- /** Optional prefix for the floating bubble's `data-testid` (`${testIdPrefix}-tooltip`). */
1473
+ /**
1474
+ * `data-testid` on the inline trigger wrapper (none with `anchorRef`), and the
1475
+ * prefix for the floating bubble's (`${testIdPrefix}-tooltip`).
1476
+ */
1431
1477
  testIdPrefix?: string;
1432
1478
  }
1433
1479
  declare function Tooltip({ label, children, anchorRef, className, whenTruncated, interactive, placement, align, delay, variant, testIdPrefix, }: TooltipProps): react.JSX.Element | null;
@@ -1451,13 +1497,13 @@ declare function Tooltip({ label, children, anchorRef, className, whenTruncated,
1451
1497
  * <AdvertiserNoResults query={query} hint="Try a different spelling, or switch the Agency Type." />
1452
1498
  * ```
1453
1499
  */
1454
- interface AdvertiserNoResultsProps {
1500
+ interface AdvertiserNoResultsProps extends CommonProps {
1455
1501
  /** The search term that returned nothing. */
1456
1502
  query: string;
1457
1503
  /** The actionable next step under the message. */
1458
1504
  hint?: string;
1459
1505
  }
1460
- declare function AdvertiserNoResults({ query, hint, }: AdvertiserNoResultsProps): react.JSX.Element;
1506
+ declare function AdvertiserNoResults({ query, hint, className, testIdPrefix, }: AdvertiserNoResultsProps): react.JSX.Element;
1461
1507
 
1462
1508
  /**
1463
1509
  * @pattern SelectAllVisible
@@ -1469,7 +1515,7 @@ declare function AdvertiserNoResults({ query, hint, }: AdvertiserNoResultsProps)
1469
1515
  * `ScopedSearchSection` uses the identical threshold and copy for its own
1470
1516
  * scoped search sections). Communicates how many are visible and toggles
1471
1517
  * between "Select all" and "Deselect" based on `allSelected`.
1472
- * @tokens rounded-control, text-text-link, hover:bg-subtle
1518
+ * @tokens rounded-control, text-text-link, hover:bg-subtle, focus-visible:outline-border-focus
1473
1519
  * @dependencies lucide-react
1474
1520
  * @a11y A plain <button>, not a checkbox -- it performs a bulk action rather
1475
1521
  * than holding a checked state, so it deliberately carries no
@@ -1482,16 +1528,16 @@ declare function AdvertiserNoResults({ query, hint, }: AdvertiserNoResultsProps)
1482
1528
  * )}
1483
1529
  * ```
1484
1530
  */
1485
- interface SelectAllVisibleProps {
1531
+ interface SelectAllVisibleProps extends CommonProps {
1486
1532
  /** Number of currently visible results. */
1487
1533
  count: number;
1488
1534
  /** Whether every visible result is already selected. */
1489
1535
  allSelected: boolean;
1490
1536
  onToggle: () => void;
1491
- /** Optional prefix for the row's `data-testid` (`${testIdPrefix}-select-all-visible`). */
1537
+ /** Optional prefix for the row's `data-testid` (`${testIdPrefix}-select-all-visible`, on the root `<button>`). */
1492
1538
  testIdPrefix?: string;
1493
1539
  }
1494
- declare function SelectAllVisible({ count, allSelected, onToggle, testIdPrefix }: SelectAllVisibleProps): react.JSX.Element;
1540
+ declare function SelectAllVisible({ count, allSelected, onToggle, className, testIdPrefix }: SelectAllVisibleProps): react.JSX.Element;
1495
1541
 
1496
1542
  /**
1497
1543
  * @pattern SelectedSection
@@ -1507,7 +1553,7 @@ declare function SelectAllVisible({ count, allSelected, onToggle, testIdPrefix }
1507
1553
  * row content (plain rows, opacity-dimmed "parked" rows, per-tray custom
1508
1554
  * columns), so a fixed row shape would have forced a compromise none of them
1509
1555
  * need. Self-hides at `count === 0` so a caller can render it unconditionally.
1510
- * @tokens text-micro, rounded-control, text-text-tertiary, hover:text-text-primary
1556
+ * @tokens text-micro, rounded-control, text-text-tertiary, hover:text-text-primary, focus-visible:outline-border-focus
1511
1557
  * @dependencies lucide-react
1512
1558
  * @a11y The disclosure header is a button reporting aria-expanded, and the
1513
1559
  * chevron is aria-hidden. It is a disclosure, not a selection control --
@@ -1519,16 +1565,16 @@ declare function SelectAllVisible({ count, allSelected, onToggle, testIdPrefix }
1519
1565
  * </SelectedSection>
1520
1566
  * ```
1521
1567
  */
1522
- interface SelectedSectionProps {
1568
+ interface SelectedSectionProps extends CommonProps {
1523
1569
  count: number;
1524
1570
  open: boolean;
1525
1571
  onToggle: () => void;
1526
1572
  /** The caller renders each selected row itself. */
1527
1573
  children: React.ReactNode;
1528
- /** Optional prefix for the toggle button's `data-testid` (`${testIdPrefix}-selected-toggle`). */
1574
+ /** `data-testid` on the section, and the prefix for the toggle button's (`${testIdPrefix}-selected-toggle`). */
1529
1575
  testIdPrefix?: string;
1530
1576
  }
1531
- declare function SelectedSection({ count, open, onToggle, children, testIdPrefix }: SelectedSectionProps): react.JSX.Element | null;
1577
+ declare function SelectedSection({ count, open, onToggle, children, className, testIdPrefix }: SelectedSectionProps): react.JSX.Element | null;
1532
1578
 
1533
1579
  interface PickerRow {
1534
1580
  id: string;
@@ -1559,7 +1605,7 @@ interface SelectionPickerAccountList {
1559
1605
  entityTypes: string[];
1560
1606
  updatedAt: string;
1561
1607
  }
1562
- interface SelectionPickerProps<T extends PickerRow> {
1608
+ interface SelectionPickerProps<T extends PickerRow> extends CommonProps {
1563
1609
  /** Full catalog to search/filter over client-side. Ignored when `results`
1564
1610
  * is given instead -- that's the async/paginated mode, see `results`. */
1565
1611
  catalog?: T[];
@@ -1626,7 +1672,8 @@ interface SelectionPickerProps<T extends PickerRow> {
1626
1672
  * slot; this component has no opinion on what it renders. */
1627
1673
  toolbarExtra?: ReactNode;
1628
1674
  /**
1629
- * Optional prefix for `data-testid` attributes on the search input
1675
+ * `data-testid` on the picker's wrapper, and the prefix for `data-testid`
1676
+ * attributes on the search input
1630
1677
  * (`${testIdPrefix}-search`), the source toggle buttons
1631
1678
  * (`${testIdPrefix}-source-search` / `${testIdPrefix}-source-lists`),
1632
1679
  * each filter dropdown trigger (`${testIdPrefix}-filter-<slug>`) and each
@@ -1702,7 +1749,7 @@ interface SelectionPickerProps<T extends PickerRow> {
1702
1749
  * />
1703
1750
  * ```
1704
1751
  */
1705
- declare function SelectionPicker<T extends PickerRow>({ catalog, selected, onChange, columns, filters, searchPlaceholder, getChildren, helper, showInfoColumn, defaultFilters, requireQuery, showResultsWithoutSearch, accountLists, selectedListIds, onToggleList, lockedIds, results, onQueryChange, loading, error, errorMessage, hasMore, loadingMore, onLoadMore, toolbarExtra, testIdPrefix, }: SelectionPickerProps<T>): react.JSX.Element;
1752
+ declare function SelectionPicker<T extends PickerRow>({ catalog, selected, onChange, columns, filters, searchPlaceholder, getChildren, helper, showInfoColumn, defaultFilters, requireQuery, showResultsWithoutSearch, accountLists, selectedListIds, onToggleList, lockedIds, results, onQueryChange, loading, error, errorMessage, hasMore, loadingMore, onLoadMore, toolbarExtra, className, testIdPrefix, }: SelectionPickerProps<T>): react.JSX.Element;
1706
1753
 
1707
1754
  interface PubBreak {
1708
1755
  brand: string;
@@ -1712,7 +1759,7 @@ interface PubBreak {
1712
1759
  pct: number;
1713
1760
  yoy: number | "NEW";
1714
1761
  }
1715
- interface PublisherBreakdownListProps {
1762
+ interface PublisherBreakdownListProps extends CommonProps {
1716
1763
  rows: PubBreak[];
1717
1764
  /** @default 10 */
1718
1765
  defaultVisibleCount?: number;
@@ -1740,7 +1787,7 @@ interface PublisherBreakdownListProps {
1740
1787
  * deliberately NOT merged into this component -- see the escape-hatch note
1741
1788
  * below. `renderLogo` lets a caller plug in real per-row logos; without it,
1742
1789
  * rows show a plain initials monogram.
1743
- * @tokens text-micro, text-text-primary, text-text-tertiary, text-text-secondary,
1790
+ * @tokens text-micro, text-text-primary, text-text-tertiary, text-text-secondary, focus-visible:outline-border-focus,
1744
1791
  * text-text-link, text-text-warning, text-text-success, text-text-danger,
1745
1792
  * border-border-default, bg-surface, bg-subtle, rounded-control, rounded-full,
1746
1793
  * shadow-overlay, text-badge
@@ -1771,14 +1818,14 @@ interface PublisherBreakdownListProps {
1771
1818
  * <PublisherBreakdownList rows={publishers} defaultVisibleCount={10} />
1772
1819
  * ```
1773
1820
  */
1774
- declare function PublisherBreakdownList({ rows, defaultVisibleCount, padded, viewAllHref, renderLogo }: PublisherBreakdownListProps): react.JSX.Element;
1821
+ declare function PublisherBreakdownList({ rows, defaultVisibleCount, padded, viewAllHref, renderLogo, className, testIdPrefix, }: PublisherBreakdownListProps): react.JSX.Element;
1775
1822
 
1776
1823
  declare const buttonVariants: (props?: ({
1777
1824
  variant?: "link" | "danger" | "primary" | "secondary" | "ghost" | "dangerGhost" | null | undefined;
1778
1825
  size?: "sm" | "md" | "lg" | "xs" | null | undefined;
1779
1826
  iconOnly?: boolean | null | undefined;
1780
1827
  } & class_variance_authority_types.ClassProp) | undefined) => string;
1781
- interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
1828
+ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants>, CommonProps {
1782
1829
  /**
1783
1830
  * Render the button styling onto the single child element instead of a
1784
1831
  * `<button>` (e.g. a router `<Link>` or an `<a>`). The child must be exactly
@@ -1864,7 +1911,7 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, VariantPr
1864
1911
  */
1865
1912
  declare const Button: react.ForwardRefExoticComponent<ButtonProps & react.RefAttributes<HTMLButtonElement>>;
1866
1913
 
1867
- interface FilterDropdownFooterProps {
1914
+ interface FilterDropdownFooterProps extends CommonProps {
1868
1915
  /** Omit to hide the Clear All action for dropdowns that don't need it. */
1869
1916
  onClear?: () => void;
1870
1917
  /** Fires when the primary action is pressed. */
@@ -1888,9 +1935,13 @@ interface FilterDropdownFooterProps {
1888
1935
  * <FilterDropdownFooter onApply={handleApply} onClear={handleClear} />
1889
1936
  * ```
1890
1937
  */
1891
- declare function FilterDropdownFooter({ onClear, onApply, clearLabel, applyLabel, }: FilterDropdownFooterProps): react.JSX.Element;
1938
+ declare function FilterDropdownFooter({ onClear, onApply, clearLabel, applyLabel, className, testIdPrefix, }: FilterDropdownFooterProps): react.JSX.Element;
1892
1939
 
1893
- interface NameListModalProps {
1940
+ interface NameListModalProps extends CommonProps {
1941
+ /** Classes on the dialog panel (the visible surface), not the backdrop. */
1942
+ className?: string;
1943
+ /** `data-testid` on the dialog panel. */
1944
+ testIdPrefix?: string;
1894
1945
  title: string;
1895
1946
  initialName: string;
1896
1947
  submitLabel: string;
@@ -1942,7 +1993,7 @@ interface NameListModalProps {
1942
1993
  * <NameListModal title="Rename list" initialName={list.name} submitLabel="Save" onCancel={close} onSubmit={rename} />
1943
1994
  * ```
1944
1995
  */
1945
- declare function NameListModal({ title, initialName, submitLabel, onCancel, onSubmit, fieldLabel, placeholder, options, }: NameListModalProps): react.ReactPortal;
1996
+ declare function NameListModal({ title, initialName, submitLabel, onCancel, onSubmit, fieldLabel, placeholder, options, className, testIdPrefix, }: NameListModalProps): react.ReactPortal;
1946
1997
 
1947
1998
  /**
1948
1999
  * Kept for compatibility. Since 0.18.5 both variants draw the same
@@ -1953,7 +2004,7 @@ declare function NameListModal({ title, initialName, submitLabel, onCancel, onSu
1953
2004
  type ChipVariant = "box" | "inline";
1954
2005
  /** Shared styling for filter-bar chip triggers, so every dropdown chip matches. */
1955
2006
  declare function chipTriggerClass(_variant?: ChipVariant): string;
1956
- interface ChipContentProps {
2007
+ interface ChipContentProps extends CommonProps {
1957
2008
  /** Small uppercase label above the value. */
1958
2009
  caption: string;
1959
2010
  /** The current selection, shown below the caption. */
@@ -1985,14 +2036,14 @@ interface ChipContentProps {
1985
2036
  * </button>
1986
2037
  * ```
1987
2038
  */
1988
- declare function ChipContent({ caption, value, icon }: ChipContentProps): react.JSX.Element;
2039
+ declare function ChipContent({ caption, value, icon, className, testIdPrefix }: ChipContentProps): react.JSX.Element;
1989
2040
 
1990
2041
  interface ChipLike {
1991
2042
  key: string;
1992
2043
  label: string;
1993
2044
  groupLabel: string;
1994
2045
  }
1995
- interface FilterChipBarProps<T extends ChipLike> {
2046
+ interface FilterChipBarProps<T extends ChipLike> extends CommonProps {
1996
2047
  /** Any `{ key, label, groupLabel }` shape — only those fields are read. */
1997
2048
  chips: T[];
1998
2049
  onRemove: (chip: T) => void;
@@ -2011,7 +2062,7 @@ interface FilterChipBarProps<T extends ChipLike> {
2011
2062
  * (tooltip + outline). "Clear all" trails the chips. Generic over the
2012
2063
  * page's own chip type — only the shared key/label/groupLabel fields are
2013
2064
  * used.
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
2065
+ * @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, focus-visible:outline-border-focus, rounded-small
2015
2066
  * @dependencies lucide-react
2016
2067
  * @behavior A parked chip (key in `parkedKeys`) renders with no fill and a
2017
2068
  * dashed edge instead of the solid applied style, and its hover tooltip
@@ -2024,7 +2075,7 @@ interface FilterChipBarProps<T extends ChipLike> {
2024
2075
  * <FilterChipBar chips={activeChips} onRemove={removeChip} onClearAll={clearAll} />
2025
2076
  * ```
2026
2077
  */
2027
- declare function FilterChipBar<T extends ChipLike>({ chips, onRemove, onClearAll, parkedKeys }: FilterChipBarProps<T>): react.JSX.Element | null;
2078
+ declare function FilterChipBar<T extends ChipLike>({ chips, onRemove, onClearAll, parkedKeys, className, testIdPrefix }: FilterChipBarProps<T>): react.JSX.Element | null;
2028
2079
 
2029
2080
  type SortDir = "asc" | "desc";
2030
2081
  /** An active column and direction, or `null` for the unsorted state. */
@@ -2056,7 +2107,7 @@ declare function ariaSortFor<K extends string>(sort: SortState<K> | {
2056
2107
  dir: SortDir;
2057
2108
  }, key: K): "ascending" | "descending" | undefined;
2058
2109
 
2059
- interface SortButtonProps<K extends string> {
2110
+ interface SortButtonProps<K extends string> extends CommonProps {
2060
2111
  label: string;
2061
2112
  sortKey: K;
2062
2113
  /** Current sort; a null `key` renders every SortButton inactive. See `sortProp`. */
@@ -2074,7 +2125,10 @@ interface SortButtonProps<K extends string> {
2074
2125
  sortable?: boolean;
2075
2126
  /** Matches the column's alignment, so a label that wraps lines up with the cells under it. */
2076
2127
  align?: "left" | "center" | "right";
2077
- /** Optional prefix for the button's `data-testid` (`${testIdPrefix}-sort-${sortKey}`). Omit for no test-id wiring. */
2128
+ /**
2129
+ * Optional prefix for the button's `data-testid` (`${testIdPrefix}-sort-${sortKey}`, on the root `<button>`;
2130
+ * the plain-text form for `sortable={false}` gets none). Omit for no test-id wiring.
2131
+ */
2078
2132
  testIdPrefix?: string;
2079
2133
  }
2080
2134
  /**
@@ -2110,9 +2164,13 @@ interface SortButtonProps<K extends string> {
2110
2164
  * </th>
2111
2165
  * ```
2112
2166
  */
2113
- declare function SortButton<K extends string>({ label, sortKey, sort, onSort, disabled, sortable, align, testIdPrefix, }: SortButtonProps<K>): react.JSX.Element;
2167
+ declare const SortButton: (<K extends string>(props: SortButtonProps<K> & {
2168
+ ref?: Ref<HTMLButtonElement>;
2169
+ }) => ReactElement | null) & {
2170
+ displayName?: string;
2171
+ };
2114
2172
 
2115
- interface PagerProps {
2173
+ interface PagerProps extends CommonProps {
2116
2174
  /** The current page, 1-indexed. */
2117
2175
  page: number;
2118
2176
  totalPages: number;
@@ -2138,7 +2196,7 @@ interface PagerProps {
2138
2196
  * the left if the reader needs it.
2139
2197
  * @avoid under a full-page table -- use TablePagination, which adds the
2140
2198
  * first/last steps, the range readout and the rows-per-page select.
2141
- * @tokens text-dense, rounded-control, text-text-secondary, bg-subtle, text-text-primary, hover:bg-subtle, hover:text-text-primary, text-text-tertiary
2199
+ * @tokens text-dense, rounded-control, text-text-secondary, bg-subtle, text-text-primary, hover:bg-subtle, hover:text-text-primary, text-text-tertiary, focus-visible:outline-border-focus
2142
2200
  * @dependencies lucide-react
2143
2201
  * @a11y Renders its own <nav aria-label="Pagination"> landmark, like
2144
2202
  * TablePagination, so don't wrap it in another <nav>. Pass `label` to name it
@@ -2151,7 +2209,7 @@ interface PagerProps {
2151
2209
  * <Pager page={page} totalPages={totalPages} onPage={setPage} />
2152
2210
  * ```
2153
2211
  */
2154
- declare function Pager({ page, totalPages, onPage, disabled, label }: PagerProps): react.JSX.Element;
2212
+ declare function Pager({ page, totalPages, onPage, disabled, label, className, testIdPrefix }: PagerProps): react.JSX.Element;
2155
2213
 
2156
2214
  declare const SIZES$1: {
2157
2215
  /** Matches a 15px lucide icon exactly, so a workspace name in a menu row
@@ -2164,7 +2222,7 @@ declare const SIZES$1: {
2164
2222
  readonly md: "h-7 w-7 text-micro";
2165
2223
  readonly lg: "h-11 w-11 text-panel-title";
2166
2224
  };
2167
- interface WorkspaceAvatarProps {
2225
+ interface WorkspaceAvatarProps extends CommonProps {
2168
2226
  /** Omit for the unscoped "All data workspace". */
2169
2227
  name?: string;
2170
2228
  size?: keyof typeof SIZES$1;
@@ -2185,10 +2243,10 @@ interface WorkspaceAvatarProps {
2185
2243
  * <WorkspaceAvatar name="Capital One" size="sm" />
2186
2244
  * ```
2187
2245
  */
2188
- declare function WorkspaceAvatar({ name, size }: WorkspaceAvatarProps): react.JSX.Element;
2246
+ declare function WorkspaceAvatar({ name, size, className, testIdPrefix }: WorkspaceAvatarProps): react.JSX.Element;
2189
2247
 
2190
2248
  type ToastTone = "neutral" | "success" | "warning";
2191
- interface ToastProps {
2249
+ interface ToastProps extends CommonProps {
2192
2250
  /** What happened, in a short sentence. Past tense: "12 accounts removed". */
2193
2251
  message: ReactNode;
2194
2252
  /**
@@ -2276,9 +2334,9 @@ interface ToastProps {
2276
2334
  * <Toast tone="success" message="Account created" onClose={clear} />
2277
2335
  * ```
2278
2336
  */
2279
- declare function Toast({ message, action, onClose, tone, duration, className }: ToastProps): react.ReactPortal;
2337
+ declare function Toast({ message, action, onClose, tone, duration, className, testIdPrefix }: ToastProps): react.ReactPortal;
2280
2338
 
2281
- interface TagProps {
2339
+ interface TagProps extends CommonProps {
2282
2340
  /** The tag's text, e.g. "Digital". Keep it short: the chip doesn't wrap or truncate. */
2283
2341
  children: ReactNode;
2284
2342
  /** Extra classes merged onto the chip. */
@@ -2298,7 +2356,7 @@ interface TagProps {
2298
2356
  * ```
2299
2357
  */
2300
2358
  /** @deprecated Use `<Badge kind="category">`. */
2301
- declare function Tag({ children, className }: TagProps): react.JSX.Element;
2359
+ declare function Tag({ children, className, testIdPrefix }: TagProps): react.JSX.Element;
2302
2360
 
2303
2361
  /**
2304
2362
  * @pattern TablePagination
@@ -2315,7 +2373,7 @@ declare function Tag({ children, className }: TagProps): react.JSX.Element;
2315
2373
  * works through, where the total and the page size matter.
2316
2374
  * @avoid in a card or a compact list -- use Pager, which is only the page
2317
2375
  * controls and fits the narrower space.
2318
- * @tokens text-dense, rounded-control, text-text-primary, text-text-secondary, text-text-tertiary, bg-subtle, hover:bg-subtle, hover:text-text-primary
2376
+ * @tokens text-dense, rounded-control, text-text-primary, text-text-secondary, text-text-tertiary, bg-subtle, hover:bg-subtle, hover:text-text-primary, focus-visible:outline-border-focus
2319
2377
  * @behavior The current page is a quiet grey fill with a dark bold number,
2320
2378
  * keeping blue for actions. The rows-per-page control is the compact
2321
2379
  * SelectFilter (`size="sm"`), our own menu, not the browser's. First/prev disable on page 1, next/last on the last
@@ -2360,7 +2418,7 @@ declare function TablePagination({ page, perPage, totalItems, onPageChange, onPe
2360
2418
  className?: string;
2361
2419
  /**
2362
2420
  * Optional prefix for `data-testid` attributes on the bar (`testIdPrefix`
2363
- * itself), the rows-per-page menu (a `SelectFilter`: its button
2421
+ * itself), the rows-per-page menu (a `SelectFilter`: its wrapper `-per-page`, its button
2364
2422
  * `-per-page-trigger`, its list `-per-page-popover` and each size
2365
2423
  * `-per-page-option-<n>`, e.g. `-per-page-option-50`), the step buttons
2366
2424
  * (`-first`, `-prev`, `-next`, `-last`) and each page button (`-page-<n>`).
@@ -2375,7 +2433,7 @@ type DateGranularity = 'month' | 'quarter' | 'year';
2375
2433
  /** Resolve a label to its actual [start, end] span, ending at `today`. */
2376
2434
  declare function resolveRange(label: string, today?: Date): [Date, Date];
2377
2435
  /** @deprecated Use DateRangeFilter, with `granularity="month"` for monthly data. */
2378
- declare function DateRangePicker({ defaultValue, granularity, align, presets, onChange, onRangeChange, showFooter, today, years, formatDate, formatRange, }: {
2436
+ declare function DateRangePicker({ defaultValue, granularity, align, presets, onChange, onRangeChange, showFooter, today, years, formatDate, formatRange, className, testIdPrefix, }: CommonProps & {
2379
2437
  defaultValue?: string;
2380
2438
  align?: 'left' | 'right';
2381
2439
  /**
@@ -2464,7 +2522,12 @@ interface MultiSelectGroup {
2464
2522
  * hints={{ national: "Ads that run nationwide" }} note="Nothing picked means every market." />
2465
2523
  * ```
2466
2524
  */
2467
- declare function MultiSelectFilter({ caption, options, groups, counts, variant, selected, onChange, allLabel, searchable, searchPlaceholder, align, fullIsAll, min, icon, showFooter, clearValue, menuWidthClass, plainParent, fullWidth, loading, error, onRetry, valueLabel, hints, note, }: {
2525
+ declare function MultiSelectFilter({ caption, options, groups, counts, variant, selected, onChange, allLabel, searchable, searchPlaceholder, align, fullIsAll, min, icon, showFooter, clearValue, menuWidthClass, plainParent, fullWidth, loading, error, onRetry, valueLabel, hints, note, className, testIdPrefix, }: Omit<CommonProps, 'testIdPrefix'> & {
2526
+ /**
2527
+ * `data-testid` on the wrapper, and the prefix for the trigger
2528
+ * (`${testIdPrefix}-trigger`) and the open menu (`${testIdPrefix}-popover`).
2529
+ */
2530
+ testIdPrefix?: string;
2468
2531
  caption: string;
2469
2532
  /**
2470
2533
  * Live option-id -> result count. Supplying it makes the menu faceted:
@@ -2542,7 +2605,7 @@ declare const SIZES: {
2542
2605
  readonly on: "translate-x-[22px]";
2543
2606
  };
2544
2607
  };
2545
- interface ToggleProps {
2608
+ interface ToggleProps extends CommonProps {
2546
2609
  /** Whether the switch is on. Controlled: the parent owns this value. */
2547
2610
  checked: boolean;
2548
2611
  /** Receives the value being switched TO, not the current one. */
@@ -2555,7 +2618,7 @@ interface ToggleProps {
2555
2618
  disabled?: boolean;
2556
2619
  /** Extra classes merged onto the track (the outer `<button>`). */
2557
2620
  className?: string;
2558
- /** Optional prefix for the switch's `data-testid` (`${testIdPrefix}-toggle`). Omit for no test-id wiring. */
2621
+ /** Optional prefix for the switch's `data-testid` (`${testIdPrefix}-toggle`, on the root `<button>`). Omit for no test-id wiring. */
2559
2622
  testIdPrefix?: string;
2560
2623
  }
2561
2624
  /**
@@ -2588,10 +2651,11 @@ interface ToggleProps {
2588
2651
  * <Toggle size="sm" checked={enabled} onChange={setEnabled} label="Only include enriched creatives" />
2589
2652
  * ```
2590
2653
  */
2591
- declare function Toggle({ checked, onChange, label, size, disabled, className, testIdPrefix }: ToggleProps): react.JSX.Element;
2654
+ declare const Toggle: react.ForwardRefExoticComponent<ToggleProps & react.RefAttributes<HTMLButtonElement>>;
2592
2655
 
2593
- interface AISparkProps {
2656
+ interface AISparkProps extends CommonProps {
2594
2657
  size?: number;
2658
+ /** Classes on the sparkle icon, the visible root (its gradient definition is a hidden sibling). `testIdPrefix` lands on the icon too. */
2595
2659
  className?: string;
2596
2660
  }
2597
2661
  /**
@@ -2606,10 +2670,10 @@ interface AISparkProps {
2606
2670
  * <AISpark size={14} />
2607
2671
  * ```
2608
2672
  */
2609
- declare function AISpark({ size, className }: AISparkProps): react.JSX.Element;
2673
+ declare function AISpark({ size, className, testIdPrefix }: AISparkProps): react.JSX.Element;
2610
2674
 
2611
2675
  type FreshnessLevel = "fresh" | "recent" | "stale";
2612
- interface FreshnessProps {
2676
+ interface FreshnessProps extends CommonProps {
2613
2677
  level: FreshnessLevel;
2614
2678
  }
2615
2679
  /**
@@ -2628,9 +2692,9 @@ interface FreshnessProps {
2628
2692
  * <Freshness level="fresh" />
2629
2693
  * ```
2630
2694
  */
2631
- declare function Freshness({ level }: FreshnessProps): react.JSX.Element;
2695
+ declare function Freshness({ level, className, testIdPrefix }: FreshnessProps): react.JSX.Element;
2632
2696
 
2633
- interface SectionHeadingProps {
2697
+ interface SectionHeadingProps extends CommonProps {
2634
2698
  /** The section's name, in sentence case -- "Saved reports". */
2635
2699
  title: ReactNode;
2636
2700
  /** One line under the title saying what the section is or how it works. */
@@ -2680,9 +2744,9 @@ interface SectionHeadingProps {
2680
2744
  * </section>
2681
2745
  * ```
2682
2746
  */
2683
- declare function SectionHeading({ title, description, actions, as: Tag, id, className }: SectionHeadingProps): react.JSX.Element;
2747
+ declare function SectionHeading({ title, description, actions, as: Tag, id, className, testIdPrefix }: SectionHeadingProps): react.JSX.Element;
2684
2748
 
2685
- interface PageHeaderProps {
2749
+ interface PageHeaderProps extends CommonProps {
2686
2750
  /** The page's name -- "Report Builder". Title Case for a feature name. */
2687
2751
  title: ReactNode;
2688
2752
  /** One line under the title saying what the user can do on this page. */
@@ -2749,10 +2813,10 @@ interface PageHeaderProps {
2749
2813
  * <PageHeader title="Northwind" back={{ label: "Accounts", href: "/accounts" }} meta={<Badge tone="success">Active</Badge>} />
2750
2814
  * ```
2751
2815
  */
2752
- declare function PageHeader({ title, description, actions, meta, back, className }: PageHeaderProps): react.JSX.Element;
2816
+ declare function PageHeader({ title, description, actions, meta, back, className, testIdPrefix }: PageHeaderProps): react.JSX.Element;
2753
2817
 
2754
2818
  type ModalSize = "sm" | "md" | "lg" | "xl";
2755
- interface ModalProps {
2819
+ interface ModalProps extends CommonProps {
2756
2820
  /** Whether the dialog is showing. */
2757
2821
  open: boolean;
2758
2822
  /** Called on Escape, a click on the dimmed background, or the close button. */
@@ -2766,7 +2830,10 @@ interface ModalProps {
2766
2830
  /** The buttons along the bottom, right-aligned -- primary last. */
2767
2831
  footer?: ReactNode;
2768
2832
  children?: ReactNode;
2833
+ /** Classes on the dialog panel (the visible surface), not the backdrop. */
2769
2834
  className?: string;
2835
+ /** `data-testid` on the dialog panel. */
2836
+ testIdPrefix?: string;
2770
2837
  }
2771
2838
  /**
2772
2839
  * @pattern Modal
@@ -2814,10 +2881,10 @@ interface ModalProps {
2814
2881
  * />
2815
2882
  * ```
2816
2883
  */
2817
- declare function Modal({ open, onClose, title, description, size, footer, children, className }: ModalProps): react.ReactPortal | null;
2884
+ declare function Modal({ open, onClose, title, description, size, footer, children, className, testIdPrefix }: ModalProps): react.ReactPortal | null;
2818
2885
 
2819
2886
  type EmptyStateSize = "sm" | "md";
2820
- interface EmptyStateProps {
2887
+ interface EmptyStateProps extends CommonProps {
2821
2888
  /** A lucide icon, about 20px -- `<SearchX size={20} />`. Optional but expected. */
2822
2889
  icon?: ReactNode;
2823
2890
  /** What's empty, in plain words -- "No brands match". */
@@ -2857,7 +2924,7 @@ interface EmptyStateProps {
2857
2924
  * />
2858
2925
  * ```
2859
2926
  */
2860
- declare function EmptyState({ icon, title, description, action, size, className }: EmptyStateProps): react.JSX.Element;
2927
+ declare function EmptyState({ icon, title, description, action, size, className, testIdPrefix }: EmptyStateProps): react.JSX.Element;
2861
2928
 
2862
2929
  interface TabItem<T extends string = string> {
2863
2930
  value: T;
@@ -2866,7 +2933,7 @@ interface TabItem<T extends string = string> {
2866
2933
  count?: number;
2867
2934
  disabled?: boolean;
2868
2935
  }
2869
- interface TabsProps<T extends string = string> {
2936
+ interface TabsProps<T extends string = string> extends CommonProps {
2870
2937
  items: TabItem<T>[];
2871
2938
  value: T;
2872
2939
  onChange: (value: T) => void;
@@ -2879,6 +2946,8 @@ interface TabsProps<T extends string = string> {
2879
2946
  */
2880
2947
  idPrefix?: string;
2881
2948
  className?: string;
2949
+ /** `data-testid` on the tab list, and the prefix for each tab's (`${testIdPrefix}-tab-<value>`). */
2950
+ testIdPrefix?: string;
2882
2951
  }
2883
2952
  /**
2884
2953
  * @pattern Tabs
@@ -2911,7 +2980,7 @@ interface TabsProps<T extends string = string> {
2911
2980
  * />
2912
2981
  * ```
2913
2982
  */
2914
- declare function Tabs<T extends string>({ items, value, onChange, idPrefix, className, ...rest }: TabsProps<T>): react.JSX.Element;
2983
+ declare function Tabs<T extends string>({ items, value, onChange, idPrefix, className, testIdPrefix, ...rest }: TabsProps<T>): react.JSX.Element;
2915
2984
  type SegmentedControlSize = "sm" | "md";
2916
2985
  interface SegmentedOption<T extends string = string> {
2917
2986
  value: T;
@@ -2919,7 +2988,7 @@ interface SegmentedOption<T extends string = string> {
2919
2988
  /** Rendered as data-testid on this option's button. */
2920
2989
  testId?: string;
2921
2990
  }
2922
- interface SegmentedControlProps<T extends string = string> {
2991
+ interface SegmentedControlProps<T extends string = string> extends CommonProps {
2923
2992
  options: SegmentedOption<T>[];
2924
2993
  value: T;
2925
2994
  onChange: (value: T) => void;
@@ -2928,6 +2997,11 @@ interface SegmentedControlProps<T extends string = string> {
2928
2997
  /** sm 32 in toolbars and card headers; md 40 beside md controls. */
2929
2998
  size?: SegmentedControlSize;
2930
2999
  className?: string;
3000
+ /**
3001
+ * `data-testid` on the group, and the prefix for each option's
3002
+ * (`${testIdPrefix}-option-<value>`) when the option has no `testId` of its own.
3003
+ */
3004
+ testIdPrefix?: string;
2931
3005
  }
2932
3006
  /**
2933
3007
  * @pattern SegmentedControl
@@ -2959,10 +3033,14 @@ interface SegmentedControlProps<T extends string = string> {
2959
3033
  * />
2960
3034
  * ```
2961
3035
  */
2962
- declare function SegmentedControl<T extends string>({ options, value, onChange, size, className, ...rest }: SegmentedControlProps<T>): react.JSX.Element;
3036
+ declare function SegmentedControl<T extends string>({ options, value, onChange, size, className, testIdPrefix, ...rest }: SegmentedControlProps<T>): react.JSX.Element;
2963
3037
 
2964
3038
  type TextFieldSize = "sm" | "md" | "lg";
2965
- interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size"> {
3039
+ interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size">, CommonProps {
3040
+ /** Classes on the outer wrapper (label, field and note), not the `<input>`. */
3041
+ className?: string;
3042
+ /** `data-testid` on the outer wrapper. A `data-testid` passed directly goes to the `<input>`, as before. */
3043
+ testIdPrefix?: string;
2966
3044
  /** The visible label above the field. Leave it out only when something else on screen names the field, and pass `aria-label`. */
2967
3045
  label?: ReactNode;
2968
3046
  /** One line under the field -- a format, a limit. Replaced by `error` when there is one. */
@@ -3006,7 +3084,7 @@ interface TextFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "si
3006
3084
  declare const TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<HTMLInputElement>>;
3007
3085
 
3008
3086
  type DrawerSize = "sm" | "md" | "lg";
3009
- interface DrawerProps {
3087
+ interface DrawerProps extends CommonProps {
3010
3088
  /** Whether the drawer is showing. It slides in when this turns true and out when it turns false. */
3011
3089
  open: boolean;
3012
3090
  /** Called on Escape, a click on the dimmed page, or the close button. */
@@ -3020,7 +3098,10 @@ interface DrawerProps {
3020
3098
  /** Pinned at the bottom, right-aligned -- "Clear all" and "Apply" for filters. */
3021
3099
  footer?: ReactNode;
3022
3100
  children?: ReactNode;
3101
+ /** Classes on the dialog panel (the visible surface), not the backdrop. */
3023
3102
  className?: string;
3103
+ /** `data-testid` on the dialog panel. */
3104
+ testIdPrefix?: string;
3024
3105
  }
3025
3106
  /**
3026
3107
  * @pattern Drawer
@@ -3074,7 +3155,7 @@ interface DrawerProps {
3074
3155
  * </Drawer>
3075
3156
  * ```
3076
3157
  */
3077
- declare function Drawer({ open, onClose, title, description, size, footer, children, className }: DrawerProps): react.ReactPortal | null;
3158
+ declare function Drawer({ open, onClose, title, description, size, footer, children, className, testIdPrefix }: DrawerProps): react.ReactPortal | null;
3078
3159
 
3079
3160
  type DataTableColumnWidth = "fill" | "sm" | "md" | "lg";
3080
3161
  type DataTableDensity = "default" | "compact";
@@ -3097,7 +3178,7 @@ interface DataTableColumn<T, K extends string = string> {
3097
3178
  /** The first click's direction: names A→Z (`asc`), numbers largest first (`desc`, the numeric default). */
3098
3179
  firstDir?: SortDir;
3099
3180
  }
3100
- interface DataTableProps<T, K extends string = string> {
3181
+ interface DataTableProps<T, K extends string = string> extends CommonProps {
3101
3182
  columns: DataTableColumn<T, K>[];
3102
3183
  rows: T[];
3103
3184
  /** A stable key per row -- an id, not the index. */
@@ -3125,6 +3206,8 @@ interface DataTableProps<T, K extends string = string> {
3125
3206
  /** Inside the frame, under the rows -- a `Pager`. A full-page table puts `TablePagination` after the table instead. */
3126
3207
  footer?: ReactNode;
3127
3208
  className?: string;
3209
+ /** `data-testid` on the frame; each sortable header's button gets `${testIdPrefix}-sort-<key>`. */
3210
+ testIdPrefix?: string;
3128
3211
  }
3129
3212
  /**
3130
3213
  * @pattern DataTable
@@ -3185,10 +3268,10 @@ interface DataTableProps<T, K extends string = string> {
3185
3268
  * />
3186
3269
  * ```
3187
3270
  */
3188
- declare function DataTable<T, K extends string = string>({ columns, rows, rowKey, title, subtitle, action, sort, onSortChange, density, loading, loadingRows, empty, maxHeight, footer, className, ...rest }: DataTableProps<T, K>): react.JSX.Element;
3271
+ declare function DataTable<T, K extends string = string>({ columns, rows, rowKey, title, subtitle, action, sort, onSortChange, density, loading, loadingRows, empty, maxHeight, footer, className, testIdPrefix, ...rest }: DataTableProps<T, K>): react.JSX.Element;
3189
3272
 
3190
3273
  type MediaType = "TV" | "CTV" | "Digital" | "Social" | "Radio" | "Newspaper" | "Magazine";
3191
- interface MediaLabelProps {
3274
+ interface MediaLabelProps extends CommonProps {
3192
3275
  /** The media type. Any other string gets the grey "other" fill, so a new type still renders. */
3193
3276
  type: MediaType | (string & {});
3194
3277
  /** Extra classes for placement, e.g. `absolute bottom-2 left-2` on a thumbnail. */
@@ -3228,9 +3311,9 @@ interface MediaLabelProps {
3228
3311
  * </div>
3229
3312
  * ```
3230
3313
  */
3231
- declare function MediaLabel({ type, className }: MediaLabelProps): react.JSX.Element;
3314
+ declare function MediaLabel({ type, className, testIdPrefix }: MediaLabelProps): react.JSX.Element;
3232
3315
 
3233
- interface SuggestionChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> {
3316
+ interface SuggestionChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children">, CommonProps {
3234
3317
  /** The suggestion itself, in normal case: "Luxury SUV brands", "Where are we wasting seats?". */
3235
3318
  children: ReactNode;
3236
3319
  }
@@ -3263,9 +3346,9 @@ interface SuggestionChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElemen
3263
3346
  * </div>
3264
3347
  * ```
3265
3348
  */
3266
- declare function SuggestionChip({ children, className, type, ...props }: SuggestionChipProps): react.JSX.Element;
3349
+ declare const SuggestionChip: react.ForwardRefExoticComponent<SuggestionChipProps & react.RefAttributes<HTMLButtonElement>>;
3267
3350
 
3268
- interface ToggleChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onChange"> {
3351
+ interface ToggleChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children" | "onChange">, CommonProps {
3269
3352
  /** Whether this chip is switched on. */
3270
3353
  selected: boolean;
3271
3354
  /** Called with the new value when the chip is clicked. */
@@ -3301,9 +3384,9 @@ interface ToggleChipProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>,
3301
3384
  * ))}
3302
3385
  * ```
3303
3386
  */
3304
- declare function ToggleChip({ selected, onChange, children, className, type, onClick, ...props }: ToggleChipProps): react.JSX.Element;
3387
+ declare const ToggleChip: react.ForwardRefExoticComponent<ToggleChipProps & react.RefAttributes<HTMLButtonElement>>;
3305
3388
 
3306
- interface CopyButtonProps {
3389
+ interface CopyButtonProps extends CommonProps {
3307
3390
  /** What to copy, or a function that builds it at click time. */
3308
3391
  value: string | (() => string);
3309
3392
  /** A visible label ("Copy summary"). Leave it out for the icon-only button. */
@@ -3340,10 +3423,10 @@ interface CopyButtonProps {
3340
3423
  * <CopyButton value={buildSummary} label="Copy summary" size="sm" />
3341
3424
  * ```
3342
3425
  */
3343
- declare function CopyButton({ value, label, "aria-label": ariaLabel, size, className }: CopyButtonProps): react.JSX.Element;
3426
+ declare const CopyButton: react.ForwardRefExoticComponent<CopyButtonProps & react.RefAttributes<HTMLButtonElement>>;
3344
3427
 
3345
3428
  type InlineMessageTone = "info" | "success" | "warning" | "danger";
3346
- interface InlineMessageProps {
3429
+ interface InlineMessageProps extends CommonProps {
3347
3430
  /** info (default), success, warning or danger. */
3348
3431
  tone?: InlineMessageTone;
3349
3432
  /** One short line: "A similar organization already exists". */
@@ -3393,6 +3476,6 @@ interface InlineMessageProps {
3393
3476
  * actions={<SuggestionChip onClick={useExisting}>Use Acme Corp</SuggestionChip>} />
3394
3477
  * ```
3395
3478
  */
3396
- declare function InlineMessage({ tone, title, children, actions, onDismiss, className }: InlineMessageProps): react.JSX.Element;
3479
+ declare function InlineMessage({ tone, title, children, actions, onDismiss, className, testIdPrefix }: InlineMessageProps): react.JSX.Element;
3397
3480
 
3398
- export { AISpark, type AISparkProps, AdvertiserNoResults, type AdvertiserNoResultsProps, AdvertiserQuickFilter, type AdvertiserQuickFilterProps, AdvertiserSearchPrompt, type AdvertiserSearchPromptProps, 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, 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, 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, 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 };
3481
+ export { AISpark, type AISparkProps, AdvertiserNoResults, type AdvertiserNoResultsProps, AdvertiserQuickFilter, type AdvertiserQuickFilterProps, AdvertiserSearchPrompt, type AdvertiserSearchPromptProps, 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, 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, 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 };