@umami/react-zen 0.252.0 → 0.253.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,14 +1,15 @@
1
1
  import * as react_jsx_runtime from 'react/jsx-runtime';
2
2
  import { Accordion as Accordion$1 } from '@base-ui/react/accordion';
3
3
  import * as react from 'react';
4
- import { ReactNode, HTMLAttributes, ReactElement, CSSProperties, LiHTMLAttributes, MouseEvent, ComponentProps, Key, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, RefObject } from 'react';
4
+ import { ReactNode, HTMLAttributes, ReactElement, CSSProperties, LiHTMLAttributes, ComponentProps, MouseEvent, Key, TableHTMLAttributes, TdHTMLAttributes, ThHTMLAttributes, ButtonHTMLAttributes, FieldsetHTMLAttributes, InputHTMLAttributes, TextareaHTMLAttributes, LabelHTMLAttributes, RefObject } from 'react';
5
5
  import * as tailwind_variants from 'tailwind-variants';
6
6
  import { VariantProps } from 'tailwind-variants';
7
+ import { AlertDialog as AlertDialog$1 } from '@base-ui/react/alert-dialog';
7
8
  import { Autocomplete as Autocomplete$1 } from '@base-ui/react/autocomplete';
8
9
  import { Avatar as Avatar$1 } from '@base-ui/react/avatar';
9
10
  import { ButtonProps as ButtonProps$1 } from '@base-ui/react/button';
10
11
  import { Separator as Separator$1 } from '@base-ui/react/separator';
11
- import { DayPicker } from 'react-day-picker';
12
+ import { DayPicker, DateRange, DayButton } from 'react-day-picker';
12
13
  import useEmblaCarousel from 'embla-carousel-react';
13
14
  import { CheckboxRoot } from '@base-ui/react/checkbox';
14
15
  import { CheckboxGroup as CheckboxGroup$1 } from '@base-ui/react/checkbox-group';
@@ -16,11 +17,13 @@ import { Collapsible as Collapsible$1 } from '@base-ui/react/collapsible';
16
17
  import { Combobox } from '@base-ui/react/combobox';
17
18
  import { Select as Select$1 } from '@base-ui/react/select';
18
19
  import { Command as Command$1 } from 'cmdk';
20
+ import { ContextMenu as ContextMenu$1 } from '@base-ui/react/context-menu';
21
+ import { Menu as Menu$1 } from '@base-ui/react/menu';
19
22
  import { Drawer as Drawer$1 } from '@base-ui/react/drawer';
23
+ import { Field as Field$1 } from '@base-ui/react/field';
20
24
  import { Tooltip as Tooltip$1 } from '@base-ui/react/tooltip';
21
25
  import { UseFormProps, SubmitHandler, UseFormReturn, ControllerProps, ControllerRenderProps, FieldValues, ControllerFieldState, UseFormStateReturn, RegisterOptions } from 'react-hook-form';
22
26
  import * as zustand from 'zustand';
23
- import { Menu as Menu$1 } from '@base-ui/react/menu';
24
27
  import { Menubar as Menubar$1 } from '@base-ui/react/menubar';
25
28
  import { Meter as Meter$1 } from '@base-ui/react/meter';
26
29
  import { Dialog as Dialog$1 } from '@base-ui/react/dialog';
@@ -29,7 +32,7 @@ import { NumberField as NumberField$1 } from '@base-ui/react/number-field';
29
32
  import { OTPField as OTPField$1 } from '@base-ui/react/otp-field';
30
33
  import { Popover as Popover$1 } from '@base-ui/react/popover';
31
34
  import { PreviewCard as PreviewCard$1 } from '@base-ui/react/preview-card';
32
- import { ProgressRoot } from '@base-ui/react/progress';
35
+ import { ProgressRoot, Progress } from '@base-ui/react/progress';
33
36
  import { RadioRoot } from '@base-ui/react/radio';
34
37
  import { RadioGroupProps as RadioGroupProps$1 } from '@base-ui/react/radio-group';
35
38
  import { SeparatorProps as SeparatorProps$1, PanelProps, GroupProps } from 'react-resizable-panels';
@@ -41,6 +44,8 @@ import { ToggleProps as ToggleProps$1 } from '@base-ui/react/toggle';
41
44
  import { ToggleGroupProps as ToggleGroupProps$1 } from '@base-ui/react/toggle-group';
42
45
  import { Toolbar as Toolbar$1 } from '@base-ui/react/toolbar';
43
46
  export { cn } from 'cn';
47
+ export { mergeProps } from '@base-ui/react/merge-props';
48
+ export { useRender } from '@base-ui/react/use-render';
44
49
 
45
50
  interface AccordionProps extends Omit<Accordion$1.Root.Props<string>, 'value' | 'defaultValue' | 'multiple' | 'onValueChange'> {
46
51
  type?: 'single' | 'multiple';
@@ -57,6 +62,17 @@ interface AccordionItemProps extends Omit<Accordion$1.Item.Props, 'value' | 'dis
57
62
  isDisabled?: boolean;
58
63
  }
59
64
  declare function Accordion({ className, children, type, allowsMultipleExpanded, expandedKeys, defaultExpandedKeys, onExpandedChange, ...props }: AccordionProps): react_jsx_runtime.JSX.Element;
65
+ interface AccordionTriggerProps extends Accordion$1.Trigger.Props {
66
+ children?: ReactNode;
67
+ }
68
+ /** Renders an accordion header + trigger with a chevron affordance. */
69
+ declare function AccordionTrigger({ className, children, ...props }: AccordionTriggerProps): react_jsx_runtime.JSX.Element;
70
+ interface AccordionPanelProps extends Accordion$1.Panel.Props {
71
+ children?: ReactNode;
72
+ }
73
+ declare function AccordionPanel({ className, children, ...props }: AccordionPanelProps): react_jsx_runtime.JSX.Element;
74
+ /** Alias of `AccordionPanel` matching the shadcn naming. */
75
+ declare const AccordionContent: typeof AccordionPanel;
60
76
  declare function AccordionItem({ id, value, isDisabled, className, children, ...props }: AccordionItemProps): react_jsx_runtime.JSX.Element;
61
77
 
62
78
  declare const button: tailwind_variants.TVReturnType<{
@@ -66,6 +82,7 @@ declare const button: tailwind_variants.TVReturnType<{
66
82
  outline: string[];
67
83
  quiet: string[];
68
84
  danger: string[];
85
+ link: string[];
69
86
  zero: string[];
70
87
  };
71
88
  size: {
@@ -74,6 +91,10 @@ declare const button: tailwind_variants.TVReturnType<{
74
91
  md: string;
75
92
  lg: string;
76
93
  xl: string;
94
+ icon: string;
95
+ 'icon-xs': string;
96
+ 'icon-sm': string;
97
+ 'icon-lg': string;
77
98
  };
78
99
  }, undefined, string[], {
79
100
  variant: {
@@ -82,6 +103,7 @@ declare const button: tailwind_variants.TVReturnType<{
82
103
  outline: string[];
83
104
  quiet: string[];
84
105
  danger: string[];
106
+ link: string[];
85
107
  zero: string[];
86
108
  };
87
109
  size: {
@@ -90,6 +112,10 @@ declare const button: tailwind_variants.TVReturnType<{
90
112
  md: string;
91
113
  lg: string;
92
114
  xl: string;
115
+ icon: string;
116
+ 'icon-xs': string;
117
+ 'icon-sm': string;
118
+ 'icon-lg': string;
93
119
  };
94
120
  }, undefined, tailwind_variants.TVReturnType<{
95
121
  variant: {
@@ -98,6 +124,7 @@ declare const button: tailwind_variants.TVReturnType<{
98
124
  outline: string[];
99
125
  quiet: string[];
100
126
  danger: string[];
127
+ link: string[];
101
128
  zero: string[];
102
129
  };
103
130
  size: {
@@ -106,6 +133,10 @@ declare const button: tailwind_variants.TVReturnType<{
106
133
  md: string;
107
134
  lg: string;
108
135
  xl: string;
136
+ icon: string;
137
+ 'icon-xs': string;
138
+ 'icon-sm': string;
139
+ 'icon-lg': string;
109
140
  };
110
141
  }, undefined, string[], unknown, unknown, undefined>>;
111
142
  type ButtonVariants = VariantProps<typeof button>;
@@ -413,8 +444,9 @@ interface DialogRenderProps {
413
444
  interface DialogProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title' | 'children'> {
414
445
  children?: ReactNode | ((props: DialogRenderProps) => ReactNode);
415
446
  title?: ReactNode;
447
+ description?: ReactNode;
416
448
  }
417
- declare function Dialog({ title, children, className, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
449
+ declare function Dialog({ title, description, children, className, ...props }: DialogProps): react_jsx_runtime.JSX.Element;
418
450
 
419
451
  interface AlertDialogProps extends DialogProps {
420
452
  title?: ReactNode;
@@ -423,10 +455,24 @@ interface AlertDialogProps extends DialogProps {
423
455
  isConfirmDisabled?: boolean;
424
456
  confirmLabel?: ReactNode;
425
457
  cancelLabel?: ReactNode;
426
- onConfirm?: () => void;
458
+ /** Called on confirm. When it returns a promise the dialog stays open until it resolves. */
459
+ onConfirm?: () => unknown;
427
460
  onCancel?: () => void;
428
461
  }
429
462
  declare function AlertDialog({ title, description, isDanger, isConfirmDisabled, confirmLabel, cancelLabel, onConfirm, onCancel, className, children, ...props }: AlertDialogProps): react_jsx_runtime.JSX.Element;
463
+ /** Explicit, shadcn-style parts. */
464
+ interface AlertDialogTitleProps extends AlertDialog$1.Title.Props {
465
+ }
466
+ declare function AlertDialogTitle({ className, ...props }: AlertDialogTitleProps): react_jsx_runtime.JSX.Element;
467
+ interface AlertDialogDescriptionProps extends AlertDialog$1.Description.Props {
468
+ }
469
+ declare function AlertDialogDescription({ className, ...props }: AlertDialogDescriptionProps): react_jsx_runtime.JSX.Element;
470
+ interface AlertDialogCancelProps extends AlertDialog$1.Close.Props {
471
+ }
472
+ declare function AlertDialogCancel({ render, ...props }: AlertDialogCancelProps): react_jsx_runtime.JSX.Element;
473
+ interface AlertDialogActionProps extends AlertDialog$1.Close.Props {
474
+ }
475
+ declare function AlertDialogAction({ render, ...props }: AlertDialogActionProps): react_jsx_runtime.JSX.Element;
430
476
 
431
477
  interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {
432
478
  ratio?: number;
@@ -437,8 +483,16 @@ interface AutocompleteProps extends Omit<Autocomplete$1.Root.Props<string>, 'chi
437
483
  items: readonly string[];
438
484
  label?: ReactNode;
439
485
  placeholder?: string;
486
+ /** Compat alias for the Base UI `disabled` prop. */
440
487
  isDisabled?: boolean;
488
+ /**
489
+ * Called with the new input value after Base UI's own `onValueChange` handler runs,
490
+ * and only when the change was not canceled. Use `onValueChange` instead when you
491
+ * need the raw Base UI event details (including canceled changes).
492
+ */
441
493
  onChange?: (value: string) => void;
494
+ /** Shows a clear button (`Autocomplete.Clear`) while the input has a value. */
495
+ showClear?: boolean;
442
496
  className?: string;
443
497
  inputProps?: Autocomplete$1.Input.Props;
444
498
  positionerProps?: Autocomplete$1.Positioner.Props;
@@ -454,12 +508,57 @@ interface AvatarProps extends Avatar$1.Root.Props {
454
508
  size?: AvatarVariants['size'];
455
509
  }
456
510
  declare function Avatar({ src, alt, fallback, size, className, children, ...props }: AvatarProps): react_jsx_runtime.JSX.Element;
511
+ interface AvatarImageProps extends Avatar$1.Image.Props {
512
+ }
513
+ declare function AvatarImage({ className, ...props }: AvatarImageProps): react_jsx_runtime.JSX.Element;
514
+ interface AvatarFallbackProps extends Avatar$1.Fallback.Props {
515
+ }
516
+ declare function AvatarFallback({ className, ...props }: AvatarFallbackProps): react_jsx_runtime.JSX.Element;
517
+ interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
518
+ }
519
+ /** Overlapping stack of `Avatar`s. */
520
+ declare function AvatarGroup({ className, ...props }: AvatarGroupProps): react_jsx_runtime.JSX.Element;
521
+
522
+ /**
523
+ * A Base UI compatible `render` prop.
524
+ *
525
+ * Either a React element that the component composes with, or a function that
526
+ * receives the resolved props and the component state and returns an element.
527
+ */
528
+ type RenderProp<P = Record<string, unknown>, S = Record<string, unknown>> = ReactElement | ((props: P, state: S) => ReactElement);
529
+ /**
530
+ * Resolves a render prop to a React element.
531
+ *
532
+ * Prop merging is delegated to Base UI's `mergeProps` so that event handlers are
533
+ * chained, `style` objects are merged and `className` strings are joined instead
534
+ * of the render element blindly overwriting the component's own props.
535
+ *
536
+ * @param render - Either a React element or a function that returns one
537
+ * @param props - Props to merge/pass to the render prop
538
+ * @param defaultElement - Fallback element if render is not provided
539
+ * @returns The resolved React element
540
+ *
541
+ * @example
542
+ * // Element form - props are merged onto the element
543
+ * <Button render={<a href="/foo" />}>Click</Button>
544
+ *
545
+ * // Function form - you control prop spreading
546
+ * <Button render={(props) => <a {...props} href="/foo">Click</a>} />
547
+ */
548
+ declare function resolveRender<P extends Record<string, unknown>, S = Record<string, unknown>>(render: RenderProp<P, S> | undefined, props: P, defaultElement: ReactElement, state?: S): ReactElement;
457
549
 
550
+ interface BadgeRenderProps {
551
+ className: string;
552
+ children?: ReactNode;
553
+ [key: string]: unknown;
554
+ }
458
555
  interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
459
556
  variant?: BadgeVariants['variant'];
460
557
  size?: BadgeVariants['size'];
558
+ /** Replace the rendered element, e.g. `render={<a href="/x" />}`. */
559
+ render?: RenderProp<BadgeRenderProps>;
461
560
  }
462
- declare function Badge({ variant, size, className, children, ...props }: BadgeProps): react_jsx_runtime.JSX.Element;
561
+ declare function Badge({ variant, size, render, className, children, ...props }: BadgeProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
463
562
 
464
563
  declare const Breakpoints: readonly ["base", "sm", "md", "lg", "xl", "2xl"];
465
564
  type Breakpoint$1 = (typeof Breakpoints)[number];
@@ -538,24 +637,6 @@ interface StateStyles {
538
637
  opacity?: Opacity;
539
638
  }
540
639
 
541
- type RenderProp<P = Record<string, unknown>> = ReactElement | ((props: P) => ReactElement);
542
- /**
543
- * Resolves a render prop to a React element.
544
- *
545
- * @param render - Either a React element or a function that returns one
546
- * @param props - Props to merge/pass to the render prop
547
- * @param defaultElement - Fallback element if render is not provided
548
- * @returns The resolved React element
549
- *
550
- * @example
551
- * // Element form - props are merged onto the element
552
- * <Button render={<a href="/foo" />}>Click</Button>
553
- *
554
- * // Function form - you control prop spreading
555
- * <Button render={(props) => <a {...props} href="/foo">Click</a>} />
556
- */
557
- declare function resolveRender<P extends Record<string, unknown>>(render: RenderProp<P> | undefined, props: P, defaultElement: ReactElement): ReactElement;
558
-
559
640
  interface TextProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
560
641
  color?: FontColor;
561
642
  size?: Responsive$1<FontSize>;
@@ -663,17 +744,52 @@ interface BoxRenderProps {
663
744
  }
664
745
  declare const Box: react.ForwardRefExoticComponent<BoxProps & react.RefAttributes<HTMLElement>>;
665
746
 
666
- interface BreadcrumbsProps extends HTMLAttributes<HTMLOListElement> {
747
+ interface BreadcrumbListProps extends HTMLAttributes<HTMLOListElement> {
748
+ }
749
+ declare function BreadcrumbList({ className, ...props }: BreadcrumbListProps): react_jsx_runtime.JSX.Element;
750
+ interface BreadcrumbItemProps extends LiHTMLAttributes<HTMLLIElement> {
751
+ }
752
+ declare function BreadcrumbItem({ className, ...props }: BreadcrumbItemProps): react_jsx_runtime.JSX.Element;
753
+ interface BreadcrumbLinkRenderProps {
754
+ className: string;
755
+ children?: ReactNode;
756
+ [key: string]: unknown;
757
+ }
758
+ interface BreadcrumbLinkProps extends ComponentProps<'a'> {
759
+ render?: RenderProp<BreadcrumbLinkRenderProps>;
760
+ }
761
+ declare function BreadcrumbLink({ className, render, children, ...props }: BreadcrumbLinkProps): react.ReactElement<unknown, string | react.JSXElementConstructor<any>>;
762
+ interface BreadcrumbPageProps extends HTMLAttributes<HTMLSpanElement> {
763
+ }
764
+ declare function BreadcrumbPage({ className, ...props }: BreadcrumbPageProps): react_jsx_runtime.JSX.Element;
765
+ interface BreadcrumbSeparatorProps extends LiHTMLAttributes<HTMLLIElement> {
766
+ }
767
+ declare function BreadcrumbSeparator({ children, className, ...props }: BreadcrumbSeparatorProps): react_jsx_runtime.JSX.Element;
768
+ interface BreadcrumbEllipsisProps extends HTMLAttributes<HTMLSpanElement> {
769
+ }
770
+ declare function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps): react_jsx_runtime.JSX.Element;
771
+ interface BreadcrumbsProps extends Omit<HTMLAttributes<HTMLElement>, 'children'> {
667
772
  isDisabled?: boolean;
773
+ children?: ReactNode;
774
+ /** Content rendered between items. Defaults to a chevron. */
775
+ separator?: ReactNode;
668
776
  }
669
777
  interface BreadcrumbProps extends LiHTMLAttributes<HTMLLIElement> {
670
778
  isDisabled?: boolean;
671
779
  }
672
- declare function Breadcrumbs({ children, className, isDisabled, ...props }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
780
+ /**
781
+ * Convenience wrapper that renders a `<nav>` + `BreadcrumbList` and inserts a
782
+ * `BreadcrumbSeparator` between each child instead of inside of them.
783
+ */
784
+ declare function Breadcrumbs({ children, className, isDisabled, separator, ...props }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
673
785
  declare function Breadcrumb({ children, className, isDisabled, ...props }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
674
786
 
675
787
  interface ButtonProps extends Omit<ButtonProps$1, 'className' | 'render'>, ButtonVariants {
676
- render?: RenderProp<ButtonRenderProps>;
788
+ /**
789
+ * Replace the rendered element. Accepts a React element to compose with, or a
790
+ * function `(props, state) => ReactElement` following the Base UI contract.
791
+ */
792
+ render?: RenderProp<ButtonRenderProps, ButtonRenderState>;
677
793
  /** Render as a link. Ignored when a custom `render` is supplied. */
678
794
  href?: string;
679
795
  target?: string;
@@ -682,6 +798,15 @@ interface ButtonProps extends Omit<ButtonProps$1, 'className' | 'render'>, Butto
682
798
  className?: string;
683
799
  isDisabled?: boolean;
684
800
  onPress?: (event: MouseEvent<HTMLElement>) => void;
801
+ /**
802
+ * When `true`, the button does not receive focus when pressed with a pointer
803
+ * (the `mousedown` default is prevented).
804
+ *
805
+ * Defaults to `false` to match native/shadcn behavior — buttons are focused on
806
+ * press. Opt in when the button opens an overlay that manages focus itself.
807
+ *
808
+ * @default false
809
+ */
685
810
  preventFocusOnPress?: boolean;
686
811
  }
687
812
  interface ButtonRenderProps {
@@ -689,7 +814,11 @@ interface ButtonRenderProps {
689
814
  children: ReactNode;
690
815
  [key: string]: unknown;
691
816
  }
692
- declare function Button({ variant, size, render: renderProp, href, target, rel, preventFocusOnPress: _preventFocusOnPress, nativeButton, isDisabled, disabled, onPress, onClick, className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
817
+ interface ButtonRenderState {
818
+ disabled: boolean;
819
+ [key: string]: unknown;
820
+ }
821
+ declare function Button({ variant, size, render: renderProp, href, target, rel, preventFocusOnPress, nativeButton, isDisabled, disabled, onPress, onClick, onMouseDown, className, children, ...props }: ButtonProps): react_jsx_runtime.JSX.Element;
693
822
 
694
823
  interface SeparatorProps extends Separator$1.Props {
695
824
  orientation?: 'horizontal' | 'vertical';
@@ -715,49 +844,101 @@ interface ButtonGroupSeparatorProps extends SeparatorProps {
715
844
  }
716
845
  declare function ButtonGroupSeparator({ className, orientation, ...props }: ButtonGroupSeparatorProps): react_jsx_runtime.JSX.Element;
717
846
 
847
+ type CalendarSelection = Date | Date[] | DateRange | undefined;
718
848
  type CalendarProps = Omit<ComponentProps<typeof DayPicker>, 'mode' | 'selected' | 'defaultMonth' | 'onSelect' | 'disabled'> & {
849
+ /** Selection mode. Defaults to `single`. */
850
+ mode?: 'single' | 'multiple' | 'range';
851
+ /** Base UI/react-day-picker style selection. Use with `mode`. */
852
+ selected?: CalendarSelection;
853
+ onSelect?: (selected: CalendarSelection) => void;
854
+ /** Compat prop for `mode="single"`. */
719
855
  value?: Date;
720
856
  minValue?: Date;
721
857
  maxValue?: Date;
722
858
  defaultValue?: Date;
723
- onChange?: (date: Date) => void;
859
+ /** Compat prop for `mode="single"`. Receives `undefined` when the date is deselected. */
860
+ onChange?: (date: Date | undefined) => void;
724
861
  isDisabled?: boolean;
725
862
  isReadOnly?: boolean;
863
+ captionLayout?: ComponentProps<typeof DayPicker>['captionLayout'];
864
+ showOutsideDays?: boolean;
865
+ buttonVariant?: ButtonVariants['variant'];
726
866
  };
727
- declare function Calendar({ className, value, minValue, maxValue, defaultValue, onChange, isDisabled, isReadOnly, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
867
+ declare function Calendar({ className, classNames, value, minValue, maxValue, defaultValue, mode, selected, onSelect, onChange, isDisabled, isReadOnly, showOutsideDays, captionLayout, buttonVariant, components, ...props }: CalendarProps): react_jsx_runtime.JSX.Element;
868
+ declare function CalendarDayButton({ className, day, modifiers, buttonVariant, ...props }: ComponentProps<typeof DayButton> & {
869
+ buttonVariant?: ButtonVariants['variant'];
870
+ }): react_jsx_runtime.JSX.Element;
728
871
 
729
872
  type EmblaOptions = NonNullable<Parameters<typeof useEmblaCarousel>[0]>;
873
+ type CarouselApi = ReturnType<typeof useEmblaCarousel>[1];
874
+ type CarouselOrientation = 'horizontal' | 'vertical';
875
+ interface CarouselContextValue {
876
+ carouselRef: ReturnType<typeof useEmblaCarousel>[0];
877
+ api: CarouselApi;
878
+ orientation: CarouselOrientation;
879
+ scrollPrev: () => void;
880
+ scrollNext: () => void;
881
+ scrollTo: (index: number) => void;
882
+ canScrollPrev: boolean;
883
+ canScrollNext: boolean;
884
+ selectedIndex: number;
885
+ slideCount: number;
886
+ }
887
+ declare function useCarousel(): CarouselContextValue;
730
888
  interface CarouselProps extends HTMLAttributes<HTMLDivElement> {
731
- orientation?: 'horizontal' | 'vertical';
889
+ orientation?: CarouselOrientation;
732
890
  loop?: boolean;
891
+ /** Render the built-in previous/next controls. */
733
892
  showArrows?: boolean;
893
+ /** Render the built-in pagination dots. */
734
894
  showDots?: boolean;
735
895
  opts?: EmblaOptions;
896
+ setApi?: (api: CarouselApi) => void;
736
897
  onIndexChange?: (index: number) => void;
737
898
  }
738
- declare function Carousel({ orientation, loop, showArrows, showDots, opts, onIndexChange, className, children, ...props }: CarouselProps): react_jsx_runtime.JSX.Element;
739
- declare function CarouselItem({ className, children, ...props }: HTMLAttributes<HTMLDivElement>): react_jsx_runtime.JSX.Element;
899
+ declare function Carousel({ orientation, loop, showArrows, showDots, opts, setApi, onIndexChange, className, children, ...props }: CarouselProps): react_jsx_runtime.JSX.Element;
900
+ interface CarouselContentProps extends HTMLAttributes<HTMLDivElement> {
901
+ }
902
+ declare function CarouselContent({ className, children, ...props }: CarouselContentProps): react_jsx_runtime.JSX.Element;
903
+ interface CarouselItemProps extends HTMLAttributes<HTMLDivElement> {
904
+ }
905
+ declare function CarouselItem({ className, children, ...props }: CarouselItemProps): react_jsx_runtime.JSX.Element;
906
+ interface CarouselArrowProps extends Omit<ButtonProps, 'size'> {
907
+ }
908
+ declare function CarouselPrevious({ className, variant, children, ...props }: CarouselArrowProps): react_jsx_runtime.JSX.Element;
909
+ declare function CarouselNext({ className, variant, children, ...props }: CarouselArrowProps): react_jsx_runtime.JSX.Element;
910
+ interface CarouselDotsProps extends HTMLAttributes<HTMLDivElement> {
911
+ }
912
+ declare function CarouselDots({ className, ...props }: CarouselDotsProps): react_jsx_runtime.JSX.Element | null;
740
913
 
741
914
  interface CheckboxProps extends Omit<CheckboxRoot.Props, 'checked' | 'defaultChecked' | 'disabled' | 'indeterminate' | 'onCheckedChange' | 'value'> {
742
915
  children?: ReactNode;
743
916
  label?: string;
917
+ /** Hide the visible label and expose it as `aria-label` instead. */
918
+ hideLabel?: boolean;
744
919
  value?: string | boolean;
745
920
  isSelected?: boolean;
921
+ checked?: boolean;
746
922
  defaultSelected?: boolean;
923
+ defaultChecked?: boolean;
747
924
  isDisabled?: boolean;
925
+ disabled?: boolean;
748
926
  isIndeterminate?: boolean;
927
+ indeterminate?: boolean;
749
928
  onChange?: (selected: boolean) => void;
929
+ onCheckedChange?: (checked: boolean) => void;
750
930
  }
751
- declare function Checkbox({ label, className, children, isSelected, defaultSelected, isDisabled, isIndeterminate, onChange, value, slot, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
931
+ declare function Checkbox({ id, label, hideLabel, className, children, isSelected, checked: checkedProp, defaultSelected, defaultChecked, isDisabled, disabled, isIndeterminate, indeterminate, onChange, onCheckedChange, value, ...props }: CheckboxProps): react_jsx_runtime.JSX.Element;
752
932
 
753
933
  interface CheckboxGroupProps extends Omit<CheckboxGroup$1.Props, 'disabled' | 'onValueChange' | 'onChange'> {
934
+ className?: string;
754
935
  label?: string;
755
936
  isDisabled?: boolean;
756
937
  orientation?: 'vertical' | 'horizontal';
757
938
  onChange?: (value: string[]) => void;
758
939
  children?: ReactNode;
759
940
  }
760
- declare function CheckboxGroup({ label, isDisabled, orientation, onChange, className, children, ...props }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
941
+ declare function CheckboxGroup({ id, label, isDisabled, orientation, onChange, className, children, ...props }: CheckboxGroupProps): react_jsx_runtime.JSX.Element;
761
942
 
762
943
  interface CodeProps extends Omit<TextProps, 'as'> {
763
944
  children?: ReactNode;
@@ -844,7 +1025,14 @@ interface ListSectionProps extends HTMLAttributes<HTMLDivElement> {
844
1025
  }
845
1026
  declare function ListSection({ title, className, children, ...props }: ListSectionProps): react_jsx_runtime.JSX.Element;
846
1027
 
847
- interface ComboBoxProps extends Omit<Combobox.Root.Props<string>, 'children' | 'items' | 'disabled' | 'onValueChange'> {
1028
+ interface ComboBoxItem {
1029
+ label: ReactNode;
1030
+ value: string;
1031
+ element?: ReactElement<ListItemProps>;
1032
+ }
1033
+ /** Base UI receives the item objects directly, so values may be an item or its string value. */
1034
+ type ComboBoxValue = string | ComboBoxItem;
1035
+ interface ComboBoxProps extends Omit<Combobox.Root.Props<string>, 'children' | 'items' | 'disabled' | 'onValueChange' | 'itemToStringLabel' | 'itemToStringValue' | 'isItemEqualToValue' | 'filter' | 'onItemHighlighted'> {
848
1036
  children?: ReactNode;
849
1037
  items?: ReadonlyArray<string | {
850
1038
  label: ReactNode;
@@ -852,15 +1040,31 @@ interface ComboBoxProps extends Omit<Combobox.Root.Props<string>, 'children' | '
852
1040
  }>;
853
1041
  label?: string;
854
1042
  placeholder?: string;
1043
+ /** Compat alias for the Base UI `disabled` prop. */
855
1044
  isDisabled?: boolean;
1045
+ disabled?: boolean;
1046
+ /** Shows a clear button (`Combobox.Clear`) while the input has a value. */
1047
+ showClear?: boolean;
1048
+ showIcon?: boolean;
856
1049
  maxHeight?: string | number;
1050
+ 'aria-invalid'?: boolean | 'true' | 'false';
857
1051
  onChange?: (value: string | null) => void;
1052
+ onValueChange?: Combobox.Root.Props<string>['onValueChange'];
1053
+ itemToStringLabel?: (item: ComboBoxValue) => string;
1054
+ itemToStringValue?: (item: ComboBoxValue) => string;
1055
+ /** Items are passed to Base UI as `{ label, value }` objects, so the filter receives them. */
1056
+ filter?: ((item: ComboBoxValue, query: string, itemToString?: (item: ComboBoxValue) => string) => boolean) | null;
1057
+ onItemHighlighted?: (highlightedValue: ComboBoxValue | undefined, eventDetails: Parameters<NonNullable<Combobox.Root.Props<ComboBoxValue>['onItemHighlighted']>>[1]) => void;
1058
+ /** Content shown when no items match the current filter. */
1059
+ emptyState?: ReactNode;
1060
+ /** @deprecated Use `emptyState` instead. */
858
1061
  renderEmptyState?: (props: object) => ReactNode;
1062
+ inputProps?: Combobox.Input.Props;
859
1063
  listProps?: ListProps;
860
1064
  popoverProps?: Combobox.Positioner.Props;
861
1065
  className?: string;
862
1066
  }
863
- declare function ComboBox({ className, label, placeholder, isDisabled, maxHeight, onChange, renderEmptyState, listProps, popoverProps, children, items, itemToStringLabel, ...props }: ComboBoxProps): react_jsx_runtime.JSX.Element;
1067
+ declare function ComboBox({ id, className, label, placeholder, isDisabled, disabled, showClear, showIcon, maxHeight, onChange, onValueChange, emptyState, renderEmptyState, inputProps, listProps, popoverProps, children, items, itemToStringLabel, itemToStringValue, 'aria-invalid': ariaInvalid, ...props }: ComboBoxProps): react_jsx_runtime.JSX.Element;
864
1068
 
865
1069
  interface CommandProps extends ComponentProps<typeof Command$1> {
866
1070
  }
@@ -869,6 +1073,7 @@ interface CommandInputProps extends ComponentProps<typeof Command$1.Input> {
869
1073
  }
870
1074
  declare function CommandInput({ className, ...props }: CommandInputProps): react_jsx_runtime.JSX.Element;
871
1075
  interface CommandListProps extends ComponentProps<typeof Command$1.List> {
1076
+ /** When set, the list is wrapped in a `ScrollArea` capped at this height. */
872
1077
  maxHeight?: string | number;
873
1078
  }
874
1079
  declare function CommandList({ maxHeight, className, ...props }: CommandListProps): react_jsx_runtime.JSX.Element;
@@ -878,21 +1083,27 @@ declare function CommandEmpty({ className, ...props }: CommandEmptyProps): react
878
1083
  interface CommandGroupProps extends ComponentProps<typeof Command$1.Group> {
879
1084
  }
880
1085
  declare function CommandGroup({ className, ...props }: CommandGroupProps): react_jsx_runtime.JSX.Element;
881
- interface CommandItemProps extends Omit<ComponentProps<typeof Command$1.Item>, 'disabled'> {
1086
+ interface CommandItemProps extends ComponentProps<typeof Command$1.Item> {
882
1087
  icon?: ReactNode;
1088
+ /** Compat alias for the native `disabled` prop. */
883
1089
  isDisabled?: boolean;
884
1090
  }
885
- declare function CommandItem({ icon, isDisabled, className, children, ...props }: CommandItemProps): react_jsx_runtime.JSX.Element;
1091
+ declare function CommandItem({ icon, isDisabled, disabled, className, children, ...props }: CommandItemProps): react_jsx_runtime.JSX.Element;
886
1092
  interface CommandSeparatorProps extends ComponentProps<typeof Command$1.Separator> {
887
1093
  }
888
1094
  declare function CommandSeparator({ className, ...props }: CommandSeparatorProps): react_jsx_runtime.JSX.Element;
1095
+ interface CommandShortcutProps extends HTMLAttributes<HTMLSpanElement> {
1096
+ }
1097
+ declare function CommandShortcut({ className, ...props }: CommandShortcutProps): react_jsx_runtime.JSX.Element;
889
1098
  interface CommandDialogProps extends Omit<CommandProps, 'title'> {
1099
+ /** Compat alias for `open`. */
890
1100
  isOpen?: boolean;
1101
+ open?: boolean;
891
1102
  onOpenChange?: (open: boolean) => void;
892
1103
  title?: ReactNode;
893
1104
  description?: ReactNode;
894
1105
  }
895
- declare function CommandDialog({ isOpen, onOpenChange, title, description, children, ...props }: CommandDialogProps): react_jsx_runtime.JSX.Element;
1106
+ declare function CommandDialog({ isOpen, open, onOpenChange, title, description, children, ...props }: CommandDialogProps): react_jsx_runtime.JSX.Element;
896
1107
 
897
1108
  interface ConfirmationDialogProps extends AlertDialogProps {
898
1109
  value: string;
@@ -907,11 +1118,68 @@ interface ContainerProps extends BoxProps {
907
1118
  }
908
1119
  declare function Container({ isCentered, isFluid, className, children, ...props }: ContainerProps): react_jsx_runtime.JSX.Element;
909
1120
 
910
- interface ContextMenuProps {
1121
+ type MenuSelectionMode = 'none' | 'single' | 'multiple';
1122
+ type MenuVariant = 'default' | 'plain';
1123
+ /**
1124
+ * Lets a container (such as `Navbar`) opt nested menus out of the standalone popup surface
1125
+ * instead of un-styling them with descendant selectors.
1126
+ */
1127
+ declare const MenuVariantContext: react.Context<MenuVariant | null>;
1128
+ interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
1129
+ selectionMode?: MenuSelectionMode;
1130
+ selectedKeys?: Iterable<Key>;
1131
+ defaultSelectedKeys?: Iterable<Key>;
1132
+ onSelectionChange?: (keys: Selection) => void;
1133
+ /** `plain` drops the popup surface (border, shadow, background) for embedding in another popup. */
1134
+ variant?: MenuVariant;
1135
+ }
1136
+ declare function Menu({ className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, variant, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
1137
+ interface MenuItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'id'> {
1138
+ id?: string | number;
1139
+ value?: string;
1140
+ icon?: ReactNode;
1141
+ label?: string;
1142
+ /** Shows the selected indicator. Defaults to `true` when the menu has a selection mode. */
1143
+ showChecked?: boolean;
1144
+ showSubMenuIcon?: boolean;
1145
+ isDisabled?: boolean;
1146
+ /** Whether picking the item closes the menu. Defaults to `false` for multiple selection. */
1147
+ closeOnSelect?: boolean;
1148
+ onAction?: (key: Key) => void;
1149
+ }
1150
+ declare function MenuItem({ id, value, icon, label, showChecked, showSubMenuIcon, isDisabled, closeOnSelect, onAction, children, className, onClick, ...props }: MenuItemProps): react_jsx_runtime.JSX.Element;
1151
+ interface MenuSeparatorProps extends Menu$1.Separator.Props {
1152
+ }
1153
+ declare function MenuSeparator({ className, ...props }: MenuSeparatorProps): react_jsx_runtime.JSX.Element;
1154
+ interface MenuShortcutProps extends HTMLAttributes<HTMLSpanElement> {
1155
+ }
1156
+ declare function MenuShortcut({ className, ...props }: MenuShortcutProps): react_jsx_runtime.JSX.Element;
1157
+ interface MenuSectionProps extends HTMLAttributes<HTMLDivElement> {
1158
+ title?: string;
1159
+ maxHeight?: number;
1160
+ }
1161
+ declare function MenuSection({ title, maxHeight, className, style, children, ...props }: MenuSectionProps): react_jsx_runtime.JSX.Element;
1162
+ interface SubmenuTriggerProps {
1163
+ children?: ReactNode;
1164
+ }
1165
+ declare function SubMenuTrigger({ children }: SubmenuTriggerProps): react_jsx_runtime.JSX.Element;
1166
+
1167
+ interface ContextMenuProps extends Omit<ContextMenu$1.Root.Props, 'children' | 'onOpenChange'> {
911
1168
  children: ReactNode;
1169
+ isOpen?: boolean;
912
1170
  onOpenChange?: (open: boolean) => void;
913
1171
  }
914
- declare function ContextMenu({ children, onOpenChange }: ContextMenuProps): react_jsx_runtime.JSX.Element;
1172
+ declare function ContextMenu({ children, isOpen, open, onOpenChange, ...props }: ContextMenuProps): react_jsx_runtime.JSX.Element;
1173
+ /** Explicit, shadcn-style parts. */
1174
+ interface ContextMenuTriggerProps extends ContextMenu$1.Trigger.Props {
1175
+ }
1176
+ declare function ContextMenuTrigger({ className, ...props }: ContextMenuTriggerProps): react_jsx_runtime.JSX.Element;
1177
+ declare const ContextMenuRoot: typeof ContextMenu$1.Root;
1178
+ type ContextMenuRootProps = ContextMenu$1.Root.Props;
1179
+ interface ContextMenuContentProps extends MenuProps {
1180
+ }
1181
+ /** The context menu popup. Selects the context-menu primitives regardless of how it is composed. */
1182
+ declare function ContextMenuContent(props: ContextMenuContentProps): react_jsx_runtime.JSX.Element;
915
1183
 
916
1184
  interface CopyButtonProps extends Omit<ButtonProps, 'children' | 'onClick' | 'onPress' | 'size' | 'type' | 'value' | 'variant'> {
917
1185
  value?: string | (() => string);
@@ -962,15 +1230,37 @@ interface TableCellProps extends Omit<TdHTMLAttributes<HTMLTableCellElement>, 'a
962
1230
  interface TableRowProps extends HTMLAttributes<HTMLTableRowElement> {
963
1231
  id?: string;
964
1232
  }
1233
+ interface TableContainerProps extends HTMLAttributes<HTMLDivElement> {
1234
+ }
1235
+ /** Scroll container for a `Table`. */
1236
+ declare function TableContainer({ className, ...props }: TableContainerProps): react_jsx_runtime.JSX.Element;
965
1237
  declare function Table({ children, className, selectionMode, selectedKeys: controlledSelectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: TableProps): react_jsx_runtime.JSX.Element;
966
1238
  interface TableHeaderComponentProps extends HTMLAttributes<HTMLTableSectionElement> {
967
1239
  style?: CSSProperties;
968
1240
  }
969
1241
  declare function TableHeader({ children, className, style, ...props }: TableHeaderComponentProps): react_jsx_runtime.JSX.Element;
970
1242
  declare function TableBody({ children, className, ...props }: HTMLAttributes<HTMLTableSectionElement>): react_jsx_runtime.JSX.Element;
1243
+ interface TableFooterProps extends HTMLAttributes<HTMLTableSectionElement> {
1244
+ style?: CSSProperties;
1245
+ }
1246
+ declare function TableFooter({ children, className, style, ...props }: TableFooterProps): react_jsx_runtime.JSX.Element;
1247
+ interface TableCaptionProps extends HTMLAttributes<HTMLTableCaptionElement> {
1248
+ }
1249
+ declare function TableCaption({ className, ...props }: TableCaptionProps): react_jsx_runtime.JSX.Element;
971
1250
  declare function TableRow({ children, className, style, id, ...props }: TableRowProps): react_jsx_runtime.JSX.Element;
972
1251
  declare function TableColumn({ children, className, align, isRowHeader: _isRowHeader, ...props }: TableColumnProps): react_jsx_runtime.JSX.Element;
1252
+ /** Alias of `TableColumn` matching the shadcn naming. */
1253
+ declare const TableHead: typeof TableColumn;
973
1254
  declare function TableCell({ children, className, align, ...props }: TableCellProps): react_jsx_runtime.JSX.Element;
1255
+ interface TableSelectionCheckboxProps extends Omit<CheckboxProps, 'isSelected' | 'isIndeterminate' | 'defaultSelected'> {
1256
+ children?: ReactNode;
1257
+ }
1258
+ /**
1259
+ * A `Checkbox` wired up to the enclosing `Table` selection state. Renders the
1260
+ * "select all" checkbox inside a `TableHeader` and a row checkbox inside a
1261
+ * `TableRow`.
1262
+ */
1263
+ declare function TableSelectionCheckbox({ isDisabled, onChange, ...props }: TableSelectionCheckboxProps): react_jsx_runtime.JSX.Element | null;
974
1264
 
975
1265
  interface DataTableProps extends TableProps {
976
1266
  data?: any[];
@@ -999,29 +1289,43 @@ interface DatePickerProps {
999
1289
  locale?: string;
1000
1290
  isDisabled?: boolean;
1001
1291
  isReadOnly?: boolean;
1292
+ isOpen?: boolean;
1293
+ defaultOpen?: boolean;
1294
+ onOpenChange?: (open: boolean) => void;
1002
1295
  formatOptions?: Intl.DateTimeFormatOptions;
1003
- onChange?: (date: Date) => void;
1004
- buttonProps?: ButtonProps;
1296
+ /** Receives `undefined` when the selected date is cleared. */
1297
+ onChange?: (date: Date | undefined) => void;
1298
+ triggerProps?: ButtonHTMLAttributes<HTMLButtonElement>;
1299
+ /** @deprecated Use `triggerProps` instead. */
1300
+ buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
1005
1301
  calendarProps?: Partial<CalendarProps>;
1006
1302
  className?: string;
1007
1303
  }
1008
- declare function DatePicker({ id, value, defaultValue, minValue, maxValue, label, placeholder, locale, isDisabled, isReadOnly, formatOptions, onChange, buttonProps, calendarProps, className, }: DatePickerProps): react_jsx_runtime.JSX.Element;
1304
+ declare function DatePicker({ id, value, defaultValue, minValue, maxValue, label, placeholder, locale, isDisabled, isReadOnly, isOpen, defaultOpen, onOpenChange, formatOptions, onChange, triggerProps, buttonProps, calendarProps, className, }: DatePickerProps): react_jsx_runtime.JSX.Element;
1009
1305
 
1010
1306
  interface DotsProps extends HTMLAttributes<HTMLDivElement> {
1011
1307
  size?: 'sm' | 'md' | 'lg';
1012
1308
  }
1013
1309
  declare function Dots({ size, className, color: _color, ...props }: DotsProps): react_jsx_runtime.JSX.Element;
1014
1310
 
1015
- declare const Drawer: typeof Drawer$1.Root;
1016
1311
  type DrawerProps = Drawer$1.Root.Props;
1312
+ declare function Drawer({ modal, ...props }: DrawerProps): react_jsx_runtime.JSX.Element;
1017
1313
  declare const DrawerTrigger: Drawer$1.Trigger;
1018
1314
  type DrawerTriggerProps = Drawer$1.Trigger.Props;
1019
1315
  declare const DrawerClose: Drawer$1.Close;
1020
1316
  type DrawerCloseProps = Drawer$1.Close.Props;
1021
- declare const DrawerTitle: Drawer$1.Title;
1022
- type DrawerTitleProps = Drawer$1.Title.Props;
1023
- declare const DrawerDescription: Drawer$1.Description;
1024
- type DrawerDescriptionProps = Drawer$1.Description.Props;
1317
+ interface DrawerTitleProps extends Drawer$1.Title.Props {
1318
+ }
1319
+ declare function DrawerTitle({ className, ...props }: DrawerTitleProps): react_jsx_runtime.JSX.Element;
1320
+ interface DrawerDescriptionProps extends Drawer$1.Description.Props {
1321
+ }
1322
+ declare function DrawerDescription({ className, ...props }: DrawerDescriptionProps): react_jsx_runtime.JSX.Element;
1323
+ interface DrawerHeaderProps extends HTMLAttributes<HTMLDivElement> {
1324
+ }
1325
+ declare function DrawerHeader({ className, ...props }: DrawerHeaderProps): react_jsx_runtime.JSX.Element;
1326
+ interface DrawerFooterProps extends HTMLAttributes<HTMLDivElement> {
1327
+ }
1328
+ declare function DrawerFooter({ className, ...props }: DrawerFooterProps): react_jsx_runtime.JSX.Element;
1025
1329
  interface DrawerContentProps extends Drawer$1.Popup.Props {
1026
1330
  portalProps?: Drawer$1.Portal.Props;
1027
1331
  }
@@ -1036,22 +1340,60 @@ declare const EmptyTitle: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDiv
1036
1340
  declare const EmptyDescription: react.ForwardRefExoticComponent<HTMLAttributes<HTMLParagraphElement> & react.RefAttributes<HTMLParagraphElement>>;
1037
1341
  declare const EmptyContent: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
1038
1342
 
1343
+ type FieldOrientation = 'vertical' | 'horizontal' | 'responsive';
1344
+ interface FieldProps extends Field$1.Root.Props {
1345
+ orientation?: FieldOrientation;
1346
+ }
1347
+ declare const Field: react.ForwardRefExoticComponent<Omit<FieldProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1348
+ interface FieldLabelProps extends Field$1.Label.Props {
1349
+ }
1350
+ declare const FieldLabel: react.ForwardRefExoticComponent<Omit<FieldLabelProps, "ref"> & react.RefAttributes<HTMLLabelElement>>;
1351
+ interface FieldControlProps extends Field$1.Control.Props {
1352
+ }
1353
+ declare const FieldControl: react.ForwardRefExoticComponent<Omit<FieldControlProps, "ref"> & react.RefAttributes<HTMLInputElement>>;
1354
+ interface FieldDescriptionProps extends Field$1.Description.Props {
1355
+ }
1356
+ declare const FieldDescription: react.ForwardRefExoticComponent<Omit<FieldDescriptionProps, "ref"> & react.RefAttributes<HTMLParagraphElement>>;
1357
+ interface FieldErrorProps extends Field$1.Error.Props {
1358
+ }
1359
+ declare const FieldError: react.ForwardRefExoticComponent<Omit<FieldErrorProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1360
+ declare const FieldContent: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
1361
+ declare const FieldTitle: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
1362
+ declare const FieldGroup: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
1363
+ declare const FieldSet: react.ForwardRefExoticComponent<FieldsetHTMLAttributes<HTMLFieldSetElement> & react.RefAttributes<HTMLFieldSetElement>>;
1364
+ interface FieldLegendProps extends HTMLAttributes<HTMLLegendElement> {
1365
+ variant?: 'legend' | 'label';
1366
+ }
1367
+ declare const FieldLegend: react.ForwardRefExoticComponent<FieldLegendProps & react.RefAttributes<HTMLLegendElement>>;
1368
+ interface FieldSeparatorProps extends HTMLAttributes<HTMLDivElement> {
1369
+ children?: ReactNode;
1370
+ }
1371
+ declare const FieldSeparator: react.ForwardRefExoticComponent<FieldSeparatorProps & react.RefAttributes<HTMLDivElement>>;
1372
+
1039
1373
  interface TooltipProps extends Omit<Tooltip$1.Positioner.Props, 'children' | 'className'> {
1040
1374
  children?: ReactNode;
1041
1375
  showArrow?: boolean;
1042
1376
  className?: string;
1377
+ /** Positioner class name. Merged with the internal layer/isolation classes. */
1378
+ positionerClassName?: string;
1043
1379
  placement?: Tooltip$1.Positioner.Props['side'];
1044
1380
  }
1045
- declare function Tooltip({ children, className, placement, side, sideOffset, showArrow, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
1381
+ declare function Tooltip({ children, className, positionerClassName, placement, side, sideOffset, showArrow, ...props }: TooltipProps): react_jsx_runtime.JSX.Element;
1382
+ /** Explicit, shadcn-style alias for the positioned tooltip surface. */
1383
+ declare const TooltipContent: typeof Tooltip;
1384
+ type TooltipContentProps = TooltipProps;
1046
1385
  interface TooltipBubbleProps extends HTMLAttributes<HTMLDivElement> {
1047
1386
  children?: ReactNode;
1048
1387
  showArrow?: boolean;
1049
1388
  }
1050
- declare function TooltipBubble({ children, className, color: _color, ...props }: TooltipBubbleProps): react_jsx_runtime.JSX.Element;
1389
+ /** An unpositioned tooltip surface, used by `FloatingTooltip` and for custom positioning. */
1390
+ declare const TooltipBubble: react.ForwardRefExoticComponent<TooltipBubbleProps & react.RefAttributes<HTMLDivElement>>;
1051
1391
 
1052
1392
  interface FloatingTooltipProps extends TooltipBubbleProps {
1393
+ /** Set to `false` to detach the pointer listener without unmounting. Defaults to `true`. */
1394
+ isOpen?: boolean;
1053
1395
  }
1054
- declare function FloatingTooltip({ className, style, children, ...props }: FloatingTooltipProps): react_jsx_runtime.JSX.Element;
1396
+ declare function FloatingTooltip({ className, style, children, isOpen, ...props }: FloatingTooltipProps): react_jsx_runtime.JSX.Element;
1055
1397
 
1056
1398
  interface FormProps extends UseFormProps, Omit<HTMLAttributes<HTMLFormElement>, 'children'> {
1057
1399
  autoComplete?: string;
@@ -1107,7 +1449,7 @@ interface FormResetButtonProps extends ButtonProps {
1107
1449
  [p: string]: any;
1108
1450
  };
1109
1451
  }
1110
- declare function FormResetButton({ values, children, onPress, ...props }: FormResetButtonProps): react_jsx_runtime.JSX.Element;
1452
+ declare function FormResetButton({ values, children, onPress, onClick, ...props }: FormResetButtonProps): react_jsx_runtime.JSX.Element;
1111
1453
 
1112
1454
  interface LoadingButtonProps extends ButtonProps {
1113
1455
  children?: ReactNode;
@@ -1117,7 +1459,15 @@ interface LoadingButtonProps extends ButtonProps {
1117
1459
  }
1118
1460
  declare function LoadingButton({ isLoading, isDisabled, showText, children, ...props }: LoadingButtonProps): react_jsx_runtime.JSX.Element;
1119
1461
 
1120
- declare function FormSubmitButton({ variant, isDisabled, isLoading, children, ...props }: LoadingButtonProps): react_jsx_runtime.JSX.Element;
1462
+ interface FormSubmitButtonProps extends LoadingButtonProps {
1463
+ /**
1464
+ * Also disable the button while the form is pristine or invalid. Only useful with
1465
+ * `mode="onChange"` / `mode="all"`, since RHF's default `onSubmit` mode reports
1466
+ * `isValid: false` until the first submit attempt.
1467
+ */
1468
+ requireValid?: boolean;
1469
+ }
1470
+ declare function FormSubmitButton({ variant, isDisabled, isLoading, requireValid, children, ...props }: FormSubmitButtonProps): react_jsx_runtime.JSX.Element;
1121
1471
 
1122
1472
  type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
1123
1473
  interface HeadingProps extends Omit<TextProps, 'as' | 'size'> {
@@ -1125,16 +1475,25 @@ interface HeadingProps extends Omit<TextProps, 'as' | 'size'> {
1125
1475
  size?: Responsive$1<HeadingSize>;
1126
1476
  as?: HeadingElement;
1127
1477
  }
1128
- declare function Heading({ size, spacing, as, className, children, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
1478
+ declare function Heading({ size, spacing, weight, as, className, children, ...props }: HeadingProps): react_jsx_runtime.JSX.Element;
1129
1479
 
1130
- interface HoverButtonProps {
1480
+ interface HoverTriggerProps {
1481
+ /** Controlled open state. */
1131
1482
  isOpen?: boolean;
1483
+ defaultOpen?: boolean;
1484
+ onOpenChange?: (open: boolean) => void;
1132
1485
  onHoverStart?: () => void;
1133
1486
  onHoverEnd?: () => void;
1487
+ /** Delay before opening on hover, in milliseconds. */
1488
+ delay?: number;
1489
+ /** Delay before closing once the pointer leaves, in milliseconds. */
1134
1490
  closeDelay?: number;
1135
- children: ReactElement[];
1491
+ className?: string;
1492
+ children: ReactNode;
1136
1493
  }
1137
- declare function HoverTrigger({ isOpen, onHoverStart, onHoverEnd, closeDelay, children, }: HoverButtonProps): react_jsx_runtime.JSX.Element;
1494
+ /** @deprecated Use `HoverTriggerProps`. */
1495
+ type HoverButtonProps = HoverTriggerProps;
1496
+ declare function HoverTrigger({ isOpen, defaultOpen, onOpenChange, onHoverStart, onHoverEnd, delay, closeDelay, className, children, }: HoverTriggerProps): react_jsx_runtime.JSX.Element;
1138
1497
 
1139
1498
  declare const breakpoints: {
1140
1499
  sm: number;
@@ -1205,6 +1564,19 @@ interface ImageProps extends HTMLAttributes<HTMLImageElement> {
1205
1564
  }
1206
1565
  declare function Image({ src, alt, objectFit, isCentered, borderRadius, shadow, className, ...props }: ImageProps): react_jsx_runtime.JSX.Element;
1207
1566
 
1567
+ interface InputProps extends InputHTMLAttributes<HTMLInputElement>, InputFieldVariants {
1568
+ }
1569
+ /**
1570
+ * Classes used to flatten a standalone `Input` / `Textarea` when it is rendered
1571
+ * inside an `InputGroup`. The group owns the border, background and focus ring.
1572
+ */
1573
+ declare const inputGroupControlClasses: string[];
1574
+ declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
1575
+
1576
+ interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement>, InputFieldVariants {
1577
+ }
1578
+ declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
1579
+
1208
1580
  interface InputGroupProps extends HTMLAttributes<HTMLDivElement>, InputFieldVariants {
1209
1581
  }
1210
1582
  declare const InputGroup: react.ForwardRefExoticComponent<InputGroupProps & react.RefAttributes<HTMLDivElement>>;
@@ -1219,16 +1591,22 @@ interface InputGroupButtonProps extends Omit<ButtonProps, 'size'> {
1219
1591
  }
1220
1592
  declare const InputGroupButton: react.ForwardRefExoticComponent<Omit<InputGroupButtonProps, "ref"> & react.RefAttributes<HTMLButtonElement>>;
1221
1593
  declare const InputGroupText: react.ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & react.RefAttributes<HTMLSpanElement>>;
1222
- declare const InputGroupInput: react.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & react.RefAttributes<HTMLInputElement>>;
1223
- declare const InputGroupTextarea: react.ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & react.RefAttributes<HTMLTextAreaElement>>;
1594
+ declare const InputGroupInput: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
1595
+ declare const InputGroupTextarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
1224
1596
 
1225
1597
  type KbdProps = HTMLAttributes<HTMLElement>;
1226
1598
  declare function Kbd({ className, children, ...props }: KbdProps): react_jsx_runtime.JSX.Element;
1599
+ type KbdGroupProps = HTMLAttributes<HTMLElement>;
1600
+ declare function KbdGroup({ className, children, ...props }: KbdGroupProps): react_jsx_runtime.JSX.Element;
1227
1601
 
1228
- interface LabelProps extends Omit<TextProps, 'as' | 'render'> {
1229
- htmlFor?: string;
1602
+ declare const labelClasses: string[];
1603
+ interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
1604
+ /** @deprecated Use `className` instead. Kept for backwards compatibility. */
1605
+ size?: Responsive$1<FontSize>;
1606
+ /** @deprecated Use `className` instead. Kept for backwards compatibility. */
1607
+ weight?: Responsive$1<FontWeight>;
1230
1608
  }
1231
- declare function Label({ size, weight, lineHeight, ...props }: LabelProps): react_jsx_runtime.JSX.Element;
1609
+ declare const Label: react.ForwardRefExoticComponent<LabelProps & react.RefAttributes<HTMLLabelElement>>;
1232
1610
 
1233
1611
  interface LoadingProps extends BoxProps {
1234
1612
  size?: 'sm' | 'md' | 'lg';
@@ -1302,37 +1680,6 @@ interface StateStylesInput {
1302
1680
  }
1303
1681
  declare function mapStateStyles(prefix: StatePrefix, styles: StateStylesInput | undefined): string;
1304
1682
 
1305
- interface MenuProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
1306
- selectionMode?: 'none' | 'single' | 'multiple';
1307
- selectedKeys?: Iterable<Key>;
1308
- defaultSelectedKeys?: Iterable<Key>;
1309
- onSelectionChange?: (keys: Selection) => void;
1310
- }
1311
- declare function Menu({ className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: MenuProps): react_jsx_runtime.JSX.Element;
1312
- interface MenuItemProps extends Omit<HTMLAttributes<HTMLDivElement>, 'id'> {
1313
- id?: string | number;
1314
- value?: string;
1315
- icon?: ReactNode;
1316
- label?: string;
1317
- showChecked?: boolean;
1318
- showSubMenuIcon?: boolean;
1319
- isDisabled?: boolean;
1320
- onAction?: (key: Key) => void;
1321
- }
1322
- declare function MenuItem({ id, value, icon, label, showChecked, showSubMenuIcon, isDisabled, onAction, children, className, onClick, ...props }: MenuItemProps): react_jsx_runtime.JSX.Element;
1323
- interface MenuSeparatorProps extends Menu$1.Separator.Props {
1324
- }
1325
- declare function MenuSeparator({ className, ...props }: MenuSeparatorProps): react_jsx_runtime.JSX.Element;
1326
- interface MenuSectionProps extends HTMLAttributes<HTMLDivElement> {
1327
- title?: string;
1328
- maxHeight?: number;
1329
- }
1330
- declare function MenuSection({ title, maxHeight, className, style, children, ...props }: MenuSectionProps): react_jsx_runtime.JSX.Element;
1331
- interface SubmenuTriggerProps {
1332
- children?: ReactNode;
1333
- }
1334
- declare function SubMenuTrigger({ children }: SubmenuTriggerProps): react_jsx_runtime.JSX.Element;
1335
-
1336
1683
  interface MenubarProps extends Omit<Menubar$1.Props, 'disabled'> {
1337
1684
  isDisabled?: boolean;
1338
1685
  children?: ReactNode;
@@ -1357,13 +1704,31 @@ declare function Meter({ value, minValue, maxValue, label, showValue, formatOpti
1357
1704
 
1358
1705
  interface ModalProps extends Dialog$1.Portal.Props {
1359
1706
  children?: ReactNode;
1707
+ /** Controlled open state. Only used when the modal is not wrapped in a `DialogTrigger`. */
1360
1708
  isOpen?: boolean;
1709
+ /** Initial open state. Only used when the modal is not wrapped in a `DialogTrigger`. */
1710
+ defaultOpen?: boolean;
1361
1711
  onOpenChange?: (open: boolean) => void;
1362
1712
  placement?: 'center' | 'fullscreen';
1713
+ /** Renders a quiet close button in the top-right corner. */
1714
+ showCloseButton?: boolean;
1363
1715
  className?: string;
1364
1716
  style?: CSSProperties;
1365
1717
  }
1366
- declare function Modal({ placement, children, className, style, isOpen: _isOpen, onOpenChange: _onOpenChange, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
1718
+ declare function Modal({ placement, children, className, style, isOpen, defaultOpen, onOpenChange, showCloseButton, ...props }: ModalProps): react_jsx_runtime.JSX.Element;
1719
+ /** Explicit, shadcn-style parts for composing a modal without the two-child `DialogTrigger`. */
1720
+ interface ModalTriggerProps extends Dialog$1.Trigger.Props {
1721
+ }
1722
+ declare function ModalTrigger(props: ModalTriggerProps): react_jsx_runtime.JSX.Element;
1723
+ interface ModalCloseProps extends Dialog$1.Close.Props {
1724
+ }
1725
+ declare function ModalClose(props: ModalCloseProps): react_jsx_runtime.JSX.Element;
1726
+ interface ModalTitleProps extends Dialog$1.Title.Props {
1727
+ }
1728
+ declare function ModalTitle({ className, ...props }: ModalTitleProps): react_jsx_runtime.JSX.Element;
1729
+ interface ModalDescriptionProps extends Dialog$1.Description.Props {
1730
+ }
1731
+ declare function ModalDescription({ className, ...props }: ModalDescriptionProps): react_jsx_runtime.JSX.Element;
1367
1732
 
1368
1733
  interface NavbarProps extends HTMLAttributes<HTMLElement> {
1369
1734
  /** Shows the dropdown arrow on items that have a label. Defaults to `true`. */
@@ -1381,7 +1746,7 @@ interface NavbarLinkProps extends NavigationMenu.Link.Props {
1381
1746
  /** A semantic navigation link. Renders an `<a>` element and integrates with keyboard navigation. */
1382
1747
  declare function NavbarLink({ className, ...props }: NavbarLinkProps): react_jsx_runtime.JSX.Element;
1383
1748
 
1384
- interface NumberFieldProps extends Omit<NumberField$1.Root.Props, 'min' | 'max' | 'disabled' | 'readOnly' | 'required' | 'format' | 'onValueChange'> {
1749
+ interface NumberFieldProps extends Omit<NumberField$1.Root.Props, 'onValueChange'> {
1385
1750
  label?: string;
1386
1751
  placeholder?: string;
1387
1752
  minValue?: number;
@@ -1391,10 +1756,13 @@ interface NumberFieldProps extends Omit<NumberField$1.Root.Props, 'min' | 'max'
1391
1756
  isRequired?: boolean;
1392
1757
  formatOptions?: Intl.NumberFormatOptions;
1393
1758
  onChange?: (value: number | null) => void;
1759
+ /** Labels announced for the stepper buttons. */
1760
+ decrementLabel?: string;
1761
+ incrementLabel?: string;
1394
1762
  }
1395
- declare function NumberField({ label, placeholder, minValue, maxValue, isDisabled, isReadOnly, isRequired, formatOptions, onChange, className, id, ...props }: NumberFieldProps): react_jsx_runtime.JSX.Element;
1763
+ declare const NumberField: react.ForwardRefExoticComponent<Omit<NumberFieldProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1396
1764
 
1397
- interface OTPFieldProps extends Omit<OTPField$1.Root.Props, 'length' | 'disabled' | 'readOnly' | 'required' | 'onValueChange' | 'onValueComplete'> {
1765
+ interface OTPFieldProps extends Omit<OTPField$1.Root.Props, 'length' | 'onValueChange' | 'onValueComplete'> {
1398
1766
  length?: number;
1399
1767
  label?: string;
1400
1768
  isDisabled?: boolean;
@@ -1403,7 +1771,8 @@ interface OTPFieldProps extends Omit<OTPField$1.Root.Props, 'length' | 'disabled
1403
1771
  onChange?: (value: string) => void;
1404
1772
  onComplete?: (value: string) => void;
1405
1773
  }
1406
- declare function OTPField({ length, label, isDisabled, isReadOnly, isRequired, onChange, onComplete, className, id, ...props }: OTPFieldProps): react_jsx_runtime.JSX.Element;
1774
+ declare const OTPFieldSeparator: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
1775
+ declare const OTPField: react.ForwardRefExoticComponent<Omit<OTPFieldProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1407
1776
 
1408
1777
  interface DialogTriggerProps {
1409
1778
  children: ReactNode;
@@ -1417,8 +1786,12 @@ interface TooltipTriggerProps {
1417
1786
  children: ReactNode;
1418
1787
  delay?: number;
1419
1788
  closeDelay?: number;
1789
+ isOpen?: boolean;
1790
+ defaultOpen?: boolean;
1791
+ onOpenChange?: (open: boolean) => void;
1792
+ isDisabled?: boolean;
1420
1793
  }
1421
- declare function TooltipTrigger({ children, delay, closeDelay }: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
1794
+ declare function TooltipTrigger({ children, delay, closeDelay, isOpen, defaultOpen, onOpenChange, isDisabled, }: TooltipTriggerProps): react_jsx_runtime.JSX.Element;
1422
1795
  interface MenuTriggerProps {
1423
1796
  children: ReactNode;
1424
1797
  isOpen?: boolean;
@@ -1461,6 +1834,36 @@ interface PageHeaderActionsProps extends RowProps {
1461
1834
  }
1462
1835
  declare function PageHeaderActions({ children, ...props }: PageHeaderActionsProps): react_jsx_runtime.JSX.Element;
1463
1836
 
1837
+ interface PaginationContentProps extends HTMLAttributes<HTMLUListElement> {
1838
+ }
1839
+ declare function PaginationContent({ className, ...props }: PaginationContentProps): react_jsx_runtime.JSX.Element;
1840
+ interface PaginationItemProps extends HTMLAttributes<HTMLLIElement> {
1841
+ }
1842
+ declare function PaginationItem({ className, ...props }: PaginationItemProps): react_jsx_runtime.JSX.Element;
1843
+ interface PaginationLinkProps extends Omit<ComponentProps<'a'>, 'color'> {
1844
+ isActive?: boolean;
1845
+ isDisabled?: boolean;
1846
+ size?: ButtonProps['size'];
1847
+ children?: ReactNode;
1848
+ }
1849
+ /** A pagination control rendered as an anchor but styled as a Button. */
1850
+ declare function PaginationLink({ className, isActive, isDisabled, size, children, ...props }: PaginationLinkProps): react_jsx_runtime.JSX.Element;
1851
+ interface PaginationNavProps extends PaginationLinkProps {
1852
+ /** Visible label, hidden on small screens. */
1853
+ text?: string;
1854
+ }
1855
+ declare function PaginationPrevious({ className, text, size, ...props }: PaginationNavProps): react_jsx_runtime.JSX.Element;
1856
+ declare function PaginationNext({ className, text, size, ...props }: PaginationNavProps): react_jsx_runtime.JSX.Element;
1857
+ interface PaginationEllipsisProps extends HTMLAttributes<HTMLSpanElement> {
1858
+ }
1859
+ declare function PaginationEllipsis({ className, ...props }: PaginationEllipsisProps): react_jsx_runtime.JSX.Element;
1860
+ interface PaginationRenderLinkProps {
1861
+ children?: ReactNode;
1862
+ 'aria-current'?: 'page' | undefined;
1863
+ 'aria-label'?: string;
1864
+ onClick?: (event: MouseEvent) => void;
1865
+ [key: string]: unknown;
1866
+ }
1464
1867
  interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'> {
1465
1868
  pageCount?: number;
1466
1869
  totalItems?: number;
@@ -1470,26 +1873,51 @@ interface PaginationProps extends Omit<HTMLAttributes<HTMLElement>, 'onChange'>
1470
1873
  siblingCount?: number;
1471
1874
  isDisabled?: boolean;
1472
1875
  onChange?: (page: number) => void;
1876
+ /**
1877
+ * Render each page control with a router aware link. Receives the target page
1878
+ * number and the props that must be spread onto the rendered element.
1879
+ */
1880
+ renderLink?: (page: number, props: PaginationRenderLinkProps) => ReactElement;
1473
1881
  }
1474
- declare function Pagination({ pageCount, totalItems, pageSize, page, defaultPage, siblingCount, isDisabled, onChange, className, ...props }: PaginationProps): react_jsx_runtime.JSX.Element;
1882
+ declare function Pagination({ pageCount, totalItems, pageSize, page, defaultPage, siblingCount, isDisabled, onChange, renderLink, className, ...props }: PaginationProps): react_jsx_runtime.JSX.Element;
1475
1883
 
1476
- interface PasswordFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'disabled' | 'readOnly'> {
1884
+ interface PasswordFieldProps extends InputHTMLAttributes<HTMLInputElement> {
1477
1885
  label?: string;
1478
1886
  isDisabled?: boolean;
1479
1887
  isReadOnly?: boolean;
1888
+ /** Controls whether the value is visible. Leave undefined for uncontrolled behavior. */
1889
+ isRevealed?: boolean;
1890
+ defaultRevealed?: boolean;
1891
+ onRevealChange?: (revealed: boolean) => void;
1480
1892
  }
1481
- declare function PasswordField({ label, className, isDisabled, isReadOnly, ...props }: PasswordFieldProps): react_jsx_runtime.JSX.Element;
1893
+ declare const PasswordField: react.ForwardRefExoticComponent<PasswordFieldProps & react.RefAttributes<HTMLInputElement>>;
1482
1894
 
1483
1895
  interface PopoverProps extends Omit<Popover$1.Positioner.Props, 'children' | 'className'> {
1484
1896
  children?: ReactNode;
1485
1897
  isFullscreen?: boolean;
1898
+ /** Controlled open state. Only used when the popover is not wrapped in a `DialogTrigger`. */
1486
1899
  isOpen?: boolean;
1900
+ /** Initial open state. Only used when the popover is not wrapped in a `DialogTrigger`. */
1901
+ defaultOpen?: boolean;
1487
1902
  isNonModal?: boolean;
1488
1903
  triggerRef?: React.RefObject<Element | null>;
1489
1904
  className?: string;
1490
1905
  onOpenChange?: (open: boolean) => void;
1491
1906
  }
1492
- declare function Popover({ children, isFullscreen, className, isOpen: _isOpen, isNonModal: _isNonModal, triggerRef: _triggerRef, onOpenChange: _onOpenChange, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
1907
+ declare function Popover({ children, isFullscreen, className, isOpen, defaultOpen, isNonModal, triggerRef: _triggerRef, onOpenChange, sideOffset, ...props }: PopoverProps): react_jsx_runtime.JSX.Element;
1908
+ /** Explicit, shadcn-style parts. */
1909
+ interface PopoverTriggerProps extends Popover$1.Trigger.Props {
1910
+ }
1911
+ declare function PopoverTrigger(props: PopoverTriggerProps): react_jsx_runtime.JSX.Element;
1912
+ interface PopoverCloseProps extends Popover$1.Close.Props {
1913
+ }
1914
+ declare function PopoverClose(props: PopoverCloseProps): react_jsx_runtime.JSX.Element;
1915
+ interface PopoverTitleProps extends Popover$1.Title.Props {
1916
+ }
1917
+ declare function PopoverTitle({ className, ...props }: PopoverTitleProps): react_jsx_runtime.JSX.Element;
1918
+ interface PopoverDescriptionProps extends Popover$1.Description.Props {
1919
+ }
1920
+ declare function PopoverDescription({ className, ...props }: PopoverDescriptionProps): react_jsx_runtime.JSX.Element;
1493
1921
 
1494
1922
  declare const PreviewCard: <Payload>(props: PreviewCard$1.Root.Props<Payload>) => React.JSX.Element;
1495
1923
  type PreviewCardProps = PreviewCard$1.Root.Props;
@@ -1501,10 +1929,23 @@ interface PreviewCardContentProps extends PreviewCard$1.Popup.Props {
1501
1929
  }
1502
1930
  declare const PreviewCardContent: react.ForwardRefExoticComponent<Omit<PreviewCardContentProps, "ref"> & react.RefAttributes<HTMLDivElement>>;
1503
1931
 
1932
+ interface ProgressTrackProps extends Progress.Track.Props {
1933
+ }
1934
+ declare function ProgressTrack({ className, ...props }: ProgressTrackProps): react_jsx_runtime.JSX.Element;
1935
+ interface ProgressIndicatorProps extends Progress.Indicator.Props {
1936
+ }
1937
+ declare function ProgressIndicator({ className, ...props }: ProgressIndicatorProps): react_jsx_runtime.JSX.Element;
1938
+ interface ProgressLabelProps extends Progress.Label.Props {
1939
+ }
1940
+ declare function ProgressLabel({ className, ...props }: ProgressLabelProps): react_jsx_runtime.JSX.Element;
1941
+ interface ProgressValueProps extends Progress.Value.Props {
1942
+ }
1943
+ declare function ProgressValue({ className, ...props }: ProgressValueProps): react_jsx_runtime.JSX.Element;
1504
1944
  interface ProgressBarProps extends ProgressRoot.Props {
1505
1945
  showPercentage?: boolean;
1946
+ label?: string;
1506
1947
  }
1507
- declare function ProgressBar({ className, showPercentage, ...props }: ProgressBarProps): react_jsx_runtime.JSX.Element;
1948
+ declare function ProgressBar({ className, showPercentage, label, children, ...props }: ProgressBarProps): react_jsx_runtime.JSX.Element;
1508
1949
 
1509
1950
  interface ProgressCircleProps extends ProgressRoot.Props {
1510
1951
  showPercentage?: boolean;
@@ -1522,7 +1963,7 @@ declare function RadioGroup({ label, children, className, isDisabled, isReadOnly
1522
1963
  interface RadioProps extends Omit<RadioRoot.Props, 'disabled'> {
1523
1964
  isDisabled?: boolean;
1524
1965
  }
1525
- declare function Radio({ children, className, isDisabled, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
1966
+ declare function Radio({ children, className, isDisabled, id, ...props }: RadioProps): react_jsx_runtime.JSX.Element;
1526
1967
 
1527
1968
  interface ResizablePanelGroupProps extends Omit<GroupProps, 'orientation'> {
1528
1969
  direction?: 'horizontal' | 'vertical';
@@ -1551,51 +1992,68 @@ interface SearchFieldProps extends Omit<InputHTMLAttributes<HTMLInputElement>, '
1551
1992
  onChange?: (value: string) => void;
1552
1993
  onSearch?: (value: string) => void;
1553
1994
  }
1554
- declare function SearchField({ label, placeholder, value, defaultValue, delay, onChange, onSearch, className, ...props }: SearchFieldProps): react_jsx_runtime.JSX.Element;
1995
+ declare const SearchField: react.ForwardRefExoticComponent<SearchFieldProps & react.RefAttributes<HTMLInputElement>>;
1555
1996
 
1556
1997
  interface SelectValueRenderProps {
1557
1998
  defaultChildren: ReactNode;
1558
1999
  isPlaceholder: boolean;
1559
2000
  }
2001
+ interface SelectItemOption {
2002
+ label: ReactNode;
2003
+ value: string | number;
2004
+ }
1560
2005
  interface SelectProps extends Omit<Select$1.Root.Props<string | number>, 'children' | 'value' | 'defaultValue' | 'items' | 'disabled' | 'onValueChange'> {
1561
2006
  children?: ReactNode;
1562
- items?: ReadonlyArray<string | number | {
1563
- label: ReactNode;
1564
- value: string | number;
1565
- }>;
2007
+ items?: ReadonlyArray<string | number | SelectItemOption>;
1566
2008
  value?: string | number;
1567
2009
  defaultValue?: string | number;
1568
2010
  label?: string;
1569
2011
  placeholder?: string;
1570
2012
  isLoading?: boolean;
2013
+ /** Compat alias for the Base UI `disabled` prop. */
1571
2014
  isDisabled?: boolean;
2015
+ disabled?: boolean;
2016
+ /** Size of the trigger. Emits `data-size` on the trigger element. */
2017
+ size?: 'sm' | 'md';
1572
2018
  allowSearch?: boolean;
1573
2019
  searchValue?: string;
1574
2020
  searchDelay?: number;
1575
2021
  isFullscreen?: boolean;
2022
+ /** When set, the list is wrapped in a `ScrollArea` capped at this height. */
1576
2023
  maxHeight?: string | number;
1577
2024
  showIcon?: boolean;
1578
2025
  alignItemWithTrigger?: boolean;
1579
2026
  onSearch?: (value: string) => void;
1580
2027
  onChange?: (value: string | number | null) => void;
1581
- buttonProps?: ButtonProps;
2028
+ onValueChange?: Select$1.Root.Props<string | number>['onValueChange'];
2029
+ triggerProps?: Select$1.Trigger.Props;
2030
+ /** @deprecated Use `triggerProps` instead. */
2031
+ buttonProps?: Select$1.Trigger.Props;
1582
2032
  listProps?: ListProps;
1583
2033
  popoverProps?: Select$1.Positioner.Props;
1584
2034
  renderValue?: ReactNode | ((values: SelectValueRenderProps) => ReactNode);
1585
2035
  className?: string;
1586
2036
  }
1587
- declare function Select({ value, defaultValue, label, placeholder, isLoading, isDisabled, allowSearch, searchValue, searchDelay, isFullscreen, maxHeight, showIcon, alignItemWithTrigger, onSearch, onChange, buttonProps, listProps, popoverProps, renderValue, className, children, items, onOpenChange, id, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
2037
+ declare function Select({ value, defaultValue, label, placeholder, isLoading, isDisabled, disabled, size, allowSearch, searchValue, searchDelay, isFullscreen, maxHeight, showIcon, alignItemWithTrigger, onSearch, onChange, onValueChange, triggerProps, buttonProps, listProps, popoverProps, renderValue, className, children, items, onOpenChange, id, ...props }: SelectProps): react_jsx_runtime.JSX.Element;
1588
2038
 
1589
2039
  interface SheetProps extends Dialog$1.Portal.Props {
1590
2040
  children?: ReactNode;
1591
2041
  side?: 'left' | 'right' | 'top' | 'bottom';
1592
2042
  size?: string | number;
2043
+ /** Controlled open state. Only used when the sheet is not wrapped in a `DialogTrigger`. */
1593
2044
  isOpen?: boolean;
2045
+ /** Initial open state. Only used when the sheet is not wrapped in a `DialogTrigger`. */
2046
+ defaultOpen?: boolean;
1594
2047
  onOpenChange?: (open: boolean) => void;
2048
+ /**
2049
+ * Renders a close button in the top-right corner. Defaults to `true` unless a `SheetHeader`
2050
+ * (which renders its own close button) is present, so there is never more than one.
2051
+ */
2052
+ showCloseButton?: boolean;
1595
2053
  className?: string;
1596
2054
  style?: CSSProperties;
1597
2055
  }
1598
- declare function Sheet({ side, size, children, className, style, isOpen: _isOpen, onOpenChange: _onOpenChange, ...props }: SheetProps): react_jsx_runtime.JSX.Element;
2056
+ declare function Sheet({ side, size, children, className, style, isOpen, defaultOpen, onOpenChange, showCloseButton, ...props }: SheetProps): react_jsx_runtime.JSX.Element;
1599
2057
  interface SheetHeaderProps {
1600
2058
  title?: ReactNode;
1601
2059
  showClose?: boolean;
@@ -1603,10 +2061,29 @@ interface SheetHeaderProps {
1603
2061
  children?: ReactNode;
1604
2062
  }
1605
2063
  declare function SheetHeader({ title, showClose, className, children }: SheetHeaderProps): react_jsx_runtime.JSX.Element;
2064
+ /** Explicit, shadcn-style parts. */
2065
+ interface SheetTriggerProps extends Dialog$1.Trigger.Props {
2066
+ }
2067
+ declare function SheetTrigger(props: SheetTriggerProps): react_jsx_runtime.JSX.Element;
2068
+ interface SheetCloseProps extends Dialog$1.Close.Props {
2069
+ }
2070
+ declare function SheetClose(props: SheetCloseProps): react_jsx_runtime.JSX.Element;
2071
+ interface SheetTitleProps extends Dialog$1.Title.Props {
2072
+ }
2073
+ declare function SheetTitle({ className, ...props }: SheetTitleProps): react_jsx_runtime.JSX.Element;
2074
+ interface SheetDescriptionProps extends Dialog$1.Description.Props {
2075
+ }
2076
+ declare function SheetDescription({ className, ...props }: SheetDescriptionProps): react_jsx_runtime.JSX.Element;
1606
2077
 
1607
2078
  interface SkeletonProps extends BoxProps {
1608
2079
  }
1609
- declare function Skeleton({ width, height, borderRadius, className, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
2080
+ /**
2081
+ * Placeholder block shown while content loads.
2082
+ *
2083
+ * Sizing can come either from the `width`/`height`/`borderRadius` props or from
2084
+ * utility classes passed via `className` (e.g. `className="size-10 rounded-full"`).
2085
+ */
2086
+ declare function Skeleton({ borderRadius, className, ...props }: SkeletonProps): react_jsx_runtime.JSX.Element;
1610
2087
  interface SkeletonTextProps extends ColumnProps {
1611
2088
  lines?: number;
1612
2089
  lastLineWidth?: BoxProps['width'];
@@ -1618,14 +2095,16 @@ interface SkeletonAvatarProps extends Omit<SkeletonProps, 'width' | 'height' | '
1618
2095
  }
1619
2096
  declare function SkeletonAvatar({ size, ...props }: SkeletonAvatarProps): react_jsx_runtime.JSX.Element;
1620
2097
 
1621
- interface SliderProps extends Omit<Slider$1.Root.Props<number>, 'disabled' | 'onChange' | 'onValueChange' | 'onValueCommitted'> {
2098
+ type SliderValue = number | number[];
2099
+ interface SliderProps extends Omit<Slider$1.Root.Props<SliderValue>, 'disabled' | 'onChange' | 'onValueChange' | 'onValueCommitted'> {
2100
+ className?: string;
1622
2101
  label?: ReactNode;
1623
2102
  showValue?: boolean;
1624
2103
  isDisabled?: boolean;
1625
- onChange?: (value: number) => void;
1626
- onChangeEnd?: (value: number) => void;
2104
+ onChange?: (value: SliderValue) => void;
2105
+ onChangeEnd?: (value: SliderValue) => void;
1627
2106
  }
1628
- declare function Slider({ className, showValue, label, isDisabled, onChange, onChangeEnd, ...props }: SliderProps): react_jsx_runtime.JSX.Element;
2107
+ declare function Slider({ className, showValue, label, isDisabled, onChange, onChangeEnd, value, defaultValue, min, max, orientation, ...props }: SliderProps): react_jsx_runtime.JSX.Element;
1629
2108
 
1630
2109
  interface SpinnerProps extends HTMLAttributes<HTMLDivElement> {
1631
2110
  size?: 'sm' | 'md' | 'lg';
@@ -1642,25 +2121,87 @@ interface StatusLightProps {
1642
2121
  }
1643
2122
  declare function StatusLight(props: StatusLightProps): react_jsx_runtime.JSX.Element;
1644
2123
 
1645
- interface SwitchProps extends Omit<Switch$1.Root.Props, 'checked' | 'defaultChecked' | 'disabled' | 'onCheckedChange' | 'value'> {
2124
+ declare const switchVariants: tailwind_variants.TVReturnType<{
2125
+ size: {
2126
+ sm: {
2127
+ root: string;
2128
+ thumb: string;
2129
+ };
2130
+ md: {
2131
+ root: string;
2132
+ thumb: string;
2133
+ };
2134
+ };
2135
+ }, {
2136
+ root: string[];
2137
+ thumb: string[];
2138
+ }, undefined, {
2139
+ size: {
2140
+ sm: {
2141
+ root: string;
2142
+ thumb: string;
2143
+ };
2144
+ md: {
2145
+ root: string;
2146
+ thumb: string;
2147
+ };
2148
+ };
2149
+ }, {
2150
+ root: string[];
2151
+ thumb: string[];
2152
+ }, tailwind_variants.TVReturnType<{
2153
+ size: {
2154
+ sm: {
2155
+ root: string;
2156
+ thumb: string;
2157
+ };
2158
+ md: {
2159
+ root: string;
2160
+ thumb: string;
2161
+ };
2162
+ };
2163
+ }, {
2164
+ root: string[];
2165
+ thumb: string[];
2166
+ }, undefined, unknown, unknown, undefined>>;
2167
+ type SwitchVariants = VariantProps<typeof switchVariants>;
2168
+ interface SwitchProps extends Omit<Switch$1.Root.Props, 'checked' | 'defaultChecked' | 'disabled' | 'onCheckedChange' | 'value'>, SwitchVariants {
2169
+ className?: string;
1646
2170
  children?: ReactNode;
1647
2171
  label?: string;
2172
+ /**
2173
+ * When a `boolean`, acts as a deprecated alias for `isSelected`. When a `string`, it is
2174
+ * forwarded to the underlying input as the form value. Prefer `isSelected` for checked state.
2175
+ */
1648
2176
  value?: string | boolean;
1649
2177
  isSelected?: boolean;
1650
2178
  defaultSelected?: boolean;
1651
2179
  isDisabled?: boolean;
1652
2180
  onChange?: (selected: boolean) => void;
1653
2181
  }
1654
- declare function Switch({ label, children, className, isSelected, defaultSelected, isDisabled, onChange, value, id, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
2182
+ declare function Switch({ label, children, className, size, isSelected, defaultSelected, isDisabled, onChange, value, id, ...props }: SwitchProps): react_jsx_runtime.JSX.Element;
1655
2183
 
2184
+ type TabListVariant = 'line' | 'default';
1656
2185
  interface TabsProps extends Omit<Tabs$1.Root.Props, 'value' | 'defaultValue' | 'onValueChange'> {
1657
2186
  children?: ReactNode;
2187
+ /** Controlled value. Alias of `value`. */
1658
2188
  selectedKey?: string;
2189
+ value?: string;
2190
+ /** Uncontrolled value. Alias of `defaultValue`. */
1659
2191
  defaultSelectedKey?: string;
2192
+ defaultValue?: string;
1660
2193
  onSelectionChange?: (key: string) => void;
2194
+ onValueChange?: Tabs$1.Root.Props['onValueChange'];
1661
2195
  }
1662
2196
  interface TabListProps extends Tabs$1.List.Props {
1663
2197
  children?: ReactNode;
2198
+ /**
2199
+ * `line` renders an underlined tab list with an animated indicator.
2200
+ * `default` renders a pill-style segmented control.
2201
+ *
2202
+ * @default 'line'
2203
+ */
2204
+ variant?: TabListVariant;
1664
2205
  }
1665
2206
  interface TabProps extends Omit<Tabs$1.Tab.Props, 'value' | 'disabled'> {
1666
2207
  id?: string;
@@ -1672,8 +2213,11 @@ interface TabPanelProps extends Omit<Tabs$1.Panel.Props, 'value'> {
1672
2213
  id?: string;
1673
2214
  value?: string;
1674
2215
  }
1675
- declare function Tabs({ children, className, selectedKey, defaultSelectedKey, onSelectionChange, ...props }: TabsProps): react_jsx_runtime.JSX.Element;
1676
- declare function TabList({ children, className, ...props }: TabListProps): react_jsx_runtime.JSX.Element;
2216
+ declare function Tabs({ children, className, selectedKey, value, defaultSelectedKey, defaultValue, orientation, onSelectionChange, onValueChange, ...props }: TabsProps): react_jsx_runtime.JSX.Element;
2217
+ declare function TabList({ children, className, variant, ...props }: TabListProps): react_jsx_runtime.JSX.Element;
2218
+ interface TabIndicatorProps extends Tabs$1.Indicator.Props {
2219
+ }
2220
+ declare function TabIndicator({ className, ...props }: TabIndicatorProps): react_jsx_runtime.JSX.Element;
1677
2221
  declare function Tab({ id, value, isDisabled, href, children, className, ...props }: TabProps): react_jsx_runtime.JSX.Element;
1678
2222
  declare function TabPanel({ id, value, children, className, ...props }: TabPanelProps): react_jsx_runtime.JSX.Element;
1679
2223
 
@@ -1683,16 +2227,18 @@ interface TagGroupProps extends HTMLAttributes<HTMLDivElement> {
1683
2227
  onRemove?: (keys: Set<Key>) => void;
1684
2228
  }
1685
2229
  declare function TagGroup({ label, children, className, onRemove, ...props }: TagGroupProps): react_jsx_runtime.JSX.Element;
1686
- interface TagProps extends Omit<HTMLAttributes<HTMLDivElement>, 'id'>, TagVariants {
2230
+ interface TagProps extends Omit<LiHTMLAttributes<HTMLLIElement>, 'id'>, TagVariants {
1687
2231
  id?: string | number;
1688
2232
  children?: ReactNode;
1689
2233
  isDisabled?: boolean;
1690
2234
  }
1691
2235
  declare function Tag({ id, variant, children, className, isDisabled, ...props }: TagProps): react_jsx_runtime.JSX.Element;
1692
2236
 
1693
- type NativeFieldProps = Omit<InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange' | 'readOnly' | 'disabled'>;
2237
+ type NativeFieldProps = Omit<InputHTMLAttributes<HTMLInputElement> & TextareaHTMLAttributes<HTMLTextAreaElement>, 'onChange'>;
1694
2238
  interface TextFieldProps extends NativeFieldProps {
1695
2239
  label?: string;
2240
+ description?: ReactNode;
2241
+ error?: ReactNode;
1696
2242
  placeholder?: string;
1697
2243
  allowCopy?: boolean;
1698
2244
  asTextArea?: boolean;
@@ -1702,7 +2248,8 @@ interface TextFieldProps extends NativeFieldProps {
1702
2248
  isDisabled?: boolean;
1703
2249
  onChange?: (value: any) => void;
1704
2250
  }
1705
- declare function TextField({ value, defaultValue, label, placeholder, allowCopy, asTextArea, resize, variant, onChange, isReadOnly, isDisabled, className, children: _children, ...props }: TextFieldProps): react_jsx_runtime.JSX.Element;
2251
+ type FieldElement = HTMLInputElement | HTMLTextAreaElement;
2252
+ declare const TextField: react.ForwardRefExoticComponent<TextFieldProps & react.RefAttributes<FieldElement>>;
1706
2253
 
1707
2254
  interface ThemeButtonProps extends Omit<ButtonProps, 'target'> {
1708
2255
  target?: RefObject<HTMLElement | null> | HTMLElement;
@@ -1715,7 +2262,46 @@ interface ThemeSwitcherProps {
1715
2262
  }
1716
2263
  declare function ThemeSwitcher({ className }: ThemeSwitcherProps): react_jsx_runtime.JSX.Element;
1717
2264
 
1718
- interface ToggleProps extends Omit<ToggleProps$1<string>, 'pressed' | 'defaultPressed' | 'disabled' | 'onChange' | 'onPressedChange'> {
2265
+ declare const toggleVariants: tailwind_variants.TVReturnType<{
2266
+ variant: {
2267
+ default: string;
2268
+ outline: string;
2269
+ /** @deprecated Kept for backward compatibility with `<ToggleGroup variant="primary" />`. */
2270
+ primary: string[];
2271
+ };
2272
+ size: {
2273
+ sm: string;
2274
+ md: string;
2275
+ lg: string;
2276
+ };
2277
+ }, undefined, string[], {
2278
+ variant: {
2279
+ default: string;
2280
+ outline: string;
2281
+ /** @deprecated Kept for backward compatibility with `<ToggleGroup variant="primary" />`. */
2282
+ primary: string[];
2283
+ };
2284
+ size: {
2285
+ sm: string;
2286
+ md: string;
2287
+ lg: string;
2288
+ };
2289
+ }, undefined, tailwind_variants.TVReturnType<{
2290
+ variant: {
2291
+ default: string;
2292
+ outline: string;
2293
+ /** @deprecated Kept for backward compatibility with `<ToggleGroup variant="primary" />`. */
2294
+ primary: string[];
2295
+ };
2296
+ size: {
2297
+ sm: string;
2298
+ md: string;
2299
+ lg: string;
2300
+ };
2301
+ }, undefined, string[], unknown, unknown, undefined>>;
2302
+ type ToggleVariants = VariantProps<typeof toggleVariants>;
2303
+ interface ToggleProps extends Omit<ToggleProps$1<string>, 'defaultValue' | 'onChange'>, ToggleVariants {
2304
+ className?: string;
1719
2305
  label?: string;
1720
2306
  value?: string;
1721
2307
  isSelected?: boolean;
@@ -1723,25 +2309,27 @@ interface ToggleProps extends Omit<ToggleProps$1<string>, 'pressed' | 'defaultPr
1723
2309
  isDisabled?: boolean;
1724
2310
  onChange?: (selected: boolean) => void;
1725
2311
  }
1726
- declare function Toggle({ label, children, className, isSelected, defaultSelected, isDisabled, onChange, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
2312
+ declare function Toggle({ label, children, className, variant, size, pressed, defaultPressed, disabled, isSelected, defaultSelected, isDisabled, onChange, onPressedChange, ...props }: ToggleProps): react_jsx_runtime.JSX.Element;
1727
2313
 
1728
- interface ToggleGroupProps extends Omit<ToggleGroupProps$1<string>, 'value' | 'defaultValue' | 'onChange' | 'onValueChange'> {
2314
+ interface ToggleGroupProps extends Omit<ToggleGroupProps$1<string>, 'value' | 'defaultValue' | 'onChange' | 'onValueChange'>, ToggleVariants {
1729
2315
  label?: string;
1730
2316
  value?: string[];
1731
2317
  defaultValue?: string[];
1732
- variant?: 'primary';
2318
+ /** Gap between items, in Tailwind spacing units. `0` renders a joined group. */
2319
+ spacing?: number;
2320
+ orientation?: 'horizontal' | 'vertical';
1733
2321
  onChange?: (value: string[]) => void;
1734
2322
  selectionMode?: 'single' | 'multiple';
1735
2323
  selectedKeys?: Iterable<string>;
1736
2324
  defaultSelectedKeys?: Iterable<string>;
1737
2325
  onSelectionChange?: (value: Selection) => void;
1738
2326
  }
1739
- declare function ToggleGroup({ label, value, defaultValue, variant, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
1740
- interface ToggleGroupItemProps extends Omit<ToggleProps$1<string>, 'disabled'> {
2327
+ declare function ToggleGroup({ label, value, defaultValue, variant, size, spacing, orientation, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): react_jsx_runtime.JSX.Element;
2328
+ interface ToggleGroupItemProps extends Omit<ToggleProps$1<string>, 'disabled'>, ToggleVariants {
1741
2329
  id?: string;
1742
2330
  isDisabled?: boolean;
1743
2331
  }
1744
- declare function ToggleGroupItem({ id, className, children, isDisabled, ...props }: ToggleGroupItemProps): react_jsx_runtime.JSX.Element;
2332
+ declare function ToggleGroupItem({ id, className, children, variant, size, isDisabled, ...props }: ToggleGroupItemProps): react_jsx_runtime.JSX.Element;
1745
2333
 
1746
2334
  interface ToolbarProps extends Omit<Toolbar$1.Root.Props, 'disabled'> {
1747
2335
  isDisabled?: boolean;
@@ -1752,11 +2340,28 @@ interface ToolbarGroupProps extends Toolbar$1.Group.Props {
1752
2340
  children?: ReactNode;
1753
2341
  }
1754
2342
  declare function ToolbarGroup({ className, children, ...props }: ToolbarGroupProps): react_jsx_runtime.JSX.Element;
1755
- interface ToolbarButtonProps extends ButtonProps {
2343
+ interface ToolbarButtonProps extends Omit<Toolbar$1.Button.Props, 'className'>, ButtonVariants {
1756
2344
  isDisabled?: boolean;
2345
+ className?: string;
2346
+ children?: ReactNode;
1757
2347
  }
1758
- declare function ToolbarButton({ isDisabled, variant, ...props }: ToolbarButtonProps): react_jsx_runtime.JSX.Element;
1759
- declare function ToolbarSeparator({ className, ...props }: Toolbar$1.Separator.Props): react_jsx_runtime.JSX.Element;
2348
+ /**
2349
+ * A toolbar item styled like a `Button`. The button styles are applied directly
2350
+ * to the Base UI toolbar button so no nested interactive element is rendered.
2351
+ */
2352
+ declare function ToolbarButton({ isDisabled, disabled, variant, size, className, children, ...props }: ToolbarButtonProps): react_jsx_runtime.JSX.Element;
2353
+ interface ToolbarLinkProps extends Toolbar$1.Link.Props {
2354
+ children?: ReactNode;
2355
+ }
2356
+ declare function ToolbarLink({ className, children, ...props }: ToolbarLinkProps): react_jsx_runtime.JSX.Element;
2357
+ interface ToolbarSeparatorProps extends Toolbar$1.Separator.Props {
2358
+ }
2359
+ /**
2360
+ * Separator for a `Toolbar`. The orientation is derived from the toolbar via the
2361
+ * `data-orientation` attribute set by Base UI, so it flips automatically inside a
2362
+ * vertical toolbar.
2363
+ */
2364
+ declare function ToolbarSeparator({ className, ...props }: ToolbarSeparatorProps): react_jsx_runtime.JSX.Element;
1760
2365
 
1761
2366
  interface ToastProps extends HTMLAttributes<HTMLDivElement> {
1762
2367
  children?: ReactNode;
@@ -1783,13 +2388,23 @@ interface ToastProviderProps extends ToasterProps {
1783
2388
  declare const ToastContext: react.Context<{}>;
1784
2389
  declare function ToastProvider({ children, ...props }: ToastProviderProps): react_jsx_runtime.JSX.Element;
1785
2390
 
2391
+ interface ZenTooltipConfig {
2392
+ /** How long to wait before opening a tooltip on hover, in milliseconds. */
2393
+ delay?: number;
2394
+ /** How long to wait before closing a tooltip, in milliseconds. */
2395
+ closeDelay?: number;
2396
+ /** Window in which an adjacent tooltip opens instantly, in milliseconds. */
2397
+ timeout?: number;
2398
+ }
1786
2399
  interface ZenProviderProps {
1787
2400
  theme?: Theme;
1788
2401
  colorScheme?: 'light' | 'dark' | 'system';
1789
2402
  palette?: Palette;
1790
2403
  toast?: ToasterProps;
2404
+ /** Shared tooltip grouping/delay config. Defaults to Base UI's own defaults. */
2405
+ tooltip?: ZenTooltipConfig;
1791
2406
  children: ReactNode;
1792
2407
  }
1793
- declare function ZenProvider({ children, theme, colorScheme, palette, toast }: ZenProviderProps): react_jsx_runtime.JSX.Element;
2408
+ declare function ZenProvider({ children, theme, colorScheme, palette, toast, tooltip, }: ZenProviderProps): react_jsx_runtime.JSX.Element;
1794
2409
 
1795
- export { Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, Alert, AlertDescription, AlertDialog, type AlertDialogProps, type AlertProps, AlertTitle, AspectRatio, type AspectRatioProps, Autocomplete, type AutocompleteProps, Avatar, type AvatarProps, Badge, type BadgeProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, type BreadcrumbProps, Breadcrumbs, type BreadcrumbsProps, type BreakpointKey, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonGroupTextRenderProps, type ButtonProps, type ButtonRenderProps, Calendar, type CalendarProps, Carousel, CarouselItem, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Code, type CodeProps, Collapsible, CollapsiblePanel, type CollapsiblePanelProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, type ColumnProps, ComboBox, type ComboBoxProps, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, ContextMenu, type ContextMenuProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, Dialog, type DialogProps, type DialogRenderProps, DialogTrigger, Dots, type DotsProps, Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyMediaProps, EmptyTitle, FileTrigger, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Focusable, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, Icon, type IconProps, Image, type ImageProps, InputGroup, InputGroupAddon, type InputGroupAddonAlign, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupButtonSize, InputGroupInput, type InputGroupProps, InputGroupText, InputGroupTextarea, Kbd, type KbdProps, Label, type LabelProps, List, ListItem, type ListItemProps, ListPrimitiveProvider, type ListProps, ListSection, type ListSectionProps, ListSeparator, type ListSeparatorProps, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, MenuSeparator, type MenuSeparatorProps, MenuTrigger, Menubar, MenubarMenu, type MenubarMenuProps, type MenubarProps, Meter, type MeterProps, Modal, type ModalProps, Navbar, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, NumberField, type NumberFieldProps, OTPField, type OTPFieldProps, PALETTES, PageHeader, PageHeaderActions, type PageHeaderActionsProps, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, type PaginationProps, type Palette, PasswordField, type PasswordFieldProps, Popover, type PopoverProps, type PressEvent, Pressable, PreviewCard, PreviewCardContent, type PreviewCardContentProps, type PreviewCardProps, PreviewCardTrigger, type PreviewCardTriggerProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RenderProp, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, RouterProvider, Row, type RowProps, ScrollArea, type ScrollAreaProps, SearchField, type SearchFieldProps, Select, type SelectProps, type SelectValueRenderProps, type Selection, Separator, type SeparatorProps, Sheet, SheetHeader, type SheetHeaderProps, type SheetProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, type StrokeWidth, SubMenuTrigger, SubMenuTrigger as SubmenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableHeader, type TableProps, TableRow, type TableRowProps, Tabs, type TabsProps, Tag, TagGroup, type TagGroupProps, type TagProps, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, type ToolbarGroupProps, type ToolbarProps, ToolbarSeparator, Tooltip, TooltipBubble, type TooltipBubbleProps, type TooltipProps, TooltipTrigger, ZenProvider, type ZenProviderProps, getCssColorValue, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapSpace, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, selectionToStrings, toSelection, useBreakpoint, useDebounce, useInitTheme, useTheme, useToast };
2410
+ export { Accordion, AccordionContent, AccordionItem, type AccordionItemProps, AccordionPanel, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, Alert, AlertDescription, AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogDescription, type AlertDialogDescriptionProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, type AlertProps, AlertTitle, AspectRatio, type AspectRatioProps, Autocomplete, type AutocompleteProps, Avatar, AvatarFallback, type AvatarFallbackProps, AvatarGroup, type AvatarGroupProps, AvatarImage, type AvatarImageProps, type AvatarProps, Badge, type BadgeProps, type BadgeRenderProps, Blockquote, type BlockquoteProps, Box, type BoxProps, type BoxRenderProps, Breadcrumb, BreadcrumbEllipsis, type BreadcrumbEllipsisProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, type BreadcrumbLinkRenderProps, BreadcrumbList, type BreadcrumbListProps, BreadcrumbPage, type BreadcrumbPageProps, type BreadcrumbProps, BreadcrumbSeparator, type BreadcrumbSeparatorProps, Breadcrumbs, type BreadcrumbsProps, type BreakpointKey, Button, ButtonGroup, type ButtonGroupOrientation, type ButtonGroupProps, ButtonGroupSeparator, type ButtonGroupSeparatorProps, ButtonGroupText, type ButtonGroupTextProps, type ButtonGroupTextRenderProps, type ButtonProps, type ButtonRenderProps, type ButtonRenderState, Calendar, CalendarDayButton, type CalendarProps, type CalendarSelection, Carousel, type CarouselApi, type CarouselArrowProps, CarouselContent, type CarouselContentProps, type CarouselContextValue, CarouselDots, type CarouselDotsProps, CarouselItem, type CarouselItemProps, CarouselNext, type CarouselOrientation, CarouselPrevious, type CarouselProps, Checkbox, CheckboxGroup, type CheckboxGroupProps, type CheckboxProps, Code, type CodeProps, Collapsible, CollapsiblePanel, type CollapsiblePanelProps, type CollapsibleProps, CollapsibleTrigger, type CollapsibleTriggerProps, Column, type ColumnProps, ComboBox, type ComboBoxItem, type ComboBoxProps, type ComboBoxValue, Command, CommandDialog, type CommandDialogProps, CommandEmpty, type CommandEmptyProps, CommandGroup, type CommandGroupProps, CommandInput, type CommandInputProps, CommandItem, type CommandItemProps, CommandList, type CommandListProps, type CommandProps, CommandSeparator, type CommandSeparatorProps, CommandShortcut, type CommandShortcutProps, ConfirmationDialog, type ConfirmationDialogProps, Container, type ContainerProps, ContextMenu, ContextMenuContent, type ContextMenuContentProps, type ContextMenuProps, ContextMenuRoot, type ContextMenuRootProps, ContextMenuTrigger, type ContextMenuTriggerProps, CopyButton, type CopyButtonProps, DataCard, type DataCardProps, DataColumn, type DataColumnProps, DataTable, type DataTableProps, DatePicker, type DatePickerProps, Dialog, type DialogProps, type DialogRenderProps, DialogTrigger, Dots, type DotsProps, Drawer, DrawerClose, type DrawerCloseProps, DrawerContent, type DrawerContentProps, DrawerDescription, type DrawerDescriptionProps, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerProps, DrawerTitle, type DrawerTitleProps, DrawerTrigger, type DrawerTriggerProps, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, type EmptyMediaProps, EmptyTitle, Field, FieldContent, FieldControl, type FieldControlProps, FieldDescription, type FieldDescriptionProps, FieldError, type FieldErrorProps, FieldGroup, FieldLabel, type FieldLabelProps, FieldLegend, type FieldLegendProps, type FieldOrientation, type FieldProps, FieldSeparator, type FieldSeparatorProps, FieldSet, FieldTitle, FileTrigger, Flexbox, type FlexboxProps, FloatingTooltip, type FloatingTooltipProps, Focusable, Form, FormButtons, type FormButtonsProps, FormController, type FormControllerProps, FormField, FormFieldArray, type FormFieldArrayProps, type FormFieldProps, type FormProps, FormResetButton, type FormResetButtonProps, FormSubmitButton, type FormSubmitButtonProps, Grid, type GridProps, Heading, type HeadingProps, type HoverButtonProps, HoverTrigger, type HoverTriggerProps, Icon, type IconProps, Image, type ImageProps, Input, InputGroup, InputGroupAddon, type InputGroupAddonAlign, type InputGroupAddonProps, InputGroupButton, type InputGroupButtonProps, type InputGroupButtonSize, InputGroupInput, type InputGroupProps, InputGroupText, InputGroupTextarea, type InputProps, Kbd, KbdGroup, type KbdGroupProps, type KbdProps, Label, type LabelProps, List, ListItem, type ListItemProps, ListPrimitiveProvider, type ListProps, ListSection, type ListSectionProps, ListSeparator, type ListSeparatorProps, Loading, LoadingButton, type LoadingButtonProps, type LoadingProps, Menu, MenuItem, type MenuItemProps, type MenuProps, MenuSection, type MenuSectionProps, type MenuSelectionMode, MenuSeparator, type MenuSeparatorProps, MenuShortcut, type MenuShortcutProps, MenuTrigger, type MenuVariant, MenuVariantContext, Menubar, MenubarMenu, type MenubarMenuProps, type MenubarProps, Meter, type MeterProps, Modal, ModalClose, type ModalCloseProps, ModalDescription, type ModalDescriptionProps, type ModalProps, ModalTitle, type ModalTitleProps, ModalTrigger, type ModalTriggerProps, Navbar, NavbarItem, type NavbarItemProps, NavbarLink, type NavbarLinkProps, type NavbarProps, NumberField, type NumberFieldProps, OTPField, type OTPFieldProps, OTPFieldSeparator, PALETTES, PageHeader, PageHeaderActions, type PageHeaderActionsProps, type PageHeaderProps, PageHeaderTitle, type PageHeaderTitleProps, Pagination, PaginationContent, type PaginationContentProps, PaginationEllipsis, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkProps, type PaginationNavProps, PaginationNext, PaginationPrevious, type PaginationProps, type PaginationRenderLinkProps, type Palette, PasswordField, type PasswordFieldProps, Popover, PopoverClose, type PopoverCloseProps, PopoverDescription, type PopoverDescriptionProps, type PopoverProps, PopoverTitle, type PopoverTitleProps, PopoverTrigger, type PopoverTriggerProps, type PressEvent, Pressable, PreviewCard, PreviewCardContent, type PreviewCardContentProps, type PreviewCardProps, PreviewCardTrigger, type PreviewCardTriggerProps, ProgressBar, type ProgressBarProps, ProgressCircle, type ProgressCircleProps, ProgressIndicator, type ProgressIndicatorProps, ProgressLabel, type ProgressLabelProps, ProgressTrack, type ProgressTrackProps, ProgressValue, type ProgressValueProps, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RenderProp, ResizableHandle, type ResizableHandleProps, ResizablePanel, ResizablePanelGroup, type ResizablePanelGroupProps, type ResizablePanelProps, RouterProvider, Row, type RowProps, ScrollArea, type ScrollAreaProps, SearchField, type SearchFieldProps, Select, type SelectItemOption, type SelectProps, type SelectValueRenderProps, type Selection, Separator, type SeparatorProps, Sheet, SheetClose, type SheetCloseProps, SheetDescription, type SheetDescriptionProps, SheetHeader, type SheetHeaderProps, type SheetProps, SheetTitle, type SheetTitleProps, SheetTrigger, type SheetTriggerProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, type SkeletonProps, SkeletonText, type SkeletonTextProps, Slider, type SliderProps, Spinner, type SpinnerProps, StatusLight, type StatusLightProps, type StrokeWidth, SubMenuTrigger, SubMenuTrigger as SubmenuTrigger, type SubmenuTriggerProps, Switch, type SwitchProps, type SwitchVariants, Tab, TabIndicator, type TabIndicatorProps, TabList, type TabListProps, type TabListVariant, TabPanel, type TabPanelProps, type TabProps, Table, TableBody, TableCaption, type TableCaptionProps, TableCell, type TableCellProps, TableColumn, type TableColumnProps, TableContainer, type TableContainerProps, TableFooter, type TableFooterProps, TableHead, TableHeader, type TableProps, TableRow, type TableRowProps, TableSelectionCheckbox, type TableSelectionCheckboxProps, Tabs, type TabsProps, Tag, TagGroup, type TagGroupProps, type TagProps, Text, TextField, type TextFieldProps, type TextProps, type TextRenderProps, Textarea, type TextareaProps, type Theme, ThemeButton, type ThemeButtonProps, type ThemeMode, ThemeSwitcher, type ThemeSwitcherProps, Toast, ToastContext, type ToastOptions, type ToastPosition, type ToastProps, ToastProvider, type ToastProviderProps, type ToastState, type ToastVariant, Toaster, type ToasterProps, Toggle, ToggleGroup, ToggleGroupItem, type ToggleGroupItemProps, type ToggleGroupProps, type ToggleProps, type ToggleVariants, Toolbar, ToolbarButton, type ToolbarButtonProps, ToolbarGroup, type ToolbarGroupProps, ToolbarLink, type ToolbarLinkProps, type ToolbarProps, ToolbarSeparator, type ToolbarSeparatorProps, Tooltip, TooltipBubble, type TooltipBubbleProps, TooltipContent, type TooltipContentProps, type TooltipProps, TooltipTrigger, ZenProvider, type ZenProviderProps, type ZenTooltipConfig, getCssColorValue, inputGroupControlClasses, isHeightPreset, isMaxHeightPreset, isMaxWidthPreset, isMinHeightPreset, isMinWidthPreset, isWidthPreset, labelClasses, mapAlignContent, mapAlignItems, mapAlignSelf, mapBackgroundColor, mapBorder, mapBorderColor, mapBorderRadius, mapBorderWidth, mapCursor, mapDisplay, mapFlexDirection, mapFlexWrap, mapFontSize, mapFontWeight, mapGap, mapGridAutoFlow, mapGridColumns, mapGridRows, mapHeadingSize, mapHeight, mapJustifyContent, mapJustifyItems, mapLetterSpacing, mapLineHeight, mapMargin, mapMaxHeight, mapMaxWidth, mapMinHeight, mapMinWidth, mapOpacity, mapOverflow, mapPadding, mapPointerEvents, mapPosition, mapShadow, mapSpace, mapStateStyles, mapTextAlign, mapTextColor, mapTextDecorationStyle, mapTextIndent, mapTextTransform, mapTextWrap, mapVerticalAlign, mapWhitespace, mapWidth, mapWordBreak, removeToast, resolveRender, selectionToStrings, switchVariants, toSelection, toggleVariants, useBreakpoint, useCarousel, useDebounce, useInitTheme, useTheme, useToast };