@salutejs/sdds-cs 0.318.0-canary.2015.15553048256.0 → 0.318.0-canary.2016.15553329485.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.
@@ -1,7 +1,7 @@
1
- import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';
2
- import { NotificationProps as NotificationPropsNewHope, NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
3
- export type { NotificationPlacement };
4
- export declare const NotificationNewHope: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
1
+ import React, { ReactNode } from 'react';
2
+ import { NotificationProps, NotificationIconPlacement, NotificationPlacement, NotificationLayout, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
3
+ export { modalClasses } from '../Modal';
4
+ export declare const Notification: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
5
5
  view: {
6
6
  default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
7
7
  };
@@ -17,12 +17,11 @@ export declare const NotificationNewHope: React.FunctionComponent<import("@salut
17
17
  thin: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
18
18
  };
19
19
  }> & (React.HTMLAttributes<HTMLElement> | import("@salutejs/plasma-new-hope/types/engines/types").HTMLAttributesWithoutOnChange<HTMLElement> | import("@salutejs/plasma-new-hope/types/engines/types").HTMLAttributesWithoutOnChangeAndDefaultValue<HTMLElement>)>;
20
- type ConfigProps = 'size' | 'view' | 'layout' | 'closeIconType';
21
- type NotificationProps = Pick<ComponentProps<typeof NotificationNewHope>, ConfigProps> & Omit<NotificationPropsNewHope, ConfigProps>;
22
- export declare const Notification: ForwardRefExoticComponent<NotificationProps>;
23
20
  export declare const NotificationsProvider: React.FC<{
24
21
  children: ReactNode;
25
22
  frame?: string;
26
23
  placement?: NotificationPlacement;
27
24
  UNSAFE_SSR_ENABLED?: boolean;
28
25
  }>;
26
+ export type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };
27
+ export { addNotification, closeNotification };
@@ -3,14 +3,32 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.NotificationsProvider = exports.NotificationNewHope = exports.Notification = void 0;
6
+ exports.NotificationsProvider = exports.Notification = void 0;
7
+ Object.defineProperty(exports, "addNotification", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _styledComponents.addNotification;
11
+ }
12
+ });
13
+ Object.defineProperty(exports, "closeNotification", {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return _styledComponents.closeNotification;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, "modalClasses", {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _Modal.modalClasses;
23
+ }
24
+ });
7
25
  var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
26
  var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
9
27
  var _Notification = /*#__PURE__*/require("./Notification.config");
28
+ var _Modal = /*#__PURE__*/require("../Modal");
10
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
30
  var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.notificationConfig, _Notification.config);
12
- var NotificationNewHope = exports.NotificationNewHope = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
13
- var Notification = exports.Notification = NotificationNewHope;
31
+ var Notification = exports.Notification = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
14
32
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
15
33
  var children = _ref.children,
16
34
  _ref$frame = _ref.frame,
@@ -1,3 +1,2 @@
1
- export { NotificationsProvider, Notification } from './Notification';
2
- export { addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
3
- export type { NotificationProps, NotificationLayout, NotificationIconPlacement, } from '@salutejs/plasma-new-hope/styled-components';
1
+ export { NotificationsProvider, Notification, addNotification, closeNotification } from './Notification';
2
+ export type { NotificationIconPlacement, NotificationLayout, NotificationProps } from './Notification';
@@ -18,14 +18,13 @@ Object.defineProperty(exports, "NotificationsProvider", {
18
18
  Object.defineProperty(exports, "addNotification", {
19
19
  enumerable: true,
20
20
  get: function get() {
21
- return _styledComponents.addNotification;
21
+ return _Notification.addNotification;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "closeNotification", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _styledComponents.closeNotification;
27
+ return _Notification.closeNotification;
28
28
  }
29
29
  });
30
- var _Notification = /*#__PURE__*/require("./Notification");
31
- var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
30
+ var _Notification = /*#__PURE__*/require("./Notification");
@@ -3,14 +3,32 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.NotificationsProvider = exports.NotificationNewHope = exports.Notification = void 0;
6
+ exports.NotificationsProvider = exports.Notification = void 0;
7
+ Object.defineProperty(exports, "addNotification", {
8
+ enumerable: true,
9
+ get: function get() {
10
+ return _emotion.addNotification;
11
+ }
12
+ });
13
+ Object.defineProperty(exports, "closeNotification", {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return _emotion.closeNotification;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, "modalClasses", {
20
+ enumerable: true,
21
+ get: function get() {
22
+ return _Modal.modalClasses;
23
+ }
24
+ });
7
25
  var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
8
26
  var _emotion = /*#__PURE__*/require("@salutejs/plasma-new-hope/emotion");
9
27
  var _Notification = /*#__PURE__*/require("./Notification.config");
28
+ var _Modal = /*#__PURE__*/require("../Modal");
10
29
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
11
30
  var mergedConfig = /*#__PURE__*/(0, _emotion.mergeConfig)(_emotion.notificationConfig, _Notification.config);
12
- var NotificationNewHope = exports.NotificationNewHope = /*#__PURE__*/(0, _emotion.component)(mergedConfig);
13
- var Notification = exports.Notification = NotificationNewHope;
31
+ var Notification = exports.Notification = /*#__PURE__*/(0, _emotion.component)(mergedConfig);
14
32
  var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
15
33
  var children = _ref.children,
16
34
  _ref$frame = _ref.frame,
@@ -4,14 +4,19 @@ import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { IconDisclosureRight, IconSber } from '@salutejs/plasma-icons';
5
5
  import { disableProps, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
6
6
  import { action } from '@storybook/addon-actions';
7
- import { addNotification } from '@salutejs/plasma-new-hope';
8
- import type { NotificationIconPlacement, NotificationLayout } from '@salutejs/plasma-new-hope';
9
7
 
10
8
  import { Button } from '../Button/Button';
11
9
  import { Modal } from '../Modal/Modal';
12
10
  import { PopupProvider } from '../Popup';
13
11
 
14
- import { Notification, NotificationsProvider, NotificationPlacement } from './Notification';
12
+ import {
13
+ Notification,
14
+ NotificationsProvider,
15
+ NotificationPlacement,
16
+ NotificationIconPlacement,
17
+ NotificationLayout,
18
+ addNotification,
19
+ } from './Notification';
15
20
 
16
21
  const titles = ['Выполнено', 'Внимание', 'Ошибка'];
17
22
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
@@ -18,14 +18,13 @@ Object.defineProperty(exports, "NotificationsProvider", {
18
18
  Object.defineProperty(exports, "addNotification", {
19
19
  enumerable: true,
20
20
  get: function get() {
21
- return _emotion.addNotification;
21
+ return _Notification.addNotification;
22
22
  }
23
23
  });
24
24
  Object.defineProperty(exports, "closeNotification", {
25
25
  enumerable: true,
26
26
  get: function get() {
27
- return _emotion.closeNotification;
27
+ return _Notification.closeNotification;
28
28
  }
29
29
  });
30
- var _Notification = /*#__PURE__*/require("./Notification");
31
- var _emotion = /*#__PURE__*/require("@salutejs/plasma-new-hope/emotion");
30
+ var _Notification = /*#__PURE__*/require("./Notification");
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { notificationConfig, NotificationsProvider as Provider, component, mergeConfig } from '@salutejs/plasma-new-hope/emotion';
2
+ import { component, mergeConfig, notificationConfig, NotificationsProvider as Provider, addNotification, closeNotification } from '@salutejs/plasma-new-hope/emotion';
3
3
  import { config } from './Notification.config';
4
+ export { modalClasses } from '../Modal';
4
5
  var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
5
- export var NotificationNewHope = /*#__PURE__*/component(mergedConfig);
6
- export var Notification = NotificationNewHope;
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,
@@ -16,4 +16,5 @@ export var NotificationsProvider = function NotificationsProvider(_ref) {
16
16
  placement: placement,
17
17
  UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
18
18
  }, children);
19
- };
19
+ };
20
+ export { addNotification, closeNotification };
@@ -4,14 +4,19 @@ import type { StoryObj, Meta } from '@storybook/react';
4
4
  import { IconDisclosureRight, IconSber } from '@salutejs/plasma-icons';
5
5
  import { disableProps, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
6
6
  import { action } from '@storybook/addon-actions';
7
- import { addNotification } from '@salutejs/plasma-new-hope';
8
- import type { NotificationIconPlacement, NotificationLayout } from '@salutejs/plasma-new-hope';
9
7
 
10
8
  import { Button } from '../Button/Button';
11
9
  import { Modal } from '../Modal/Modal';
12
10
  import { PopupProvider } from '../Popup';
13
11
 
14
- import { Notification, NotificationsProvider, NotificationPlacement } from './Notification';
12
+ import {
13
+ Notification,
14
+ NotificationsProvider,
15
+ NotificationPlacement,
16
+ NotificationIconPlacement,
17
+ NotificationLayout,
18
+ addNotification,
19
+ } from './Notification';
15
20
 
16
21
  const titles = ['Выполнено', 'Внимание', 'Ошибка'];
17
22
  const texts = ['SSH ключ успешно скопирован', 'Нельзя скопировать SSH ключ', 'Не удалось скопировать SSH ключ'];
@@ -1,2 +1 @@
1
- export { NotificationsProvider, Notification } from './Notification';
2
- export { addNotification, closeNotification } from '@salutejs/plasma-new-hope/emotion';
1
+ export { NotificationsProvider, Notification, addNotification, closeNotification } from './Notification';
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { notificationConfig, NotificationsProvider as Provider, component, mergeConfig } 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
+ export { modalClasses } from '../Modal';
4
5
  var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
5
- export var NotificationNewHope = /*#__PURE__*/component(mergedConfig);
6
- export var Notification = NotificationNewHope;
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,
@@ -16,4 +16,5 @@ export var NotificationsProvider = function NotificationsProvider(_ref) {
16
16
  placement: placement,
17
17
  UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
18
18
  }, children);
19
- };
19
+ };
20
+ export { addNotification, closeNotification };
@@ -1,2 +1 @@
1
- export { NotificationsProvider, Notification } from './Notification';
2
- export { addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
1
+ export { NotificationsProvider, Notification, addNotification, closeNotification } from './Notification';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-cs",
3
- "version": "0.318.0-canary.2015.15553048256.0",
3
+ "version": "0.318.0-canary.2016.15553329485.0",
4
4
  "description": "Salute Design System / React UI kit for SDDS CS web applications",
5
5
  "author": "Salute Frontend Team <salute.developers@gmail.com>",
6
6
  "license": "MIT",
@@ -30,8 +30,8 @@
30
30
  "directory": "packages/sdds-cs"
31
31
  },
32
32
  "dependencies": {
33
- "@salutejs/plasma-new-hope": "0.326.0-canary.2015.15553048256.0",
34
- "@salutejs/sdds-themes": "0.38.0-canary.2015.15553048256.0"
33
+ "@salutejs/plasma-new-hope": "0.326.0-canary.2016.15553329485.0",
34
+ "@salutejs/sdds-themes": "0.38.0-canary.2016.15553329485.0"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@emotion/react": ">=11",
@@ -54,10 +54,10 @@
54
54
  "@microsoft/api-extractor": "7.38.3",
55
55
  "@originjs/vite-plugin-commonjs": "1.0.3",
56
56
  "@salutejs/plasma-colors": "0.15.0",
57
- "@salutejs/plasma-core": "1.198.0-canary.2015.15553048256.0",
58
- "@salutejs/plasma-cy-utils": "0.129.0-canary.2015.15553048256.0",
57
+ "@salutejs/plasma-core": "1.198.0-canary.2016.15553329485.0",
58
+ "@salutejs/plasma-cy-utils": "0.129.0-canary.2016.15553329485.0",
59
59
  "@salutejs/plasma-icons": "1.218.0",
60
- "@salutejs/plasma-sb-utils": "0.199.0-canary.2015.15553048256.0",
60
+ "@salutejs/plasma-sb-utils": "0.199.0-canary.2016.15553329485.0",
61
61
  "@storybook/addon-docs": "7.6.17",
62
62
  "@storybook/addon-essentials": "7.6.17",
63
63
  "@storybook/addons": "7.6.17",
@@ -123,5 +123,5 @@
123
123
  "Anton Vinogradov"
124
124
  ],
125
125
  "sideEffects": false,
126
- "gitHead": "0f3b21f34120c63eebbf76acdd19fcf3693bdd79"
126
+ "gitHead": "c78373876f8c65b9f297fa93b5c552d6bf7a478e"
127
127
  }