Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit ddf51ae

Browse files
authored
Merge pull request #5 from cherry-design-system/feat/notifications-components
Feat/notifications components
2 parents 91af6ce + 08f1441 commit ddf51ae

File tree

14 files changed

+1390
-925
lines changed

14 files changed

+1390
-925
lines changed

@types/cherry.d.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,23 @@ declare class Space extends React.Component<SpaceProps, any> {}
4141

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

44+
declare class TableOverflow extends React.Component<TableOverflowProps, any> {}
45+
46+
declare class ToastNotificationsProvider extends React.Component<
47+
any,
48+
any
49+
> {}
50+
51+
declare class ToastNotifications extends React.Component<
52+
any,
53+
any
54+
> {}
55+
56+
declare class ToastNotificationsContext extends React.Component<
57+
ToastNotificationsContextProps,
58+
any
59+
> {}
60+
4461
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
4562
children?: React.ReactNode;
4663
variant?: "primary" | "secondary" | "tertiary";
@@ -247,6 +264,17 @@ interface TableOverflowProps {
247264
children?: React.ReactNode;
248265
}
249266

267+
interface ToastNotificationsContextProps {
268+
notifications: any;
269+
addNotification: (
270+
text: string,
271+
object: {
272+
autoHide?: number;
273+
color?: "info" | "error" | "success" | "warning";
274+
},
275+
) => void;
276+
}
277+
250278
export {
251279
Button,
252280
Container,
@@ -268,5 +296,8 @@ export {
268296
MinHeight,
269297
Space,
270298
TableOverflow,
299+
ToastNotificationsContext,
300+
ToastNotificationsProvider,
301+
ToastNotifications,
271302
Theme,
272303
};

dist/cherry.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cherry.module.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)