@aircall/ds 0.31.4 → 0.33.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 +437 -192
- package/dist/index.js +1660 -287
- package/dist/theme.css +28 -0
- package/package.json +14 -2
package/dist/index.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ import { Select as Select$1 } from "@base-ui/react/select";
|
|
|
14
14
|
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
15
15
|
import { Checkbox as Checkbox$1 } from "@base-ui/react/checkbox";
|
|
16
16
|
import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
17
|
-
import * as _base_ui_react0 from "@base-ui/react";
|
|
18
17
|
import { Combobox as Combobox$1 } from "@base-ui/react";
|
|
19
18
|
import { Command as Command$1 } from "cmdk";
|
|
20
19
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
@@ -30,18 +29,15 @@ import { Categories, SuggestionMode } from "emoji-picker-react";
|
|
|
30
29
|
import { ThemeProviderProps, useTheme } from "next-themes";
|
|
31
30
|
import { PreviewCard } from "@base-ui/react/preview-card";
|
|
32
31
|
import { NumberField } from "@base-ui/react/number-field";
|
|
33
|
-
import * as input_otp0 from "input-otp";
|
|
34
32
|
import { OTPInput } from "input-otp";
|
|
35
33
|
import { Progress as Progress$1 } from "@base-ui/react/progress";
|
|
34
|
+
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
36
35
|
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
37
36
|
import { ToasterProps, toast } from "sonner";
|
|
38
37
|
import { Switch as Switch$1 } from "@base-ui/react/switch";
|
|
39
38
|
import { Tabs as Tabs$1 } from "@base-ui/react/tabs";
|
|
40
|
-
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
41
39
|
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
42
|
-
import * as class_variance_authority_types7 from "class-variance-authority/types";
|
|
43
40
|
import { CountryCode } from "@aircall/numbers";
|
|
44
|
-
|
|
45
41
|
//#region src/components/accordion.d.ts
|
|
46
42
|
/**
|
|
47
43
|
* Root container for an accordion, wrapping Base UI's `Accordion.Root`.
|
|
@@ -99,10 +95,10 @@ declare namespace AccordionContent {
|
|
|
99
95
|
//#region src/components/button.d.ts
|
|
100
96
|
/** `cva` variant definitions for {@link Button} — resolves `variant`, `size`, and `block` into class names. */
|
|
101
97
|
declare const buttonVariants: (props?: ({
|
|
102
|
-
variant?: "link" | "default" | "
|
|
98
|
+
variant?: "link" | "default" | "ghost" | "secondary" | "destructive" | "outline" | null | undefined;
|
|
103
99
|
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
104
100
|
block?: boolean | null | undefined;
|
|
105
|
-
} &
|
|
101
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
106
102
|
/**
|
|
107
103
|
* Clickable button. Renders a Base UI `Button` primitive as a `<button>` element,
|
|
108
104
|
* styled via `buttonVariants` (variant / size / block).
|
|
@@ -292,14 +288,7 @@ interface AudioProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onError
|
|
|
292
288
|
* </Audio>
|
|
293
289
|
* ```
|
|
294
290
|
*/
|
|
295
|
-
declare function Audio({
|
|
296
|
-
src,
|
|
297
|
-
defaultPlaybackRate,
|
|
298
|
-
preload,
|
|
299
|
-
crossOrigin,
|
|
300
|
-
children,
|
|
301
|
-
...divProps
|
|
302
|
-
}: AudioProps): React.JSX.Element;
|
|
291
|
+
declare function Audio({ src, defaultPlaybackRate, preload, crossOrigin, children, ...divProps }: AudioProps): React.JSX.Element;
|
|
303
292
|
/**
|
|
304
293
|
* Flex row wrapper for AudioPlayer sub-components. Renders a `<div>` with
|
|
305
294
|
* `flex items-center gap-2`. Cascades `variant` to child `<AudioPlayerButton>`
|
|
@@ -330,12 +319,7 @@ type AudioPlayerRowProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
|
330
319
|
*/
|
|
331
320
|
variant?: 'default' | 'ghost';
|
|
332
321
|
};
|
|
333
|
-
declare function AudioPlayerRow({
|
|
334
|
-
variant,
|
|
335
|
-
className,
|
|
336
|
-
children,
|
|
337
|
-
...props
|
|
338
|
-
}: AudioPlayerRowProps): React.JSX.Element;
|
|
322
|
+
declare function AudioPlayerRow({ variant, className, children, ...props }: AudioPlayerRowProps): React.JSX.Element;
|
|
339
323
|
/**
|
|
340
324
|
* Play / pause / replay toggle button. Automatically selects the correct icon
|
|
341
325
|
* from provider state (Play → Pause → Replay → Spinner for buffering) and sets
|
|
@@ -402,12 +386,7 @@ type AudioPlayerBarProps = Omit<React.ComponentProps<typeof Slider$1.Root>, 'val
|
|
|
402
386
|
*/
|
|
403
387
|
playheadHeight?: number;
|
|
404
388
|
};
|
|
405
|
-
declare function AudioPlayerBar({
|
|
406
|
-
className,
|
|
407
|
-
step,
|
|
408
|
-
playheadHeight,
|
|
409
|
-
...props
|
|
410
|
-
}: AudioPlayerBarProps): React.JSX.Element;
|
|
389
|
+
declare function AudioPlayerBar({ className, step, playheadHeight, ...props }: AudioPlayerBarProps): React.JSX.Element;
|
|
411
390
|
type AudioPlayerCurrentTimeProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
412
391
|
/**
|
|
413
392
|
* Dumb span that always renders the current playback position as a formatted
|
|
@@ -418,10 +397,7 @@ type AudioPlayerCurrentTimeProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
|
418
397
|
* <AudioPlayerCurrentTime />
|
|
419
398
|
* ```
|
|
420
399
|
*/
|
|
421
|
-
declare function AudioPlayerCurrentTime({
|
|
422
|
-
className,
|
|
423
|
-
...props
|
|
424
|
-
}: AudioPlayerCurrentTimeProps): React.JSX.Element;
|
|
400
|
+
declare function AudioPlayerCurrentTime({ className, ...props }: AudioPlayerCurrentTimeProps): React.JSX.Element;
|
|
425
401
|
type AudioPlayerTimeProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
426
402
|
/**
|
|
427
403
|
* `compact` (default) — smart single value: shows total duration before the track
|
|
@@ -443,11 +419,7 @@ type AudioPlayerTimeProps = React.HTMLAttributes<HTMLSpanElement> & {
|
|
|
443
419
|
* <AudioPlayerTime mode="full" />
|
|
444
420
|
* ```
|
|
445
421
|
*/
|
|
446
|
-
declare function AudioPlayerTime({
|
|
447
|
-
mode,
|
|
448
|
-
className,
|
|
449
|
-
...props
|
|
450
|
-
}: AudioPlayerTimeProps): React.JSX.Element;
|
|
422
|
+
declare function AudioPlayerTime({ mode, className, ...props }: AudioPlayerTimeProps): React.JSX.Element;
|
|
451
423
|
type AudioPlayerDurationProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
452
424
|
/**
|
|
453
425
|
* Dumb span that always renders the total audio duration as a formatted time
|
|
@@ -458,12 +430,10 @@ type AudioPlayerDurationProps = React.HTMLAttributes<HTMLSpanElement>;
|
|
|
458
430
|
* <AudioPlayerDuration />
|
|
459
431
|
* ```
|
|
460
432
|
*/
|
|
461
|
-
declare function AudioPlayerDuration({
|
|
462
|
-
className,
|
|
463
|
-
...props
|
|
464
|
-
}: AudioPlayerDurationProps): React.JSX.Element;
|
|
433
|
+
declare function AudioPlayerDuration({ className, ...props }: AudioPlayerDurationProps): React.JSX.Element;
|
|
465
434
|
type AudioPlayerSpeedProps = useRender.ComponentProps<'button'> & {
|
|
466
|
-
/** Speed cycle order. Defaults to [1, 1.5, 2, 0.5] (matches Figma). */
|
|
435
|
+
/** Speed cycle order. Defaults to [1, 1.5, 2, 0.5] (matches Figma). */
|
|
436
|
+
speeds?: number[];
|
|
467
437
|
/**
|
|
468
438
|
* Sizing pairs with the row's `AudioPlayerButton` variant.
|
|
469
439
|
* - `default` → DS `<Button variant="ghost" size="default">` (32 px)
|
|
@@ -488,7 +458,8 @@ declare const AudioPlayerSpeed: React.ForwardRefExoticComponent<Omit<AudioPlayer
|
|
|
488
458
|
* ```
|
|
489
459
|
*/
|
|
490
460
|
type AudioPlayerSkipProps = useRender.ComponentProps<'button'> & {
|
|
491
|
-
/** Seconds to seek (positive = forward, negative = back). Required. */
|
|
461
|
+
/** Seconds to seek (positive = forward, negative = back). Required. */
|
|
462
|
+
offset: number;
|
|
492
463
|
};
|
|
493
464
|
declare const AudioPlayerSkip: React.ForwardRefExoticComponent<Omit<AudioPlayerSkipProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
494
465
|
type AudioPlayerManagerProps = {
|
|
@@ -510,9 +481,7 @@ type AudioPlayerManagerProps = {
|
|
|
510
481
|
* </AudioPlayerManager>
|
|
511
482
|
* ```
|
|
512
483
|
*/
|
|
513
|
-
declare function AudioPlayerManager({
|
|
514
|
-
children
|
|
515
|
-
}: AudioPlayerManagerProps): React.JSX.Element;
|
|
484
|
+
declare function AudioPlayerManager({ children }: AudioPlayerManagerProps): React.JSX.Element;
|
|
516
485
|
//#endregion
|
|
517
486
|
//#region src/components/alert-dialog.d.ts
|
|
518
487
|
/**
|
|
@@ -669,8 +638,8 @@ declare namespace AlertDialogCancel {
|
|
|
669
638
|
* default `default`) sets the background, border, and icon colour scheme.
|
|
670
639
|
*/
|
|
671
640
|
declare const alertVariants: (props?: ({
|
|
672
|
-
variant?: "default" | "
|
|
673
|
-
} &
|
|
641
|
+
variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
642
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
674
643
|
/**
|
|
675
644
|
* Callout that draws attention to an important, contextual message.
|
|
676
645
|
*
|
|
@@ -754,7 +723,7 @@ declare const attachmentVariants: (props?: ({
|
|
|
754
723
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
755
724
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
756
725
|
block?: boolean | null | undefined;
|
|
757
|
-
} &
|
|
726
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
758
727
|
/**
|
|
759
728
|
* Card displaying a single file or image attachment with its metadata,
|
|
760
729
|
* upload state, and actions. Renders a `<div>`; compose it from
|
|
@@ -797,7 +766,7 @@ declare namespace Attachment {
|
|
|
797
766
|
}
|
|
798
767
|
declare const attachmentMediaVariants: (props?: ({
|
|
799
768
|
variant?: "image" | "icon" | null | undefined;
|
|
800
|
-
} &
|
|
769
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
801
770
|
/**
|
|
802
771
|
* Leading media slot of an `Attachment` — holds an icon (`variant="icon"`)
|
|
803
772
|
* or an image thumbnail (`variant="image"`). Renders a `<div>`.
|
|
@@ -969,8 +938,8 @@ declare namespace AvatarGroupCount {
|
|
|
969
938
|
* (`default` | `secondary` | `ghost`, default `default`) sets the colour scheme.
|
|
970
939
|
*/
|
|
971
940
|
declare const counterBadgeVariants: (props?: ({
|
|
972
|
-
variant?: "default" | "
|
|
973
|
-
} &
|
|
941
|
+
variant?: "default" | "ghost" | "secondary" | null | undefined;
|
|
942
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
974
943
|
/**
|
|
975
944
|
* Small pill for surfacing a count or short status, e.g. an unread indicator.
|
|
976
945
|
* Renders a `<span>` (override the element via the `render` prop).
|
|
@@ -994,7 +963,7 @@ declare const badgeVariants: (props?: ({
|
|
|
994
963
|
size?: "default" | "lg" | null | undefined;
|
|
995
964
|
color?: "blue" | "green" | "pink" | "purple" | "red" | "yellow" | "charcoal" | null | undefined;
|
|
996
965
|
tone?: "dark" | "light" | "medium-dark" | "medium-light" | null | undefined;
|
|
997
|
-
} &
|
|
966
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
998
967
|
type BadgeVariants = VariantProps<typeof badgeVariants>;
|
|
999
968
|
/** Constrained DS badge fill color (no freeform hex). */
|
|
1000
969
|
type BadgeColor = NonNullable<BadgeVariants['color']>;
|
|
@@ -1032,7 +1001,7 @@ declare namespace BadgeGroup {
|
|
|
1032
1001
|
}
|
|
1033
1002
|
declare const badgeGroupCountVariants: (props?: ({
|
|
1034
1003
|
size?: "default" | "lg" | null | undefined;
|
|
1035
|
-
} &
|
|
1004
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
1036
1005
|
/**
|
|
1037
1006
|
* Trailing "+N" overflow counter for a `BadgeGroup`. Renders a ghost `CounterBadge`
|
|
1038
1007
|
* sized to match the group's badges (`size` mirrors `Badge`'s `default` / `lg`).
|
|
@@ -1050,9 +1019,9 @@ declare namespace BadgeGroupCount {
|
|
|
1050
1019
|
* edge gets the accent border.
|
|
1051
1020
|
*/
|
|
1052
1021
|
declare const bannerVariants: (props?: ({
|
|
1053
|
-
variant?: "default" | "
|
|
1022
|
+
variant?: "default" | "error" | "info" | "success" | "warning" | null | undefined;
|
|
1054
1023
|
borderDirection?: "bottom" | "top" | null | undefined;
|
|
1055
|
-
} &
|
|
1024
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
1056
1025
|
/**
|
|
1057
1026
|
* Full-width contextual message, typically pinned to the top or bottom of a
|
|
1058
1027
|
* view. Like {@link Alert} but edge-to-edge with a single accent border.
|
|
@@ -1160,12 +1129,7 @@ declare function useNotificationQueue(): NotificationQueueControls;
|
|
|
1160
1129
|
*
|
|
1161
1130
|
* @returns a `NotificationHandle` with a `dismiss` bound to this notification.
|
|
1162
1131
|
*/
|
|
1163
|
-
declare function useNotification({
|
|
1164
|
-
id,
|
|
1165
|
-
slot,
|
|
1166
|
-
priority,
|
|
1167
|
-
render
|
|
1168
|
-
}: NotificationOptions): NotificationHandle;
|
|
1132
|
+
declare function useNotification({ id, slot, priority, render }: NotificationOptions): NotificationHandle;
|
|
1169
1133
|
interface NotificationSlotProps {
|
|
1170
1134
|
slot: string;
|
|
1171
1135
|
className?: string;
|
|
@@ -1207,7 +1171,7 @@ declare namespace Separator {
|
|
|
1207
1171
|
/** `cva` variant definitions for {@link ButtonGroup} — resolves `orientation` (horizontal / vertical) into class names. */
|
|
1208
1172
|
declare const buttonGroupVariants: (props?: ({
|
|
1209
1173
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
1210
|
-
} &
|
|
1174
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
1211
1175
|
/**
|
|
1212
1176
|
* Groups related buttons into a single visual unit with shared borders and merged corners.
|
|
1213
1177
|
* Renders a `<div role="group">` and normalizes the radii/borders of its children.
|
|
@@ -1269,16 +1233,7 @@ declare namespace ButtonGroupSeparator {
|
|
|
1269
1233
|
* `SelectHTMLAttributes<HTMLSelectElement>` minus `children`), plus the
|
|
1270
1234
|
* `options` array that react-day-picker passes for month/year values.
|
|
1271
1235
|
*/
|
|
1272
|
-
declare function CalendarDropdown({
|
|
1273
|
-
options,
|
|
1274
|
-
value,
|
|
1275
|
-
onChange,
|
|
1276
|
-
disabled,
|
|
1277
|
-
'aria-label': ariaLabel,
|
|
1278
|
-
className,
|
|
1279
|
-
components: _components,
|
|
1280
|
-
classNames: _classNames
|
|
1281
|
-
}: DropdownProps): React.JSX.Element;
|
|
1236
|
+
declare function CalendarDropdown({ options, value, onChange, disabled, 'aria-label': ariaLabel, className, components: _components, classNames: _classNames }: DropdownProps): React.JSX.Element;
|
|
1282
1237
|
type CalendarDropdownProps = DropdownProps;
|
|
1283
1238
|
declare namespace CalendarDropdown {
|
|
1284
1239
|
type Props = CalendarDropdownProps;
|
|
@@ -1338,17 +1293,7 @@ declare function isInsideCalendarDropdown(event: Event): boolean;
|
|
|
1338
1293
|
* <Calendar mode="single" selected={date} onSelect={setDate} />
|
|
1339
1294
|
* ```
|
|
1340
1295
|
*/
|
|
1341
|
-
declare function Calendar({
|
|
1342
|
-
className,
|
|
1343
|
-
classNames,
|
|
1344
|
-
showOutsideDays,
|
|
1345
|
-
captionLayout,
|
|
1346
|
-
buttonVariant,
|
|
1347
|
-
locale,
|
|
1348
|
-
formatters,
|
|
1349
|
-
components,
|
|
1350
|
-
...props
|
|
1351
|
-
}: Calendar.Props): React.JSX.Element;
|
|
1296
|
+
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, locale, formatters, components, ...props }: Calendar.Props): React.JSX.Element;
|
|
1352
1297
|
type CalendarProps = React.ComponentProps<typeof DayPicker> & {
|
|
1353
1298
|
/**
|
|
1354
1299
|
* `Button` variant applied to the previous/next month nav controls.
|
|
@@ -1369,13 +1314,7 @@ declare namespace Calendar {
|
|
|
1369
1314
|
* roving-tabindex keyboard navigation (ArrowLeft/Right/Up/Down) that our
|
|
1370
1315
|
* custom DayButton slot would otherwise drop.
|
|
1371
1316
|
*/
|
|
1372
|
-
declare function CalendarDayButton({
|
|
1373
|
-
className: dayClassName,
|
|
1374
|
-
day,
|
|
1375
|
-
modifiers,
|
|
1376
|
-
locale,
|
|
1377
|
-
...props
|
|
1378
|
-
}: CalendarDayButton.Props): React.JSX.Element;
|
|
1317
|
+
declare function CalendarDayButton({ className: dayClassName, day, modifiers, locale, ...props }: CalendarDayButton.Props): React.JSX.Element;
|
|
1379
1318
|
interface CalendarDayButtonProps extends React.ComponentProps<typeof DayButton> {
|
|
1380
1319
|
/** Locale used to format the day's `data-day` date string. */
|
|
1381
1320
|
locale?: Partial<Locale>;
|
|
@@ -1472,13 +1411,16 @@ type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
|
1472
1411
|
type CarouselOptions = UseCarouselParameters[0];
|
|
1473
1412
|
type CarouselPlugin = UseCarouselParameters[1];
|
|
1474
1413
|
type CarouselProps = {
|
|
1475
|
-
/** Embla options object passed through to `useEmblaCarousel`. */
|
|
1414
|
+
/** Embla options object passed through to `useEmblaCarousel`. */
|
|
1415
|
+
opts?: CarouselOptions;
|
|
1416
|
+
/** Embla plugins (e.g. autoplay) passed through to `useEmblaCarousel`. */
|
|
1476
1417
|
plugins?: CarouselPlugin;
|
|
1477
1418
|
/**
|
|
1478
1419
|
* Scroll axis of the carousel.
|
|
1479
1420
|
* @default 'horizontal'
|
|
1480
1421
|
*/
|
|
1481
|
-
orientation?: 'horizontal' | 'vertical';
|
|
1422
|
+
orientation?: 'horizontal' | 'vertical';
|
|
1423
|
+
/** Callback invoked with the Embla api once ready, for imperative control. */
|
|
1482
1424
|
setApi?: (api: CarouselApi) => void;
|
|
1483
1425
|
};
|
|
1484
1426
|
/**
|
|
@@ -1656,7 +1598,7 @@ declare namespace ComboboxValue {
|
|
|
1656
1598
|
* Toggles the combobox popup, wrapping Base UI's `Combobox.Trigger`. Renders a `<button>` with a
|
|
1657
1599
|
* trailing chevron icon.
|
|
1658
1600
|
*/
|
|
1659
|
-
declare const ComboboxTrigger: React.ForwardRefExoticComponent<Omit<
|
|
1601
|
+
declare const ComboboxTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteTriggerProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1660
1602
|
declare namespace ComboboxTrigger {
|
|
1661
1603
|
type Props = Combobox$1.Trigger.Props;
|
|
1662
1604
|
}
|
|
@@ -1696,7 +1638,7 @@ declare namespace ComboboxContent {
|
|
|
1696
1638
|
* Scrollable list wrapper for combobox items, wrapping Base UI's `Combobox.List`. Renders a
|
|
1697
1639
|
* scrollable `<div>`.
|
|
1698
1640
|
*/
|
|
1699
|
-
declare const ComboboxList: React.ForwardRefExoticComponent<Omit<
|
|
1641
|
+
declare const ComboboxList: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteListProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1700
1642
|
declare namespace ComboboxList {
|
|
1701
1643
|
type Props = Combobox$1.List.Props;
|
|
1702
1644
|
}
|
|
@@ -1704,7 +1646,7 @@ declare namespace ComboboxList {
|
|
|
1704
1646
|
* Selectable option in the combobox list, wrapping Base UI's `Combobox.Item`. Renders a `<div>`
|
|
1705
1647
|
* row with a trailing check indicator when selected.
|
|
1706
1648
|
*/
|
|
1707
|
-
declare const ComboboxItem: React.ForwardRefExoticComponent<Omit<
|
|
1649
|
+
declare const ComboboxItem: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteItemProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1708
1650
|
declare namespace ComboboxItem {
|
|
1709
1651
|
type Props = Combobox$1.Item.Props;
|
|
1710
1652
|
}
|
|
@@ -1712,7 +1654,7 @@ declare namespace ComboboxItem {
|
|
|
1712
1654
|
* Groups related combobox items under a shared label, wrapping Base UI's `Combobox.Group`.
|
|
1713
1655
|
* Renders a `<div>`.
|
|
1714
1656
|
*/
|
|
1715
|
-
declare const ComboboxGroup: React.ForwardRefExoticComponent<Omit<
|
|
1657
|
+
declare const ComboboxGroup: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteGroupProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1716
1658
|
declare namespace ComboboxGroup {
|
|
1717
1659
|
type Props = Combobox$1.Group.Props;
|
|
1718
1660
|
}
|
|
@@ -1720,7 +1662,7 @@ declare namespace ComboboxGroup {
|
|
|
1720
1662
|
* Label for a `ComboboxGroup`, wrapping Base UI's `Combobox.GroupLabel`. Renders a muted `<div>`
|
|
1721
1663
|
* heading.
|
|
1722
1664
|
*/
|
|
1723
|
-
declare const ComboboxLabel: React.ForwardRefExoticComponent<Omit<
|
|
1665
|
+
declare const ComboboxLabel: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteGroupLabelProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1724
1666
|
declare namespace ComboboxLabel {
|
|
1725
1667
|
type Props = Combobox$1.GroupLabel.Props;
|
|
1726
1668
|
}
|
|
@@ -1736,7 +1678,7 @@ declare namespace ComboboxCollection {
|
|
|
1736
1678
|
* Message shown when no items match the current query, wrapping Base UI's `Combobox.Empty`.
|
|
1737
1679
|
* Renders a `<div>` that is only visible when the list is empty.
|
|
1738
1680
|
*/
|
|
1739
|
-
declare const ComboboxEmpty: React.ForwardRefExoticComponent<Omit<
|
|
1681
|
+
declare const ComboboxEmpty: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteEmptyProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1740
1682
|
declare namespace ComboboxEmpty {
|
|
1741
1683
|
type Props = Combobox$1.Empty.Props;
|
|
1742
1684
|
}
|
|
@@ -1744,7 +1686,7 @@ declare namespace ComboboxEmpty {
|
|
|
1744
1686
|
* Visual divider between combobox items or groups, wrapping Base UI's `Combobox.Separator`.
|
|
1745
1687
|
* Renders a thin `<div>` line.
|
|
1746
1688
|
*/
|
|
1747
|
-
declare const ComboboxSeparator: React.ForwardRefExoticComponent<Omit<
|
|
1689
|
+
declare const ComboboxSeparator: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").SeparatorProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
1748
1690
|
declare namespace ComboboxSeparator {
|
|
1749
1691
|
type Props = Combobox$1.Separator.Props;
|
|
1750
1692
|
}
|
|
@@ -1775,7 +1717,7 @@ declare namespace ComboboxChip {
|
|
|
1775
1717
|
* Text input placed inside `ComboboxChips` for filtering and adding chips, wrapping Base UI's
|
|
1776
1718
|
* `Combobox.Input`. Renders an `<input>`.
|
|
1777
1719
|
*/
|
|
1778
|
-
declare const ComboboxChipsInput: React.ForwardRefExoticComponent<Omit<
|
|
1720
|
+
declare const ComboboxChipsInput: React.ForwardRefExoticComponent<Omit<import("@base-ui/react").AutocompleteInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
1779
1721
|
/**
|
|
1780
1722
|
* Returns a stable ref to attach to `ComboboxChips` and pass as `ComboboxContent`'s `anchor`, so
|
|
1781
1723
|
* the popup is positioned against the chips container rather than the input.
|
|
@@ -2920,11 +2862,7 @@ declare const DrawerCreateHandle: typeof DrawerPrimitive.createHandle;
|
|
|
2920
2862
|
* </Drawer>
|
|
2921
2863
|
* ```
|
|
2922
2864
|
*/
|
|
2923
|
-
declare function Drawer({
|
|
2924
|
-
swipeDirection,
|
|
2925
|
-
position,
|
|
2926
|
-
...props
|
|
2927
|
-
}: Drawer.Props): React.ReactElement;
|
|
2865
|
+
declare function Drawer({ swipeDirection, position, ...props }: Drawer.Props): React.ReactElement;
|
|
2928
2866
|
interface DrawerProps extends DrawerPrimitive.Root.Props {
|
|
2929
2867
|
/**
|
|
2930
2868
|
* Edge the drawer is anchored to; also sets the default `swipeDirection`.
|
|
@@ -3498,7 +3436,7 @@ declare namespace EmptyHeader {
|
|
|
3498
3436
|
}
|
|
3499
3437
|
declare const emptyMediaVariants: (props?: ({
|
|
3500
3438
|
variant?: "default" | "icon" | null | undefined;
|
|
3501
|
-
} &
|
|
3439
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
3502
3440
|
/**
|
|
3503
3441
|
* Wrapper for the empty state's icon or illustration. Renders a `<div>`; the `icon`
|
|
3504
3442
|
* variant gives it a muted rounded background, while `default` is transparent.
|
|
@@ -3756,10 +3694,7 @@ type EmojiPickerProps = {
|
|
|
3756
3694
|
* </EmojiPicker>
|
|
3757
3695
|
* ```
|
|
3758
3696
|
*/
|
|
3759
|
-
declare function EmojiPicker({
|
|
3760
|
-
onEmojiSelect,
|
|
3761
|
-
children
|
|
3762
|
-
}: EmojiPicker.Props): React.JSX.Element;
|
|
3697
|
+
declare function EmojiPicker({ onEmojiSelect, children }: EmojiPicker.Props): React.JSX.Element;
|
|
3763
3698
|
declare namespace EmojiPicker {
|
|
3764
3699
|
type Props = EmojiPickerProps;
|
|
3765
3700
|
}
|
|
@@ -3793,15 +3728,7 @@ type EmojiPickerContentProps = Omit<React.ComponentProps<typeof PopoverContent>,
|
|
|
3793
3728
|
* <EmojiPickerContent width={320} categories={[{ category: EmojiPickerCategories.SMILEYS_PEOPLE, name: 'Smileys' }]} />
|
|
3794
3729
|
* ```
|
|
3795
3730
|
*/
|
|
3796
|
-
declare function EmojiPickerContent({
|
|
3797
|
-
className,
|
|
3798
|
-
align,
|
|
3799
|
-
searchPlaceholder,
|
|
3800
|
-
categories,
|
|
3801
|
-
width,
|
|
3802
|
-
suggestedEmojisMode,
|
|
3803
|
-
...props
|
|
3804
|
-
}: EmojiPickerContentProps): React.JSX.Element;
|
|
3731
|
+
declare function EmojiPickerContent({ className, align, searchPlaceholder, categories, width, suggestedEmojisMode, ...props }: EmojiPickerContentProps): React.JSX.Element;
|
|
3805
3732
|
declare namespace EmojiPickerContent {
|
|
3806
3733
|
type Props = EmojiPickerContentProps;
|
|
3807
3734
|
}
|
|
@@ -3815,7 +3742,7 @@ declare namespace EmojiPickerContent {
|
|
|
3815
3742
|
declare const fabVariants: (props?: ({
|
|
3816
3743
|
variant?: "default" | "outline" | null | undefined;
|
|
3817
3744
|
size?: "lg" | "icon-lg" | null | undefined;
|
|
3818
|
-
} &
|
|
3745
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
3819
3746
|
/**
|
|
3820
3747
|
* Floating action button — a raised, shadowed button for a primary action.
|
|
3821
3748
|
* Renders Base UI's `Button` primitive as a `<button>`.
|
|
@@ -3889,7 +3816,7 @@ declare namespace FieldGroup {
|
|
|
3889
3816
|
}
|
|
3890
3817
|
declare const fieldVariants: (props?: ({
|
|
3891
3818
|
orientation?: "horizontal" | "vertical" | "responsive" | null | undefined;
|
|
3892
|
-
} &
|
|
3819
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
3893
3820
|
/**
|
|
3894
3821
|
* Layout wrapper pairing a control with its label, description, and error. Renders a
|
|
3895
3822
|
* `<div role="group">`. The `orientation` variant (`'vertical' | 'horizontal' | 'responsive'`)
|
|
@@ -4176,13 +4103,21 @@ declare namespace HoverCardContent {
|
|
|
4176
4103
|
//#endregion
|
|
4177
4104
|
//#region src/components/inline-edit-input.d.ts
|
|
4178
4105
|
type InlineEditInputOwnProps = {
|
|
4179
|
-
/** Optional 16 px leading icon rendered before the text. */
|
|
4180
|
-
|
|
4181
|
-
|
|
4182
|
-
|
|
4183
|
-
|
|
4184
|
-
|
|
4185
|
-
|
|
4106
|
+
/** Optional 16 px leading icon rendered before the text. */
|
|
4107
|
+
prefix?: React.ReactNode;
|
|
4108
|
+
/** When true, renders as static text with no hover/focus affordance. */
|
|
4109
|
+
readOnly?: boolean;
|
|
4110
|
+
/** Marks the field as invalid; drives the destructive border/ring. */
|
|
4111
|
+
'aria-invalid'?: boolean;
|
|
4112
|
+
/** Controlled value. Fires `onValueChange` on every keystroke. */
|
|
4113
|
+
value?: string;
|
|
4114
|
+
/** Uncontrolled initial value. */
|
|
4115
|
+
defaultValue?: string;
|
|
4116
|
+
/** Fired on every keystroke (live, for controlled form-lib usage). */
|
|
4117
|
+
onValueChange?: (value: string) => void;
|
|
4118
|
+
/** Fired on blur or Enter with the trimmed value (deferred commit). */
|
|
4119
|
+
onValueCommit?: (value: string) => void;
|
|
4120
|
+
/** Selects all text when the field receives focus. */
|
|
4186
4121
|
selectAllOnFocus?: boolean;
|
|
4187
4122
|
};
|
|
4188
4123
|
type InlineEditInputNativeProps = Omit<React.ComponentProps<'input'>, 'size' | 'prefix' | 'value' | 'defaultValue' | 'onChange'>;
|
|
@@ -4379,15 +4314,15 @@ interface InlineEditMultiselectBaseProps {
|
|
|
4379
4314
|
* Data-driven mode props. Items are opaque `Item`s read via accessor functions
|
|
4380
4315
|
* (mirrors `DataCombobox` / `InlineEditSelect`), so the item shape is the consumer's.
|
|
4381
4316
|
*/
|
|
4382
|
-
interface InlineEditMultiselectDataProps<Item
|
|
4317
|
+
interface InlineEditMultiselectDataProps<Item> extends InlineEditMultiselectBaseProps {
|
|
4383
4318
|
/** The selectable options. Mutually exclusive with `children`. */
|
|
4384
|
-
items: Item
|
|
4319
|
+
items: Item[];
|
|
4385
4320
|
/** Extracts the string key stored for an item (the value in `value`/`onValueChange`). */
|
|
4386
|
-
getItemValue: (item: Item
|
|
4321
|
+
getItemValue: (item: Item) => string;
|
|
4387
4322
|
/** Extracts the plain-text label shown in the chip, the option row, and used for search. */
|
|
4388
|
-
getItemLabel: (item: Item
|
|
4323
|
+
getItemLabel: (item: Item) => string;
|
|
4389
4324
|
/** Optional rich row content (icon, subtitle, …) for the dropdown option. */
|
|
4390
|
-
renderItem?: (item: Item
|
|
4325
|
+
renderItem?: (item: Item) => React.ReactNode;
|
|
4391
4326
|
/**
|
|
4392
4327
|
* Optional custom render for a selected chip. Return the WHOLE chip - an
|
|
4393
4328
|
* `InlineEditMultiselectChip` element - so its appearance (`color`/`tone`/`glow`/
|
|
@@ -4397,7 +4332,7 @@ interface InlineEditMultiselectDataProps<Item$1> extends InlineEditMultiselectBa
|
|
|
4397
4332
|
* `renderItem`, which returns only the row's inner content, the chip is entirely
|
|
4398
4333
|
* consumer-owned here - mirrors `DataCombobox`'s `renderChip`.)
|
|
4399
4334
|
*/
|
|
4400
|
-
renderChip?: (item: Item
|
|
4335
|
+
renderChip?: (item: Item) => React.ReactNode;
|
|
4401
4336
|
/** Keys (from `getItemValue`) that are non-selectable. */
|
|
4402
4337
|
disabledKeys?: Set<string>;
|
|
4403
4338
|
/** Placeholder for the dropdown search input. */
|
|
@@ -4429,9 +4364,9 @@ interface InlineEditMultiselectCompoundProps extends InlineEditMultiselectBasePr
|
|
|
4429
4364
|
itemToStringLabel?: (value: string) => string;
|
|
4430
4365
|
getItemValue?: never;
|
|
4431
4366
|
}
|
|
4432
|
-
type InlineEditMultiselectProps<Item
|
|
4367
|
+
type InlineEditMultiselectProps<Item> = InlineEditMultiselectDataProps<Item> | InlineEditMultiselectCompoundProps;
|
|
4433
4368
|
declare namespace InlineEditMultiselect {
|
|
4434
|
-
type Props<Item
|
|
4369
|
+
type Props<Item = unknown> = InlineEditMultiselectProps<Item>;
|
|
4435
4370
|
}
|
|
4436
4371
|
/**
|
|
4437
4372
|
* An inline-editable multi-value select rendered as a wrapping row of removable chips
|
|
@@ -4470,7 +4405,7 @@ declare namespace InlineEditMultiselect {
|
|
|
4470
4405
|
* ```
|
|
4471
4406
|
* (Pass the content children as a render function, not a static `.map`, so the search filters.)
|
|
4472
4407
|
*/
|
|
4473
|
-
declare function InlineEditMultiselect<Item
|
|
4408
|
+
declare function InlineEditMultiselect<Item>(componentProps: InlineEditMultiselectDataProps<Item>): React.ReactNode;
|
|
4474
4409
|
declare function InlineEditMultiselect(componentProps: InlineEditMultiselectCompoundProps): React.ReactNode;
|
|
4475
4410
|
//#endregion
|
|
4476
4411
|
//#region src/components/inline-edit-select.d.ts
|
|
@@ -4572,16 +4507,16 @@ interface InlineEditSelectBaseProps {
|
|
|
4572
4507
|
* Data-driven mode props. Items are opaque `Item`s read via accessor functions
|
|
4573
4508
|
* (mirrors `DataCombobox`), so the item shape is the consumer's — not a fixed type.
|
|
4574
4509
|
*/
|
|
4575
|
-
interface InlineEditSelectDataProps<Item
|
|
4510
|
+
interface InlineEditSelectDataProps<Item> extends InlineEditSelectBaseProps {
|
|
4576
4511
|
/** The options to show in the dropdown. Mutually exclusive with `children`. */
|
|
4577
|
-
items: Item
|
|
4512
|
+
items: Item[];
|
|
4578
4513
|
/** Extracts the string value/key submitted when an item is selected. */
|
|
4579
|
-
getItemValue: (item: Item
|
|
4514
|
+
getItemValue: (item: Item) => string;
|
|
4580
4515
|
/** Extracts the plain-text label shown in the trigger and (by default) the row. */
|
|
4581
|
-
getItemLabel: (item: Item
|
|
4516
|
+
getItemLabel: (item: Item) => string;
|
|
4582
4517
|
/** Optional rich row content (icon, subtitle, …) for the dropdown. The trigger
|
|
4583
4518
|
* always shows `getItemLabel` (plain text), never `renderItem`. */
|
|
4584
|
-
renderItem?: (item: Item
|
|
4519
|
+
renderItem?: (item: Item) => React.ReactNode;
|
|
4585
4520
|
/** Values (from `getItemValue`) that are non-selectable. */
|
|
4586
4521
|
disabledKeys?: Set<string>;
|
|
4587
4522
|
/** Optional 16 px leading icon. */
|
|
@@ -4607,9 +4542,9 @@ interface InlineEditSelectCompoundProps extends InlineEditSelectBaseProps {
|
|
|
4607
4542
|
children: React.ReactNode;
|
|
4608
4543
|
items?: never;
|
|
4609
4544
|
}
|
|
4610
|
-
type InlineEditSelectProps<Item
|
|
4545
|
+
type InlineEditSelectProps<Item> = InlineEditSelectDataProps<Item> | InlineEditSelectCompoundProps;
|
|
4611
4546
|
declare namespace InlineEditSelect {
|
|
4612
|
-
type Props<Item
|
|
4547
|
+
type Props<Item = unknown> = InlineEditSelectProps<Item>;
|
|
4613
4548
|
}
|
|
4614
4549
|
/**
|
|
4615
4550
|
* An inline-editable single-value select. Picks one option from a popup and
|
|
@@ -4644,19 +4579,28 @@ declare namespace InlineEditSelect {
|
|
|
4644
4579
|
* </InlineEditSelect>
|
|
4645
4580
|
* ```
|
|
4646
4581
|
*/
|
|
4647
|
-
declare function InlineEditSelect<Item
|
|
4582
|
+
declare function InlineEditSelect<Item>(componentProps: InlineEditSelectDataProps<Item>): React.ReactNode;
|
|
4648
4583
|
declare function InlineEditSelect(componentProps: InlineEditSelectCompoundProps): React.ReactNode;
|
|
4649
4584
|
//#endregion
|
|
4650
4585
|
//#region src/components/inline-edit-textarea.d.ts
|
|
4651
4586
|
type InlineEditTextareaOwnProps = {
|
|
4652
|
-
/** Optional 16 px leading icon rendered before the text. */
|
|
4653
|
-
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4587
|
+
/** Optional 16 px leading icon rendered before the text. */
|
|
4588
|
+
prefix?: React.ReactNode;
|
|
4589
|
+
/** When true, renders as static text with no hover/focus affordance. */
|
|
4590
|
+
readOnly?: boolean;
|
|
4591
|
+
/** Marks the field as invalid; drives the destructive border/ring. */
|
|
4592
|
+
'aria-invalid'?: boolean;
|
|
4593
|
+
/** Controlled value. Fires `onValueChange` on every keystroke. */
|
|
4594
|
+
value?: string;
|
|
4595
|
+
/** Uncontrolled initial value. */
|
|
4596
|
+
defaultValue?: string;
|
|
4597
|
+
/** Fired on every keystroke (live, for controlled form-lib usage). */
|
|
4598
|
+
onValueChange?: (value: string) => void;
|
|
4599
|
+
/** Fired on blur or ⌘/Ctrl+Enter with the trimmed value (deferred commit). */
|
|
4600
|
+
onValueCommit?: (value: string) => void;
|
|
4601
|
+
/** Selects all text when the field receives focus. */
|
|
4602
|
+
selectAllOnFocus?: boolean;
|
|
4603
|
+
/** Maximum number of characters allowed. */
|
|
4660
4604
|
maxLength?: number;
|
|
4661
4605
|
};
|
|
4662
4606
|
type InlineEditTextareaNativeProps = Omit<React.ComponentProps<'textarea'>, 'size' | 'prefix' | 'value' | 'defaultValue' | 'onChange'>;
|
|
@@ -4694,7 +4638,7 @@ declare const InlineEditTextarea: React.ForwardRefExoticComponent<Omit<InlineEdi
|
|
|
4694
4638
|
//#region src/components/input.d.ts
|
|
4695
4639
|
declare const inputVariants: (props?: ({
|
|
4696
4640
|
block?: boolean | null | undefined;
|
|
4697
|
-
} &
|
|
4641
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4698
4642
|
/**
|
|
4699
4643
|
* Single-line text field styled to the design system.
|
|
4700
4644
|
*
|
|
@@ -4740,7 +4684,7 @@ declare namespace InputGroup {
|
|
|
4740
4684
|
}
|
|
4741
4685
|
declare const inputGroupAddonVariants: (props?: ({
|
|
4742
4686
|
align?: "inline-end" | "inline-start" | "block-end" | "block-start" | null | undefined;
|
|
4743
|
-
} &
|
|
4687
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4744
4688
|
declare const InputGroupAddon: React.ForwardRefExoticComponent<Omit<InputGroupAddonProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4745
4689
|
interface InputGroupAddonProps extends React.ComponentProps<'div'>, VariantProps<typeof inputGroupAddonVariants> {}
|
|
4746
4690
|
declare namespace InputGroupAddon {
|
|
@@ -4791,7 +4735,9 @@ declare namespace InputGroupTextarea {
|
|
|
4791
4735
|
*/
|
|
4792
4736
|
declare const NumericInput: React.ForwardRefExoticComponent<Omit<NumericInputProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
4793
4737
|
type NumericInputProps = Omit<NumberField.Root.Props, 'prefix'> & {
|
|
4794
|
-
/** Element rendered before the input (inline-start affix). Convenience mode only. @default undefined */
|
|
4738
|
+
/** Element rendered before the input (inline-start affix). Convenience mode only. @default undefined */
|
|
4739
|
+
prefix?: React.ReactNode;
|
|
4740
|
+
/** Element rendered after the input (inline-end affix). Convenience mode only. @default undefined */
|
|
4795
4741
|
suffix?: React.ReactNode;
|
|
4796
4742
|
/**
|
|
4797
4743
|
* Hide the −/+ stepper buttons. Convenience mode only — in compound mode the
|
|
@@ -4880,7 +4826,7 @@ declare const InputOTP: React.ForwardRefExoticComponent<(Omit<Omit<React.InputHT
|
|
|
4880
4826
|
containerClassName?: string;
|
|
4881
4827
|
noScriptCSSFallback?: string | null;
|
|
4882
4828
|
} & {
|
|
4883
|
-
render: (props:
|
|
4829
|
+
render: (props: import("input-otp").RenderProps) => React.ReactNode;
|
|
4884
4830
|
children?: never;
|
|
4885
4831
|
} & React.RefAttributes<HTMLInputElement> & {
|
|
4886
4832
|
containerClassName?: string;
|
|
@@ -4962,9 +4908,9 @@ declare namespace ItemSeparator {
|
|
|
4962
4908
|
type Props = ItemSeparatorProps;
|
|
4963
4909
|
}
|
|
4964
4910
|
declare const itemVariants: (props?: ({
|
|
4965
|
-
variant?: "default" | "
|
|
4911
|
+
variant?: "default" | "muted" | "outline" | null | undefined;
|
|
4966
4912
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
4967
|
-
} &
|
|
4913
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4968
4914
|
/**
|
|
4969
4915
|
* Flexible list-item container laying out media, content, and actions on one row. Renders a `<div>`
|
|
4970
4916
|
* by default (swap the element via `render`). The `variant` (`'default' | 'outline' | 'muted'`) and
|
|
@@ -4987,7 +4933,7 @@ declare namespace Item {
|
|
|
4987
4933
|
}
|
|
4988
4934
|
declare const itemMediaVariants: (props?: ({
|
|
4989
4935
|
variant?: "image" | "default" | "icon" | null | undefined;
|
|
4990
|
-
} &
|
|
4936
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4991
4937
|
/**
|
|
4992
4938
|
* Leading media slot of an `Item` (icon, image, or avatar). Renders a `<div>`. The `variant`
|
|
4993
4939
|
* (`'default' | 'icon' | 'image'`) tunes sizing and styling and defaults to `'default'`.
|
|
@@ -5303,6 +5249,327 @@ declare namespace RadioGroupItem {
|
|
|
5303
5249
|
type Props = RadioGroupItemProps;
|
|
5304
5250
|
}
|
|
5305
5251
|
//#endregion
|
|
5252
|
+
//#region src/components/rich-textarea.d.ts
|
|
5253
|
+
/**
|
|
5254
|
+
* A person that can be `@`-mentioned in {@link RichTextarea}.
|
|
5255
|
+
*/
|
|
5256
|
+
interface MentionOption {
|
|
5257
|
+
/** Stable identifier stored on the inserted node. */
|
|
5258
|
+
id: string;
|
|
5259
|
+
/** Text shown in the menu and in the inserted pill. */
|
|
5260
|
+
label: string;
|
|
5261
|
+
/** Optional avatar image URL rendered in the menu and pill. */
|
|
5262
|
+
avatar?: string;
|
|
5263
|
+
/** DS {@link Chip} color for the mention pill. Defaults to `charcoal`. */
|
|
5264
|
+
color?: Chip.Props['color'];
|
|
5265
|
+
}
|
|
5266
|
+
/**
|
|
5267
|
+
* A `/`-command offered in the {@link RichTextarea} slash menu. Selecting it runs
|
|
5268
|
+
* `onSelect` and inserts no node.
|
|
5269
|
+
*/
|
|
5270
|
+
interface SlashCommandOption {
|
|
5271
|
+
/** Stable identifier and menu key. */
|
|
5272
|
+
id: string;
|
|
5273
|
+
/** Text shown in the menu. */
|
|
5274
|
+
label: string;
|
|
5275
|
+
/** Optional secondary line shown under the label. */
|
|
5276
|
+
description?: string;
|
|
5277
|
+
/** Optional leading icon (consumer-supplied node). */
|
|
5278
|
+
icon?: React.ReactNode;
|
|
5279
|
+
/**
|
|
5280
|
+
* Runs when the command is chosen. Receives the Plate editor.
|
|
5281
|
+
* `editor` is intentionally `any` to honor the component's public contract
|
|
5282
|
+
* without leaking Plate's internal editor type onto consumers.
|
|
5283
|
+
*/
|
|
5284
|
+
onSelect?: (editor: any) => void;
|
|
5285
|
+
}
|
|
5286
|
+
/**
|
|
5287
|
+
* A `#`-tag offered in the {@link RichTextarea} tag menu, rendered as a DS {@link Badge}.
|
|
5288
|
+
*/
|
|
5289
|
+
interface TagOption {
|
|
5290
|
+
/** Stable identifier stored on the inserted node. */
|
|
5291
|
+
id: string;
|
|
5292
|
+
/** Text shown in the menu and in the inserted pill. */
|
|
5293
|
+
label: string;
|
|
5294
|
+
/** DS {@link Badge} color for the tag pill. Defaults to `charcoal`. */
|
|
5295
|
+
color?: Badge.Props['color'];
|
|
5296
|
+
/**
|
|
5297
|
+
* DS {@link Badge} tone (the per-color fill opacity, e.g. `dark` / `light`) paired with
|
|
5298
|
+
* `color`. Ignored when `legacyColor` is set, since that resolves its own color + tone.
|
|
5299
|
+
*/
|
|
5300
|
+
tone?: Badge.Props['tone'];
|
|
5301
|
+
/**
|
|
5302
|
+
* A legacy hard-coded tag hex (e.g. `#0761B5`) from Aircall's predefined tag palette.
|
|
5303
|
+
* Forwarded to the {@link Badge} `legacyColor` prop, which resolves it to a DS `color` + `tone`
|
|
5304
|
+
* (unknown hexes fall back to `charcoal`). Takes precedence over `color`/`tone` - use it to
|
|
5305
|
+
* render existing tags without migrating their stored colors.
|
|
5306
|
+
*/
|
|
5307
|
+
legacyColor?: Badge.Props['legacyColor'];
|
|
5308
|
+
}
|
|
5309
|
+
/**
|
|
5310
|
+
* Async-search + pagination config for {@link RichTextarea} `@mention` / `#tag`
|
|
5311
|
+
* candidates. Pass this object form (instead of a static `T[]`) to source candidates
|
|
5312
|
+
* from a backend: the menu stops filtering client-side and renders `items` verbatim,
|
|
5313
|
+
* calling `onSearch` as the user types and `onFetchMore` as the list scrolls. Prop
|
|
5314
|
+
* names mirror the DS `DataCombobox` / `ComboboxBody` convention.
|
|
5315
|
+
*
|
|
5316
|
+
* @example
|
|
5317
|
+
* ```tsx
|
|
5318
|
+
* <RichTextarea
|
|
5319
|
+
* mentions={{
|
|
5320
|
+
* items: page, // current page of results
|
|
5321
|
+
* onSearch: query => runSearch(query), // you debounce + race-guard
|
|
5322
|
+
* onFetchMore: () => fetchNextPage(),
|
|
5323
|
+
* hasMore,
|
|
5324
|
+
* loadingState // 'loading' | 'filtering' | 'loadingMore'
|
|
5325
|
+
* }}
|
|
5326
|
+
* />
|
|
5327
|
+
* ```
|
|
5328
|
+
*/
|
|
5329
|
+
interface RichTextareaAsyncList<T> {
|
|
5330
|
+
/** The current page of candidates to render (already prepared by the consumer). */
|
|
5331
|
+
items: T[];
|
|
5332
|
+
/**
|
|
5333
|
+
* Fired with the query typed after the trigger (and `''` on clear) so you can fetch
|
|
5334
|
+
* matches. Client-side filtering is disabled in async mode, so results are shown
|
|
5335
|
+
* verbatim - debounce and race-guard (AbortController / request id) this yourself,
|
|
5336
|
+
* as with DS `DataCombobox`.
|
|
5337
|
+
*/
|
|
5338
|
+
onSearch: (query: string) => void;
|
|
5339
|
+
/**
|
|
5340
|
+
* Fired when the list scrolls near the bottom while `hasMore` is `true` - load the
|
|
5341
|
+
* next page and append it to `items`. Omit for a single-page result set.
|
|
5342
|
+
*/
|
|
5343
|
+
onFetchMore?: () => void;
|
|
5344
|
+
/** Whether more pages are available; gates the scroll sentinel. */
|
|
5345
|
+
hasMore?: boolean;
|
|
5346
|
+
/**
|
|
5347
|
+
* Async UI state (reuses the DS {@link ComboboxLoadingState}): `'loading'` shows
|
|
5348
|
+
* skeleton rows on first open; `'filtering'` keeps the previous list mounted while
|
|
5349
|
+
* re-querying (no skeleton flash - keep the previous `items` until results arrive);
|
|
5350
|
+
* `'loadingMore'` appends a spinner row. Omit (or `'idle'`) when not loading.
|
|
5351
|
+
*/
|
|
5352
|
+
loadingState?: ComboboxLoadingState;
|
|
5353
|
+
/**
|
|
5354
|
+
* Number of skeleton rows to show while `loadingState` is `'loading'`.
|
|
5355
|
+
* @default 5
|
|
5356
|
+
*/
|
|
5357
|
+
skeletonCount?: number;
|
|
5358
|
+
}
|
|
5359
|
+
/**
|
|
5360
|
+
* Props for {@link RichTextarea}.
|
|
5361
|
+
*
|
|
5362
|
+
* Note: `value`, the `onValueChange`/`onSubmit` `json`, and `SlashCommandOption.onSelect`
|
|
5363
|
+
* use `any` deliberately — these are the caller-facing contract (plain text or a
|
|
5364
|
+
* Slate JSON AST). Internals are typed against Plate's real `Value`/editor types.
|
|
5365
|
+
*/
|
|
5366
|
+
interface RichTextareaProps {
|
|
5367
|
+
/**
|
|
5368
|
+
* Uncontrolled initial content: plain text, or a Slate JSON AST (array of nodes).
|
|
5369
|
+
*
|
|
5370
|
+
* A plain-text string is split on newlines into paragraphs. When `formatting` is on it is
|
|
5371
|
+
* parsed as Markdown; otherwise, if `mentions`/`tags` are provided, `@label`/`#label`
|
|
5372
|
+
* tokens that exactly match a known option (at a word boundary) are reconstructed into
|
|
5373
|
+
* pills - so a persisted `plainText` value reloads with its pills. This reparse is a
|
|
5374
|
+
* best-effort convenience: plain text cannot distinguish a real pill from literally-typed
|
|
5375
|
+
* `#label` text, so a literal token that happens to match an option becomes a pill. For a
|
|
5376
|
+
* lossless round-trip, persist and pass back the `json` value (array) instead - a JSON AST
|
|
5377
|
+
* is used verbatim, with no token reparsing.
|
|
5378
|
+
*
|
|
5379
|
+
* Named `defaultValue` (like native inputs) because the editor is uncontrolled -
|
|
5380
|
+
* changing it after mount does not update the editor. Drive edits via `onValueChange`.
|
|
5381
|
+
*/
|
|
5382
|
+
defaultValue?: string | any[];
|
|
5383
|
+
/**
|
|
5384
|
+
* Called on every content edit with the serialized value. Fires on real edits only,
|
|
5385
|
+
* not caret/selection moves. `markdown` is present only when `formatting` is on.
|
|
5386
|
+
* Named `onValueChange` (not `onChange`) to match DS value-emitting controls (Combobox,
|
|
5387
|
+
* Select, Stepper) - the argument is a value object, not a DOM change event.
|
|
5388
|
+
*/
|
|
5389
|
+
onValueChange?: (value: {
|
|
5390
|
+
plainText: string;
|
|
5391
|
+
json: any;
|
|
5392
|
+
markdown?: string;
|
|
5393
|
+
}) => void;
|
|
5394
|
+
/** Called when the user submits (see `submitOnEnter`). */
|
|
5395
|
+
onSubmit?: (value: {
|
|
5396
|
+
plainText: string;
|
|
5397
|
+
json: any;
|
|
5398
|
+
markdown?: string;
|
|
5399
|
+
}) => void;
|
|
5400
|
+
/** Placeholder shown while empty. */
|
|
5401
|
+
placeholder?: string;
|
|
5402
|
+
/** Renders read-only and dimmed. */
|
|
5403
|
+
disabled?: boolean;
|
|
5404
|
+
/**
|
|
5405
|
+
* When `true`, Enter submits and Shift+Enter inserts a newline. When `false`,
|
|
5406
|
+
* Enter always inserts a newline.
|
|
5407
|
+
* @default true
|
|
5408
|
+
*/
|
|
5409
|
+
submitOnEnter?: boolean;
|
|
5410
|
+
/**
|
|
5411
|
+
* People that can be `@`-mentioned: a static `MentionOption[]` (filtered
|
|
5412
|
+
* client-side), or a {@link RichTextareaAsyncList} for server-side search + pagination.
|
|
5413
|
+
*/
|
|
5414
|
+
mentions?: MentionOption[] | RichTextareaAsyncList<MentionOption>;
|
|
5415
|
+
/** Commands offered in the `/` menu. */
|
|
5416
|
+
slashCommands?: SlashCommandOption[];
|
|
5417
|
+
/**
|
|
5418
|
+
* Tags offered in the `#` menu: a static `TagOption[]` (filtered client-side),
|
|
5419
|
+
* or a {@link RichTextareaAsyncList} for server-side search + pagination.
|
|
5420
|
+
*/
|
|
5421
|
+
tags?: TagOption[] | RichTextareaAsyncList<TagOption>;
|
|
5422
|
+
/**
|
|
5423
|
+
* Enables marks (bold/italic/underline/strikethrough/code), lists, links, and
|
|
5424
|
+
* Markdown interchange. Links recognize typed/pasted URLs (autolink) and expose a
|
|
5425
|
+
* floating edit/remove card on click; Cmd/Ctrl+K opens the insert form. Compose a
|
|
5426
|
+
* {@link RichTextareaToolbar} to expose the mark/list/link controls. Autolink and
|
|
5427
|
+
* the floating link card only exist when this is on.
|
|
5428
|
+
* @default false
|
|
5429
|
+
*/
|
|
5430
|
+
formatting?: boolean;
|
|
5431
|
+
/**
|
|
5432
|
+
* Shows a floating formatting toolbar over the current text selection, carrying the
|
|
5433
|
+
* same controls as {@link RichTextareaToolbar}. Use it to expose formatting from the
|
|
5434
|
+
* all-in-one {@link RichTextarea} / `InputGroupRichTextarea`, which have no slot for a
|
|
5435
|
+
* static toolbar; it can also sit alongside one in a composed layout.
|
|
5436
|
+
*
|
|
5437
|
+
* Requires `formatting` - a no-op without it, since there is nothing to format. Like
|
|
5438
|
+
* `formatting`, it is read once at mount; toggling it later has no effect.
|
|
5439
|
+
* @default false
|
|
5440
|
+
*/
|
|
5441
|
+
floatingToolbar?: boolean;
|
|
5442
|
+
/**
|
|
5443
|
+
* Renders without its own border, background, shadow, and focus ring so it can
|
|
5444
|
+
* act as the borderless control inside an `InputGroup` (see `InputGroupRichTextarea`).
|
|
5445
|
+
* The `InputGroup` shell then owns the border/ring; place `InputGroupAddon`s around
|
|
5446
|
+
* it to build a composer (attachments, toolbar).
|
|
5447
|
+
* @default false
|
|
5448
|
+
*/
|
|
5449
|
+
bare?: boolean;
|
|
5450
|
+
/** Accessible name for the editor (the placeholder is not a label). */
|
|
5451
|
+
'aria-label'?: string;
|
|
5452
|
+
/** Extra classes for the outer container. */
|
|
5453
|
+
className?: string;
|
|
5454
|
+
}
|
|
5455
|
+
/** Props for {@link RichTextareaRoot} — the editor config plus composed children. */
|
|
5456
|
+
interface RichTextareaRootProps extends Omit<RichTextareaProps, 'bare' | 'className'> {
|
|
5457
|
+
/** The composed layout (e.g. an `InputGroup` with a toolbar and `RichTextareaContent`). */
|
|
5458
|
+
children: React.ReactNode;
|
|
5459
|
+
}
|
|
5460
|
+
/**
|
|
5461
|
+
* Owns the editor and the `<Plate>` provider for a composed RichTextarea. Renders no
|
|
5462
|
+
* DOM of its own — wrap your layout as children so a sibling {@link RichTextareaToolbar}
|
|
5463
|
+
* (which must live inside the Plate provider) can control the editor. For the simple,
|
|
5464
|
+
* all-in-one case use {@link RichTextarea} instead.
|
|
5465
|
+
*
|
|
5466
|
+
* @example
|
|
5467
|
+
* ```tsx
|
|
5468
|
+
* <RichTextareaRoot formatting mentions={mentions} onValueChange={handleChange}>
|
|
5469
|
+
* <InputGroup>
|
|
5470
|
+
* <InputGroupAddon align="block-start"><RichTextareaToolbar /></InputGroupAddon>
|
|
5471
|
+
* <RichTextareaContent bare />
|
|
5472
|
+
* </InputGroup>
|
|
5473
|
+
* </RichTextareaRoot>
|
|
5474
|
+
* ```
|
|
5475
|
+
*/
|
|
5476
|
+
declare function RichTextareaRoot(componentProps: RichTextareaRoot.Props): React.JSX.Element;
|
|
5477
|
+
declare namespace RichTextareaRoot {
|
|
5478
|
+
var displayName: string;
|
|
5479
|
+
}
|
|
5480
|
+
declare namespace RichTextareaRoot {
|
|
5481
|
+
type Props = RichTextareaRootProps;
|
|
5482
|
+
}
|
|
5483
|
+
/** Props for {@link RichTextareaContent}. */
|
|
5484
|
+
interface RichTextareaContentProps {
|
|
5485
|
+
/**
|
|
5486
|
+
* Renders borderless (no border/background/shadow/ring) so the surrounding
|
|
5487
|
+
* `InputGroup` shell owns the chrome. @default false
|
|
5488
|
+
*/
|
|
5489
|
+
bare?: boolean;
|
|
5490
|
+
/** Accessible name for the editor (the placeholder is not a label). */
|
|
5491
|
+
'aria-label'?: string;
|
|
5492
|
+
/** Extra classes for the editable container. */
|
|
5493
|
+
className?: string;
|
|
5494
|
+
}
|
|
5495
|
+
/**
|
|
5496
|
+
* The editable surface of a composed RichTextarea. Must render inside a
|
|
5497
|
+
* {@link RichTextareaRoot}. Use `bare` when placing it inside an `InputGroup`.
|
|
5498
|
+
*/
|
|
5499
|
+
declare const RichTextareaContent: React.ForwardRefExoticComponent<RichTextareaContentProps & React.RefAttributes<HTMLDivElement>>;
|
|
5500
|
+
declare namespace RichTextareaContent {
|
|
5501
|
+
type Props = RichTextareaContentProps;
|
|
5502
|
+
}
|
|
5503
|
+
/**
|
|
5504
|
+
* Chat/comment-style rich input built on Plate.js, styled to match the DS
|
|
5505
|
+
* `Textarea`. Supports `@mention` autocomplete, `#tag` colored pills, and
|
|
5506
|
+
* `/slash` command menus. Enter submits (configurable); Shift+Enter adds a newline.
|
|
5507
|
+
*
|
|
5508
|
+
* All-in-one wrapper around {@link RichTextareaRoot} + {@link RichTextareaContent};
|
|
5509
|
+
* for a consumer-composed toolbar, use those directly.
|
|
5510
|
+
*
|
|
5511
|
+
* @example
|
|
5512
|
+
* ```tsx
|
|
5513
|
+
* <RichTextarea
|
|
5514
|
+
* placeholder="Leave a comment…"
|
|
5515
|
+
* mentions={[{ id: '1', label: 'Ada Lovelace' }]}
|
|
5516
|
+
* onSubmit={({ plainText }) => console.log(plainText)}
|
|
5517
|
+
* />
|
|
5518
|
+
* ```
|
|
5519
|
+
*/
|
|
5520
|
+
declare const RichTextarea: React.ForwardRefExoticComponent<RichTextareaProps & React.RefAttributes<HTMLDivElement>>;
|
|
5521
|
+
declare namespace RichTextarea {
|
|
5522
|
+
type Props = RichTextareaProps;
|
|
5523
|
+
}
|
|
5524
|
+
/**
|
|
5525
|
+
* `RichTextarea` pre-configured as the borderless control inside an `InputGroup`
|
|
5526
|
+
* (the `bare` variant). Compose `InputGroupAddon`s around it — e.g. an attachments
|
|
5527
|
+
* row (`align="block-start"`) and a toolbar (`align="block-end"`) — to build a
|
|
5528
|
+
* chat/agent composer. Lives here (not in `input-group.tsx`) so Plate.js stays out
|
|
5529
|
+
* of `InputGroup`'s import graph.
|
|
5530
|
+
*
|
|
5531
|
+
* @example
|
|
5532
|
+
* ```tsx
|
|
5533
|
+
* <InputGroup>
|
|
5534
|
+
* <InputGroupAddon align="block-start">…attachments…</InputGroupAddon>
|
|
5535
|
+
* <InputGroupRichTextarea mentions={mentions} placeholder="Ask anything…" />
|
|
5536
|
+
* <InputGroupAddon align="block-end">…toolbar…</InputGroupAddon>
|
|
5537
|
+
* </InputGroup>
|
|
5538
|
+
* ```
|
|
5539
|
+
*/
|
|
5540
|
+
declare const InputGroupRichTextarea: React.ForwardRefExoticComponent<InputGroupRichTextareaProps & React.RefAttributes<HTMLDivElement>>;
|
|
5541
|
+
/** Props for {@link InputGroupRichTextarea} — same as {@link RichTextarea} minus `bare` (always on). */
|
|
5542
|
+
interface InputGroupRichTextareaProps extends Omit<RichTextareaProps, 'bare'> {}
|
|
5543
|
+
declare namespace InputGroupRichTextarea {
|
|
5544
|
+
type Props = InputGroupRichTextareaProps;
|
|
5545
|
+
}
|
|
5546
|
+
//#endregion
|
|
5547
|
+
//#region src/components/rich-textarea-toolbar.d.ts
|
|
5548
|
+
/** Props for {@link RichTextareaToolbar}. */
|
|
5549
|
+
interface RichTextareaToolbarProps extends React.ComponentProps<'div'> {}
|
|
5550
|
+
/**
|
|
5551
|
+
* Formatting toolbar for a {@link RichTextareaRoot} with `formatting`. Renders DS
|
|
5552
|
+
* `Toggle`s wired to the editor: bold / italic / underline / strikethrough / inline
|
|
5553
|
+
* code, bulleted / numbered lists, and a link button that opens the floating link
|
|
5554
|
+
* card (the same card shown on click / Cmd+K). Must render inside a
|
|
5555
|
+
* `RichTextareaRoot` (it reads the editor from the Plate provider) — typically in an
|
|
5556
|
+
* `InputGroupAddon align="block-start"`.
|
|
5557
|
+
*
|
|
5558
|
+
* @example
|
|
5559
|
+
* ```tsx
|
|
5560
|
+
* <RichTextareaRoot formatting>
|
|
5561
|
+
* <InputGroup>
|
|
5562
|
+
* <InputGroupAddon align="block-start"><RichTextareaToolbar /></InputGroupAddon>
|
|
5563
|
+
* <RichTextareaContent bare />
|
|
5564
|
+
* </InputGroup>
|
|
5565
|
+
* </RichTextareaRoot>
|
|
5566
|
+
* ```
|
|
5567
|
+
*/
|
|
5568
|
+
declare const RichTextareaToolbar: React.ForwardRefExoticComponent<Omit<RichTextareaToolbarProps, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
5569
|
+
declare namespace RichTextareaToolbar {
|
|
5570
|
+
type Props = RichTextareaToolbarProps;
|
|
5571
|
+
}
|
|
5572
|
+
//#endregion
|
|
5306
5573
|
//#region src/components/scroll-area.d.ts
|
|
5307
5574
|
/**
|
|
5308
5575
|
* Custom-scrollbar container. Renders the Base UI `ScrollArea.Root` `<div>`
|
|
@@ -5346,7 +5613,7 @@ declare namespace ScrollBar {
|
|
|
5346
5613
|
/** `class-variance-authority` variants for the select trigger; exposes the `size` variant. */
|
|
5347
5614
|
declare const selectTriggerVariants: (props?: ({
|
|
5348
5615
|
size?: "default" | "sm" | null | undefined;
|
|
5349
|
-
} &
|
|
5616
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5350
5617
|
/**
|
|
5351
5618
|
* Root of the select, aliasing Base UI's `Select.Root`. Manages open state and the selected value,
|
|
5352
5619
|
* and renders no DOM element — place `SelectTrigger` and `SelectContent` inside it.
|
|
@@ -5854,7 +6121,7 @@ declare namespace SidebarMenuItem {
|
|
|
5854
6121
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
5855
6122
|
variant?: "default" | "outline" | null | undefined;
|
|
5856
6123
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
5857
|
-
} &
|
|
6124
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5858
6125
|
/**
|
|
5859
6126
|
* Primary clickable row inside a menu item, with variant/size styles and an
|
|
5860
6127
|
* optional tooltip shown only when collapsed. Renders a `<button>` by default,
|
|
@@ -6011,7 +6278,7 @@ declare namespace Toaster {
|
|
|
6011
6278
|
/** Class variants for `Spinner`, controlling its `size` (`default`, `sm`, `lg`, `xl`). */
|
|
6012
6279
|
declare const spinnerVariants: (props?: ({
|
|
6013
6280
|
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
6014
|
-
} &
|
|
6281
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6015
6282
|
/**
|
|
6016
6283
|
* Animated loading indicator. Renders a spinning `<svg>` (Loader icon) with
|
|
6017
6284
|
* `role="status"` and a localized `aria-label` for assistive technology.
|
|
@@ -6329,7 +6596,7 @@ declare const toggleVariants: (props?: ({
|
|
|
6329
6596
|
variant?: "default" | "outline" | null | undefined;
|
|
6330
6597
|
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6331
6598
|
pressedColor?: "highContrast" | "lowContrast" | null | undefined;
|
|
6332
|
-
} &
|
|
6599
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6333
6600
|
/**
|
|
6334
6601
|
* A two-state button that can be pressed on or off, wrapping Base UI's `Toggle`.
|
|
6335
6602
|
* Renders a `<button aria-pressed>` styled via {@link toggleVariants}.
|
|
@@ -6409,12 +6676,7 @@ declare namespace Tree {
|
|
|
6409
6676
|
* );
|
|
6410
6677
|
* ```
|
|
6411
6678
|
*/
|
|
6412
|
-
declare function Tree({
|
|
6413
|
-
indent,
|
|
6414
|
-
tree,
|
|
6415
|
-
className,
|
|
6416
|
-
...props
|
|
6417
|
-
}: Tree.Props): React.JSX.Element;
|
|
6679
|
+
declare function Tree({ indent, tree, className, ...props }: Tree.Props): React.JSX.Element;
|
|
6418
6680
|
interface TreeItemProps<T = any> extends React.HTMLAttributes<HTMLDivElement> {
|
|
6419
6681
|
/** The item instance from `tree.getItems()`. */
|
|
6420
6682
|
item: ItemInstance<T>;
|
|
@@ -6437,16 +6699,7 @@ declare namespace TreeItem {
|
|
|
6437
6699
|
* leading control (e.g. a selection `Checkbox`) shares the row's hover/selected
|
|
6438
6700
|
* highlight; drives activation for both mouse and keyboard.
|
|
6439
6701
|
*/
|
|
6440
|
-
declare function TreeItem<T = any>({
|
|
6441
|
-
item,
|
|
6442
|
-
className,
|
|
6443
|
-
children,
|
|
6444
|
-
onActivate,
|
|
6445
|
-
onClick: userOnClick,
|
|
6446
|
-
onKeyDown: userOnKeyDown,
|
|
6447
|
-
style: userStyle,
|
|
6448
|
-
...props
|
|
6449
|
-
}: TreeItem.Props<T>): React.JSX.Element;
|
|
6702
|
+
declare function TreeItem<T = any>({ item, className, children, onActivate, onClick: userOnClick, onKeyDown: userOnKeyDown, style: userStyle, ...props }: TreeItem.Props<T>): React.JSX.Element;
|
|
6450
6703
|
interface TreeItemLabelProps<T = any> extends React.HTMLAttributes<HTMLSpanElement> {
|
|
6451
6704
|
/** Item to label. Falls back to the current `TreeItem` from context. */
|
|
6452
6705
|
item?: ItemInstance<T>;
|
|
@@ -6459,12 +6712,7 @@ declare namespace TreeItemLabel {
|
|
|
6459
6712
|
* button for folders (or an aligned spacer for leaves) followed by the label
|
|
6460
6713
|
* content, falling back to the item's name.
|
|
6461
6714
|
*/
|
|
6462
|
-
declare function TreeItemLabel<T = any>({
|
|
6463
|
-
item: propItem,
|
|
6464
|
-
children,
|
|
6465
|
-
className,
|
|
6466
|
-
...props
|
|
6467
|
-
}: TreeItemLabel.Props<T>): React.JSX.Element | null;
|
|
6715
|
+
declare function TreeItemLabel<T = any>({ item: propItem, children, className, ...props }: TreeItemLabel.Props<T>): React.JSX.Element | null;
|
|
6468
6716
|
interface TreeDragLineProps extends React.HTMLAttributes<HTMLDivElement> {}
|
|
6469
6717
|
declare namespace TreeDragLine {
|
|
6470
6718
|
type Props = TreeDragLineProps;
|
|
@@ -6473,10 +6721,7 @@ declare namespace TreeDragLine {
|
|
|
6473
6721
|
* Drag-and-drop drop indicator. Renders a positioned `<div>` line using the
|
|
6474
6722
|
* tree instance's `getDragLineStyle()`; renders nothing when no tree is in context.
|
|
6475
6723
|
*/
|
|
6476
|
-
declare function TreeDragLine({
|
|
6477
|
-
className,
|
|
6478
|
-
...props
|
|
6479
|
-
}: TreeDragLine.Props): React.JSX.Element | null;
|
|
6724
|
+
declare function TreeDragLine({ className, ...props }: TreeDragLine.Props): React.JSX.Element | null;
|
|
6480
6725
|
//#endregion
|
|
6481
6726
|
//#region src/components/ds-i18n-provider.d.ts
|
|
6482
6727
|
/** Minimal shape of an i18next-like instance — structural to avoid coupling to a version. */
|
|
@@ -6543,7 +6788,7 @@ declare function useDsLocale(): string;
|
|
|
6543
6788
|
//#endregion
|
|
6544
6789
|
//#region src/i18n/keys.d.ts
|
|
6545
6790
|
/** All translation keys owned by the `ds` namespace. Flat dotted keys (keySeparator: false). */
|
|
6546
|
-
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' | 'fieldLabel.required' | 'fieldLabel.optional' | 'fieldLabel.moreInfo' | 'datePicker.beforeMin' | 'datePicker.afterMax' | 'datePicker.unavailable' | 'datePicker.rangeOrder';
|
|
6791
|
+
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' | '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';
|
|
6547
6792
|
/** A complete set of translations for one language. Missing a key is a compile error. */
|
|
6548
6793
|
type DsLocale = Record<DsI18nKey, string>;
|
|
6549
6794
|
//#endregion
|
|
@@ -6605,4 +6850,4 @@ declare function useAudioGauge(options?: UseAudioGaugeOptions): UseAudioGaugeRes
|
|
|
6605
6850
|
//#region src/lib/utils.d.ts
|
|
6606
6851
|
declare function cn(...inputs: ClassValue[]): string;
|
|
6607
6852
|
//#endregion
|
|
6608
|
-
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, 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, 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, PopoverClose, 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, isInsideCalendarDropdown, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
|
|
6853
|
+
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, 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, 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 };
|