@alfalab/core-components-notification-manager 5.1.4 → 5.1.6

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.
@@ -1,4 +1,4 @@
1
- import { ReactElement, FC } from 'react';
1
+ import { FC, ReactElement } from 'react';
2
2
  import { NotificationProps as CoreNotificationProps } from "@alfalab/core-components-notification";
3
3
  declare function __extends(d: any, b: any): void;
4
4
  declare function __rest(s: any, e: any): {};
@@ -16,7 +16,8 @@ declare function __values(o: any): any;
16
16
  declare function __read(o: any, n: any): any;
17
17
  declare function __spread(...args: any[]): any[];
18
18
  declare function __spreadArrays(...args: any[]): any[];
19
- declare function __await(v: any): any;
19
+ declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
20
+ declare function __await(v: any): __await;
20
21
  declare class __await {
21
22
  constructor(v: any);
22
23
  v: any;
@@ -27,8 +28,9 @@ declare function __asyncValues(o: any): any;
27
28
  declare function __makeTemplateObject(cooked: any, raw: any): any;
28
29
  declare function __importStar(mod: any): any;
29
30
  declare function __importDefault(mod: any): any;
30
- declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
31
- declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
31
+ declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
32
+ declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
33
+ declare function __classPrivateFieldIn(state: any, receiver: any): any;
32
34
  declare function __assign(...args: any[]): any;
33
35
  declare function __createBinding(o: any, m: any, k: any, k2: any): void;
34
36
  type NotificationElement = ReactElement<CoreNotificationProps & {
@@ -40,4 +42,4 @@ type NotificationProps = {
40
42
  onRemoveNotification: (id: string) => void;
41
43
  };
42
44
  declare const Notification: FC<NotificationProps>;
43
- export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding, NotificationElement, Notification };
45
+ export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding, NotificationElement, Notification };
@@ -7,7 +7,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
7
7
 
8
8
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
9
9
 
10
- /*! *****************************************************************************
10
+ /******************************************************************************
11
11
  Copyright (c) Microsoft Corporation.
12
12
 
13
13
  Permission to use, copy, modify, and/or distribute this software for any
package/component.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_notification_component = require('./component-92c97613.js');
5
+ var components_notification_component = require('./component-f2759e57.js');
6
6
  var React = require('react');
7
- var cn = require('classnames');
8
7
  var reactTransitionGroup = require('react-transition-group');
8
+ var cn = require('classnames');
9
9
  var coreComponentsPortal = require('@alfalab/core-components-portal');
10
10
  var coreComponentsStack = require('@alfalab/core-components-stack');
11
11
 
@@ -14,7 +14,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
14
14
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
15
15
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
16
16
 
17
- var styles = {"component":"notification-manager__component_r8id3","notification":"notification-manager__notification_r8id3","enter":"notification-manager__enter_r8id3","enterActive":"notification-manager__enterActive_r8id3","exit":"notification-manager__exit_r8id3","exitActive":"notification-manager__exitActive_r8id3"};
17
+ var styles = {"component":"notification-manager__component_jyxlp","notification":"notification-manager__notification_jyxlp","enter":"notification-manager__enter_jyxlp","enterActive":"notification-manager__enterActive_jyxlp","exit":"notification-manager__exit_jyxlp","exitActive":"notification-manager__exitActive_jyxlp"};
18
18
  require('./index.css')
19
19
 
20
20
  var CSS_TRANSITION_CLASS_NAMES = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_notification_component = require('../component-92c97613.js');
5
+ var components_notification_component = require('../component-f2759e57.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_notification_component = require('../../component-92c97613.js');
5
+ var components_notification_component = require('../../component-f2759e57.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
 
@@ -1 +1 @@
1
- export * from "../../component-92c97613";
1
+ export * from "../../component-f2759e57";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_notification_component = require('../../component-92c97613.js');
5
+ var components_notification_component = require('../../component-f2759e57.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
 
@@ -1,4 +1,4 @@
1
- import { ReactElement, FC } from 'react';
1
+ import { FC, ReactElement } from 'react';
2
2
  import { NotificationProps as CoreNotificationProps } from "@alfalab/core-components-notification";
3
3
  declare function __extends(d: any, b: any): void;
4
4
  declare function __rest(s: any, e: any): {};
@@ -16,7 +16,8 @@ declare function __values(o: any): any;
16
16
  declare function __read(o: any, n: any): any;
17
17
  declare function __spread(...args: any[]): any[];
18
18
  declare function __spreadArrays(...args: any[]): any[];
19
- declare function __await(v: any): any;
19
+ declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
20
+ declare function __await(v: any): __await;
20
21
  declare class __await {
21
22
  constructor(v: any);
22
23
  v: any;
@@ -27,8 +28,9 @@ declare function __asyncValues(o: any): any;
27
28
  declare function __makeTemplateObject(cooked: any, raw: any): any;
28
29
  declare function __importStar(mod: any): any;
29
30
  declare function __importDefault(mod: any): any;
30
- declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
31
- declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
31
+ declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
32
+ declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
33
+ declare function __classPrivateFieldIn(state: any, receiver: any): any;
32
34
  declare function __assign(...args: any[]): any;
33
35
  declare function __createBinding(o: any, m: any, k: any, k2: any): void;
34
36
  type NotificationElement = ReactElement<CoreNotificationProps & {
@@ -40,4 +42,4 @@ type NotificationProps = {
40
42
  onRemoveNotification: (id: string) => void;
41
43
  };
42
44
  declare const Notification: FC<NotificationProps>;
43
- export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding, NotificationElement, Notification };
45
+ export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding, NotificationElement, Notification };
@@ -7,7 +7,7 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
7
7
 
8
8
  var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
9
9
 
10
- /*! *****************************************************************************
10
+ /******************************************************************************
11
11
  Copyright (c) Microsoft Corporation.
12
12
 
13
13
  Permission to use, copy, modify, and/or distribute this software for any
package/cssm/component.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_notification_component = require('./component-d28c47be.js');
5
+ var components_notification_component = require('./component-f0e3da83.js');
6
6
  var React = require('react');
7
- var cn = require('classnames');
8
7
  var reactTransitionGroup = require('react-transition-group');
8
+ var cn = require('classnames');
9
9
  var coreComponentsPortal = require('@alfalab/core-components-portal/cssm');
10
10
  var coreComponentsStack = require('@alfalab/core-components-stack/cssm');
11
11
  var styles = require('./index.module.css');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_notification_component = require('../component-d28c47be.js');
5
+ var components_notification_component = require('../component-f0e3da83.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_notification_component = require('../../component-d28c47be.js');
5
+ var components_notification_component = require('../../component-f0e3da83.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
 
@@ -1 +1 @@
1
- export * from "../../component-d28c47be";
1
+ export * from "../../component-f0e3da83";
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var components_notification_component = require('../../component-d28c47be.js');
5
+ var components_notification_component = require('../../component-f0e3da83.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
 
package/cssm/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./component-d28c47be.js');
5
+ require('./component-f0e3da83.js');
6
6
  require('react');
7
- require('classnames');
8
7
  require('react-transition-group');
8
+ require('classnames');
9
9
  require('@alfalab/core-components-portal/cssm');
10
10
  require('@alfalab/core-components-stack/cssm');
11
11
  require('./index.module.css');
@@ -1,4 +1,4 @@
1
- import { ReactElement, FC } from 'react';
1
+ import { FC, ReactElement } from 'react';
2
2
  import { NotificationProps as CoreNotificationProps } from "@alfalab/core-components-notification";
3
3
  declare function __extends(d: any, b: any): void;
4
4
  declare function __rest(s: any, e: any): {};
@@ -16,7 +16,8 @@ declare function __values(o: any): any;
16
16
  declare function __read(o: any, n: any): any;
17
17
  declare function __spread(...args: any[]): any[];
18
18
  declare function __spreadArrays(...args: any[]): any[];
19
- declare function __await(v: any): any;
19
+ declare function __spreadArray(to: any, from: any, pack: any, ...args: any[]): any;
20
+ declare function __await(v: any): __await;
20
21
  declare class __await {
21
22
  constructor(v: any);
22
23
  v: any;
@@ -27,8 +28,9 @@ declare function __asyncValues(o: any): any;
27
28
  declare function __makeTemplateObject(cooked: any, raw: any): any;
28
29
  declare function __importStar(mod: any): any;
29
30
  declare function __importDefault(mod: any): any;
30
- declare function __classPrivateFieldGet(receiver: any, privateMap: any): any;
31
- declare function __classPrivateFieldSet(receiver: any, privateMap: any, value: any): any;
31
+ declare function __classPrivateFieldGet(receiver: any, state: any, kind: any, f: any): any;
32
+ declare function __classPrivateFieldSet(receiver: any, state: any, value: any, kind: any, f: any): any;
33
+ declare function __classPrivateFieldIn(state: any, receiver: any): any;
32
34
  declare function __assign(...args: any[]): any;
33
35
  declare function __createBinding(o: any, m: any, k: any, k2: any): void;
34
36
  type NotificationElement = ReactElement<CoreNotificationProps & {
@@ -40,4 +42,4 @@ type NotificationProps = {
40
42
  onRemoveNotification: (id: string) => void;
41
43
  };
42
44
  declare const Notification: FC<NotificationProps>;
43
- export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __assign, __createBinding, NotificationElement, Notification };
45
+ export { __extends, __rest, __decorate, __param, __metadata, __awaiter, __generator, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __assign, __createBinding, NotificationElement, Notification };
@@ -1,7 +1,7 @@
1
1
  import { useCallback, useMemo, cloneElement } from 'react';
2
2
  import cn from 'classnames';
3
3
 
4
- /*! *****************************************************************************
4
+ /******************************************************************************
5
5
  Copyright (c) Microsoft Corporation.
6
6
 
7
7
  Permission to use, copy, modify, and/or distribute this software for any
package/esm/component.js CHANGED
@@ -1,11 +1,11 @@
1
- import { _ as __rest, a as __assign, N as Notification } from './component-ba2cf1ad.js';
1
+ import { _ as __rest, a as __assign, N as Notification } from './component-53d92427.js';
2
2
  import React, { forwardRef } from 'react';
3
- import cn from 'classnames';
4
3
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
4
+ import cn from 'classnames';
5
5
  import { Portal } from '@alfalab/core-components-portal/esm';
6
6
  import { stackingOrder, Stack } from '@alfalab/core-components-stack/esm';
7
7
 
8
- var styles = {"component":"notification-manager__component_r8id3","notification":"notification-manager__notification_r8id3","enter":"notification-manager__enter_r8id3","enterActive":"notification-manager__enterActive_r8id3","exit":"notification-manager__exit_r8id3","exitActive":"notification-manager__exitActive_r8id3"};
8
+ var styles = {"component":"notification-manager__component_jyxlp","notification":"notification-manager__notification_jyxlp","enter":"notification-manager__enter_jyxlp","enterActive":"notification-manager__enterActive_jyxlp","exit":"notification-manager__exit_jyxlp","exitActive":"notification-manager__exitActive_jyxlp"};
9
9
  require('./index.css')
10
10
 
11
11
  var CSS_TRANSITION_CLASS_NAMES = {
@@ -1,3 +1,3 @@
1
- export { N as Notification } from '../component-ba2cf1ad.js';
1
+ export { N as Notification } from '../component-53d92427.js';
2
2
  import 'react';
3
3
  import 'classnames';
@@ -1,3 +1,3 @@
1
- export { N as Notification } from '../../component-ba2cf1ad.js';
1
+ export { N as Notification } from '../../component-53d92427.js';
2
2
  import 'react';
3
3
  import 'classnames';
@@ -1 +1 @@
1
- export * from "../../component-ba2cf1ad";
1
+ export * from "../../component-53d92427";
@@ -1,3 +1,3 @@
1
- export { N as Notification } from '../../component-ba2cf1ad.js';
1
+ export { N as Notification } from '../../component-53d92427.js';
2
2
  import 'react';
3
3
  import 'classnames';
package/esm/index.css CHANGED
@@ -1,11 +1,11 @@
1
- /* hash: uoz1t */
1
+ /* hash: 13y2i */
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_r8id3 {
8
+ .notification-manager__component_jyxlp {
9
9
  position: fixed;
10
10
  top: 0;
11
11
  right: var(--gap-s);
@@ -13,48 +13,48 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- .notification-manager__component_r8id3 .notification-manager__notification_r8id3 {
16
+ .notification-manager__component_jyxlp .notification-manager__notification_jyxlp {
17
17
  position: static;
18
18
  width: calc(100vw - var(--gap-xl));
19
19
  margin-top: var(--gap-s);
20
20
  will-change: transform;
21
21
  }
22
22
 
23
- .notification-manager__enter_r8id3 {
23
+ .notification-manager__enter_jyxlp {
24
24
  visibility: hidden;
25
25
  transform: translate(0, -500px);
26
26
  transition: transform 0.4s ease-out;
27
27
  }
28
28
 
29
- .notification-manager__enterActive_r8id3 {
29
+ .notification-manager__enterActive_jyxlp {
30
30
  visibility: visible;
31
31
  transform: translate(0);
32
32
  }
33
33
 
34
- .notification-manager__exit_r8id3 {
34
+ .notification-manager__exit_jyxlp {
35
35
  opacity: 0;
36
36
  transition: opacity 0.15s ease-in-out;
37
37
  }
38
38
 
39
- .notification-manager__exitActive_r8id3 {
39
+ .notification-manager__exitActive_jyxlp {
40
40
  visibility: hidden;
41
41
  opacity: 0;
42
42
  }
43
43
 
44
44
  @media (min-width: 600px) {
45
- .notification-manager__component_r8id3 {
45
+ .notification-manager__component_jyxlp {
46
46
  right: var(--gap-4xl);
47
47
  }
48
48
 
49
- .notification-manager__component_r8id3 .notification-manager__notification_r8id3 {
49
+ .notification-manager__component_jyxlp .notification-manager__notification_jyxlp {
50
50
  width: auto;
51
51
  }
52
52
 
53
- .notification-manager__enter_r8id3 {
53
+ .notification-manager__enter_jyxlp {
54
54
  transform: translate(100%, 0);
55
55
  }
56
56
 
57
- .notification-manager__enterActive_r8id3 {
57
+ .notification-manager__enterActive_jyxlp {
58
58
  transform: translate(0);
59
59
  }
60
60
  }
package/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import './component-ba2cf1ad.js';
1
+ import './component-53d92427.js';
2
2
  import 'react';
3
- import 'classnames';
4
3
  import 'react-transition-group';
4
+ import 'classnames';
5
5
  import '@alfalab/core-components-portal/esm';
6
6
  import '@alfalab/core-components-stack/esm';
7
7
  export { NotificationManager } from './component.js';
package/index.css CHANGED
@@ -1,11 +1,11 @@
1
- /* hash: uoz1t */
1
+ /* hash: 13y2i */
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_r8id3 {
8
+ .notification-manager__component_jyxlp {
9
9
  position: fixed;
10
10
  top: 0;
11
11
  right: var(--gap-s);
@@ -13,48 +13,48 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- .notification-manager__component_r8id3 .notification-manager__notification_r8id3 {
16
+ .notification-manager__component_jyxlp .notification-manager__notification_jyxlp {
17
17
  position: static;
18
18
  width: calc(100vw - var(--gap-xl));
19
19
  margin-top: var(--gap-s);
20
20
  will-change: transform;
21
21
  }
22
22
 
23
- .notification-manager__enter_r8id3 {
23
+ .notification-manager__enter_jyxlp {
24
24
  visibility: hidden;
25
25
  transform: translate(0, -500px);
26
26
  transition: transform 0.4s ease-out;
27
27
  }
28
28
 
29
- .notification-manager__enterActive_r8id3 {
29
+ .notification-manager__enterActive_jyxlp {
30
30
  visibility: visible;
31
31
  transform: translate(0);
32
32
  }
33
33
 
34
- .notification-manager__exit_r8id3 {
34
+ .notification-manager__exit_jyxlp {
35
35
  opacity: 0;
36
36
  transition: opacity 0.15s ease-in-out;
37
37
  }
38
38
 
39
- .notification-manager__exitActive_r8id3 {
39
+ .notification-manager__exitActive_jyxlp {
40
40
  visibility: hidden;
41
41
  opacity: 0;
42
42
  }
43
43
 
44
44
  @media (min-width: 600px) {
45
- .notification-manager__component_r8id3 {
45
+ .notification-manager__component_jyxlp {
46
46
  right: var(--gap-4xl);
47
47
  }
48
48
 
49
- .notification-manager__component_r8id3 .notification-manager__notification_r8id3 {
49
+ .notification-manager__component_jyxlp .notification-manager__notification_jyxlp {
50
50
  width: auto;
51
51
  }
52
52
 
53
- .notification-manager__enter_r8id3 {
53
+ .notification-manager__enter_jyxlp {
54
54
  transform: translate(100%, 0);
55
55
  }
56
56
 
57
- .notification-manager__enterActive_r8id3 {
57
+ .notification-manager__enterActive_jyxlp {
58
58
  transform: translate(0);
59
59
  }
60
60
  }
package/index.js CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./component-92c97613.js');
5
+ require('./component-f2759e57.js');
6
6
  require('react');
7
- require('classnames');
8
7
  require('react-transition-group');
8
+ require('classnames');
9
9
  require('@alfalab/core-components-portal');
10
10
  require('@alfalab/core-components-stack');
11
11
  var component = require('./component.js');
@@ -1,11 +1,11 @@
1
1
  import React, { forwardRef } from 'react';
2
- import cn from 'classnames';
3
2
  import { TransitionGroup, CSSTransition } from 'react-transition-group';
3
+ import cn from 'classnames';
4
4
  import { Portal } from '@alfalab/core-components-portal/modern';
5
5
  import { stackingOrder, Stack } from '@alfalab/core-components-stack/modern';
6
6
  import { Notification } from './components/notification/component.js';
7
7
 
8
- var styles = {"component":"notification-manager__component_r8id3","notification":"notification-manager__notification_r8id3","enter":"notification-manager__enter_r8id3","enterActive":"notification-manager__enterActive_r8id3","exit":"notification-manager__exit_r8id3","exitActive":"notification-manager__exitActive_r8id3"};
8
+ var styles = {"component":"notification-manager__component_jyxlp","notification":"notification-manager__notification_jyxlp","enter":"notification-manager__enter_jyxlp","enterActive":"notification-manager__enterActive_jyxlp","exit":"notification-manager__exit_jyxlp","exitActive":"notification-manager__exitActive_jyxlp"};
9
9
  require('./index.css')
10
10
 
11
11
  const CSS_TRANSITION_CLASS_NAMES = {
@@ -14,14 +14,12 @@ const CSS_TRANSITION_CLASS_NAMES = {
14
14
  exit: styles.exit,
15
15
  exitActive: styles.exitActive,
16
16
  };
17
- const NotificationManager = forwardRef(({ notifications, className, dataTestId, zIndex = stackingOrder.TOAST, style = {}, onRemoveNotification, ...restProps }, ref) => {
18
- return (React.createElement(Stack, { value: zIndex }, computedZIndex => (React.createElement(Portal, null,
19
- React.createElement("div", Object.assign({ className: cn(styles.component, className), ref: ref, "data-test-id": dataTestId, style: {
20
- zIndex: computedZIndex,
21
- ...style,
22
- } }, restProps),
23
- React.createElement(TransitionGroup, null, notifications.map(element => (React.createElement(CSSTransition, { key: element.props.id, timeout: 400, classNames: CSS_TRANSITION_CLASS_NAMES, unmountOnExit: true },
24
- React.createElement(Notification, { element: element, className: styles.notification, onRemoveNotification: onRemoveNotification }))))))))));
25
- });
17
+ const NotificationManager = forwardRef(({ notifications, className, dataTestId, zIndex = stackingOrder.TOAST, style = {}, onRemoveNotification, ...restProps }, ref) => (React.createElement(Stack, { value: zIndex }, (computedZIndex) => (React.createElement(Portal, null,
18
+ React.createElement("div", { className: cn(styles.component, className), ref: ref, "data-test-id": dataTestId, style: {
19
+ zIndex: computedZIndex,
20
+ ...style,
21
+ }, ...restProps },
22
+ React.createElement(TransitionGroup, null, notifications.map((element) => (React.createElement(CSSTransition, { key: element.props.id, timeout: 400, classNames: CSS_TRANSITION_CLASS_NAMES, unmountOnExit: true },
23
+ React.createElement(Notification, { element: element, className: styles.notification, onRemoveNotification: onRemoveNotification })))))))))));
26
24
 
27
25
  export { NotificationManager };
@@ -1,4 +1,4 @@
1
- import { ReactElement, FC } from 'react';
1
+ import { FC, ReactElement } from 'react';
2
2
  import { NotificationProps as CoreNotificationProps } from "@alfalab/core-components-notification";
3
3
  type NotificationElement = ReactElement<CoreNotificationProps & {
4
4
  id: string;
package/modern/index.css CHANGED
@@ -1,11 +1,11 @@
1
- /* hash: uoz1t */
1
+ /* hash: 13y2i */
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_r8id3 {
8
+ .notification-manager__component_jyxlp {
9
9
  position: fixed;
10
10
  top: 0;
11
11
  right: var(--gap-s);
@@ -13,48 +13,48 @@
13
13
  flex-direction: column;
14
14
  }
15
15
 
16
- .notification-manager__component_r8id3 .notification-manager__notification_r8id3 {
16
+ .notification-manager__component_jyxlp .notification-manager__notification_jyxlp {
17
17
  position: static;
18
18
  width: calc(100vw - var(--gap-xl));
19
19
  margin-top: var(--gap-s);
20
20
  will-change: transform;
21
21
  }
22
22
 
23
- .notification-manager__enter_r8id3 {
23
+ .notification-manager__enter_jyxlp {
24
24
  visibility: hidden;
25
25
  transform: translate(0, -500px);
26
26
  transition: transform 0.4s ease-out;
27
27
  }
28
28
 
29
- .notification-manager__enterActive_r8id3 {
29
+ .notification-manager__enterActive_jyxlp {
30
30
  visibility: visible;
31
31
  transform: translate(0);
32
32
  }
33
33
 
34
- .notification-manager__exit_r8id3 {
34
+ .notification-manager__exit_jyxlp {
35
35
  opacity: 0;
36
36
  transition: opacity 0.15s ease-in-out;
37
37
  }
38
38
 
39
- .notification-manager__exitActive_r8id3 {
39
+ .notification-manager__exitActive_jyxlp {
40
40
  visibility: hidden;
41
41
  opacity: 0;
42
42
  }
43
43
 
44
44
  @media (min-width: 600px) {
45
- .notification-manager__component_r8id3 {
45
+ .notification-manager__component_jyxlp {
46
46
  right: var(--gap-4xl);
47
47
  }
48
48
 
49
- .notification-manager__component_r8id3 .notification-manager__notification_r8id3 {
49
+ .notification-manager__component_jyxlp .notification-manager__notification_jyxlp {
50
50
  width: auto;
51
51
  }
52
52
 
53
- .notification-manager__enter_r8id3 {
53
+ .notification-manager__enter_jyxlp {
54
54
  transform: translate(100%, 0);
55
55
  }
56
56
 
57
- .notification-manager__enterActive_r8id3 {
57
+ .notification-manager__enterActive_jyxlp {
58
58
  transform: translate(0);
59
59
  }
60
60
  }
package/modern/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import 'react';
2
- import 'classnames';
3
2
  import 'react-transition-group';
3
+ import 'classnames';
4
4
  import '@alfalab/core-components-portal/modern';
5
5
  import '@alfalab/core-components-stack/modern';
6
6
  import './components/notification/component.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alfalab/core-components-notification-manager",
3
- "version": "5.1.4",
3
+ "version": "5.1.6",
4
4
  "description": "Notification manager",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -17,7 +17,7 @@
17
17
  "react": "^16.9.0 || ^17.0.1 || ^18.0.0"
18
18
  },
19
19
  "dependencies": {
20
- "@alfalab/core-components-notification": "^6.1.4",
20
+ "@alfalab/core-components-notification": "^6.1.6",
21
21
  "@alfalab/core-components-portal": "^3.1.0",
22
22
  "@alfalab/core-components-stack": "^4.0.1",
23
23
  "classnames": "^2.3.1",
package/send-stats.js CHANGED
@@ -55,7 +55,7 @@ async function main() {
55
55
  };
56
56
 
57
57
  return new Promise((resolve, reject) => {
58
- const req = http.request(options, res => {
58
+ const req = http.request(options, (res) => {
59
59
  res.on('end', () => {
60
60
  resolve();
61
61
  });