Skip to content

Commit 31f0fd6

Browse files
authored
export types and omit props from dropzone (#4699)
1 parent 945a0a7 commit 31f0fd6

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/react-aria-components/src/DropZone.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface DropZoneRenderProps {
4141
isDropTarget: boolean
4242
}
4343

44-
export interface DropZoneProps extends Omit<DropOptions, 'getDropOperationForPoint'>, RenderProps<DropZoneRenderProps>, SlotProps, AriaLabelingProps {}
44+
export interface DropZoneProps extends Omit<DropOptions, 'getDropOperationForPoint' | 'ref' | 'hasDropButton'>, RenderProps<DropZoneRenderProps>, SlotProps, AriaLabelingProps {}
4545

4646
export const DropZoneContext = createContext<ContextValue<DropZoneProps, HTMLDivElement>>(null);
4747

packages/react-aria-components/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ export type {ComboBoxProps, ComboBoxRenderProps} from './ComboBox';
6262
export type {DateFieldProps, DateInputProps, DateInputRenderProps, DateSegmentProps, DateSegmentRenderProps, TimeFieldProps} from './DateField';
6363
export type {DatePickerProps, DateRangePickerProps} from './DatePicker';
6464
export type {DialogProps, DialogTriggerProps} from './Dialog';
65+
export type {DropZoneProps, DropZoneRenderProps} from './DropZone';
66+
export type {FileTriggerProps} from './FileTrigger';
6567
export type {GridListProps, GridListRenderProps} from './GridList';
6668
export type {GroupProps, GroupRenderProps} from './Group';
6769
export type {HeadingProps} from './Heading';

0 commit comments

Comments
 (0)