@salutejs/sdds-finportal 0.225.0-canary.1718.12929142809.0 → 0.225.0-canary.1719.12929292229.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/api/sdds-finportal.api.md +2 -1
- package/components/Notification/Notification.d.ts +0 -1
- package/components/Notification/Notification.js +2 -4
- package/components/Toast/Toast.config.d.ts +10 -0
- package/components/Toast/Toast.config.js +16 -6
- package/components/Toast/Toast.d.ts +2 -0
- package/es/components/Notification/Notification.js +2 -4
- package/es/components/Toast/Toast.config.js +16 -6
- package/package.json +3 -3
- package/temp/sdds-finportal.api.md +2 -1
@@ -2698,7 +2698,6 @@ export const NotificationsProvider: React_2.FC<{
|
|
2698
2698
|
children: ReactNode;
|
2699
2699
|
frame?: string;
|
2700
2700
|
placement?: NotificationPlacement;
|
2701
|
-
UNSAFE_SSR_ENABLED?: boolean;
|
2702
2701
|
}>;
|
2703
2702
|
|
2704
2703
|
// @public (undocumented)
|
@@ -4254,6 +4253,8 @@ export { textXSBold }
|
|
4254
4253
|
export const Toast: FunctionComponent<PropsType< {
|
4255
4254
|
view: {
|
4256
4255
|
default: PolymorphicClassName;
|
4256
|
+
positive: PolymorphicClassName;
|
4257
|
+
negative: PolymorphicClassName;
|
4257
4258
|
dark: PolymorphicClassName;
|
4258
4259
|
light: PolymorphicClassName;
|
4259
4260
|
};
|
@@ -21,7 +21,6 @@ export declare const NotificationsProvider: React.FC<{
|
|
21
21
|
children: ReactNode;
|
22
22
|
frame?: string;
|
23
23
|
placement?: NotificationPlacement;
|
24
|
-
UNSAFE_SSR_ENABLED?: boolean;
|
25
24
|
}>;
|
26
25
|
export type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };
|
27
26
|
export { addNotification, closeNotification };
|
@@ -33,12 +33,10 @@ var NotificationsProvider = exports.NotificationsProvider = function Notificatio
|
|
33
33
|
var children = _ref.children,
|
34
34
|
_ref$frame = _ref.frame,
|
35
35
|
frame = _ref$frame === void 0 ? 'document' : _ref$frame,
|
36
|
-
placement = _ref.placement
|
37
|
-
UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED;
|
36
|
+
placement = _ref.placement;
|
38
37
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.NotificationsProvider, {
|
39
38
|
config: mergedConfig,
|
40
39
|
frame: frame,
|
41
|
-
placement: placement
|
42
|
-
UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
|
40
|
+
placement: placement
|
43
41
|
}, children);
|
44
42
|
};
|
@@ -7,7 +7,17 @@ export declare const config: {
|
|
7
7
|
variations: {
|
8
8
|
view: {
|
9
9
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
10
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
|
+
/**
|
13
|
+
* @deprecated
|
14
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
15
|
+
*/
|
10
16
|
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
17
|
+
/**
|
18
|
+
* @deprecated
|
19
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
20
|
+
*/
|
11
21
|
light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
22
|
};
|
13
23
|
size: {
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.config = void 0;
|
7
7
|
var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-components");
|
8
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
8
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
9
9
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
10
10
|
var config = exports.config = {
|
11
11
|
defaults: {
|
@@ -16,17 +16,27 @@ var config = exports.config = {
|
|
16
16
|
variations: {
|
17
17
|
view: {
|
18
18
|
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
|
19
|
-
|
20
|
-
|
19
|
+
positive: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n ", ": var(--text-positive);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.contentLeftColor, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
|
20
|
+
negative: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n ", ": var(--text-negative);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.contentLeftColor, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
|
21
|
+
/**
|
22
|
+
* @deprecated
|
23
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
24
|
+
*/
|
25
|
+
dark: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-primary-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover),
|
26
|
+
/**
|
27
|
+
* @deprecated
|
28
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
29
|
+
*/
|
30
|
+
light: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-light-surface-solid-primary-brightness);\n\n ", ": var(--on-light-text-secondary);\n ", ": var(--on-light-text-secondary);\n "])), _styledComponents.toastTokens.color, _styledComponents.toastTokens.background, _styledComponents.toastTokens.closeIconColor, _styledComponents.toastTokens.closeIconColorOnHover)
|
21
31
|
},
|
22
32
|
size: {
|
23
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(
|
33
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.75rem;\n ", ": calc(100vw - 5rem);\n ", ": 0.5625rem 0.75rem;\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.5rem;\n "])), _styledComponents.toastTokens.borderRadius, _styledComponents.toastTokens.maxWidth, _styledComponents.toastTokens.padding, _styledComponents.toastTokens.fontFamily, _styledComponents.toastTokens.fontSize, _styledComponents.toastTokens.fontStyle, _styledComponents.toastTokens.fontWeight, _styledComponents.toastTokens.letterSpacing, _styledComponents.toastTokens.lineHeight, _styledComponents.toastTokens.contentLeftMargin, _styledComponents.toastTokens.closeIconMargin)
|
24
34
|
},
|
25
35
|
closeIconType: {
|
26
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(
|
36
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), _styledComponents.toastTokens.closeIconButtonSize, _styledComponents.toastTokens.closeIconSize)
|
27
37
|
},
|
28
38
|
pilled: {
|
29
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(
|
39
|
+
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.375rem;\n "])), _styledComponents.toastTokens.pilledBorderRadius, _styledComponents.toastTokens.contentLeftMargin, _styledComponents.toastTokens.closeIconMargin)
|
30
40
|
}
|
31
41
|
}
|
32
42
|
};
|
@@ -3,6 +3,8 @@ export { useToast } from '@salutejs/plasma-new-hope/styled-components';
|
|
3
3
|
export declare const Toast: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
4
4
|
view: {
|
5
5
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
|
+
positive: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
|
+
negative: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
8
|
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
9
|
light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
8
10
|
};
|
@@ -8,13 +8,11 @@ export var NotificationsProvider = function NotificationsProvider(_ref) {
|
|
8
8
|
var children = _ref.children,
|
9
9
|
_ref$frame = _ref.frame,
|
10
10
|
frame = _ref$frame === void 0 ? 'document' : _ref$frame,
|
11
|
-
placement = _ref.placement
|
12
|
-
UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED;
|
11
|
+
placement = _ref.placement;
|
13
12
|
return /*#__PURE__*/React.createElement(Provider, {
|
14
13
|
config: mergedConfig,
|
15
14
|
frame: frame,
|
16
|
-
placement: placement
|
17
|
-
UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
|
15
|
+
placement: placement
|
18
16
|
}, children);
|
19
17
|
};
|
20
18
|
export { addNotification, closeNotification };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
3
3
|
import { css, toastTokens } from '@salutejs/plasma-new-hope/styled-components';
|
4
4
|
export var config = {
|
@@ -10,17 +10,27 @@ export var config = {
|
|
10
10
|
variations: {
|
11
11
|
view: {
|
12
12
|
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
|
13
|
-
|
14
|
-
|
13
|
+
positive: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n ", ": var(--text-positive);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.contentLeftColor, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
|
14
|
+
negative: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--text-primary);\n ", ": var(--surface-solid-card-brightness);\n ", ": var(--text-negative);\n\n ", ": var(--text-secondary);\n ", ": var(--text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.contentLeftColor, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
|
15
|
+
/**
|
16
|
+
* @deprecated
|
17
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
18
|
+
*/
|
19
|
+
dark: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-dark-text-primary);\n ", ": var(--on-dark-surface-solid-primary-brightness);\n\n ", ": var(--on-dark-text-secondary);\n ", ": var(--on-dark-text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover),
|
20
|
+
/**
|
21
|
+
* @deprecated
|
22
|
+
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
23
|
+
*/
|
24
|
+
light: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--on-light-text-primary);\n ", ": var(--on-light-surface-solid-primary-brightness);\n\n ", ": var(--on-light-text-secondary);\n ", ": var(--on-light-text-secondary);\n "])), toastTokens.color, toastTokens.background, toastTokens.closeIconColor, toastTokens.closeIconColorOnHover)
|
15
25
|
},
|
16
26
|
size: {
|
17
|
-
m: /*#__PURE__*/css(
|
27
|
+
m: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.75rem;\n ", ": calc(100vw - 5rem);\n ", ": 0.5625rem 0.75rem;\n ", ": var(--plasma-typo-body-xs-font-family);\n ", ": var(--plasma-typo-body-xs-font-size);\n ", ": var(--plasma-typo-body-xs-font-style);\n ", ": var(--plasma-typo-body-xs-font-weight);\n ", ": var(--plasma-typo-body-xs-letter-spacing);\n ", ": var(--plasma-typo-body-xs-line-height);\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.5rem;\n "])), toastTokens.borderRadius, toastTokens.maxWidth, toastTokens.padding, toastTokens.fontFamily, toastTokens.fontSize, toastTokens.fontStyle, toastTokens.fontWeight, toastTokens.letterSpacing, toastTokens.lineHeight, toastTokens.contentLeftMargin, toastTokens.closeIconMargin)
|
18
28
|
},
|
19
29
|
closeIconType: {
|
20
|
-
"default": /*#__PURE__*/css(
|
30
|
+
"default": /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), toastTokens.closeIconButtonSize, toastTokens.closeIconSize)
|
21
31
|
},
|
22
32
|
pilled: {
|
23
|
-
"true": /*#__PURE__*/css(
|
33
|
+
"true": /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n\n ", ": -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ", ": -0.0625rem -0.25rem -0.0625rem 0.375rem;\n "])), toastTokens.pilledBorderRadius, toastTokens.contentLeftMargin, toastTokens.closeIconMargin)
|
24
34
|
}
|
25
35
|
}
|
26
36
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-finportal",
|
3
|
-
"version": "0.225.0-canary.
|
3
|
+
"version": "0.225.0-canary.1719.12929292229.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.248.0-canary.
|
22
|
+
"@salutejs/plasma-new-hope": "0.248.0-canary.1719.12929292229.0",
|
23
23
|
"@salutejs/sdds-themes": "0.31.0"
|
24
24
|
},
|
25
25
|
"peerDependencies": {
|
@@ -95,5 +95,5 @@
|
|
95
95
|
"Vasiliy Loginevskiy"
|
96
96
|
],
|
97
97
|
"sideEffects": false,
|
98
|
-
"gitHead": "
|
98
|
+
"gitHead": "c2015bb6435c9c799dc45927ca1f9e5635331a05"
|
99
99
|
}
|
@@ -2698,7 +2698,6 @@ export const NotificationsProvider: React_2.FC<{
|
|
2698
2698
|
children: ReactNode;
|
2699
2699
|
frame?: string;
|
2700
2700
|
placement?: NotificationPlacement;
|
2701
|
-
UNSAFE_SSR_ENABLED?: boolean;
|
2702
2701
|
}>;
|
2703
2702
|
|
2704
2703
|
// @public (undocumented)
|
@@ -4254,6 +4253,8 @@ export { textXSBold }
|
|
4254
4253
|
export const Toast: FunctionComponent<PropsType< {
|
4255
4254
|
view: {
|
4256
4255
|
default: PolymorphicClassName;
|
4256
|
+
positive: PolymorphicClassName;
|
4257
|
+
negative: PolymorphicClassName;
|
4257
4258
|
dark: PolymorphicClassName;
|
4258
4259
|
light: PolymorphicClassName;
|
4259
4260
|
};
|