@aircall/ds 0.29.0 → 0.30.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 +98 -37
- package/dist/index.js +31 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -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_types5 from "class-variance-authority/types";
|
|
43
43
|
import { CountryCode } from "@aircall/numbers";
|
|
44
44
|
|
|
45
45
|
//#region src/components/accordion.d.ts
|
|
@@ -102,7 +102,7 @@ declare const buttonVariants: (props?: ({
|
|
|
102
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_types5.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).
|
|
@@ -669,8 +669,8 @@ declare namespace AlertDialogCancel {
|
|
|
669
669
|
* default `default`) sets the background, border, and icon colour scheme.
|
|
670
670
|
*/
|
|
671
671
|
declare const alertVariants: (props?: ({
|
|
672
|
-
variant?: "default" | "
|
|
673
|
-
} &
|
|
672
|
+
variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
673
|
+
} & class_variance_authority_types5.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_types5.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_types5.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>`.
|
|
@@ -970,7 +970,7 @@ declare namespace AvatarGroupCount {
|
|
|
970
970
|
*/
|
|
971
971
|
declare const counterBadgeVariants: (props?: ({
|
|
972
972
|
variant?: "default" | "secondary" | "ghost" | null | undefined;
|
|
973
|
-
} &
|
|
973
|
+
} & class_variance_authority_types5.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_types5.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_types5.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`).
|
|
@@ -1050,9 +1050,9 @@ declare namespace BadgeGroupCount {
|
|
|
1050
1050
|
* edge gets the accent border.
|
|
1051
1051
|
*/
|
|
1052
1052
|
declare const bannerVariants: (props?: ({
|
|
1053
|
-
variant?: "default" | "
|
|
1053
|
+
variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
1054
1054
|
borderDirection?: "bottom" | "top" | null | undefined;
|
|
1055
|
-
} &
|
|
1055
|
+
} & class_variance_authority_types5.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_types5.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.
|
|
@@ -1708,7 +1708,32 @@ declare function useComboboxAnchor(): React.RefObject<HTMLDivElement | null>;
|
|
|
1708
1708
|
*/
|
|
1709
1709
|
type ComboboxLoadingState = 'idle' | 'loading' | 'filtering' | 'loadingMore';
|
|
1710
1710
|
//#endregion
|
|
1711
|
+
//#region src/lib/use-combobox-item-selection.d.ts
|
|
1712
|
+
/**
|
|
1713
|
+
* WHY a selection changed, straight from Base UI's combobox root — `'item-press'`,
|
|
1714
|
+
* `'escape-key'`, `'clear-press'`, … See `ComboboxRoot.ChangeEventDetails`.
|
|
1715
|
+
*
|
|
1716
|
+
* Inferred from the primitive rather than hand-written, for the same reason
|
|
1717
|
+
* `ComboboxInputValueChange` is: the reason union is Base UI's to grow.
|
|
1718
|
+
*/
|
|
1719
|
+
type ComboboxSelectionChangeDetails = Parameters<NonNullable<React.ComponentProps<typeof Combobox$1.Root>['onValueChange']>>[1];
|
|
1720
|
+
//#endregion
|
|
1711
1721
|
//#region src/components/combobox-body.d.ts
|
|
1722
|
+
/**
|
|
1723
|
+
* Row count at which `ComboboxBody` virtualises its rows on its own, when `virtualizeRows` was not
|
|
1724
|
+
* passed either way. Exported so it can be asserted against and tuned in ONE place.
|
|
1725
|
+
*
|
|
1726
|
+
* Crossing it LATCHES virtualisation on for the life of the component - see the `virtualizeRows`
|
|
1727
|
+
* prop doc. A list that declares `onFetchMore` can grow without bound, so it starts out virtualised
|
|
1728
|
+
* regardless of this number rather than waiting to cross it.
|
|
1729
|
+
*
|
|
1730
|
+
* A STARTING POINT, not a measured optimum. The two real data points behind it: 244 countries with
|
|
1731
|
+
* a flag per row was visibly laggy unvirtualised, and the user lists are server-capped at 10 rows
|
|
1732
|
+
* today, so both known cases sit far from this line and the exact value is not load-bearing yet.
|
|
1733
|
+
* Measure before tuning it - the honest cost driver is how expensive `renderItem` is, not the row
|
|
1734
|
+
* count alone, and a threshold cannot see that.
|
|
1735
|
+
*/
|
|
1736
|
+
declare const COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD = 100;
|
|
1712
1737
|
interface ComboboxBodyProps<T> {
|
|
1713
1738
|
/** The items to show in the list — the already-prepared page/result set. */
|
|
1714
1739
|
items: T[];
|
|
@@ -1736,8 +1761,17 @@ interface ComboboxBodyProps<T> {
|
|
|
1736
1761
|
selectedKeys?: Set<string>;
|
|
1737
1762
|
/** Initial selected keys for uncontrolled selection. Ignored when `selectedKeys` is set. */
|
|
1738
1763
|
defaultSelectedKeys?: Set<string>;
|
|
1739
|
-
/**
|
|
1740
|
-
|
|
1764
|
+
/**
|
|
1765
|
+
* Called with the new set of selected keys whenever selection changes, and with WHY it
|
|
1766
|
+
* changed (`details.reason`) — `'item-press'`, `'clear-press'`, `'escape-key'`, ….
|
|
1767
|
+
*
|
|
1768
|
+
* Read the reason whenever a deliberate pick and a RESET must be told apart. Escape clears
|
|
1769
|
+
* an inline list's selection (see the dismissal note on the component) and reports it here
|
|
1770
|
+
* exactly like a pick, so a host that treats every change as a user choice will treat that
|
|
1771
|
+
* clear as one too. `Filter`'s popup is the case in point: it must not apply an Escape
|
|
1772
|
+
* clear, because Escape there means "discard my draft", not "select nothing".
|
|
1773
|
+
*/
|
|
1774
|
+
onSelectionChange?: (keys: Set<string>, details: ComboboxSelectionChangeDetails) => void;
|
|
1741
1775
|
/**
|
|
1742
1776
|
* Known selected items used to seed the label cache, so a selected key whose
|
|
1743
1777
|
* item is NOT in the current `items` (e.g. a saved filter value not yet
|
|
@@ -1784,20 +1818,42 @@ interface ComboboxBodyProps<T> {
|
|
|
1784
1818
|
placeholder?: string;
|
|
1785
1819
|
/**
|
|
1786
1820
|
* Renders only the rows inside the scrolled window plus a small overscan,
|
|
1787
|
-
* instead of every item, via `@tanstack/react-virtual`.
|
|
1788
|
-
*
|
|
1789
|
-
*
|
|
1821
|
+
* instead of every item, via `@tanstack/react-virtual`.
|
|
1822
|
+
*
|
|
1823
|
+
* Three states, not two:
|
|
1824
|
+
* - `true` — always on, even for a short list.
|
|
1825
|
+
* - `false` — always off, even for a huge one. The escape hatch for a test that
|
|
1826
|
+
* needs every row in the DOM.
|
|
1827
|
+
* - omitted (the default) — AUTO: on once this list either declares
|
|
1828
|
+
* `onFetchMore` (so it can grow without bound) or reaches
|
|
1829
|
+
* {@link COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD} rows. A long list therefore does
|
|
1830
|
+
* not have to remember to ask.
|
|
1831
|
+
*
|
|
1832
|
+
* Auto is one-way: it LATCHES on and never turns back off, even if the list
|
|
1833
|
+
* later shrinks below the threshold. That matters because turning it off again
|
|
1834
|
+
* is not free. Base UI renders its list element bare when `virtualized` and
|
|
1835
|
+
* wrapped in a `CompositeList` when not, so changing that prop mid-life changes
|
|
1836
|
+
* the component type at that position and React remounts the list. Measured
|
|
1837
|
+
* cost of one such change, driven from a story: the list element is replaced and
|
|
1838
|
+
* `scrollTop` goes 656 to 0.
|
|
1839
|
+
*
|
|
1840
|
+
* Which is also why a list declaring `onFetchMore` virtualises from the start
|
|
1841
|
+
* rather than waiting to cross the threshold — it will cross it eventually, and
|
|
1842
|
+
* the crossing is the expensive part. A list with a fixed set of items that is
|
|
1843
|
+
* simply handed more rows later still pays that one crossing; latching is what
|
|
1844
|
+
* keeps it to one rather than one per fluctuation.
|
|
1790
1845
|
*
|
|
1791
|
-
* IGNORED for a GROUPED list (`getGroupKey` set)
|
|
1792
|
-
*
|
|
1793
|
-
*
|
|
1794
|
-
*
|
|
1795
|
-
*
|
|
1846
|
+
* IGNORED for a GROUPED list (`getGroupKey` set), including when passed
|
|
1847
|
+
* explicitly — group headers would need a second, variable-height index space
|
|
1848
|
+
* on top of the row one, so grouped lists keep rendering every row. The
|
|
1849
|
+
* threshold does not override that gate. Same shape as `DataTable`, which
|
|
1850
|
+
* silently gates its own `virtualizeRows` on `fillHeight` for the same "the
|
|
1851
|
+
* prerequisite isn't there" reason.
|
|
1796
1852
|
*
|
|
1797
1853
|
* Everything else is unchanged: search (client- or server-side), keyboard
|
|
1798
1854
|
* navigation and typeahead still reach every item, not just the mounted ones,
|
|
1799
1855
|
* and infinite scroll still fires at the true bottom of the data.
|
|
1800
|
-
* @default
|
|
1856
|
+
* @default auto — see {@link COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD}
|
|
1801
1857
|
*/
|
|
1802
1858
|
virtualizeRows?: boolean;
|
|
1803
1859
|
/**
|
|
@@ -2144,8 +2200,13 @@ interface DataComboboxProps<T> {
|
|
|
2144
2200
|
selectedKeys?: Set<string>;
|
|
2145
2201
|
/** Initial selected keys for uncontrolled selection. Ignored when `selectedKeys` is set. */
|
|
2146
2202
|
defaultSelectedKeys?: Set<string>;
|
|
2147
|
-
/**
|
|
2148
|
-
|
|
2203
|
+
/**
|
|
2204
|
+
* Called with the new set of selected keys whenever selection changes, and with WHY it
|
|
2205
|
+
* changed (`details.reason`) — `'item-press'`, `'clear-press'`, `'chip-remove-press'`, ….
|
|
2206
|
+
* Read the reason when a deliberate pick and a reset must be told apart; ignore the second
|
|
2207
|
+
* argument otherwise.
|
|
2208
|
+
*/
|
|
2209
|
+
onSelectionChange?: (keys: Set<string>, details: ComboboxSelectionChangeDetails) => void;
|
|
2149
2210
|
/**
|
|
2150
2211
|
* Called when the dropdown opens (`true`) or closes (`false`). Use the
|
|
2151
2212
|
* `false` edge to commit a deferred action — e.g. a table filter that should
|
|
@@ -3068,7 +3129,7 @@ declare namespace EmptyHeader {
|
|
|
3068
3129
|
}
|
|
3069
3130
|
declare const emptyMediaVariants: (props?: ({
|
|
3070
3131
|
variant?: "default" | "icon" | null | undefined;
|
|
3071
|
-
} &
|
|
3132
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
3072
3133
|
/**
|
|
3073
3134
|
* Wrapper for the empty state's icon or illustration. Renders a `<div>`; the `icon`
|
|
3074
3135
|
* variant gives it a muted rounded background, while `default` is transparent.
|
|
@@ -3366,7 +3427,7 @@ declare namespace EmojiPickerContent {
|
|
|
3366
3427
|
declare const fabVariants: (props?: ({
|
|
3367
3428
|
variant?: "default" | "outline" | null | undefined;
|
|
3368
3429
|
size?: "lg" | "icon-lg" | null | undefined;
|
|
3369
|
-
} &
|
|
3430
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
3370
3431
|
/**
|
|
3371
3432
|
* Floating action button — a raised, shadowed button for a primary action.
|
|
3372
3433
|
* Renders Base UI's `Button` primitive as a `<button>`.
|
|
@@ -3440,7 +3501,7 @@ declare namespace FieldGroup {
|
|
|
3440
3501
|
}
|
|
3441
3502
|
declare const fieldVariants: (props?: ({
|
|
3442
3503
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
3443
|
-
} &
|
|
3504
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
3444
3505
|
/**
|
|
3445
3506
|
* Layout wrapper pairing a control with its label, description, and error. Renders a
|
|
3446
3507
|
* `<div role="group">`. The `orientation` variant (`'vertical' | 'horizontal' | 'responsive'`)
|
|
@@ -4245,7 +4306,7 @@ declare const InlineEditTextarea: React.ForwardRefExoticComponent<Omit<InlineEdi
|
|
|
4245
4306
|
//#region src/components/input.d.ts
|
|
4246
4307
|
declare const inputVariants: (props?: ({
|
|
4247
4308
|
block?: boolean | null | undefined;
|
|
4248
|
-
} &
|
|
4309
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
4249
4310
|
/**
|
|
4250
4311
|
* Single-line text field styled to the design system.
|
|
4251
4312
|
*
|
|
@@ -4291,7 +4352,7 @@ declare namespace InputGroup {
|
|
|
4291
4352
|
}
|
|
4292
4353
|
declare const inputGroupAddonVariants: (props?: ({
|
|
4293
4354
|
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
4294
|
-
} &
|
|
4355
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
4295
4356
|
declare const InputGroupAddon: React.ForwardRefExoticComponent<Omit<InputGroupAddonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4296
4357
|
interface InputGroupAddonProps extends React.ComponentProps<'div'>, VariantProps<typeof inputGroupAddonVariants> {}
|
|
4297
4358
|
declare namespace InputGroupAddon {
|
|
@@ -4515,7 +4576,7 @@ declare namespace ItemSeparator {
|
|
|
4515
4576
|
declare const itemVariants: (props?: ({
|
|
4516
4577
|
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
4517
4578
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
4518
|
-
} &
|
|
4579
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
4519
4580
|
/**
|
|
4520
4581
|
* Flexible list-item container laying out media, content, and actions on one row. Renders a `<div>`
|
|
4521
4582
|
* by default (swap the element via `render`). The `variant` (`'default' | 'outline' | 'muted'`) and
|
|
@@ -4538,7 +4599,7 @@ declare namespace Item {
|
|
|
4538
4599
|
}
|
|
4539
4600
|
declare const itemMediaVariants: (props?: ({
|
|
4540
4601
|
variant?: "image" | "default" | "icon" | null | undefined;
|
|
4541
|
-
} &
|
|
4602
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
4542
4603
|
/**
|
|
4543
4604
|
* Leading media slot of an `Item` (icon, image, or avatar). Renders a `<div>`. The `variant`
|
|
4544
4605
|
* (`'default' | 'icon' | 'image'`) tunes sizing and styling and defaults to `'default'`.
|
|
@@ -4897,7 +4958,7 @@ declare namespace ScrollBar {
|
|
|
4897
4958
|
/** `class-variance-authority` variants for the select trigger; exposes the `size` variant. */
|
|
4898
4959
|
declare const selectTriggerVariants: (props?: ({
|
|
4899
4960
|
size?: "default" | "sm" | null | undefined;
|
|
4900
|
-
} &
|
|
4961
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
4901
4962
|
/**
|
|
4902
4963
|
* Root of the select, aliasing Base UI's `Select.Root`. Manages open state and the selected value,
|
|
4903
4964
|
* and renders no DOM element — place `SelectTrigger` and `SelectContent` inside it.
|
|
@@ -5405,7 +5466,7 @@ declare namespace SidebarMenuItem {
|
|
|
5405
5466
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
5406
5467
|
variant?: "default" | "outline" | null | undefined;
|
|
5407
5468
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5408
|
-
} &
|
|
5469
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
5409
5470
|
/**
|
|
5410
5471
|
* Primary clickable row inside a menu item, with variant/size styles and an
|
|
5411
5472
|
* optional tooltip shown only when collapsed. Renders a `<button>` by default,
|
|
@@ -5562,7 +5623,7 @@ declare namespace Toaster {
|
|
|
5562
5623
|
/** Class variants for `Spinner`, controlling its `size` (`default`, `sm`, `lg`, `xl`). */
|
|
5563
5624
|
declare const spinnerVariants: (props?: ({
|
|
5564
5625
|
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
5565
|
-
} &
|
|
5626
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
5566
5627
|
/**
|
|
5567
5628
|
* Animated loading indicator. Renders a spinning `<svg>` (Loader icon) with
|
|
5568
5629
|
* `role="status"` and a localized `aria-label` for assistive technology.
|
|
@@ -5879,7 +5940,7 @@ declare namespace ThemeProvider {
|
|
|
5879
5940
|
declare const toggleVariants: (props?: ({
|
|
5880
5941
|
variant?: "default" | "outline" | null | undefined;
|
|
5881
5942
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5882
|
-
} &
|
|
5943
|
+
} & class_variance_authority_types5.ClassProp) | undefined) => string;
|
|
5883
5944
|
/**
|
|
5884
5945
|
* A two-state button that can be pressed on or off, wrapping Base UI's `Toggle`.
|
|
5885
5946
|
* Renders a `<button aria-pressed>` styled via {@link toggleVariants}.
|
|
@@ -6155,4 +6216,4 @@ declare function useAudioGauge(options?: UseAudioGaugeOptions): UseAudioGaugeRes
|
|
|
6155
6216
|
//#region src/lib/utils.d.ts
|
|
6156
6217
|
declare function cn(...inputs: ClassValue[]): string;
|
|
6157
6218
|
//#endregion
|
|
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 };
|
|
6219
|
+
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, 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, type ComboboxSelectionChangeDetails, 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 };
|
package/dist/index.js
CHANGED
|
@@ -3861,8 +3861,7 @@ function useComboboxItemSelection(options) {
|
|
|
3861
3861
|
const itemCache = itemCacheRef.current;
|
|
3862
3862
|
const [selectionSet, setSelectionSet] = useControllableState({
|
|
3863
3863
|
prop: selectedKeys,
|
|
3864
|
-
defaultProp: defaultSelectedKeys
|
|
3865
|
-
onChange: onSelectionChange
|
|
3864
|
+
defaultProp: defaultSelectedKeys
|
|
3866
3865
|
});
|
|
3867
3866
|
const keys = selectionSet ?? EMPTY_KEYS$1;
|
|
3868
3867
|
const selectedObjects = [];
|
|
@@ -3873,7 +3872,15 @@ function useComboboxItemSelection(options) {
|
|
|
3873
3872
|
return {
|
|
3874
3873
|
keys,
|
|
3875
3874
|
selectedObjects,
|
|
3876
|
-
commit: React.useCallback((objs) =>
|
|
3875
|
+
commit: React.useCallback((objs, details) => {
|
|
3876
|
+
const next = new Set(objs.map(getItemValue));
|
|
3877
|
+
setSelectionSet(next);
|
|
3878
|
+
onSelectionChange?.(next, details);
|
|
3879
|
+
}, [
|
|
3880
|
+
setSelectionSet,
|
|
3881
|
+
getItemValue,
|
|
3882
|
+
onSelectionChange
|
|
3883
|
+
]),
|
|
3877
3884
|
handleInputValueChange: onSearch ? (value, details) => {
|
|
3878
3885
|
if (searchTriggerReasons.has(details.reason)) onSearch(value);
|
|
3879
3886
|
} : void 0
|
|
@@ -3886,6 +3893,21 @@ const LIST_MAX_HEIGHT = "max-h-63";
|
|
|
3886
3893
|
const INPUT_IN_LIST_CLASSES = "m-1 mb-0 border-input/30 bg-input/30 shadow-none";
|
|
3887
3894
|
const FOCUSABLE_LIST_CLASSES = "focus-visible:ring-2 focus-visible:ring-ring/50 focus-visible:ring-inset";
|
|
3888
3895
|
/**
|
|
3896
|
+
* Row count at which `ComboboxBody` virtualises its rows on its own, when `virtualizeRows` was not
|
|
3897
|
+
* passed either way. Exported so it can be asserted against and tuned in ONE place.
|
|
3898
|
+
*
|
|
3899
|
+
* Crossing it LATCHES virtualisation on for the life of the component - see the `virtualizeRows`
|
|
3900
|
+
* prop doc. A list that declares `onFetchMore` can grow without bound, so it starts out virtualised
|
|
3901
|
+
* regardless of this number rather than waiting to cross it.
|
|
3902
|
+
*
|
|
3903
|
+
* A STARTING POINT, not a measured optimum. The two real data points behind it: 244 countries with
|
|
3904
|
+
* a flag per row was visibly laggy unvirtualised, and the user lists are server-capped at 10 rows
|
|
3905
|
+
* today, so both known cases sit far from this line and the exact value is not load-bearing yet.
|
|
3906
|
+
* Measure before tuning it - the honest cost driver is how expensive `renderItem` is, not the row
|
|
3907
|
+
* count alone, and a threshold cannot see that.
|
|
3908
|
+
*/
|
|
3909
|
+
const COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD = 100;
|
|
3910
|
+
/**
|
|
3889
3911
|
* Scrolls a keyboard-highlighted row into view while rows are virtualised.
|
|
3890
3912
|
* A no-op without virtualisation (nothing fills the ref), for a pointer-driven
|
|
3891
3913
|
* highlight (the row is already under the cursor, so already mounted), and when
|
|
@@ -3933,7 +3955,9 @@ function scrollHighlightedRowIntoView(scrollRowIntoViewRef, index, reason) {
|
|
|
3933
3955
|
function ComboboxBody(componentProps) {
|
|
3934
3956
|
const { items, getItemValue, getItemLabel, renderItem, getGroupKey, getGroupLabel, selectionMode = "single", selectedKeys, defaultSelectedKeys, onSelectionChange, selectedItems, disabledKeys, loadingState = "idle", skeletonCount, onSearch, onFetchMore, hasMore = false, emptyState, estimateRowHeight, searchable = true, placeholder, className, "aria-label": ariaLabel } = componentProps;
|
|
3935
3957
|
const multiple = selectionMode === "multiple";
|
|
3936
|
-
const
|
|
3958
|
+
const autoVirtualizeLatch = React.useRef(false);
|
|
3959
|
+
if (!autoVirtualizeLatch.current) autoVirtualizeLatch.current = !!onFetchMore || items.length >= COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD;
|
|
3960
|
+
const virtualizeRows = (componentProps.virtualizeRows ?? autoVirtualizeLatch.current) && !getGroupKey;
|
|
3937
3961
|
const scrollRowIntoViewRef = React.useRef(null);
|
|
3938
3962
|
const { selectedObjects, commit, handleInputValueChange } = useComboboxItemSelection({
|
|
3939
3963
|
items,
|
|
@@ -3997,7 +4021,7 @@ function ComboboxBody(componentProps) {
|
|
|
3997
4021
|
items: groups ?? items,
|
|
3998
4022
|
filter: onSearch || onFetchMore && hasMore ? null : void 0,
|
|
3999
4023
|
value: selectedObjects[0] ?? null,
|
|
4000
|
-
onValueChange: (next) => commit(next == null ? [] : [next]),
|
|
4024
|
+
onValueChange: (next, details) => commit(next == null ? [] : [next], details),
|
|
4001
4025
|
itemToStringValue: getItemValue,
|
|
4002
4026
|
itemToStringLabel: getItemLabel,
|
|
4003
4027
|
isItemEqualToValue: (a, b) => getItemValue(a) === getItemValue(b),
|
|
@@ -4448,7 +4472,7 @@ function DataCombobox(componentProps) {
|
|
|
4448
4472
|
disabled,
|
|
4449
4473
|
filter: onSearch || onFetchMore && hasMore ? null : void 0,
|
|
4450
4474
|
value: selectedObjects[0] ?? null,
|
|
4451
|
-
onValueChange: (next) => commit(next == null ? [] : [next]),
|
|
4475
|
+
onValueChange: (next, details) => commit(next == null ? [] : [next], details),
|
|
4452
4476
|
itemToStringValue: getItemValue,
|
|
4453
4477
|
itemToStringLabel: getItemLabel,
|
|
4454
4478
|
isItemEqualToValue: (a, b) => getItemValue(a) === getItemValue(b),
|
|
@@ -10328,4 +10352,4 @@ function useAudioGauge(options = {}) {
|
|
|
10328
10352
|
}
|
|
10329
10353
|
|
|
10330
10354
|
//#endregion
|
|
10331
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, 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, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, AudioPlayerButton, AudioPlayerCurrentTime, AudioPlayerDuration, AudioPlayerManager, AudioPlayerRow, AudioPlayerSkip, AudioPlayerSpeed, AudioPlayerTime, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxBody, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, DataTable, 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, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, 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, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, 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, 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, Spinner, 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, 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 };
|
|
10355
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, 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, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, AudioPlayerButton, AudioPlayerCurrentTime, AudioPlayerDuration, AudioPlayerManager, AudioPlayerRow, AudioPlayerSkip, AudioPlayerSpeed, AudioPlayerTime, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, COMBOBOX_AUTO_VIRTUALIZE_THRESHOLD, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxBody, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, DataTable, 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, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, 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, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, 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, 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, Spinner, 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, 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 };
|