@pushwoosh/dumb-components 1.1.136 → 1.1.137
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,16 @@ import { ShapeRadius } from '@pushwoosh/kit-constants';
|
|
|
5
5
|
import { DrawerBody, DrawerHeader } from '../DrawerContent';
|
|
6
6
|
const animationTimeout = 300;
|
|
7
7
|
export const LockBody = createGlobalStyle(["body{overflow:hidden;position:relative;height:100%;}"]);
|
|
8
|
-
export const DrawerBox = styled.div.
|
|
8
|
+
export const DrawerBox = styled.div.attrs(({
|
|
9
|
+
$zIndex
|
|
10
|
+
}) => ({
|
|
11
|
+
style: {
|
|
12
|
+
zIndex: $zIndex
|
|
13
|
+
}
|
|
14
|
+
})).withConfig({
|
|
9
15
|
displayName: "DrawerBox",
|
|
10
16
|
componentId: "sc-n2uxwd-0"
|
|
11
|
-
})(["position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:all;
|
|
12
|
-
$zIndex
|
|
13
|
-
}) => $zIndex);
|
|
17
|
+
})(["position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:all;"]);
|
|
14
18
|
export const DrawerInner = styled.div.withConfig({
|
|
15
19
|
displayName: "DrawerInner",
|
|
16
20
|
componentId: "sc-n2uxwd-1"
|
|
@@ -50,26 +54,16 @@ const DrawerBoxBase = props => {
|
|
|
50
54
|
children: children
|
|
51
55
|
});
|
|
52
56
|
};
|
|
57
|
+
const backdropHidden = ({
|
|
58
|
+
withoutLockScreen = false
|
|
59
|
+
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 0%)';
|
|
60
|
+
const backdropVisible = ({
|
|
61
|
+
withoutLockScreen = false
|
|
62
|
+
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 70%)';
|
|
53
63
|
export const DrawerBoxTrans = styled(DrawerBoxBase).withConfig({
|
|
54
64
|
displayName: "DrawerBoxTrans",
|
|
55
65
|
componentId: "sc-n2uxwd-2"
|
|
56
|
-
})(["&-appear{background-color:", ";
|
|
57
|
-
withoutLockScreen = false
|
|
58
|
-
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 0%)', animationTimeout, DrawerInner, ({
|
|
59
|
-
withoutLockScreen = false
|
|
60
|
-
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 70%)', DrawerInner, animationTimeout, animationTimeout, ({
|
|
61
|
-
withoutLockScreen = false
|
|
62
|
-
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 70%)', DrawerInner, ({
|
|
63
|
-
withoutLockScreen = false
|
|
64
|
-
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 0%)', animationTimeout, DrawerInner, ({
|
|
65
|
-
withoutLockScreen = false
|
|
66
|
-
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 70%)', DrawerInner, animationTimeout, animationTimeout, ({
|
|
67
|
-
withoutLockScreen = false
|
|
68
|
-
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 70%)', DrawerInner, ({
|
|
69
|
-
withoutLockScreen = false
|
|
70
|
-
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 70%)', DrawerInner, animationTimeout, animationTimeout, animationTimeout, ({
|
|
71
|
-
withoutLockScreen = false
|
|
72
|
-
}) => withoutLockScreen ? 'transparent' : 'rgb(0 0 0 / 0%)', DrawerInner);
|
|
66
|
+
})(["&-appear,&-enter{background-color:", ";", "{opacity:0;transform:translateX(100%);}}&-appear-active,&-enter-active{background-color:", ";transition:background-color ", "ms;", "{opacity:1;transform:translateX(0);transition:opacity ", "ms,transform ", "ms;}}&-appear-done,&-enter-done{background-color:", ";}&-exit{background-color:", ";}&-exit-active{background-color:", ";transition:background-color ", "ms;", "{opacity:0;transform:translateX(100%);transition:opacity ", "ms,transform ", "ms;}}"], backdropHidden, DrawerInner, backdropVisible, animationTimeout, DrawerInner, animationTimeout, animationTimeout, backdropVisible, backdropVisible, backdropHidden, animationTimeout, DrawerInner, animationTimeout, animationTimeout);
|
|
73
67
|
export const DrawerContainer = styled.div.withConfig({
|
|
74
68
|
displayName: "DrawerContainer",
|
|
75
69
|
componentId: "sc-n2uxwd-3"
|
|
@@ -4,12 +4,16 @@ import styled, { createGlobalStyle } from 'styled-components';
|
|
|
4
4
|
import { ShapeRadius } from '@pushwoosh/kit-constants';
|
|
5
5
|
const animationTimeout = 300;
|
|
6
6
|
export const LockBody = createGlobalStyle(["body{overflow:hidden;position:relative;height:100%;}"]);
|
|
7
|
-
export const ModalBox = styled.div.
|
|
7
|
+
export const ModalBox = styled.div.attrs(({
|
|
8
|
+
$zIndex
|
|
9
|
+
}) => ({
|
|
10
|
+
style: {
|
|
11
|
+
zIndex: $zIndex
|
|
12
|
+
}
|
|
13
|
+
})).withConfig({
|
|
8
14
|
displayName: "ModalBox",
|
|
9
15
|
componentId: "sc-lejcgu-0"
|
|
10
|
-
})(["position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:all;
|
|
11
|
-
$zIndex
|
|
12
|
-
}) => $zIndex);
|
|
16
|
+
})(["position:fixed;top:0;left:0;width:100vw;height:100vh;pointer-events:all;"]);
|
|
13
17
|
export const ModalInner = styled.div.withConfig({
|
|
14
18
|
displayName: "ModalInner",
|
|
15
19
|
componentId: "sc-lejcgu-1"
|
|
@@ -31,10 +35,12 @@ function ModalBoxBase(props) {
|
|
|
31
35
|
children: children
|
|
32
36
|
});
|
|
33
37
|
}
|
|
38
|
+
const backdropHidden = 'rgb(0 0 0 / 0%)';
|
|
39
|
+
const backdropVisible = 'rgb(0 0 0 / 70%)';
|
|
34
40
|
export const ModalBoxTrans = styled(ModalBoxBase).withConfig({
|
|
35
41
|
displayName: "ModalBoxTrans",
|
|
36
42
|
componentId: "sc-lejcgu-2"
|
|
37
|
-
})(["&-appear{background-color:
|
|
43
|
+
})(["&-appear,&-enter{background-color:", ";", "{opacity:0;transform:scale(0.5);}}&-appear-active,&-enter-active{background-color:", ";transition:background-color ", "ms;", "{opacity:1;transform:scale(1);transition:opacity ", "ms,transform ", "ms;}}&-appear-done,&-enter-done{background-color:", ";}&-exit{background-color:", ";}&-exit-active{background-color:", ";transition:background-color ", "ms;", "{opacity:0;transform:scale(0.5);transition:opacity ", "ms,transform ", "ms;}}"], backdropHidden, ModalInner, backdropVisible, animationTimeout, ModalInner, animationTimeout, animationTimeout, backdropVisible, backdropVisible, backdropHidden, animationTimeout, ModalInner, animationTimeout, animationTimeout);
|
|
38
44
|
export const ModalContainer = styled.div.withConfig({
|
|
39
45
|
displayName: "ModalContainer",
|
|
40
46
|
componentId: "sc-lejcgu-3"
|