karsten-design-system 1.2.25 → 1.2.27
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 -1
- package/dist/index.js +25 -32
- package/dist/index.js.map +1 -1
- package/dist/stories/components/modalForm.d.ts +10 -0
- package/dist/stories/components/{sideBarRight.d.ts → rightSidebar.d.ts} +2 -2
- package/dist/types/index.d.ts +2 -1
- package/dist/types/stories/components/modalForm.d.ts +10 -0
- package/dist/types/stories/components/{sideBarRight.d.ts → rightSidebar.d.ts} +2 -2
- package/package.json +1 -1
- package/dist/stories/components/filterButton.d.ts +0 -26
- package/dist/types/stories/components/filterButton.d.ts +0 -26
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type ModalFormProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare function ModalForm({ isOpen, title, description, onClose, children, }: ModalFormProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
type
|
|
2
|
+
type RightSidebarProps = {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onClose?: () => void;
|
|
5
5
|
children?: ReactNode;
|
|
@@ -7,5 +7,5 @@ type SidebarRightProps = {
|
|
|
7
7
|
title?: string;
|
|
8
8
|
description?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function RightSidebar({ isOpen, onClose, children, footer, title, description, }: RightSidebarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
11
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export * from './stories/components/divider';
|
|
|
12
12
|
export * from './stories/components/emptyContent';
|
|
13
13
|
export * from './stories/components/expandablePanel';
|
|
14
14
|
export * from './stories/components/fileUpload';
|
|
15
|
-
export * from './stories/components/filterButton';
|
|
16
15
|
export * from './stories/components/header';
|
|
17
16
|
export * from './stories/components/iconButton';
|
|
18
17
|
export * from './stories/components/infoCard';
|
|
@@ -23,10 +22,12 @@ export * from './stories/components/internalMenu';
|
|
|
23
22
|
export * from './stories/components/link';
|
|
24
23
|
export * from './stories/components/megaMenu';
|
|
25
24
|
export * from './stories/components/modal';
|
|
25
|
+
export * from './stories/components/modalForm';
|
|
26
26
|
export * from './stories/components/multiselect';
|
|
27
27
|
export * from './stories/components/notificationsSidebar';
|
|
28
28
|
export * from './stories/components/paginator';
|
|
29
29
|
export * from './stories/components/radioButton';
|
|
30
|
+
export * from './stories/components/rightSidebar';
|
|
30
31
|
export * from './stories/components/select';
|
|
31
32
|
export * from './stories/components/sidebar';
|
|
32
33
|
export * from './stories/components/skeleton';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type ModalFormProps = {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export declare function ModalForm({ isOpen, title, description, onClose, children, }: ModalFormProps): import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
type
|
|
2
|
+
type RightSidebarProps = {
|
|
3
3
|
isOpen: boolean;
|
|
4
4
|
onClose?: () => void;
|
|
5
5
|
children?: ReactNode;
|
|
@@ -7,5 +7,5 @@ type SidebarRightProps = {
|
|
|
7
7
|
title?: string;
|
|
8
8
|
description?: string;
|
|
9
9
|
};
|
|
10
|
-
export declare function
|
|
10
|
+
export declare function RightSidebar({ isOpen, onClose, children, footer, title, description, }: RightSidebarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
11
11
|
export {};
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ButtonProps as PrimeButtonProps } from 'primereact/button';
|
|
2
|
-
import { Option } from '../../types';
|
|
3
|
-
declare const variants: {
|
|
4
|
-
green: {
|
|
5
|
-
text: string;
|
|
6
|
-
button: string;
|
|
7
|
-
};
|
|
8
|
-
main: {
|
|
9
|
-
text: string;
|
|
10
|
-
button: string;
|
|
11
|
-
};
|
|
12
|
-
primary: {
|
|
13
|
-
text: string;
|
|
14
|
-
button: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export type FilterButtonProps = {
|
|
18
|
-
filterOptions: Option[];
|
|
19
|
-
setOption: (option: Option | null) => void;
|
|
20
|
-
option: Option | null;
|
|
21
|
-
variant: keyof typeof variants;
|
|
22
|
-
icon: React.ReactNode | string;
|
|
23
|
-
label: string;
|
|
24
|
-
} & Omit<PrimeButtonProps, 'icon'>;
|
|
25
|
-
export declare function FilterButton({ filterOptions, setOption, option, variant, icon, label, ...props }: FilterButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ButtonProps as PrimeButtonProps } from 'primereact/button';
|
|
2
|
-
import { Option } from '../../types';
|
|
3
|
-
declare const variants: {
|
|
4
|
-
green: {
|
|
5
|
-
text: string;
|
|
6
|
-
button: string;
|
|
7
|
-
};
|
|
8
|
-
main: {
|
|
9
|
-
text: string;
|
|
10
|
-
button: string;
|
|
11
|
-
};
|
|
12
|
-
primary: {
|
|
13
|
-
text: string;
|
|
14
|
-
button: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
export type FilterButtonProps = {
|
|
18
|
-
filterOptions: Option[];
|
|
19
|
-
setOption: (option: Option | null) => void;
|
|
20
|
-
option: Option | null;
|
|
21
|
-
variant: keyof typeof variants;
|
|
22
|
-
icon: React.ReactNode | string;
|
|
23
|
-
label: string;
|
|
24
|
-
} & Omit<PrimeButtonProps, 'icon'>;
|
|
25
|
-
export declare function FilterButton({ filterOptions, setOption, option, variant, icon, label, ...props }: FilterButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export {};
|