@salutejs/sdds-serv 0.238.0-canary.1719.13069931199.0 → 0.238.0-canary.1730.13069305986.0
Sign up to get free protection for your applications and to get access to all the features.
- package/api/sdds-serv.api.md +0 -2
- package/components/Toast/Toast.config.d.ts +0 -10
- package/components/Toast/Toast.config.js +6 -16
- package/components/Toast/Toast.config.js.map +1 -1
- package/components/Toast/Toast.config_7vhrqm.css +6 -0
- package/components/Toast/Toast.css +6 -8
- package/components/Toast/Toast.d.ts +0 -2
- package/emotion/cjs/components/Toast/Toast.config.js +6 -16
- package/emotion/cjs/components/Toast/Toast.stories.tsx +8 -12
- package/emotion/es/components/Toast/Toast.config.js +6 -16
- package/emotion/es/components/Toast/Toast.stories.tsx +8 -12
- package/es/components/Toast/Toast.config.js +6 -16
- package/es/components/Toast/Toast.config.js.map +1 -1
- package/es/components/Toast/Toast.config_7vhrqm.css +6 -0
- package/es/components/Toast/Toast.css +6 -8
- package/es/index.css +6 -8
- package/package.json +3 -3
- package/styled-components/cjs/components/Toast/Toast.config.js +6 -16
- package/styled-components/es/components/Toast/Toast.config.js +6 -16
- package/components/Toast/Toast.config_mtfyaa.css +0 -8
- package/es/components/Toast/Toast.config_mtfyaa.css +0 -8
package/api/sdds-serv.api.md
CHANGED
@@ -4301,8 +4301,6 @@ export { textXSBold }
|
|
4301
4301
|
export const Toast: FunctionComponent<PropsType< {
|
4302
4302
|
view: {
|
4303
4303
|
default: PolymorphicClassName;
|
4304
|
-
positive: PolymorphicClassName;
|
4305
|
-
negative: PolymorphicClassName;
|
4306
4304
|
dark: PolymorphicClassName;
|
4307
4305
|
light: PolymorphicClassName;
|
4308
4306
|
};
|
@@ -7,17 +7,7 @@ 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
|
-
*/
|
16
10
|
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
17
|
-
/**
|
18
|
-
* @deprecated
|
19
|
-
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
20
|
-
*/
|
21
11
|
light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
22
12
|
};
|
23
13
|
size: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require('./Toast.
|
1
|
+
require('./Toast.config_7vhrqm.css');
|
2
2
|
'use strict';
|
3
3
|
|
4
4
|
Object.defineProperty(exports, '__esModule', { value: true });
|
@@ -12,27 +12,17 @@ var config = {
|
|
12
12
|
variations: {
|
13
13
|
view: {
|
14
14
|
"default": "d1bsn3dp",
|
15
|
-
|
16
|
-
|
17
|
-
/**
|
18
|
-
* @deprecated
|
19
|
-
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
20
|
-
*/
|
21
|
-
dark: "d1918q62",
|
22
|
-
/**
|
23
|
-
* @deprecated
|
24
|
-
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
25
|
-
*/
|
26
|
-
light: "l1jmouzj"
|
15
|
+
dark: "dtjd8cf",
|
16
|
+
light: "l1i63r6p"
|
27
17
|
},
|
28
18
|
size: {
|
29
|
-
m: "
|
19
|
+
m: "m1918q62"
|
30
20
|
},
|
31
21
|
closeIconType: {
|
32
|
-
"default": "
|
22
|
+
"default": "d1jmouzj"
|
33
23
|
},
|
34
24
|
pilled: {
|
35
|
-
"true": "
|
25
|
+
"true": "t1hfuauu"
|
36
26
|
}
|
37
27
|
}
|
38
28
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Toast.config.js","sources":["../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n closeIconType: 'default',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n
|
1
|
+
{"version":3,"file":"Toast.config.js","sources":["../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n closeIconType: 'default',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n closeIconType: {\n default: css`\n ${toastTokens.closeIconButtonSize}: 1rem;\n ${toastTokens.closeIconSize}: 1.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","closeIconType","variations","default","dark","light","m","pilled","true"],"mappings":";;;;AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,aAAa,EAAE,SAAA;GAClB;AACDC,EAAAA,UAAU,EAAE;AACRH,IAAAA,IAAI,EAAE;AACFI,MAAAA,SAAAA,EAMC,UAAA;AACDC,MAAAA,IAAI,EAMH,SAAA;AACDC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDL,IAAAA,IAAI,EAAE;AACFM,MAAAA,CAAC,EAAA,UAAA;KAcJ;AACDL,IAAAA,aAAa,EAAE;MACXE,SAAO,EAAA,UAAA;KAIV;AACDI,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,UAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
.d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
|
+
.dtjd8cf{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
3
|
+
.l1i63r6p{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
4
|
+
.m1918q62{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
5
|
+
.d1jmouzj{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
6
|
+
.t1hfuauu{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
@@ -1,8 +1,6 @@
|
|
1
|
-
.
|
2
|
-
.
|
3
|
-
.
|
4
|
-
.
|
5
|
-
.
|
6
|
-
.
|
7
|
-
.Toast_config_mtfyaa_dh1sjxu__5ad6d13b{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
8
|
-
.Toast_config_mtfyaa_ttkpp4s__5ad6d13b{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
1
|
+
.Toast_config_7vhrqm_d1bsn3dp__ffa011fe{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
|
+
.Toast_config_7vhrqm_dtjd8cf__ffa011fe{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
3
|
+
.Toast_config_7vhrqm_l1i63r6p__ffa011fe{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
4
|
+
.Toast_config_7vhrqm_m1918q62__ffa011fe{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
5
|
+
.Toast_config_7vhrqm_d1jmouzj__ffa011fe{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
6
|
+
.Toast_config_7vhrqm_t1hfuauu__ffa011fe{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
@@ -3,8 +3,6 @@ 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;
|
8
6
|
dark: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
9
7
|
light: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
10
8
|
};
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
});
|
6
6
|
exports.config = void 0;
|
7
7
|
var _emotion = /*#__PURE__*/require("@salutejs/plasma-new-hope/emotion");
|
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: {
|
@@ -16,27 +16,17 @@ var config = exports.config = {
|
|
16
16
|
variations: {
|
17
17
|
view: {
|
18
18
|
"default": /*#__PURE__*/(0, _emotion.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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover),
|
19
|
-
|
20
|
-
|
21
|
-
/**
|
22
|
-
* @deprecated
|
23
|
-
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
24
|
-
*/
|
25
|
-
dark: /*#__PURE__*/(0, _emotion.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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover),
|
26
|
-
/**
|
27
|
-
* @deprecated
|
28
|
-
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
29
|
-
*/
|
30
|
-
light: /*#__PURE__*/(0, _emotion.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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover)
|
19
|
+
dark: /*#__PURE__*/(0, _emotion.css)(_templateObject2 || (_templateObject2 = /*#__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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover),
|
20
|
+
light: /*#__PURE__*/(0, _emotion.css)(_templateObject3 || (_templateObject3 = /*#__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 "])), _emotion.toastTokens.color, _emotion.toastTokens.background, _emotion.toastTokens.closeIconColor, _emotion.toastTokens.closeIconColorOnHover)
|
31
21
|
},
|
32
22
|
size: {
|
33
|
-
m: /*#__PURE__*/(0, _emotion.css)(
|
23
|
+
m: /*#__PURE__*/(0, _emotion.css)(_templateObject4 || (_templateObject4 = /*#__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 "])), _emotion.toastTokens.borderRadius, _emotion.toastTokens.maxWidth, _emotion.toastTokens.padding, _emotion.toastTokens.fontFamily, _emotion.toastTokens.fontSize, _emotion.toastTokens.fontStyle, _emotion.toastTokens.fontWeight, _emotion.toastTokens.letterSpacing, _emotion.toastTokens.lineHeight, _emotion.toastTokens.leftContentMargin, _emotion.toastTokens.closeIconMargin)
|
34
24
|
},
|
35
25
|
closeIconType: {
|
36
|
-
"default": /*#__PURE__*/(0, _emotion.css)(
|
26
|
+
"default": /*#__PURE__*/(0, _emotion.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), _emotion.toastTokens.closeIconButtonSize, _emotion.toastTokens.closeIconSize)
|
37
27
|
},
|
38
28
|
pilled: {
|
39
|
-
"true": /*#__PURE__*/(0, _emotion.css)(
|
29
|
+
"true": /*#__PURE__*/(0, _emotion.css)(_templateObject6 || (_templateObject6 = /*#__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 "])), _emotion.toastTokens.pilledBorderRadius, _emotion.toastTokens.leftContentMargin, _emotion.toastTokens.closeIconMargin)
|
40
30
|
}
|
41
31
|
}
|
42
32
|
};
|
@@ -10,22 +10,23 @@ import { ToastController, ToastProvider } from './Toast';
|
|
10
10
|
|
11
11
|
import { Toast, useToast } from '.';
|
12
12
|
|
13
|
-
const views = ['default', 'positive', 'negative'];
|
14
|
-
|
15
13
|
const meta: Meta<typeof ToastController> = {
|
16
14
|
title: 'Overlay/Toast',
|
17
15
|
decorators: [InSpacingDecorator],
|
18
16
|
argTypes: {
|
19
17
|
view: {
|
20
|
-
options:
|
18
|
+
options: ['default', 'dark', 'light'],
|
21
19
|
control: {
|
22
20
|
type: 'select',
|
23
21
|
},
|
24
22
|
},
|
25
|
-
|
26
|
-
|
23
|
+
size: {
|
24
|
+
options: ['m'],
|
25
|
+
control: {
|
26
|
+
type: 'inline-radio',
|
27
|
+
},
|
27
28
|
},
|
28
|
-
...disableProps(['
|
29
|
+
...disableProps(['role', 'onShow', 'onHide', 'contentLeft']),
|
29
30
|
},
|
30
31
|
};
|
31
32
|
|
@@ -53,6 +54,7 @@ const BellIcon = (props) => (
|
|
53
54
|
);
|
54
55
|
|
55
56
|
const ToastContainer = styled.div`
|
57
|
+
position: fixed;
|
56
58
|
transform: translateX(50%);
|
57
59
|
`;
|
58
60
|
|
@@ -64,9 +66,7 @@ const Container = styled.div`
|
|
64
66
|
export const ToastComponent: StoryComponent = {
|
65
67
|
args: {
|
66
68
|
text: 'Текст всплывающего уведомления',
|
67
|
-
textColor: undefined,
|
68
69
|
view: 'default',
|
69
|
-
closeIconType: 'default',
|
70
70
|
size: 'm',
|
71
71
|
hasClose: true,
|
72
72
|
enableContentLeft: true,
|
@@ -90,8 +90,6 @@ const StoryLiveDemo = ({
|
|
90
90
|
size,
|
91
91
|
hasClose,
|
92
92
|
enableContentLeft,
|
93
|
-
closeIconType,
|
94
|
-
textColor,
|
95
93
|
}: StoryProps) => {
|
96
94
|
const { showToast, hideToast } = useToast();
|
97
95
|
const contentLeft = enableContentLeft && <BellIcon width="1rem" height="1rem" />;
|
@@ -112,8 +110,6 @@ const StoryLiveDemo = ({
|
|
112
110
|
view,
|
113
111
|
size,
|
114
112
|
hasClose,
|
115
|
-
closeIconType,
|
116
|
-
textColor,
|
117
113
|
onHide: action('onHide'),
|
118
114
|
onShow: action('onShow'),
|
119
115
|
});
|
@@ -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, toastTokens } from '@salutejs/plasma-new-hope/emotion';
|
4
4
|
export var config = {
|
@@ -10,27 +10,17 @@ 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
|
-
|
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)
|
13
|
+
dark: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__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),
|
14
|
+
light: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__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)
|
25
15
|
},
|
26
16
|
size: {
|
27
|
-
m: /*#__PURE__*/css(
|
17
|
+
m: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__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.leftContentMargin, toastTokens.closeIconMargin)
|
28
18
|
},
|
29
19
|
closeIconType: {
|
30
|
-
"default": /*#__PURE__*/css(
|
20
|
+
"default": /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), toastTokens.closeIconButtonSize, toastTokens.closeIconSize)
|
31
21
|
},
|
32
22
|
pilled: {
|
33
|
-
"true": /*#__PURE__*/css(
|
23
|
+
"true": /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__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.leftContentMargin, toastTokens.closeIconMargin)
|
34
24
|
}
|
35
25
|
}
|
36
26
|
};
|
@@ -10,22 +10,23 @@ import { ToastController, ToastProvider } from './Toast';
|
|
10
10
|
|
11
11
|
import { Toast, useToast } from '.';
|
12
12
|
|
13
|
-
const views = ['default', 'positive', 'negative'];
|
14
|
-
|
15
13
|
const meta: Meta<typeof ToastController> = {
|
16
14
|
title: 'Overlay/Toast',
|
17
15
|
decorators: [InSpacingDecorator],
|
18
16
|
argTypes: {
|
19
17
|
view: {
|
20
|
-
options:
|
18
|
+
options: ['default', 'dark', 'light'],
|
21
19
|
control: {
|
22
20
|
type: 'select',
|
23
21
|
},
|
24
22
|
},
|
25
|
-
|
26
|
-
|
23
|
+
size: {
|
24
|
+
options: ['m'],
|
25
|
+
control: {
|
26
|
+
type: 'inline-radio',
|
27
|
+
},
|
27
28
|
},
|
28
|
-
...disableProps(['
|
29
|
+
...disableProps(['role', 'onShow', 'onHide', 'contentLeft']),
|
29
30
|
},
|
30
31
|
};
|
31
32
|
|
@@ -53,6 +54,7 @@ const BellIcon = (props) => (
|
|
53
54
|
);
|
54
55
|
|
55
56
|
const ToastContainer = styled.div`
|
57
|
+
position: fixed;
|
56
58
|
transform: translateX(50%);
|
57
59
|
`;
|
58
60
|
|
@@ -64,9 +66,7 @@ const Container = styled.div`
|
|
64
66
|
export const ToastComponent: StoryComponent = {
|
65
67
|
args: {
|
66
68
|
text: 'Текст всплывающего уведомления',
|
67
|
-
textColor: undefined,
|
68
69
|
view: 'default',
|
69
|
-
closeIconType: 'default',
|
70
70
|
size: 'm',
|
71
71
|
hasClose: true,
|
72
72
|
enableContentLeft: true,
|
@@ -90,8 +90,6 @@ const StoryLiveDemo = ({
|
|
90
90
|
size,
|
91
91
|
hasClose,
|
92
92
|
enableContentLeft,
|
93
|
-
closeIconType,
|
94
|
-
textColor,
|
95
93
|
}: StoryProps) => {
|
96
94
|
const { showToast, hideToast } = useToast();
|
97
95
|
const contentLeft = enableContentLeft && <BellIcon width="1rem" height="1rem" />;
|
@@ -112,8 +110,6 @@ const StoryLiveDemo = ({
|
|
112
110
|
view,
|
113
111
|
size,
|
114
112
|
hasClose,
|
115
|
-
closeIconType,
|
116
|
-
textColor,
|
117
113
|
onHide: action('onHide'),
|
118
114
|
onShow: action('onShow'),
|
119
115
|
});
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import './Toast.
|
1
|
+
import './Toast.config_7vhrqm.css';
|
2
2
|
var config = {
|
3
3
|
defaults: {
|
4
4
|
view: 'default',
|
@@ -8,27 +8,17 @@ var config = {
|
|
8
8
|
variations: {
|
9
9
|
view: {
|
10
10
|
"default": "d1bsn3dp",
|
11
|
-
|
12
|
-
|
13
|
-
/**
|
14
|
-
* @deprecated
|
15
|
-
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
16
|
-
*/
|
17
|
-
dark: "d1918q62",
|
18
|
-
/**
|
19
|
-
* @deprecated
|
20
|
-
* светлый и темный фон регулировать через `view` компонента `ViewContainer`
|
21
|
-
*/
|
22
|
-
light: "l1jmouzj"
|
11
|
+
dark: "dtjd8cf",
|
12
|
+
light: "l1i63r6p"
|
23
13
|
},
|
24
14
|
size: {
|
25
|
-
m: "
|
15
|
+
m: "m1918q62"
|
26
16
|
},
|
27
17
|
closeIconType: {
|
28
|
-
"default": "
|
18
|
+
"default": "d1jmouzj"
|
29
19
|
},
|
30
20
|
pilled: {
|
31
|
-
"true": "
|
21
|
+
"true": "t1hfuauu"
|
32
22
|
}
|
33
23
|
}
|
34
24
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Toast.config.js","sources":["../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n closeIconType: 'default',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n
|
1
|
+
{"version":3,"file":"Toast.config.js","sources":["../../../src-css/components/Toast/Toast.config.ts"],"sourcesContent":["import { css, toastTokens } from '@salutejs/plasma-new-hope';\n\nexport const config = {\n defaults: {\n view: 'default',\n size: 'm',\n closeIconType: 'default',\n },\n variations: {\n view: {\n default: css`\n ${toastTokens.color}: var(--text-primary);\n ${toastTokens.background}: var(--surface-solid-card-brightness);\n\n ${toastTokens.closeIconColor}: var(--text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--text-secondary);\n `,\n dark: css`\n ${toastTokens.color}: var(--on-dark-text-primary);\n ${toastTokens.background}: var(--on-dark-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-dark-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-dark-text-secondary);\n `,\n light: css`\n ${toastTokens.color}: var(--on-light-text-primary);\n ${toastTokens.background}: var(--on-light-surface-solid-primary-brightness);\n\n ${toastTokens.closeIconColor}: var(--on-light-text-secondary);\n ${toastTokens.closeIconColorOnHover}: var(--on-light-text-secondary);\n `,\n },\n size: {\n m: css`\n ${toastTokens.borderRadius}: 0.75rem;\n ${toastTokens.maxWidth}: calc(100vw - 5rem);\n ${toastTokens.padding}: 0.5625rem 0.75rem;\n ${toastTokens.fontFamily}: var(--plasma-typo-body-xs-font-family);\n ${toastTokens.fontSize}: var(--plasma-typo-body-xs-font-size);\n ${toastTokens.fontStyle}: var(--plasma-typo-body-xs-font-style);\n ${toastTokens.fontWeight}: var(--plasma-typo-body-xs-font-weight);\n ${toastTokens.letterSpacing}: var(--plasma-typo-body-xs-letter-spacing);\n ${toastTokens.lineHeight}: var(--plasma-typo-body-xs-line-height);\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.125rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.5rem;\n `,\n },\n closeIconType: {\n default: css`\n ${toastTokens.closeIconButtonSize}: 1rem;\n ${toastTokens.closeIconSize}: 1.5rem;\n `,\n },\n pilled: {\n true: css`\n ${toastTokens.pilledBorderRadius}: 1.5rem;\n\n ${toastTokens.leftContentMargin}: -0.0625rem 0.375rem -0.0625rem -0.25rem;\n ${toastTokens.closeIconMargin}: -0.0625rem -0.25rem -0.0625rem 0.375rem;\n `,\n },\n },\n};\n"],"names":["config","defaults","view","size","closeIconType","variations","default","dark","light","m","pilled","true"],"mappings":"AAEO,IAAMA,MAAM,GAAG;AAClBC,EAAAA,QAAQ,EAAE;AACNC,IAAAA,IAAI,EAAE,SAAS;AACfC,IAAAA,IAAI,EAAE,GAAG;AACTC,IAAAA,aAAa,EAAE,SAAA;GAClB;AACDC,EAAAA,UAAU,EAAE;AACRH,IAAAA,IAAI,EAAE;AACFI,MAAAA,SAAAA,EAMC,UAAA;AACDC,MAAAA,IAAI,EAMH,SAAA;AACDC,MAAAA,KAAK,EAAA,UAAA;KAOR;AACDL,IAAAA,IAAI,EAAE;AACFM,MAAAA,CAAC,EAAA,UAAA;KAcJ;AACDL,IAAAA,aAAa,EAAE;MACXE,SAAO,EAAA,UAAA;KAIV;AACDI,IAAAA,MAAM,EAAE;MACJC,MAAI,EAAA,UAAA;AAMR,KAAA;AACJ,GAAA;AACJ;;;;"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
.d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
|
+
.dtjd8cf{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
3
|
+
.l1i63r6p{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
4
|
+
.m1918q62{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
5
|
+
.d1jmouzj{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
6
|
+
.t1hfuauu{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
@@ -1,8 +1,6 @@
|
|
1
|
-
.
|
2
|
-
.
|
3
|
-
.
|
4
|
-
.
|
5
|
-
.
|
6
|
-
.
|
7
|
-
.Toast_config_mtfyaa_dh1sjxu__5ad6d13b{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
8
|
-
.Toast_config_mtfyaa_ttkpp4s__5ad6d13b{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
1
|
+
.Toast_config_7vhrqm_d1bsn3dp__ffa011fe{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
|
+
.Toast_config_7vhrqm_dtjd8cf__ffa011fe{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
3
|
+
.Toast_config_7vhrqm_l1i63r6p__ffa011fe{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
4
|
+
.Toast_config_7vhrqm_m1918q62__ffa011fe{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
5
|
+
.Toast_config_7vhrqm_d1jmouzj__ffa011fe{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
6
|
+
.Toast_config_7vhrqm_t1hfuauu__ffa011fe{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
package/es/index.css
CHANGED
@@ -608,14 +608,12 @@
|
|
608
608
|
|
609
609
|
|
610
610
|
|
611
|
-
.
|
612
|
-
.
|
613
|
-
.
|
614
|
-
.
|
615
|
-
.
|
616
|
-
.
|
617
|
-
.Toast_config_mtfyaa_dh1sjxu__5ad6d13b{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
618
|
-
.Toast_config_mtfyaa_ttkpp4s__5ad6d13b{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
611
|
+
.Toast_config_7vhrqm_d1bsn3dp__ffa011fe{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
612
|
+
.Toast_config_7vhrqm_dtjd8cf__ffa011fe{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
613
|
+
.Toast_config_7vhrqm_l1i63r6p__ffa011fe{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
614
|
+
.Toast_config_7vhrqm_m1918q62__ffa011fe{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
615
|
+
.Toast_config_7vhrqm_d1jmouzj__ffa011fe{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
616
|
+
.Toast_config_7vhrqm_t1hfuauu__ffa011fe{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-left-content-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
619
617
|
|
620
618
|
.Toolbar_config_1yum23z_d1ww92hn__4c35b6dd{--plasma-toolbar-box-shadow:0px 4px 14px -4px rgba(8,8,8,0.08),0px 1px 4px -1px rgba(0,0,0,0.04);--plasma-toolbar-background:var(--surface-solid-card-brightness);--plasma-toolbar-divider-color:var(--surface-transparent-tertiary);}
|
621
619
|
.Toolbar_config_1yum23z_x1apuzov__4c35b6dd{--plasma-toolbar-size:2.5rem;--plasma-toolbar-padding:0.25rem;--plasma-toolbar-border-radius:0.75rem;--plasma-toolbar-divider-size:1.25rem;--plasma-toolbar-divider-offset:0.5rem;--plasma-toolbar-divider-border-radius:0.0625rem;}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-serv",
|
3
|
-
"version": "0.238.0-canary.
|
3
|
+
"version": "0.238.0-canary.1730.13069305986.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,7 +32,7 @@
|
|
32
32
|
"directory": "packages/sdds-serv"
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
|
-
"@salutejs/plasma-new-hope": "0.253.0-canary.
|
35
|
+
"@salutejs/plasma-new-hope": "0.253.0-canary.1730.13069305986.0",
|
36
36
|
"@salutejs/sdds-themes": "0.31.0"
|
37
37
|
},
|
38
38
|
"peerDependencies": {
|
@@ -136,5 +136,5 @@
|
|
136
136
|
"sideEffects": [
|
137
137
|
"*.css"
|
138
138
|
],
|
139
|
-
"gitHead": "
|
139
|
+
"gitHead": "fcfbea8bd4c905cd3b788e44b4135a175aa5da76"
|
140
140
|
}
|
@@ -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: {
|
@@ -16,27 +16,17 @@ 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
|
-
|
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)
|
19
|
+
dark: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__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),
|
20
|
+
light: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__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)
|
31
21
|
},
|
32
22
|
size: {
|
33
|
-
m: /*#__PURE__*/(0, _styledComponents.css)(
|
23
|
+
m: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__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.leftContentMargin, _styledComponents.toastTokens.closeIconMargin)
|
34
24
|
},
|
35
25
|
closeIconType: {
|
36
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(
|
26
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), _styledComponents.toastTokens.closeIconButtonSize, _styledComponents.toastTokens.closeIconSize)
|
37
27
|
},
|
38
28
|
pilled: {
|
39
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(
|
29
|
+
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__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.leftContentMargin, _styledComponents.toastTokens.closeIconMargin)
|
40
30
|
}
|
41
31
|
}
|
42
32
|
};
|
@@ -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, toastTokens } from '@salutejs/plasma-new-hope/styled-components';
|
4
4
|
export var config = {
|
@@ -10,27 +10,17 @@ 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
|
-
|
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)
|
13
|
+
dark: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__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),
|
14
|
+
light: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__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)
|
25
15
|
},
|
26
16
|
size: {
|
27
|
-
m: /*#__PURE__*/css(
|
17
|
+
m: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__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.leftContentMargin, toastTokens.closeIconMargin)
|
28
18
|
},
|
29
19
|
closeIconType: {
|
30
|
-
"default": /*#__PURE__*/css(
|
20
|
+
"default": /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n ", ": 1rem;\n ", ": 1.5rem;\n "])), toastTokens.closeIconButtonSize, toastTokens.closeIconSize)
|
31
21
|
},
|
32
22
|
pilled: {
|
33
|
-
"true": /*#__PURE__*/css(
|
23
|
+
"true": /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__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.leftContentMargin, toastTokens.closeIconMargin)
|
34
24
|
}
|
35
25
|
}
|
36
26
|
};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
.d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
|
-
.ptjd8cf{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-positive);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
3
|
-
.n1i63r6p{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-negative);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
4
|
-
.d1918q62{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
5
|
-
.l1jmouzj{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
6
|
-
.m1hfuauu{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
7
|
-
.dh1sjxu{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
8
|
-
.ttkpp4s{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
.d1bsn3dp{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
2
|
-
.ptjd8cf{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-positive);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
3
|
-
.n1i63r6p{--plasma-toast-color:var(--text-primary);--plasma-toast-background:var(--surface-solid-card-brightness);--plasma-toast-content-left-color:var(--text-negative);--plasma-toast-close-icon-color:var(--text-secondary);--plasma-toast-close-icon-color-on-hover:var(--text-secondary);}
|
4
|
-
.d1918q62{--plasma-toast-color:var(--on-dark-text-primary);--plasma-toast-background:var(--on-dark-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-dark-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-dark-text-secondary);}
|
5
|
-
.l1jmouzj{--plasma-toast-color:var(--on-light-text-primary);--plasma-toast-background:var(--on-light-surface-solid-primary-brightness);--plasma-toast-close-icon-color:var(--on-light-text-secondary);--plasma-toast-close-icon-color-on-hover:var(--on-light-text-secondary);}
|
6
|
-
.m1hfuauu{--plasma-toast-border-radius:0.75rem;--plasma-toast-max-width:calc(100vw - 5rem);--plasma-toast-padding:0.5625rem 0.75rem;--plasma-toast-font-family:var(--plasma-typo-body-xs-font-family);--plasma-toast-font-size:var(--plasma-typo-body-xs-font-size);--plasma-toast-font-style:var(--plasma-typo-body-xs-font-style);--plasma-toast-font-weight:var(--plasma-typo-body-xs-font-weight);--plasma-toast-letter-spacing:var(--plasma-typo-body-xs-letter-spacing);--plasma-toast-lineheight:var(--plasma-typo-body-xs-line-height);--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.125rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.5rem;}
|
7
|
-
.dh1sjxu{--plasma-toast-close-icon-button-size:1rem;--plasma-toast-close-icon-size:1.5rem;}
|
8
|
-
.ttkpp4s{--plasma-toast-pilled-border-radius:1.5rem;--plasma-toast-content-left-margin:-0.0625rem 0.375rem -0.0625rem -0.25rem;--plasma-toast-close-icon-margin:-0.0625rem -0.25rem -0.0625rem 0.375rem;}
|