@mediaradar/design-components 0.39.0 → 0.40.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
@@ -56,16 +56,19 @@ declare function InfoTip({ text, size, label, trigger }: InfoTipProps): react.JS
56
56
  * @pattern AdvertiserQuickFilter
57
57
  * @status stable
58
58
  * @description Search-first quick filter. Mirrors the standard filter-chip
59
- * shape (two-line caption + value + chevron) but never preloads the option
60
- * list -- users must search first, since the advertiser pool is effectively
61
- * endless. Selections are pinned in a "Selected (n)" section at the top so
62
- * they're never lost when the user runs another search. Named for its
63
- * original (and still primary) use, but the copy props make it reusable for
64
- * any dimension that's also search-first in its own filter tray, so the
65
- * dimension reads the same in the quick bar as it does there.
59
+ * shape (two-line caption + value + chevron) but by default never preloads the
60
+ * option list -- users must search first, since the advertiser pool is
61
+ * effectively endless. With `prepopulate`, a short, known list (leagues,
62
+ * brands on one dashboard) shows in full on open and the search box only
63
+ * narrows it; `pageSize` then lists it a page at a time. Selections are pinned
64
+ * in a "Selected (n)" section at the top so they're never lost when the user
65
+ * runs another search. Named for its original (and still primary) use, but
66
+ * the copy props make it reusable for any dimension that's also search-first
67
+ * in its own filter tray, so the dimension reads the same in the quick bar as
68
+ * it does there.
66
69
  * @tokens text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
67
70
  * border-border-interactive, border-border-focus, bg-surface, bg-input,
68
- * shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary,
71
+ * shadow-overlay, text-xs, text-text-primary, text-text-secondary, text-text-tertiary,
69
72
  * text-text-link, bg-brand-primaryAction, text-brand-onprimary,
70
73
  * hover:bg-subtle, hover:text-text-primary, placeholder:text-text-tertiary
71
74
  * @dependencies lucide-react
@@ -75,15 +78,21 @@ declare function InfoTip({ text, size, label, trigger }: InfoTipProps): react.JS
75
78
  * to `onChange`. With `showFooter`, only the Apply button commits -- every
76
79
  * other close path discards the draft, so the trigger label never previews
77
80
  * an unapplied change. The pinned "selected" section persists across
78
- * searches and collapses when the search is cleared.
81
+ * searches and collapses when the search is cleared. With `pageSize`, a new
82
+ * query or reopening the tray goes back to the first page.
79
83
  * @a11y Trigger is a <button> with aria-expanded and aria-haspopup; the menu is
80
84
  * role="dialog", closed on Escape. Option rows are role="checkbox" with
81
85
  * aria-checked, so each row is itself the control -- don't wrap them in
82
- * another clickable element.
86
+ * another clickable element. With `prepopulate`, a visually hidden
87
+ * role="status" line announces the result count ("12 results, showing 10")
88
+ * as the list changes. "Show N more" is a real <button>; after it loads a
89
+ * page, focus moves to the first new option, so keyboard users continue
90
+ * where the list grew instead of losing focus when the button goes away.
83
91
  * @usage
84
92
  * ```tsx
85
93
  * <AdvertiserQuickFilter options={advertisers} selected={selected} onChange={setSelected} />
86
94
  * <AdvertiserQuickFilter options={advertisers} selected={selected} onChange={setSelected} showFooter clearValue={defaults} />
95
+ * <AdvertiserQuickFilter caption="League" options={leagues} selected={selected} onChange={setSelected} prepopulate pageSize={10} />
87
96
  * ```
88
97
  */
89
98
  interface AdvertiserQuickFilterProps {
@@ -113,6 +122,19 @@ interface AdvertiserQuickFilterProps {
113
122
  * selection -- still committed back, still removable -- but they narrow
114
123
  * nothing, so the trigger label leaves them out of the count. */
115
124
  parked?: string[];
125
+ /**
126
+ * List every option as soon as the tray opens, instead of the "start
127
+ * typing" prompt; the search box then only narrows the list. For a short,
128
+ * known list. Leave it off for an effectively endless pool (advertisers).
129
+ * Defaults to false: search first, exactly as before.
130
+ */
131
+ prepopulate?: boolean;
132
+ /**
133
+ * With `prepopulate`: list this many rows at a time, with a "Show N more"
134
+ * button for the next page. Omit to list every option. Ignored without
135
+ * `prepopulate`.
136
+ */
137
+ pageSize?: number;
116
138
  /** Search box placeholder. Override alongside the other copy props when
117
139
  * the filter isn't advertisers, so the empty and no-results states name
118
140
  * the right dimension. */
@@ -128,7 +150,8 @@ interface AdvertiserQuickFilterProps {
128
150
  * (`${testIdPrefix}-trigger`), the popover (`-popover`), the search input
129
151
  * (`-search`), the selected-section toggle (`-selected-toggle`), the
130
152
  * select-all-visible row (`-select-all-visible`), each option row
131
- * (`-option-<slugified-id>`), and the footer's Clear All (`-clear-all`) and
153
+ * (`-option-<slugified-id>`), the "Show N more" row (`-show-more`), and
154
+ * the footer's Clear All (`-clear-all`) and
132
155
  * Apply (`-apply`). Omit entirely for no test-id wiring at all --
133
156
  * added specifically so an existing Playwright suite keyed off these ids
134
157
  * (mr-clientapps' `AdvertisersPicker`) doesn't lose its locators when
@@ -136,7 +159,7 @@ interface AdvertiserQuickFilterProps {
136
159
  */
137
160
  testIdPrefix?: string;
138
161
  }
139
- declare function AdvertiserQuickFilter({ caption, options, selected, onChange, align, icon, showFooter, clearValue, parked, searchPlaceholder, promptLabel, noResultsHint, clearLabel, testIdPrefix, }: AdvertiserQuickFilterProps): react.JSX.Element;
162
+ declare function AdvertiserQuickFilter({ caption, options, selected, onChange, align, icon, showFooter, clearValue, parked, prepopulate, pageSize, searchPlaceholder, promptLabel, noResultsHint, clearLabel, testIdPrefix, }: AdvertiserQuickFilterProps): react.JSX.Element;
140
163
 
141
164
  /**
142
165
  * @pattern AdvertiserSearchPrompt
package/dist/index.d.ts CHANGED
@@ -56,16 +56,19 @@ declare function InfoTip({ text, size, label, trigger }: InfoTipProps): react.JS
56
56
  * @pattern AdvertiserQuickFilter
57
57
  * @status stable
58
58
  * @description Search-first quick filter. Mirrors the standard filter-chip
59
- * shape (two-line caption + value + chevron) but never preloads the option
60
- * list -- users must search first, since the advertiser pool is effectively
61
- * endless. Selections are pinned in a "Selected (n)" section at the top so
62
- * they're never lost when the user runs another search. Named for its
63
- * original (and still primary) use, but the copy props make it reusable for
64
- * any dimension that's also search-first in its own filter tray, so the
65
- * dimension reads the same in the quick bar as it does there.
59
+ * shape (two-line caption + value + chevron) but by default never preloads the
60
+ * option list -- users must search first, since the advertiser pool is
61
+ * effectively endless. With `prepopulate`, a short, known list (leagues,
62
+ * brands on one dashboard) shows in full on open and the search box only
63
+ * narrows it; `pageSize` then lists it a page at a time. Selections are pinned
64
+ * in a "Selected (n)" section at the top so they're never lost when the user
65
+ * runs another search. Named for its original (and still primary) use, but
66
+ * the copy props make it reusable for any dimension that's also search-first
67
+ * in its own filter tray, so the dimension reads the same in the quick bar as
68
+ * it does there.
66
69
  * @tokens text-control-caption, rounded-control, rounded-card, border-border-default, border-border-strong,
67
70
  * border-border-interactive, border-border-focus, bg-surface, bg-input,
68
- * shadow-overlay, text-text-primary, text-text-secondary, text-text-tertiary,
71
+ * shadow-overlay, text-xs, text-text-primary, text-text-secondary, text-text-tertiary,
69
72
  * text-text-link, bg-brand-primaryAction, text-brand-onprimary,
70
73
  * hover:bg-subtle, hover:text-text-primary, placeholder:text-text-tertiary
71
74
  * @dependencies lucide-react
@@ -75,15 +78,21 @@ declare function InfoTip({ text, size, label, trigger }: InfoTipProps): react.JS
75
78
  * to `onChange`. With `showFooter`, only the Apply button commits -- every
76
79
  * other close path discards the draft, so the trigger label never previews
77
80
  * an unapplied change. The pinned "selected" section persists across
78
- * searches and collapses when the search is cleared.
81
+ * searches and collapses when the search is cleared. With `pageSize`, a new
82
+ * query or reopening the tray goes back to the first page.
79
83
  * @a11y Trigger is a <button> with aria-expanded and aria-haspopup; the menu is
80
84
  * role="dialog", closed on Escape. Option rows are role="checkbox" with
81
85
  * aria-checked, so each row is itself the control -- don't wrap them in
82
- * another clickable element.
86
+ * another clickable element. With `prepopulate`, a visually hidden
87
+ * role="status" line announces the result count ("12 results, showing 10")
88
+ * as the list changes. "Show N more" is a real <button>; after it loads a
89
+ * page, focus moves to the first new option, so keyboard users continue
90
+ * where the list grew instead of losing focus when the button goes away.
83
91
  * @usage
84
92
  * ```tsx
85
93
  * <AdvertiserQuickFilter options={advertisers} selected={selected} onChange={setSelected} />
86
94
  * <AdvertiserQuickFilter options={advertisers} selected={selected} onChange={setSelected} showFooter clearValue={defaults} />
95
+ * <AdvertiserQuickFilter caption="League" options={leagues} selected={selected} onChange={setSelected} prepopulate pageSize={10} />
87
96
  * ```
88
97
  */
89
98
  interface AdvertiserQuickFilterProps {
@@ -113,6 +122,19 @@ interface AdvertiserQuickFilterProps {
113
122
  * selection -- still committed back, still removable -- but they narrow
114
123
  * nothing, so the trigger label leaves them out of the count. */
115
124
  parked?: string[];
125
+ /**
126
+ * List every option as soon as the tray opens, instead of the "start
127
+ * typing" prompt; the search box then only narrows the list. For a short,
128
+ * known list. Leave it off for an effectively endless pool (advertisers).
129
+ * Defaults to false: search first, exactly as before.
130
+ */
131
+ prepopulate?: boolean;
132
+ /**
133
+ * With `prepopulate`: list this many rows at a time, with a "Show N more"
134
+ * button for the next page. Omit to list every option. Ignored without
135
+ * `prepopulate`.
136
+ */
137
+ pageSize?: number;
116
138
  /** Search box placeholder. Override alongside the other copy props when
117
139
  * the filter isn't advertisers, so the empty and no-results states name
118
140
  * the right dimension. */
@@ -128,7 +150,8 @@ interface AdvertiserQuickFilterProps {
128
150
  * (`${testIdPrefix}-trigger`), the popover (`-popover`), the search input
129
151
  * (`-search`), the selected-section toggle (`-selected-toggle`), the
130
152
  * select-all-visible row (`-select-all-visible`), each option row
131
- * (`-option-<slugified-id>`), and the footer's Clear All (`-clear-all`) and
153
+ * (`-option-<slugified-id>`), the "Show N more" row (`-show-more`), and
154
+ * the footer's Clear All (`-clear-all`) and
132
155
  * Apply (`-apply`). Omit entirely for no test-id wiring at all --
133
156
  * added specifically so an existing Playwright suite keyed off these ids
134
157
  * (mr-clientapps' `AdvertisersPicker`) doesn't lose its locators when
@@ -136,7 +159,7 @@ interface AdvertiserQuickFilterProps {
136
159
  */
137
160
  testIdPrefix?: string;
138
161
  }
139
- declare function AdvertiserQuickFilter({ caption, options, selected, onChange, align, icon, showFooter, clearValue, parked, searchPlaceholder, promptLabel, noResultsHint, clearLabel, testIdPrefix, }: AdvertiserQuickFilterProps): react.JSX.Element;
162
+ declare function AdvertiserQuickFilter({ caption, options, selected, onChange, align, icon, showFooter, clearValue, parked, prepopulate, pageSize, searchPlaceholder, promptLabel, noResultsHint, clearLabel, testIdPrefix, }: AdvertiserQuickFilterProps): react.JSX.Element;
140
163
 
141
164
  /**
142
165
  * @pattern AdvertiserSearchPrompt
package/dist/index.js CHANGED
@@ -94,7 +94,7 @@ function InfoTip({ text, size = 11, label = "More information", trigger = "click
94
94
 
95
95
  // src/AdvertiserQuickFilter.tsx
96
96
  import { useCallback, useEffect as useEffect2, useMemo, useRef as useRef2, useState as useState2 } from "react";
97
- import { Check, ChevronDown, ListChecks, Search as Search2, X } from "lucide-react";
97
+ import { Check, ChevronDown, ListChecks, Plus, Search as Search2, X } from "lucide-react";
98
98
 
99
99
  // src/AdvertiserSearchPrompt.tsx
100
100
  import { Search } from "lucide-react";
@@ -149,11 +149,21 @@ function ChipContent({ caption, value, icon }) {
149
149
  }
150
150
 
151
151
  // src/AdvertiserQuickFilter.tsx
152
- import { Fragment as Fragment2, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
152
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
153
153
  function cx(...parts) {
154
154
  return parts.filter(Boolean).join(" ");
155
155
  }
156
156
  var SELECT_ALL_THRESHOLD = 5;
157
+ function usePaging(total, pageSize, resetKey) {
158
+ const [pages, setPages] = useState2(1);
159
+ const [prevKey, setPrevKey] = useState2(resetKey);
160
+ if (prevKey !== resetKey) {
161
+ setPrevKey(resetKey);
162
+ setPages(1);
163
+ }
164
+ const shown = pageSize && pageSize > 0 ? Math.min(total, pages * pageSize) : total;
165
+ return { shown, remaining: total - shown, showMore: () => setPages((p) => p + 1) };
166
+ }
157
167
  function slug(value) {
158
168
  return value.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
159
169
  }
@@ -167,6 +177,8 @@ function AdvertiserQuickFilter({
167
177
  showFooter = false,
168
178
  clearValue = [],
169
179
  parked = [],
180
+ prepopulate = false,
181
+ pageSize,
170
182
  searchPlaceholder = "Search for an advertiser",
171
183
  promptLabel = "an advertiser name",
172
184
  noResultsHint = "Try checking your spelling or searching for a broader brand name.",
@@ -221,10 +233,28 @@ function AdvertiserQuickFilter({
221
233
  () => draft.map((id) => options.find((o) => o.id === id)).filter(Boolean),
222
234
  [draft, options]
223
235
  );
224
- const results = useMemo(
225
- () => ql ? options.filter((o) => !draft.includes(o.id) && o.label.toLowerCase().includes(ql)) : [],
226
- [ql, options, draft]
236
+ const matches = useMemo(
237
+ () => ql || prepopulate ? options.filter((o) => !draft.includes(o.id) && (!ql || o.label.toLowerCase().includes(ql))) : [],
238
+ [ql, prepopulate, options, draft]
227
239
  );
240
+ const { shown: pageEnd, remaining, showMore } = usePaging(
241
+ matches.length,
242
+ prepopulate ? pageSize : void 0,
243
+ `${open}|${ql}`
244
+ );
245
+ const results = useMemo(() => matches.slice(0, pageEnd), [matches, pageEnd]);
246
+ const resultsRef = useRef2(null);
247
+ const focusFrom = useRef2(null);
248
+ const loadMore = () => {
249
+ focusFrom.current = results.length;
250
+ showMore();
251
+ };
252
+ useEffect2(() => {
253
+ const from = focusFrom.current;
254
+ if (from === null) return;
255
+ focusFrom.current = null;
256
+ resultsRef.current?.querySelectorAll('[role="checkbox"]')[from]?.focus();
257
+ }, [pageEnd]);
228
258
  const visibleIds = results.map((o) => o.id);
229
259
  const allVisibleSelected = visibleIds.length > 0 && visibleIds.every((id) => draft.includes(id));
230
260
  const toggleAllVisible = () => setDraft(
@@ -330,14 +360,18 @@ function AdvertiserQuickFilter({
330
360
  o.id
331
361
  )) })
332
362
  ] }),
333
- !ql ? /* @__PURE__ */ jsx4(AdvertiserSearchPrompt, { label: promptLabel }) : results.length === 0 ? /* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-center gap-1.5 px-4 py-8 text-center", children: [
363
+ prepopulate && /* @__PURE__ */ jsxs4("p", { role: "status", className: "sr-only", "data-testid": testIdPrefix && `${testIdPrefix}-result-count`, children: [
364
+ matches.length === 1 ? "1 result" : `${matches.length} results`,
365
+ remaining > 0 ? `, showing ${results.length}` : ""
366
+ ] }),
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: [
334
368
  /* @__PURE__ */ jsxs4("p", { className: "text-[13px] font-medium text-text-primary", children: [
335
369
  "No results found for \u201C",
336
370
  q.trim(),
337
371
  "\u201D"
338
372
  ] }),
339
373
  /* @__PURE__ */ jsx4("p", { className: "text-[12px] leading-snug text-text-tertiary", children: noResultsHint })
340
- ] }) : /* @__PURE__ */ jsxs4(Fragment2, { children: [
374
+ ] }) : /* @__PURE__ */ jsxs4("div", { ref: resultsRef, children: [
341
375
  results.length > SELECT_ALL_THRESHOLD && /* @__PURE__ */ jsxs4(
342
376
  "button",
343
377
  {
@@ -360,7 +394,22 @@ function AdvertiserQuickFilter({
360
394
  testId: testIdPrefix && `${testIdPrefix}-option-${slug(o.id)}`
361
395
  },
362
396
  o.id
363
- ))
397
+ )),
398
+ remaining > 0 && !!pageSize && /* @__PURE__ */ jsxs4(
399
+ "button",
400
+ {
401
+ type: "button",
402
+ "data-testid": testIdPrefix && `${testIdPrefix}-show-more`,
403
+ onClick: loadMore,
404
+ className: "flex w-full items-center gap-1.5 rounded-control px-2 py-2 text-left text-xs font-semibold text-text-link transition-colors hover:bg-subtle focus-visible:outline-solid focus-visible:outline-2 focus-visible:outline-border-focus",
405
+ children: [
406
+ /* @__PURE__ */ jsx4(Plus, { size: 13, "aria-hidden": "true" }),
407
+ "Show ",
408
+ Math.min(remaining, pageSize),
409
+ " more"
410
+ ]
411
+ }
412
+ )
364
413
  ] })
365
414
  ] }),
366
415
  showFooter ? /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between border-t border-border-default px-3 py-2.5", children: [
@@ -1024,7 +1073,7 @@ function NavBtn({ children, onClick, ...rest }) {
1024
1073
  // src/SearchBar.tsx
1025
1074
  import { useEffect as useEffect4, useId as useId3, useRef as useRef4, useState as useState4 } from "react";
1026
1075
  import { AlertCircle, Check as Check3, ChevronDown as ChevronDown3, Search as Search3, X as X2 } from "lucide-react";
1027
- import { Fragment as Fragment3, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
1076
+ import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
1028
1077
  var HEIGHT = { sm: "h-8", md: "h-10", lg: "h-11" };
1029
1078
  var DEFAULT_SEARCH_MATCH = { mode: "anyWord", wordJoin: "Or" };
1030
1079
  var MODE_LABEL = {
@@ -1152,7 +1201,7 @@ function SearchBar({
1152
1201
  selected: matchValue.mode === "anyWord",
1153
1202
  onSelect: () => onMatchChange?.({ mode: "anyWord", wordJoin: matchValue.wordJoin }),
1154
1203
  testId: testIdPrefix && `${testIdPrefix}-mode-anyWord`,
1155
- description: /* @__PURE__ */ jsx9(Fragment3, { children: "Find creatives that contain your keyword(s) using an \u201COr\u201D (match any) or \u201CAnd\u201D (match all) conditional in any order." }),
1204
+ description: /* @__PURE__ */ jsx9(Fragment2, { children: "Find creatives that contain your keyword(s) using an \u201COr\u201D (match any) or \u201CAnd\u201D (match all) conditional in any order." }),
1156
1205
  infoText: "The Or/And choice applies only when Any Word is the active search mode.",
1157
1206
  extra: /* @__PURE__ */ jsxs8("span", { className: "flex items-center gap-3", children: [
1158
1207
  /* @__PURE__ */ jsx9(
@@ -2370,7 +2419,7 @@ function SelectedSection({ count, open, onToggle, children, testIdPrefix }) {
2370
2419
  // src/SelectionPicker.tsx
2371
2420
  import { useCallback as useCallback3, useEffect as useEffect9, useLayoutEffect as useLayoutEffect4, useMemo as useMemo3, useRef as useRef11, useState as useState9 } from "react";
2372
2421
  import { createPortal as createPortal4 } from "react-dom";
2373
- import { Search as Search4, Plus, Info as Info2, ChevronRight as ChevronRight3, ChevronDown as ChevronDown8, Check as Check6, List, Loader2 } from "lucide-react";
2422
+ import { Search as Search4, Plus as Plus2, Info as Info2, ChevronRight as ChevronRight3, ChevronDown as ChevronDown8, Check as Check6, List, Loader2 } from "lucide-react";
2374
2423
 
2375
2424
  // src/Tabs.tsx
2376
2425
  import { useRef as useRef10 } from "react";
@@ -2465,7 +2514,7 @@ function SegmentedControl({
2465
2514
  }
2466
2515
 
2467
2516
  // src/SelectionPicker.tsx
2468
- import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
2517
+ import { Fragment as Fragment3, jsx as jsx27, jsxs as jsxs25 } from "react/jsx-runtime";
2469
2518
  function cx8(...parts) {
2470
2519
  return parts.filter(Boolean).join(" ");
2471
2520
  }
@@ -2561,7 +2610,7 @@ function SelectionPicker({
2561
2610
  };
2562
2611
  const rowGridCols = showInfoColumn ? "grid-cols-[36px_1fr_44px]" : "grid-cols-[36px_1fr]";
2563
2612
  return /* @__PURE__ */ jsxs25("div", { className: "flex flex-col gap-4", children: [
2564
- helper && /* @__PURE__ */ jsxs25(Fragment4, { children: [
2613
+ helper && /* @__PURE__ */ jsxs25(Fragment3, { children: [
2565
2614
  /* @__PURE__ */ jsx27("p", { className: "text-dense text-text-secondary", children: helper }),
2566
2615
  /* @__PURE__ */ jsx27("hr", { className: "-mx-5 -mt-2 border-border-default sm:-mx-6" })
2567
2616
  ] }),
@@ -2716,7 +2765,7 @@ function SelectionPicker({
2716
2765
  kidSel ? "text-text-tertiary" : "text-text-link hover:bg-subtle"
2717
2766
  ),
2718
2767
  children: [
2719
- kidSel ? /* @__PURE__ */ jsx27(Check6, { size: 13 }) : /* @__PURE__ */ jsx27(Plus, { size: 13 }),
2768
+ kidSel ? /* @__PURE__ */ jsx27(Check6, { size: 13 }) : /* @__PURE__ */ jsx27(Plus2, { size: 13 }),
2720
2769
  kidSel ? "Added" : "Add"
2721
2770
  ]
2722
2771
  }
@@ -2746,7 +2795,7 @@ function SelectionPicker({
2746
2795
  ] }),
2747
2796
  source === "lists" && /* @__PURE__ */ jsxs25("div", { className: "flex min-w-0 flex-col gap-3", children: [
2748
2797
  /* @__PURE__ */ jsx27("p", { className: "text-dense text-text-secondary", children: "Select an account list to add all of its accounts at once. Your workspace stays in sync as the list is updated." }),
2749
- accountLists && accountLists.length > 0 ? /* @__PURE__ */ jsxs25(Fragment4, { children: [
2798
+ accountLists && accountLists.length > 0 ? /* @__PURE__ */ jsxs25(Fragment3, { children: [
2750
2799
  /* @__PURE__ */ jsx27(ScrollFade, { className: "flex max-h-99 flex-col gap-2 overflow-y-auto pr-0.5", children: accountLists.map((list) => {
2751
2800
  const on = (selectedListIds ?? []).includes(list.id);
2752
2801
  return /* @__PURE__ */ jsxs25(
@@ -2768,7 +2817,7 @@ function SelectionPicker({
2768
2817
  "flex h-5 w-5 shrink-0 items-center justify-center rounded-full",
2769
2818
  on ? "text-brand-primaryAction" : "text-text-secondary"
2770
2819
  ),
2771
- children: on ? /* @__PURE__ */ jsx27(Check6, { size: 16 }) : /* @__PURE__ */ jsx27(Plus, { size: 16 })
2820
+ children: on ? /* @__PURE__ */ jsx27(Check6, { size: 16 }) : /* @__PURE__ */ jsx27(Plus2, { size: 16 })
2772
2821
  }
2773
2822
  ),
2774
2823
  /* @__PURE__ */ jsxs25("span", { className: "min-w-0 flex-1", children: [
@@ -3892,7 +3941,7 @@ function DateRangePicker({
3892
3941
  // src/MultiSelectFilter.tsx
3893
3942
  import { useCallback as useCallback4, useEffect as useEffect13, useRef as useRef15, useState as useState14 } from "react";
3894
3943
  import { ChevronDown as ChevronDown10, Search as Search5, X as X5 } from "lucide-react";
3895
- import { Fragment as Fragment5, jsx as jsx40, jsxs as jsxs36 } from "react/jsx-runtime";
3944
+ import { Fragment as Fragment4, jsx as jsx40, jsxs as jsxs36 } from "react/jsx-runtime";
3896
3945
  function MultiSelectFilter({
3897
3946
  caption,
3898
3947
  options = [],
@@ -4017,7 +4066,7 @@ function MultiSelectFilter({
4017
4066
  ),
4018
4067
  role: "dialog",
4019
4068
  "aria-label": caption,
4020
- children: loading ? /* @__PURE__ */ jsx40(MenuLoading, {}) : error ? /* @__PURE__ */ jsx40(MenuError, { onRetry }) : /* @__PURE__ */ jsxs36(Fragment5, { children: [
4069
+ children: loading ? /* @__PURE__ */ jsx40(MenuLoading, {}) : error ? /* @__PURE__ */ jsx40(MenuError, { onRetry }) : /* @__PURE__ */ jsxs36(Fragment4, { children: [
4021
4070
  searchable && /* @__PURE__ */ jsx40("div", { className: "border-b border-border-default p-2", children: /* @__PURE__ */ jsxs36("div", { className: "flex h-8 items-center gap-2 rounded-control border border-border-strong bg-input px-2.5 focus-within:outline-2 focus-within:outline-offset-1 focus-within:outline-border-focus", children: [
4022
4071
  /* @__PURE__ */ jsx40(Search5, { size: 14, className: "text-text-secondary", "aria-hidden": "true" }),
4023
4072
  /* @__PURE__ */ jsx40(
@@ -4155,10 +4204,10 @@ function Toggle({ checked, onChange, label, size = "md", disabled, className, te
4155
4204
  // src/AISpark.tsx
4156
4205
  import { useId as useId6 } from "react";
4157
4206
  import { Sparkles } from "lucide-react";
4158
- import { Fragment as Fragment6, jsx as jsx42, jsxs as jsxs37 } from "react/jsx-runtime";
4207
+ import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs37 } from "react/jsx-runtime";
4159
4208
  function AISpark({ size = 16, className }) {
4160
4209
  const id = useId6();
4161
- return /* @__PURE__ */ jsxs37(Fragment6, { children: [
4210
+ return /* @__PURE__ */ jsxs37(Fragment5, { children: [
4162
4211
  /* @__PURE__ */ jsx42("svg", { width: "0", height: "0", "aria-hidden": "true", style: { position: "absolute" }, children: /* @__PURE__ */ jsx42("defs", { children: /* @__PURE__ */ jsxs37("linearGradient", { id, x1: "0", y1: "0", x2: "1", y2: "1", children: [
4163
4212
  /* @__PURE__ */ jsx42("stop", { offset: "0%", stopColor: "var(--mr-color-brand-primary)" }),
4164
4213
  /* @__PURE__ */ jsx42("stop", { offset: "100%", className: "[stop-color:#9474ff] in-data-[theme=dark]:[stop-color:#a488ff]" })