@careevolution/mydatahelps-ui 2.22.0 → 2.23.1-HackDocs.0
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/cjs/index.js +8 -8
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/container/NotificationList/NotificationList.d.ts +22 -1
- package/dist/cjs/types/components/container/NotificationList/NotificationList.stories.d.ts +8 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/container/NotificationList/NotificationList.d.ts +22 -1
- package/dist/esm/types/components/container/NotificationList/NotificationList.stories.d.ts +8 -0
- package/dist/index.d.ts +110 -90
- package/package.json +1 -1
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { NotificationType } from "@careevolution/mydatahelps-js";
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
3
4
|
export interface NotificationListProps {
|
|
4
5
|
notificationType?: NotificationType;
|
|
5
6
|
previewState?: NotificationListPreviewState;
|
|
6
7
|
innerRef?: React.Ref<HTMLDivElement>;
|
|
7
8
|
}
|
|
8
9
|
export type NotificationListPreviewState = "Default" | "NoData";
|
|
9
|
-
|
|
10
|
+
/** Notification List. Can be filtered by Email/Push/SMS
|
|
11
|
+
*
|
|
12
|
+
* @component
|
|
13
|
+
* @param {NotificationListProps} props - Props for the component)
|
|
14
|
+
* @param {NotificationType} props.notificationType - Type of notification to filter by
|
|
15
|
+
* @param {React.Ref<HTMLDivElement>} props.innerRef - Reference to the div element
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
declare const NotificationList: {
|
|
19
|
+
(props: NotificationListProps): React.JSX.Element;
|
|
20
|
+
propTypes: {
|
|
21
|
+
/**
|
|
22
|
+
* Type of notification to filter by. Leave undefined to show all notifications
|
|
23
|
+
*/
|
|
24
|
+
NotificationType: PropTypes.Validator<string>;
|
|
25
|
+
};
|
|
26
|
+
defaultProps: {
|
|
27
|
+
NotificationType: undefined;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export default NotificationList;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from "@storybook/react";
|
|
2
|
+
import NotificationList from "./NotificationList";
|
|
3
|
+
declare const meta: Meta<typeof NotificationList>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof NotificationList>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const NoData: Story;
|
|
8
|
+
export declare const Live: Story;
|