@alfalab/core-components-notification-manager 5.4.3 → 5.4.5

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/component.js CHANGED
@@ -15,7 +15,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
15
15
  var React__default = /*#__PURE__*/_interopDefaultCompat(React);
16
16
  var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
17
17
 
18
- var styles = {"component":"notification-manager__component_1xrx7","notification":"notification-manager__notification_1xrx7","withoutMargin":"notification-manager__withoutMargin_1xrx7","enter":"notification-manager__enter_1xrx7","enterActive":"notification-manager__enterActive_1xrx7"};
18
+ var styles = {"component":"notification-manager__component_12kx7","notification":"notification-manager__notification_12kx7","withoutMargin":"notification-manager__withoutMargin_12kx7","enter":"notification-manager__enter_12kx7","enterActive":"notification-manager__enterActive_12kx7"};
19
19
  require('./index.css')
20
20
 
21
21
  var CSS_TRANSITION_CLASS_NAMES = {
@@ -38,5 +38,6 @@ var NotificationManager = React.forwardRef(function (_a, ref) {
38
38
  _a)), onRemoveNotification: onRemoveNotification })));
39
39
  }))))); }));
40
40
  });
41
+ NotificationManager.displayName = 'NotificationManager';
41
42
 
42
43
  exports.NotificationManager = NotificationManager;
package/cssm/component.js CHANGED
@@ -37,5 +37,6 @@ var NotificationManager = React.forwardRef(function (_a, ref) {
37
37
  _a)), onRemoveNotification: onRemoveNotification })));
38
38
  }))))); }));
39
39
  });
40
+ NotificationManager.displayName = 'NotificationManager';
40
41
 
41
42
  exports.NotificationManager = NotificationManager;
package/esm/component.js CHANGED
@@ -6,7 +6,7 @@ import { Portal } from '@alfalab/core-components-portal/esm';
6
6
  import { stackingOrder, Stack } from '@alfalab/core-components-stack/esm';
7
7
  import { Notification } from './components/notification/component.js';
8
8
 
9
- var styles = {"component":"notification-manager__component_1xrx7","notification":"notification-manager__notification_1xrx7","withoutMargin":"notification-manager__withoutMargin_1xrx7","enter":"notification-manager__enter_1xrx7","enterActive":"notification-manager__enterActive_1xrx7"};
9
+ var styles = {"component":"notification-manager__component_12kx7","notification":"notification-manager__notification_12kx7","withoutMargin":"notification-manager__withoutMargin_12kx7","enter":"notification-manager__enter_12kx7","enterActive":"notification-manager__enterActive_12kx7"};
10
10
  require('./index.css')
11
11
 
12
12
  var CSS_TRANSITION_CLASS_NAMES = {
@@ -29,5 +29,6 @@ var NotificationManager = forwardRef(function (_a, ref) {
29
29
  _a)), onRemoveNotification: onRemoveNotification })));
30
30
  }))))); }));
31
31
  });
32
+ NotificationManager.displayName = 'NotificationManager';
32
33
 
33
34
  export { NotificationManager };
package/esm/index.css CHANGED
@@ -1,11 +1,11 @@
1
- /* hash: 1aagb */
1
+ /* hash: 12g52 */
2
2
  :root {
3
3
  --gap-s: 12px;
4
4
  --gap-xl: 24px;
5
5
  --gap-4xl: 48px;
6
6
  }
7
7
 
8
- .notification-manager__component_1xrx7 {
8
+ .notification-manager__component_12kx7 {
9
9
  position: fixed;
10
10
  top: 0;
11
11
  right: var(--gap-s);
@@ -13,45 +13,45 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7 {
16
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7 {
17
17
  width: calc(100vw - var(--gap-xl));
18
18
  margin-top: var(--gap-s);
19
19
  will-change: transform
20
20
  }
21
21
 
22
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7.notification-manager__withoutMargin_1xrx7 {
22
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7.notification-manager__withoutMargin_12kx7 {
23
23
  margin-top: 0;
24
24
  }
25
25
 
26
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7.notification-manager__notification_1xrx7 {
26
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7.notification-manager__notification_12kx7 {
27
27
  position: static;
28
28
  }
29
29
 
30
- .notification-manager__enter_1xrx7 {
30
+ .notification-manager__enter_12kx7 {
31
31
  visibility: hidden;
32
32
  transform: translate(0, -500px);
33
33
  }
34
34
 
35
- .notification-manager__enterActive_1xrx7 {
35
+ .notification-manager__enterActive_12kx7 {
36
36
  visibility: visible;
37
37
  transform: translate(0);
38
38
  transition: transform 0.4s ease-out;
39
39
  }
40
40
 
41
41
  @media (min-width: 600px) {
42
- .notification-manager__component_1xrx7 {
42
+ .notification-manager__component_12kx7 {
43
43
  right: var(--gap-4xl);
44
44
  }
45
45
 
46
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7 {
46
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7 {
47
47
  width: auto;
48
48
  }
49
49
 
50
- .notification-manager__enter_1xrx7 {
50
+ .notification-manager__enter_12kx7 {
51
51
  transform: translate(100%, 0);
52
52
  }
53
53
 
54
- .notification-manager__enterActive_1xrx7 {
54
+ .notification-manager__enterActive_12kx7 {
55
55
  transform: translate(0);
56
56
  }
57
57
  }
package/index.css CHANGED
@@ -1,11 +1,11 @@
1
- /* hash: 1aagb */
1
+ /* hash: 12g52 */
2
2
  :root {
3
3
  --gap-s: 12px;
4
4
  --gap-xl: 24px;
5
5
  --gap-4xl: 48px;
6
6
  }
7
7
 
8
- .notification-manager__component_1xrx7 {
8
+ .notification-manager__component_12kx7 {
9
9
  position: fixed;
10
10
  top: 0;
11
11
  right: var(--gap-s);
@@ -13,45 +13,45 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7 {
16
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7 {
17
17
  width: calc(100vw - var(--gap-xl));
18
18
  margin-top: var(--gap-s);
19
19
  will-change: transform
20
20
  }
21
21
 
22
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7.notification-manager__withoutMargin_1xrx7 {
22
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7.notification-manager__withoutMargin_12kx7 {
23
23
  margin-top: 0;
24
24
  }
25
25
 
26
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7.notification-manager__notification_1xrx7 {
26
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7.notification-manager__notification_12kx7 {
27
27
  position: static;
28
28
  }
29
29
 
30
- .notification-manager__enter_1xrx7 {
30
+ .notification-manager__enter_12kx7 {
31
31
  visibility: hidden;
32
32
  transform: translate(0, -500px);
33
33
  }
34
34
 
35
- .notification-manager__enterActive_1xrx7 {
35
+ .notification-manager__enterActive_12kx7 {
36
36
  visibility: visible;
37
37
  transform: translate(0);
38
38
  transition: transform 0.4s ease-out;
39
39
  }
40
40
 
41
41
  @media (min-width: 600px) {
42
- .notification-manager__component_1xrx7 {
42
+ .notification-manager__component_12kx7 {
43
43
  right: var(--gap-4xl);
44
44
  }
45
45
 
46
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7 {
46
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7 {
47
47
  width: auto;
48
48
  }
49
49
 
50
- .notification-manager__enter_1xrx7 {
50
+ .notification-manager__enter_12kx7 {
51
51
  transform: translate(100%, 0);
52
52
  }
53
53
 
54
- .notification-manager__enterActive_1xrx7 {
54
+ .notification-manager__enterActive_12kx7 {
55
55
  transform: translate(0);
56
56
  }
57
57
  }
@@ -5,7 +5,7 @@ import { Portal } from '@alfalab/core-components-portal/modern';
5
5
  import { Stack, stackingOrder } from '@alfalab/core-components-stack/modern';
6
6
  import { Notification } from './components/notification/component.js';
7
7
 
8
- const styles = {"component":"notification-manager__component_1xrx7","notification":"notification-manager__notification_1xrx7","withoutMargin":"notification-manager__withoutMargin_1xrx7","enter":"notification-manager__enter_1xrx7","enterActive":"notification-manager__enterActive_1xrx7"};
8
+ const styles = {"component":"notification-manager__component_12kx7","notification":"notification-manager__notification_12kx7","withoutMargin":"notification-manager__withoutMargin_12kx7","enter":"notification-manager__enter_12kx7","enterActive":"notification-manager__enterActive_12kx7"};
9
9
  require('./index.css')
10
10
 
11
11
  const CSS_TRANSITION_CLASS_NAMES = {
@@ -26,5 +26,6 @@ const NotificationManager = forwardRef(({ notifications, className, dataTestId,
26
26
  React.createElement(Notification, { element: element, className: cn(styles.notification, {
27
27
  [styles.withoutMargin]: offset && index === 0,
28
28
  }), onRemoveNotification: onRemoveNotification })))))))))));
29
+ NotificationManager.displayName = 'NotificationManager';
29
30
 
30
31
  export { NotificationManager };
package/modern/index.css CHANGED
@@ -1,11 +1,11 @@
1
- /* hash: 1aagb */
1
+ /* hash: 12g52 */
2
2
  :root {
3
3
  --gap-s: 12px;
4
4
  --gap-xl: 24px;
5
5
  --gap-4xl: 48px;
6
6
  }
7
7
 
8
- .notification-manager__component_1xrx7 {
8
+ .notification-manager__component_12kx7 {
9
9
  position: fixed;
10
10
  top: 0;
11
11
  right: var(--gap-s);
@@ -13,45 +13,45 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7 {
16
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7 {
17
17
  width: calc(100vw - var(--gap-xl));
18
18
  margin-top: var(--gap-s);
19
19
  will-change: transform
20
20
  }
21
21
 
22
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7.notification-manager__withoutMargin_1xrx7 {
22
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7.notification-manager__withoutMargin_12kx7 {
23
23
  margin-top: 0;
24
24
  }
25
25
 
26
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7.notification-manager__notification_1xrx7 {
26
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7.notification-manager__notification_12kx7 {
27
27
  position: static;
28
28
  }
29
29
 
30
- .notification-manager__enter_1xrx7 {
30
+ .notification-manager__enter_12kx7 {
31
31
  visibility: hidden;
32
32
  transform: translate(0, -500px);
33
33
  }
34
34
 
35
- .notification-manager__enterActive_1xrx7 {
35
+ .notification-manager__enterActive_12kx7 {
36
36
  visibility: visible;
37
37
  transform: translate(0);
38
38
  transition: transform 0.4s ease-out;
39
39
  }
40
40
 
41
41
  @media (min-width: 600px) {
42
- .notification-manager__component_1xrx7 {
42
+ .notification-manager__component_12kx7 {
43
43
  right: var(--gap-4xl);
44
44
  }
45
45
 
46
- .notification-manager__component_1xrx7 .notification-manager__notification_1xrx7 {
46
+ .notification-manager__component_12kx7 .notification-manager__notification_12kx7 {
47
47
  width: auto;
48
48
  }
49
49
 
50
- .notification-manager__enter_1xrx7 {
50
+ .notification-manager__enter_12kx7 {
51
51
  transform: translate(100%, 0);
52
52
  }
53
53
 
54
- .notification-manager__enterActive_1xrx7 {
54
+ .notification-manager__enterActive_12kx7 {
55
55
  transform: translate(0);
56
56
  }
57
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-notification-manager",
3
- "version": "5.4.3",
3
+ "version": "5.4.5",
4
4
  "description": "Notification manager",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -14,8 +14,8 @@
14
14
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
15
15
  },
16
16
  "dependencies": {
17
- "@alfalab/core-components-notification": "^7.0.1",
18
- "@alfalab/core-components-portal": "^3.2.0",
17
+ "@alfalab/core-components-notification": "^7.0.3",
18
+ "@alfalab/core-components-portal": "^3.2.1",
19
19
  "@alfalab/core-components-stack": "^4.1.0",
20
20
  "classnames": "^2.3.1",
21
21
  "react-transition-group": "^4.4.5",
package/src/component.tsx CHANGED
@@ -112,3 +112,5 @@ export const NotificationManager = forwardRef<HTMLDivElement, NotificationManage
112
112
  </Stack>
113
113
  ),
114
114
  );
115
+
116
+ NotificationManager.displayName = 'NotificationManager';