@alfalab/core-components-notification 5.0.16 → 5.1.0
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/CHANGELOG.md +11 -0
- package/dist/Component.js +1 -2
- package/dist/cssm/Component.js +0 -1
- package/dist/esm/Component.js +1 -2
- package/dist/esm/index.css +7 -7
- package/dist/index.css +7 -7
- package/dist/modern/Component.js +1 -2
- package/dist/modern/index.css +7 -7
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.1.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-notification@5.0.16...@alfalab/core-components-notification@5.1.0) (2022-02-15)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **notification:** disabled trackMouse ([#987](https://github.com/alfa-laboratory/core-components/issues/987)) ([c237b04](https://github.com/alfa-laboratory/core-components/commit/c237b04be227d370b321bb2d4585ce72b4d9994e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [5.0.16](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-notification@5.0.15...@alfalab/core-components-notification@5.0.16) (2022-02-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @alfalab/core-components-notification
|
package/dist/Component.js
CHANGED
|
@@ -58,7 +58,7 @@ function __rest(s, e) {
|
|
|
58
58
|
return t;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
var styles = {"notificationComponent":"
|
|
61
|
+
var styles = {"notificationComponent":"notification__notificationComponent_1hvmu","isVisible":"notification__isVisible_1hvmu","isClosing":"notification__isClosing_1hvmu","toastContent":"notification__toastContent_1hvmu"};
|
|
62
62
|
require('./index.css')
|
|
63
63
|
|
|
64
64
|
var notificationClassNameSelector = "." + styles.notificationComponent;
|
|
@@ -130,7 +130,6 @@ var Notification = React.forwardRef(function (_a, ref) {
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
delta: 100,
|
|
133
|
-
trackMouse: true,
|
|
134
133
|
});
|
|
135
134
|
var Wrapper = usePortal ? coreComponentsPortal.Portal : React.Fragment;
|
|
136
135
|
return (React__default['default'].createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) {
|
package/dist/cssm/Component.js
CHANGED
|
@@ -129,7 +129,6 @@ var Notification = React.forwardRef(function (_a, ref) {
|
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
delta: 100,
|
|
132
|
-
trackMouse: true,
|
|
133
132
|
});
|
|
134
133
|
var Wrapper = usePortal ? coreComponentsPortal.Portal : React.Fragment;
|
|
135
134
|
return (React__default['default'].createElement(coreComponentsStack.Stack, { value: zIndex }, function (computedZIndex) {
|
package/dist/esm/Component.js
CHANGED
|
@@ -47,7 +47,7 @@ function __rest(s, e) {
|
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
var styles = {"notificationComponent":"
|
|
50
|
+
var styles = {"notificationComponent":"notification__notificationComponent_1hvmu","isVisible":"notification__isVisible_1hvmu","isClosing":"notification__isClosing_1hvmu","toastContent":"notification__toastContent_1hvmu"};
|
|
51
51
|
require('./index.css')
|
|
52
52
|
|
|
53
53
|
var notificationClassNameSelector = "." + styles.notificationComponent;
|
|
@@ -119,7 +119,6 @@ var Notification = forwardRef(function (_a, ref) {
|
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
delta: 100,
|
|
122
|
-
trackMouse: true,
|
|
123
122
|
});
|
|
124
123
|
var Wrapper = usePortal ? Portal : Fragment;
|
|
125
124
|
return (React.createElement(Stack, { value: zIndex }, function (computedZIndex) {
|
package/dist/esm/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ovrgz */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:root {
|
|
16
16
|
--notification-desktop-content-width: 278px;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.notification__notificationComponent_1hvmu {
|
|
19
19
|
visibility: hidden;
|
|
20
20
|
position: fixed;
|
|
21
21
|
right: var(--gap-s);
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
transition: transform 0.4s ease-out
|
|
29
29
|
}
|
|
30
30
|
@media screen and (min-width: 600px) {
|
|
31
|
-
.
|
|
31
|
+
.notification__notificationComponent_1hvmu {
|
|
32
32
|
right: var(--gap-4xl);
|
|
33
33
|
width: auto;
|
|
34
34
|
transform: translate(var(--notification-desktop-content-width), 0)
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.notification__notificationComponent_1hvmu.notification__isVisible_1hvmu {
|
|
38
38
|
visibility: visible;
|
|
39
39
|
transform: translate(0, 0);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.notification__notificationComponent_1hvmu.notification__isClosing_1hvmu {
|
|
42
42
|
transition: transform 0.1s ease-out;
|
|
43
43
|
transform: translate(100vw, 0)
|
|
44
44
|
}
|
|
45
45
|
@media screen and (min-width: 600px) {
|
|
46
|
-
.
|
|
46
|
+
.notification__notificationComponent_1hvmu.notification__isClosing_1hvmu {
|
|
47
47
|
transform: translate(
|
|
48
48
|
calc(var(--notification-desktop-content-width) + var(--gap-4xl)),
|
|
49
49
|
0
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
@media screen and (min-width: 600px) {
|
|
54
|
-
.
|
|
54
|
+
.notification__toastContent_1hvmu {
|
|
55
55
|
width: var(--notification-desktop-content-width)
|
|
56
56
|
}
|
|
57
57
|
}
|
package/dist/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ovrgz */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:root {
|
|
16
16
|
--notification-desktop-content-width: 278px;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.notification__notificationComponent_1hvmu {
|
|
19
19
|
visibility: hidden;
|
|
20
20
|
position: fixed;
|
|
21
21
|
right: var(--gap-s);
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
transition: transform 0.4s ease-out
|
|
29
29
|
}
|
|
30
30
|
@media screen and (min-width: 600px) {
|
|
31
|
-
.
|
|
31
|
+
.notification__notificationComponent_1hvmu {
|
|
32
32
|
right: var(--gap-4xl);
|
|
33
33
|
width: auto;
|
|
34
34
|
transform: translate(var(--notification-desktop-content-width), 0)
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.notification__notificationComponent_1hvmu.notification__isVisible_1hvmu {
|
|
38
38
|
visibility: visible;
|
|
39
39
|
transform: translate(0, 0);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.notification__notificationComponent_1hvmu.notification__isClosing_1hvmu {
|
|
42
42
|
transition: transform 0.1s ease-out;
|
|
43
43
|
transform: translate(100vw, 0)
|
|
44
44
|
}
|
|
45
45
|
@media screen and (min-width: 600px) {
|
|
46
|
-
.
|
|
46
|
+
.notification__notificationComponent_1hvmu.notification__isClosing_1hvmu {
|
|
47
47
|
transform: translate(
|
|
48
48
|
calc(var(--notification-desktop-content-width) + var(--gap-4xl)),
|
|
49
49
|
0
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
@media screen and (min-width: 600px) {
|
|
54
|
-
.
|
|
54
|
+
.notification__toastContent_1hvmu {
|
|
55
55
|
width: var(--notification-desktop-content-width)
|
|
56
56
|
}
|
|
57
57
|
}
|
package/dist/modern/Component.js
CHANGED
|
@@ -8,7 +8,7 @@ import { ToastPlate } from '@alfalab/core-components-toast-plate/dist/modern';
|
|
|
8
8
|
import { stackingOrder, Stack } from '@alfalab/core-components-stack/dist/modern';
|
|
9
9
|
import { useClickOutside } from './utils/index.js';
|
|
10
10
|
|
|
11
|
-
var styles = {"notificationComponent":"
|
|
11
|
+
var styles = {"notificationComponent":"notification__notificationComponent_1hvmu","isVisible":"notification__isVisible_1hvmu","isClosing":"notification__isClosing_1hvmu","toastContent":"notification__toastContent_1hvmu"};
|
|
12
12
|
require('./index.css')
|
|
13
13
|
|
|
14
14
|
const notificationClassNameSelector = `.${styles.notificationComponent}`;
|
|
@@ -78,7 +78,6 @@ const Notification = forwardRef(({ className, children, visible, offset = 108, h
|
|
|
78
78
|
}
|
|
79
79
|
},
|
|
80
80
|
delta: 100,
|
|
81
|
-
trackMouse: true,
|
|
82
81
|
});
|
|
83
82
|
const Wrapper = usePortal ? Portal : Fragment;
|
|
84
83
|
return (React.createElement(Stack, { value: zIndex }, computedZIndex => (React.createElement(Wrapper, null,
|
package/dist/modern/index.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* hash:
|
|
1
|
+
/* hash: ovrgz */
|
|
2
2
|
:root {
|
|
3
3
|
|
|
4
4
|
/* Hard */
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:root {
|
|
16
16
|
--notification-desktop-content-width: 278px;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
18
|
+
.notification__notificationComponent_1hvmu {
|
|
19
19
|
visibility: hidden;
|
|
20
20
|
position: fixed;
|
|
21
21
|
right: var(--gap-s);
|
|
@@ -28,22 +28,22 @@
|
|
|
28
28
|
transition: transform 0.4s ease-out
|
|
29
29
|
}
|
|
30
30
|
@media screen and (min-width: 600px) {
|
|
31
|
-
.
|
|
31
|
+
.notification__notificationComponent_1hvmu {
|
|
32
32
|
right: var(--gap-4xl);
|
|
33
33
|
width: auto;
|
|
34
34
|
transform: translate(var(--notification-desktop-content-width), 0)
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
.
|
|
37
|
+
.notification__notificationComponent_1hvmu.notification__isVisible_1hvmu {
|
|
38
38
|
visibility: visible;
|
|
39
39
|
transform: translate(0, 0);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.notification__notificationComponent_1hvmu.notification__isClosing_1hvmu {
|
|
42
42
|
transition: transform 0.1s ease-out;
|
|
43
43
|
transform: translate(100vw, 0)
|
|
44
44
|
}
|
|
45
45
|
@media screen and (min-width: 600px) {
|
|
46
|
-
.
|
|
46
|
+
.notification__notificationComponent_1hvmu.notification__isClosing_1hvmu {
|
|
47
47
|
transform: translate(
|
|
48
48
|
calc(var(--notification-desktop-content-width) + var(--gap-4xl)),
|
|
49
49
|
0
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
@media screen and (min-width: 600px) {
|
|
54
|
-
.
|
|
54
|
+
.notification__toastContent_1hvmu {
|
|
55
55
|
width: var(--notification-desktop-content-width)
|
|
56
56
|
}
|
|
57
57
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-notification",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@alfalab/core-components-portal": "^2.0.1",
|
|
23
23
|
"@alfalab/core-components-stack": "^3.0.1",
|
|
24
|
-
"@alfalab/core-components-toast-plate": "^4.0.
|
|
24
|
+
"@alfalab/core-components-toast-plate": "^4.0.17",
|
|
25
25
|
"classnames": "^2.2.6",
|
|
26
26
|
"element-closest": "^3.0.2",
|
|
27
27
|
"react-merge-refs": "^1.1.0",
|
|
28
28
|
"react-swipeable": "^5.5.0"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "07e0a3991a53623ef78766790ea2c1b06049f31f"
|
|
31
31
|
}
|