Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions @types/cherry.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,23 @@ declare class Space extends React.Component<SpaceProps, any> {}

declare class TableOverflow extends React.Component<TableOverflowProps, any> {}

declare class TableOverflow extends React.Component<TableOverflowProps, any> {}

declare class ToastNotificationsProvider extends React.Component<
any,
any
> {}

declare class ToastNotifications extends React.Component<
any,
any
> {}

declare class ToastNotificationsContext extends React.Component<
ToastNotificationsContextProps,
any
> {}

interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
children?: React.ReactNode;
variant?: "primary" | "secondary" | "tertiary";
Expand Down Expand Up @@ -247,6 +264,17 @@ interface TableOverflowProps {
children?: React.ReactNode;
}

interface ToastNotificationsContextProps {
notifications: any;
addNotification: (
text: string,
object: {
autoHide?: number;
color?: "info" | "error" | "success" | "warning";
},
) => void;
}

export {
Button,
Container,
Expand All @@ -268,5 +296,8 @@ export {
MinHeight,
Space,
TableOverflow,
ToastNotificationsContext,
ToastNotificationsProvider,
ToastNotifications,
Theme,
};
2 changes: 1 addition & 1 deletion dist/cherry.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/cherry.module.js

Large diffs are not rendered by default.

Loading