@salutejs/sdds-finportal 0.148.2-dev.0 → 0.149.0-canary.1503.11559892364.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -133,6 +133,7 @@ import { MouseEvent as MouseEvent_2 } from 'react';
133
133
  import { MutableRefObject } from 'react';
134
134
  import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-components';
135
135
  import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
136
+ import { NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
136
137
  import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
137
138
  import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
138
139
  import { Overlay } from '@salutejs/plasma-new-hope/styled-components';
@@ -2904,6 +2905,7 @@ export { NotificationProps }
2904
2905
  export const NotificationsProvider: React_2.FC<{
2905
2906
  children: ReactNode;
2906
2907
  frame?: string;
2908
+ placement?: NotificationPlacement;
2907
2909
  }>;
2908
2910
 
2909
2911
  export { Overlay }
@@ -1,10 +1,11 @@
1
1
  import React, { ReactNode } from 'react';
2
- import { NotificationProps, NotificationIconPlacement, NotificationLayout, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
2
+ import { NotificationProps, NotificationIconPlacement, NotificationPlacement, NotificationLayout, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
3
3
  export { modalClasses } from '../Modal';
4
4
  export declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
5
5
  export declare const NotificationsProvider: React.FC<{
6
6
  children: ReactNode;
7
7
  frame?: string;
8
+ placement?: NotificationPlacement;
8
9
  }>;
9
- export type { NotificationIconPlacement, NotificationLayout, NotificationProps };
10
+ export type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };
10
11
  export { addNotification, closeNotification };
@@ -27,14 +27,16 @@ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-c
27
27
  var _Notification = /*#__PURE__*/require("./Notification.config");
28
28
  var _Modal = /*#__PURE__*/require("../Modal");
29
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
30
- var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.noticationConfig, _Notification.config);
30
+ var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.notificationConfig, _Notification.config);
31
31
  var Notification = exports.Notification = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
32
32
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
33
33
  var children = _ref.children,
34
34
  _ref$frame = _ref.frame,
35
- frame = _ref$frame === void 0 ? 'document' : _ref$frame;
35
+ frame = _ref$frame === void 0 ? 'document' : _ref$frame,
36
+ placement = _ref.placement;
36
37
  return /*#__PURE__*/_react["default"].createElement(_styledComponents.NotificationsProvider, {
37
38
  config: mergedConfig,
38
- frame: frame
39
+ frame: frame,
40
+ placement: placement
39
41
  }, children);
40
42
  };
@@ -1,16 +1,18 @@
1
1
  import React from 'react';
2
- import { component, mergeConfig, noticationConfig, NotificationsProvider as Provider, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
2
+ import { component, mergeConfig, notificationConfig, NotificationsProvider as Provider, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
3
3
  import { config } from './Notification.config';
4
4
  export { modalClasses } from '../Modal';
5
- var mergedConfig = /*#__PURE__*/mergeConfig(noticationConfig, config);
5
+ var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
6
6
  export var Notification = /*#__PURE__*/component(mergedConfig);
7
7
  export var NotificationsProvider = function NotificationsProvider(_ref) {
8
8
  var children = _ref.children,
9
9
  _ref$frame = _ref.frame,
10
- frame = _ref$frame === void 0 ? 'document' : _ref$frame;
10
+ frame = _ref$frame === void 0 ? 'document' : _ref$frame,
11
+ placement = _ref.placement;
11
12
  return /*#__PURE__*/React.createElement(Provider, {
12
13
  config: mergedConfig,
13
- frame: frame
14
+ frame: frame,
15
+ placement: placement
14
16
  }, children);
15
17
  };
16
18
  export { addNotification, closeNotification };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-finportal",
3
- "version": "0.148.2-dev.0",
3
+ "version": "0.149.0-canary.1503.11559892364.0",
4
4
  "description": "Salute Design System / React UI kit for SDDS FinPortal web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -19,7 +19,7 @@
19
19
  "directory": "packages/sdds-finportal"
20
20
  },
21
21
  "dependencies": {
22
- "@salutejs/plasma-new-hope": "0.175.2-dev.0",
22
+ "@salutejs/plasma-new-hope": "0.176.0-canary.1503.11559892364.0",
23
23
  "@salutejs/sdds-themes": "0.25.0-dev.0"
24
24
  },
25
25
  "peerDependencies": {
@@ -94,5 +94,5 @@
94
94
  "Vasiliy Loginevskiy"
95
95
  ],
96
96
  "sideEffects": false,
97
- "gitHead": "f357b83e7873a94eced779d35a1c7a0d43126702"
97
+ "gitHead": "419986de0e913650c852d4d31dc0ba98a192e03d"
98
98
  }