wca-designsystem 0.0.52 → 0.0.53

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.0.52",
2
+ "version": "0.0.53",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -1,15 +1,15 @@
1
1
  import React from 'react';
2
- import { MantineSize, Modal } from '@mantine/core';
2
+ import { MantineSize, Modal, ModalProps } from '@mantine/core';
3
3
  import * as S from './styles';
4
4
 
5
- export type ModalProps = {
5
+ export interface ModalCustomProps extends ModalProps {
6
6
  open: boolean;
7
7
  close: () => void;
8
8
  children: React.ReactNode;
9
9
  modalTitle: string;
10
10
  color?: string;
11
11
  size?: number | MantineSize | (string & {}) | undefined;
12
- };
12
+ }
13
13
 
14
14
  const ModalCustom = ({
15
15
  close,
@@ -18,9 +18,11 @@ const ModalCustom = ({
18
18
  children,
19
19
  modalTitle,
20
20
  size,
21
- }: ModalProps) => {
21
+ ...props
22
+ }: ModalCustomProps) => {
22
23
  return (
23
24
  <Modal.Root
25
+ {...props}
24
26
  opened={open}
25
27
  onClose={close}
26
28
  size={size}