Skip to content

Commit

Permalink
fix(react): a lot ofmissing type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Sep 28, 2023
1 parent ed2a3d9 commit d06f2fa
Show file tree
Hide file tree
Showing 48 changed files with 305 additions and 106 deletions.
2 changes: 1 addition & 1 deletion packages/react/lib/Abstract/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactNode, ComponentPropsWithoutRef } from 'react';

declare interface AbstractProps extends ComponentPropsWithoutRef<any> {
export declare interface AbstractProps extends ComponentPropsWithoutRef<any> {
className?: string;
children?: ReactNode | JSX.Element;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Alert/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare type AlertRef = {
innerRef: MutableRefObject<any>;
};

declare interface AlertProps extends ComponentPropsWithRef<any> {
export declare interface AlertProps extends ComponentPropsWithRef<any> {
animationTimeout?: number;
children?: ReactNode | JSX.Element;
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Alerts/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export declare type AlertsRef = {
innerRef: MutableRefObject<any>;
};

declare interface AlertsProps extends ComponentPropsWithRef<any> {
export declare interface AlertsProps extends ComponentPropsWithRef<any> {
animationTimeout?: number;
className?: string;
icons?: {
Expand Down
3 changes: 2 additions & 1 deletion packages/react/lib/AlertsControl/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export declare type AlertsControlRef = {
dismiss(alert: AlertObject): void;
};

declare interface AlertsControlProps extends ComponentPropsWithoutRef<any> {
export declare interface AlertsControlProps
extends ComponentPropsWithoutRef<any> {
alerts?: Array<AlertObject>;
generateId(alert: AlertObject): string | number;
ref?: MutableRefObject<AlertsControlRef | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Badge/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare type BadgeRef = {
innerRef: MutableRefObject<any>;
};

declare interface BadgeProps extends ComponentPropsWithRef<any> {
export declare interface BadgeProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
tag?: string | ElementType;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/BreadCrumb/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export declare type BreadCrumbRef = {
innerRef: MutableRefObject<any>;
};

declare interface BreadCrumbProps extends ComponentPropsWithRef<any> {
export declare interface BreadCrumbProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
items?: Array<ReactNode | JSX.Element>;
Expand Down
3 changes: 2 additions & 1 deletion packages/react/lib/BreadCrumbItem/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export declare type BreadCrumbItemRef = {
innerRef: MutableRefObject<any>;
};

declare interface BreadCrumbItemProps extends ComponentPropsWithRef<any> {
export declare interface BreadCrumbItemProps
extends ComponentPropsWithRef<any> {
className?: string;
children?: ReactNode | JSX.Element;
tag?: string | ElementType;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Button/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare type ButtonRef = {
innerRef: MutableRefObject<any>;
};

declare interface ButtonProps extends ComponentPropsWithRef<any> {
export declare interface ButtonProps extends ComponentPropsWithRef<any> {
className?: string;
children?: ReactNode | JSX.Element;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Calendar/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export declare type CalendarRef = {
innerRef: MutableRefObject<any>;
};

declare interface CalendarProps extends ComponentPropsWithRef<any> {
export declare interface CalendarProps extends ComponentPropsWithRef<any> {
active?: Date;
className?: string;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Card/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare type CardRef = {
innerRef: MutableRefObject<any>;
};

declare interface CardProps extends ComponentPropsWithRef<any> {
export declare interface CardProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
tag?: string | ElementType;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/CheckboxField/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export declare type CheckboxFieldRef = {
inputRef: MutableRefObject<any>;
};

declare interface CheckboxFieldProps extends ComponentPropsWithRef<any> {
export declare interface CheckboxFieldProps extends ComponentPropsWithRef<any> {
checked?: boolean;
children?: ReactNode | JSX.Element;
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/CodeField/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export declare type CodeFieldRef = {
inputsRef: Array<MutableRefObject<any>>;
};

declare interface CodeFieldProps extends ComponentPropsWithRef<any> {
export declare interface CodeFieldProps extends ComponentPropsWithRef<any> {
autoFocus?: boolean;
disabled?: boolean;
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/ColorField/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export declare type ColorFieldRef = {
textFieldRef: MutableRefObject<any>;
};

declare interface ColorFieldProps extends ComponentPropsWithRef<any> {
export declare interface ColorFieldProps extends ComponentPropsWithRef<any> {
autoFocus?: boolean;
className?: string;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/DateField/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export declare type DateFieldRef = {
timeInputRef: MutableRefObject<any>;
};

declare interface DateFieldProps extends ComponentPropsWithRef<any> {
export declare interface DateFieldProps extends ComponentPropsWithRef<any> {
autoFocus?: boolean;
className?: string;
clearable?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Draggable/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentPropsWithRef, ReactNode } from 'react';

declare interface DraggableProps extends ComponentPropsWithRef<any> {
export declare interface DraggableProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
data?: any;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Dropdown/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export declare type DropdownRef = {
innerRef: MutableRefObject<any>;
};

declare interface DropdownProps extends ComponentPropsWithRef<any> {
export declare interface DropdownProps extends ComponentPropsWithRef<any> {
clickOptions?: UseClickProps;
className?: string;
container?: string | Element | DocumentFragment;
Expand Down
3 changes: 2 additions & 1 deletion packages/react/lib/DropdownGroup/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ReactNode, ComponentPropsWithoutRef } from 'react';

declare interface DropdownGroupProps extends ComponentPropsWithoutRef<any> {
export declare interface DropdownGroupProps
extends ComponentPropsWithoutRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
title?: ReactNode | JSX.Element;
Expand Down
3 changes: 2 additions & 1 deletion packages/react/lib/DropdownItem/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ReactNode, ComponentPropsWithoutRef } from 'react';

declare interface DropdownItemProps extends ComponentPropsWithoutRef<any> {
export declare interface DropdownItemProps
extends ComponentPropsWithoutRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/DropdownMenu/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export declare type DropdownMenuRef = {
innerRef: MutableRefObject<any>;
};

declare interface DropdownMenuProps extends ComponentPropsWithRef<any> {
export declare interface DropdownMenuProps extends ComponentPropsWithRef<any> {
apparition?: string;
children?: ReactNode | JSX.Element;
className?: string;
Expand Down
3 changes: 2 additions & 1 deletion packages/react/lib/DropdownToggle/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export declare type DropdownToggleRef = {
innerRef: MutableRefObject<any>;
};

declare interface DropdownToggleProps extends ComponentPropsWithRef<any> {
export declare interface DropdownToggleProps
extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
ref?: MutableRefObject<DropdownToggleRef | undefined>;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Droppable/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ComponentPropsWithoutRef, ReactNode } from 'react';

declare interface DroppableProps extends ComponentPropsWithoutRef<any> {
export declare interface DroppableProps extends ComponentPropsWithoutRef<any> {
className?: string;
children?: ReactNode | JSX.Element;
disabled?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/FieldAddon/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare type FieldAddonRef = {
innerRef: MutableRefObject<any>;
};

declare interface FieldAddonProps extends ComponentPropsWithRef<any> {
export declare interface FieldAddonProps extends ComponentPropsWithRef<any> {
className?: string;
children?: ReactNode | JSX.Element;
tag?: string | ElementType;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/FieldGroup/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare type FieldGroupRef = {
innerRef: MutableRefObject<any>;
};

declare interface FieldGroupProps extends ComponentPropsWithRef<any> {
export declare interface FieldGroupProps extends ComponentPropsWithRef<any> {
className?: string;
children?: ReactNode | JSX.Element;
tag?: string | ElementType;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Label/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactNode, ComponentPropsWithoutRef } from 'react';

declare interface LabelProps extends ComponentPropsWithoutRef<any> {
export declare interface LabelProps extends ComponentPropsWithoutRef<any> {
className?: string;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/List/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export declare type ListRef = {
innerRef: MutableRefObject<any>;
};

declare interface ListProps extends ComponentPropsWithRef<any> {
export declare interface ListProps extends ComponentPropsWithRef<any> {
columns?: Array<string | ListColumnObject>;
onOrder?(order: { column: string | number; asc: boolean | null }): void;
ref?: MutableRefObject<ListRef | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/ListCell/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export declare type ListCellRef = {
innerRef: MutableRefObject<any>;
};

declare interface ListCellProps extends ComponentPropsWithRef<any> {
export declare interface ListCellProps extends ComponentPropsWithRef<any> {
ref?: MutableRefObject<ListCellRef | undefined>;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/ListColumn/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare type ListColumnRef = {
isJunipero: boolean;
};

declare interface ListColumnProps extends ComponentPropsWithRef<any> {
export declare interface ListColumnProps extends ComponentPropsWithRef<any> {
id: string | number;
children?: ReactNode | JSX.Element;
ref?: MutableRefObject<ListColumnRef | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/ListItem/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export declare type ListItemRef = {
innerRef: MutableRefObject<any>;
};

declare interface ListItemProps extends ComponentPropsWithRef<any> {
export declare interface ListItemProps extends ComponentPropsWithRef<any> {
item?: Array<ReactNode | JSX.Element>;
children?: ReactNode | JSX.Element;
ref?: MutableRefObject<ListItemRef | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Modal/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export declare type ModalRef = {
wrapperRef: MutableRefObject<any>;
};

declare interface ModalProps extends ComponentPropsWithRef<any> {
export declare interface ModalProps extends ComponentPropsWithRef<any> {
apparition?: string;
children?: ReactNode | JSX.Element;
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/RadioField/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare type RadioFieldRef = {
optionRefs: Array<MutableRefObject<any>>;
};

declare interface RadioFieldProps extends ComponentPropsWithRef<any> {
export declare interface RadioFieldProps extends ComponentPropsWithRef<any> {
className?: string;
disabled?: boolean;
name?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/SelectField/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export declare type SelectFieldRef = {
searchInputRef: MutableRefObject<any>;
};

declare interface SelectFieldProps extends ComponentPropsWithRef<any> {
export declare interface SelectFieldProps extends ComponentPropsWithRef<any> {
allowArbitraryItems?: boolean;
autoFocus?: boolean;
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Slider/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export declare type SliderRef = {
tooltipRef: MutableRefObject<any>;
};

declare interface SliderProps extends ComponentPropsWithRef<any> {
export declare interface SliderProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
disabled: boolean;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Spinner/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ReactNode, ComponentPropsWithoutRef } from 'react';

declare interface SpinnerProps extends ComponentPropsWithoutRef<any> {
export declare interface SpinnerProps extends ComponentPropsWithoutRef<any> {
className?: string;
}

Expand Down
3 changes: 2 additions & 1 deletion packages/react/lib/Step/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ export declare type StepRef = {
innerRef: MutableRefObject<any>;
};

declare interface StepProps extends ComponentPropsWithRef<any> {
export declare interface StepProps extends ComponentPropsWithRef<any> {
title?: string;
icon?: ReactNode | JSX.Element;
ref?: MutableRefObject<StepRef | undefined>;
}

declare function Step(props: StepProps): ReactNode | JSX.Element;

export default Step;
2 changes: 1 addition & 1 deletion packages/react/lib/Stepper/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export declare type StepperRef = {
innerRef: MutableRefObject<any>;
};

declare interface StepperProps extends ComponentPropsWithRef<any> {
export declare interface StepperProps extends ComponentPropsWithRef<any> {
active?: number;
steps?: Array<StepObject>;
icon: ReactNode | JSX.Element;
Expand Down
3 changes: 2 additions & 1 deletion packages/react/lib/Tab/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,13 @@ export declare type TabRef = {
innerRef: MutableRefObject<any>;
};

declare interface TabProps extends ComponentPropsWithRef<any> {
export declare interface TabProps extends ComponentPropsWithRef<any> {
className?: string;
tag?: string | ElementType;
title?: string;
ref?: MutableRefObject<TabRef | undefined>;
}

declare function Tab(props: TabProps): ReactNode | JSX.Element;

export default Tab;
2 changes: 1 addition & 1 deletion packages/react/lib/Tabs/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export declare type TabsRef = {
innerRef: MutableRefObject<any>;
};

declare interface TabsProps extends ComponentPropsWithRef<any> {
export declare interface TabsProps extends ComponentPropsWithRef<any> {
active?: number;
children?: ReactNode | JSX.Element;
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Tag/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export declare type TagRef = {
innerRef: MutableRefObject<any>;
};

declare interface TagProps extends ComponentPropsWithRef<any> {
export declare interface TagProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
tag?: string | ElementType;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/TextField/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export declare type TextFieldRef = {
inputRef: MutableRefObject<any>;
};

declare interface TextFieldProps extends ComponentPropsWithRef<any> {
export declare interface TextFieldProps extends ComponentPropsWithRef<any> {
autoFocus?: boolean;
children?: ReactNode | JSX.Element;
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Toast/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export declare interface ToastObject {
onDismiss?(index?: string | number): any;
}

declare interface ToastProps extends ComponentPropsWithRef<any> {
export declare interface ToastProps extends ComponentPropsWithRef<any> {
animationTimeout?: number;
children?: ReactNode | JSX.Element;
className?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Toasts/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export declare type ToastsRef = {
innerRef: MutableRefObject<any>;
};

declare interface ToastsProps extends ComponentPropsWithRef<any> {
export declare interface ToastsProps extends ComponentPropsWithRef<any> {
animationTimeout?: number;
className?: string;
animateToast?(
Expand Down
3 changes: 2 additions & 1 deletion packages/react/lib/ToastsControl/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export declare type ToastsControlRef = {
dismiss(toast: ToastObject, index: string | number): void;
};

declare interface ToastsControlProps extends ComponentPropsWithoutRef<any> {
export declare interface ToastsControlProps
extends ComponentPropsWithoutRef<any> {
toasts?: Array<ToastObject>;
generateId?(toast: ToastObject): string | number;
ref?: MutableRefObject<ToastsControlRef | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react/lib/Toggle/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export declare type ToggleRef = {
inputRef: MutableRefObject<any>;
};

declare interface ToggleProps extends ComponentPropsWithRef<any> {
export declare interface ToggleProps extends ComponentPropsWithRef<any> {
checked?: boolean;
children?: ReactNode | JSX.Element;
className?: string;
Expand Down
Loading

0 comments on commit d06f2fa

Please sign in to comment.