@salutejs/plasma-web 1.584.0-canary.2013.15538813402.0 → 1.584.0-canary.2013.15555525626.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.d.ts +6 -3
- package/components/Notification/Notification.js +3 -2
- package/components/Notification/index.d.ts +1 -1
- package/css/cjs/components/Notification/Notification.js +3 -1
- package/css/cjs/components/Notification/Notification.js.map +1 -1
- package/css/es/components/Notification/Notification.js +4 -3
- package/css/es/components/Notification/Notification.js.map +1 -1
- package/es/components/Notification/Notification.js +2 -1
- package/package.json +11 -11
@@ -1,7 +1,7 @@
|
|
1
|
-
import React, { ReactNode } from 'react';
|
2
|
-
import { NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
1
|
+
import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';
|
2
|
+
import { NotificationProps as NotificationPropsNewHope, NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
3
3
|
export type { NotificationPlacement };
|
4
|
-
export declare const
|
4
|
+
export declare const NotificationNewHope: 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,6 +21,9 @@ export declare const Notification: React.FunctionComponent<import("@salutejs/pla
|
|
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>;
|
24
27
|
export declare const NotificationsProvider: React.FC<{
|
25
28
|
children: ReactNode;
|
26
29
|
frame?: string;
|
@@ -3,13 +3,14 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.NotificationsProvider = exports.Notification = void 0;
|
6
|
+
exports.NotificationsProvider = exports.NotificationNewHope = exports.Notification = void 0;
|
7
7
|
var _react = /*#__PURE__*/_interopRequireDefault( /*#__PURE__*/require("react"));
|
8
8
|
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
9
9
|
var _Notification = /*#__PURE__*/require("./Notification.config");
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
11
11
|
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.notificationConfig, _Notification.config);
|
12
|
-
var
|
12
|
+
var NotificationNewHope = exports.NotificationNewHope = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
13
|
+
var Notification = exports.Notification = NotificationNewHope;
|
13
14
|
var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
|
14
15
|
var children = _ref.children,
|
15
16
|
_ref$frame = _ref.frame,
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { NotificationsProvider, Notification } from './Notification';
|
2
2
|
export { addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
|
3
|
-
export type { NotificationProps, NotificationLayout, NotificationIconPlacement, } from '@salutejs/plasma-new-hope/styled-components';
|
3
|
+
export type { NotificationProps, NotificationLayout, NotificationPlacement, NotificationIconPlacement, } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -11,7 +11,8 @@ 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
|
14
|
+
var NotificationNewHope = /*#__PURE__*/plasmaNewHope.component(mergedConfig);
|
15
|
+
var Notification = NotificationNewHope;
|
15
16
|
var NotificationsProvider = function NotificationsProvider(_ref) {
|
16
17
|
var children = _ref.children,
|
17
18
|
_ref$frame = _ref.frame,
|
@@ -27,5 +28,6 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
|
|
27
28
|
};
|
28
29
|
|
29
30
|
exports.Notification = Notification;
|
31
|
+
exports.NotificationNewHope = NotificationNewHope;
|
30
32
|
exports.NotificationsProvider = NotificationsProvider;
|
31
33
|
//# sourceMappingURL=Notification.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Notification.js","sources":["../../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport {\n NotificationPlacement,\n notificationConfig,\n NotificationsProvider as Provider,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport type { NotificationPlacement };\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const
|
1
|
+
{"version":3,"file":"Notification.js","sources":["../../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';\nimport {\n NotificationProps as NotificationPropsNewHope,\n NotificationPlacement,\n notificationConfig,\n NotificationsProvider as Provider,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport type { NotificationPlacement };\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const NotificationNewHope = component(mergedConfig);\n\ntype ConfigProps = 'size' | 'view' | 'layout' | 'closeIconType';\ntype NotificationProps = Pick<ComponentProps<typeof NotificationNewHope>, ConfigProps> &\n Omit<NotificationPropsNewHope, ConfigProps>;\n\nexport const Notification = NotificationNewHope as ForwardRefExoticComponent<NotificationProps>;\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"],"names":["mergedConfig","mergeConfig","notificationConfig","config","NotificationNewHope","component","Notification","NotificationsProvider","_ref","children","_ref$frame","frame","placement","UNSAFE_SSR_ENABLED","React","createElement","Provider"],"mappings":";;;;;;;;;;;;AAcA,IAAMA,YAAY,gBAAGC,yBAAW,CAACC,gCAAkB,EAAEC,0BAAM,CAAC,CAAA;IAE/CC,mBAAmB,gBAAGC,uBAAS,CAACL,YAAY,EAAC;AAMnD,IAAMM,YAAY,GAAGF,oBAAmE;IAElFG,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;AAACb,IAAAA,MAAM,EAAEH,YAAa;AAACW,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAU;AAACC,IAAAA,kBAAkB,EAAEA,kBAAAA;AAAmB,GAAA,EACtGJ,QACK,CAAC,CAAA;AAEnB;;;;;;"}
|
@@ -1,9 +1,10 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import {
|
2
|
+
import { NotificationsProvider as NotificationsProvider$1, mergeConfig, notificationConfig, component } from '@salutejs/plasma-new-hope';
|
3
3
|
import { config } from './Notification.config.js';
|
4
4
|
|
5
5
|
var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
|
6
|
-
var
|
6
|
+
var NotificationNewHope = /*#__PURE__*/component(mergedConfig);
|
7
|
+
var Notification = NotificationNewHope;
|
7
8
|
var NotificationsProvider = function NotificationsProvider(_ref) {
|
8
9
|
var children = _ref.children,
|
9
10
|
_ref$frame = _ref.frame,
|
@@ -18,5 +19,5 @@ var NotificationsProvider = function NotificationsProvider(_ref) {
|
|
18
19
|
}, children);
|
19
20
|
};
|
20
21
|
|
21
|
-
export { Notification, NotificationsProvider };
|
22
|
+
export { Notification, NotificationNewHope, NotificationsProvider };
|
22
23
|
//# sourceMappingURL=Notification.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Notification.js","sources":["../../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport {\n NotificationPlacement,\n notificationConfig,\n NotificationsProvider as Provider,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport type { NotificationPlacement };\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const
|
1
|
+
{"version":3,"file":"Notification.js","sources":["../../../../src-css/components/Notification/Notification.tsx"],"sourcesContent":["import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';\nimport {\n NotificationProps as NotificationPropsNewHope,\n NotificationPlacement,\n notificationConfig,\n NotificationsProvider as Provider,\n component,\n mergeConfig,\n} from '@salutejs/plasma-new-hope';\n\nimport { config } from './Notification.config';\n\nexport type { NotificationPlacement };\n\nconst mergedConfig = mergeConfig(notificationConfig, config);\n\nexport const NotificationNewHope = component(mergedConfig);\n\ntype ConfigProps = 'size' | 'view' | 'layout' | 'closeIconType';\ntype NotificationProps = Pick<ComponentProps<typeof NotificationNewHope>, ConfigProps> &\n Omit<NotificationPropsNewHope, ConfigProps>;\n\nexport const Notification = NotificationNewHope as ForwardRefExoticComponent<NotificationProps>;\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"],"names":["mergedConfig","mergeConfig","notificationConfig","config","NotificationNewHope","component","Notification","NotificationsProvider","_ref","children","_ref$frame","frame","placement","UNSAFE_SSR_ENABLED","React","createElement","Provider"],"mappings":";;;;AAcA,IAAMA,YAAY,gBAAGC,WAAW,CAACC,kBAAkB,EAAEC,MAAM,CAAC,CAAA;IAE/CC,mBAAmB,gBAAGC,SAAS,CAACL,YAAY,EAAC;AAMnD,IAAMM,YAAY,GAAGF,oBAAmE;IAElFG,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;AAACb,IAAAA,MAAM,EAAEH,YAAa;AAACW,IAAAA,KAAK,EAAEA,KAAM;AAACC,IAAAA,SAAS,EAAEA,SAAU;AAACC,IAAAA,kBAAkB,EAAEA,kBAAAA;AAAmB,GAAA,EACtGJ,QACK,CAAC,CAAA;AAEnB;;;;"}
|
@@ -2,7 +2,8 @@ import React from 'react';
|
|
2
2
|
import { notificationConfig, NotificationsProvider as Provider, component, mergeConfig } from '@salutejs/plasma-new-hope/styled-components';
|
3
3
|
import { config } from './Notification.config';
|
4
4
|
var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
|
5
|
-
export var
|
5
|
+
export var NotificationNewHope = /*#__PURE__*/component(mergedConfig);
|
6
|
+
export var Notification = NotificationNewHope;
|
6
7
|
export var NotificationsProvider = function NotificationsProvider(_ref) {
|
7
8
|
var children = _ref.children,
|
8
9
|
_ref$frame = _ref.frame,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/plasma-web",
|
3
|
-
"version": "1.584.0-canary.2013.
|
3
|
+
"version": "1.584.0-canary.2013.15555525626.0",
|
4
4
|
"description": "Salute Design System / React UI kit for web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -19,13 +19,13 @@
|
|
19
19
|
"directory": "packages/plasma-web"
|
20
20
|
},
|
21
21
|
"dependencies": {
|
22
|
-
"@salutejs/plasma-core": "1.198.0-canary.2013.
|
23
|
-
"@salutejs/plasma-hope": "1.343.0-canary.2013.
|
24
|
-
"@salutejs/plasma-new-hope": "0.326.0-canary.2013.
|
25
|
-
"@salutejs/plasma-themes": "0.34.0-canary.2013.
|
26
|
-
"@salutejs/plasma-tokens-b2b": "1.50.0-canary.2013.
|
27
|
-
"@salutejs/plasma-tokens-b2c": "0.61.0-canary.2013.
|
28
|
-
"@salutejs/plasma-tokens-web": "1.65.0-canary.2013.
|
22
|
+
"@salutejs/plasma-core": "1.198.0-canary.2013.15555525626.0",
|
23
|
+
"@salutejs/plasma-hope": "1.343.0-canary.2013.15555525626.0",
|
24
|
+
"@salutejs/plasma-new-hope": "0.326.0-canary.2013.15555525626.0",
|
25
|
+
"@salutejs/plasma-themes": "0.34.0-canary.2013.15555525626.0",
|
26
|
+
"@salutejs/plasma-tokens-b2b": "1.50.0-canary.2013.15555525626.0",
|
27
|
+
"@salutejs/plasma-tokens-b2c": "0.61.0-canary.2013.15555525626.0",
|
28
|
+
"@salutejs/plasma-tokens-web": "1.65.0-canary.2013.15555525626.0",
|
29
29
|
"@salutejs/plasma-typo": "0.42.0"
|
30
30
|
},
|
31
31
|
"peerDependencies": {
|
@@ -49,9 +49,9 @@
|
|
49
49
|
"@rollup/plugin-commonjs": "25.0.7",
|
50
50
|
"@rollup/plugin-node-resolve": "15.2.3",
|
51
51
|
"@salutejs/plasma-colors": "0.15.0",
|
52
|
-
"@salutejs/plasma-cy-utils": "0.129.0-canary.2013.
|
52
|
+
"@salutejs/plasma-cy-utils": "0.129.0-canary.2013.15555525626.0",
|
53
53
|
"@salutejs/plasma-icons": "1.218.0",
|
54
|
-
"@salutejs/plasma-sb-utils": "0.199.0-canary.2013.
|
54
|
+
"@salutejs/plasma-sb-utils": "0.199.0-canary.2013.15555525626.0",
|
55
55
|
"@storybook/addon-docs": "7.6.17",
|
56
56
|
"@storybook/addon-essentials": "7.6.17",
|
57
57
|
"@storybook/addons": "7.6.17",
|
@@ -111,5 +111,5 @@
|
|
111
111
|
"Fanil Zubairov"
|
112
112
|
],
|
113
113
|
"sideEffects": false,
|
114
|
-
"gitHead": "
|
114
|
+
"gitHead": "a3f21bbac6fdbdb299e5ec551b63c22eaf0f2d85"
|
115
115
|
}
|