@aircall/ds 0.37.3 → 0.38.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.ts CHANGED
@@ -31,6 +31,7 @@ import { PreviewCard } from "@base-ui/react/preview-card";
31
31
  import { NumberField } from "@base-ui/react/number-field";
32
32
  import { OTPInput } from "input-otp";
33
33
  import { Progress as Progress$1 } from "@base-ui/react/progress";
34
+ import "platejs";
34
35
  import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
35
36
  import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
36
37
  import { ToasterProps, toast } from "sonner";
@@ -1700,11 +1701,26 @@ declare namespace ComboboxSeparator {
1700
1701
  }
1701
1702
  /**
1702
1703
  * Container for the selected chips in a multi-select combobox, wrapping Base UI's
1703
- * `Combobox.Chips`. Renders a bordered, wrapping `<div>` that also holds the chip input.
1704
+ * `Combobox.Chips`. Renders a bordered, wrapping `<div>` that holds the chips, the chip input
1705
+ * and a trailing chevron.
1706
+ *
1707
+ * The chevron is what makes a collapsed field read as a SELECT rather than as a text input that
1708
+ * happens to be empty. An empty chips field is otherwise a bare bordered box: nothing in it says
1709
+ * a list of options is one click away, which is exactly how a filter drawer full of untouched
1710
+ * multi-select fields looked. `ComboboxInput` has always drawn one; this is the same affordance
1711
+ * on the other field shape.
1712
+ *
1713
+ * Pass `showTrigger={false}` for a field that should not advertise a popup.
1704
1714
  */
1705
1715
  declare const ComboboxChips: React.ForwardRefExoticComponent<Omit<ComboboxChips.Props, "ref"> & React.RefAttributes<HTMLDivElement>>;
1706
1716
  declare namespace ComboboxChips {
1707
- type Props = React.ComponentPropsWithoutRef<typeof Combobox$1.Chips> & Combobox$1.Chips.Props;
1717
+ type Props = React.ComponentPropsWithoutRef<typeof Combobox$1.Chips> & Combobox$1.Chips.Props & {
1718
+ /**
1719
+ * Whether to render the trailing chevron that opens the popup.
1720
+ * @default true
1721
+ */
1722
+ showTrigger?: boolean;
1723
+ };
1708
1724
  }
1709
1725
  /**
1710
1726
  * A single selected value rendered inside `ComboboxChips`, wrapping Base UI's `Combobox.Chip`.
@@ -1732,20 +1748,6 @@ declare const ComboboxChipsInput: React.ForwardRefExoticComponent<Omit<import("@
1732
1748
  */
1733
1749
  declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
1734
1750
  //#endregion
1735
- //#region src/components/combobox-rows.d.ts
1736
- /**
1737
- * Async states a data-driven combobox list can be in (mirrors `DataTable`'s
1738
- * `loadingState`). Shared by `DataCombobox` and `ComboboxBody`:
1739
- * - `'loading'` — initial load with no items yet; the list shows skeleton rows.
1740
- * - `'filtering'` — re-querying after the user typed; the current results stay
1741
- * in place under a dimmed overlay with a spinner (context + stable height)
1742
- * until the new results arrive. Keep the previous `items` until then.
1743
- * - `'loadingMore'` — fetching the next page for infinite scroll; a spinner row
1744
- * renders at the bottom of the list.
1745
- * Omit (or `'idle'`) when not loading.
1746
- */
1747
- type ComboboxLoadingState = 'idle' | 'loading' | 'filtering' | 'loadingMore';
1748
- //#endregion
1749
1751
  //#region src/lib/use-combobox-item-selection.d.ts
1750
1752
  /**
1751
1753
  * WHY a selection changed, straight from Base UI's combobox root — `'item-press'`,
@@ -1756,196 +1758,6 @@ type ComboboxLoadingState = 'idle' | 'loading' | 'filtering' | 'loadingMore';
1756
1758
  */
1757
1759
  type ComboboxSelectionChangeDetails = Parameters<NonNullable<React.ComponentProps<typeof Combobox$1.Root>['onValueChange']>>[1];
1758
1760
  //#endregion
1759
- //#region src/components/combobox-body.d.ts
1760
- /**
1761
- * Row count at which `ComboboxBody` virtualises its rows on its own, when `virtualizeRows` was not
1762
- * passed either way. Exported so it can be asserted against and tuned in ONE place.
1763
- *
1764
- * Crossing it LATCHES virtualisation on for the life of the component - see the `virtualizeRows`
1765
- * prop doc. A list that declares `onFetchMore` can grow without bound, so it starts out virtualised
1766
- * regardless of this number rather than waiting to cross it.
1767
- *
1768
- * A STARTING POINT, not a measured optimum. The two real data points behind it: 244 countries with
1769
- * a flag per row was visibly laggy unvirtualised, and the user lists are server-capped at 10 rows
1770
- * today, so both known cases sit far from this line and the exact value is not load-bearing yet.
1771
- * Measure before tuning it - the honest cost driver is how expensive `renderItem` is, not the row
1772
- * count alone, and a threshold cannot see that.
1773
- */
1774
- declare const COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD = 100;
1775
- interface ComboboxBodyProps<T> {
1776
- /** The items to show in the list — the already-prepared page/result set. */
1777
- items: T[];
1778
- /** Resolves an item's stable value/key (used for selection and de-duplication). */
1779
- getItemValue: (item: T) => string;
1780
- /** Resolves an item's display label — also the typeahead/accessibility text. */
1781
- getItemLabel: (item: T) => string;
1782
- /** Optional rich row content (icon, description, …). Defaults to `getItemLabel`. */
1783
- renderItem?: (item: T) => React.ReactNode;
1784
- /**
1785
- * Groups items under headers. Return the group key an item belongs to; items
1786
- * are grouped in first-seen order. When provided, the list renders grouped
1787
- * sections. Pair with `getGroupLabel` for a custom header.
1788
- */
1789
- getGroupKey?: (item: T) => string;
1790
- /** Maps a group key to its header label. Defaults to the group key. */
1791
- getGroupLabel?: (groupKey: string) => React.ReactNode;
1792
- /**
1793
- * `'single'` (default) selects one item; `'multiple'` selects many, each row
1794
- * keeping its check indicator. There is no chips field — the host (a `Filter`
1795
- * trigger, a form field) summarises the selection.
1796
- */
1797
- selectionMode?: 'single' | 'multiple';
1798
- /** Controlled selected item keys (values from `getItemValue`). */
1799
- selectedKeys?: Set<string>;
1800
- /** Initial selected keys for uncontrolled selection. Ignored when `selectedKeys` is set. */
1801
- defaultSelectedKeys?: Set<string>;
1802
- /**
1803
- * Called with the new set of selected keys whenever selection changes, and with WHY it
1804
- * changed (`details.reason`) — `'item-press'`, `'clear-press'`, `'escape-key'`, ….
1805
- *
1806
- * Read the reason whenever a deliberate pick and a RESET must be told apart. Escape clears
1807
- * an inline list's selection (see the dismissal note on the component) and reports it here
1808
- * exactly like a pick, so a host that treats every change as a user choice will treat that
1809
- * clear as one too. `Filter`'s popup is the case in point: it must not apply an Escape
1810
- * clear, because Escape there means "discard my draft", not "select nothing".
1811
- */
1812
- onSelectionChange?: (keys: Set<string>, details: ComboboxSelectionChangeDetails) => void;
1813
- /**
1814
- * Known selected items used to seed the label cache, so a selected key whose
1815
- * item is NOT in the current `items` (e.g. a saved filter value not yet
1816
- * fetched, or a selection made before searching away) still resolves.
1817
- */
1818
- selectedItems?: T[];
1819
- /** Item keys that cannot be selected — rendered disabled and dimmed. */
1820
- disabledKeys?: Set<string>;
1821
- /** The list's async state. Omit (or `'idle'`) when not loading. */
1822
- loadingState?: ComboboxLoadingState;
1823
- /** Number of skeleton rows shown while `loadingState` is `'loading'`. */
1824
- skeletonCount?: number;
1825
- /**
1826
- * Enables SERVER-side search. When omitted, the list filters the provided
1827
- * `items` client-side as you type (Base UI's built-in filter) — ideal for a
1828
- * fixed list. When provided, internal filtering is turned off and this is
1829
- * called (debounce it yourself) with the query: feed the matching `items` and
1830
- * set `loadingState='filtering'` while the fetch runs.
1831
- *
1832
- * Prefer this for any PAGINATED list: while `onFetchMore`+`hasMore` are active
1833
- * client-side filtering is disabled (it only sees loaded pages and would break
1834
- * infinite scroll), so a searchable paginated list must search server-side.
1835
- *
1836
- * Called with `''` when the query is cleared — including the automatic clear
1837
- * after a selection. Treat `''` as "no query": return the initial, unfiltered
1838
- * list. Otherwise the results stay stuck on the last search with no way back.
1839
- */
1840
- onSearch?: (query: string) => void;
1841
- /** Called when the user scrolls near the bottom of the list; fetch the next page. */
1842
- onFetchMore?: () => void;
1843
- /** Whether more pages are available. */
1844
- hasMore?: boolean;
1845
- /** Shown when there are no items and not loading. Defaults to a "no results" message. */
1846
- emptyState?: React.ReactNode;
1847
- /**
1848
- * Whether a search input renders above the list. Set `false` for a short
1849
- * pick-list that doesn't need typeahead (e.g. a "Status" filter). Keyboard
1850
- * selection still works: with no input to own the tab stop, the LIST becomes
1851
- * focusable and takes the arrow keys and Enter itself.
1852
- * @default true
1853
- */
1854
- searchable?: boolean;
1855
- /** Placeholder for the search input. Ignored when `searchable` is `false`. */
1856
- placeholder?: string;
1857
- /**
1858
- * Renders only the rows inside the scrolled window plus a small overscan,
1859
- * instead of every item, via `@tanstack/react-virtual`.
1860
- *
1861
- * Three states, not two:
1862
- * - `true` — always on, even for a short list.
1863
- * - `false` — always off, even for a huge one. The escape hatch for a test that
1864
- * needs every row in the DOM.
1865
- * - omitted (the default) — AUTO: on once this list either declares
1866
- * `onFetchMore` (so it can grow without bound) or reaches
1867
- * {@link COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD} rows. A long list therefore does
1868
- * not have to remember to ask.
1869
- *
1870
- * Auto is one-way: it LATCHES on and never turns back off, even if the list
1871
- * later shrinks below the threshold. That matters because turning it off again
1872
- * is not free. Base UI renders its list element bare when `virtualized` and
1873
- * wrapped in a `CompositeList` when not, so changing that prop mid-life changes
1874
- * the component type at that position and React remounts the list. Measured
1875
- * cost of one such change, driven from a story: the list element is replaced and
1876
- * `scrollTop` goes 656 to 0.
1877
- *
1878
- * Which is also why a list declaring `onFetchMore` virtualises from the start
1879
- * rather than waiting to cross the threshold — it will cross it eventually, and
1880
- * the crossing is the expensive part. A list with a fixed set of items that is
1881
- * simply handed more rows later still pays that one crossing; latching is what
1882
- * keeps it to one rather than one per fluctuation.
1883
- *
1884
- * IGNORED for a GROUPED list (`getGroupKey` set), including when passed
1885
- * explicitly — group headers would need a second, variable-height index space
1886
- * on top of the row one, so grouped lists keep rendering every row. The
1887
- * threshold does not override that gate. Same shape as `DataTable`, which
1888
- * silently gates its own `virtualizeRows` on `fillHeight` for the same "the
1889
- * prerequisite isn't there" reason.
1890
- *
1891
- * Everything else is unchanged: search (client- or server-side), keyboard
1892
- * navigation and typeahead still reach every item, not just the mounted ones,
1893
- * and infinite scroll still fires at the true bottom of the data.
1894
- * @default auto — see {@link COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD}
1895
- */
1896
- virtualizeRows?: boolean;
1897
- /**
1898
- * Assumed row height in px before a row has been measured, while
1899
- * `virtualizeRows` is on. Real heights are measured after the first paint, so
1900
- * this only sets the initial scrollbar; pass it when `renderItem` produces a
1901
- * row taller than one line of text so the scrollbar doesn't jump.
1902
- * @default 36
1903
- */
1904
- estimateRowHeight?: number;
1905
- /** Class applied to the wrapper holding the search input and the list. */
1906
- className?: string;
1907
- 'aria-label'?: string;
1908
- }
1909
- /**
1910
- * A data-driven combobox list with NO trigger and NO popup of its own: an
1911
- * optional search input above a selectable list, ready to be dropped into a
1912
- * surface the caller owns (a `Filter` popover, a panel, a dialog). Driven by an
1913
- * `items` array plus `getItemValue`/`getItemLabel`, with opt-in server-side
1914
- * search, grouping, infinite scroll, and loading/empty states.
1915
- *
1916
- * Use `DataCombobox` instead when you want the field-plus-popup combobox. This
1917
- * is the same rows region plus an optional search input, without the field or the
1918
- * popup around them, so the host controls open state, dismissal and positioning.
1919
- * The name pairs with `ComboboxContent`, which is the popup this deliberately
1920
- * does not have.
1921
- *
1922
- * Dismissal note: with no popup of its own, this holds no dismiss layer, so an
1923
- * outside press or Escape always reaches the host. Escape ALSO resets the list —
1924
- * clearing the query and the selection, the combobox convention for a list with
1925
- * nothing open — but only while the search box is untouched; once the user has
1926
- * clicked or typed in it, Base UI treats the list as open and Escape just
1927
- * dismisses. The reset is forwarded to `onSearch('')` so a server-driven list
1928
- * comes back unfiltered instead of stranding the previous query's page. Dismiss
1929
- * via an outside press (or the host's own close affordance) when the selection
1930
- * must survive.
1931
- *
1932
- * @example
1933
- * ```tsx
1934
- * <ComboboxBody
1935
- * items={statuses}
1936
- * getItemValue={status => status.id}
1937
- * getItemLabel={status => status.label}
1938
- * selectionMode="multiple"
1939
- * selectedKeys={selectedKeys}
1940
- * onSelectionChange={setSelectedKeys}
1941
- * />
1942
- * ```
1943
- */
1944
- declare function ComboboxBody<T>(componentProps: ComboboxBody.Props<T>): React.JSX.Element;
1945
- declare namespace ComboboxBody {
1946
- type Props<T> = ComboboxBodyProps<T>;
1947
- }
1948
- //#endregion
1949
1761
  //#region src/components/dialog.d.ts
1950
1762
  /**
1951
1763
  * Root of the dialog, wrapping Base UI's `Dialog.Root`. Manages open/close state and renders no DOM
@@ -2201,7 +2013,47 @@ declare namespace CountryFlag {
2201
2013
  type Props = CountryFlagProps;
2202
2014
  }
2203
2015
  //#endregion
2016
+ //#region src/components/combobox-rows.d.ts
2017
+ /**
2018
+ * Async states a data-driven combobox list can be in (mirrors `DataTable`'s
2019
+ * `loadingState`). Used by every `DataCombobox` layout:
2020
+ * - `'loading'` — initial load with no items yet; the list shows skeleton rows.
2021
+ * - `'filtering'` — re-querying after the user typed; the current results stay
2022
+ * in place under a dimmed overlay with a spinner (context + stable height)
2023
+ * until the new results arrive. Keep the previous `items` until then.
2024
+ * - `'loadingMore'` — fetching the next page for infinite scroll; a spinner row
2025
+ * renders at the bottom of the list.
2026
+ * Omit (or `'idle'`) when not loading.
2027
+ */
2028
+ type ComboboxLoadingState = 'idle' | 'loading' | 'filtering' | 'loadingMore';
2029
+ //#endregion
2204
2030
  //#region src/components/data-combobox.d.ts
2031
+ /**
2032
+ * Row count at which `DataCombobox` virtualises its rows on its own, when `virtualizeRows` was not
2033
+ * passed either way. Exported so it can be asserted against and tuned in ONE place.
2034
+ *
2035
+ * Crossing it LATCHES virtualisation on for the life of the component - see the `virtualizeRows`
2036
+ * prop doc. A list that declares `onFetchMore` can grow without bound, so it starts out virtualised
2037
+ * regardless of this number rather than waiting to cross it.
2038
+ *
2039
+ * A STARTING POINT, not a measured optimum. The two real data points behind it: 244 countries with
2040
+ * a flag per row was visibly laggy unvirtualised, and the user lists are server-capped at 10 rows
2041
+ * today, so both known cases sit far from this line and the exact value is not load-bearing yet.
2042
+ * Measure before tuning it - the honest cost driver is how expensive `renderItem` is, not the row
2043
+ * count alone, and a threshold cannot see that.
2044
+ */
2045
+ declare const COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD = 100;
2046
+ /**
2047
+ * Row count at which `searchable="auto"` decides a list is long enough to need a search input.
2048
+ *
2049
+ * Exported so a consumer can reason about the boundary rather than re-deriving it, and so the
2050
+ * number lives in ONE place. Comes from the dashboard filter design (Figma node 7959:10798), which
2051
+ * annotates every drawer field as "Combobox - with search if 15+ items".
2052
+ *
2053
+ * Only consulted for `searchable="auto"`. An explicit `true` or `false` always wins, and the
2054
+ * default is still `true`, so no list changes behaviour without asking.
2055
+ */
2056
+ declare const COMBOBOX_AUTO_SEARCH_THRESHOLD = 15;
2205
2057
  interface DataComboboxProps<T> {
2206
2058
  /** The items to show in the dropdown — the already-prepared page/result set. */
2207
2059
  items: T[];
@@ -2246,12 +2098,29 @@ interface DataComboboxProps<T> {
2246
2098
  */
2247
2099
  onSelectionChange?: (keys: Set<string>, details: ComboboxSelectionChangeDetails) => void;
2248
2100
  /**
2249
- * Called when the dropdown opens (`true`) or closes (`false`). Use the
2250
- * `false` edge to commit a deferred action — e.g. a table filter that should
2251
- * only run once the user is done picking, not on every checkbox toggle:
2252
- * keep the live selection in `onSelectionChange` and apply it here on close.
2101
+ * Called when the dropdown opens (`true`) or closes (`false`), and with WHY it
2102
+ * changed (`details.reason`) — `'escape-key'`, `'outside-press'`,
2103
+ * `'item-press'`, …. Use the `false` edge to commit a deferred action — e.g. a
2104
+ * table filter that should only run once the user is done picking, not on
2105
+ * every checkbox toggle: keep the live selection in `onSelectionChange` and
2106
+ * apply it here on close.
2107
+ *
2108
+ * Read the reason whenever a DISMISSAL and a deliberate finish must be told
2109
+ * apart. A filter chip holding a draft is the case in point: Escape means
2110
+ * "discard what I was picking" while every other close means "apply it", and
2111
+ * without the reason both look identical here.
2112
+ *
2113
+ * The second argument is Base UI's, forwarded untouched, so its reason union
2114
+ * is Base UI's to grow.
2253
2115
  */
2254
- onOpenChange?: (open: boolean) => void;
2116
+ onOpenChange?: (open: boolean, details: Parameters<NonNullable<Combobox$1.Root.Props<T>['onOpenChange']>>[1]) => void;
2117
+ /**
2118
+ * Controls the dropdown's open state. Omit for an uncontrolled dropdown that
2119
+ * opens and closes itself; pass it (with `onOpenChange`) when the HOST owns
2120
+ * open state, e.g. a filter chip that must stay open while its draft is edited
2121
+ * and close on its own terms.
2122
+ */
2123
+ open?: boolean;
2255
2124
  /**
2256
2125
  * Known selected items used to seed the label cache, so a selected key whose
2257
2126
  * item is NOT in the current `items` (e.g. a saved form value not yet fetched,
@@ -2275,10 +2144,18 @@ interface DataComboboxProps<T> {
2275
2144
  * client-side filtering is disabled (it only sees loaded pages and would break
2276
2145
  * infinite scroll), so a searchable paginated list must search server-side.
2277
2146
  *
2278
- * Called with `''` when the query is cleared — including the automatic clear
2279
- * after a selection (multi keeps the popup open) and the input's clear button.
2280
- * Treat `''` as "no query": return the initial, unfiltered list. Otherwise the
2281
- * results stay stuck on the last search with no way back to the full list.
2147
+ * Called with `''` when the query ENDS — the input's clear button, the automatic
2148
+ * clear after a selection (multi keeps the popup open), and every close of the
2149
+ * popup, dismissals included. Treat `''` as "no query" and return the initial,
2150
+ * unfiltered list; otherwise the results stay stuck on the last search with no way
2151
+ * back to it.
2152
+ *
2153
+ * The close edge is guaranteed by this component rather than by Base UI, which
2154
+ * reports it on some closes and not others. A single-mode field with an item already
2155
+ * selected was the gap: Base UI restored the field to that item's label and said
2156
+ * nothing, so a consumer holding the query stayed filtered by text no longer on
2157
+ * screen. Costs one `onSearch('')` per dismissal, which is the cheaper half of the
2158
+ * trade against a list that cannot get back to unfiltered.
2282
2159
  */
2283
2160
  onSearch?: (query: string) => void;
2284
2161
  /** Called when the user scrolls near the bottom of the list; fetch the next page. */
@@ -2296,13 +2173,29 @@ interface DataComboboxProps<T> {
2296
2173
  */
2297
2174
  trigger?: React.ReactElement;
2298
2175
  /**
2299
- * Whether the dropdown shows a search input. Default `true`. Set `false` for a
2300
- * short pick-list that doesn't need typeahead (e.g. a "Status" filter): with a
2301
- * `trigger`, the overlay renders just the list (no search box); keyboard nav
2302
- * and selection still work. Ignored without a `trigger` (the inline field IS
2303
- * the input / chips).
2176
+ * Whether the combobox can be searched. Three states, not two:
2177
+ *
2178
+ * - `true` (the default) — always searchable.
2179
+ * - `false` — never. With a `trigger`, the overlay renders just the list and no
2180
+ * search box. Without one, the inline single-selection field becomes
2181
+ * READ-ONLY, so it reads as a select: it still opens the popup and still
2182
+ * takes the keyboard, it just cannot be typed into.
2183
+ * - `'auto'` — searchable once the list reaches
2184
+ * {@link COMBOBOX_AUTO_SEARCH_THRESHOLD} rows, OR whenever the list is
2185
+ * server-driven (`onSearch` set) however few rows it currently holds.
2186
+ *
2187
+ * That `onSearch` carve-out is the load-bearing half of `'auto'`. A paginated
2188
+ * or server-filtered list only ever knows the rows it has LOADED, so counting
2189
+ * `items.length` would take the search box away from exactly the lists that
2190
+ * cannot work without it — the first page of a 10-at-a-time user list would
2191
+ * come back short and unsearchable, with no way to reach the rest.
2192
+ *
2193
+ * The default stays `true` on purpose: `'auto'` is opt-in, so no existing
2194
+ * caller loses its search input by upgrading.
2195
+ *
2196
+ * @default true
2304
2197
  */
2305
- searchable?: boolean;
2198
+ searchable?: boolean | 'auto';
2306
2199
  /** Placeholder for the input (single / overlay search) or chips input (multiple). */
2307
2200
  placeholder?: string;
2308
2201
  /** Disables the whole combobox. */
@@ -2315,12 +2208,94 @@ interface DataComboboxProps<T> {
2315
2208
  * for a wider menu.
2316
2209
  */
2317
2210
  contentClassName?: string;
2211
+ /**
2212
+ * Accessible name for the visible FIELD — the inline input, or the chips field's
2213
+ * input — and, unless {@link DataComboboxProps.listAriaLabel} overrides it, for the
2214
+ * rows region too.
2215
+ *
2216
+ * Pass it whenever the field's only label is nearby text. The field renders
2217
+ * `role="combobox"`, and that role takes its name only from `aria-label` /
2218
+ * `aria-labelledby` — never from an adjacent `<label>` or heading. So a
2219
+ * label-above-field layout leaves the control unnamed unless this is set, which a
2220
+ * screen reader reports as an unlabelled combobox.
2221
+ *
2222
+ * With a `trigger` there is no field to name — that element is yours, so name it
2223
+ * directly — and this falls through to the rows region alone.
2224
+ */
2318
2225
  'aria-label'?: string;
2319
2226
  /**
2320
- * Whether to render the trailing clear button that resets the value.
2321
- * @default false
2227
+ * Accessible name for the ROWS region (the `listbox`), when it should differ from
2228
+ * the field's name. Defaults to `aria-label`.
2229
+ *
2230
+ * Rarely needed. The two are the same control to a user, so one name normally
2231
+ * describes both, and the default is what keeps the common case a single prop. Reach
2232
+ * for this only when the list holds something the field's name does not describe —
2233
+ * "Recently used numbers" under a field named "Numbers".
2234
+ */
2235
+ listAriaLabel?: string;
2236
+ /**
2237
+ * Whether to render the trailing clear button that resets the value. Only the
2238
+ * inline single-selection field has one; the chips field and a custom `trigger`
2239
+ * never render it.
2240
+ * @default true
2322
2241
  */
2323
2242
  showClear?: boolean;
2243
+ /**
2244
+ * Element the popup positions against, instead of the field or `trigger`.
2245
+ *
2246
+ * Pass it when the visible control is WIDER than the element that opens the
2247
+ * popup, so the popup lines up with the whole control: a filter chip is a
2248
+ * trigger plus a clear button in one bordered group, and anchoring to the
2249
+ * trigger alone leaves the popup visibly short of the chip's right edge.
2250
+ *
2251
+ * Accepts anything Base UI's positioner accepts — a ref, an element, or a
2252
+ * virtual element.
2253
+ */
2254
+ anchor?: ComboboxContent.Props['anchor'];
2255
+ /**
2256
+ * Renders only the rows inside the scrolled window plus a small overscan,
2257
+ * instead of every item, via `@tanstack/react-virtual`.
2258
+ *
2259
+ * Three states, not two:
2260
+ * - `true` — always on, even for a short list.
2261
+ * - `false` — always off, even for a huge one. The escape hatch for a test that
2262
+ * needs every row in the DOM.
2263
+ * - `'auto'`, or omitted (the default) — on once this list either declares
2264
+ * `onFetchMore` (so it can grow without bound) or reaches
2265
+ * {@link COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD} rows. A long list therefore does
2266
+ * not have to remember to ask.
2267
+ *
2268
+ * `'auto'` and omitting it mean the same thing, and both are kept on purpose:
2269
+ * omitting it is the default, while the word is what a call site can WRITE to say
2270
+ * the decision was considered rather than forgotten — and it greps. The same word
2271
+ * `searchable` uses, so the two tri-states read alike.
2272
+ *
2273
+ * Auto is one-way: it LATCHES on and never turns back off, even if the list
2274
+ * later shrinks below the threshold. Base UI renders its list element bare when
2275
+ * `virtualized` and wrapped in a `CompositeList` when not, so changing that prop
2276
+ * mid-life changes the component type at that position and React remounts the
2277
+ * list, losing `scrollTop`. Which is also why a list declaring `onFetchMore`
2278
+ * virtualises from the start rather than waiting to cross the threshold — it
2279
+ * will cross it eventually, and the crossing is the expensive part.
2280
+ *
2281
+ * IGNORED for a GROUPED list (`getGroupKey` set), including when passed
2282
+ * explicitly — group headers would need a second, variable-height index space
2283
+ * on top of the row one, so grouped lists keep rendering every row.
2284
+ *
2285
+ * Everything else is unchanged: search (client- or server-side), keyboard
2286
+ * navigation and typeahead still reach every item, not just the mounted ones,
2287
+ * and infinite scroll still fires at the true bottom of the data.
2288
+ * @default 'auto' — see {@link COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD}
2289
+ */
2290
+ virtualizeRows?: boolean | 'auto';
2291
+ /**
2292
+ * Assumed row height in px before a row has been measured, while
2293
+ * `virtualizeRows` is on. Real heights are measured after the first paint, so
2294
+ * this only sets the initial scrollbar; pass it when `renderItem` produces a
2295
+ * row taller than one line of text so the scrollbar doesn't jump.
2296
+ * @default 36
2297
+ */
2298
+ estimateRowHeight?: number;
2324
2299
  }
2325
2300
  /**
2326
2301
  * Searchable dropdown built on the DS Combobox primitives, driven by an `items`
@@ -2346,8 +2321,8 @@ declare namespace DataCombobox {
2346
2321
  /**
2347
2322
  * The loading state union, under its original `DataCombobox`-prefixed name.
2348
2323
  *
2349
- * @deprecated Use `ComboboxLoadingState`. `DataCombobox` and `ComboboxBody` both
2350
- * take this type, so the `Data` prefix no longer describes it. This alias is
2324
+ * @deprecated Use `ComboboxLoadingState`. `ComboboxRows` and `DataCombobox` share
2325
+ * this type, so the `Data` prefix does not describe where it lives. This alias is
2351
2326
  * identical and keeps working; it will be removed in a future minor.
2352
2327
  */
2353
2328
  type DataComboboxLoadingState = ComboboxLoadingState;
@@ -4009,8 +3984,8 @@ declare namespace InlineEditInput {
4009
3984
  */
4010
3985
  declare const InlineEditInput: React.ForwardRefExoticComponent<Omit<InlineEditInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
4011
3986
  //#endregion
4012
- //#region src/components/inline-edit-multiselect.d.ts
4013
- interface InlineEditMultiselectChipsProps {
3987
+ //#region src/components/inline-edit-multi-combobox.d.ts
3988
+ interface InlineEditMultiComboboxChipsProps {
4014
3989
  /** Marks the control as invalid; drives the destructive border/ring on the chrome. */
4015
3990
  'aria-invalid'?: boolean;
4016
3991
  /** Additional class name on the chrome wrapper. */
@@ -4020,52 +3995,52 @@ interface InlineEditMultiselectChipsProps {
4020
3995
  * there is no focusable trigger (i.e. in `readOnly` mode, where the trigger is hidden).
4021
3996
  */
4022
3997
  id?: string;
4023
- /** The chip value display and the `InlineEditMultiselectTrigger`. */
3998
+ /** The chip value display and the `InlineEditMultiComboboxTrigger`. */
4024
3999
  children?: React.ReactNode;
4025
4000
  }
4026
- declare namespace InlineEditMultiselectChips {
4027
- type Props = InlineEditMultiselectChipsProps;
4001
+ declare namespace InlineEditMultiComboboxChips {
4002
+ type Props = InlineEditMultiComboboxChipsProps;
4028
4003
  }
4029
4004
  /**
4030
- * The chips row of an `InlineEditMultiselect`. Wraps the inline-edit chrome (hover/focus
4005
+ * The chips row of an `InlineEditMultiCombobox`. Wraps the inline-edit chrome (hover/focus
4031
4006
  * affordance) around a Base UI `Combobox.Chips` container that lays out the selected
4032
- * chips and the trailing `InlineEditMultiselectTrigger` in a wrapping flex row.
4007
+ * chips and the trailing `InlineEditMultiComboboxTrigger` in a wrapping flex row.
4033
4008
  *
4034
4009
  * @example
4035
4010
  * ```tsx
4036
- * <InlineEditMultiselectChips>
4037
- * <InlineEditMultiselectValue>{…}</InlineEditMultiselectValue>
4038
- * <InlineEditMultiselectTrigger />
4039
- * </InlineEditMultiselectChips>
4011
+ * <InlineEditMultiComboboxChips>
4012
+ * <InlineEditMultiComboboxValue>{…}</InlineEditMultiComboboxValue>
4013
+ * <InlineEditMultiComboboxTrigger />
4014
+ * </InlineEditMultiComboboxChips>
4040
4015
  * ```
4041
4016
  */
4042
- declare const InlineEditMultiselectChips: React.ForwardRefExoticComponent<InlineEditMultiselectChipsProps & React.RefAttributes<HTMLDivElement>>;
4043
- interface InlineEditMultiselectValueProps extends ComboboxValue.Props {}
4044
- declare namespace InlineEditMultiselectValue {
4045
- type Props = InlineEditMultiselectValueProps;
4017
+ declare const InlineEditMultiComboboxChips: React.ForwardRefExoticComponent<InlineEditMultiComboboxChipsProps & React.RefAttributes<HTMLDivElement>>;
4018
+ interface InlineEditMultiComboboxValueProps extends ComboboxValue.Props {}
4019
+ declare namespace InlineEditMultiComboboxValue {
4020
+ type Props = InlineEditMultiComboboxValueProps;
4046
4021
  }
4047
4022
  /**
4048
- * Renders the selected values of an `InlineEditMultiselect`. Pass a render function
4049
- * that maps the array of selected keys to `InlineEditMultiselectChip`s.
4023
+ * Renders the selected values of an `InlineEditMultiCombobox`. Pass a render function
4024
+ * that maps the array of selected keys to `InlineEditMultiComboboxChip`s.
4050
4025
  *
4051
4026
  * @example
4052
4027
  * ```tsx
4053
- * <InlineEditMultiselectValue>
4028
+ * <InlineEditMultiComboboxValue>
4054
4029
  * {(keys: string[]) =>
4055
- * keys.map(key => <InlineEditMultiselectChip key={key}>{labelOf(key)}</InlineEditMultiselectChip>)}
4056
- * </InlineEditMultiselectValue>
4030
+ * keys.map(key => <InlineEditMultiComboboxChip key={key}>{labelOf(key)}</InlineEditMultiComboboxChip>)}
4031
+ * </InlineEditMultiComboboxValue>
4057
4032
  * ```
4058
4033
  */
4059
- declare function InlineEditMultiselectValue(componentProps: InlineEditMultiselectValue.Props): React.JSX.Element;
4060
- interface InlineEditMultiselectChipProps extends Omit<Combobox$1.Chip.Props, 'render'>, Pick<Chip.Props, 'color' | 'tone' | 'legacyColor' | 'glow'> {
4034
+ declare function InlineEditMultiComboboxValue(componentProps: InlineEditMultiComboboxValue.Props): React.JSX.Element;
4035
+ interface InlineEditMultiComboboxChipProps extends Omit<Combobox$1.Chip.Props, 'render'>, Pick<Chip.Props, 'color' | 'tone' | 'legacyColor' | 'glow'> {
4061
4036
  /** Chip label content. */
4062
4037
  children?: React.ReactNode;
4063
4038
  }
4064
- declare namespace InlineEditMultiselectChip {
4065
- type Props = InlineEditMultiselectChipProps;
4039
+ declare namespace InlineEditMultiComboboxChip {
4040
+ type Props = InlineEditMultiComboboxChipProps;
4066
4041
  }
4067
4042
  /**
4068
- * A single selected-value chip inside `InlineEditMultiselectValue`. Composes the DS
4043
+ * A single selected-value chip inside `InlineEditMultiComboboxValue`. Composes the DS
4069
4044
  * `Chip` with a trailing remove (X) button that unselects the value via Base UI. The
4070
4045
  * remove button is hidden in `readOnly` mode.
4071
4046
  *
@@ -4074,12 +4049,12 @@ declare namespace InlineEditMultiselectChip {
4074
4049
  *
4075
4050
  * @example
4076
4051
  * ```tsx
4077
- * <InlineEditMultiselectChip color="blue" tone="medium-light">Urgent</InlineEditMultiselectChip>
4078
- * <InlineEditMultiselectChip legacyColor="#0761B5">Sales</InlineEditMultiselectChip>
4052
+ * <InlineEditMultiComboboxChip color="blue" tone="medium-light">Urgent</InlineEditMultiComboboxChip>
4053
+ * <InlineEditMultiComboboxChip legacyColor="#0761B5">Sales</InlineEditMultiComboboxChip>
4079
4054
  * ```
4080
4055
  */
4081
- declare const InlineEditMultiselectChip: React.ForwardRefExoticComponent<Omit<InlineEditMultiselectChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4082
- interface InlineEditMultiselectTriggerProps {
4056
+ declare const InlineEditMultiComboboxChip: React.ForwardRefExoticComponent<Omit<InlineEditMultiComboboxChipProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4057
+ interface InlineEditMultiComboboxTriggerProps {
4083
4058
  /** Trigger label. Defaults to a localized "Add item". */
4084
4059
  children?: React.ReactNode;
4085
4060
  /** Accessible label forwarded to the trigger button. */
@@ -4089,21 +4064,21 @@ interface InlineEditMultiselectTriggerProps {
4089
4064
  /** Additional class name on the trigger button. */
4090
4065
  className?: string;
4091
4066
  }
4092
- declare namespace InlineEditMultiselectTrigger {
4093
- type Props = InlineEditMultiselectTriggerProps;
4067
+ declare namespace InlineEditMultiComboboxTrigger {
4068
+ type Props = InlineEditMultiComboboxTriggerProps;
4094
4069
  }
4095
4070
  /**
4096
- * The "Add item" trigger of an `InlineEditMultiselect`. Renders an outline `Button`
4071
+ * The "Add item" trigger of an `InlineEditMultiCombobox`. Renders an outline `Button`
4097
4072
  * with a leading plus icon that opens the searchable dropdown. Renders nothing in
4098
4073
  * `readOnly` mode.
4099
4074
  *
4100
4075
  * @example
4101
4076
  * ```tsx
4102
- * <InlineEditMultiselectTrigger>Add label</InlineEditMultiselectTrigger>
4077
+ * <InlineEditMultiComboboxTrigger>Add label</InlineEditMultiComboboxTrigger>
4103
4078
  * ```
4104
4079
  */
4105
- declare const InlineEditMultiselectTrigger: React.ForwardRefExoticComponent<InlineEditMultiselectTriggerProps & React.RefAttributes<HTMLButtonElement>>;
4106
- interface InlineEditMultiselectContentProps extends Omit<ComboboxContent.Props, 'children'> {
4080
+ declare const InlineEditMultiComboboxTrigger: React.ForwardRefExoticComponent<InlineEditMultiComboboxTriggerProps & React.RefAttributes<HTMLButtonElement>>;
4081
+ interface InlineEditMultiComboboxContentProps extends Omit<ComboboxContent.Props, 'children'> {
4107
4082
  /** Placeholder for the search input. Defaults to a localized "Search". */
4108
4083
  searchPlaceholder?: string;
4109
4084
  /** Message shown when the query matches no items. Defaults to a localized "No results found". */
@@ -4116,40 +4091,40 @@ interface InlineEditMultiselectContentProps extends Omit<ComboboxContent.Props,
4116
4091
  */
4117
4092
  children?: ComboboxList.Props['children'];
4118
4093
  }
4119
- declare namespace InlineEditMultiselectContent {
4120
- type Props = InlineEditMultiselectContentProps;
4094
+ declare namespace InlineEditMultiComboboxContent {
4095
+ type Props = InlineEditMultiComboboxContentProps;
4121
4096
  }
4122
4097
  /**
4123
- * The floating dropdown of an `InlineEditMultiselect`: a search input, an empty-state
4098
+ * The floating dropdown of an `InlineEditMultiCombobox`: a search input, an empty-state
4124
4099
  * message, and the scrollable option list. Portal-rendered and anchored to the
4125
- * `InlineEditMultiselectTrigger`.
4100
+ * `InlineEditMultiComboboxTrigger`.
4126
4101
  *
4127
4102
  * Pass a render function as `children` so the built-in search filters the options (a
4128
4103
  * static list is rendered unfiltered — see the `children` prop note).
4129
4104
  *
4130
4105
  * @example
4131
4106
  * ```tsx
4132
- * <InlineEditMultiselectContent>
4133
- * {(key: string) => <InlineEditMultiselectItem key={key} value={key}>{labelOf(key)}</InlineEditMultiselectItem>}
4134
- * </InlineEditMultiselectContent>
4107
+ * <InlineEditMultiComboboxContent>
4108
+ * {(key: string) => <InlineEditMultiComboboxItem key={key} value={key}>{labelOf(key)}</InlineEditMultiComboboxItem>}
4109
+ * </InlineEditMultiComboboxContent>
4135
4110
  * ```
4136
4111
  */
4137
- declare const InlineEditMultiselectContent: React.ForwardRefExoticComponent<Omit<InlineEditMultiselectContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4138
- interface InlineEditMultiselectItemProps extends ComboboxItem.Props {}
4139
- declare namespace InlineEditMultiselectItem {
4140
- type Props = InlineEditMultiselectItemProps;
4112
+ declare const InlineEditMultiComboboxContent: React.ForwardRefExoticComponent<Omit<InlineEditMultiComboboxContentProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4113
+ interface InlineEditMultiComboboxItemProps extends ComboboxItem.Props {}
4114
+ declare namespace InlineEditMultiComboboxItem {
4115
+ type Props = InlineEditMultiComboboxItemProps;
4141
4116
  }
4142
4117
  /**
4143
- * A single option row inside `InlineEditMultiselectContent`. Shows a checkmark when
4118
+ * A single option row inside `InlineEditMultiComboboxContent`. Shows a checkmark when
4144
4119
  * selected and toggles selection on click (the dropdown stays open for multi-picking).
4145
4120
  *
4146
4121
  * @example
4147
4122
  * ```tsx
4148
- * <InlineEditMultiselectItem value="urgent">Urgent</InlineEditMultiselectItem>
4123
+ * <InlineEditMultiComboboxItem value="urgent">Urgent</InlineEditMultiComboboxItem>
4149
4124
  * ```
4150
4125
  */
4151
- declare const InlineEditMultiselectItem: React.ForwardRefExoticComponent<Omit<InlineEditMultiselectItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4152
- interface InlineEditMultiselectBaseProps {
4126
+ declare const InlineEditMultiComboboxItem: React.ForwardRefExoticComponent<Omit<InlineEditMultiComboboxItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
4127
+ interface InlineEditMultiComboboxBaseProps {
4153
4128
  /** Controlled selected values (keys from `getItemValue`). */
4154
4129
  value?: string[];
4155
4130
  /** Uncontrolled initial selected values. */
@@ -4172,7 +4147,7 @@ interface InlineEditMultiselectBaseProps {
4172
4147
  * Data-driven mode props. Items are opaque `Item`s read via accessor functions
4173
4148
  * (mirrors `DataCombobox` / `InlineEditSelect`), so the item shape is the consumer's.
4174
4149
  */
4175
- interface InlineEditMultiselectDataProps<Item> extends InlineEditMultiselectBaseProps {
4150
+ interface InlineEditMultiComboboxDataProps<Item> extends InlineEditMultiComboboxBaseProps {
4176
4151
  /** The selectable options. Mutually exclusive with `children`. */
4177
4152
  items: Item[];
4178
4153
  /** Extracts the string key stored for an item (the value in `value`/`onValueChange`). */
@@ -4183,9 +4158,9 @@ interface InlineEditMultiselectDataProps<Item> extends InlineEditMultiselectBase
4183
4158
  renderItem?: (item: Item) => React.ReactNode;
4184
4159
  /**
4185
4160
  * Optional custom render for a selected chip. Return the WHOLE chip - an
4186
- * `InlineEditMultiselectChip` element - so its appearance (`color`/`tone`/`glow`/
4161
+ * `InlineEditMultiComboboxChip` element - so its appearance (`color`/`tone`/`glow`/
4187
4162
  * `legacyColor`, content) is fully yours, e.g.
4188
- * `item => <InlineEditMultiselectChip color="blue" tone="light">{item.name}</InlineEditMultiselectChip>`.
4163
+ * `item => <InlineEditMultiComboboxChip color="blue" tone="light">{item.name}</InlineEditMultiComboboxChip>`.
4189
4164
  * When provided it takes precedence over the default (color-aware) chip. (Unlike
4190
4165
  * `renderItem`, which returns only the row's inner content, the chip is entirely
4191
4166
  * consumer-owned here - mirrors `DataCombobox`'s `renderChip`.)
@@ -4210,9 +4185,9 @@ interface InlineEditMultiselectDataProps<Item> extends InlineEditMultiselectBase
4210
4185
  children?: never;
4211
4186
  }
4212
4187
  /** Compound (escape-hatch) mode props: bring your own sub-parts. Values are string keys. */
4213
- interface InlineEditMultiselectCompoundProps extends InlineEditMultiselectBaseProps {
4188
+ interface InlineEditMultiComboboxCompoundProps extends InlineEditMultiComboboxBaseProps {
4214
4189
  /**
4215
- * Compound sub-parts (`InlineEditMultiselectChips`, `InlineEditMultiselectContent`, …).
4190
+ * Compound sub-parts (`InlineEditMultiComboboxChips`, `InlineEditMultiComboboxContent`, …).
4216
4191
  * Mutually exclusive with `items`.
4217
4192
  */
4218
4193
  children: React.ReactNode;
@@ -4222,9 +4197,9 @@ interface InlineEditMultiselectCompoundProps extends InlineEditMultiselectBasePr
4222
4197
  itemToStringLabel?: (value: string) => string;
4223
4198
  getItemValue?: never;
4224
4199
  }
4225
- type InlineEditMultiselectProps<Item> = InlineEditMultiselectDataProps<Item> | InlineEditMultiselectCompoundProps;
4226
- declare namespace InlineEditMultiselect {
4227
- type Props<Item = unknown> = InlineEditMultiselectProps<Item>;
4200
+ type InlineEditMultiComboboxProps<Item> = InlineEditMultiComboboxDataProps<Item> | InlineEditMultiComboboxCompoundProps;
4201
+ declare namespace InlineEditMultiCombobox {
4202
+ type Props<Item = unknown> = InlineEditMultiComboboxProps<Item>;
4228
4203
  }
4229
4204
  /**
4230
4205
  * An inline-editable multi-value select rendered as a wrapping row of removable chips
@@ -4236,7 +4211,7 @@ declare namespace InlineEditMultiselect {
4236
4211
  *
4237
4212
  * **Data-driven** — pass `items` + accessors for the common case (values are string keys):
4238
4213
  * ```tsx
4239
- * <InlineEditMultiselect
4214
+ * <InlineEditMultiCombobox
4240
4215
  * items={tags}
4241
4216
  * getItemValue={t => t.id}
4242
4217
  * getItemLabel={t => t.name}
@@ -4249,22 +4224,32 @@ declare namespace InlineEditMultiselect {
4249
4224
  *
4250
4225
  * **Compound** — bring your own sub-parts for custom rendering:
4251
4226
  * ```tsx
4252
- * <InlineEditMultiselect value={selected} onValueChange={save} items={keys} itemToStringLabel={labelOf}>
4253
- * <InlineEditMultiselectChips>
4254
- * <InlineEditMultiselectValue>
4255
- * {(keys: string[]) => keys.map(k => <InlineEditMultiselectChip key={k}>{labelOf(k)}</InlineEditMultiselectChip>)}
4256
- * </InlineEditMultiselectValue>
4257
- * <InlineEditMultiselectTrigger />
4258
- * </InlineEditMultiselectChips>
4259
- * <InlineEditMultiselectContent>
4260
- * {(k: string) => <InlineEditMultiselectItem key={k} value={k}>{labelOf(k)}</InlineEditMultiselectItem>}
4261
- * </InlineEditMultiselectContent>
4262
- * </InlineEditMultiselect>
4227
+ * <InlineEditMultiCombobox value={selected} onValueChange={save} items={keys} itemToStringLabel={labelOf}>
4228
+ * <InlineEditMultiComboboxChips>
4229
+ * <InlineEditMultiComboboxValue>
4230
+ * {(keys: string[]) => keys.map(k => <InlineEditMultiComboboxChip key={k}>{labelOf(k)}</InlineEditMultiComboboxChip>)}
4231
+ * </InlineEditMultiComboboxValue>
4232
+ * <InlineEditMultiComboboxTrigger />
4233
+ * </InlineEditMultiComboboxChips>
4234
+ * <InlineEditMultiComboboxContent>
4235
+ * {(k: string) => <InlineEditMultiComboboxItem key={k} value={k}>{labelOf(k)}</InlineEditMultiComboboxItem>}
4236
+ * </InlineEditMultiComboboxContent>
4237
+ * </InlineEditMultiCombobox>
4263
4238
  * ```
4264
4239
  * (Pass the content children as a render function, not a static `.map`, so the search filters.)
4240
+ *
4241
+ * WHY `Multi` is in the name, and why it is not redundant: this component passes `multiple` to the
4242
+ * Combobox root unconditionally and exposes no `selectionMode`, so it can only ever hold several
4243
+ * values - its value is a `string[]` and its field is a chips field. A combobox in this package is
4244
+ * NOT multiple by default: the `Combobox` primitive is single unless told otherwise, and
4245
+ * `DataCombobox` defaults `selectionMode` to `'single'`. So opting in permanently is the thing
4246
+ * worth naming, and `InlineEditCombobox` would read as the general inline-edit combobox that also
4247
+ * does single - which this cannot. `InlineEditSelect` is the single-value sibling.
4248
+ *
4249
+ * Drop the `Multi` only if this ever gains a `selectionMode`.
4265
4250
  */
4266
- declare function InlineEditMultiselect<Item>(componentProps: InlineEditMultiselectDataProps<Item>): React.ReactNode;
4267
- declare function InlineEditMultiselect(componentProps: InlineEditMultiselectCompoundProps): React.ReactNode;
4251
+ declare function InlineEditMultiCombobox<Item>(componentProps: InlineEditMultiComboboxDataProps<Item>): React.ReactNode;
4252
+ declare function InlineEditMultiCombobox(componentProps: InlineEditMultiComboboxCompoundProps): React.ReactNode;
4268
4253
  //#endregion
4269
4254
  //#region src/components/inline-edit-select.d.ts
4270
4255
  interface InlineEditSelectTriggerProps {
@@ -5169,7 +5154,7 @@ interface TagOption {
5169
5154
  * candidates. Pass this object form (instead of a static `T[]`) to source candidates
5170
5155
  * from a backend: the menu stops filtering client-side and renders `items` verbatim,
5171
5156
  * calling `onSearch` as the user types and `onFetchMore` as the list scrolls. Prop
5172
- * names mirror the DS `DataCombobox` / `ComboboxBody` convention.
5157
+ * names mirror the DS `DataCombobox` convention.
5173
5158
  *
5174
5159
  * @example
5175
5160
  * ```tsx
@@ -6646,7 +6631,7 @@ declare function useDsLocale(): string;
6646
6631
  //#endregion
6647
6632
  //#region src/i18n/keys.d.ts
6648
6633
  /** All translation keys owned by the `ds` namespace. Flat dotted keys (keySeparator: false). */
6649
- type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'dataCombobox.noResults' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'multiselect.addItem' | 'multiselect.search' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected' | 'actionBar.itemsSelected_plural' | 'fieldLabel.required' | 'fieldLabel.optional' | 'fieldLabel.moreInfo' | 'datePicker.beforeMin' | 'datePicker.afterMax' | 'datePicker.unavailable' | 'datePicker.rangeOrder' | 'richTextarea.noResults' | 'richTextarea.slashNoCommands' | 'richTextarea.bold' | 'richTextarea.italic' | 'richTextarea.underline' | 'richTextarea.strikethrough' | 'richTextarea.inlineCode' | 'richTextarea.bulletedList' | 'richTextarea.numberedList' | 'richTextarea.link' | 'richTextarea.linkPlaceholder' | 'richTextarea.linkText' | 'richTextarea.linkEdit' | 'richTextarea.linkOpen' | 'richTextarea.linkRemove';
6634
+ type DsI18nKey = 'spinner.loading' | 'pagination.label' | 'pagination.previousPage' | 'pagination.nextPage' | 'dataTable.selectAllRows' | 'dataTable.selectRow' | 'dataCombobox.noResults' | 'combobox.showOptions' | 'tree.collapse' | 'tree.expand' | 'multiselect.remove' | 'multiselect.clearAll' | 'multiselect.addItem' | 'multiselect.search' | 'combobox.toggleOptions' | 'combobox.clear' | 'sidebar.toggle' | 'drawer.close' | 'emojiPicker.emoji' | 'emojiPicker.choose' | 'actionBar.selectionActions' | 'pagination.previous' | 'pagination.next' | 'actionBar.clearSelection' | 'actionBar.itemsSelected' | 'actionBar.itemsSelected_plural' | 'fieldLabel.required' | 'fieldLabel.optional' | 'fieldLabel.moreInfo' | 'datePicker.beforeMin' | 'datePicker.afterMax' | 'datePicker.unavailable' | 'datePicker.rangeOrder' | 'richTextarea.noResults' | 'richTextarea.slashNoCommands' | 'richTextarea.bold' | 'richTextarea.italic' | 'richTextarea.underline' | 'richTextarea.strikethrough' | 'richTextarea.inlineCode' | 'richTextarea.bulletedList' | 'richTextarea.numberedList' | 'richTextarea.link' | 'richTextarea.linkPlaceholder' | 'richTextarea.linkText' | 'richTextarea.linkEdit' | 'richTextarea.linkOpen' | 'richTextarea.linkRemove';
6650
6635
  /** A complete set of translations for one language. Missing a key is a compile error. */
6651
6636
  type DsLocale = Record<DsI18nKey, string>;
6652
6637
  //#endregion
@@ -6708,4 +6693,4 @@ declare function useAudioGauge(options?: UseAudioGaugeOptions): UseAudioGaugeRes
6708
6693
  //#region src/lib/utils.d.ts
6709
6694
  declare function cn(...inputs: ClassValue[]): string;
6710
6695
  //#endregion
6711
- export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, type ActionBarContextValue, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, type AttachmentState, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, type AudioPlayerBarProps, AudioPlayerButton, type AudioPlayerButtonProps, AudioPlayerCurrentTime, type AudioPlayerCurrentTimeProps, AudioPlayerDuration, type AudioPlayerDurationProps, type AudioPlayerItem, AudioPlayerManager, type AudioPlayerManagerProps, AudioPlayerRow, type AudioPlayerRowProps, AudioPlayerSkip, type AudioPlayerSkipProps, AudioPlayerSpeed, type AudioPlayerSpeedProps, AudioPlayerTime, type AudioPlayerTimeProps, type AudioProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, type ColumnPinningState, Combobox, ComboboxBody, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, type ComboboxLoadingState, type ComboboxSelectionChangeDetails, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, type DataComboboxLoadingState, DataTable, type DataTableLoadingState, DataTree, DatePicker, type DatePickerPredefinedRange, type DateRange, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, type DropzoneErrorCode, DropzoneIcon, DropzoneTitle, DropzoneTrigger, type DsI18nKey, DsI18nProvider, type DsLocale, EmojiPicker, EmojiPickerCategories, type EmojiPickerCategory, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, InlineEditInput, InlineEditMultiselect, InlineEditMultiselectChip, InlineEditMultiselectChips, InlineEditMultiselectContent, InlineEditMultiselectItem, InlineEditMultiselectTrigger, InlineEditMultiselectValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, type MentionOption, type NotificationHandle, type NotificationOptions, type NotificationPriority, type NotificationQueueControls, NotificationQueueProvider, type NotificationRenderProps, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, type OnChangeFn, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, type RichTextareaAsyncList, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetOverlay, type SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SlashCommandOption, Slider, type SortingState, Spinner, type StepDefinition, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TagOption, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, UseAudioGaugeOptions, UseAudioGaugeResult, type VisibilityState, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
6696
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, type ActionBarContextValue, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, type AttachmentState, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, type AudioPlayerBarProps, AudioPlayerButton, type AudioPlayerButtonProps, AudioPlayerCurrentTime, type AudioPlayerCurrentTimeProps, AudioPlayerDuration, type AudioPlayerDurationProps, type AudioPlayerItem, AudioPlayerManager, type AudioPlayerManagerProps, AudioPlayerRow, type AudioPlayerRowProps, AudioPlayerSkip, type AudioPlayerSkipProps, AudioPlayerSpeed, type AudioPlayerSpeedProps, AudioPlayerTime, type AudioPlayerTimeProps, type AudioProps, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_SEARCH_THRESHOLD, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, CalendarDropdown, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, type ColumnPinningState, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, type ComboboxLoadingState, type ComboboxSelectionChangeDetails, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, type DataComboboxLoadingState, DataTable, type DataTableLoadingState, DataTree, DatePicker, type DatePickerPredefinedRange, type DateRange, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, type DropzoneErrorCode, DropzoneIcon, DropzoneTitle, DropzoneTrigger, type DsI18nKey, DsI18nProvider, type DsLocale, EmojiPicker, EmojiPickerCategories, type EmojiPickerCategory, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, type FileError, type FileRejection, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, type I18nLanguageSource, InlineEditInput, InlineEditMultiCombobox, InlineEditMultiComboboxChip, InlineEditMultiComboboxChips, InlineEditMultiComboboxContent, InlineEditMultiComboboxItem, InlineEditMultiComboboxTrigger, InlineEditMultiComboboxValue, InlineEditSelect, InlineEditSelectContent, InlineEditSelectItem, InlineEditSelectTrigger, InlineEditSelectValue, InlineEditTextarea, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupRichTextarea, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, type MentionOption, type NotificationHandle, type NotificationOptions, type NotificationPriority, type NotificationQueueControls, NotificationQueueProvider, type NotificationRenderProps, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, type OnChangeFn, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverClose, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, RichTextarea, type RichTextareaAsyncList, RichTextareaContent, RichTextareaRoot, RichTextareaToolbar, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, type SheetOverlay, type SheetPortal, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, type SlashCommandOption, Slider, type SortingState, Spinner, type StepDefinition, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, type TagOption, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, UseAudioGaugeOptions, UseAudioGaugeResult, type VisibilityState, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };