@salutejs/plasma-new-hope 0.175.2-dev.0 → 0.176.0-canary.1503.11559892364.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. package/cjs/components/Notification/Notification.css +11 -11
  2. package/cjs/components/Notification/Notification.js +2 -2
  3. package/cjs/components/Notification/Notification.js.map +1 -1
  4. package/cjs/components/Notification/Notification.styles.js +11 -2
  5. package/cjs/components/Notification/Notification.styles.js.map +1 -1
  6. package/cjs/components/Notification/{Notification.styles_7h8hp0.css → Notification.styles_e6274r.css} +2 -2
  7. package/cjs/components/Notification/Notification.tokens.js +2 -1
  8. package/cjs/components/Notification/Notification.tokens.js.map +1 -1
  9. package/cjs/components/Notification/Notification.types.js.map +1 -1
  10. package/cjs/components/Notification/NotificationsPortal.js +8 -4
  11. package/cjs/components/Notification/NotificationsPortal.js.map +1 -1
  12. package/cjs/components/Notification/NotificationsProvider.css +11 -11
  13. package/cjs/components/Notification/NotificationsProvider.js +3 -1
  14. package/cjs/components/Notification/NotificationsProvider.js.map +1 -1
  15. package/cjs/index.css +11 -11
  16. package/cjs/index.js +1 -1
  17. package/cjs/utils/index.js.map +1 -1
  18. package/emotion/cjs/components/Notification/Notification.js +2 -2
  19. package/emotion/cjs/components/Notification/Notification.styles.js +14 -19
  20. package/emotion/cjs/components/Notification/Notification.template-doc.mdx +17 -8
  21. package/emotion/cjs/components/Notification/Notification.tokens.js +2 -1
  22. package/emotion/cjs/components/Notification/NotificationsPortal.js +9 -5
  23. package/emotion/cjs/components/Notification/NotificationsProvider.js +3 -1
  24. package/emotion/cjs/components/Notification/index.js +4 -4
  25. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.js +5 -3
  26. package/emotion/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  27. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.js +5 -3
  28. package/emotion/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  29. package/emotion/es/components/Notification/Notification.js +1 -1
  30. package/emotion/es/components/Notification/Notification.styles.js +14 -19
  31. package/emotion/es/components/Notification/Notification.template-doc.mdx +17 -8
  32. package/emotion/es/components/Notification/Notification.tokens.js +2 -1
  33. package/emotion/es/components/Notification/NotificationsPortal.js +9 -5
  34. package/emotion/es/components/Notification/NotificationsProvider.js +3 -1
  35. package/emotion/es/components/Notification/index.js +1 -1
  36. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.js +6 -4
  37. package/emotion/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  38. package/emotion/es/examples/plasma_web/components/Notification/Notification.js +6 -4
  39. package/emotion/es/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  40. package/es/components/Notification/Notification.css +11 -11
  41. package/es/components/Notification/Notification.js +2 -2
  42. package/es/components/Notification/Notification.js.map +1 -1
  43. package/es/components/Notification/Notification.styles.js +11 -2
  44. package/es/components/Notification/Notification.styles.js.map +1 -1
  45. package/es/components/Notification/{Notification.styles_7h8hp0.css → Notification.styles_e6274r.css} +2 -2
  46. package/es/components/Notification/Notification.tokens.js +2 -1
  47. package/es/components/Notification/Notification.tokens.js.map +1 -1
  48. package/es/components/Notification/Notification.types.js.map +1 -1
  49. package/es/components/Notification/NotificationsPortal.js +8 -4
  50. package/es/components/Notification/NotificationsPortal.js.map +1 -1
  51. package/es/components/Notification/NotificationsProvider.css +11 -11
  52. package/es/components/Notification/NotificationsProvider.js +3 -1
  53. package/es/components/Notification/NotificationsProvider.js.map +1 -1
  54. package/es/index.css +11 -11
  55. package/es/index.js +1 -1
  56. package/es/utils/index.js.map +1 -1
  57. package/package.json +2 -2
  58. package/styled-components/cjs/components/Notification/Notification.js +2 -2
  59. package/styled-components/cjs/components/Notification/Notification.styles.js +5 -2
  60. package/styled-components/cjs/components/Notification/Notification.template-doc.mdx +17 -8
  61. package/styled-components/cjs/components/Notification/Notification.tokens.js +2 -1
  62. package/styled-components/cjs/components/Notification/NotificationsPortal.js +8 -4
  63. package/styled-components/cjs/components/Notification/NotificationsProvider.js +3 -1
  64. package/styled-components/cjs/components/Notification/index.js +4 -4
  65. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.js +5 -3
  66. package/styled-components/cjs/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  67. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.js +5 -3
  68. package/styled-components/cjs/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  69. package/styled-components/es/components/Notification/Notification.js +1 -1
  70. package/styled-components/es/components/Notification/Notification.styles.js +5 -2
  71. package/styled-components/es/components/Notification/Notification.template-doc.mdx +17 -8
  72. package/styled-components/es/components/Notification/Notification.tokens.js +2 -1
  73. package/styled-components/es/components/Notification/NotificationsPortal.js +8 -4
  74. package/styled-components/es/components/Notification/NotificationsProvider.js +3 -1
  75. package/styled-components/es/components/Notification/index.js +1 -1
  76. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.js +6 -4
  77. package/styled-components/es/examples/plasma_b2c/components/Notification/Notification.stories.tsx +25 -4
  78. package/styled-components/es/examples/plasma_web/components/Notification/Notification.js +6 -4
  79. package/styled-components/es/examples/plasma_web/components/Notification/Notification.stories.tsx +25 -4
  80. package/types/components/Notification/Notification.d.ts +3 -3
  81. package/types/components/Notification/Notification.d.ts.map +1 -1
  82. package/types/components/Notification/Notification.styles.d.ts +4 -2
  83. package/types/components/Notification/Notification.styles.d.ts.map +1 -1
  84. package/types/components/Notification/Notification.tokens.d.ts +1 -0
  85. package/types/components/Notification/Notification.tokens.d.ts.map +1 -1
  86. package/types/components/Notification/Notification.types.d.ts +11 -5
  87. package/types/components/Notification/Notification.types.d.ts.map +1 -1
  88. package/types/components/Notification/NotificationsPortal.d.ts.map +1 -1
  89. package/types/components/Notification/NotificationsProvider.d.ts +4 -3
  90. package/types/components/Notification/NotificationsProvider.d.ts.map +1 -1
  91. package/types/components/Notification/index.d.ts +2 -2
  92. package/types/components/Notification/index.d.ts.map +1 -1
  93. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts +4 -2
  94. package/types/examples/plasma_b2c/components/Notification/Notification.d.ts.map +1 -1
  95. package/types/examples/plasma_web/components/Notification/Notification.d.ts +4 -13
  96. package/types/examples/plasma_web/components/Notification/Notification.d.ts.map +1 -1
  97. package/types/utils/index.d.ts +1 -1
  98. package/types/utils/index.d.ts.map +1 -1
@@ -27,14 +27,16 @@ var Popup = /*#__PURE__*/(0, _engines.component)(_Popup.popupConfig);
27
27
  var StyledPopup = /*#__PURE__*/(0, _base["default"])(Popup, {
28
28
  target: "eefkyeq0",
29
29
  label: "plasma-new-hope__StyledPopup"
30
- })("&>.", _plasmaCore.popupBaseRootClass, "{overflow:hidden;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTm90aWZpY2F0aW9uL05vdGlmaWNhdGlvbnNQb3J0YWwudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlCaUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ob3RpZmljYXRpb24vTm90aWZpY2F0aW9uc1BvcnRhbC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgUmVhY3QsIHsgRkMsIEZvcndhcmRSZWZFeG90aWNDb21wb25lbnQsIFJlZkF0dHJpYnV0ZXMsIHVzZU1lbW8gfSBmcm9tICdyZWFjdCc7XG5pbXBvcnQgeyB1c2VTdG9yZW9uIH0gZnJvbSAnc3RvcmVvbi9yZWFjdCc7XG5pbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XG5pbXBvcnQgeyBwb3B1cEJhc2VSb290Q2xhc3MgfSBmcm9tICdAc2FsdXRlanMvcGxhc21hLWNvcmUnO1xuXG5pbXBvcnQgeyBQb3B1cFByb3ZpZGVyLC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9ID0gdXNlU3RvcmVvbjxOb3RpZmljYXRpb25zU3RhdGUsIE5vdGlmaWNhdGlvbnNFdmVudHM+KCdub3RpZmljYXRpb25zJyk7XG5cbiAgICBjb25zdCBOb3RpZmljYXRpb24gPSB1c2VNZW1vKFxuICAgICAgICAoKSA9PiBjb21wb25lbnQoY29uZmlnKSBhcyBGb3J3YXJkUmVmRXhvdGljQ29tcG9uZW50PE5vdGlmaWNhdGlvblByb3BzICYgUmVmQXR0cmlidXRlczxIVE1MRGl2RWxlbWVudD4+LFxuICAgICAgICBbXSxcbiAgICApO1xuXG4gICAgcmV0dXJuIChcbiAgICAgICAgPFBvcHVwUHJvdmlkZXI+XG4gICAgICAgICAgICB7bm90aWZpY2F0aW9ucy5sZW5ndGggPiAwICYmIChcbiAgICAgICAgICAgICAgICA8U3R5bGVkUG9wdXAgb3BlbmVkIGZyYW1lPXtmcmFtZX0gcGxhY2VtZW50PVwiYm90dG9tLXJpZ2h0XCIgekluZGV4PVwiOTEwMFwiPlxuICAgICAgICAgICAgICAgICAgICA8U3R5bGVkUm9vdD5cbiAgICAgICAgICAgICAgICAgICAgICAgIHtub3RpZmljYXRpb25zLm1hcCgoeyBpZCwgaXNIaWRkZW4sIC4uLnJlc3QgfSkgPT4gKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxTdHlsZWRJdGVtV3JhcHBlclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBrZXk9e2lkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaXNIaWRkZW4gPyBjbGFzc2VzLm5vdGlmaWNhdGlvbkl0ZW1IaWRkZW4gOiBjbGFzc2VzLm5vdGlmaWNhdGlvbkl0ZW1PcGVuZWQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICl9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlzSGlkZGVuPXtpc0hpZGRlbiB8fCBmYWxzZX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICA+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxOb3RpZmljYXRpb25cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGtleT17aWR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBpZD17aWR9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBvbkNsb3NlQnV0dG9uQ2xpY2s9eygpID0+IGNsb3NlTm90aWZpY2F0aW9uKGlkKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHsuLi5yZXN0fVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAvPlxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDwvU3R5bGVkSXRlbVdyYXBwZXI+XG4gICAgICAgICAgICAgICAgICAgICAgICApKX1cbiAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRSb290PlxuICAgICAgICAgICAgICAgIDwvU3R5bGVkUG9wdXA+XG4gICAgICAgICAgICApfVxuICAgICAgICA8L1BvcHVwUHJvdmlkZXI+XG4gICAgKTtcbn07XG4iXX0= */"));
30
+ })("&>.", _plasmaCore.popupBaseRootClass, "{overflow:hidden;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy1lbW90aW9uL2NvbXBvbmVudHMvTm90aWZpY2F0aW9uL05vdGlmaWNhdGlvbnNQb3J0YWwudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlCaUMiLCJmaWxlIjoiLi4vLi4vLi4vLi4vc3JjLWVtb3Rpb24vY29tcG9uZW50cy9Ob3RpZmljYXRpb24vTm90aWZpY2F0aW9uc1BvcnRhbC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcn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fSkgPT4gKFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIDxTdHlsZWRJdGVtV3JhcHBlclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBrZXk9e2lkfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjbGFzc05hbWU9e2N4KFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaXNIaWRkZW4gPyBjbGFzc2VzLm5vdGlmaWNhdGlvbkl0ZW1IaWRkZW4gOiBjbGFzc2VzLm5vdGlmaWNhdGlvbkl0ZW1PcGVuZWQsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwbGFjZW1lbnQgPT09ICdib3R0b20tbGVmdCcgJiYgY2xhc3Nlcy5ub3RpZmljYXRpb25MZWZ0VG9SaWdodEFuaW1hdGlvbixcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKX1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgaXNIaWRkZW49e2lzSGlkZGVuIHx8IGZhbHNlfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgID5cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgPE5vdGlmaWNhdGlvblxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAga2V5PXtpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlkPXtpZH1cbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIG9uQ2xvc2VCdXR0b25DbGljaz17KCkgPT4gY2xvc2VOb3RpZmljYXRpb24oaWQpfVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgey4uLnJlc3R9XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC8+XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgPC9TdHlsZWRJdGVtV3JhcHBlcj5cbiAgICAgICAgICAgICAgICAgICAgICAgICkpfVxuICAgICAgICAgICAgICAgICAgICA8L1N0eWxlZFJvb3Q+XG4gICAgICAgICAgICAgICAgPC9TdHlsZWRQb3B1cD5cbiAgICAgICAgICAgICl9XG4gICAgICAgIDwvUG9wdXBQcm92aWRlcj5cbiAgICApO1xufTtcbiJdfQ== */"));
31
31
 
32
32
  /**
33
33
  * Обертка для визуального представления уведомлений.
34
34
  */
35
35
  var NotificationsPortal = exports.NotificationsPortal = function NotificationsPortal(_ref) {
36
36
  var config = _ref.config,
37
- frame = _ref.frame;
37
+ frame = _ref.frame,
38
+ _ref$placement = _ref.placement,
39
+ placement = _ref$placement === void 0 ? 'bottom-right' : _ref$placement;
38
40
  var _useStoreon = (0, _react2.useStoreon)('notifications'),
39
41
  notifications = _useStoreon.notifications;
40
42
  var Notification = (0, _react.useMemo)(function () {
@@ -43,15 +45,17 @@ var NotificationsPortal = exports.NotificationsPortal = function NotificationsPo
43
45
  return /*#__PURE__*/_react["default"].createElement(_Popup.PopupProvider, null, notifications.length > 0 && /*#__PURE__*/_react["default"].createElement(StyledPopup, {
44
46
  opened: true,
45
47
  frame: frame,
46
- placement: "bottom-right",
48
+ placement: placement,
47
49
  zIndex: "9100"
48
- }, /*#__PURE__*/_react["default"].createElement(_Notification.StyledRoot, null, notifications.map(function (_ref2) {
50
+ }, /*#__PURE__*/_react["default"].createElement(_Notification.StyledRoot, {
51
+ placement: placement
52
+ }, notifications.map(function (_ref2) {
49
53
  var id = _ref2.id,
50
54
  isHidden = _ref2.isHidden,
51
55
  rest = _objectWithoutProperties(_ref2, _excluded);
52
56
  return /*#__PURE__*/_react["default"].createElement(_Notification.StyledItemWrapper, {
53
57
  key: id,
54
- className: (0, _utils.cx)(isHidden ? _Notification2.classes.notificationItemHidden : _Notification2.classes.notificationItemOpened),
58
+ className: (0, _utils.cx)(isHidden ? _Notification2.classes.notificationItemHidden : _Notification2.classes.notificationItemOpened, placement === 'bottom-left' && _Notification2.classes.notificationLeftToRightAnimation),
55
59
  isHidden: isHidden || false
56
60
  }, /*#__PURE__*/_react["default"].createElement(Notification, _extends({
57
61
  key: id,
@@ -12,11 +12,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
12
12
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
13
13
  var children = _ref.children,
14
14
  config = _ref.config,
15
- frame = _ref.frame;
15
+ frame = _ref.frame,
16
+ placement = _ref.placement;
16
17
  return /*#__PURE__*/_react["default"].createElement(_react2.StoreContext.Provider, {
17
18
  value: _NotificationsStore.NotificationsStore
18
19
  }, children, /*#__PURE__*/_react["default"].createElement(_NotificationsPortal.NotificationsPortal, {
19
20
  frame: frame,
21
+ placement: placement,
20
22
  config: config
21
23
  }));
22
24
  };
@@ -21,16 +21,16 @@ Object.defineProperty(exports, "closeNotification", {
21
21
  return _NotificationsStore.closeNotification;
22
22
  }
23
23
  });
24
- Object.defineProperty(exports, "noticationConfig", {
24
+ Object.defineProperty(exports, "notificationClasses", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _Notification.noticationConfig;
27
+ return _Notification2.classes;
28
28
  }
29
29
  });
30
- Object.defineProperty(exports, "notificationClasses", {
30
+ Object.defineProperty(exports, "notificationConfig", {
31
31
  enumerable: true,
32
32
  get: function get() {
33
- return _Notification2.classes;
33
+ return _Notification.notificationConfig;
34
34
  }
35
35
  });
36
36
  Object.defineProperty(exports, "notificationRoot", {
@@ -16,14 +16,16 @@ var _engines = /*#__PURE__*/require("../../../../engines");
16
16
  var _Notification2 = /*#__PURE__*/require("./Notification.config");
17
17
  var _Modal = /*#__PURE__*/require("../../../../components/Modal");
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.noticationConfig, _Notification2.config);
19
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.notificationConfig, _Notification2.config);
20
20
  var Notification = exports.Notification = /*#__PURE__*/(0, _engines.component)(mergedConfig);
21
21
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
22
22
  var children = _ref.children,
23
23
  _ref$frame = _ref.frame,
24
- frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame;
24
+ frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame,
25
+ placement = _ref.placement;
25
26
  return /*#__PURE__*/_react["default"].createElement(_Notification.NotificationsProvider, {
26
27
  config: mergedConfig,
27
- frame: frame
28
+ frame: frame,
29
+ placement: placement
28
30
  }, children);
29
31
  };
@@ -5,6 +5,7 @@ import type { StoryObj, Meta } from '@storybook/react';
5
5
  import { Button } from '../Button/Button';
6
6
  import { Modal } from '../Modal/Modal';
7
7
  import {
8
+ NotificationPlacement,
8
9
  NotificationIconPlacement,
9
10
  NotificationLayout,
10
11
  addNotification,
@@ -20,6 +21,7 @@ const titles = ['Выполнено', 'Внимание', 'Ошибка'];
20
21
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
21
22
  const size = ['xs', 'xxs'];
22
23
  const iconPlacement = ['top', 'left'];
24
+ const notificationsPlacements = ['bottom-right', 'bottom-left'];
23
25
 
24
26
  const longText = `JavaScript frameworks are an essential part of modern front-end web development,
25
27
  providing developers with proven tools for building scalable, interactive web applications.
@@ -49,6 +51,7 @@ interface StoryDefaultProps {
49
51
  layout: NotificationLayout;
50
52
  size: 'xs' | 'xxs';
51
53
  iconPlacement: NotificationIconPlacement;
54
+ placement?: NotificationPlacement;
52
55
  }
53
56
 
54
57
  const StoryDefault = ({ title, children, iconPlacement, size, layout, showLeftIcon, ...rest }: StoryDefaultProps) => {
@@ -111,9 +114,10 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
111
114
  layout: NotificationLayout;
112
115
  size: 'xs' | 'xxs';
113
116
  iconPlacement: NotificationIconPlacement;
117
+ placement?: NotificationPlacement;
114
118
  };
115
119
 
116
- const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
120
+ const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
117
121
  const count = useRef(0);
118
122
  const handleClick = useCallback(() => {
119
123
  addNotification({ icon: <IconDisclosureRight />, ...rest, ...getNotificationProps(count.current) }, timeout);
@@ -121,7 +125,7 @@ const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
121
125
  }, [count, rest]);
122
126
 
123
127
  return (
124
- <NotificationsProvider>
128
+ <NotificationsProvider placement={placement}>
125
129
  <Button text="Добавить уведомление" onClick={handleClick} />
126
130
  </NotificationsProvider>
127
131
  );
@@ -135,20 +139,28 @@ export const LiveDemo: StoryObj<StoryLiveDemoProps> = {
135
139
  type: 'select',
136
140
  },
137
141
  },
142
+ placement: {
143
+ options: notificationsPlacements,
144
+ control: {
145
+ type: 'select',
146
+ },
147
+ },
138
148
  },
139
149
  args: {
140
150
  timeout: 3000,
141
151
  role: 'alert',
142
152
  layout: 'vertical',
153
+ placement: 'bottom-right',
143
154
  },
144
155
  render: (args) => <StoryLiveDemo {...args} />,
145
156
  };
146
157
 
147
158
  type StoryWithModalProps = ComponentProps<typeof Notification> & {
148
159
  timeout: number;
160
+ placement?: NotificationPlacement;
149
161
  };
150
162
 
151
- const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
163
+ const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
152
164
  const [isModalOpen, setIsModalOpen] = useState(false);
153
165
  const count = useRef(0);
154
166
  const handleClick = useCallback(() => {
@@ -157,7 +169,7 @@ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
157
169
  }, [count]);
158
170
 
159
171
  return (
160
- <NotificationsProvider>
172
+ <NotificationsProvider placement={placement}>
161
173
  <PopupProvider>
162
174
  <Button text="Open modal" onClick={() => setIsModalOpen(true)} />
163
175
  <Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
@@ -172,6 +184,15 @@ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
172
184
  export const WithModal: StoryObj<StoryLiveDemoProps> = {
173
185
  args: {
174
186
  timeout: 3500,
187
+ placement: 'bottom-right',
188
+ },
189
+ argTypes: {
190
+ placement: {
191
+ options: notificationsPlacements,
192
+ control: {
193
+ type: 'select',
194
+ },
195
+ },
175
196
  },
176
197
  render: (args) => <StoryWithModal {...args} />,
177
198
  };
@@ -16,14 +16,16 @@ var _engines = /*#__PURE__*/require("../../../../engines");
16
16
  var _Notification2 = /*#__PURE__*/require("./Notification.config");
17
17
  var _Modal = /*#__PURE__*/require("../../../../components/Modal");
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
19
- var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.noticationConfig, _Notification2.config);
19
+ var mergedConfig = /*#__PURE__*/(0, _engines.mergeConfig)(_Notification.notificationConfig, _Notification2.config);
20
20
  var Notification = exports.Notification = /*#__PURE__*/(0, _engines.component)(mergedConfig);
21
21
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
22
22
  var children = _ref.children,
23
23
  _ref$frame = _ref.frame,
24
- frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame;
24
+ frame = _ref$frame === void 0 ? 'theme-root' : _ref$frame,
25
+ placement = _ref.placement;
25
26
  return /*#__PURE__*/_react["default"].createElement(_Notification.NotificationsProvider, {
26
27
  config: mergedConfig,
27
- frame: frame
28
+ frame: frame,
29
+ placement: placement
28
30
  }, children);
29
31
  };
@@ -5,6 +5,7 @@ import type { StoryObj, Meta } from '@storybook/react';
5
5
  import { Button } from '../Button/Button';
6
6
  import { Modal } from '../Modal/Modal';
7
7
  import {
8
+ NotificationPlacement,
8
9
  NotificationIconPlacement,
9
10
  NotificationLayout,
10
11
  addNotification,
@@ -20,6 +21,7 @@ const titles = ['Выполнено', 'Внимание', 'Ошибка'];
20
21
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
21
22
  const size = ['xs', 'xxs'];
22
23
  const iconPlacement = ['top', 'left'];
24
+ const notificationsPlacements = ['bottom-right', 'bottom-left'];
23
25
 
24
26
  const longText = `JavaScript frameworks are an essential part of modern front-end web development,
25
27
  providing developers with proven tools for building scalable, interactive web applications.
@@ -49,6 +51,7 @@ interface StoryDefaultProps {
49
51
  layout: NotificationLayout;
50
52
  size: 'xs' | 'xxs';
51
53
  iconPlacement: NotificationIconPlacement;
54
+ placement?: NotificationPlacement;
52
55
  }
53
56
 
54
57
  const StoryDefault = ({ title, children, iconPlacement, size, layout, showLeftIcon, ...rest }: StoryDefaultProps) => {
@@ -111,9 +114,10 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
111
114
  layout: NotificationLayout;
112
115
  size: 'xs' | 'xxs';
113
116
  iconPlacement: NotificationIconPlacement;
117
+ placement?: NotificationPlacement;
114
118
  };
115
119
 
116
- const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
120
+ const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
117
121
  const count = useRef(0);
118
122
  const handleClick = useCallback(() => {
119
123
  addNotification({ icon: <IconDisclosureRight />, ...rest, ...getNotificationProps(count.current) }, timeout);
@@ -121,7 +125,7 @@ const StoryLiveDemo = ({ timeout, ...rest }: StoryLiveDemoProps) => {
121
125
  }, [count, rest]);
122
126
 
123
127
  return (
124
- <NotificationsProvider>
128
+ <NotificationsProvider placement={placement}>
125
129
  <Button text="Добавить уведомление" onClick={handleClick} />
126
130
  </NotificationsProvider>
127
131
  );
@@ -135,20 +139,28 @@ export const LiveDemo: StoryObj<StoryLiveDemoProps> = {
135
139
  type: 'select',
136
140
  },
137
141
  },
142
+ placement: {
143
+ options: notificationsPlacements,
144
+ control: {
145
+ type: 'select',
146
+ },
147
+ },
138
148
  },
139
149
  args: {
140
150
  timeout: 3000,
141
151
  role: 'alert',
142
152
  layout: 'vertical',
153
+ placement: 'bottom-right',
143
154
  },
144
155
  render: (args) => <StoryLiveDemo {...args} />,
145
156
  };
146
157
 
147
158
  type StoryWithModalProps = ComponentProps<typeof Notification> & {
148
159
  timeout: number;
160
+ placement?: NotificationPlacement;
149
161
  };
150
162
 
151
- const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
163
+ const StoryWithModal = ({ timeout, placement }: StoryWithModalProps) => {
152
164
  const [isModalOpen, setIsModalOpen] = useState(false);
153
165
  const count = useRef(0);
154
166
  const handleClick = useCallback(() => {
@@ -157,7 +169,7 @@ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
157
169
  }, [count]);
158
170
 
159
171
  return (
160
- <NotificationsProvider>
172
+ <NotificationsProvider placement={placement}>
161
173
  <PopupProvider>
162
174
  <Button text="Open modal" onClick={() => setIsModalOpen(true)} />
163
175
  <Modal frame="theme-root" opened={isModalOpen} onClose={() => setIsModalOpen(false)}>
@@ -172,6 +184,15 @@ const StoryWithModal = ({ timeout }: StoryWithModalProps) => {
172
184
  export const WithModal: StoryObj<StoryLiveDemoProps> = {
173
185
  args: {
174
186
  timeout: 3500,
187
+ placement: 'bottom-right',
188
+ },
189
+ argTypes: {
190
+ placement: {
191
+ options: notificationsPlacements,
192
+ control: {
193
+ type: 'select',
194
+ },
195
+ },
175
196
  },
176
197
  render: (args) => <StoryWithModal {...args} />,
177
198
  };
@@ -86,7 +86,7 @@ export var notificationRoot = function notificationRoot(Root) {
86
86
  })))));
87
87
  });
88
88
  };
89
- export var noticationConfig = {
89
+ export var notificationConfig = {
90
90
  name: 'Notification',
91
91
  tag: 'div',
92
92
  layout: notificationRoot,