aio-popup 8.2.1 → 8.2.3
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/alert1.css +68 -0
- package/alert2.css +70 -0
- package/index.js +11 -11
- package/package.json +1 -1
package/alert1.css
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
.aio-popup-alert {
|
|
2
|
+
overflow: unset !important;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.aio-popup-alert svg {
|
|
6
|
+
transform: translateY(-24px);
|
|
7
|
+
fill: #fff !important;
|
|
8
|
+
border-radius: 100%;
|
|
9
|
+
padding: 12px;
|
|
10
|
+
}
|
|
11
|
+
.aio-popup-alert-error svg {
|
|
12
|
+
background: #f14747;
|
|
13
|
+
}
|
|
14
|
+
.aio-popup-alert-error .aio-popup-time-bar {
|
|
15
|
+
background: #f14747;
|
|
16
|
+
}
|
|
17
|
+
.aio-popup-alert-error .aio-popup-alert-footer button{
|
|
18
|
+
background: #f14747;
|
|
19
|
+
}
|
|
20
|
+
.aio-popup-alert-success svg {
|
|
21
|
+
background: #6EBC3D;
|
|
22
|
+
}
|
|
23
|
+
.aio-popup-alert-success .aio-popup-time-bar {
|
|
24
|
+
background: #6EBC3D;
|
|
25
|
+
}
|
|
26
|
+
.aio-popup-alert-success .aio-popup-alert-footer button{
|
|
27
|
+
background: #6EBC3D;
|
|
28
|
+
}
|
|
29
|
+
.aio-popup-alert-warning svg {
|
|
30
|
+
background: #ff7800;
|
|
31
|
+
}
|
|
32
|
+
.aio-popup-alert-warning .aio-popup-time-bar {
|
|
33
|
+
background: #ff7800;
|
|
34
|
+
}
|
|
35
|
+
.aio-popup-alert-warning .aio-popup-alert-footer button{
|
|
36
|
+
background: #ff7800;
|
|
37
|
+
}
|
|
38
|
+
.aio-popup-alert-info svg {
|
|
39
|
+
background: #0069ff;
|
|
40
|
+
}
|
|
41
|
+
.aio-popup-alert-info .aio-popup-time-bar {
|
|
42
|
+
background: #0069ff;
|
|
43
|
+
}
|
|
44
|
+
.aio-popup-alert-info .aio-popup-alert-footer button{
|
|
45
|
+
background: #0069ff;
|
|
46
|
+
}
|
|
47
|
+
.aio-popup-alert-header {
|
|
48
|
+
height:48px;
|
|
49
|
+
}
|
|
50
|
+
.aio-popup-alert-text {
|
|
51
|
+
color:#888;
|
|
52
|
+
font-size:14px;
|
|
53
|
+
}
|
|
54
|
+
.aio-popup-alert-subtext {
|
|
55
|
+
color:#444;
|
|
56
|
+
font-size:14px;
|
|
57
|
+
justify-content: center;
|
|
58
|
+
display:flex;
|
|
59
|
+
}
|
|
60
|
+
.aio-popup-alert-footer {
|
|
61
|
+
justify-content: center;
|
|
62
|
+
padding:16px;
|
|
63
|
+
height:unset;
|
|
64
|
+
}
|
|
65
|
+
.aio-popup-alert-footer button{
|
|
66
|
+
width:100%;
|
|
67
|
+
height:36px;
|
|
68
|
+
}
|
package/alert2.css
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.aio-popup-alert {
|
|
2
|
+
overflow: hidden !important;
|
|
3
|
+
border-radius:8px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.aio-popup-alert svg {
|
|
7
|
+
fill: #fff !important;
|
|
8
|
+
border-radius: 100%;
|
|
9
|
+
padding: 12px;
|
|
10
|
+
}
|
|
11
|
+
.aio-popup-alert-error .aio-popup-alert-header {
|
|
12
|
+
background: #f14747;
|
|
13
|
+
}
|
|
14
|
+
.aio-popup-alert-error .aio-popup-time-bar {
|
|
15
|
+
background: #f14747;
|
|
16
|
+
}
|
|
17
|
+
.aio-popup-alert-error .aio-popup-alert-footer button{
|
|
18
|
+
background: #f14747;
|
|
19
|
+
}
|
|
20
|
+
.aio-popup-alert-success .aio-popup-alert-header {
|
|
21
|
+
background: #6EBC3D;
|
|
22
|
+
}
|
|
23
|
+
.aio-popup-alert-success .aio-popup-time-bar {
|
|
24
|
+
background: #6EBC3D;
|
|
25
|
+
}
|
|
26
|
+
.aio-popup-alert-success .aio-popup-alert-footer button{
|
|
27
|
+
background: #6EBC3D;
|
|
28
|
+
}
|
|
29
|
+
.aio-popup-alert-warning .aio-popup-alert-header {
|
|
30
|
+
background: #ff7800;
|
|
31
|
+
}
|
|
32
|
+
.aio-popup-alert-warning .aio-popup-time-bar {
|
|
33
|
+
background: #ff7800;
|
|
34
|
+
}
|
|
35
|
+
.aio-popup-alert-warning .aio-popup-alert-footer button{
|
|
36
|
+
background: #ff7800;
|
|
37
|
+
}
|
|
38
|
+
.aio-popup-alert-info .aio-popup-alert-header {
|
|
39
|
+
background: #0069ff;
|
|
40
|
+
}
|
|
41
|
+
.aio-popup-alert-info .aio-popup-time-bar {
|
|
42
|
+
background: #0069ff;
|
|
43
|
+
}
|
|
44
|
+
.aio-popup-alert-info .aio-popup-alert-footer button{
|
|
45
|
+
background: #0069ff;
|
|
46
|
+
}
|
|
47
|
+
.aio-popup-alert-header {
|
|
48
|
+
height:144px;
|
|
49
|
+
}
|
|
50
|
+
.aio-popup-alert-text {
|
|
51
|
+
color:#000;
|
|
52
|
+
font-size:18px;
|
|
53
|
+
padding:16px;
|
|
54
|
+
}
|
|
55
|
+
.aio-popup-alert-subtext {
|
|
56
|
+
color:#444;
|
|
57
|
+
font-size:14px;
|
|
58
|
+
justify-content: center;
|
|
59
|
+
display:flex;
|
|
60
|
+
}
|
|
61
|
+
.aio-popup-alert-footer {
|
|
62
|
+
justify-content: center;
|
|
63
|
+
padding:36px;
|
|
64
|
+
height:unset;
|
|
65
|
+
}
|
|
66
|
+
.aio-popup-alert-footer button{
|
|
67
|
+
width:100%;
|
|
68
|
+
height:36px;
|
|
69
|
+
border-radius:24px;
|
|
70
|
+
}
|
package/index.js
CHANGED
|
@@ -98,7 +98,7 @@ function AddToAttrs(attrs, p) {
|
|
|
98
98
|
}
|
|
99
99
|
const MainContext = createContext({});
|
|
100
100
|
const MainProvider = ({ value, children }) => {
|
|
101
|
-
return _jsx(MainContext, { value: value, children: children });
|
|
101
|
+
return _jsx(MainContext.Provider, { value: value, children: children });
|
|
102
102
|
};
|
|
103
103
|
const useMainProvider = () => useContext(MainContext);
|
|
104
104
|
const usePopup = (props) => {
|
|
@@ -750,16 +750,16 @@ function getEasing(highlight) {
|
|
|
750
750
|
const { easing } = highlight;
|
|
751
751
|
var easingNames = [
|
|
752
752
|
'linear',
|
|
753
|
-
'easeInQuad',
|
|
754
|
-
'easeInSine',
|
|
755
|
-
'easeInCirc',
|
|
756
|
-
'easeInBack',
|
|
757
|
-
'easeOutQuad',
|
|
758
|
-
'easeOutSine',
|
|
759
|
-
'easeOutCirc',
|
|
760
|
-
'easeInOutQuad',
|
|
761
|
-
'easeInOutSine',
|
|
762
|
-
'easeInOutBack',
|
|
753
|
+
'easeInQuad', //1
|
|
754
|
+
'easeInSine', //5
|
|
755
|
+
'easeInCirc', //7
|
|
756
|
+
'easeInBack', //8
|
|
757
|
+
'easeOutQuad', //9
|
|
758
|
+
'easeOutSine', //13
|
|
759
|
+
'easeOutCirc', //15
|
|
760
|
+
'easeInOutQuad', //18
|
|
761
|
+
'easeInOutSine', //22
|
|
762
|
+
'easeInOutBack', //25
|
|
763
763
|
'easeOutBounce', //27
|
|
764
764
|
];
|
|
765
765
|
if (typeof easing === 'number') {
|