@salutejs/sdds-finportal 0.150.0-canary.1500.11571505911.0 → 0.150.0-dev.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-finportal.api.md +4 -5
- package/components/Badge/Badge.d.ts +0 -3
- package/components/Notification/Notification.d.ts +3 -2
- package/components/Notification/Notification.js +5 -3
- package/components/Select/Select.d.ts +2 -2
- package/components/Tabs/TabItem.d.ts +0 -6
- package/components/Tabs/horizontal/HorizontalTabItem.config.d.ts +0 -3
- package/components/Tabs/horizontal/HorizontalTabItem.config.js +1 -4
- package/components/Tabs/vertical/VerticalTabItem.config.d.ts +0 -3
- package/components/Tabs/vertical/VerticalTabItem.config.js +1 -4
- package/es/components/Notification/Notification.js +6 -4
- package/es/components/Tabs/horizontal/HorizontalTabItem.config.js +1 -4
- package/es/components/Tabs/vertical/VerticalTabItem.config.js +1 -4
- package/package.json +3 -3
- package/temp/sdds-finportal.api.md +0 -5258
@@ -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';
|
@@ -567,7 +568,6 @@ true: PolymorphicClassName;
|
|
567
568
|
text?: string | undefined;
|
568
569
|
contentLeft?: ReactNode;
|
569
570
|
contentRight?: ReactNode;
|
570
|
-
maxWidth?: string | undefined;
|
571
571
|
size?: string | undefined;
|
572
572
|
view?: string | undefined;
|
573
573
|
} & {
|
@@ -580,7 +580,6 @@ transparent?: false | undefined;
|
|
580
580
|
text?: string | undefined;
|
581
581
|
contentLeft?: ReactNode;
|
582
582
|
contentRight?: ReactNode;
|
583
|
-
maxWidth?: string | undefined;
|
584
583
|
size?: string | undefined;
|
585
584
|
view?: string | undefined;
|
586
585
|
} & {
|
@@ -593,7 +592,6 @@ clear?: false | undefined;
|
|
593
592
|
text?: string | undefined;
|
594
593
|
contentLeft?: ReactNode;
|
595
594
|
contentRight?: ReactNode;
|
596
|
-
maxWidth?: string | undefined;
|
597
595
|
size?: string | undefined;
|
598
596
|
view?: string | undefined;
|
599
597
|
} & {
|
@@ -2907,6 +2905,7 @@ export { NotificationProps }
|
|
2907
2905
|
export const NotificationsProvider: React_2.FC<{
|
2908
2906
|
children: ReactNode;
|
2909
2907
|
frame?: string;
|
2908
|
+
placement?: NotificationPlacement;
|
2910
2909
|
}>;
|
2911
2910
|
|
2912
2911
|
export { Overlay }
|
@@ -3340,7 +3339,7 @@ accent: PolymorphicClassName;
|
|
3340
3339
|
chipView?: string | undefined;
|
3341
3340
|
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>) | ({
|
3342
3341
|
target?: "button-like" | undefined;
|
3343
|
-
view?: "default" | "
|
3342
|
+
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "clear" | "dark" | "black" | "white" | undefined;
|
3344
3343
|
contentLeft?: undefined;
|
3345
3344
|
labelPlacement?: undefined;
|
3346
3345
|
placeholder?: undefined;
|
@@ -3378,7 +3377,7 @@ accent: PolymorphicClassName;
|
|
3378
3377
|
chipView?: string | undefined;
|
3379
3378
|
} & Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React_2.RefAttributes<HTMLButtonElement>) | ({
|
3380
3379
|
target?: "button-like" | undefined;
|
3381
|
-
view?: "default" | "
|
3380
|
+
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "clear" | "dark" | "black" | "white" | undefined;
|
3382
3381
|
contentLeft?: undefined;
|
3383
3382
|
labelPlacement?: undefined;
|
3384
3383
|
placeholder?: undefined;
|
@@ -31,7 +31,6 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
31
31
|
text?: string | undefined;
|
32
32
|
contentLeft?: import("react").ReactNode;
|
33
33
|
contentRight?: import("react").ReactNode;
|
34
|
-
maxWidth?: string | undefined;
|
35
34
|
size?: string | undefined;
|
36
35
|
view?: string | undefined;
|
37
36
|
} & {
|
@@ -44,7 +43,6 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
44
43
|
text?: string | undefined;
|
45
44
|
contentLeft?: import("react").ReactNode;
|
46
45
|
contentRight?: import("react").ReactNode;
|
47
|
-
maxWidth?: string | undefined;
|
48
46
|
size?: string | undefined;
|
49
47
|
view?: string | undefined;
|
50
48
|
} & {
|
@@ -57,7 +55,6 @@ export declare const Badge: import("react").FunctionComponent<import("@salutejs/
|
|
57
55
|
text?: string | undefined;
|
58
56
|
contentLeft?: import("react").ReactNode;
|
59
57
|
contentRight?: import("react").ReactNode;
|
60
|
-
maxWidth?: string | undefined;
|
61
58
|
size?: string | undefined;
|
62
59
|
view?: string | undefined;
|
63
60
|
} & {
|
@@ -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
|
};
|
@@ -102,7 +102,7 @@ declare const Select: React.ForwardRefExoticComponent<Omit<SelectPropsNewHope, "
|
|
102
102
|
chipView?: string | undefined;
|
103
103
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>) | ({
|
104
104
|
target?: "button-like" | undefined;
|
105
|
-
view?: "default" | "
|
105
|
+
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "clear" | "dark" | "black" | "white" | undefined;
|
106
106
|
contentLeft?: undefined;
|
107
107
|
labelPlacement?: undefined;
|
108
108
|
placeholder?: undefined;
|
@@ -140,7 +140,7 @@ declare const Select: React.ForwardRefExoticComponent<Omit<SelectPropsNewHope, "
|
|
140
140
|
chipView?: string | undefined;
|
141
141
|
} & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "onChange" | "nonce" | "onResize" | "onResizeCapture" | "value"> & React.RefAttributes<HTMLButtonElement>) | ({
|
142
142
|
target?: "button-like" | undefined;
|
143
|
-
view?: "default" | "
|
143
|
+
view?: "default" | "accent" | "secondary" | "positive" | "warning" | "negative" | "clear" | "dark" | "black" | "white" | undefined;
|
144
144
|
contentLeft?: undefined;
|
145
145
|
labelPlacement?: undefined;
|
146
146
|
placeholder?: undefined;
|
@@ -23,9 +23,6 @@ declare const HorizontalTabItem: React.FunctionComponent<import("@salutejs/plasm
|
|
23
23
|
pilled: {
|
24
24
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
25
25
|
};
|
26
|
-
truncate: {
|
27
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
28
|
-
};
|
29
26
|
}> & ((import("@salutejs/plasma-new-hope/types/components/Tabs/TabItem.types").BaseTabItemProps & {
|
30
27
|
orientation?: "horizontal" | undefined;
|
31
28
|
pilled?: boolean | undefined;
|
@@ -60,9 +57,6 @@ declare const VerticalTabItem: React.FunctionComponent<import("@salutejs/plasma-
|
|
60
57
|
disabled: {
|
61
58
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
62
59
|
};
|
63
|
-
truncate: {
|
64
|
-
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
65
|
-
};
|
66
60
|
}> & ((import("@salutejs/plasma-new-hope/types/components/Tabs/TabItem.types").BaseTabItemProps & {
|
67
61
|
orientation: "vertical";
|
68
62
|
view?: string | undefined;
|
@@ -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, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15
|
8
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15;
|
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: {
|
@@ -35,9 +35,6 @@ var config = exports.config = {
|
|
35
35
|
},
|
36
36
|
pilled: {
|
37
37
|
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n "])), _styledComponents.tabsTokens.itemPilledBorderRadius)
|
38
|
-
},
|
39
|
-
truncate: {
|
40
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
41
38
|
}
|
42
39
|
}
|
43
40
|
};
|
@@ -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;
|
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: {
|
@@ -24,9 +24,6 @@ var config = exports.config = {
|
|
24
24
|
},
|
25
25
|
disabled: {
|
26
26
|
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), _styledComponents.tabsTokens.disabledOpacity)
|
27
|
-
},
|
28
|
-
truncate: {
|
29
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
30
27
|
}
|
31
28
|
}
|
32
29
|
};
|
@@ -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 };
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15;
|
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, tabsTokens } from '@salutejs/plasma-new-hope/styled-components';
|
4
4
|
export var config = {
|
@@ -29,9 +29,6 @@ export var config = {
|
|
29
29
|
},
|
30
30
|
pilled: {
|
31
31
|
"true": /*#__PURE__*/css(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1.5rem;\n "])), tabsTokens.itemPilledBorderRadius)
|
32
|
-
},
|
33
|
-
truncate: {
|
34
|
-
"true": /*#__PURE__*/css(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
35
32
|
}
|
36
33
|
}
|
37
34
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
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, tabsTokens } from '@salutejs/plasma-new-hope/styled-components';
|
4
4
|
export var config = {
|
@@ -18,9 +18,6 @@ export var config = {
|
|
18
18
|
},
|
19
19
|
disabled: {
|
20
20
|
"true": /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 0.4;\n "])), tabsTokens.disabledOpacity)
|
21
|
-
},
|
22
|
-
truncate: {
|
23
|
-
"true": /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral([""])))
|
24
21
|
}
|
25
22
|
}
|
26
23
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-finportal",
|
3
|
-
"version": "0.150.0-
|
3
|
+
"version": "0.150.0-dev.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.177.0-
|
22
|
+
"@salutejs/plasma-new-hope": "0.177.0-dev.0",
|
23
23
|
"@salutejs/sdds-themes": "0.25.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": "a074652509beaf8ba69b2572c9678d8fca13a319"
|
98
98
|
}
|