@kwantis-id3/frontend-library 0.26.0 → 0.27.1

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.
@@ -2,14 +2,18 @@ import React from "react";
2
2
  interface ModalProps {
3
3
  /** The content of the modal */
4
4
  children: React.ReactNode;
5
- /** The state of the modal */
5
+ /** Cointrols whether the modal should be open or not. */
6
6
  isOpen: boolean;
7
- /** The handler to change the state of the modal */
8
- setIsOpen: (isOpen: boolean) => void;
7
+ /** The handler to be called when the modal is closed */
8
+ onClose: () => void;
9
9
  /** The handler to be called when the modal is opened */
10
10
  onOpen?: () => void;
11
- /** The handler to be called when the modal is closed */
12
- onClose?: () => void;
11
+ /** custom width */
12
+ width?: string;
13
+ /** custom height */
14
+ height?: string;
15
+ /** custom css */
16
+ sx?: React.CSSProperties;
13
17
  }
14
18
  declare const Modal: React.FC<ModalProps>;
15
19
  export default Modal;
@@ -1,6 +1,9 @@
1
1
  export declare const DialogElement: import("@emotion/styled").StyledComponent<{
2
2
  theme?: import("..").ThemeContextProps;
3
3
  as?: React.ElementType;
4
+ } & {
5
+ $width?: string;
6
+ $height?: string;
4
7
  }, import("react").DetailedHTMLProps<import("react").DialogHTMLAttributes<HTMLDialogElement>, HTMLDialogElement>, {}>;
5
8
  export declare const ExitButtonContainer: import("@emotion/styled").StyledComponent<{
6
9
  theme?: import("..").ThemeContextProps;
package/dist/index.d.ts CHANGED
@@ -265,14 +265,18 @@ declare const Dropdown: (props: DropdownProps) => _emotion_react_types_jsx_names
265
265
  interface ModalProps {
266
266
  /** The content of the modal */
267
267
  children: React__default.ReactNode;
268
- /** The state of the modal */
268
+ /** Cointrols whether the modal should be open or not. */
269
269
  isOpen: boolean;
270
- /** The handler to change the state of the modal */
271
- setIsOpen: (isOpen: boolean) => void;
270
+ /** The handler to be called when the modal is closed */
271
+ onClose: () => void;
272
272
  /** The handler to be called when the modal is opened */
273
273
  onOpen?: () => void;
274
- /** The handler to be called when the modal is closed */
275
- onClose?: () => void;
274
+ /** custom width */
275
+ width?: string;
276
+ /** custom height */
277
+ height?: string;
278
+ /** custom css */
279
+ sx?: React__default.CSSProperties;
276
280
  }
277
281
  declare const Modal: React__default.FC<ModalProps>;
278
282
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwantis-id3/frontend-library",
3
- "version": "0.26.0",
3
+ "version": "0.27.1",
4
4
  "description": "Kwantis frontend components collection",
5
5
  "scriptsComments": {
6
6
  "storybook": "Starts storybook in development mode",
@@ -28,8 +28,7 @@
28
28
  "test:watch": "vitest",
29
29
  "test:coverage": "vitest --coverage",
30
30
  "chromatic": "npx chromatic --project-token=3dd812d03e4c",
31
- "build-cleanup": "if exist dist rmdir /s /q dist",
32
- "build": "pnpm clean-build && pnpm rollup",
31
+ "build": "pnpm rollup",
33
32
  "bump:patch": "pnpm version patch",
34
33
  "bump:minor": "pnpm version minor",
35
34
  "bump:major": "pnpm version major",