karsten-design-system 2.0.2 → 2.0.4

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.
@@ -5,12 +5,14 @@ export type ModalProps = {
5
5
  size?: 'sm' | 'md' | 'lg' | 'xl';
6
6
  onClose?: () => void;
7
7
  onConfirm?: () => void;
8
+ onClear?: () => void;
8
9
  labelCloseButton?: string;
9
10
  labelConfirmButton?: string;
11
+ labelClearButton?: string;
10
12
  isExpanded?: boolean;
11
13
  ariaLabel?: string;
12
14
  children?: ReactNode;
13
15
  isLoading?: boolean;
14
16
  shouldRenderButtons?: boolean;
15
17
  };
16
- export declare function Modal({ isOpen, title, size, onClose, onConfirm, labelCloseButton, labelConfirmButton, isExpanded, ariaLabel, children, isLoading, shouldRenderButtons, }: ModalProps): import("react/jsx-runtime").JSX.Element | null;
18
+ export declare function Modal({ isOpen, title, size, onClose, onConfirm, onClear, labelCloseButton, labelConfirmButton, labelClearButton, isExpanded, ariaLabel, children, isLoading, shouldRenderButtons, }: ModalProps): import("react/jsx-runtime").JSX.Element | null;
@@ -5,12 +5,14 @@ export type ModalProps = {
5
5
  size?: 'sm' | 'md' | 'lg' | 'xl';
6
6
  onClose?: () => void;
7
7
  onConfirm?: () => void;
8
+ onClear?: () => void;
8
9
  labelCloseButton?: string;
9
10
  labelConfirmButton?: string;
11
+ labelClearButton?: string;
10
12
  isExpanded?: boolean;
11
13
  ariaLabel?: string;
12
14
  children?: ReactNode;
13
15
  isLoading?: boolean;
14
16
  shouldRenderButtons?: boolean;
15
17
  };
16
- export declare function Modal({ isOpen, title, size, onClose, onConfirm, labelCloseButton, labelConfirmButton, isExpanded, ariaLabel, children, isLoading, shouldRenderButtons, }: ModalProps): import("react/jsx-runtime").JSX.Element | null;
18
+ export declare function Modal({ isOpen, title, size, onClose, onConfirm, onClear, labelCloseButton, labelConfirmButton, labelClearButton, isExpanded, ariaLabel, children, isLoading, shouldRenderButtons, }: ModalProps): import("react/jsx-runtime").JSX.Element | null;
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": "2.0.2",
4
+ "version": "2.0.4",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",