@salutejs/sdds-finportal 0.147.0-canary.1497.11463811587.0 → 0.147.0-canary.1503.11466452273.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-finportal.api.md +8 -4
- package/components/Dropdown/Dropdown.config.d.ts +3 -3
- package/components/Dropdown/Dropdown.config.js +5 -5
- package/components/Dropdown/Dropdown.d.ts +4 -4
- package/components/Dropdown/index.d.ts +1 -0
- package/components/Notification/Notification.d.ts +3 -2
- package/components/Notification/Notification.js +5 -3
- package/es/components/Dropdown/Dropdown.config.js +6 -6
- package/es/components/Notification/Notification.js +6 -4
- package/package.json +3 -3
- package/temp/sdds-finportal.api.md +8 -4
@@ -89,7 +89,7 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
|
|
89
89
|
import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
|
90
90
|
import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
|
91
91
|
import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
|
92
|
-
import { DropdownProps } from '@salutejs/plasma-new-hope/
|
92
|
+
import { DropdownProps } from '@salutejs/plasma-new-hope/styled-components';
|
93
93
|
import { dsplL } from '@salutejs/sdds-themes/tokens';
|
94
94
|
import { dsplLBold } from '@salutejs/sdds-themes/tokens';
|
95
95
|
import { dsplM } from '@salutejs/sdds-themes/tokens';
|
@@ -133,6 +133,7 @@ import { MouseEvent as MouseEvent_2 } from 'react';
|
|
133
133
|
import { MutableRefObject } from 'react';
|
134
134
|
import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
135
135
|
import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
|
136
|
+
import { NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
136
137
|
import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
|
137
138
|
import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
|
138
139
|
import { Overlay } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -1412,16 +1413,18 @@ export { DrawerProps }
|
|
1412
1413
|
// @public (undocumented)
|
1413
1414
|
export const Dropdown: FunctionComponent<PropsType< {
|
1414
1415
|
size: {
|
1415
|
-
l: PolymorphicClassName;
|
1416
|
-
m: PolymorphicClassName;
|
1417
|
-
s: PolymorphicClassName;
|
1418
1416
|
xs: PolymorphicClassName;
|
1417
|
+
s: PolymorphicClassName;
|
1418
|
+
m: PolymorphicClassName;
|
1419
|
+
l: PolymorphicClassName;
|
1419
1420
|
};
|
1420
1421
|
view: {
|
1421
1422
|
default: PolymorphicClassName;
|
1422
1423
|
};
|
1423
1424
|
}> & DropdownProps & RefAttributes<HTMLDivElement>>;
|
1424
1425
|
|
1426
|
+
export { DropdownProps }
|
1427
|
+
|
1425
1428
|
// @public (undocumented)
|
1426
1429
|
export const DsplL: FunctionComponent<PropsType< {
|
1427
1430
|
size: {
|
@@ -2891,6 +2894,7 @@ export { NotificationProps }
|
|
2891
2894
|
export const NotificationsProvider: React_2.FC<{
|
2892
2895
|
children: ReactNode;
|
2893
2896
|
frame?: string;
|
2897
|
+
placement?: NotificationPlacement;
|
2894
2898
|
}>;
|
2895
2899
|
|
2896
2900
|
export { Overlay }
|
@@ -5,10 +5,10 @@ export declare const config: {
|
|
5
5
|
};
|
6
6
|
variations: {
|
7
7
|
size: {
|
8
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
9
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
10
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
8
|
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
9
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
10
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
12
12
|
};
|
13
13
|
view: {
|
14
14
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
@@ -14,13 +14,13 @@ var config = exports.config = {
|
|
14
14
|
},
|
15
15
|
variations: {
|
16
16
|
size: {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
xs: /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.125rem;\n ", ": 10rem;\n ", ": 0.5rem;\n\n ", ": 0.5625rem;\n ", ": 0.5rem;\n ", ": 0.5625rem;\n ", ": 0.5rem;\n ", ": 0.375rem;\n ", ": 0.3125rem;\n ", ": 0.3125rem;\n\n ", ": 0.25rem;\n ", ": 0.5rem;\n ", ": 0.25rem;\n ", ": 0.5rem;\n ", ": 0.125rem;\n ", ": 0.125rem;\n\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 "])), _styledComponents.dropdownTokens.padding, _styledComponents.dropdownTokens.width, _styledComponents.dropdownTokens.borderRadius, _styledComponents.dropdownTokens.itemPaddingTop, _styledComponents.dropdownTokens.itemPaddingRight, _styledComponents.dropdownTokens.itemPaddingBottom, _styledComponents.dropdownTokens.itemPaddingLeft, _styledComponents.dropdownTokens.itemBorderRadius, _styledComponents.dropdownTokens.itemPaddingTopTight, _styledComponents.dropdownTokens.itemPaddingBottomTight, _styledComponents.dropdownTokens.dividerMarginTop, _styledComponents.dropdownTokens.dividerMarginRight, _styledComponents.dropdownTokens.dividerMarginBottom, _styledComponents.dropdownTokens.dividerMarginLeft, _styledComponents.dropdownTokens.dividerMarginTopTight, _styledComponents.dropdownTokens.dividerMarginBottomTight, _styledComponents.dropdownTokens.itemFontFamily, _styledComponents.dropdownTokens.itemFontSize, _styledComponents.dropdownTokens.itemFontStyle, _styledComponents.dropdownTokens.itemFontWeightBold, _styledComponents.dropdownTokens.itemFontLetterSpacing, _styledComponents.dropdownTokens.itemFontLineHeight),
|
18
|
+
s: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.125rem;\n ", ": 12.5rem;\n ", ": 0.625rem;\n\n ", ": 0.6875rem;\n ", ": 0.75rem;\n ", ": 0.6875rem;\n ", ": 0.75rem;\n ", ": 0.5rem;\n ", ": 0.4375rem;\n ", ": 0.4375rem;\n\n ", ": 0.375rem;\n ", ": 0.75rem;\n ", ": 0.375rem;\n ", ": 0.75rem;\n ", ": 0.25rem;\n ", ": 0.25rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n "])), _styledComponents.dropdownTokens.padding, _styledComponents.dropdownTokens.width, _styledComponents.dropdownTokens.borderRadius, _styledComponents.dropdownTokens.itemPaddingTop, _styledComponents.dropdownTokens.itemPaddingRight, _styledComponents.dropdownTokens.itemPaddingBottom, _styledComponents.dropdownTokens.itemPaddingLeft, _styledComponents.dropdownTokens.itemBorderRadius, _styledComponents.dropdownTokens.itemPaddingTopTight, _styledComponents.dropdownTokens.itemPaddingBottomTight, _styledComponents.dropdownTokens.dividerMarginTop, _styledComponents.dropdownTokens.dividerMarginRight, _styledComponents.dropdownTokens.dividerMarginBottom, _styledComponents.dropdownTokens.dividerMarginLeft, _styledComponents.dropdownTokens.dividerMarginTopTight, _styledComponents.dropdownTokens.dividerMarginBottomTight, _styledComponents.dropdownTokens.itemFontFamily, _styledComponents.dropdownTokens.itemFontSize, _styledComponents.dropdownTokens.itemFontStyle, _styledComponents.dropdownTokens.itemFontWeightBold, _styledComponents.dropdownTokens.itemFontLetterSpacing, _styledComponents.dropdownTokens.itemFontLineHeight),
|
19
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.125rem;\n ", ": 15rem;\n ", ": 0.75rem;\n\n ", ": 0.875rem;\n ", ": 0.875rem;\n ", ": 0.875rem;\n ", ": 0.875rem;\n ", ": 0.625rem;\n ", ": 0.625rem;\n ", ": 0.625rem;\n\n ", ": 0.375rem;\n ", ": 0.875rem;\n ", ": 0.375rem;\n ", ": 0.875rem;\n ", ": 0.375rem;\n ", ": 0.375rem;\n\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n "])), _styledComponents.dropdownTokens.padding, _styledComponents.dropdownTokens.width, _styledComponents.dropdownTokens.borderRadius, _styledComponents.dropdownTokens.itemPaddingTop, _styledComponents.dropdownTokens.itemPaddingRight, _styledComponents.dropdownTokens.itemPaddingBottom, _styledComponents.dropdownTokens.itemPaddingLeft, _styledComponents.dropdownTokens.itemBorderRadius, _styledComponents.dropdownTokens.itemPaddingTopTight, _styledComponents.dropdownTokens.itemPaddingBottomTight, _styledComponents.dropdownTokens.dividerMarginTop, _styledComponents.dropdownTokens.dividerMarginRight, _styledComponents.dropdownTokens.dividerMarginBottom, _styledComponents.dropdownTokens.dividerMarginLeft, _styledComponents.dropdownTokens.dividerMarginTopTight, _styledComponents.dropdownTokens.dividerMarginBottomTight, _styledComponents.dropdownTokens.itemFontFamily, _styledComponents.dropdownTokens.itemFontSize, _styledComponents.dropdownTokens.itemFontStyle, _styledComponents.dropdownTokens.itemFontWeightBold, _styledComponents.dropdownTokens.itemFontLetterSpacing, _styledComponents.dropdownTokens.itemFontLineHeight),
|
20
|
+
l: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.125rem;\n ", ": 17.5rem;\n ", ": 0.875rem;\n\n ", ": 1.0625rem;\n ", ": 1rem;\n ", ": 1.0625rem;\n ", ": 1rem;\n ", ": 0.75rem;\n ", ": 0.8125rem;\n ", ": 0.8125rem;\n\n ", ": 0.5rem;\n ", ": 1.125rem;\n ", ": 0.5rem;\n ", ": 1.125rem;\n ", ": 0.375rem;\n ", ": 0.375rem;\n\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n "])), _styledComponents.dropdownTokens.padding, _styledComponents.dropdownTokens.width, _styledComponents.dropdownTokens.borderRadius, _styledComponents.dropdownTokens.itemPaddingTop, _styledComponents.dropdownTokens.itemPaddingRight, _styledComponents.dropdownTokens.itemPaddingBottom, _styledComponents.dropdownTokens.itemPaddingLeft, _styledComponents.dropdownTokens.itemBorderRadius, _styledComponents.dropdownTokens.itemPaddingTopTight, _styledComponents.dropdownTokens.itemPaddingBottomTight, _styledComponents.dropdownTokens.dividerMarginTop, _styledComponents.dropdownTokens.dividerMarginRight, _styledComponents.dropdownTokens.dividerMarginBottom, _styledComponents.dropdownTokens.dividerMarginLeft, _styledComponents.dropdownTokens.dividerMarginTopTight, _styledComponents.dropdownTokens.dividerMarginBottomTight, _styledComponents.dropdownTokens.itemFontFamily, _styledComponents.dropdownTokens.itemFontSize, _styledComponents.dropdownTokens.itemFontStyle, _styledComponents.dropdownTokens.itemFontWeightBold, _styledComponents.dropdownTokens.itemFontLetterSpacing, _styledComponents.dropdownTokens.itemFontLineHeight)
|
21
21
|
},
|
22
22
|
view: {
|
23
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-tertiary);\n "])), _styledComponents.dropdownTokens.dividerColor)
|
23
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n ", ": var(--surface-accent);\n ", ": var(--surface-solid-card-brightness);\n ", ": 0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04);\n ", ": var(--text-secondary);\n ", ": var(--surface-clear);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-tertiary);\n "])), _styledComponents.dropdownTokens.disabledOpacity, _styledComponents.dropdownTokens.focusColor, _styledComponents.dropdownTokens.background, _styledComponents.dropdownTokens.boxShadow, _styledComponents.dropdownTokens.disclosureIconColor, _styledComponents.dropdownTokens.itemBackground, _styledComponents.dropdownTokens.itemBackgroundHover, _styledComponents.dropdownTokens.itemColor, _styledComponents.dropdownTokens.dividerColor)
|
24
24
|
}
|
25
25
|
}
|
26
26
|
};
|
@@ -1,13 +1,13 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const Dropdown: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types").PropsType<{
|
3
3
|
size: {
|
4
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
4
|
xs: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
5
|
+
s: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
6
|
+
m: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
7
|
+
l: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
8
8
|
};
|
9
9
|
view: {
|
10
10
|
default: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
11
11
|
};
|
12
|
-
}> & import("@salutejs/plasma-new-hope/
|
12
|
+
}> & import("@salutejs/plasma-new-hope/styled-components").DropdownProps & import("react").RefAttributes<HTMLDivElement>>;
|
13
13
|
export { Dropdown };
|
@@ -1,10 +1,11 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
-
import { NotificationProps, NotificationIconPlacement, NotificationLayout, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
|
2
|
+
import { NotificationProps, NotificationIconPlacement, NotificationPlacement, NotificationLayout, addNotification, closeNotification } from '@salutejs/plasma-new-hope/styled-components';
|
3
3
|
export { modalClasses } from '../Modal';
|
4
4
|
export declare const Notification: React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>;
|
5
5
|
export declare const NotificationsProvider: React.FC<{
|
6
6
|
children: ReactNode;
|
7
7
|
frame?: string;
|
8
|
+
placement?: NotificationPlacement;
|
8
9
|
}>;
|
9
|
-
export type { NotificationIconPlacement, NotificationLayout, NotificationProps };
|
10
|
+
export type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };
|
10
11
|
export { addNotification, closeNotification };
|
@@ -27,14 +27,16 @@ var _styledComponents = /*#__PURE__*/require("@salutejs/plasma-new-hope/styled-c
|
|
27
27
|
var _Notification = /*#__PURE__*/require("./Notification.config");
|
28
28
|
var _Modal = /*#__PURE__*/require("../Modal");
|
29
29
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
30
|
-
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.
|
30
|
+
var mergedConfig = /*#__PURE__*/(0, _styledComponents.mergeConfig)(_styledComponents.notificationConfig, _Notification.config);
|
31
31
|
var Notification = exports.Notification = /*#__PURE__*/(0, _styledComponents.component)(mergedConfig);
|
32
32
|
var NotificationsProvider = exports.NotificationsProvider = function NotificationsProvider(_ref) {
|
33
33
|
var children = _ref.children,
|
34
34
|
_ref$frame = _ref.frame,
|
35
|
-
frame = _ref$frame === void 0 ? 'document' : _ref$frame
|
35
|
+
frame = _ref$frame === void 0 ? 'document' : _ref$frame,
|
36
|
+
placement = _ref.placement;
|
36
37
|
return /*#__PURE__*/_react["default"].createElement(_styledComponents.NotificationsProvider, {
|
37
38
|
config: mergedConfig,
|
38
|
-
frame: frame
|
39
|
+
frame: frame,
|
40
|
+
placement: placement
|
39
41
|
}, children);
|
40
42
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
3
|
-
import { css, dropdownTokens
|
3
|
+
import { css, dropdownTokens } from '@salutejs/plasma-new-hope/styled-components';
|
4
4
|
export var config = {
|
5
5
|
defaults: {
|
6
6
|
view: 'default',
|
@@ -8,13 +8,13 @@ export var config = {
|
|
8
8
|
},
|
9
9
|
variations: {
|
10
10
|
size: {
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
xs: /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.125rem;\n ", ": 10rem;\n ", ": 0.5rem;\n\n ", ": 0.5625rem;\n ", ": 0.5rem;\n ", ": 0.5625rem;\n ", ": 0.5rem;\n ", ": 0.375rem;\n ", ": 0.3125rem;\n ", ": 0.3125rem;\n\n ", ": 0.25rem;\n ", ": 0.5rem;\n ", ": 0.25rem;\n ", ": 0.5rem;\n ", ": 0.125rem;\n ", ": 0.125rem;\n\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 "])), dropdownTokens.padding, dropdownTokens.width, dropdownTokens.borderRadius, dropdownTokens.itemPaddingTop, dropdownTokens.itemPaddingRight, dropdownTokens.itemPaddingBottom, dropdownTokens.itemPaddingLeft, dropdownTokens.itemBorderRadius, dropdownTokens.itemPaddingTopTight, dropdownTokens.itemPaddingBottomTight, dropdownTokens.dividerMarginTop, dropdownTokens.dividerMarginRight, dropdownTokens.dividerMarginBottom, dropdownTokens.dividerMarginLeft, dropdownTokens.dividerMarginTopTight, dropdownTokens.dividerMarginBottomTight, dropdownTokens.itemFontFamily, dropdownTokens.itemFontSize, dropdownTokens.itemFontStyle, dropdownTokens.itemFontWeightBold, dropdownTokens.itemFontLetterSpacing, dropdownTokens.itemFontLineHeight),
|
12
|
+
s: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.125rem;\n ", ": 12.5rem;\n ", ": 0.625rem;\n\n ", ": 0.6875rem;\n ", ": 0.75rem;\n ", ": 0.6875rem;\n ", ": 0.75rem;\n ", ": 0.5rem;\n ", ": 0.4375rem;\n ", ": 0.4375rem;\n\n ", ": 0.375rem;\n ", ": 0.75rem;\n ", ": 0.375rem;\n ", ": 0.75rem;\n ", ": 0.25rem;\n ", ": 0.25rem;\n\n ", ": var(--plasma-typo-body-s-font-family);\n ", ": var(--plasma-typo-body-s-font-size);\n ", ": var(--plasma-typo-body-s-font-style);\n ", ": var(--plasma-typo-body-s-font-weight);\n ", ": var(--plasma-typo-body-s-letter-spacing);\n ", ": var(--plasma-typo-body-s-line-height);\n "])), dropdownTokens.padding, dropdownTokens.width, dropdownTokens.borderRadius, dropdownTokens.itemPaddingTop, dropdownTokens.itemPaddingRight, dropdownTokens.itemPaddingBottom, dropdownTokens.itemPaddingLeft, dropdownTokens.itemBorderRadius, dropdownTokens.itemPaddingTopTight, dropdownTokens.itemPaddingBottomTight, dropdownTokens.dividerMarginTop, dropdownTokens.dividerMarginRight, dropdownTokens.dividerMarginBottom, dropdownTokens.dividerMarginLeft, dropdownTokens.dividerMarginTopTight, dropdownTokens.dividerMarginBottomTight, dropdownTokens.itemFontFamily, dropdownTokens.itemFontSize, dropdownTokens.itemFontStyle, dropdownTokens.itemFontWeightBold, dropdownTokens.itemFontLetterSpacing, dropdownTokens.itemFontLineHeight),
|
13
|
+
m: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.125rem;\n ", ": 15rem;\n ", ": 0.75rem;\n\n ", ": 0.875rem;\n ", ": 0.875rem;\n ", ": 0.875rem;\n ", ": 0.875rem;\n ", ": 0.625rem;\n ", ": 0.625rem;\n ", ": 0.625rem;\n\n ", ": 0.375rem;\n ", ": 0.875rem;\n ", ": 0.375rem;\n ", ": 0.875rem;\n ", ": 0.375rem;\n ", ": 0.375rem;\n\n ", ": var(--plasma-typo-body-m-font-family);\n ", ": var(--plasma-typo-body-m-font-size);\n ", ": var(--plasma-typo-body-m-font-style);\n ", ": var(--plasma-typo-body-m-font-weight);\n ", ": var(--plasma-typo-body-m-letter-spacing);\n ", ": var(--plasma-typo-body-m-line-height);\n "])), dropdownTokens.padding, dropdownTokens.width, dropdownTokens.borderRadius, dropdownTokens.itemPaddingTop, dropdownTokens.itemPaddingRight, dropdownTokens.itemPaddingBottom, dropdownTokens.itemPaddingLeft, dropdownTokens.itemBorderRadius, dropdownTokens.itemPaddingTopTight, dropdownTokens.itemPaddingBottomTight, dropdownTokens.dividerMarginTop, dropdownTokens.dividerMarginRight, dropdownTokens.dividerMarginBottom, dropdownTokens.dividerMarginLeft, dropdownTokens.dividerMarginTopTight, dropdownTokens.dividerMarginBottomTight, dropdownTokens.itemFontFamily, dropdownTokens.itemFontSize, dropdownTokens.itemFontStyle, dropdownTokens.itemFontWeightBold, dropdownTokens.itemFontLetterSpacing, dropdownTokens.itemFontLineHeight),
|
14
|
+
l: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.125rem;\n ", ": 17.5rem;\n ", ": 0.875rem;\n\n ", ": 1.0625rem;\n ", ": 1rem;\n ", ": 1.0625rem;\n ", ": 1rem;\n ", ": 0.75rem;\n ", ": 0.8125rem;\n ", ": 0.8125rem;\n\n ", ": 0.5rem;\n ", ": 1.125rem;\n ", ": 0.5rem;\n ", ": 1.125rem;\n ", ": 0.375rem;\n ", ": 0.375rem;\n\n ", ": var(--plasma-typo-body-l-font-family);\n ", ": var(--plasma-typo-body-l-font-size);\n ", ": var(--plasma-typo-body-l-font-style);\n ", ": var(--plasma-typo-body-l-font-weight);\n ", ": var(--plasma-typo-body-l-letter-spacing);\n ", ": var(--plasma-typo-body-l-line-height);\n "])), dropdownTokens.padding, dropdownTokens.width, dropdownTokens.borderRadius, dropdownTokens.itemPaddingTop, dropdownTokens.itemPaddingRight, dropdownTokens.itemPaddingBottom, dropdownTokens.itemPaddingLeft, dropdownTokens.itemBorderRadius, dropdownTokens.itemPaddingTopTight, dropdownTokens.itemPaddingBottomTight, dropdownTokens.dividerMarginTop, dropdownTokens.dividerMarginRight, dropdownTokens.dividerMarginBottom, dropdownTokens.dividerMarginLeft, dropdownTokens.dividerMarginTopTight, dropdownTokens.dividerMarginBottomTight, dropdownTokens.itemFontFamily, dropdownTokens.itemFontSize, dropdownTokens.itemFontStyle, dropdownTokens.itemFontWeightBold, dropdownTokens.itemFontLetterSpacing, dropdownTokens.itemFontLineHeight)
|
15
15
|
},
|
16
16
|
view: {
|
17
|
-
"default": /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": var(--surface-transparent-tertiary);\n "])),
|
17
|
+
"default": /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n ", ": var(--surface-accent);\n ", ": var(--surface-solid-card-brightness);\n ", ": 0px 4px 14px -4px rgba(8, 8, 8, 0.08), 0px 1px 4px -1px rgba(0, 0, 0, 0.04);\n ", ": var(--text-secondary);\n ", ": var(--surface-clear);\n ", ": var(--surface-transparent-secondary);\n ", ": var(--text-primary);\n ", ": var(--surface-transparent-tertiary);\n "])), dropdownTokens.disabledOpacity, dropdownTokens.focusColor, dropdownTokens.background, dropdownTokens.boxShadow, dropdownTokens.disclosureIconColor, dropdownTokens.itemBackground, dropdownTokens.itemBackgroundHover, dropdownTokens.itemColor, dropdownTokens.dividerColor)
|
18
18
|
}
|
19
19
|
}
|
20
20
|
};
|
@@ -1,16 +1,18 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { component, mergeConfig,
|
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
4
|
export { modalClasses } from '../Modal';
|
5
|
-
var mergedConfig = /*#__PURE__*/mergeConfig(
|
5
|
+
var mergedConfig = /*#__PURE__*/mergeConfig(notificationConfig, config);
|
6
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,
|
10
|
-
frame = _ref$frame === void 0 ? 'document' : _ref$frame
|
10
|
+
frame = _ref$frame === void 0 ? 'document' : _ref$frame,
|
11
|
+
placement = _ref.placement;
|
11
12
|
return /*#__PURE__*/React.createElement(Provider, {
|
12
13
|
config: mergedConfig,
|
13
|
-
frame: frame
|
14
|
+
frame: frame,
|
15
|
+
placement: placement
|
14
16
|
}, children);
|
15
17
|
};
|
16
18
|
export { addNotification, closeNotification };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-finportal",
|
3
|
-
"version": "0.147.0-canary.
|
3
|
+
"version": "0.147.0-canary.1503.11466452273.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.174.0-canary.
|
22
|
+
"@salutejs/plasma-new-hope": "0.174.0-canary.1503.11466452273.0",
|
23
23
|
"@salutejs/sdds-themes": "0.24.0-dev.0"
|
24
24
|
},
|
25
25
|
"peerDependencies": {
|
@@ -94,5 +94,5 @@
|
|
94
94
|
"Vasiliy Loginevskiy"
|
95
95
|
],
|
96
96
|
"sideEffects": false,
|
97
|
-
"gitHead": "
|
97
|
+
"gitHead": "1c5d74694d9b51013c584be5c05eb691be4ae341"
|
98
98
|
}
|
@@ -89,7 +89,7 @@ import { DrawerContentProps } from '@salutejs/plasma-new-hope/styled-components'
|
|
89
89
|
import { DrawerFooterProps } from '@salutejs/plasma-new-hope/styled-components';
|
90
90
|
import { DrawerHeaderProps } from '@salutejs/plasma-new-hope/styled-components';
|
91
91
|
import { DrawerProps } from '@salutejs/plasma-new-hope/styled-components';
|
92
|
-
import { DropdownProps } from '@salutejs/plasma-new-hope/
|
92
|
+
import { DropdownProps } from '@salutejs/plasma-new-hope/styled-components';
|
93
93
|
import { dsplL } from '@salutejs/sdds-themes/tokens';
|
94
94
|
import { dsplLBold } from '@salutejs/sdds-themes/tokens';
|
95
95
|
import { dsplM } from '@salutejs/sdds-themes/tokens';
|
@@ -133,6 +133,7 @@ import { MouseEvent as MouseEvent_2 } from 'react';
|
|
133
133
|
import { MutableRefObject } from 'react';
|
134
134
|
import { NotificationIconPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
135
135
|
import { NotificationLayout } from '@salutejs/plasma-new-hope/styled-components';
|
136
|
+
import { NotificationPlacement } from '@salutejs/plasma-new-hope/styled-components';
|
136
137
|
import { NotificationProps } from '@salutejs/plasma-new-hope/styled-components';
|
137
138
|
import { Orientation } from '@salutejs/plasma-new-hope/types/components/TextFieldGroup/TextFieldGroup.types';
|
138
139
|
import { Overlay } from '@salutejs/plasma-new-hope/styled-components';
|
@@ -1412,16 +1413,18 @@ export { DrawerProps }
|
|
1412
1413
|
// @public (undocumented)
|
1413
1414
|
export const Dropdown: FunctionComponent<PropsType< {
|
1414
1415
|
size: {
|
1415
|
-
l: PolymorphicClassName;
|
1416
|
-
m: PolymorphicClassName;
|
1417
|
-
s: PolymorphicClassName;
|
1418
1416
|
xs: PolymorphicClassName;
|
1417
|
+
s: PolymorphicClassName;
|
1418
|
+
m: PolymorphicClassName;
|
1419
|
+
l: PolymorphicClassName;
|
1419
1420
|
};
|
1420
1421
|
view: {
|
1421
1422
|
default: PolymorphicClassName;
|
1422
1423
|
};
|
1423
1424
|
}> & DropdownProps & RefAttributes<HTMLDivElement>>;
|
1424
1425
|
|
1426
|
+
export { DropdownProps }
|
1427
|
+
|
1425
1428
|
// @public (undocumented)
|
1426
1429
|
export const DsplL: FunctionComponent<PropsType< {
|
1427
1430
|
size: {
|
@@ -2891,6 +2894,7 @@ export { NotificationProps }
|
|
2891
2894
|
export const NotificationsProvider: React_2.FC<{
|
2892
2895
|
children: ReactNode;
|
2893
2896
|
frame?: string;
|
2897
|
+
placement?: NotificationPlacement;
|
2894
2898
|
}>;
|
2895
2899
|
|
2896
2900
|
export { Overlay }
|