karsten-design-system 1.2.26 → 1.2.28

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.
@@ -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 {};
@@ -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,6 +22,7 @@ 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';
@@ -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 {};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "karsten-design-system",
3
3
  "description": "Karsten Design System Components",
4
- "version": "1.2.26",
4
+ "version": "1.2.28",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
@@ -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 {};