react-aria-components 1.3.0 → 1.3.1
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/GridList.main.js +4 -0
- package/dist/GridList.main.js.map +1 -1
- package/dist/GridList.mjs +4 -0
- package/dist/GridList.module.js +4 -0
- package/dist/GridList.module.js.map +1 -1
- package/dist/Tabs.main.js +12 -1
- package/dist/Tabs.main.js.map +1 -1
- package/dist/Tabs.mjs +12 -1
- package/dist/Tabs.module.js +12 -1
- package/dist/Tabs.module.js.map +1 -1
- package/dist/types.d.ts +70 -70
- package/dist/types.d.ts.map +1 -1
- package/package.json +24 -24
- package/src/GridList.tsx +2 -1
- package/src/Tabs.tsx +9 -1
package/dist/types.d.ts
CHANGED
|
@@ -116,7 +116,7 @@ export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
|
116
116
|
elementType?: string;
|
|
117
117
|
}
|
|
118
118
|
export const LabelContext: React.Context<ContextValue<LabelProps, HTMLLabelElement>>;
|
|
119
|
-
export const Label: (props: LabelProps & React.RefAttributes<HTMLLabelElement>) => React.
|
|
119
|
+
export const Label: (props: LabelProps & React.RefAttributes<HTMLLabelElement>) => React.ReactElement | null;
|
|
120
120
|
export interface CheckboxGroupProps extends Omit<AriaCheckboxGroupProps, 'children' | 'label' | 'description' | 'errorMessage' | 'validationState' | 'validationBehavior'>, RACValidation, RenderProps<CheckboxGroupRenderProps>, SlotProps {
|
|
121
121
|
}
|
|
122
122
|
export interface CheckboxProps extends Omit<AriaCheckboxProps, 'children' | 'validationState' | 'validationBehavior'>, HoverEvents, RACValidation, RenderProps<CheckboxRenderProps>, SlotProps {
|
|
@@ -209,11 +209,11 @@ export const CheckboxGroupStateContext: React.Context<CheckboxGroupState>;
|
|
|
209
209
|
* A checkbox allows a user to select multiple items from a list of individual items, or
|
|
210
210
|
* to mark one individual item as selected.
|
|
211
211
|
*/
|
|
212
|
-
export const Checkbox: (props: CheckboxProps & React.RefAttributes<HTMLLabelElement>) => React.
|
|
212
|
+
export const Checkbox: (props: CheckboxProps & React.RefAttributes<HTMLLabelElement>) => React.ReactElement | null;
|
|
213
213
|
/**
|
|
214
214
|
* A checkbox group allows a user to select multiple items from a list of options.
|
|
215
215
|
*/
|
|
216
|
-
export const CheckboxGroup: (props: CheckboxGroupProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
216
|
+
export const CheckboxGroup: (props: CheckboxGroupProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
217
217
|
export interface ColorThumbRenderProps {
|
|
218
218
|
/**
|
|
219
219
|
* The selected color, excluding the alpha channel.
|
|
@@ -302,7 +302,7 @@ export const InputContext: React.Context<ContextValue<InputProps, HTMLInputEleme
|
|
|
302
302
|
/**
|
|
303
303
|
* An input allows a user to input text.
|
|
304
304
|
*/
|
|
305
|
-
export const Input: (props: InputProps & React.RefAttributes<HTMLInputElement>) => React.
|
|
305
|
+
export const Input: (props: InputProps & React.RefAttributes<HTMLInputElement>) => React.ReactElement | null;
|
|
306
306
|
export interface ColorFieldRenderProps {
|
|
307
307
|
/**
|
|
308
308
|
* Whether the color field is disabled.
|
|
@@ -370,7 +370,7 @@ export interface SliderRenderProps {
|
|
|
370
370
|
/**
|
|
371
371
|
* A slider allows a user to select one or more values within a range.
|
|
372
372
|
*/
|
|
373
|
-
export const Slider: <T extends number | number[]>(props: SliderProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
373
|
+
export const Slider: <T extends number | number[]>(props: SliderProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
374
374
|
export interface SliderOutputProps extends RenderProps<SliderRenderProps> {
|
|
375
375
|
}
|
|
376
376
|
interface SliderOutputContextValue extends Omit<OutputHTMLAttributes<HTMLOutputElement>, 'children' | 'className' | 'style'>, SliderOutputProps {
|
|
@@ -378,7 +378,7 @@ interface SliderOutputContextValue extends Omit<OutputHTMLAttributes<HTMLOutputE
|
|
|
378
378
|
/**
|
|
379
379
|
* A slider output displays the current value of a slider as text.
|
|
380
380
|
*/
|
|
381
|
-
export const SliderOutput: (props: SliderOutputProps & React.RefAttributes<HTMLOutputElement>) => React.
|
|
381
|
+
export const SliderOutput: (props: SliderOutputProps & React.RefAttributes<HTMLOutputElement>) => React.ReactElement | null;
|
|
382
382
|
export interface SliderTrackRenderProps extends SliderRenderProps {
|
|
383
383
|
/**
|
|
384
384
|
* Whether the slider track is currently hovered with a mouse.
|
|
@@ -393,7 +393,7 @@ interface SliderTrackContextValue extends Omit<HTMLAttributes<HTMLElement>, 'chi
|
|
|
393
393
|
/**
|
|
394
394
|
* A slider track is a container for one or more slider thumbs.
|
|
395
395
|
*/
|
|
396
|
-
export const SliderTrack: (props: SliderTrackProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
396
|
+
export const SliderTrack: (props: SliderTrackProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
397
397
|
export interface SliderThumbRenderProps {
|
|
398
398
|
/**
|
|
399
399
|
* State of the slider.
|
|
@@ -434,7 +434,7 @@ export interface SliderThumbProps extends Omit<AriaSliderThumbProps, 'label' | '
|
|
|
434
434
|
/**
|
|
435
435
|
* A slider thumb represents an individual value that the user can adjust within a slider track.
|
|
436
436
|
*/
|
|
437
|
-
export const SliderThumb: (props: SliderThumbProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
437
|
+
export const SliderThumb: (props: SliderThumbProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
438
438
|
export interface ColorSliderRenderProps {
|
|
439
439
|
/**
|
|
440
440
|
* The orientation of the color slider.
|
|
@@ -571,7 +571,7 @@ export interface SectionProps<T> extends Omit<_SectionProps1<T>, 'children' | 't
|
|
|
571
571
|
/** Values that should invalidate the item cache when using dynamic collections. */
|
|
572
572
|
dependencies?: any[];
|
|
573
573
|
}
|
|
574
|
-
export const Section: <T extends object>(props: SectionProps<T> & React.RefAttributes<HTMLElement>) => React.
|
|
574
|
+
export const Section: <T extends object>(props: SectionProps<T> & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
575
575
|
interface CollectionBranchProps {
|
|
576
576
|
/** The collection of items to render. */
|
|
577
577
|
collection: Collection<Node<unknown>>;
|
|
@@ -643,7 +643,7 @@ export const LinkContext: React.Context<ContextValue<LinkProps, HTMLAnchorElemen
|
|
|
643
643
|
* A link allows a user to navigate to another page or resource within a web page
|
|
644
644
|
* or application.
|
|
645
645
|
*/
|
|
646
|
-
export const Link: (props: LinkProps & React.RefAttributes<HTMLAnchorElement>) => React.
|
|
646
|
+
export const Link: (props: LinkProps & React.RefAttributes<HTMLAnchorElement>) => React.ReactElement | null;
|
|
647
647
|
export interface BreadcrumbsProps<T> extends Omit<CollectionProps<T>, 'disabledKeys'>, AriaBreadcrumbsProps, StyleProps, SlotProps {
|
|
648
648
|
/** Whether the breadcrumbs are disabled. */
|
|
649
649
|
isDisabled?: boolean;
|
|
@@ -654,7 +654,7 @@ export const BreadcrumbsContext: React.Context<ContextValue<BreadcrumbsProps<any
|
|
|
654
654
|
/**
|
|
655
655
|
* Breadcrumbs display a hierarchy of links to the current page or resource in an application.
|
|
656
656
|
*/
|
|
657
|
-
export const Breadcrumbs: <T extends object>(props: BreadcrumbsProps<T> & React.RefAttributes<HTMLOListElement>) => React.
|
|
657
|
+
export const Breadcrumbs: <T extends object>(props: BreadcrumbsProps<T> & React.RefAttributes<HTMLOListElement>) => React.ReactElement | null;
|
|
658
658
|
export interface BreadcrumbRenderProps {
|
|
659
659
|
/**
|
|
660
660
|
* Whether the breadcrumb is for the current page.
|
|
@@ -671,7 +671,7 @@ export interface BreadcrumbProps extends RenderProps<BreadcrumbRenderProps> {
|
|
|
671
671
|
/**
|
|
672
672
|
* A Breadcrumb represents an individual item in a `<Breadcrumbs>` list.
|
|
673
673
|
*/
|
|
674
|
-
export const Breadcrumb: (props: BreadcrumbProps & React.RefAttributes<object>) => React.
|
|
674
|
+
export const Breadcrumb: (props: BreadcrumbProps & React.RefAttributes<object>) => React.ReactElement | null;
|
|
675
675
|
export interface ButtonRenderProps {
|
|
676
676
|
/**
|
|
677
677
|
* Whether the button is currently hovered with a mouse.
|
|
@@ -730,7 +730,7 @@ export const ButtonContext: React.Context<ContextValue<ButtonContextValue, HTMLB
|
|
|
730
730
|
/**
|
|
731
731
|
* A button allows a user to perform an action, with mouse, touch, and keyboard interactions.
|
|
732
732
|
*/
|
|
733
|
-
export const Button: (props: ButtonProps & React.RefAttributes<HTMLButtonElement>) => React.
|
|
733
|
+
export const Button: (props: ButtonProps & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
|
|
734
734
|
export interface CalendarRenderProps {
|
|
735
735
|
/**
|
|
736
736
|
* Whether the calendar is disabled.
|
|
@@ -774,11 +774,11 @@ export const RangeCalendarStateContext: React.Context<RangeCalendarState>;
|
|
|
774
774
|
/**
|
|
775
775
|
* A calendar displays one or more date grids and allows users to select a single date.
|
|
776
776
|
*/
|
|
777
|
-
export const Calendar: <T extends DateValue>(props: CalendarProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
777
|
+
export const Calendar: <T extends DateValue>(props: CalendarProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
778
778
|
/**
|
|
779
779
|
* A range calendar displays one or more date grids and allows users to select a contiguous range of dates.
|
|
780
780
|
*/
|
|
781
|
-
export const RangeCalendar: <T extends DateValue>(props: RangeCalendarProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
781
|
+
export const RangeCalendar: <T extends DateValue>(props: RangeCalendarProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
782
782
|
export interface CalendarCellRenderProps {
|
|
783
783
|
/** The date that the cell represents. */
|
|
784
784
|
date: CalendarDate;
|
|
@@ -878,7 +878,7 @@ export interface CalendarGridProps extends StyleProps {
|
|
|
878
878
|
* A calendar grid displays a single grid of days within a calendar or range calendar which
|
|
879
879
|
* can be keyboard navigated and selected by the user.
|
|
880
880
|
*/
|
|
881
|
-
export const CalendarGrid: (props: CalendarGridProps & React.RefAttributes<HTMLTableElement>) => React.
|
|
881
|
+
export const CalendarGrid: (props: CalendarGridProps & React.RefAttributes<HTMLTableElement>) => React.ReactElement | null;
|
|
882
882
|
export interface CalendarGridHeaderProps extends StyleProps {
|
|
883
883
|
/** A function to render a `<CalendarHeaderCell>` for a weekday name. */
|
|
884
884
|
children: (day: string) => ReactElement;
|
|
@@ -886,7 +886,7 @@ export interface CalendarGridHeaderProps extends StyleProps {
|
|
|
886
886
|
/**
|
|
887
887
|
* A calendar grid header displays a row of week day names at the top of a month.
|
|
888
888
|
*/
|
|
889
|
-
export const CalendarGridHeader: (props: CalendarGridHeaderProps & React.RefAttributes<HTMLTableSectionElement>) => React.
|
|
889
|
+
export const CalendarGridHeader: (props: CalendarGridHeaderProps & React.RefAttributes<HTMLTableSectionElement>) => React.ReactElement | null;
|
|
890
890
|
export interface CalendarHeaderCellProps extends DOMProps {
|
|
891
891
|
}
|
|
892
892
|
/**
|
|
@@ -900,7 +900,7 @@ export interface CalendarGridBodyProps extends StyleProps {
|
|
|
900
900
|
/**
|
|
901
901
|
* A calendar grid body displays a grid of calendar cells within a month.
|
|
902
902
|
*/
|
|
903
|
-
export const CalendarGridBody: (props: CalendarGridBodyProps & React.RefAttributes<HTMLTableSectionElement>) => React.
|
|
903
|
+
export const CalendarGridBody: (props: CalendarGridBodyProps & React.RefAttributes<HTMLTableSectionElement>) => React.ReactElement | null;
|
|
904
904
|
export interface CalendarCellProps extends RenderProps<CalendarCellRenderProps>, _HoverEvents1 {
|
|
905
905
|
/** The date to render in the cell. */
|
|
906
906
|
date: CalendarDate;
|
|
@@ -908,7 +908,7 @@ export interface CalendarCellProps extends RenderProps<CalendarCellRenderProps>,
|
|
|
908
908
|
/**
|
|
909
909
|
* A calendar cell displays a date cell within a calendar grid which can be selected by the user.
|
|
910
910
|
*/
|
|
911
|
-
export const CalendarCell: (props: CalendarCellProps & React.RefAttributes<HTMLTableCellElement>) => React.
|
|
911
|
+
export const CalendarCell: (props: CalendarCellProps & React.RefAttributes<HTMLTableCellElement>) => React.ReactElement | null;
|
|
912
912
|
export interface ColorSwatchRenderProps {
|
|
913
913
|
/** The color of the swatch. */
|
|
914
914
|
color: Color;
|
|
@@ -994,11 +994,11 @@ interface DropIndicatorContextValue {
|
|
|
994
994
|
*/
|
|
995
995
|
export const DropIndicator: React.ForwardRefExoticComponent<DropIndicatorProps & React.RefAttributes<HTMLElement>>;
|
|
996
996
|
export const HeaderContext: React.Context<ContextValue<React.HTMLAttributes<HTMLElement>, HTMLElement>>;
|
|
997
|
-
export const Header: (props: React.HTMLAttributes<HTMLElement> & React.RefAttributes<object>) => React.
|
|
997
|
+
export const Header: (props: React.HTMLAttributes<HTMLElement> & React.RefAttributes<object>) => React.ReactElement | null;
|
|
998
998
|
export interface SeparatorProps extends _SeparatorProps1, StyleProps, SlotProps {
|
|
999
999
|
}
|
|
1000
1000
|
export const SeparatorContext: React.Context<ContextValue<SeparatorProps, HTMLElement>>;
|
|
1001
|
-
export const Separator: (props: SeparatorProps & React.RefAttributes<object>) => React.
|
|
1001
|
+
export const Separator: (props: SeparatorProps & React.RefAttributes<object>) => React.ReactElement | null;
|
|
1002
1002
|
export interface ListBoxRenderProps {
|
|
1003
1003
|
/**
|
|
1004
1004
|
* Whether the listbox has no items and should display its empty state.
|
|
@@ -1054,7 +1054,7 @@ export const ListStateContext: React.Context<ListState<any>>;
|
|
|
1054
1054
|
/**
|
|
1055
1055
|
* A listbox displays a list of options and allows a user to select one or more of them.
|
|
1056
1056
|
*/
|
|
1057
|
-
export const ListBox: <T extends object>(props: ListBoxProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
1057
|
+
export const ListBox: <T extends object>(props: ListBoxProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1058
1058
|
export interface ListBoxItemRenderProps extends ItemRenderProps {
|
|
1059
1059
|
}
|
|
1060
1060
|
export interface ListBoxItemProps<T = object> extends RenderProps<ListBoxItemRenderProps>, LinkDOMProps, _HoverEvents1 {
|
|
@@ -1077,7 +1077,7 @@ export interface ListBoxItemProps<T = object> extends RenderProps<ListBoxItemRen
|
|
|
1077
1077
|
/**
|
|
1078
1078
|
* A ListBoxItem represents an individual option in a ListBox.
|
|
1079
1079
|
*/
|
|
1080
|
-
export const ListBoxItem: <T extends object>(props: ListBoxItemProps<T> & React.RefAttributes<T>) => React.
|
|
1080
|
+
export const ListBoxItem: <T extends object>(props: ListBoxItemProps<T> & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1081
1081
|
export interface ColorSwatchPickerRenderProps extends Omit<ListBoxRenderProps, 'isDropTarget'> {
|
|
1082
1082
|
}
|
|
1083
1083
|
export interface ColorSwatchPickerProps extends ValueBase<string | _Color1, _Color1>, AriaLabelingProps, StyleRenderProps<ColorSwatchPickerRenderProps> {
|
|
@@ -1163,7 +1163,7 @@ export const GroupContext: React.Context<ContextValue<GroupProps, HTMLDivElement
|
|
|
1163
1163
|
/**
|
|
1164
1164
|
* A group represents a set of related UI controls, and supports interactive states for styling.
|
|
1165
1165
|
*/
|
|
1166
|
-
export const Group: (props: GroupProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1166
|
+
export const Group: (props: GroupProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1167
1167
|
export interface OverlayArrowProps extends Omit<HTMLAttributes<HTMLDivElement>, 'className' | 'style' | 'children'>, RenderProps<OverlayArrowRenderProps> {
|
|
1168
1168
|
}
|
|
1169
1169
|
export interface OverlayArrowRenderProps {
|
|
@@ -1177,7 +1177,7 @@ export interface OverlayArrowRenderProps {
|
|
|
1177
1177
|
* An OverlayArrow renders a custom arrow element relative to an overlay element
|
|
1178
1178
|
* such as a popover or tooltip such that it aligns with a trigger element.
|
|
1179
1179
|
*/
|
|
1180
|
-
export const OverlayArrow: (props: OverlayArrowProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1180
|
+
export const OverlayArrow: (props: OverlayArrowProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1181
1181
|
export interface PopoverProps extends Omit<PositionProps, 'isOpen'>, Omit<AriaPopoverProps, 'popoverRef' | 'triggerRef' | 'offset' | 'arrowSize'>, OverlayTriggerProps, RenderProps<PopoverRenderProps>, SlotProps {
|
|
1182
1182
|
/**
|
|
1183
1183
|
* The name of the component that triggered the popover. This is reflected on the element
|
|
@@ -1238,7 +1238,7 @@ export const PopoverContext: React.Context<ContextValue<PopoverProps, HTMLElemen
|
|
|
1238
1238
|
/**
|
|
1239
1239
|
* A popover is an overlay element positioned relative to a trigger.
|
|
1240
1240
|
*/
|
|
1241
|
-
export const Popover: (props: PopoverProps & React.RefAttributes<HTMLElement>) => React.
|
|
1241
|
+
export const Popover: (props: PopoverProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
1242
1242
|
export interface DialogTriggerProps extends OverlayTriggerProps {
|
|
1243
1243
|
children: ReactNode;
|
|
1244
1244
|
}
|
|
@@ -1258,7 +1258,7 @@ export function DialogTrigger(props: DialogTriggerProps): React.JSX.Element;
|
|
|
1258
1258
|
/**
|
|
1259
1259
|
* A dialog is an overlay shown above other content in an application.
|
|
1260
1260
|
*/
|
|
1261
|
-
export const Dialog: (props: DialogProps & React.RefAttributes<HTMLElement>) => React.
|
|
1261
|
+
export const Dialog: (props: DialogProps & React.RefAttributes<HTMLElement>) => React.ReactElement | null;
|
|
1262
1262
|
export interface ComboBoxRenderProps {
|
|
1263
1263
|
/**
|
|
1264
1264
|
* Whether the combobox is currently open.
|
|
@@ -1298,7 +1298,7 @@ export const ComboBoxStateContext: React.Context<ComboBoxState<any>>;
|
|
|
1298
1298
|
/**
|
|
1299
1299
|
* A combo box combines a text input with a listbox, allowing users to filter a list of options to items matching a query.
|
|
1300
1300
|
*/
|
|
1301
|
-
export const ComboBox: <T extends object>(props: ComboBoxProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
1301
|
+
export const ComboBox: <T extends object>(props: ComboBoxProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1302
1302
|
export interface DateFieldRenderProps {
|
|
1303
1303
|
/**
|
|
1304
1304
|
* State of the date field.
|
|
@@ -1327,12 +1327,12 @@ export const TimeFieldStateContext: React.Context<TimeFieldState>;
|
|
|
1327
1327
|
* A date field allows users to enter and edit date and time values using a keyboard.
|
|
1328
1328
|
* Each part of a date value is displayed in an individually editable segment.
|
|
1329
1329
|
*/
|
|
1330
|
-
export const DateField: <T extends DateValue>(props: DateFieldProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
1330
|
+
export const DateField: <T extends DateValue>(props: DateFieldProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1331
1331
|
/**
|
|
1332
1332
|
* A time field allows users to enter and edit time values using a keyboard.
|
|
1333
1333
|
* Each part of a time value is displayed in an individually editable segment.
|
|
1334
1334
|
*/
|
|
1335
|
-
export const TimeField: <T extends TimeValue>(props: TimeFieldProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
1335
|
+
export const TimeField: <T extends TimeValue>(props: TimeFieldProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1336
1336
|
export interface DateInputRenderProps {
|
|
1337
1337
|
/**
|
|
1338
1338
|
* Whether the date input is currently hovered with a mouse.
|
|
@@ -1366,7 +1366,7 @@ export interface DateInputProps extends SlotProps, StyleRenderProps<DateInputRen
|
|
|
1366
1366
|
/**
|
|
1367
1367
|
* A date input groups the editable date segments within a date field.
|
|
1368
1368
|
*/
|
|
1369
|
-
export const DateInput: (props: DateInputProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1369
|
+
export const DateInput: (props: DateInputProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1370
1370
|
export interface DateSegmentRenderProps extends Omit<_DateSegment1, 'isEditable'> {
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Whether the segment is currently hovered with a mouse.
|
|
@@ -1416,7 +1416,7 @@ export interface DateSegmentProps extends RenderProps<DateSegmentRenderProps>, H
|
|
|
1416
1416
|
* A date segment displays an individual unit of a date and time, and allows users to edit
|
|
1417
1417
|
* the value by typing or using the arrow keys to increment and decrement.
|
|
1418
1418
|
*/
|
|
1419
|
-
export const DateSegment: (props: DateSegmentProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1419
|
+
export const DateSegment: (props: DateSegmentProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1420
1420
|
export interface DatePickerRenderProps {
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Whether an element within the date picker is focused, either via a mouse or keyboard.
|
|
@@ -1465,12 +1465,12 @@ export const DateRangePickerStateContext: React.Context<DateRangePickerState>;
|
|
|
1465
1465
|
/**
|
|
1466
1466
|
* A date picker combines a DateField and a Calendar popover to allow users to enter or select a date and time value.
|
|
1467
1467
|
*/
|
|
1468
|
-
export const DatePicker: <T extends DateValue>(props: DatePickerProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
1468
|
+
export const DatePicker: <T extends DateValue>(props: DatePickerProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1469
1469
|
/**
|
|
1470
1470
|
* A date range picker combines two DateFields and a RangeCalendar popover to allow
|
|
1471
1471
|
* users to enter or select a date and time range.
|
|
1472
1472
|
*/
|
|
1473
|
-
export const DateRangePicker: <T extends DateValue>(props: DateRangePickerProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
1473
|
+
export const DateRangePicker: <T extends DateValue>(props: DateRangePickerProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1474
1474
|
export interface DropZoneRenderProps {
|
|
1475
1475
|
/**
|
|
1476
1476
|
* Whether the dropzone is currently hovered with a mouse.
|
|
@@ -1584,7 +1584,7 @@ export const GridListContext: React.Context<ContextValue<GridListProps<any>, HTM
|
|
|
1584
1584
|
* A grid list displays a list of interactive items, with support for keyboard navigation,
|
|
1585
1585
|
* single or multiple selection, and row actions.
|
|
1586
1586
|
*/
|
|
1587
|
-
export const GridList: <T extends object>(props: GridListProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
1587
|
+
export const GridList: <T extends object>(props: GridListProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1588
1588
|
export interface GridListItemRenderProps extends ItemRenderProps {
|
|
1589
1589
|
}
|
|
1590
1590
|
export interface GridListItemProps<T = object> extends RenderProps<GridListItemRenderProps>, LinkDOMProps, _HoverEvents1 {
|
|
@@ -1605,7 +1605,7 @@ export interface GridListItemProps<T = object> extends RenderProps<GridListItemR
|
|
|
1605
1605
|
/**
|
|
1606
1606
|
* A GridListItem represents an individual item in a GridList.
|
|
1607
1607
|
*/
|
|
1608
|
-
export const GridListItem: <T extends object>(props: GridListItemProps<T> & React.RefAttributes<T>) => React.
|
|
1608
|
+
export const GridListItem: <T extends object>(props: GridListItemProps<T> & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1609
1609
|
export const KeyboardContext: React.Context<ContextValue<React.HTMLAttributes<HTMLElement>, HTMLElement>>;
|
|
1610
1610
|
export const Keyboard: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & React.RefAttributes<HTMLElement>>;
|
|
1611
1611
|
export const MenuContext: React.Context<ContextValue<MenuProps<any>, HTMLDivElement>>;
|
|
@@ -1631,13 +1631,13 @@ export interface SubmenuTriggerProps {
|
|
|
1631
1631
|
*
|
|
1632
1632
|
* @version alpha
|
|
1633
1633
|
*/
|
|
1634
|
-
export const SubmenuTrigger: (props: SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1634
|
+
export const SubmenuTrigger: (props: SubmenuTriggerProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1635
1635
|
export interface MenuProps<T> extends Omit<AriaMenuProps<T>, 'children'>, CollectionProps<T>, StyleProps, SlotProps, ScrollableProps<HTMLDivElement> {
|
|
1636
1636
|
}
|
|
1637
1637
|
/**
|
|
1638
1638
|
* A menu displays a list of actions or options that a user can choose.
|
|
1639
1639
|
*/
|
|
1640
|
-
export const Menu: <T extends object>(props: MenuProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
1640
|
+
export const Menu: <T extends object>(props: MenuProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1641
1641
|
export interface MenuItemRenderProps extends ItemRenderProps {
|
|
1642
1642
|
/**
|
|
1643
1643
|
* Whether the item has a submenu.
|
|
@@ -1669,7 +1669,7 @@ export interface MenuItemProps<T = object> extends RenderProps<MenuItemRenderPro
|
|
|
1669
1669
|
/**
|
|
1670
1670
|
* A MenuItem represents an individual action in a Menu.
|
|
1671
1671
|
*/
|
|
1672
|
-
export const MenuItem: <T extends object>(props: MenuItemProps<T> & React.RefAttributes<T>) => React.
|
|
1672
|
+
export const MenuItem: <T extends object>(props: MenuItemProps<T> & React.RefAttributes<T>) => React.ReactElement | null;
|
|
1673
1673
|
export interface MeterProps extends Omit<AriaMeterProps, 'label'>, RenderProps<MeterRenderProps>, SlotProps {
|
|
1674
1674
|
}
|
|
1675
1675
|
export interface MeterRenderProps {
|
|
@@ -1687,7 +1687,7 @@ export const MeterContext: React.Context<ContextValue<MeterProps, HTMLDivElement
|
|
|
1687
1687
|
/**
|
|
1688
1688
|
* A meter represents a quantity within a known range, or a fractional value.
|
|
1689
1689
|
*/
|
|
1690
|
-
export const Meter: (props: MeterProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1690
|
+
export const Meter: (props: MeterProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1691
1691
|
export interface ModalOverlayProps extends AriaModalOverlayProps, OverlayTriggerProps, RenderProps<ModalRenderProps>, SlotProps {
|
|
1692
1692
|
/**
|
|
1693
1693
|
* Whether the modal is currently performing an entry animation.
|
|
@@ -1723,11 +1723,11 @@ export interface ModalRenderProps {
|
|
|
1723
1723
|
/**
|
|
1724
1724
|
* A modal is an overlay element which blocks interaction with elements outside it.
|
|
1725
1725
|
*/
|
|
1726
|
-
export const Modal: (props: ModalOverlayProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1726
|
+
export const Modal: (props: ModalOverlayProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1727
1727
|
/**
|
|
1728
1728
|
* A ModalOverlay is a wrapper for a Modal which allows customizing the backdrop element.
|
|
1729
1729
|
*/
|
|
1730
|
-
export const ModalOverlay: (props: ModalOverlayProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1730
|
+
export const ModalOverlay: (props: ModalOverlayProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1731
1731
|
export interface NumberFieldRenderProps {
|
|
1732
1732
|
/**
|
|
1733
1733
|
* Whether the number field is disabled.
|
|
@@ -1751,7 +1751,7 @@ export const NumberFieldStateContext: React.Context<NumberFieldState>;
|
|
|
1751
1751
|
/**
|
|
1752
1752
|
* A number field allows a user to enter a number, and increment or decrement the value using stepper buttons.
|
|
1753
1753
|
*/
|
|
1754
|
-
export const NumberField: (props: NumberFieldProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1754
|
+
export const NumberField: (props: NumberFieldProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1755
1755
|
export interface ProgressBarProps extends Omit<AriaProgressBarProps, 'label'>, RenderProps<ProgressBarRenderProps>, SlotProps {
|
|
1756
1756
|
}
|
|
1757
1757
|
export interface ProgressBarRenderProps {
|
|
@@ -1868,11 +1868,11 @@ export const RadioGroupStateContext: React.Context<RadioGroupState>;
|
|
|
1868
1868
|
/**
|
|
1869
1869
|
* A radio group allows a user to select a single item from a list of mutually exclusive options.
|
|
1870
1870
|
*/
|
|
1871
|
-
export const RadioGroup: (props: RadioGroupProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1871
|
+
export const RadioGroup: (props: RadioGroupProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1872
1872
|
/**
|
|
1873
1873
|
* A radio represents an individual option within a radio group.
|
|
1874
1874
|
*/
|
|
1875
|
-
export const Radio: (props: RadioProps & React.RefAttributes<HTMLLabelElement>) => React.
|
|
1875
|
+
export const Radio: (props: RadioProps & React.RefAttributes<HTMLLabelElement>) => React.ReactElement | null;
|
|
1876
1876
|
export interface SearchFieldRenderProps {
|
|
1877
1877
|
/**
|
|
1878
1878
|
* Whether the search field is empty.
|
|
@@ -1900,7 +1900,7 @@ export const SearchFieldContext: React.Context<ContextValue<SearchFieldProps, HT
|
|
|
1900
1900
|
/**
|
|
1901
1901
|
* A search field allows a user to enter and clear a search query.
|
|
1902
1902
|
*/
|
|
1903
|
-
export const SearchField: (props: SearchFieldProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
1903
|
+
export const SearchField: (props: SearchFieldProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1904
1904
|
export interface SelectRenderProps {
|
|
1905
1905
|
/**
|
|
1906
1906
|
* Whether the select is focused, either via a mouse or keyboard.
|
|
@@ -1940,7 +1940,7 @@ export const SelectStateContext: React.Context<SelectState<unknown>>;
|
|
|
1940
1940
|
/**
|
|
1941
1941
|
* A select displays a collapsible list of options and allows a user to select one of them.
|
|
1942
1942
|
*/
|
|
1943
|
-
export const Select: <T extends object>(props: SelectProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
1943
|
+
export const Select: <T extends object>(props: SelectProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
1944
1944
|
export interface SelectValueRenderProps<T> {
|
|
1945
1945
|
/**
|
|
1946
1946
|
* Whether the value is a placeholder.
|
|
@@ -1959,7 +1959,7 @@ export const SelectValueContext: React.Context<ContextValue<SelectValueProps<any
|
|
|
1959
1959
|
* SelectValue renders the current value of a Select, or a placeholder if no value is selected.
|
|
1960
1960
|
* It is usually placed within the button element.
|
|
1961
1961
|
*/
|
|
1962
|
-
export const SelectValue: <T extends object>(props: SelectValueProps<T> & React.RefAttributes<HTMLSpanElement>) => React.
|
|
1962
|
+
export const SelectValue: <T extends object>(props: SelectValueProps<T> & React.RefAttributes<HTMLSpanElement>) => React.ReactElement | null;
|
|
1963
1963
|
export interface SwitchProps extends Omit<AriaSwitchProps, 'children'>, HoverEvents, RenderProps<SwitchRenderProps>, SlotProps {
|
|
1964
1964
|
/**
|
|
1965
1965
|
* A ref for the HTML input element.
|
|
@@ -2011,7 +2011,7 @@ export const SwitchContext: React.Context<ContextValue<SwitchProps, HTMLLabelEle
|
|
|
2011
2011
|
/**
|
|
2012
2012
|
* A switch allows a user to turn a setting on or off.
|
|
2013
2013
|
*/
|
|
2014
|
-
export const Switch: (props: SwitchProps & React.RefAttributes<HTMLLabelElement>) => React.
|
|
2014
|
+
export const Switch: (props: SwitchProps & React.RefAttributes<HTMLLabelElement>) => React.ReactElement | null;
|
|
2015
2015
|
export interface ResizableTableContainerProps extends DOMProps, ScrollableProps<HTMLDivElement> {
|
|
2016
2016
|
/**
|
|
2017
2017
|
* Handler that is called when a user starts a column resize.
|
|
@@ -2109,7 +2109,7 @@ export interface TableHeaderProps<T> extends StyleRenderProps<TableHeaderRenderP
|
|
|
2109
2109
|
/**
|
|
2110
2110
|
* A header within a `<Table>`, containing the table columns.
|
|
2111
2111
|
*/
|
|
2112
|
-
export const TableHeader: <T extends object>(props: TableHeaderProps<T> & React.RefAttributes<HTMLTableSectionElement>) => React.
|
|
2112
|
+
export const TableHeader: <T extends object>(props: TableHeaderProps<T> & React.RefAttributes<HTMLTableSectionElement>) => React.ReactElement | null;
|
|
2113
2113
|
export interface ColumnRenderProps {
|
|
2114
2114
|
/**
|
|
2115
2115
|
* Whether the item is currently hovered with a mouse.
|
|
@@ -2171,7 +2171,7 @@ export interface ColumnProps extends RenderProps<ColumnRenderProps> {
|
|
|
2171
2171
|
/**
|
|
2172
2172
|
* A column within a `<Table>`.
|
|
2173
2173
|
*/
|
|
2174
|
-
export const Column: (props: ColumnProps & React.RefAttributes<object>) => React.
|
|
2174
|
+
export const Column: (props: ColumnProps & React.RefAttributes<object>) => React.ReactElement | null;
|
|
2175
2175
|
export interface ColumnResizerRenderProps {
|
|
2176
2176
|
/**
|
|
2177
2177
|
* Whether the resizer is currently hovered with a mouse.
|
|
@@ -2223,7 +2223,7 @@ export interface TableBodyProps<T> extends CollectionProps<T>, StyleRenderProps<
|
|
|
2223
2223
|
/**
|
|
2224
2224
|
* The body of a `<Table>`, containing the table rows.
|
|
2225
2225
|
*/
|
|
2226
|
-
export const TableBody: <T extends object>(props: TableBodyProps<T> & React.RefAttributes<HTMLTableSectionElement>) => React.
|
|
2226
|
+
export const TableBody: <T extends object>(props: TableBodyProps<T> & React.RefAttributes<HTMLTableSectionElement>) => React.ReactElement | null;
|
|
2227
2227
|
export interface RowRenderProps extends ItemRenderProps {
|
|
2228
2228
|
/** Whether the row's children have keyboard focus. */
|
|
2229
2229
|
isFocusVisibleWithin: boolean;
|
|
@@ -2252,7 +2252,7 @@ export interface RowProps<T> extends StyleRenderProps<RowRenderProps>, LinkDOMPr
|
|
|
2252
2252
|
/**
|
|
2253
2253
|
* A row within a `<Table>`.
|
|
2254
2254
|
*/
|
|
2255
|
-
export const Row: <T extends object>(props: RowProps<T> & React.RefAttributes<HTMLTableRowElement>) => React.
|
|
2255
|
+
export const Row: <T extends object>(props: RowProps<T> & React.RefAttributes<HTMLTableRowElement>) => React.ReactElement | null;
|
|
2256
2256
|
export interface CellRenderProps {
|
|
2257
2257
|
/**
|
|
2258
2258
|
* Whether the cell is currently in a pressed state.
|
|
@@ -2284,11 +2284,11 @@ export interface CellProps extends RenderProps<CellRenderProps> {
|
|
|
2284
2284
|
/**
|
|
2285
2285
|
* A cell within a table row.
|
|
2286
2286
|
*/
|
|
2287
|
-
export const Cell: (props: CellProps & React.RefAttributes<object>) => React.
|
|
2287
|
+
export const Cell: (props: CellProps & React.RefAttributes<object>) => React.ReactElement | null;
|
|
2288
2288
|
interface TableLoadingIndicatorProps extends StyleProps {
|
|
2289
2289
|
children?: ReactNode;
|
|
2290
2290
|
}
|
|
2291
|
-
export const UNSTABLE_TableLoadingIndicator: <T extends object>(props: TableLoadingIndicatorProps & React.RefAttributes<T>) => React.
|
|
2291
|
+
export const UNSTABLE_TableLoadingIndicator: <T extends object>(props: TableLoadingIndicatorProps & React.RefAttributes<T>) => React.ReactElement | null;
|
|
2292
2292
|
interface LayoutOptionsDelegate<O> {
|
|
2293
2293
|
useLayoutOptions?(): O;
|
|
2294
2294
|
}
|
|
@@ -2401,20 +2401,20 @@ export const TabListStateContext: React.Context<TabListState<object>>;
|
|
|
2401
2401
|
/**
|
|
2402
2402
|
* Tabs organize content into multiple sections and allow users to navigate between them.
|
|
2403
2403
|
*/
|
|
2404
|
-
export const Tabs: (props: TabsProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
2404
|
+
export const Tabs: (props: TabsProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2405
2405
|
/**
|
|
2406
2406
|
* A TabList is used within Tabs to group tabs that a user can switch between.
|
|
2407
2407
|
* The ids of the items within the <TabList> must match up with a corresponding item inside the <TabPanels>.
|
|
2408
2408
|
*/
|
|
2409
|
-
export const TabList: <T extends object>(props: TabListProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
2409
|
+
export const TabList: <T extends object>(props: TabListProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2410
2410
|
/**
|
|
2411
2411
|
* A Tab provides a title for an individual item within a TabList.
|
|
2412
2412
|
*/
|
|
2413
|
-
export const Tab: (props: TabProps & React.RefAttributes<object>) => React.
|
|
2413
|
+
export const Tab: (props: TabProps & React.RefAttributes<object>) => React.ReactElement | null;
|
|
2414
2414
|
/**
|
|
2415
2415
|
* A TabPanel provides the content for a tab.
|
|
2416
2416
|
*/
|
|
2417
|
-
export const TabPanel: (props: TabPanelProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
2417
|
+
export const TabPanel: (props: TabPanelProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2418
2418
|
export interface TagGroupProps extends Omit<AriaTagGroupProps<unknown>, 'children' | 'items' | 'label' | 'description' | 'errorMessage' | 'keyboardDelegate'>, DOMProps, SlotProps {
|
|
2419
2419
|
}
|
|
2420
2420
|
export interface TagListRenderProps {
|
|
@@ -2447,11 +2447,11 @@ export const TagListContext: React.Context<ContextValue<TagListProps<any>, HTMLD
|
|
|
2447
2447
|
/**
|
|
2448
2448
|
* A tag group is a focusable list of labels, categories, keywords, filters, or other items, with support for keyboard navigation, selection, and removal.
|
|
2449
2449
|
*/
|
|
2450
|
-
export const TagGroup: (props: TagGroupProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
2450
|
+
export const TagGroup: (props: TagGroupProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2451
2451
|
/**
|
|
2452
2452
|
* A tag list is a container for tags within a TagGroup.
|
|
2453
2453
|
*/
|
|
2454
|
-
export const TagList: <T extends object>(props: TagListProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
2454
|
+
export const TagList: <T extends object>(props: TagListProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2455
2455
|
export interface TagRenderProps extends Omit<ItemRenderProps, 'allowsDragging' | 'isDragging' | 'isDropTarget'> {
|
|
2456
2456
|
/**
|
|
2457
2457
|
* Whether the tag group allows items to be removed.
|
|
@@ -2473,7 +2473,7 @@ export interface TagProps extends RenderProps<TagRenderProps>, LinkDOMProps, _Ho
|
|
|
2473
2473
|
/**
|
|
2474
2474
|
* A Tag is an individual item within a TagList.
|
|
2475
2475
|
*/
|
|
2476
|
-
export const Tag: (props: TagProps & React.RefAttributes<object>) => React.
|
|
2476
|
+
export const Tag: (props: TagProps & React.RefAttributes<object>) => React.ReactElement | null;
|
|
2477
2477
|
export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'className' | 'style'>, HoverEvents, StyleRenderProps<InputRenderProps> {
|
|
2478
2478
|
}
|
|
2479
2479
|
export const TextAreaContext: React.Context<ContextValue<TextAreaProps, HTMLTextAreaElement>>;
|
|
@@ -2511,7 +2511,7 @@ export const TextFieldContext: React.Context<ContextValue<TextFieldProps, HTMLDi
|
|
|
2511
2511
|
/**
|
|
2512
2512
|
* A text field allows a user to enter a plain text value with a keyboard.
|
|
2513
2513
|
*/
|
|
2514
|
-
export const TextField: (props: TextFieldProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
2514
|
+
export const TextField: (props: TextFieldProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2515
2515
|
export interface ToggleButtonRenderProps extends ButtonRenderProps {
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Whether the button is currently selected.
|
|
@@ -2529,7 +2529,7 @@ export const ToggleButtonContext: React.Context<ContextValue<ToggleButtonProps,
|
|
|
2529
2529
|
/**
|
|
2530
2530
|
* A toggle button allows a user to toggle a selection on or off, for example switching between two states or modes.
|
|
2531
2531
|
*/
|
|
2532
|
-
export const ToggleButton: (props: ToggleButtonProps & React.RefAttributes<HTMLButtonElement>) => React.
|
|
2532
|
+
export const ToggleButton: (props: ToggleButtonProps & React.RefAttributes<HTMLButtonElement>) => React.ReactElement | null;
|
|
2533
2533
|
export interface ToolbarRenderProps {
|
|
2534
2534
|
/**
|
|
2535
2535
|
* The current orientation of the toolbar.
|
|
@@ -2544,7 +2544,7 @@ export const ToolbarContext: React.Context<ContextValue<ToolbarProps, HTMLDivEle
|
|
|
2544
2544
|
* A toolbar is a container for a set of interactive controls, such as buttons, dropdown menus, or checkboxes,
|
|
2545
2545
|
* with arrow key navigation.
|
|
2546
2546
|
*/
|
|
2547
|
-
export const Toolbar: (props: ToolbarProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
2547
|
+
export const Toolbar: (props: ToolbarProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2548
2548
|
export interface TooltipTriggerComponentProps extends TooltipTriggerProps {
|
|
2549
2549
|
children: ReactNode;
|
|
2550
2550
|
}
|
|
@@ -2606,7 +2606,7 @@ export function TooltipTrigger(props: TooltipTriggerComponentProps): React.JSX.E
|
|
|
2606
2606
|
/**
|
|
2607
2607
|
* A tooltip displays a description of an element on hover or focus.
|
|
2608
2608
|
*/
|
|
2609
|
-
export const Tooltip: (props: TooltipProps & React.RefAttributes<HTMLDivElement>) => React.
|
|
2609
|
+
export const Tooltip: (props: TooltipProps & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2610
2610
|
export interface TreeRenderProps {
|
|
2611
2611
|
/**
|
|
2612
2612
|
* Whether the tree has no items and should display its empty state.
|
|
@@ -2645,7 +2645,7 @@ export const UNSTABLE_TreeStateContext: React.Context<TreeState<any>>;
|
|
|
2645
2645
|
* A tree provides users with a way to navigate nested hierarchical information, with support for keyboard navigation
|
|
2646
2646
|
* and selection.
|
|
2647
2647
|
*/
|
|
2648
|
-
export const UNSTABLE_Tree: <T extends object>(props: TreeProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
2648
|
+
export const UNSTABLE_Tree: <T extends object>(props: TreeProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2649
2649
|
export interface TreeItemRenderProps extends Omit<ItemRenderProps, 'allowsDragging' | 'isDragging' | 'isDropTarget'> {
|
|
2650
2650
|
/** Whether the tree item is expanded. */
|
|
2651
2651
|
isExpanded: boolean;
|
|
@@ -2660,7 +2660,7 @@ export interface TreeItemContentRenderProps extends ItemRenderProps {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
export interface TreeItemContentProps extends Pick<RenderProps<TreeItemContentRenderProps>, 'children'> {
|
|
2662
2662
|
}
|
|
2663
|
-
export const UNSTABLE_TreeItemContent: (props: TreeItemContentProps & React.RefAttributes<object>) => React.
|
|
2663
|
+
export const UNSTABLE_TreeItemContent: (props: TreeItemContentProps & React.RefAttributes<object>) => React.ReactElement | null;
|
|
2664
2664
|
export interface TreeItemProps<T = object> extends StyleRenderProps<TreeItemRenderProps>, LinkDOMProps, _HoverEvents1 {
|
|
2665
2665
|
/** The unique id of the tree row. */
|
|
2666
2666
|
id?: Key;
|
|
@@ -2676,7 +2676,7 @@ export interface TreeItemProps<T = object> extends StyleRenderProps<TreeItemRend
|
|
|
2676
2676
|
/**
|
|
2677
2677
|
* A TreeItem represents an individual item in a Tree.
|
|
2678
2678
|
*/
|
|
2679
|
-
export const UNSTABLE_TreeItem: <T extends object>(props: TreeItemProps<T> & React.RefAttributes<HTMLDivElement>) => React.
|
|
2679
|
+
export const UNSTABLE_TreeItem: <T extends object>(props: TreeItemProps<T> & React.RefAttributes<HTMLDivElement>) => React.ReactElement | null;
|
|
2680
2680
|
interface TreeLoadingIndicatorRenderProps {
|
|
2681
2681
|
/**
|
|
2682
2682
|
* What level the tree item has within the tree.
|
|
@@ -2686,7 +2686,7 @@ interface TreeLoadingIndicatorRenderProps {
|
|
|
2686
2686
|
}
|
|
2687
2687
|
interface TreeLoaderProps extends RenderProps<TreeLoadingIndicatorRenderProps>, StyleRenderProps<TreeLoadingIndicatorRenderProps> {
|
|
2688
2688
|
}
|
|
2689
|
-
export const UNSTABLE_TreeLoadingIndicator: <T extends object>(props: TreeLoaderProps & React.RefAttributes<T>) => React.
|
|
2689
|
+
export const UNSTABLE_TreeLoadingIndicator: <T extends object>(props: TreeLoaderProps & React.RefAttributes<T>) => React.ReactElement | null;
|
|
2690
2690
|
export { Collection, createLeafComponent as UNSTABLE_createLeafComponent, createBranchComponent as UNSTABLE_createBranchComponent, CollectionBuilder as UNSTABLE_CollectionBuilder } from '@react-aria/collections';
|
|
2691
2691
|
export { DIRECTORY_DRAG_TYPE, isDirectoryDropItem, isFileDropItem, isTextDropItem, SSRProvider, RouterProvider, I18nProvider, useLocale } from 'react-aria';
|
|
2692
2692
|
export { FormValidationContext } from 'react-stately';
|