@griddo/ax 1.67.7 → 1.67.10
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@griddo/ax",
|
|
3
3
|
"description": "Griddo Author Experience",
|
|
4
|
-
"version": "1.67.
|
|
4
|
+
"version": "1.67.10",
|
|
5
5
|
"authors": [
|
|
6
6
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
7
7
|
"Carlos Torres <carlos.torres@secuoyas.com>",
|
|
@@ -221,5 +221,5 @@
|
|
|
221
221
|
"publishConfig": {
|
|
222
222
|
"access": "public"
|
|
223
223
|
},
|
|
224
|
-
"gitHead": "
|
|
224
|
+
"gitHead": "0036f6f3f22eb0d092654fe726253ef7323de09a"
|
|
225
225
|
}
|
|
@@ -6,7 +6,7 @@ import * as S from "./style";
|
|
|
6
6
|
import Button from "../Button";
|
|
7
7
|
|
|
8
8
|
const Modal = (props: IModalProps): JSX.Element | null => {
|
|
9
|
-
const { isOpen, hide, children, title, size, mainAction, secondaryAction } = props;
|
|
9
|
+
const { isOpen, hide, children, title, size, mainAction, secondaryAction, overflow = "auto" } = props;
|
|
10
10
|
|
|
11
11
|
const titleContent = title ? <S.Title>{title}</S.Title> : "";
|
|
12
12
|
|
|
@@ -48,7 +48,7 @@ const Modal = (props: IModalProps): JSX.Element | null => {
|
|
|
48
48
|
<IconAction size="s" icon="close" onClick={hide} />
|
|
49
49
|
</S.ButtonWrapper>
|
|
50
50
|
</S.ModalHeader>
|
|
51
|
-
<S.ModalContent>{children}</S.ModalContent>
|
|
51
|
+
<S.ModalContent overflow={overflow}>{children}</S.ModalContent>
|
|
52
52
|
{footer}
|
|
53
53
|
</S.Modal>
|
|
54
54
|
</S.ModalWrapper>
|
|
@@ -64,6 +64,7 @@ interface IModalProps {
|
|
|
64
64
|
children: any;
|
|
65
65
|
title?: string;
|
|
66
66
|
size?: "S" | "M" | "L" | "XL";
|
|
67
|
+
overflow?: string;
|
|
67
68
|
mainAction?: IAction;
|
|
68
69
|
secondaryAction?: IAction;
|
|
69
70
|
}
|
|
@@ -74,9 +74,10 @@ export const ModalHeader = styled.div`
|
|
|
74
74
|
border-bottom: 1px solid ${(p) => p.theme.color.uiLine};
|
|
75
75
|
`;
|
|
76
76
|
|
|
77
|
-
export const ModalContent = styled.div
|
|
77
|
+
export const ModalContent = styled.div<{ overflow: string | undefined }>`
|
|
78
78
|
position: relative;
|
|
79
79
|
flex-grow: 1;
|
|
80
|
+
overflow-y: ${(p) => p.overflow};
|
|
80
81
|
`;
|
|
81
82
|
|
|
82
83
|
export const Title = styled.div`
|