@salutejs/sdds-serv 0.313.0-canary.2015.15553048256.0 → 0.313.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.
- package/components/Notification/Notification.css +2 -0
- package/components/Notification/Notification.d.ts +6 -7
- package/components/Notification/Notification.js +13 -3
- package/components/Notification/Notification.js.map +1 -1
- package/components/Notification/index.d.ts +2 -3
- package/emotion/cjs/components/Notification/Notification.js +21 -3
- package/emotion/cjs/components/Notification/Notification.stories.tsx +8 -3
- package/emotion/cjs/components/Notification/index.js +3 -4
- package/emotion/es/components/Notification/Notification.js +5 -4
- package/emotion/es/components/Notification/Notification.stories.tsx +8 -3
- package/emotion/es/components/Notification/index.js +1 -2
- package/es/components/Notification/Notification.css +2 -0
- package/es/components/Notification/Notification.js +4 -4
- package/es/components/Notification/Notification.js.map +1 -1
- package/package.json +7 -7
- package/styled-components/cjs/components/Notification/Notification.js +21 -3
- package/styled-components/cjs/components/Notification/index.js +3 -4
- package/styled-components/es/components/Notification/Notification.js +5 -4
- package/styled-components/es/components/Notification/index.js +1 -2
@@ -8,3 +8,5 @@
|
|
8
8
|
.Notification_config_132q76f_djsygjg__1e3f7ddc{--plasma-notification-close-icon-button-size:1.5rem;--plasma-notification-close-icon-size:1.5rem;}
|
9
9
|
.Notification_config_132q76f_x5jqj9y__1e3f7ddc{--plasma-notification-close-icon-top:0.5rem;--plasma-notification-close-icon-right:0.5rem;--plasma-notification-padding:0.375rem;--plasma-notification-textbox-padding-top-with-top-icon:0rem;--plasma-notification-content-padding-top:0.125rem;--plasma-notification-content-padding-right:0.25rem;--plasma-notification-content-padding-bottom:0rem;--plasma-notification-content-padding-left:0.25rem;--plasma-notification-buttons-margin-left:0rem;}
|
10
10
|
.Notification_config_132q76f_x1e2dde6__1e3f7ddc{--plasma-notification-close-icon-top:0.8125rem;--plasma-notification-close-icon-right:1rem;--plasma-notification-padding:0.5625rem 1rem 1rem 1rem;--plasma-notification-textbox-padding-top-with-top-icon:0.1875rem;--plasma-notification-content-padding-top:0.25rem;--plasma-notification-content-padding-right:0rem;--plasma-notification-content-padding-bottom:0rem;--plasma-notification-content-padding-left:0rem;--plasma-notification-buttons-margin-left:2rem;}
|
11
|
+
|
12
|
+
.Modal_config_1c34cg3_d142ug3n__b666ae01{--plasma-modal-overlay-with-blur-color:rgba(35,35,35,0.2);--plasma-modal-overlay-color:var(--overlay-soft);--plasma-modal-body-background:var(--surface-solid-card);--plasma-modal-body-border-radius:1.25rem;--plasma-modal-body-padding:2rem;--plasma-modal-content-padding:0.625rem;--plasma-modal-close-button-radius:0.375rem;--plasma-modal-close-button-color:var(--text-secondary);--plasma-modal-close-button-hover-color:var(--text-secondary-hover);--plasma-modal-close-button-active-color:var(--text-secondary-active);--plasma-modal-outline-focus-color:var(--surface-accent);}
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import React, {
|
2
|
-
import { NotificationProps
|
3
|
-
export
|
4
|
-
export declare const
|
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
|
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -21,12 +21,11 @@ export declare const NotificationNewHope: React.FunctionComponent<import("@salut
|
|
21
21
|
xxs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
22
22
|
};
|
23
23
|
}> & (React.HTMLAttributes<HTMLElement> | import("@salutejs/plasma-new-hope/types/engines/types").HTMLAttributesWithoutOnChange<HTMLElement> | import("@salutejs/plasma-new-hope/types/engines/types").HTMLAttributesWithoutOnChangeAndDefaultValue<HTMLElement>)>;
|
24
|
-
type ConfigProps = 'size' | 'view' | 'layout' | 'closeIconType';
|
25
|
-
type NotificationProps = Pick<ComponentProps<typeof NotificationNewHope>, ConfigProps> & Omit<NotificationPropsNewHope, ConfigProps>;
|
26
|
-
export declare const Notification: ForwardRefExoticComponent<NotificationProps>;
|
27
24
|
export declare const NotificationsProvider: React.FC<{
|
28
25
|
children: ReactNode;
|
29
26
|
frame?: string;
|
30
27
|
placement?: NotificationPlacement;
|
31
28
|
UNSAFE_SSR_ENABLED?: boolean;
|
32
29
|
}>;
|
30
|
+
export type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };
|
31
|
+
export { addNotification, closeNotification };
|
@@ -11,8 +11,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
11
|
var React__default = /*#__PURE__*/_interopDefault(React);
|
12
12
|
|
13
13
|
var mergedConfig = /*#__PURE__*/plasmaNewHope.mergeConfig(plasmaNewHope.notificationConfig, Notification_config.config);
|
14
|
-
var
|
15
|
-
var Notification = NotificationNewHope;
|
14
|
+
var Notification = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
16
15
|
var NotificationsProvider = function NotificationsProvider(_ref) {
|
17
16
|
var children = _ref.children,
|
18
17
|
_ref$frame = _ref.frame,
|
@@ -27,7 +26,18 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
|
|
27
26
|
}, children);
|
28
27
|
};
|
29
28
|
|
29
|
+
Object.defineProperty(exports, 'addNotification', {
|
30
|
+
enumerable: true,
|
31
|
+
get: function () { return plasmaNewHope.addNotification; }
|
32
|
+
});
|
33
|
+
Object.defineProperty(exports, 'closeNotification', {
|
34
|
+
enumerable: true,
|
35
|
+
get: function () { return plasmaNewHope.closeNotification; }
|
36
|
+
});
|
37
|
+
Object.defineProperty(exports, 'modalClasses', {
|
38
|
+
enumerable: true,
|
39
|
+
get: function () { return plasmaNewHope.modalClasses; }
|
40
|
+
});
|
30
41
|
exports.Notification = Notification;
|
31
|
-
exports.NotificationNewHope = NotificationNewHope;
|
32
42
|
exports.NotificationsProvider = NotificationsProvider;
|
33
43
|
//# sourceMappingURL=Notification.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Notification.js","sources":["../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, {
|
1
|
+
{"version":3,"file":"Notification.js","sources":["../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport {\n component,\n mergeConfig,\n notificationConfig,\n NotificationProps,\n NotificationsProvider as Provider,\n NotificationIconPlacement,\n NotificationPlacement,\n NotificationLayout,\n addNotification,\n closeNotification,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport { modalClasses } from '../Modal';\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const Notification = component(mergedConfig);\n\nexport const NotificationsProvider: React.FC<{\n children: ReactNode;\n frame?: string;\n placement?: NotificationPlacement;\n UNSAFE_SSR_ENABLED?: boolean;\n}> = ({ children, frame = 'document', placement, UNSAFE_SSR_ENABLED }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement} UNSAFE_SSR_ENABLED={UNSAFE_SSR_ENABLED}>\n {children}\n </Provider>\n );\n};\n\nexport type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };\nexport { addNotification, closeNotification };\n"],"names":["mergedConfig","mergeConfig","notificationConfig","config","Notification","component","NotificationsProvider","_ref","children","_ref$frame","frame","placement","UNSAFE_SSR_ENABLED","React","createElement","Provider"],"mappings":";;;;;;;;;;;;AAkBA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,gCAAkB,EAAEC,0BAAM,CAAC,CAAA;IAE/CC,YAAY,gBAAGC,uBAAS,CAACL,YAAY,EAAC;IAEtCM,qBAKX,GAAG,SALQA,qBAKXA,CAAAC,IAAA,EAAwE;AAAA,EAAA,IAAlEC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,UAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,kBAAkB,GAAAL,IAAA,CAAlBK,kBAAkB,CAAA;AAC/D,EAAA,oBACIC,sBAAA,CAAAC,aAAA,CAACC,mCAAQ,EAAA;AAACZ,IAAAA,MAAM,EAAEH,YAAa;AAACU,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAU;AAACC,IAAAA,kBAAkB,EAAEA,kBAAAA;AAAmB,GAAA,EACtGJ,QACK,CAAC,CAAA;AAEnB;;;;;;;;;;;;;;;;;"}
|
@@ -1,3 +1,2 @@
|
|
1
|
-
export { NotificationsProvider, Notification } from './Notification';
|
2
|
-
export {
|
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';
|
@@ -3,14 +3,32 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.NotificationsProvider = exports.
|
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
|
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 } from '@salutejs/plasma-icons';
|
5
5
|
import { 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 {
|
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
|
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
|
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,
|
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
|
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 } from '@salutejs/plasma-icons';
|
5
5
|
import { 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 {
|
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';
|
@@ -8,3 +8,5 @@
|
|
8
8
|
.Notification_config_132q76f_djsygjg__1e3f7ddc{--plasma-notification-close-icon-button-size:1.5rem;--plasma-notification-close-icon-size:1.5rem;}
|
9
9
|
.Notification_config_132q76f_x5jqj9y__1e3f7ddc{--plasma-notification-close-icon-top:0.5rem;--plasma-notification-close-icon-right:0.5rem;--plasma-notification-padding:0.375rem;--plasma-notification-textbox-padding-top-with-top-icon:0rem;--plasma-notification-content-padding-top:0.125rem;--plasma-notification-content-padding-right:0.25rem;--plasma-notification-content-padding-bottom:0rem;--plasma-notification-content-padding-left:0.25rem;--plasma-notification-buttons-margin-left:0rem;}
|
10
10
|
.Notification_config_132q76f_x1e2dde6__1e3f7ddc{--plasma-notification-close-icon-top:0.8125rem;--plasma-notification-close-icon-right:1rem;--plasma-notification-padding:0.5625rem 1rem 1rem 1rem;--plasma-notification-textbox-padding-top-with-top-icon:0.1875rem;--plasma-notification-content-padding-top:0.25rem;--plasma-notification-content-padding-right:0rem;--plasma-notification-content-padding-bottom:0rem;--plasma-notification-content-padding-left:0rem;--plasma-notification-buttons-margin-left:2rem;}
|
11
|
+
|
12
|
+
.Modal_config_1c34cg3_d142ug3n__b666ae01{--plasma-modal-overlay-with-blur-color:rgba(35,35,35,0.2);--plasma-modal-overlay-color:var(--overlay-soft);--plasma-modal-body-background:var(--surface-solid-card);--plasma-modal-body-border-radius:1.25rem;--plasma-modal-body-padding:2rem;--plasma-modal-content-padding:0.625rem;--plasma-modal-close-button-radius:0.375rem;--plasma-modal-close-button-color:var(--text-secondary);--plasma-modal-close-button-hover-color:var(--text-secondary-hover);--plasma-modal-close-button-active-color:var(--text-secondary-active);--plasma-modal-outline-focus-color:var(--surface-accent);}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { NotificationsProvider as NotificationsProvider$1, mergeConfig, notificationConfig
|
2
|
+
import { component, NotificationsProvider as NotificationsProvider$1, mergeConfig, notificationConfig } from '@salutejs/plasma-new-hope';
|
3
|
+
export { addNotification, closeNotification, modalClasses } from '@salutejs/plasma-new-hope';
|
3
4
|
import { config } from './Notification.config.js';
|
4
5
|
|
5
6
|
var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
|
6
|
-
var
|
7
|
-
var Notification = NotificationNewHope;
|
7
|
+
var Notification = /*#__PURE__*/component(mergedConfig);
|
8
8
|
var NotificationsProvider = function NotificationsProvider(_ref) {
|
9
9
|
var children = _ref.children,
|
10
10
|
_ref$frame = _ref.frame,
|
@@ -19,5 +19,5 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
|
|
19
19
|
}, children);
|
20
20
|
};
|
21
21
|
|
22
|
-
export { Notification,
|
22
|
+
export { Notification, NotificationsProvider };
|
23
23
|
//# sourceMappingURL=Notification.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Notification.js","sources":["../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, {
|
1
|
+
{"version":3,"file":"Notification.js","sources":["../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport {\n component,\n mergeConfig,\n notificationConfig,\n NotificationProps,\n NotificationsProvider as Provider,\n NotificationIconPlacement,\n NotificationPlacement,\n NotificationLayout,\n addNotification,\n closeNotification,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport { modalClasses } from '../Modal';\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const Notification = component(mergedConfig);\n\nexport const NotificationsProvider: React.FC<{\n children: ReactNode;\n frame?: string;\n placement?: NotificationPlacement;\n UNSAFE_SSR_ENABLED?: boolean;\n}> = ({ children, frame = 'document', placement, UNSAFE_SSR_ENABLED }) => {\n return (\n <Provider config={mergedConfig} frame={frame} placement={placement} UNSAFE_SSR_ENABLED={UNSAFE_SSR_ENABLED}>\n {children}\n </Provider>\n );\n};\n\nexport type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };\nexport { addNotification, closeNotification };\n"],"names":["mergedConfig","mergeConfig","notificationConfig","config","Notification","component","NotificationsProvider","_ref","children","_ref$frame","frame","placement","UNSAFE_SSR_ENABLED","React","createElement","Provider"],"mappings":";;;;;AAkBA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,kBAAkB,EAAEC,MAAM,CAAC,CAAA;IAE/CC,YAAY,gBAAGC,SAAS,CAACL,YAAY,EAAC;IAEtCM,qBAKX,GAAG,SALQA,qBAKXA,CAAAC,IAAA,EAAwE;AAAA,EAAA,IAAlEC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CAAEG,KAAK;AAALA,IAAAA,KAAK,GAAAD,UAAA,KAAG,KAAA,CAAA,GAAA,UAAU,GAAAA,UAAA;IAAEE,SAAS,GAAAJ,IAAA,CAATI,SAAS;IAAEC,kBAAkB,GAAAL,IAAA,CAAlBK,kBAAkB,CAAA;AAC/D,EAAA,oBACIC,KAAA,CAAAC,aAAA,CAACC,uBAAQ,EAAA;AAACZ,IAAAA,MAAM,EAAEH,YAAa;AAACU,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAU;AAACC,IAAAA,kBAAkB,EAAEA,kBAAAA;AAAmB,GAAA,EACtGJ,QACK,CAAC,CAAA;AAEnB;;;;"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-serv",
|
3
|
-
"version": "0.313.0-canary.
|
3
|
+
"version": "0.313.0-canary.2016.15553329485.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS SERV web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -32,8 +32,8 @@
|
|
32
32
|
"directory": "packages/sdds-serv"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@salutejs/plasma-new-hope": "0.326.0-canary.
|
36
|
-
"@salutejs/sdds-themes": "0.38.0-canary.
|
35
|
+
"@salutejs/plasma-new-hope": "0.326.0-canary.2016.15553329485.0",
|
36
|
+
"@salutejs/sdds-themes": "0.38.0-canary.2016.15553329485.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
39
39
|
"@emotion/react": ">=11",
|
@@ -63,10 +63,10 @@
|
|
63
63
|
"@rollup/plugin-commonjs": "^25.0.4",
|
64
64
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
65
65
|
"@salutejs/plasma-colors": "0.15.0",
|
66
|
-
"@salutejs/plasma-core": "1.198.0-canary.
|
67
|
-
"@salutejs/plasma-cy-utils": "0.129.0-canary.
|
66
|
+
"@salutejs/plasma-core": "1.198.0-canary.2016.15553329485.0",
|
67
|
+
"@salutejs/plasma-cy-utils": "0.129.0-canary.2016.15553329485.0",
|
68
68
|
"@salutejs/plasma-icons": "1.218.0",
|
69
|
-
"@salutejs/plasma-sb-utils": "0.199.0-canary.
|
69
|
+
"@salutejs/plasma-sb-utils": "0.199.0-canary.2016.15553329485.0",
|
70
70
|
"@storybook/addon-docs": "7.6.17",
|
71
71
|
"@storybook/addon-essentials": "7.6.17",
|
72
72
|
"@storybook/addons": "7.6.17",
|
@@ -137,5 +137,5 @@
|
|
137
137
|
"sideEffects": [
|
138
138
|
"*.css"
|
139
139
|
],
|
140
|
-
"gitHead": "
|
140
|
+
"gitHead": "c78373876f8c65b9f297fa93b5c552d6bf7a478e"
|
141
141
|
}
|
@@ -3,14 +3,32 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.NotificationsProvider = exports.
|
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
|
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,
|
@@ -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
|
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
|
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");
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { notificationConfig, NotificationsProvider as Provider,
|
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
|
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';
|