@mediaradar/design-components 0.43.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -83,7 +83,7 @@ function InfoTip({ text, size = 11, label = "More information", trigger = "click
83
83
  onMouseEnter: trigger === "hover" ? cancelClose : void 0,
84
84
  onMouseLeave: trigger === "hover" ? closeSoon : void 0,
85
85
  style: { position: "fixed", top: pos.top, left: pos.left, width: pos.width },
86
- className: "z-[90] rounded-control border border-border-default bg-surface px-3 py-2 text-[12px] font-normal not-italic normal-case leading-relaxed tracking-normal text-text-secondary shadow-overlay",
86
+ className: "z-[90] rounded-control border border-border-default bg-surface px-3 py-2 text-xs font-normal not-italic normal-case leading-relaxed tracking-normal text-text-secondary shadow-overlay",
87
87
  children: text
88
88
  }
89
89
  ),
@@ -102,7 +102,7 @@ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
102
102
  function AdvertiserSearchPrompt({ label = "an advertiser name" }) {
103
103
  return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col items-center gap-2 px-4 py-8 text-center", children: [
104
104
  /* @__PURE__ */ jsx2("span", { className: "flex h-9 w-9 items-center justify-center rounded-full bg-subtle text-text-tertiary", children: /* @__PURE__ */ jsx2(Search, { size: 16, "aria-hidden": "true" }) }),
105
- /* @__PURE__ */ jsxs2("p", { className: "text-[12px] leading-snug text-text-tertiary", children: [
105
+ /* @__PURE__ */ jsxs2("p", { className: "text-xs leading-snug text-text-tertiary", children: [
106
106
  "Start typing ",
107
107
  label,
108
108
  " to filter."
@@ -137,7 +137,7 @@ function chipTriggerClass(_variant = "box") {
137
137
  function ChipContent({ caption, value, icon }) {
138
138
  const stack = /* @__PURE__ */ jsxs3("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
139
139
  /* @__PURE__ */ jsx3("span", { className: "text-control-caption uppercase tracking-wide text-text-tertiary", children: caption }),
140
- /* @__PURE__ */ jsx3("span", { className: "text-[12px] font-medium text-text-primary", children: value })
140
+ /* @__PURE__ */ jsx3("span", { className: "text-xs font-medium text-text-primary", children: value })
141
141
  ] });
142
142
  if (icon) {
143
143
  return /* @__PURE__ */ jsxs3("span", { className: "flex items-center gap-2", children: [
@@ -310,7 +310,7 @@ function AdvertiserQuickFilter({
310
310
  placeholder: searchPlaceholder,
311
311
  "aria-label": searchPlaceholder,
312
312
  "data-testid": testIdPrefix && `${testIdPrefix}-search`,
313
- className: "h-full min-w-0 flex-1 bg-transparent text-[13px] outline-hidden placeholder:text-text-tertiary"
313
+ className: "h-full min-w-0 flex-1 bg-transparent text-dense outline-hidden placeholder:text-text-tertiary"
314
314
  }
315
315
  ),
316
316
  q && /* @__PURE__ */ jsx4(
@@ -333,7 +333,7 @@ function AdvertiserQuickFilter({
333
333
  "data-testid": testIdPrefix && `${testIdPrefix}-selected-toggle`,
334
334
  onClick: () => setSelectedOpen((v) => !v),
335
335
  "aria-expanded": selectedOpen,
336
- className: "flex w-full items-center gap-1.5 rounded-control px-2 py-1 text-left text-[11px] font-semibold uppercase tracking-wide text-text-tertiary transition-colors hover:text-text-primary",
336
+ className: "flex w-full items-center gap-1.5 rounded-control px-2 py-1 text-left text-micro font-semibold uppercase tracking-wide text-text-tertiary transition-colors hover:text-text-primary",
337
337
  children: [
338
338
  /* @__PURE__ */ jsx4(
339
339
  ChevronDown,
@@ -365,12 +365,12 @@ function AdvertiserQuickFilter({
365
365
  remaining > 0 ? `, showing ${results.length}` : ""
366
366
  ] }),
367
367
  !ql && !prepopulate ? /* @__PURE__ */ jsx4(AdvertiserSearchPrompt, { label: promptLabel }) : !ql && results.length === 0 ? null : results.length === 0 ? /* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-center gap-1.5 px-4 py-8 text-center", children: [
368
- /* @__PURE__ */ jsxs4("p", { className: "text-[13px] font-medium text-text-primary", children: [
368
+ /* @__PURE__ */ jsxs4("p", { className: "text-dense font-medium text-text-primary", children: [
369
369
  "No results found for \u201C",
370
370
  q.trim(),
371
371
  "\u201D"
372
372
  ] }),
373
- /* @__PURE__ */ jsx4("p", { className: "text-[12px] leading-snug text-text-tertiary", children: noResultsHint })
373
+ /* @__PURE__ */ jsx4("p", { className: "text-xs leading-snug text-text-tertiary", children: noResultsHint })
374
374
  ] }) : /* @__PURE__ */ jsxs4("div", { ref: resultsRef, children: [
375
375
  results.length > SELECT_ALL_THRESHOLD && /* @__PURE__ */ jsxs4(
376
376
  "button",
@@ -378,7 +378,7 @@ function AdvertiserQuickFilter({
378
378
  type: "button",
379
379
  "data-testid": testIdPrefix && `${testIdPrefix}-select-all-visible`,
380
380
  onClick: toggleAllVisible,
381
- className: "flex w-full items-center gap-2 rounded-control px-2 py-1.5 text-left text-[12px] font-semibold text-text-link transition-colors hover:bg-subtle",
381
+ className: "flex w-full items-center gap-2 rounded-control px-2 py-1.5 text-left text-xs font-semibold text-text-link transition-colors hover:bg-subtle",
382
382
  children: [
383
383
  /* @__PURE__ */ jsx4(ListChecks, { size: 14, "aria-hidden": "true" }),
384
384
  allVisibleSelected ? `Deselect ${results.length} visible` : `Select all ${results.length} visible`
@@ -420,7 +420,7 @@ function AdvertiserQuickFilter({
420
420
  "data-testid": testIdPrefix && `${testIdPrefix}-clear-all`,
421
421
  onClick: () => setDraft(clearValue),
422
422
  disabled: draft.length === 0,
423
- className: "text-[13px] font-medium text-text-secondary transition-colors hover:text-text-primary disabled:opacity-40",
423
+ className: "text-dense font-medium text-text-secondary transition-colors hover:text-text-primary disabled:opacity-40",
424
424
  children: "Clear all"
425
425
  }
426
426
  ),
@@ -430,12 +430,12 @@ function AdvertiserQuickFilter({
430
430
  type: "button",
431
431
  "data-testid": testIdPrefix && `${testIdPrefix}-apply`,
432
432
  onClick: apply,
433
- className: "rounded-control bg-brand-primaryAction px-5 py-2 text-[13px] font-semibold text-brand-onprimary transition hover:brightness-110",
433
+ className: "rounded-control bg-brand-primaryAction px-5 py-2 text-dense font-semibold text-brand-onprimary transition hover:brightness-110",
434
434
  children: "Apply"
435
435
  }
436
436
  )
437
437
  ] }) : draft.length > 0 && /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between border-t border-border-default p-2", children: [
438
- /* @__PURE__ */ jsxs4("span", { className: "text-[11px] text-text-tertiary", children: [
438
+ /* @__PURE__ */ jsxs4("span", { className: "text-micro text-text-tertiary", children: [
439
439
  draft.length,
440
440
  " selected"
441
441
  ] }),
@@ -444,7 +444,7 @@ function AdvertiserQuickFilter({
444
444
  {
445
445
  type: "button",
446
446
  onClick: () => setDraft([]),
447
- className: "text-[12px] font-medium text-text-link hover:underline",
447
+ className: "text-xs font-medium text-text-link hover:underline",
448
448
  children: clearLabel
449
449
  }
450
450
  )
@@ -486,7 +486,7 @@ function OptionRow({
486
486
  children: checked && /* @__PURE__ */ jsx4(Check, { size: 13, strokeWidth: 3 })
487
487
  }
488
488
  ),
489
- /* @__PURE__ */ jsx4("span", { className: "flex-1 text-[14px] text-text-primary", children: label })
489
+ /* @__PURE__ */ jsx4("span", { className: "flex-1 text-sm text-text-primary", children: label })
490
490
  ]
491
491
  }
492
492
  );
@@ -943,8 +943,8 @@ function DateRangeFilter({
943
943
  children: [
944
944
  icon && /* @__PURE__ */ jsx8("span", { className: "shrink-0 text-text-tertiary", children: icon }),
945
945
  /* @__PURE__ */ jsxs7("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
946
- /* @__PURE__ */ jsx8("span", { className: showDates && displayDatesLine ? "text-[11px] text-text-tertiary" : "text-control-caption uppercase tracking-wide text-text-tertiary", children: showDates && displayDatesLine ? displayDatesLine : caption }),
947
- /* @__PURE__ */ jsxs7("span", { className: "text-[12px] font-medium text-text-primary", children: [
946
+ /* @__PURE__ */ jsx8("span", { className: showDates && displayDatesLine ? "text-micro text-text-tertiary" : "text-control-caption uppercase tracking-wide text-text-tertiary", children: showDates && displayDatesLine ? displayDatesLine : caption }),
947
+ /* @__PURE__ */ jsxs7("span", { className: "text-xs font-medium text-text-primary", children: [
948
948
  displayValue,
949
949
  compareLabel(appliedCmp) && /* @__PURE__ */ jsxs7("span", { className: "font-normal text-text-secondary", children: [
950
950
  " \xB7 vs ",
@@ -971,7 +971,7 @@ function DateRangeFilter({
971
971
  type: "button",
972
972
  "data-testid": testIdPrefix && `${testIdPrefix}-option-${slug2(s)}`,
973
973
  onClick: () => choosePreset(s),
974
- className: `rounded-control px-3 py-2 text-left text-[13px] font-medium transition-colors ${shortcut === s ? "bg-subtle text-text-primary" : "text-text-secondary hover:bg-subtle hover:text-text-primary"}`,
974
+ className: `rounded-control px-3 py-2 text-left text-dense font-medium transition-colors ${shortcut === s ? "bg-subtle text-text-primary" : "text-text-secondary hover:bg-subtle hover:text-text-primary"}`,
975
975
  children: s
976
976
  },
977
977
  s
@@ -997,7 +997,7 @@ function DateRangeFilter({
997
997
  offset === 1 ? /* @__PURE__ */ jsx8(NavBtn, { onClick: () => setLeftMonth(addMonths(leftMonth, 1)), "aria-label": "Next month", children: /* @__PURE__ */ jsx8(ChevronRight, { size: 16 }) }) : /* @__PURE__ */ jsx8("span", { className: "h-7 w-7" })
998
998
  ] }),
999
999
  /* @__PURE__ */ jsxs7("div", { className: "grid grid-cols-7", children: [
1000
- WEEKDAYS.map((w) => /* @__PURE__ */ jsx8("div", { className: "flex h-8 items-center justify-center text-[12px] font-semibold text-text-secondary", children: w }, w)),
1000
+ WEEKDAYS.map((w) => /* @__PURE__ */ jsx8("div", { className: "flex h-8 items-center justify-center text-xs font-semibold text-text-secondary", children: w }, w)),
1001
1001
  grid.map((d, i) => {
1002
1002
  const inMonth = d.getMonth() === m.getMonth();
1003
1003
  const hasRange = !!(start && end);
@@ -1017,7 +1017,7 @@ function DateRangeFilter({
1017
1017
  /* @__PURE__ */ jsx8(
1018
1018
  "span",
1019
1019
  {
1020
- className: `relative z-10 flex h-8 w-8 items-center justify-center rounded-full text-[13px] tabular-nums ${endpoint ? "bg-brand-primaryAction font-semibold text-brand-onprimary" : inMonth ? "text-text-primary hover:bg-subtle" : "text-text-tertiary"}`,
1020
+ className: `relative z-10 flex h-8 w-8 items-center justify-center rounded-full text-dense tabular-nums ${endpoint ? "bg-brand-primaryAction font-semibold text-brand-onprimary" : inMonth ? "text-text-primary hover:bg-subtle" : "text-text-tertiary"}`,
1021
1021
  children: d.getDate()
1022
1022
  }
1023
1023
  )
@@ -1057,8 +1057,8 @@ function DateRangeFilter({
1057
1057
  ] }),
1058
1058
  /* @__PURE__ */ jsxs7("div", { className: "mt-4 flex items-center justify-end gap-2", children: [
1059
1059
  monthly && /* @__PURE__ */ jsx8("span", { className: "mr-auto text-xs text-text-tertiary", children: "Data is monthly, so ranges cover whole months." }),
1060
- /* @__PURE__ */ jsx8("button", { type: "button", "data-testid": testIdPrefix && `${testIdPrefix}-cancel`, onClick: () => setOpen(false), className: "rounded-control border border-border-default bg-surface px-5 py-2 text-[13px] font-semibold text-text-primary transition-colors hover:bg-subtle", children: "Cancel" }),
1061
- /* @__PURE__ */ jsx8("button", { type: "button", "data-testid": testIdPrefix && `${testIdPrefix}-apply`, onClick: apply, disabled: !canApply, className: "rounded-control bg-brand-primaryAction px-5 py-2 text-[13px] font-semibold text-brand-onprimary transition-[filter] hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50", children: "Apply" })
1060
+ /* @__PURE__ */ jsx8("button", { type: "button", "data-testid": testIdPrefix && `${testIdPrefix}-cancel`, onClick: () => setOpen(false), className: "rounded-control border border-border-default bg-surface px-5 py-2 text-dense font-semibold text-text-primary transition-colors hover:bg-subtle", children: "Cancel" }),
1061
+ /* @__PURE__ */ jsx8("button", { type: "button", "data-testid": testIdPrefix && `${testIdPrefix}-apply`, onClick: apply, disabled: !canApply, className: "rounded-control bg-brand-primaryAction px-5 py-2 text-dense font-semibold text-brand-onprimary transition-[filter] hover:brightness-110 disabled:cursor-not-allowed disabled:opacity-50", children: "Apply" })
1062
1062
  ] })
1063
1063
  ] })
1064
1064
  ]
@@ -1068,8 +1068,8 @@ function DateRangeFilter({
1068
1068
  }
1069
1069
  function Field({ label, value }) {
1070
1070
  return /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-1.5", children: [
1071
- /* @__PURE__ */ jsx8("span", { className: "text-[12px] font-medium text-text-secondary", children: label }),
1072
- /* @__PURE__ */ jsx8("div", { className: "flex h-10 min-w-[140px] items-center rounded-control border border-border-strong bg-input px-3 text-[14px] font-medium text-text-primary", children: value })
1071
+ /* @__PURE__ */ jsx8("span", { className: "text-xs font-medium text-text-secondary", children: label }),
1072
+ /* @__PURE__ */ jsx8("div", { className: "flex h-10 min-w-[140px] items-center rounded-control border border-border-strong bg-input px-3 text-sm font-medium text-text-primary", children: value })
1073
1073
  ] });
1074
1074
  }
1075
1075
  function NavBtn({ children, onClick, ...rest }) {
@@ -1367,7 +1367,7 @@ function SearchBar({
1367
1367
  onClick: () => setOpen((o) => !o),
1368
1368
  "aria-expanded": open,
1369
1369
  "aria-haspopup": "dialog",
1370
- className: "flex h-full items-center gap-1 px-2.5 text-[13px] font-medium text-text-primary transition-colors hover:bg-subtle",
1370
+ className: "flex h-full items-center gap-1 px-2.5 text-dense font-medium text-text-primary transition-colors hover:bg-subtle",
1371
1371
  children: [
1372
1372
  matchValue.mode === "anyWord" ? `${MODE_LABEL.anyWord} (${matchValue.wordJoin})` : MODE_LABEL[matchValue.mode],
1373
1373
  /* @__PURE__ */ jsx9(
@@ -1500,7 +1500,7 @@ function ModeRow({
1500
1500
  e.stopPropagation();
1501
1501
  onSelect();
1502
1502
  },
1503
- className: "rounded-control text-left text-[14px] font-semibold text-text-primary focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus",
1503
+ className: "rounded-control text-left text-sm font-semibold text-text-primary focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus",
1504
1504
  children: title
1505
1505
  }
1506
1506
  ),
@@ -1533,7 +1533,7 @@ function RadioOption({
1533
1533
  },
1534
1534
  role: "radio",
1535
1535
  "aria-checked": checked,
1536
- className: "flex items-center gap-1.5 text-[13px] font-medium text-text-primary",
1536
+ className: "flex items-center gap-1.5 text-dense font-medium text-text-primary",
1537
1537
  children: [
1538
1538
  /* @__PURE__ */ jsx9(
1539
1539
  "span",
@@ -1743,7 +1743,7 @@ function Option({
1743
1743
  "aria-pressed": selected,
1744
1744
  onClick,
1745
1745
  className: cx3(
1746
- "flex items-center gap-2 rounded-control px-2.5 py-2 text-left text-[13px] transition-colors hover:bg-subtle",
1746
+ "flex items-center gap-2 rounded-control px-2.5 py-2 text-left text-dense transition-colors hover:bg-subtle",
1747
1747
  hint ? "flex-1" : "w-full",
1748
1748
  selected ? "font-semibold text-text-primary" : "text-text-secondary"
1749
1749
  ),
@@ -1817,6 +1817,7 @@ function SelectFilter({
1817
1817
  error = false,
1818
1818
  onRetry,
1819
1819
  size = "md",
1820
+ inlineCaption = false,
1820
1821
  disabled = false,
1821
1822
  renderIcon
1822
1823
  }) {
@@ -1831,7 +1832,11 @@ function SelectFilter({
1831
1832
  const r = ref.current.getBoundingClientRect();
1832
1833
  const h = Math.min(options.length * 36 + 8, 288);
1833
1834
  const above = r.bottom + 8 + h > window.innerHeight && r.top - 8 - h > 0;
1834
- setPos({ top: above ? r.top - 8 - h : r.bottom + 8, left: align === "right" ? r.right - r.width : r.left, width: r.width });
1835
+ setPos({
1836
+ top: above ? r.top - 8 - h : r.bottom + 8,
1837
+ ...align === "right" ? { right: document.documentElement.clientWidth - r.right } : { left: r.left },
1838
+ width: r.width
1839
+ });
1835
1840
  }, [align, options.length]);
1836
1841
  useLayoutEffect3(() => {
1837
1842
  if (!open) return;
@@ -1856,10 +1861,18 @@ function SelectFilter({
1856
1861
  window.removeEventListener("scroll", reposition, true);
1857
1862
  };
1858
1863
  }, [open, close, reposition]);
1859
- const triggerValue = renderIcon ? /* @__PURE__ */ jsxs12("span", { className: "flex items-center gap-1.5", children: [
1864
+ const valueContent = renderIcon ? /* @__PURE__ */ jsxs12("span", { className: "flex items-center gap-1.5", children: [
1860
1865
  /* @__PURE__ */ jsx13(OptionIcon, { children: renderIcon(value) }),
1861
1866
  value
1862
1867
  ] }) : value;
1868
+ const triggerValue = sm && inlineCaption ? /* @__PURE__ */ jsxs12("span", { children: [
1869
+ /* @__PURE__ */ jsxs12("span", { className: "font-normal text-text-secondary", children: [
1870
+ caption,
1871
+ ":"
1872
+ ] }),
1873
+ " ",
1874
+ valueContent
1875
+ ] }) : valueContent;
1863
1876
  return /* @__PURE__ */ jsxs12("div", { className: cx4("relative", fullWidth && "w-full"), ref, children: [
1864
1877
  /* @__PURE__ */ jsxs12(
1865
1878
  "button",
@@ -1869,7 +1882,7 @@ function SelectFilter({
1869
1882
  onClick: () => setOpen((o) => !o),
1870
1883
  "aria-expanded": open,
1871
1884
  "aria-haspopup": "listbox",
1872
- "aria-label": sm ? caption : void 0,
1885
+ "aria-label": sm && !inlineCaption ? caption : void 0,
1873
1886
  disabled,
1874
1887
  className: cx4(
1875
1888
  sm ? "flex h-8 items-center gap-1.5 rounded-control border border-border-strong bg-input pl-2.5 pr-2 text-dense font-medium text-text-primary transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus" : chipTriggerClass(),
@@ -1896,10 +1909,10 @@ function SelectFilter({
1896
1909
  {
1897
1910
  ref: popoverRef,
1898
1911
  "data-testid": testIdPrefix && `${testIdPrefix}-popover`,
1899
- style: { position: "fixed", top: pos.top, left: pos.left, width: fullWidth ? pos.width : void 0 },
1912
+ style: { position: "fixed", top: pos.top, left: pos.left, right: pos.right, width: fullWidth ? pos.width : void 0 },
1900
1913
  className: cx4(
1901
1914
  "z-[65] flex flex-col overflow-hidden rounded-card border border-border-default bg-surface shadow-overlay",
1902
- !fullWidth && (sm ? "w-28" : "w-56")
1915
+ !fullWidth && (sm ? "w-max min-w-28 max-w-72" : "w-56")
1903
1916
  ),
1904
1917
  role: loading || error ? "group" : "listbox",
1905
1918
  "aria-label": caption,
@@ -1923,7 +1936,7 @@ function SelectFilter({
1923
1936
  /* @__PURE__ */ jsx13(
1924
1937
  "span",
1925
1938
  {
1926
- className: cx4("flex-1 text-[14px]", selected ? "font-semibold text-text-primary" : "text-text-primary"),
1939
+ className: cx4("flex-1 text-sm", selected ? "font-semibold text-text-primary" : "text-text-primary"),
1927
1940
  children: o
1928
1941
  }
1929
1942
  )
@@ -1976,8 +1989,8 @@ var NO_RESULTS_BODY = "Your filters may be too narrow, conflict with each other,
1976
1989
  function noResultsBody(workspaceName) {
1977
1990
  return workspaceName ? `Nothing in the \u201C${workspaceName}\u201D workspace matches. ${NO_RESULTS_BODY}` : NO_RESULTS_BODY;
1978
1991
  }
1979
- var PRIMARY_ACTION_CLASS = "rounded-control bg-brand-primaryAction px-3.5 py-2 text-[13px] font-semibold text-brand-onprimary transition-colors hover:opacity-90";
1980
- var QUIET_ACTION_CLASS = "rounded-control text-[13px] font-medium text-text-link transition-colors hover:underline focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus";
1992
+ var 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";
1993
+ var 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";
1981
1994
  function NoResultsEmptyState({
1982
1995
  title = NO_RESULTS_TITLE,
1983
1996
  body,
@@ -1995,7 +2008,7 @@ function NoResultsEmptyState({
1995
2008
  return /* @__PURE__ */ jsxs14("div", { className: "flex flex-col items-center justify-center gap-3 text-center", "data-testid": testIdPrefix, children: [
1996
2009
  /* @__PURE__ */ jsx15("span", { className: "flex h-11 w-11 items-center justify-center rounded-full bg-subtle text-text-tertiary", children: /* @__PURE__ */ jsx15(FilterX, { size: 20, "aria-hidden": "true" }) }),
1997
2010
  /* @__PURE__ */ jsx15("h2", { className: "text-base font-semibold text-text-primary", children: title }),
1998
- /* @__PURE__ */ jsx15("p", { className: "max-w-[420px] text-[13px] leading-relaxed text-text-secondary", children: bodyText }),
2011
+ /* @__PURE__ */ jsx15("p", { className: "max-w-[420px] text-dense leading-relaxed text-text-secondary", children: bodyText }),
1999
2012
  hasActions && /* @__PURE__ */ jsxs14("div", { className: "mt-1 flex flex-col items-center gap-3", children: [
2000
2013
  showClear && /* @__PURE__ */ jsx15(
2001
2014
  "button",
@@ -2560,12 +2573,12 @@ function AdvertiserNoResults({
2560
2573
  hint = "Try checking your spelling or searching for a broader brand name."
2561
2574
  }) {
2562
2575
  return /* @__PURE__ */ jsxs21("div", { className: "flex flex-col items-center gap-1.5 px-4 py-8 text-center", children: [
2563
- /* @__PURE__ */ jsxs21("p", { className: "text-[13px] font-medium text-text-primary", children: [
2576
+ /* @__PURE__ */ jsxs21("p", { className: "text-dense font-medium text-text-primary", children: [
2564
2577
  "No results found for \u201C",
2565
2578
  query,
2566
2579
  "\u201D"
2567
2580
  ] }),
2568
- /* @__PURE__ */ jsx23("p", { className: "text-[12px] leading-snug text-text-tertiary", children: hint })
2581
+ /* @__PURE__ */ jsx23("p", { className: "text-xs leading-snug text-text-tertiary", children: hint })
2569
2582
  ] });
2570
2583
  }
2571
2584
 
@@ -2579,7 +2592,7 @@ function SelectAllVisible({ count, allSelected, onToggle, testIdPrefix }) {
2579
2592
  type: "button",
2580
2593
  "data-testid": testIdPrefix && `${testIdPrefix}-select-all-visible`,
2581
2594
  onClick: onToggle,
2582
- className: "flex w-full items-center gap-2 rounded-control px-2 py-1.5 text-left text-[12px] font-semibold text-text-link transition-colors hover:bg-subtle",
2595
+ className: "flex w-full items-center gap-2 rounded-control px-2 py-1.5 text-left text-xs font-semibold text-text-link transition-colors hover:bg-subtle",
2583
2596
  children: [
2584
2597
  /* @__PURE__ */ jsx24(ListChecks2, { size: 14, "aria-hidden": "true" }),
2585
2598
  allSelected ? `Deselect ${count} visible` : `Select all ${count} visible`
@@ -2604,7 +2617,7 @@ function SelectedSection({ count, open, onToggle, children, testIdPrefix }) {
2604
2617
  "data-testid": testIdPrefix && `${testIdPrefix}-selected-toggle`,
2605
2618
  onClick: onToggle,
2606
2619
  "aria-expanded": open,
2607
- className: "flex w-full items-center gap-1.5 rounded-control px-2 py-1 text-left text-[11px] font-semibold uppercase tracking-wide text-text-tertiary transition-colors hover:text-text-primary",
2620
+ className: "flex w-full items-center gap-1.5 rounded-control px-2 py-1 text-left text-micro font-semibold uppercase tracking-wide text-text-tertiary transition-colors hover:text-text-primary",
2608
2621
  children: [
2609
2622
  /* @__PURE__ */ jsx25(ChevronDown7, { size: 13, "aria-hidden": "true", className: cx7("transition-transform", !open && "-rotate-90") }),
2610
2623
  "Selected (",
@@ -3238,7 +3251,7 @@ function Monogram({ name, size = 28 }) {
3238
3251
  );
3239
3252
  }
3240
3253
  function BreakdownTag({ children }) {
3241
- return /* @__PURE__ */ jsx28("span", { className: "inline-flex items-center whitespace-nowrap rounded-full bg-subtle px-2 py-0.5 text-[11px] font-medium text-text-secondary", children });
3254
+ return /* @__PURE__ */ jsx28("span", { className: "inline-flex items-center whitespace-nowrap rounded-full bg-subtle px-2 py-0.5 text-micro font-medium text-text-secondary", children });
3242
3255
  }
3243
3256
  function DelayedTip({ label, children }) {
3244
3257
  return /* @__PURE__ */ jsxs26("span", { className: "group/dt relative inline-flex", tabIndex: 0, "aria-label": label, children: [
@@ -3247,7 +3260,7 @@ function DelayedTip({ label, children }) {
3247
3260
  "span",
3248
3261
  {
3249
3262
  role: "tooltip",
3250
- className: "pointer-events-none invisible absolute bottom-[calc(100%+6px)] left-1/2 z-40 w-[160px] -translate-x-1/2 rounded-control border border-border-default bg-surface px-2 py-1.5 text-center text-[11px] font-medium leading-snug text-text-secondary opacity-0 shadow-overlay transition-[opacity,visibility] delay-1000 duration-150 group-hover/dt:visible group-hover/dt:opacity-100 group-focus/dt:visible group-focus/dt:opacity-100",
3263
+ className: "pointer-events-none invisible absolute bottom-[calc(100%+6px)] left-1/2 z-40 w-[160px] -translate-x-1/2 rounded-control border border-border-default bg-surface px-2 py-1.5 text-center text-micro font-medium leading-snug text-text-secondary opacity-0 shadow-overlay transition-[opacity,visibility] delay-1000 duration-150 group-hover/dt:visible group-hover/dt:opacity-100 group-focus/dt:visible group-focus/dt:opacity-100",
3251
3264
  children: label
3252
3265
  }
3253
3266
  )
@@ -3260,9 +3273,9 @@ function MetricListHeader({ className }) {
3260
3273
  return /* @__PURE__ */ jsxs26("div", { className: cx9("flex items-baseline gap-2 pb-2", className), children: [
3261
3274
  /* @__PURE__ */ jsx28("span", { className: "flex-1" }),
3262
3275
  /* @__PURE__ */ jsxs26("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3263
- /* @__PURE__ */ jsx28("span", { className: "text-right text-[11px] font-medium text-text-tertiary", style: { width: COL_CURRENT }, children: "Current" }),
3264
- /* @__PURE__ */ jsx28(DelayedTip, { label: "Spend during the same time period one year ago.", children: /* @__PURE__ */ jsx28("span", { className: "text-right text-[11px] font-medium text-text-tertiary", style: { width: COL_PREVIOUS }, children: "Previous" }) }),
3265
- /* @__PURE__ */ jsx28(DelayedTip, { label: "Percent change from this time period vs. the same time one year ago.", children: /* @__PURE__ */ jsx28("span", { className: "text-right text-[11px] font-medium text-text-tertiary", style: { width: COL_YOY }, children: "YoY" }) })
3276
+ /* @__PURE__ */ jsx28("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_CURRENT }, children: "Current" }),
3277
+ /* @__PURE__ */ jsx28(DelayedTip, { label: "Spend during the same time period one year ago.", children: /* @__PURE__ */ jsx28("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_PREVIOUS }, children: "Previous" }) }),
3278
+ /* @__PURE__ */ jsx28(DelayedTip, { label: "Percent change from this time period vs. the same time one year ago.", children: /* @__PURE__ */ jsx28("span", { className: "text-right text-micro font-medium text-text-tertiary", style: { width: COL_YOY }, children: "YoY" }) })
3266
3279
  ] })
3267
3280
  ] });
3268
3281
  }
@@ -3270,9 +3283,9 @@ function MetricCells({ spendN, yoy }) {
3270
3283
  const prior = priorYearAmt(spendN, yoy);
3271
3284
  const up = yoy !== "NEW" && yoy >= 0;
3272
3285
  return /* @__PURE__ */ jsxs26("span", { className: "flex shrink-0 items-center gap-2 pr-1.5", children: [
3273
- /* @__PURE__ */ jsx28("span", { className: "text-right text-[12px] font-bold tabular-nums text-text-primary", style: { width: COL_CURRENT }, children: fmtM(spendN) }),
3274
- /* @__PURE__ */ jsx28("span", { className: "text-right text-[12px] font-normal tabular-nums text-text-primary", style: { width: COL_PREVIOUS }, children: prior ?? "\u2014" }),
3275
- /* @__PURE__ */ jsx28("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ jsx28("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-badge font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ jsxs26("span", { className: cx9("text-right text-[12px] font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
3286
+ /* @__PURE__ */ jsx28("span", { className: "text-right text-xs font-bold tabular-nums text-text-primary", style: { width: COL_CURRENT }, children: fmtM(spendN) }),
3287
+ /* @__PURE__ */ jsx28("span", { className: "text-right text-xs font-normal tabular-nums text-text-primary", style: { width: COL_PREVIOUS }, children: prior ?? "\u2014" }),
3288
+ /* @__PURE__ */ jsx28("span", { className: "flex justify-end", style: { width: COL_YOY }, children: yoy === "NEW" ? /* @__PURE__ */ jsx28("span", { className: "rounded-full bg-status-warning/15 px-1.5 text-badge font-semibold text-text-warning", children: "NEW" }) : /* @__PURE__ */ jsxs26("span", { className: cx9("text-right text-xs font-semibold tabular-nums", up ? "text-text-success" : "text-text-danger"), children: [
3276
3289
  up ? "+" : "\u2212",
3277
3290
  Math.abs(yoy),
3278
3291
  "%"
@@ -3291,7 +3304,7 @@ function PublisherBreakdownList({ rows, defaultVisibleCount = 10, padded = true,
3291
3304
  renderLogo ? renderLogo(p) : /* @__PURE__ */ jsx28(Monogram, { name: p.brand, size: 28 }),
3292
3305
  /* @__PURE__ */ jsxs26("div", { className: "min-w-0", children: [
3293
3306
  /* @__PURE__ */ jsxs26("div", { className: "flex flex-wrap items-center gap-1.5", children: [
3294
- /* @__PURE__ */ jsx28("span", { className: "text-[14px] font-semibold text-text-primary", children: p.brand }),
3307
+ /* @__PURE__ */ jsx28("span", { className: "text-sm font-semibold text-text-primary", children: p.brand }),
3295
3308
  p.tags.map((t) => /* @__PURE__ */ jsx28(BreakdownTag, { children: t }, t))
3296
3309
  ] }),
3297
3310
  /* @__PURE__ */ jsx28("div", { className: "truncate text-[11.5px] text-text-tertiary", children: p.owner })
@@ -3300,7 +3313,7 @@ function PublisherBreakdownList({ rows, defaultVisibleCount = 10, padded = true,
3300
3313
  /* @__PURE__ */ jsx28(MetricCells, { spendN: p.spendN, yoy: p.yoy })
3301
3314
  ] }, p.brand))
3302
3315
  ] }),
3303
- rows.length > defaultVisibleCount && (viewAllHref ? /* @__PURE__ */ jsx28("div", { className: cx9("border-t border-border-default py-3", rowPad), children: /* @__PURE__ */ jsx28("a", { href: viewAllHref, className: "text-[12px] font-semibold text-text-link hover:underline", children: "See all publishers" }) }) : /* @__PURE__ */ jsxs26("div", { className: cx9("flex items-center gap-2 border-t border-border-default py-3 text-[12px] text-text-tertiary", rowPad), children: [
3316
+ rows.length > defaultVisibleCount && (viewAllHref ? /* @__PURE__ */ jsx28("div", { className: cx9("border-t border-border-default py-3", rowPad), children: /* @__PURE__ */ jsx28("a", { href: viewAllHref, className: "text-xs font-semibold text-text-link hover:underline", children: "See all publishers" }) }) : /* @__PURE__ */ jsxs26("div", { className: cx9("flex items-center gap-2 border-t border-border-default py-3 text-xs text-text-tertiary", rowPad), children: [
3304
3317
  /* @__PURE__ */ jsxs26("span", { children: [
3305
3318
  "Showing ",
3306
3319
  visible.length,
@@ -3494,9 +3507,9 @@ function NameListModal({
3494
3507
  onKeyDown: trapTab,
3495
3508
  className: "w-full max-w-110 rounded-card border border-border-default bg-surface p-5 shadow-overlay",
3496
3509
  children: [
3497
- /* @__PURE__ */ jsx31("h2", { id: titleId, className: "text-[16px] font-semibold text-text-primary", children: title }),
3510
+ /* @__PURE__ */ jsx31("h2", { id: titleId, className: "text-base font-semibold text-text-primary", children: title }),
3498
3511
  /* @__PURE__ */ jsxs29("div", { className: "mt-4 flex flex-col gap-1.5", children: [
3499
- /* @__PURE__ */ jsx31("label", { htmlFor: fieldId, className: "text-[12px] font-medium text-text-secondary", children: fieldLabel }),
3512
+ /* @__PURE__ */ jsx31("label", { htmlFor: fieldId, className: "text-xs font-medium text-text-secondary", children: fieldLabel }),
3500
3513
  /* @__PURE__ */ jsx31(
3501
3514
  "input",
3502
3515
  {
@@ -3509,7 +3522,7 @@ function NameListModal({
3509
3522
  }
3510
3523
  )
3511
3524
  ] }),
3512
- options && options.length > 0 && /* @__PURE__ */ jsx31("div", { className: "mt-4 flex flex-col gap-2.5", children: options.map((o) => /* @__PURE__ */ jsxs29("label", { className: "flex cursor-pointer items-center gap-2.5 text-[13px] text-text-primary", children: [
3525
+ options && options.length > 0 && /* @__PURE__ */ jsx31("div", { className: "mt-4 flex flex-col gap-2.5", children: options.map((o) => /* @__PURE__ */ jsxs29("label", { className: "flex cursor-pointer items-center gap-2.5 text-dense text-text-primary", children: [
3513
3526
  /* @__PURE__ */ jsx31(CheckBox, { checked: !!checked[o.key], onChange: () => toggle(o.key), ariaLabel: o.label }),
3514
3527
  o.label
3515
3528
  ] }, o.key)) }),
@@ -3542,7 +3555,7 @@ function FilterChipBar({ chips, onRemove, onClearAll, parkedKeys }) {
3542
3555
  },
3543
3556
  c.key
3544
3557
  )),
3545
- /* @__PURE__ */ jsx32("button", { type: "button", onClick: onClearAll, className: "ml-1 text-[12px] font-medium text-text-link hover:underline", children: "Clear all" })
3558
+ /* @__PURE__ */ jsx32("button", { type: "button", onClick: onClearAll, className: "ml-1 text-xs font-medium text-text-link hover:underline", children: "Clear all" })
3546
3559
  ] });
3547
3560
  }
3548
3561
  function Chip({
@@ -3556,7 +3569,7 @@ function Chip({
3556
3569
  "span",
3557
3570
  {
3558
3571
  className: cn(
3559
- "flex items-center gap-1 rounded-full px-2.5 py-1 text-[12px] font-medium ring-1 transition-colors",
3572
+ "flex items-center gap-1 rounded-full px-2.5 py-1 text-xs font-medium ring-1 transition-colors",
3560
3573
  parked ? (
3561
3574
  // No fill, dashed edge, muted label: reads as "held, not acting on
3562
3575
  // anything" against the solid applied chips beside it.
@@ -3583,7 +3596,7 @@ function Chip({
3583
3596
  "span",
3584
3597
  {
3585
3598
  role: "tooltip",
3586
- className: "pointer-events-none absolute bottom-full left-1/2 z-20 mb-1.5 -translate-x-1/2 whitespace-nowrap rounded-md bg-text-primary px-2 py-1 text-[11px] font-medium text-surface opacity-0 shadow-raised transition-opacity duration-150 group-hover:opacity-100",
3599
+ className: "pointer-events-none absolute bottom-full left-1/2 z-20 mb-1.5 -translate-x-1/2 whitespace-nowrap rounded-md bg-text-primary px-2 py-1 text-micro font-medium text-surface opacity-0 shadow-raised transition-opacity duration-150 group-hover:opacity-100",
3587
3600
  children: parked ? "Not in this workspace" : groupLabel
3588
3601
  }
3589
3602
  )
@@ -3683,7 +3696,7 @@ function pageWindow(current, total) {
3683
3696
  return out;
3684
3697
  }
3685
3698
  function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination" }) {
3686
- const btn = "flex h-8 min-w-8 items-center justify-center rounded-control px-2 text-[13px] transition-colors disabled:pointer-events-none disabled:opacity-30";
3699
+ const btn = "flex h-8 min-w-8 items-center justify-center rounded-control px-2 text-dense transition-colors disabled:pointer-events-none disabled:opacity-30";
3687
3700
  return /* @__PURE__ */ jsxs32("nav", { "aria-label": label, className: "flex items-center gap-1", children: [
3688
3701
  /* @__PURE__ */ jsx34(
3689
3702
  "button",
@@ -3697,7 +3710,7 @@ function Pager({ page, totalPages, onPage, disabled = false, label = "Pagination
3697
3710
  }
3698
3711
  ),
3699
3712
  pageWindow(page, totalPages).map(
3700
- (p) => typeof p === "string" ? /* @__PURE__ */ jsx34("span", { className: "px-1 text-[13px] text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ jsx34(
3713
+ (p) => typeof p === "string" ? /* @__PURE__ */ jsx34("span", { className: "px-1 text-dense text-text-tertiary", children: "\u2026" }, p) : /* @__PURE__ */ jsx34(
3701
3714
  "button",
3702
3715
  {
3703
3716
  type: "button",
@@ -4014,7 +4027,7 @@ function MiniSelect({ value, onChange, options }) {
4014
4027
  const opt = options.find((o) => String(o.value) === e.target.value);
4015
4028
  if (opt) onChange(opt.value);
4016
4029
  },
4017
- className: "rounded-control border border-border-strong bg-input px-1.5 py-1 text-[12px] text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
4030
+ className: "rounded-control border border-border-strong bg-input px-1.5 py-1 text-xs text-text-primary focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-border-focus",
4018
4031
  children: options.map((o) => /* @__PURE__ */ jsx39("option", { value: String(o.value), children: o.label }, String(o.value)))
4019
4032
  }
4020
4033
  );
@@ -4090,7 +4103,7 @@ function DateRangePicker({
4090
4103
  children: [
4091
4104
  /* @__PURE__ */ jsxs35("span", { className: "flex flex-col gap-1 text-left leading-none", children: [
4092
4105
  /* @__PURE__ */ jsx39("span", { className: "text-control-caption text-text-tertiary", children: spanLabel2(value, end, formatDate, formatRange) }),
4093
- /* @__PURE__ */ jsx39("span", { className: "text-[12px] font-medium text-text-primary", children: value })
4106
+ /* @__PURE__ */ jsx39("span", { className: "text-xs font-medium text-text-primary", children: value })
4094
4107
  ] }),
4095
4108
  /* @__PURE__ */ jsx39(ChevronDown9, { size: 14, "aria-hidden": "true", className: cn("shrink-0 text-text-secondary transition-transform", open && "rotate-180") })
4096
4109
  ]
@@ -4102,15 +4115,15 @@ function DateRangePicker({
4102
4115
  {
4103
4116
  type: "button",
4104
4117
  onClick: () => showFooter ? setDraft(p) : commit(p),
4105
- className: cn("block w-full px-3 py-2 text-left text-[13px] transition-colors hover:bg-subtle", (showFooter ? draft : value) === p ? "font-semibold text-brand-primaryAction" : "text-text-secondary"),
4118
+ className: cn("block w-full px-3 py-2 text-left text-dense transition-colors hover:bg-subtle", (showFooter ? draft : value) === p ? "font-semibold text-brand-primaryAction" : "text-text-secondary"),
4106
4119
  children: p
4107
4120
  },
4108
4121
  p
4109
4122
  )),
4110
4123
  /* @__PURE__ */ jsxs35("div", { className: "mt-1 border-t border-border-default px-3 pb-2 pt-2", children: [
4111
- /* @__PURE__ */ jsx39("div", { className: "text-[13px] font-semibold text-text-primary", children: "Custom range" }),
4124
+ /* @__PURE__ */ jsx39("div", { className: "text-dense font-semibold text-text-primary", children: "Custom range" }),
4112
4125
  /* @__PURE__ */ jsxs35("div", { className: "mt-2 flex flex-col gap-2", children: [
4113
- /* @__PURE__ */ jsxs35("label", { className: "flex items-center justify-between gap-2 text-[12px] text-text-secondary", children: [
4126
+ /* @__PURE__ */ jsxs35("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4114
4127
  "From",
4115
4128
  /* @__PURE__ */ jsxs35("span", { className: "flex gap-1", children: [
4116
4129
  granularity === "month" && /* @__PURE__ */ jsx39(MiniSelect, { value: fromMo, onChange: setFromMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
@@ -4118,7 +4131,7 @@ function DateRangePicker({
4118
4131
  /* @__PURE__ */ jsx39(MiniSelect, { value: fromYr, onChange: setFromYr, options: yearOptions.map((y) => ({ label: String(y), value: y })) })
4119
4132
  ] })
4120
4133
  ] }),
4121
- /* @__PURE__ */ jsxs35("label", { className: "flex items-center justify-between gap-2 text-[12px] text-text-secondary", children: [
4134
+ /* @__PURE__ */ jsxs35("label", { className: "flex items-center justify-between gap-2 text-xs text-text-secondary", children: [
4122
4135
  "To",
4123
4136
  /* @__PURE__ */ jsxs35("span", { className: "flex gap-1", children: [
4124
4137
  granularity === "month" && /* @__PURE__ */ jsx39(MiniSelect, { value: toMo, onChange: setToMo, options: MONTH_ABBR.map((mm, i) => ({ label: mm, value: i })) }),
@@ -4132,7 +4145,7 @@ function DateRangePicker({
4132
4145
  type: "button",
4133
4146
  onClick: applyCustom,
4134
4147
  disabled: !valid,
4135
- className: "self-start text-[13px] font-semibold text-brand-primaryAction transition-opacity hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-40",
4148
+ className: "self-start text-dense font-semibold text-brand-primaryAction transition-opacity hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-40",
4136
4149
  children: showFooter ? "Use custom range" : "Apply"
4137
4150
  }
4138
4151
  )
@@ -4169,7 +4182,10 @@ function MultiSelectFilter({
4169
4182
  fullWidth = false,
4170
4183
  loading = false,
4171
4184
  error = false,
4172
- onRetry
4185
+ onRetry,
4186
+ valueLabel,
4187
+ hints,
4188
+ note
4173
4189
  }) {
4174
4190
  const groupLeaves = (g) => g.children.length ? g.children : [{ id: g.id, label: g.label }];
4175
4191
  const leafOptions = groups ? groups.flatMap(groupLeaves) : options;
@@ -4230,7 +4246,11 @@ function MultiSelectFilter({
4230
4246
  };
4231
4247
  const shown = open && !showFooter ? draft : selected;
4232
4248
  const isAll = shown.length === 0 || fullIsAll && shown.length === leafOptions.length;
4233
- const value = isAll ? allLabel : shown.length === 1 ? leafOptions.find((o) => o.id === shown[0])?.label ?? `${shown.length} selected` : `${shown.length} selected`;
4249
+ const value = valueLabel ?? (isAll ? allLabel : shown.length === 1 ? leafOptions.find((o) => o.id === shown[0])?.label ?? `${shown.length} selected` : `${shown.length} selected`);
4250
+ const labelled = (id, label) => hints?.[id] ? /* @__PURE__ */ jsxs36("span", { className: "flex flex-col", children: [
4251
+ /* @__PURE__ */ jsx40("span", { children: label }),
4252
+ /* @__PURE__ */ jsx40("span", { className: "text-xs font-normal text-text-tertiary", children: hints[id] })
4253
+ ] }) : label;
4234
4254
  const ql = q.trim().toLowerCase();
4235
4255
  const items = options.filter((o) => isAvailable(o.id) && (!ql || o.label.toLowerCase().includes(ql)));
4236
4256
  const visibleGroups = groups ? groups.map((g) => {
@@ -4281,7 +4301,7 @@ function MultiSelectFilter({
4281
4301
  value: q,
4282
4302
  onChange: (e) => setQ(e.target.value),
4283
4303
  placeholder: searchPlaceholder ?? `Search ${caption.toLowerCase()}`,
4284
- className: "h-full flex-1 bg-transparent text-[13px] outline-hidden placeholder:text-text-tertiary"
4304
+ className: "h-full flex-1 bg-transparent text-dense outline-hidden placeholder:text-text-tertiary"
4285
4305
  }
4286
4306
  ),
4287
4307
  q && /* @__PURE__ */ jsx40("button", { type: "button", onClick: () => setQ(""), "aria-label": "Clear search", className: "text-text-tertiary hover:text-text-primary", children: /* @__PURE__ */ jsx40(X5, { size: 13 }) })
@@ -4298,7 +4318,7 @@ function MultiSelectFilter({
4298
4318
  className: "flex w-full items-center gap-2.5 rounded-control px-2 py-2 text-left transition-colors hover:bg-subtle",
4299
4319
  children: [
4300
4320
  /* @__PURE__ */ jsx40(CheckBoxBox, { checked: state === "all", indeterminate: state === "some" }),
4301
- /* @__PURE__ */ jsx40("span", { className: cn("flex-1 text-[14px] text-text-primary", !plainParent && "font-semibold"), children: g.label }),
4321
+ /* @__PURE__ */ jsx40("span", { className: cn("flex-1 text-sm text-text-primary", !plainParent && "font-semibold"), children: labelled(g.id, g.label) }),
4302
4322
  counts && /* @__PURE__ */ jsx40(OptionCount, { n: countFor(g.id) })
4303
4323
  ]
4304
4324
  }
@@ -4313,7 +4333,7 @@ function MultiSelectFilter({
4313
4333
  className: "flex w-full items-center gap-2.5 rounded-control py-2 pl-9 pr-2 text-left transition-colors hover:bg-subtle",
4314
4334
  children: [
4315
4335
  /* @__PURE__ */ jsx40(CheckBoxBox, { checked }),
4316
- /* @__PURE__ */ jsx40("span", { className: "flex-1 text-[14px] text-text-primary", children: c.label }),
4336
+ /* @__PURE__ */ jsx40("span", { className: "flex-1 text-sm text-text-primary", children: labelled(c.id, c.label) }),
4317
4337
  counts && /* @__PURE__ */ jsx40(OptionCount, { n: countFor(c.id) })
4318
4338
  ]
4319
4339
  },
@@ -4331,21 +4351,22 @@ function MultiSelectFilter({
4331
4351
  className: "flex w-full items-center gap-2.5 rounded-control px-2 py-2 text-left transition-colors hover:bg-subtle",
4332
4352
  children: [
4333
4353
  /* @__PURE__ */ jsx40(CheckBoxBox, { checked }),
4334
- /* @__PURE__ */ jsx40("span", { className: "flex-1 text-[14px] text-text-primary", children: o.label }),
4354
+ /* @__PURE__ */ jsx40("span", { className: "flex-1 text-sm text-text-primary", children: labelled(o.id, o.label) }),
4335
4355
  counts && /* @__PURE__ */ jsx40(OptionCount, { n: countFor(o.id) })
4336
4356
  ]
4337
4357
  },
4338
4358
  o.id
4339
4359
  );
4340
4360
  }),
4341
- (groups && !visibleGroups.length || !groups && !items.length) && /* @__PURE__ */ jsx40("div", { className: "py-6 text-center text-[13px] text-text-tertiary", children: "No matches." })
4361
+ (groups && !visibleGroups.length || !groups && !items.length) && /* @__PURE__ */ jsx40("div", { className: "py-6 text-center text-dense text-text-tertiary", children: "No matches." })
4342
4362
  ] }),
4363
+ note && /* @__PURE__ */ jsx40("p", { className: "border-t border-border-default px-3 py-2 text-xs text-text-tertiary", children: note }),
4343
4364
  showFooter ? /* @__PURE__ */ jsx40(FilterDropdownFooter, { onClear: () => setDraft(clearValue), onApply: apply }) : min === 0 && draft.length > 0 && /* @__PURE__ */ jsx40("div", { className: "border-t border-border-default p-2", children: /* @__PURE__ */ jsxs36(
4344
4365
  "button",
4345
4366
  {
4346
4367
  type: "button",
4347
4368
  onClick: () => setDraft([]),
4348
- className: "text-[12px] font-medium text-text-link hover:underline",
4369
+ className: "text-xs font-medium text-text-link hover:underline",
4349
4370
  children: [
4350
4371
  "Clear ",
4351
4372
  caption.toLowerCase()
@@ -4358,7 +4379,7 @@ function MultiSelectFilter({
4358
4379
  ] });
4359
4380
  }
4360
4381
  function OptionCount({ n }) {
4361
- return /* @__PURE__ */ jsxs36("span", { className: "shrink-0 text-[12px] tabular-nums text-text-tertiary", children: [
4382
+ return /* @__PURE__ */ jsxs36("span", { className: "shrink-0 text-xs tabular-nums text-text-tertiary", children: [
4362
4383
  "(",
4363
4384
  n.toLocaleString(),
4364
4385
  ")"