@risalabs_frontend_org/oasis-ui-kit 0.149.0 → 0.152.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/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/notification-card/notification-card.d.ts +2 -2
- package/dist/src/components/notification-item/notification-item.d.ts +26 -0
- package/dist/src/components/notification-list/notification-list.d.ts +31 -0
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./notification-item.scss";
|
|
3
|
+
export declare const NOTIFICATION_ITEM_DEFAULT_COLORS: {
|
|
4
|
+
readonly backgroundColor: "#ffffff";
|
|
5
|
+
readonly selectedBackgroundColor: "#f3f8ff";
|
|
6
|
+
readonly accentColor: "#0056d6";
|
|
7
|
+
readonly titleColor: "#0f0f0f";
|
|
8
|
+
readonly timestampColor: "#2e2e2e";
|
|
9
|
+
};
|
|
10
|
+
export interface NotificationItemColors {
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
selectedBackgroundColor?: string;
|
|
13
|
+
accentColor?: string;
|
|
14
|
+
titleColor?: string;
|
|
15
|
+
timestampColor?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface NotificationItemProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
18
|
+
title: string;
|
|
19
|
+
timestamp: string;
|
|
20
|
+
truncateTitle?: boolean;
|
|
21
|
+
selected?: boolean;
|
|
22
|
+
colors?: NotificationItemColors;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const NotificationItem: React.FC<NotificationItemProps>;
|
|
26
|
+
export default NotificationItem;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { NotificationItemColors } from "../notification-item/notification-item";
|
|
3
|
+
import "./notification-list.scss";
|
|
4
|
+
export interface NotificationListEntry {
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const NOTIFICATION_LIST_DEFAULT_COLORS: {
|
|
10
|
+
readonly borderColor: "#d6d6d6";
|
|
11
|
+
readonly dividerColor: "#d6d6d6";
|
|
12
|
+
readonly backgroundColor: "#ffffff";
|
|
13
|
+
};
|
|
14
|
+
export interface NotificationListColors {
|
|
15
|
+
borderColor?: string;
|
|
16
|
+
dividerColor?: string;
|
|
17
|
+
backgroundColor?: string;
|
|
18
|
+
}
|
|
19
|
+
export interface NotificationListProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "children" | "onSelect"> {
|
|
20
|
+
notifications: NotificationListEntry[];
|
|
21
|
+
selectedId?: string;
|
|
22
|
+
onSelect?: (id: string) => void;
|
|
23
|
+
truncateTitle?: boolean;
|
|
24
|
+
itemColors?: NotificationItemColors;
|
|
25
|
+
colors?: NotificationListColors;
|
|
26
|
+
maxHeight?: number | string;
|
|
27
|
+
emptyContent?: React.ReactNode;
|
|
28
|
+
className?: string;
|
|
29
|
+
}
|
|
30
|
+
export declare const NotificationList: React.FC<NotificationListProps>;
|
|
31
|
+
export default NotificationList;
|