@eturnity/eturnity_reusable_components 8.7.0 → 8.7.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
<template>
|
2
2
|
<PageWrapper
|
3
|
+
v-if="isOpen"
|
3
4
|
:backdrop="backdrop"
|
4
|
-
:
|
5
|
+
:is-open="isOpen"
|
5
6
|
:position="position"
|
6
7
|
>
|
7
|
-
<ModalContainer
|
8
|
+
<ModalContainer
|
9
|
+
v-if="isOpen"
|
10
|
+
:overflow="overflowRule"
|
11
|
+
@click="onClickModalContainer"
|
12
|
+
>
|
8
13
|
<Spinner v-if="isLoading" :limited-to-modal="true" size="50px" />
|
9
14
|
<ContentContainer :visible="!isLoading">
|
10
15
|
<slot></slot>
|
@@ -29,10 +34,7 @@
|
|
29
34
|
import CloseButton from '../../buttons/closeButton'
|
30
35
|
import Spinner from '../../spinner'
|
31
36
|
|
32
|
-
const
|
33
|
-
const ContentContainer = styled('div', contentAttrs)`
|
34
|
-
visibility: ${(props) => (props.visible ? 'inherit' : 'hidden')};
|
35
|
-
`
|
37
|
+
const ContentContainer = styled.div``
|
36
38
|
|
37
39
|
const pageAttrs = { backdrop: String, position: String }
|
38
40
|
const PageWrapper = styled('div', pageAttrs)`
|
@@ -49,18 +51,6 @@
|
|
49
51
|
z-index: 99999;
|
50
52
|
overflow: auto;
|
51
53
|
|
52
|
-
&.visible {
|
53
|
-
visibility: visible;
|
54
|
-
opacity: 1;
|
55
|
-
transition: visibility 0s linear 0s, opacity 300ms;
|
56
|
-
}
|
57
|
-
|
58
|
-
&.hidden {
|
59
|
-
visibility: hidden;
|
60
|
-
opacity: 0;
|
61
|
-
transition: visibility 0s linear 300ms, opacity 300ms;
|
62
|
-
}
|
63
|
-
|
64
54
|
@media (max-width: 425px) {
|
65
55
|
background: white;
|
66
56
|
}
|