@ukpc-lib/react 0.3.17 → 0.3.18
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/components/Notification/NotificationList/components/NotitficationItem.d.ts +3 -1
- package/dist/components/Notification/NotificationList/index.d.ts +1 -1
- package/dist/components/Notification/Tabs/index.d.ts +2 -0
- package/dist/components/Notification/models/NotiticationDto.d.ts +3 -0
- package/dist/components/Topbar/icons/NotificationIcon.d.ts +3 -1
- package/dist/components/index.cjs +54 -24
- package/dist/components/index.js +1148 -1098
- package/package.json +1 -1
- package/web-components-bundle/global-topbar/index.cjs +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.cjs +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-6dc3186c.js → index-8799eb70.js} +2817 -2767
- package/web-components-bundle/{index-e0b2d628.cjs → index-ae9805bc.cjs} +81 -51
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { NotificationItemDto } from '../../models/NotiticationDto';
|
|
2
|
+
import { ColorsType } from '../../../../theme';
|
|
2
3
|
type ItemProps = {
|
|
3
4
|
notification: NotificationItemDto;
|
|
4
5
|
handleUpdateRead?: (id: number, isRead: boolean) => void;
|
|
5
6
|
baseUrl: string;
|
|
6
7
|
notiPath: string | undefined;
|
|
7
8
|
markAllAsReadState?: boolean;
|
|
9
|
+
brandColors?: ColorsType;
|
|
8
10
|
};
|
|
9
|
-
declare const NotitficationItem: ({ notification, baseUrl, notiPath, markAllAsReadState, }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare const NotitficationItem: ({ notification, baseUrl, notiPath, markAllAsReadState, brandColors, }: ItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export default NotitficationItem;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { NotificationApiProps } from '../models/NotiticationDto';
|
|
2
|
-
declare const NotificationList: ({ baseUrl, notiPath }: NotificationApiProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
declare const NotificationList: ({ baseUrl, notiPath, brandColors, }: NotificationApiProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default NotificationList;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ColorsType } from '../../../theme/Colors';
|
|
2
3
|
export type TabsProps = {
|
|
3
4
|
id: string;
|
|
4
5
|
tabTitle: string;
|
|
@@ -8,6 +9,7 @@ type GroupProps = React.PropsWithChildren<{
|
|
|
8
9
|
tabs: TabsProps[];
|
|
9
10
|
setCurrentTab: (index: string) => void;
|
|
10
11
|
currentTab: string;
|
|
12
|
+
brandColors?: ColorsType;
|
|
11
13
|
}>;
|
|
12
14
|
declare const Tabs: (props: GroupProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export default Tabs;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { ColorsType } from "../../../theme";
|
|
2
3
|
export interface NotificationItemProps {
|
|
3
4
|
notidata: NotificationItemDto[];
|
|
4
5
|
handleUpdateReadAll?: () => void;
|
|
5
6
|
handleUpdateRead?: (id: number, isRead: boolean) => void;
|
|
6
7
|
baseUrl: string;
|
|
7
8
|
notiPath?: string;
|
|
9
|
+
brandColors?: ColorsType;
|
|
8
10
|
}
|
|
9
11
|
export declare class Paging<T> {
|
|
10
12
|
rows: T[];
|
|
@@ -34,6 +36,7 @@ export type UpdateReadDto = {
|
|
|
34
36
|
export type NotificationApiProps = {
|
|
35
37
|
baseUrl: string;
|
|
36
38
|
notiPath?: string;
|
|
39
|
+
brandColors?: ColorsType;
|
|
37
40
|
};
|
|
38
41
|
type NotificationType = {
|
|
39
42
|
rows: NotificationItemDto[];
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import { ColorsType } from '../../../theme/Colors';
|
|
2
|
+
export default function NotificationIcon({ iconColor, baseUrl, notiPath, brandColors }: {
|
|
2
3
|
iconColor?: string;
|
|
3
4
|
baseUrl: string;
|
|
4
5
|
notiPath?: string;
|
|
6
|
+
brandColors?: ColorsType;
|
|
5
7
|
}): import("react/jsx-runtime").JSX.Element;
|