@aircall/ds 0.28.1 → 0.29.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/globals.css +1 -1
- package/dist/index.d.ts +193 -78
- package/dist/index.js +663 -387
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ import { Separator as Separator$1 } from "@base-ui/react/separator";
|
|
|
12
12
|
import { DayButton, DayPicker, Locale } from "react-day-picker";
|
|
13
13
|
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
14
14
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
15
|
-
import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
|
|
16
15
|
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
17
16
|
import * as _base_ui_react0 from "@base-ui/react";
|
|
18
17
|
import { Combobox as Combobox$1 } from "@base-ui/react";
|
|
@@ -23,6 +22,7 @@ import { ItemInstance } from "@headless-tree/core";
|
|
|
23
22
|
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
24
23
|
import { Radio } from "@base-ui/react/radio";
|
|
25
24
|
import { RadioGroup as RadioGroup$1 } from "@base-ui/react/radio-group";
|
|
25
|
+
import { ScrollArea as ScrollAreaPrimitive } from "@base-ui/react/scroll-area";
|
|
26
26
|
import { Menu } from "@base-ui/react/menu";
|
|
27
27
|
import { Categories, SuggestionMode } from "emoji-picker-react";
|
|
28
28
|
import { Popover as Popover$1 } from "@base-ui/react/popover";
|
|
@@ -39,7 +39,7 @@ import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
|
39
39
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
40
40
|
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
41
41
|
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
42
|
-
import * as
|
|
42
|
+
import * as class_variance_authority_types6 from "class-variance-authority/types";
|
|
43
43
|
import { CountryCode } from "@aircall/numbers";
|
|
44
44
|
|
|
45
45
|
//#region src/components/accordion.d.ts
|
|
@@ -99,10 +99,10 @@ declare namespace AccordionContent {
|
|
|
99
99
|
//#region src/components/button.d.ts
|
|
100
100
|
/** `cva` variant definitions for {@link Button} — resolves `variant`, `size`, and `block` into class names. */
|
|
101
101
|
declare const buttonVariants: (props?: ({
|
|
102
|
-
variant?: "link" | "default" | "
|
|
102
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
103
103
|
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
104
104
|
block?: boolean | null | undefined;
|
|
105
|
-
} &
|
|
105
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
106
106
|
/**
|
|
107
107
|
* Clickable button. Renders a Base UI `Button` primitive as a `<button>` element,
|
|
108
108
|
* styled via `buttonVariants` (variant / size / block).
|
|
@@ -670,7 +670,7 @@ declare namespace AlertDialogCancel {
|
|
|
670
670
|
*/
|
|
671
671
|
declare const alertVariants: (props?: ({
|
|
672
672
|
variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
673
|
-
} &
|
|
673
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
674
674
|
/**
|
|
675
675
|
* Callout that draws attention to an important, contextual message.
|
|
676
676
|
*
|
|
@@ -754,7 +754,7 @@ declare const attachmentVariants: (props?: ({
|
|
|
754
754
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
755
755
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
756
756
|
block?: boolean | null | undefined;
|
|
757
|
-
} &
|
|
757
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
758
758
|
/**
|
|
759
759
|
* Card displaying a single file or image attachment with its metadata,
|
|
760
760
|
* upload state, and actions. Renders a `<div>`; compose it from
|
|
@@ -797,7 +797,7 @@ declare namespace Attachment {
|
|
|
797
797
|
}
|
|
798
798
|
declare const attachmentMediaVariants: (props?: ({
|
|
799
799
|
variant?: "image" | "icon" | null | undefined;
|
|
800
|
-
} &
|
|
800
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
801
801
|
/**
|
|
802
802
|
* Leading media slot of an `Attachment` — holds an icon (`variant="icon"`)
|
|
803
803
|
* or an image thumbnail (`variant="image"`). Renders a `<div>`.
|
|
@@ -969,8 +969,8 @@ declare namespace AvatarGroupCount {
|
|
|
969
969
|
* (`default` | `secondary` | `ghost`, default `default`) sets the colour scheme.
|
|
970
970
|
*/
|
|
971
971
|
declare const counterBadgeVariants: (props?: ({
|
|
972
|
-
variant?: "default" | "
|
|
973
|
-
} &
|
|
972
|
+
variant?: "default" | "secondary" | "ghost" | null | undefined;
|
|
973
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
974
974
|
/**
|
|
975
975
|
* Small pill for surfacing a count or short status, e.g. an unread indicator.
|
|
976
976
|
* Renders a `<span>` (override the element via the `render` prop).
|
|
@@ -994,7 +994,7 @@ declare const badgeVariants: (props?: ({
|
|
|
994
994
|
size?: "default" | "lg" | null | undefined;
|
|
995
995
|
color?: "blue" | "green" | "pink" | "purple" | "red" | "yellow" | "charcoal" | null | undefined;
|
|
996
996
|
tone?: "dark" | "light" | "medium-dark" | "medium-light" | null | undefined;
|
|
997
|
-
} &
|
|
997
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
998
998
|
type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
999
999
|
/** Constrained DS badge fill color (no freeform hex). */
|
|
1000
1000
|
type BadgeColor = NonNullable<BadgeVariants['color']>;
|
|
@@ -1032,7 +1032,7 @@ declare namespace BadgeGroup {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
declare const badgeGroupCountVariants: (props?: ({
|
|
1034
1034
|
size?: "default" | "lg" | null | undefined;
|
|
1035
|
-
} &
|
|
1035
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
1036
1036
|
/**
|
|
1037
1037
|
* Trailing "+N" overflow counter for a `BadgeGroup`. Renders a ghost `CounterBadge`
|
|
1038
1038
|
* sized to match the group's badges (`size` mirrors `Badge`'s `default` / `lg`).
|
|
@@ -1052,7 +1052,7 @@ declare namespace BadgeGroupCount {
|
|
|
1052
1052
|
declare const bannerVariants: (props?: ({
|
|
1053
1053
|
variant?: "default" | "info" | "success" | "warning" | "error" | null | undefined;
|
|
1054
1054
|
borderDirection?: "bottom" | "top" | null | undefined;
|
|
1055
|
-
} &
|
|
1055
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
1056
1056
|
/**
|
|
1057
1057
|
* Full-width contextual message, typically pinned to the top or bottom of a
|
|
1058
1058
|
* view. Like {@link Alert} but edge-to-edge with a single accent border.
|
|
@@ -1207,7 +1207,7 @@ declare namespace Separator {
|
|
|
1207
1207
|
/** `cva` variant definitions for {@link ButtonGroup} — resolves `orientation` (horizontal / vertical) into class names. */
|
|
1208
1208
|
declare const buttonGroupVariants: (props?: ({
|
|
1209
1209
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
1210
|
-
} &
|
|
1210
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
1211
1211
|
/**
|
|
1212
1212
|
* Groups related buttons into a single visual unit with shared borders and merged corners.
|
|
1213
1213
|
* Renders a `<div role="group">` and normalizes the radii/borders of its children.
|
|
@@ -1497,46 +1497,6 @@ declare namespace Chip {
|
|
|
1497
1497
|
type Props = ChipProps;
|
|
1498
1498
|
}
|
|
1499
1499
|
//#endregion
|
|
1500
|
-
//#region src/components/filter.d.ts
|
|
1501
|
-
/**
|
|
1502
|
-
* A removable active-filter token for a filter bar / toolbar — a dark charcoal
|
|
1503
|
-
* `Chip` with a trailing remove (X). Shows each applied filter above a
|
|
1504
|
-
* searchable data view (table / list); clicking the X clears that filter
|
|
1505
|
-
* (`onRemove`). Long values truncate with an ellipsis, capped at the Badge
|
|
1506
|
-
* `max-w-36` (144px). Compose inside a `FilterGroup` with a trailing
|
|
1507
|
-
* `FilterClearAllButton` (see the FilterBar story).
|
|
1508
|
-
*/
|
|
1509
|
-
declare const Filter: React.ForwardRefExoticComponent<FilterProps & React.RefAttributes<HTMLSpanElement>>;
|
|
1510
|
-
interface FilterProps extends Pick<Chip.Props, 'className' | 'children'> {
|
|
1511
|
-
/** Called when the trailing X is activated to clear this filter. */
|
|
1512
|
-
onRemove: () => void;
|
|
1513
|
-
/** Accessible label for the remove button. Defaults to "Remove filter". */
|
|
1514
|
-
removeLabel?: string;
|
|
1515
|
-
}
|
|
1516
|
-
declare namespace Filter {
|
|
1517
|
-
type Props = FilterProps;
|
|
1518
|
-
}
|
|
1519
|
-
/**
|
|
1520
|
-
* Layout container for a row of `Filter` chips (and a trailing
|
|
1521
|
-
* `FilterClearAllButton`). Always a single, non-wrapping row inside a
|
|
1522
|
-
* horizontal `ScrollArea` (inset scroll + edge fade) — it does not wrap onto
|
|
1523
|
-
* multiple lines.
|
|
1524
|
-
*/
|
|
1525
|
-
declare const FilterGroup: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1526
|
-
declare namespace FilterGroup {
|
|
1527
|
-
type Props = React.ComponentProps<'div'>;
|
|
1528
|
-
}
|
|
1529
|
-
/**
|
|
1530
|
-
* The trailing "Clear all filters" action for a `FilterGroup` — a ghost,
|
|
1531
|
-
* small `Button` with the styling pinned. Provide `onClick`; the label
|
|
1532
|
-
* defaults to "Clear all filters" (pass translated `children` to override).
|
|
1533
|
-
*/
|
|
1534
|
-
declare const FilterClearAllButton: React.ForwardRefExoticComponent<Omit<FilterClearAllButtonProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1535
|
-
interface FilterClearAllButtonProps extends Omit<Button.Props, 'variant' | 'size'> {}
|
|
1536
|
-
declare namespace FilterClearAllButton {
|
|
1537
|
-
type Props = FilterClearAllButtonProps;
|
|
1538
|
-
}
|
|
1539
|
-
//#endregion
|
|
1540
1500
|
//#region src/components/collapsible.d.ts
|
|
1541
1501
|
/**
|
|
1542
1502
|
* Root container for a Collapsible. Manages the open/closed state of a single
|
|
@@ -1734,6 +1694,164 @@ declare const ComboboxChipsInput: React.ForwardRefExoticComponent<Omit<_base_ui_
|
|
|
1734
1694
|
*/
|
|
1735
1695
|
declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
|
|
1736
1696
|
//#endregion
|
|
1697
|
+
//#region src/components/combobox-rows.d.ts
|
|
1698
|
+
/**
|
|
1699
|
+
* Async states a data-driven combobox list can be in (mirrors `DataTable`'s
|
|
1700
|
+
* `loadingState`). Shared by `DataCombobox` and `ComboboxBody`:
|
|
1701
|
+
* - `'loading'` — initial load with no items yet; the list shows skeleton rows.
|
|
1702
|
+
* - `'filtering'` — re-querying after the user typed; the current results stay
|
|
1703
|
+
* in place under a dimmed overlay with a spinner (context + stable height)
|
|
1704
|
+
* until the new results arrive. Keep the previous `items` until then.
|
|
1705
|
+
* - `'loadingMore'` — fetching the next page for infinite scroll; a spinner row
|
|
1706
|
+
* renders at the bottom of the list.
|
|
1707
|
+
* Omit (or `'idle'`) when not loading.
|
|
1708
|
+
*/
|
|
1709
|
+
type ComboboxLoadingState = 'idle' | 'loading' | 'filtering' | 'loadingMore';
|
|
1710
|
+
//#endregion
|
|
1711
|
+
//#region src/components/combobox-body.d.ts
|
|
1712
|
+
interface ComboboxBodyProps<T> {
|
|
1713
|
+
/** The items to show in the list — the already-prepared page/result set. */
|
|
1714
|
+
items: T[];
|
|
1715
|
+
/** Resolves an item's stable value/key (used for selection and de-duplication). */
|
|
1716
|
+
getItemValue: (item: T) => string;
|
|
1717
|
+
/** Resolves an item's display label — also the typeahead/accessibility text. */
|
|
1718
|
+
getItemLabel: (item: T) => string;
|
|
1719
|
+
/** Optional rich row content (icon, description, …). Defaults to `getItemLabel`. */
|
|
1720
|
+
renderItem?: (item: T) => React.ReactNode;
|
|
1721
|
+
/**
|
|
1722
|
+
* Groups items under headers. Return the group key an item belongs to; items
|
|
1723
|
+
* are grouped in first-seen order. When provided, the list renders grouped
|
|
1724
|
+
* sections. Pair with `getGroupLabel` for a custom header.
|
|
1725
|
+
*/
|
|
1726
|
+
getGroupKey?: (item: T) => string;
|
|
1727
|
+
/** Maps a group key to its header label. Defaults to the group key. */
|
|
1728
|
+
getGroupLabel?: (groupKey: string) => React.ReactNode;
|
|
1729
|
+
/**
|
|
1730
|
+
* `'single'` (default) selects one item; `'multiple'` selects many, each row
|
|
1731
|
+
* keeping its check indicator. There is no chips field — the host (a `Filter`
|
|
1732
|
+
* trigger, a form field) summarises the selection.
|
|
1733
|
+
*/
|
|
1734
|
+
selectionMode?: 'single' | 'multiple';
|
|
1735
|
+
/** Controlled selected item keys (values from `getItemValue`). */
|
|
1736
|
+
selectedKeys?: Set<string>;
|
|
1737
|
+
/** Initial selected keys for uncontrolled selection. Ignored when `selectedKeys` is set. */
|
|
1738
|
+
defaultSelectedKeys?: Set<string>;
|
|
1739
|
+
/** Called with the new set of selected keys whenever selection changes. */
|
|
1740
|
+
onSelectionChange?: (keys: Set<string>) => void;
|
|
1741
|
+
/**
|
|
1742
|
+
* Known selected items used to seed the label cache, so a selected key whose
|
|
1743
|
+
* item is NOT in the current `items` (e.g. a saved filter value not yet
|
|
1744
|
+
* fetched, or a selection made before searching away) still resolves.
|
|
1745
|
+
*/
|
|
1746
|
+
selectedItems?: T[];
|
|
1747
|
+
/** Item keys that cannot be selected — rendered disabled and dimmed. */
|
|
1748
|
+
disabledKeys?: Set<string>;
|
|
1749
|
+
/** The list's async state. Omit (or `'idle'`) when not loading. */
|
|
1750
|
+
loadingState?: ComboboxLoadingState;
|
|
1751
|
+
/** Number of skeleton rows shown while `loadingState` is `'loading'`. */
|
|
1752
|
+
skeletonCount?: number;
|
|
1753
|
+
/**
|
|
1754
|
+
* Enables SERVER-side search. When omitted, the list filters the provided
|
|
1755
|
+
* `items` client-side as you type (Base UI's built-in filter) — ideal for a
|
|
1756
|
+
* fixed list. When provided, internal filtering is turned off and this is
|
|
1757
|
+
* called (debounce it yourself) with the query: feed the matching `items` and
|
|
1758
|
+
* set `loadingState='filtering'` while the fetch runs.
|
|
1759
|
+
*
|
|
1760
|
+
* Prefer this for any PAGINATED list: while `onFetchMore`+`hasMore` are active
|
|
1761
|
+
* client-side filtering is disabled (it only sees loaded pages and would break
|
|
1762
|
+
* infinite scroll), so a searchable paginated list must search server-side.
|
|
1763
|
+
*
|
|
1764
|
+
* Called with `''` when the query is cleared — including the automatic clear
|
|
1765
|
+
* after a selection. Treat `''` as "no query": return the initial, unfiltered
|
|
1766
|
+
* list. Otherwise the results stay stuck on the last search with no way back.
|
|
1767
|
+
*/
|
|
1768
|
+
onSearch?: (query: string) => void;
|
|
1769
|
+
/** Called when the user scrolls near the bottom of the list; fetch the next page. */
|
|
1770
|
+
onFetchMore?: () => void;
|
|
1771
|
+
/** Whether more pages are available. */
|
|
1772
|
+
hasMore?: boolean;
|
|
1773
|
+
/** Shown when there are no items and not loading. Defaults to a "no results" message. */
|
|
1774
|
+
emptyState?: React.ReactNode;
|
|
1775
|
+
/**
|
|
1776
|
+
* Whether a search input renders above the list. Set `false` for a short
|
|
1777
|
+
* pick-list that doesn't need typeahead (e.g. a "Status" filter). Keyboard
|
|
1778
|
+
* selection still works: with no input to own the tab stop, the LIST becomes
|
|
1779
|
+
* focusable and takes the arrow keys and Enter itself.
|
|
1780
|
+
* @default true
|
|
1781
|
+
*/
|
|
1782
|
+
searchable?: boolean;
|
|
1783
|
+
/** Placeholder for the search input. Ignored when `searchable` is `false`. */
|
|
1784
|
+
placeholder?: string;
|
|
1785
|
+
/**
|
|
1786
|
+
* Renders only the rows inside the scrolled window plus a small overscan,
|
|
1787
|
+
* instead of every item, via `@tanstack/react-virtual`. Turn it on for a long
|
|
1788
|
+
* list (every country, every user at scale) where mounting a row per item
|
|
1789
|
+
* makes opening and scrolling the list lag.
|
|
1790
|
+
*
|
|
1791
|
+
* IGNORED for a GROUPED list (`getGroupKey` set) — group headers would need a
|
|
1792
|
+
* second, variable-height index space on top of the row one, so grouped lists
|
|
1793
|
+
* keep rendering every row. Same shape as `DataTable`, which silently gates its
|
|
1794
|
+
* own `virtualizeRows` on `fillHeight` for the same "the prerequisite isn't
|
|
1795
|
+
* there" reason.
|
|
1796
|
+
*
|
|
1797
|
+
* Everything else is unchanged: search (client- or server-side), keyboard
|
|
1798
|
+
* navigation and typeahead still reach every item, not just the mounted ones,
|
|
1799
|
+
* and infinite scroll still fires at the true bottom of the data.
|
|
1800
|
+
* @default false
|
|
1801
|
+
*/
|
|
1802
|
+
virtualizeRows?: boolean;
|
|
1803
|
+
/**
|
|
1804
|
+
* Assumed row height in px before a row has been measured, while
|
|
1805
|
+
* `virtualizeRows` is on. Real heights are measured after the first paint, so
|
|
1806
|
+
* this only sets the initial scrollbar; pass it when `renderItem` produces a
|
|
1807
|
+
* row taller than one line of text so the scrollbar doesn't jump.
|
|
1808
|
+
* @default 36
|
|
1809
|
+
*/
|
|
1810
|
+
estimateRowHeight?: number;
|
|
1811
|
+
/** Class applied to the wrapper holding the search input and the list. */
|
|
1812
|
+
className?: string;
|
|
1813
|
+
'aria-label'?: string;
|
|
1814
|
+
}
|
|
1815
|
+
/**
|
|
1816
|
+
* A data-driven combobox list with NO trigger and NO popup of its own: an
|
|
1817
|
+
* optional search input above a selectable list, ready to be dropped into a
|
|
1818
|
+
* surface the caller owns (a `Filter` popover, a panel, a dialog). Driven by an
|
|
1819
|
+
* `items` array plus `getItemValue`/`getItemLabel`, with opt-in server-side
|
|
1820
|
+
* search, grouping, infinite scroll, and loading/empty states.
|
|
1821
|
+
*
|
|
1822
|
+
* Use `DataCombobox` instead when you want the field-plus-popup combobox. This
|
|
1823
|
+
* is the same rows region plus an optional search input, without the field or the
|
|
1824
|
+
* popup around them, so the host controls open state, dismissal and positioning.
|
|
1825
|
+
* The name pairs with `ComboboxContent`, which is the popup this deliberately
|
|
1826
|
+
* does not have.
|
|
1827
|
+
*
|
|
1828
|
+
* Dismissal note: with no popup of its own, this holds no dismiss layer, so an
|
|
1829
|
+
* outside press or Escape always reaches the host. Escape ALSO resets the list —
|
|
1830
|
+
* clearing the query and the selection, the combobox convention for a list with
|
|
1831
|
+
* nothing open — but only while the search box is untouched; once the user has
|
|
1832
|
+
* clicked or typed in it, Base UI treats the list as open and Escape just
|
|
1833
|
+
* dismisses. The reset is forwarded to `onSearch('')` so a server-driven list
|
|
1834
|
+
* comes back unfiltered instead of stranding the previous query's page. Dismiss
|
|
1835
|
+
* via an outside press (or the host's own close affordance) when the selection
|
|
1836
|
+
* must survive.
|
|
1837
|
+
*
|
|
1838
|
+
* @example
|
|
1839
|
+
* ```tsx
|
|
1840
|
+
* <ComboboxBody
|
|
1841
|
+
* items={statuses}
|
|
1842
|
+
* getItemValue={status => status.id}
|
|
1843
|
+
* getItemLabel={status => status.label}
|
|
1844
|
+
* selectionMode="multiple"
|
|
1845
|
+
* selectedKeys={selectedKeys}
|
|
1846
|
+
* onSelectionChange={setSelectedKeys}
|
|
1847
|
+
* />
|
|
1848
|
+
* ```
|
|
1849
|
+
*/
|
|
1850
|
+
declare function ComboboxBody<T>(componentProps: ComboboxBody.Props<T>): React.JSX.Element;
|
|
1851
|
+
declare namespace ComboboxBody {
|
|
1852
|
+
type Props<T> = ComboboxBodyProps<T>;
|
|
1853
|
+
}
|
|
1854
|
+
//#endregion
|
|
1737
1855
|
//#region src/components/dialog.d.ts
|
|
1738
1856
|
/**
|
|
1739
1857
|
* Root of the dialog, wrapping Base UI's `Dialog.Root`. Manages open/close state and renders no DOM
|
|
@@ -1990,17 +2108,6 @@ declare namespace CountryFlag {
|
|
|
1990
2108
|
}
|
|
1991
2109
|
//#endregion
|
|
1992
2110
|
//#region src/components/data-combobox.d.ts
|
|
1993
|
-
/**
|
|
1994
|
-
* Async states a `DataCombobox` can be in (mirrors `DataTable`'s `loadingState`):
|
|
1995
|
-
* - `'loading'` — initial load with no items yet; the list shows skeleton rows.
|
|
1996
|
-
* - `'filtering'` — re-querying after the user typed; the current results stay
|
|
1997
|
-
* in place under a dimmed overlay with a spinner (context + stable height)
|
|
1998
|
-
* until the new results arrive. Keep the previous `items` until then.
|
|
1999
|
-
* - `'loadingMore'` — fetching the next page for infinite scroll; a spinner row
|
|
2000
|
-
* renders at the bottom of the list.
|
|
2001
|
-
* Omit (or `'idle'`) when not loading.
|
|
2002
|
-
*/
|
|
2003
|
-
type DataComboboxLoadingState = 'idle' | 'loading' | 'filtering' | 'loadingMore';
|
|
2004
2111
|
interface DataComboboxProps<T> {
|
|
2005
2112
|
/** The items to show in the dropdown — the already-prepared page/result set. */
|
|
2006
2113
|
items: T[];
|
|
@@ -2055,7 +2162,7 @@ interface DataComboboxProps<T> {
|
|
|
2055
2162
|
/** Item keys that cannot be selected — rendered disabled and dimmed. */
|
|
2056
2163
|
disabledKeys?: Set<string>;
|
|
2057
2164
|
/** The dropdown's async state. Omit (or `'idle'`) when not loading. */
|
|
2058
|
-
loadingState?:
|
|
2165
|
+
loadingState?: ComboboxLoadingState;
|
|
2059
2166
|
/** Number of skeleton rows shown while `loadingState` is `'loading'`. */
|
|
2060
2167
|
skeletonCount?: number;
|
|
2061
2168
|
/**
|
|
@@ -2132,6 +2239,14 @@ declare function DataCombobox<T>(componentProps: DataCombobox.Props<T>): React.J
|
|
|
2132
2239
|
declare namespace DataCombobox {
|
|
2133
2240
|
type Props<T> = DataComboboxProps<T>;
|
|
2134
2241
|
}
|
|
2242
|
+
/**
|
|
2243
|
+
* The loading state union, under its original `DataCombobox`-prefixed name.
|
|
2244
|
+
*
|
|
2245
|
+
* @deprecated Use `ComboboxLoadingState`. `DataCombobox` and `ComboboxBody` both
|
|
2246
|
+
* take this type, so the `Data` prefix no longer describes it. This alias is
|
|
2247
|
+
* identical and keeps working; it will be removed in a future minor.
|
|
2248
|
+
*/
|
|
2249
|
+
type DataComboboxLoadingState = ComboboxLoadingState;
|
|
2135
2250
|
//#endregion
|
|
2136
2251
|
//#region src/components/data-table.d.ts
|
|
2137
2252
|
/** Async states a `DataTable` can be in (mirrors React Spectrum's `loadingState`). */
|
|
@@ -2953,7 +3068,7 @@ declare namespace EmptyHeader {
|
|
|
2953
3068
|
}
|
|
2954
3069
|
declare const emptyMediaVariants: (props?: ({
|
|
2955
3070
|
variant?: "default" | "icon" | null | undefined;
|
|
2956
|
-
} &
|
|
3071
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
2957
3072
|
/**
|
|
2958
3073
|
* Wrapper for the empty state's icon or illustration. Renders a `<div>`; the `icon`
|
|
2959
3074
|
* variant gives it a muted rounded background, while `default` is transparent.
|
|
@@ -3251,7 +3366,7 @@ declare namespace EmojiPickerContent {
|
|
|
3251
3366
|
declare const fabVariants: (props?: ({
|
|
3252
3367
|
variant?: "default" | "outline" | null | undefined;
|
|
3253
3368
|
size?: "lg" | "icon-lg" | null | undefined;
|
|
3254
|
-
} &
|
|
3369
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
3255
3370
|
/**
|
|
3256
3371
|
* Floating action button — a raised, shadowed button for a primary action.
|
|
3257
3372
|
* Renders Base UI's `Button` primitive as a `<button>`.
|
|
@@ -3325,7 +3440,7 @@ declare namespace FieldGroup {
|
|
|
3325
3440
|
}
|
|
3326
3441
|
declare const fieldVariants: (props?: ({
|
|
3327
3442
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
3328
|
-
} &
|
|
3443
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
3329
3444
|
/**
|
|
3330
3445
|
* Layout wrapper pairing a control with its label, description, and error. Renders a
|
|
3331
3446
|
* `<div role="group">`. The `orientation` variant (`'vertical' | 'horizontal' | 'responsive'`)
|
|
@@ -4130,7 +4245,7 @@ declare const InlineEditTextarea: React.ForwardRefExoticComponent<Omit<InlineEdi
|
|
|
4130
4245
|
//#region src/components/input.d.ts
|
|
4131
4246
|
declare const inputVariants: (props?: ({
|
|
4132
4247
|
block?: boolean | null | undefined;
|
|
4133
|
-
} &
|
|
4248
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
4134
4249
|
/**
|
|
4135
4250
|
* Single-line text field styled to the design system.
|
|
4136
4251
|
*
|
|
@@ -4176,7 +4291,7 @@ declare namespace InputGroup {
|
|
|
4176
4291
|
}
|
|
4177
4292
|
declare const inputGroupAddonVariants: (props?: ({
|
|
4178
4293
|
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
4179
|
-
} &
|
|
4294
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
4180
4295
|
declare const InputGroupAddon: React.ForwardRefExoticComponent<Omit<InputGroupAddonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4181
4296
|
interface InputGroupAddonProps extends React.ComponentProps<'div'>, VariantProps<typeof inputGroupAddonVariants> {}
|
|
4182
4297
|
declare namespace InputGroupAddon {
|
|
@@ -4398,9 +4513,9 @@ declare namespace ItemSeparator {
|
|
|
4398
4513
|
type Props = ItemSeparatorProps;
|
|
4399
4514
|
}
|
|
4400
4515
|
declare const itemVariants: (props?: ({
|
|
4401
|
-
variant?: "default" | "
|
|
4516
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
4402
4517
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
4403
|
-
} &
|
|
4518
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
4404
4519
|
/**
|
|
4405
4520
|
* Flexible list-item container laying out media, content, and actions on one row. Renders a `<div>`
|
|
4406
4521
|
* by default (swap the element via `render`). The `variant` (`'default' | 'outline' | 'muted'`) and
|
|
@@ -4423,7 +4538,7 @@ declare namespace Item {
|
|
|
4423
4538
|
}
|
|
4424
4539
|
declare const itemMediaVariants: (props?: ({
|
|
4425
4540
|
variant?: "image" | "default" | "icon" | null | undefined;
|
|
4426
|
-
} &
|
|
4541
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
4427
4542
|
/**
|
|
4428
4543
|
* Leading media slot of an `Item` (icon, image, or avatar). Renders a `<div>`. The `variant`
|
|
4429
4544
|
* (`'default' | 'icon' | 'image'`) tunes sizing and styling and defaults to `'default'`.
|
|
@@ -4782,7 +4897,7 @@ declare namespace ScrollBar {
|
|
|
4782
4897
|
/** `class-variance-authority` variants for the select trigger; exposes the `size` variant. */
|
|
4783
4898
|
declare const selectTriggerVariants: (props?: ({
|
|
4784
4899
|
size?: "default" | "sm" | null | undefined;
|
|
4785
|
-
} &
|
|
4900
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
4786
4901
|
/**
|
|
4787
4902
|
* Root of the select, aliasing Base UI's `Select.Root`. Manages open state and the selected value,
|
|
4788
4903
|
* and renders no DOM element — place `SelectTrigger` and `SelectContent` inside it.
|
|
@@ -5290,7 +5405,7 @@ declare namespace SidebarMenuItem {
|
|
|
5290
5405
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
5291
5406
|
variant?: "default" | "outline" | null | undefined;
|
|
5292
5407
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5293
|
-
} &
|
|
5408
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
5294
5409
|
/**
|
|
5295
5410
|
* Primary clickable row inside a menu item, with variant/size styles and an
|
|
5296
5411
|
* optional tooltip shown only when collapsed. Renders a `<button>` by default,
|
|
@@ -5447,7 +5562,7 @@ declare namespace Toaster {
|
|
|
5447
5562
|
/** Class variants for `Spinner`, controlling its `size` (`default`, `sm`, `lg`, `xl`). */
|
|
5448
5563
|
declare const spinnerVariants: (props?: ({
|
|
5449
5564
|
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
5450
|
-
} &
|
|
5565
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
5451
5566
|
/**
|
|
5452
5567
|
* Animated loading indicator. Renders a spinning `<svg>` (Loader icon) with
|
|
5453
5568
|
* `role="status"` and a localized `aria-label` for assistive technology.
|
|
@@ -5764,7 +5879,7 @@ declare namespace ThemeProvider {
|
|
|
5764
5879
|
declare const toggleVariants: (props?: ({
|
|
5765
5880
|
variant?: "default" | "outline" | null | undefined;
|
|
5766
5881
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5767
|
-
} &
|
|
5882
|
+
} & class_variance_authority_types6.ClassProp) | undefined) => string;
|
|
5768
5883
|
/**
|
|
5769
5884
|
* A two-state button that can be pressed on or off, wrapping Base UI's `Toggle`.
|
|
5770
5885
|
* Renders a `<button aria-pressed>` styled via {@link toggleVariants}.
|
|
@@ -6040,4 +6155,4 @@ declare function useAudioGauge(options?: UseAudioGaugeOptions): UseAudioGaugeRes
|
|
|
6040
6155
|
//#region src/lib/utils.d.ts
|
|
6041
6156
|
declare function cn(...inputs: ClassValue[]): string;
|
|
6042
6157
|
//#endregion
|
|
6043
|
-
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, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, type DataComboboxLoadingState, DataTable, type DataTableLoadingState, DataTree, 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,
|
|
6158
|
+
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, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, type ColumnDef, Combobox, ComboboxBody, ComboboxChip, ComboboxChips, ComboboxChipsInput, type ComboboxClear, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, type ComboboxLoadingState, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, type DataComboboxLoadingState, DataTable, type DataTableLoadingState, DataTree, 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, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, 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, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, 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, Slider, type SortingState, Spinner, type StepDefinition, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, UseAudioGaugeOptions, UseAudioGaugeResult, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
|