karsten-design-system 1.2.22 → 1.2.24
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 +1 -1
- package/dist/index.js +20 -24
- package/dist/index.js.map +1 -1
- package/dist/stories/components/notificationsSidebar.d.ts +12 -0
- package/dist/stories/components/sideBarRight.d.ts +12 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/stories/components/notificationsSidebar.d.ts +12 -0
- package/dist/types/stories/components/sideBarRight.d.ts +12 -0
- package/package.json +1 -1
- package/dist/stories/components/notification.d.ts +0 -15
- package/dist/types/stories/components/notification.d.ts +0 -15
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NotificationType } from '../../types/notification';
|
|
2
|
+
export type NotificationProps = {
|
|
3
|
+
onReadAll: () => void;
|
|
4
|
+
onDeleteNotificationbyId: (id: string) => void;
|
|
5
|
+
onClickNotification: (id: string) => void;
|
|
6
|
+
notifications: NotificationType[] | [];
|
|
7
|
+
setInputValue: (value: string) => void;
|
|
8
|
+
inputValue: string;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function NotificationsSidebar({ onReadAll, onDeleteNotificationbyId, onClickNotification, notifications, setInputValue, inputValue, isOpen, onClose, }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type SidebarRightProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
width?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function SidebarRight({ isOpen, onClose, title, description, children, footer, width, }: SidebarRightProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export * from './stories/components/link';
|
|
|
24
24
|
export * from './stories/components/megaMenu';
|
|
25
25
|
export * from './stories/components/modal';
|
|
26
26
|
export * from './stories/components/multiselect';
|
|
27
|
-
export * from './stories/components/
|
|
27
|
+
export * from './stories/components/notificationsSidebar';
|
|
28
28
|
export * from './stories/components/paginator';
|
|
29
29
|
export * from './stories/components/radioButton';
|
|
30
30
|
export * from './stories/components/select';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { NotificationType } from '../../types/notification';
|
|
2
|
+
export type NotificationProps = {
|
|
3
|
+
onReadAll: () => void;
|
|
4
|
+
onDeleteNotificationbyId: (id: string) => void;
|
|
5
|
+
onClickNotification: (id: string) => void;
|
|
6
|
+
notifications: NotificationType[] | [];
|
|
7
|
+
setInputValue: (value: string) => void;
|
|
8
|
+
inputValue: string;
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function NotificationsSidebar({ onReadAll, onDeleteNotificationbyId, onClickNotification, notifications, setInputValue, inputValue, isOpen, onClose, }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type SidebarRightProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose?: () => void;
|
|
5
|
+
title?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
width?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare function SidebarRight({ isOpen, onClose, title, description, children, footer, width, }: SidebarRightProps): import("react/jsx-runtime").JSX.Element | null;
|
|
12
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Option } from '../../types';
|
|
2
|
-
import { NotificationType } from '../../types/notification';
|
|
3
|
-
export type NotificationProps = {
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onReadAll: () => void;
|
|
6
|
-
onDeleteNotificationbyId: (id: string) => void;
|
|
7
|
-
onClickNotification: (id: string) => void;
|
|
8
|
-
notifications: NotificationType[];
|
|
9
|
-
setFilter: (value: Option | null) => void;
|
|
10
|
-
filter: Option | null;
|
|
11
|
-
setInputValue: (value: string) => void;
|
|
12
|
-
inputValue: string;
|
|
13
|
-
filterOptions: Option[];
|
|
14
|
-
};
|
|
15
|
-
export declare function Notification({ onClose, onReadAll, onDeleteNotificationbyId, onClickNotification, notifications, setFilter, filter, setInputValue, inputValue, filterOptions, }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Option } from '../../types';
|
|
2
|
-
import { NotificationType } from '../../types/notification';
|
|
3
|
-
export type NotificationProps = {
|
|
4
|
-
onClose: () => void;
|
|
5
|
-
onReadAll: () => void;
|
|
6
|
-
onDeleteNotificationbyId: (id: string) => void;
|
|
7
|
-
onClickNotification: (id: string) => void;
|
|
8
|
-
notifications: NotificationType[];
|
|
9
|
-
setFilter: (value: Option | null) => void;
|
|
10
|
-
filter: Option | null;
|
|
11
|
-
setInputValue: (value: string) => void;
|
|
12
|
-
inputValue: string;
|
|
13
|
-
filterOptions: Option[];
|
|
14
|
-
};
|
|
15
|
-
export declare function Notification({ onClose, onReadAll, onDeleteNotificationbyId, onClickNotification, notifications, setFilter, filter, setInputValue, inputValue, filterOptions, }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|