@salutejs/sdds-cs 0.316.0-canary.1966.15062938095.0 → 0.316.0-canary.1967.15176713247.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/Link/Link.config.js +11 -11
- package/components/Link/Link.d.ts +2 -2
- package/components/Rating/Rating.d.ts +1 -1
- package/emotion/cjs/components/Link/Link.config.js +11 -11
- package/emotion/cjs/components/Notification/Notification.stories.tsx +11 -2
- package/emotion/cjs/components/NumberFormat/NumberFormat.stories.tsx +1 -1
- package/emotion/es/components/Link/Link.config.js +12 -12
- package/emotion/es/components/Notification/Notification.stories.tsx +11 -2
- package/emotion/es/components/NumberFormat/NumberFormat.stories.tsx +1 -1
- package/es/components/Link/Link.config.js +12 -12
- package/package.json +3 -3
@@ -14,21 +14,21 @@ var config = exports.config = {
|
|
14
14
|
},
|
15
15
|
variations: {
|
16
16
|
view: {
|
17
|
-
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
18
|
-
secondary: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
19
|
-
tertiary: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
20
|
-
paragraph: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
21
|
-
accent: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
22
|
-
positive: /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
23
|
-
warning: /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
24
|
-
negative: /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
25
|
-
clear: /*#__PURE__*/(0, _styledComponents.css)(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
17
|
+
"default": /*#__PURE__*/(0, _styledComponents.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-primary);\n --plasma-link-color-hover: var(--text-primary-hover);\n --plasma-link-color-active: var(--text-primary-active);\n --plasma-link-color-visited: var(--text-primary);\n --plasma-link-color-visited-hover: var(--text-primary-hover);\n --plasma-link-color-visited-active: var(--text-primary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
18
|
+
secondary: /*#__PURE__*/(0, _styledComponents.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-secondary);\n --plasma-link-color-hover: var(--text-secondary-hover);\n --plasma-link-color-active: var(--text-secondary-active);\n --plasma-link-color-visited: var(--text-secondary);\n --plasma-link-color-visited-hover: var(--text-secondary-hover);\n --plasma-link-color-visited-active: var(--text-secondary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
19
|
+
tertiary: /*#__PURE__*/(0, _styledComponents.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-tertiary);\n --plasma-link-color-hover: var(--text-tertiary-hover);\n --plasma-link-color-active: var(--text-tertiary-active);\n --plasma-link-color-visited: var(--text-tertiary);\n --plasma-link-color-visited-hover: var(--text-tertiary-hover);\n --plasma-link-color-visited-active: var(--text-tertiary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
20
|
+
paragraph: /*#__PURE__*/(0, _styledComponents.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-paragraph);\n --plasma-link-color-hover: var(--text-paragraph-hover);\n --plasma-link-color-active: var(--text-paragraph-active);\n --plasma-link-color-visited: var(--text-paragraph);\n --plasma-link-color-visited-hover: var(--text-paragraph-hover);\n --plasma-link-color-visited-active: var(--text-paragraph-active);\n --plasma-link-underline-border: 0;\n "]))),
|
21
|
+
accent: /*#__PURE__*/(0, _styledComponents.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-accent);\n --plasma-link-color-hover: #1a9e32;\n --plasma-link-color-active: var(--text-accent-active);\n --plasma-link-color-visited: var(--text-accent);\n --plasma-link-color-visited-hover: #1a9e32;\n --plasma-link-color-visited-active: var(--text-accent-active);\n --plasma-link-underline-border: 0;\n "]))),
|
22
|
+
positive: /*#__PURE__*/(0, _styledComponents.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-positive);\n --plasma-link-color-hover: var(--text-positive-hover);\n --plasma-link-color-active: var(--text-positive-active);\n --plasma-link-color-visited: var(--text-positive);\n --plasma-link-color-visited-hover: var(--text-positive-hover);\n --plasma-link-color-visited-active: var(--text-positive-active);\n --plasma-link-underline-border: 0;\n "]))),
|
23
|
+
warning: /*#__PURE__*/(0, _styledComponents.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-warning);\n --plasma-link-color-hover: var(--text-warning-hover);\n --plasma-link-color-active: var(--text-warning-active);\n --plasma-link-color-visited: var(--text-warning);\n --plasma-link-color-visited-hover: var(--text-warning-hover);\n --plasma-link-color-visited-active: var(--text-warning-active);\n --plasma-link-underline-border: 0;\n "]))),
|
24
|
+
negative: /*#__PURE__*/(0, _styledComponents.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-negative);\n --plasma-link-color-hover: var(--text-negative-hover);\n --plasma-link-color-active: var(--text-negative-active);\n --plasma-link-color-visited: var(--text-negative);\n --plasma-link-color-visited-hover: var(--text-negative-hover);\n --plasma-link-color-visited-active: var(--text-negative-active);\n --plasma-link-underline-border: 0;\n "]))),
|
25
|
+
clear: /*#__PURE__*/(0, _styledComponents.css)(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: inherit;\n --plasma-link-color-hover: inherit;\n --plasma-link-color-active: inherit;\n --plasma-link-color-visited: inherit;\n --plasma-link-color-visited-hover: inherit;\n --plasma-link-color-visited-active: inherit;\n --plasma-link-underline-border: 0.063rem;\n "])))
|
26
26
|
},
|
27
27
|
disabled: {
|
28
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
28
|
+
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-disabled-opacity: 0.4;\n "])))
|
29
29
|
},
|
30
30
|
focused: {
|
31
|
-
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
31
|
+
"true": /*#__PURE__*/(0, _styledComponents.css)(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-focus-color: var(--text-primary);\n "])))
|
32
32
|
}
|
33
33
|
}
|
34
34
|
};
|
@@ -17,7 +17,7 @@ declare const LinkComponent: import("react").FunctionComponent<import("@salutejs
|
|
17
17
|
focused: {
|
18
18
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
19
19
|
};
|
20
|
-
}> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & import("@salutejs/plasma-new-hope/types/components/Link/Link
|
20
|
+
}> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & import("@salutejs/plasma-new-hope/types/components/Link/Link").LinkCustomProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
21
21
|
export declare type LinkProps = typeof LinkComponent;
|
22
22
|
/**
|
23
23
|
* Ссылка.
|
@@ -40,5 +40,5 @@ export declare const Link: import("react").FunctionComponent<import("@salutejs/p
|
|
40
40
|
focused: {
|
41
41
|
true: import("@salutejs/plasma-new-hope/types/engines/types").PolymorphicClassName;
|
42
42
|
};
|
43
|
-
}> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & import("@salutejs/plasma-new-hope/types/components/Link/Link
|
43
|
+
}> & import("react").AnchorHTMLAttributes<HTMLAnchorElement> & import("@salutejs/plasma-new-hope/types/components/Link/Link").LinkCustomProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
44
44
|
export {};
|
@@ -17,7 +17,7 @@ export declare const Rating: import("react").FunctionComponent<import("@salutejs
|
|
17
17
|
iconSlotOutline?: import("react").ReactNode;
|
18
18
|
iconSlotHalf?: import("react").ReactNode;
|
19
19
|
hasIcons?: boolean | undefined;
|
20
|
-
iconQuantity?: 1 |
|
20
|
+
iconQuantity?: 1 | 5 | 10 | undefined;
|
21
21
|
helperText?: string | undefined;
|
22
22
|
helperTextStretching?: "fixed" | "filled" | undefined;
|
23
23
|
size?: string | undefined;
|
@@ -14,21 +14,21 @@ var config = exports.config = {
|
|
14
14
|
},
|
15
15
|
variations: {
|
16
16
|
view: {
|
17
|
-
"default": /*#__PURE__*/(0, _emotion.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
18
|
-
secondary: /*#__PURE__*/(0, _emotion.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
19
|
-
tertiary: /*#__PURE__*/(0, _emotion.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
20
|
-
paragraph: /*#__PURE__*/(0, _emotion.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
21
|
-
accent: /*#__PURE__*/(0, _emotion.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
22
|
-
positive: /*#__PURE__*/(0, _emotion.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
23
|
-
warning: /*#__PURE__*/(0, _emotion.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
24
|
-
negative: /*#__PURE__*/(0, _emotion.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
25
|
-
clear: /*#__PURE__*/(0, _emotion.css)(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
17
|
+
"default": /*#__PURE__*/(0, _emotion.css)(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-primary);\n --plasma-link-color-hover: var(--text-primary-hover);\n --plasma-link-color-active: var(--text-primary-active);\n --plasma-link-color-visited: var(--text-primary);\n --plasma-link-color-visited-hover: var(--text-primary-hover);\n --plasma-link-color-visited-active: var(--text-primary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
18
|
+
secondary: /*#__PURE__*/(0, _emotion.css)(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-secondary);\n --plasma-link-color-hover: var(--text-secondary-hover);\n --plasma-link-color-active: var(--text-secondary-active);\n --plasma-link-color-visited: var(--text-secondary);\n --plasma-link-color-visited-hover: var(--text-secondary-hover);\n --plasma-link-color-visited-active: var(--text-secondary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
19
|
+
tertiary: /*#__PURE__*/(0, _emotion.css)(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-tertiary);\n --plasma-link-color-hover: var(--text-tertiary-hover);\n --plasma-link-color-active: var(--text-tertiary-active);\n --plasma-link-color-visited: var(--text-tertiary);\n --plasma-link-color-visited-hover: var(--text-tertiary-hover);\n --plasma-link-color-visited-active: var(--text-tertiary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
20
|
+
paragraph: /*#__PURE__*/(0, _emotion.css)(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-paragraph);\n --plasma-link-color-hover: var(--text-paragraph-hover);\n --plasma-link-color-active: var(--text-paragraph-active);\n --plasma-link-color-visited: var(--text-paragraph);\n --plasma-link-color-visited-hover: var(--text-paragraph-hover);\n --plasma-link-color-visited-active: var(--text-paragraph-active);\n --plasma-link-underline-border: 0;\n "]))),
|
21
|
+
accent: /*#__PURE__*/(0, _emotion.css)(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-accent);\n --plasma-link-color-hover: #1a9e32;\n --plasma-link-color-active: var(--text-accent-active);\n --plasma-link-color-visited: var(--text-accent);\n --plasma-link-color-visited-hover: #1a9e32;\n --plasma-link-color-visited-active: var(--text-accent-active);\n --plasma-link-underline-border: 0;\n "]))),
|
22
|
+
positive: /*#__PURE__*/(0, _emotion.css)(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-positive);\n --plasma-link-color-hover: var(--text-positive-hover);\n --plasma-link-color-active: var(--text-positive-active);\n --plasma-link-color-visited: var(--text-positive);\n --plasma-link-color-visited-hover: var(--text-positive-hover);\n --plasma-link-color-visited-active: var(--text-positive-active);\n --plasma-link-underline-border: 0;\n "]))),
|
23
|
+
warning: /*#__PURE__*/(0, _emotion.css)(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-warning);\n --plasma-link-color-hover: var(--text-warning-hover);\n --plasma-link-color-active: var(--text-warning-active);\n --plasma-link-color-visited: var(--text-warning);\n --plasma-link-color-visited-hover: var(--text-warning-hover);\n --plasma-link-color-visited-active: var(--text-warning-active);\n --plasma-link-underline-border: 0;\n "]))),
|
24
|
+
negative: /*#__PURE__*/(0, _emotion.css)(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-negative);\n --plasma-link-color-hover: var(--text-negative-hover);\n --plasma-link-color-active: var(--text-negative-active);\n --plasma-link-color-visited: var(--text-negative);\n --plasma-link-color-visited-hover: var(--text-negative-hover);\n --plasma-link-color-visited-active: var(--text-negative-active);\n --plasma-link-underline-border: 0;\n "]))),
|
25
|
+
clear: /*#__PURE__*/(0, _emotion.css)(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: inherit;\n --plasma-link-color-hover: inherit;\n --plasma-link-color-active: inherit;\n --plasma-link-color-visited: inherit;\n --plasma-link-color-visited-hover: inherit;\n --plasma-link-color-visited-active: inherit;\n --plasma-link-underline-border: 0.063rem;\n "])))
|
26
26
|
},
|
27
27
|
disabled: {
|
28
|
-
"true": /*#__PURE__*/(0, _emotion.css)(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
28
|
+
"true": /*#__PURE__*/(0, _emotion.css)(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-disabled-opacity: 0.4;\n "])))
|
29
29
|
},
|
30
30
|
focused: {
|
31
|
-
"true": /*#__PURE__*/(0, _emotion.css)(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
31
|
+
"true": /*#__PURE__*/(0, _emotion.css)(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-focus-color: var(--text-primary);\n "])))
|
32
32
|
}
|
33
33
|
}
|
34
34
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useCallback, useRef, useState } from 'react';
|
2
2
|
import type { ComponentProps } from 'react';
|
3
3
|
import type { StoryObj, Meta } from '@storybook/react';
|
4
|
-
import { IconSber } from '@salutejs/plasma-icons';
|
4
|
+
import { IconDisclosureRight, IconSber } from '@salutejs/plasma-icons';
|
5
5
|
import { disableProps, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
|
6
6
|
import { action } from '@storybook/addon-actions';
|
7
7
|
|
@@ -139,7 +139,14 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
|
|
139
139
|
const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
|
140
140
|
const count = useRef(0);
|
141
141
|
const handleClick = useCallback(() => {
|
142
|
-
addNotification(
|
142
|
+
addNotification(
|
143
|
+
{
|
144
|
+
icon: <IconDisclosureRight color="inherit" />,
|
145
|
+
...rest,
|
146
|
+
...getNotificationProps(count.current),
|
147
|
+
},
|
148
|
+
timeout,
|
149
|
+
);
|
143
150
|
count.current++;
|
144
151
|
}, [count, rest]);
|
145
152
|
|
@@ -170,6 +177,8 @@ export const LiveDemo: StoryObj<StoryLiveDemoProps> = {
|
|
170
177
|
role: 'alert',
|
171
178
|
layout: 'vertical',
|
172
179
|
placement: 'bottom-right',
|
180
|
+
width: '',
|
181
|
+
maxWidth: '',
|
173
182
|
},
|
174
183
|
render: (args) => <StoryLiveDemo {...args} />,
|
175
184
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
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
|
3
|
+
import { css } from '@salutejs/plasma-new-hope/emotion';
|
4
4
|
export var config = {
|
5
5
|
defaults: {
|
6
6
|
view: 'default',
|
@@ -8,21 +8,21 @@ export var config = {
|
|
8
8
|
},
|
9
9
|
variations: {
|
10
10
|
view: {
|
11
|
-
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
12
|
-
secondary: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
13
|
-
tertiary: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
14
|
-
paragraph: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
15
|
-
accent: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
16
|
-
positive: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
17
|
-
warning: /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
18
|
-
negative: /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
19
|
-
clear: /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
11
|
+
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-primary);\n --plasma-link-color-hover: var(--text-primary-hover);\n --plasma-link-color-active: var(--text-primary-active);\n --plasma-link-color-visited: var(--text-primary);\n --plasma-link-color-visited-hover: var(--text-primary-hover);\n --plasma-link-color-visited-active: var(--text-primary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
12
|
+
secondary: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-secondary);\n --plasma-link-color-hover: var(--text-secondary-hover);\n --plasma-link-color-active: var(--text-secondary-active);\n --plasma-link-color-visited: var(--text-secondary);\n --plasma-link-color-visited-hover: var(--text-secondary-hover);\n --plasma-link-color-visited-active: var(--text-secondary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
13
|
+
tertiary: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-tertiary);\n --plasma-link-color-hover: var(--text-tertiary-hover);\n --plasma-link-color-active: var(--text-tertiary-active);\n --plasma-link-color-visited: var(--text-tertiary);\n --plasma-link-color-visited-hover: var(--text-tertiary-hover);\n --plasma-link-color-visited-active: var(--text-tertiary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
14
|
+
paragraph: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-paragraph);\n --plasma-link-color-hover: var(--text-paragraph-hover);\n --plasma-link-color-active: var(--text-paragraph-active);\n --plasma-link-color-visited: var(--text-paragraph);\n --plasma-link-color-visited-hover: var(--text-paragraph-hover);\n --plasma-link-color-visited-active: var(--text-paragraph-active);\n --plasma-link-underline-border: 0;\n "]))),
|
15
|
+
accent: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-accent);\n --plasma-link-color-hover: #1a9e32;\n --plasma-link-color-active: var(--text-accent-active);\n --plasma-link-color-visited: var(--text-accent);\n --plasma-link-color-visited-hover: #1a9e32;\n --plasma-link-color-visited-active: var(--text-accent-active);\n --plasma-link-underline-border: 0;\n "]))),
|
16
|
+
positive: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-positive);\n --plasma-link-color-hover: var(--text-positive-hover);\n --plasma-link-color-active: var(--text-positive-active);\n --plasma-link-color-visited: var(--text-positive);\n --plasma-link-color-visited-hover: var(--text-positive-hover);\n --plasma-link-color-visited-active: var(--text-positive-active);\n --plasma-link-underline-border: 0;\n "]))),
|
17
|
+
warning: /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-warning);\n --plasma-link-color-hover: var(--text-warning-hover);\n --plasma-link-color-active: var(--text-warning-active);\n --plasma-link-color-visited: var(--text-warning);\n --plasma-link-color-visited-hover: var(--text-warning-hover);\n --plasma-link-color-visited-active: var(--text-warning-active);\n --plasma-link-underline-border: 0;\n "]))),
|
18
|
+
negative: /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-negative);\n --plasma-link-color-hover: var(--text-negative-hover);\n --plasma-link-color-active: var(--text-negative-active);\n --plasma-link-color-visited: var(--text-negative);\n --plasma-link-color-visited-hover: var(--text-negative-hover);\n --plasma-link-color-visited-active: var(--text-negative-active);\n --plasma-link-underline-border: 0;\n "]))),
|
19
|
+
clear: /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: inherit;\n --plasma-link-color-hover: inherit;\n --plasma-link-color-active: inherit;\n --plasma-link-color-visited: inherit;\n --plasma-link-color-visited-hover: inherit;\n --plasma-link-color-visited-active: inherit;\n --plasma-link-underline-border: 0.063rem;\n "])))
|
20
20
|
},
|
21
21
|
disabled: {
|
22
|
-
"true": /*#__PURE__*/css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
22
|
+
"true": /*#__PURE__*/css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-disabled-opacity: 0.4;\n "])))
|
23
23
|
},
|
24
24
|
focused: {
|
25
|
-
"true": /*#__PURE__*/css(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
25
|
+
"true": /*#__PURE__*/css(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-focus-color: var(--text-primary);\n "])))
|
26
26
|
}
|
27
27
|
}
|
28
28
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useCallback, useRef, useState } from 'react';
|
2
2
|
import type { ComponentProps } from 'react';
|
3
3
|
import type { StoryObj, Meta } from '@storybook/react';
|
4
|
-
import { IconSber } from '@salutejs/plasma-icons';
|
4
|
+
import { IconDisclosureRight, IconSber } from '@salutejs/plasma-icons';
|
5
5
|
import { disableProps, InSpacingDecorator } from '@salutejs/plasma-sb-utils';
|
6
6
|
import { action } from '@storybook/addon-actions';
|
7
7
|
|
@@ -139,7 +139,14 @@ type StoryLiveDemoProps = ComponentProps<typeof Notification> & {
|
|
139
139
|
const StoryLiveDemo = ({ timeout, placement, ...rest }: StoryLiveDemoProps) => {
|
140
140
|
const count = useRef(0);
|
141
141
|
const handleClick = useCallback(() => {
|
142
|
-
addNotification(
|
142
|
+
addNotification(
|
143
|
+
{
|
144
|
+
icon: <IconDisclosureRight color="inherit" />,
|
145
|
+
...rest,
|
146
|
+
...getNotificationProps(count.current),
|
147
|
+
},
|
148
|
+
timeout,
|
149
|
+
);
|
143
150
|
count.current++;
|
144
151
|
}, [count, rest]);
|
145
152
|
|
@@ -170,6 +177,8 @@ export const LiveDemo: StoryObj<StoryLiveDemoProps> = {
|
|
170
177
|
role: 'alert',
|
171
178
|
layout: 'vertical',
|
172
179
|
placement: 'bottom-right',
|
180
|
+
width: '',
|
181
|
+
maxWidth: '',
|
173
182
|
},
|
174
183
|
render: (args) => <StoryLiveDemo {...args} />,
|
175
184
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
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
|
3
|
+
import { css } from '@salutejs/plasma-new-hope/styled-components';
|
4
4
|
export var config = {
|
5
5
|
defaults: {
|
6
6
|
view: 'default',
|
@@ -8,21 +8,21 @@ export var config = {
|
|
8
8
|
},
|
9
9
|
variations: {
|
10
10
|
view: {
|
11
|
-
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
12
|
-
secondary: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
13
|
-
tertiary: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
14
|
-
paragraph: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
15
|
-
accent: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
16
|
-
positive: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
17
|
-
warning: /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
18
|
-
negative: /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
19
|
-
clear: /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
11
|
+
"default": /*#__PURE__*/css(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-primary);\n --plasma-link-color-hover: var(--text-primary-hover);\n --plasma-link-color-active: var(--text-primary-active);\n --plasma-link-color-visited: var(--text-primary);\n --plasma-link-color-visited-hover: var(--text-primary-hover);\n --plasma-link-color-visited-active: var(--text-primary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
12
|
+
secondary: /*#__PURE__*/css(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-secondary);\n --plasma-link-color-hover: var(--text-secondary-hover);\n --plasma-link-color-active: var(--text-secondary-active);\n --plasma-link-color-visited: var(--text-secondary);\n --plasma-link-color-visited-hover: var(--text-secondary-hover);\n --plasma-link-color-visited-active: var(--text-secondary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
13
|
+
tertiary: /*#__PURE__*/css(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-tertiary);\n --plasma-link-color-hover: var(--text-tertiary-hover);\n --plasma-link-color-active: var(--text-tertiary-active);\n --plasma-link-color-visited: var(--text-tertiary);\n --plasma-link-color-visited-hover: var(--text-tertiary-hover);\n --plasma-link-color-visited-active: var(--text-tertiary-active);\n --plasma-link-underline-border: 0;\n "]))),
|
14
|
+
paragraph: /*#__PURE__*/css(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-paragraph);\n --plasma-link-color-hover: var(--text-paragraph-hover);\n --plasma-link-color-active: var(--text-paragraph-active);\n --plasma-link-color-visited: var(--text-paragraph);\n --plasma-link-color-visited-hover: var(--text-paragraph-hover);\n --plasma-link-color-visited-active: var(--text-paragraph-active);\n --plasma-link-underline-border: 0;\n "]))),
|
15
|
+
accent: /*#__PURE__*/css(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-accent);\n --plasma-link-color-hover: #1a9e32;\n --plasma-link-color-active: var(--text-accent-active);\n --plasma-link-color-visited: var(--text-accent);\n --plasma-link-color-visited-hover: #1a9e32;\n --plasma-link-color-visited-active: var(--text-accent-active);\n --plasma-link-underline-border: 0;\n "]))),
|
16
|
+
positive: /*#__PURE__*/css(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-positive);\n --plasma-link-color-hover: var(--text-positive-hover);\n --plasma-link-color-active: var(--text-positive-active);\n --plasma-link-color-visited: var(--text-positive);\n --plasma-link-color-visited-hover: var(--text-positive-hover);\n --plasma-link-color-visited-active: var(--text-positive-active);\n --plasma-link-underline-border: 0;\n "]))),
|
17
|
+
warning: /*#__PURE__*/css(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-warning);\n --plasma-link-color-hover: var(--text-warning-hover);\n --plasma-link-color-active: var(--text-warning-active);\n --plasma-link-color-visited: var(--text-warning);\n --plasma-link-color-visited-hover: var(--text-warning-hover);\n --plasma-link-color-visited-active: var(--text-warning-active);\n --plasma-link-underline-border: 0;\n "]))),
|
18
|
+
negative: /*#__PURE__*/css(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: var(--text-negative);\n --plasma-link-color-hover: var(--text-negative-hover);\n --plasma-link-color-active: var(--text-negative-active);\n --plasma-link-color-visited: var(--text-negative);\n --plasma-link-color-visited-hover: var(--text-negative-hover);\n --plasma-link-color-visited-active: var(--text-negative-active);\n --plasma-link-underline-border: 0;\n "]))),
|
19
|
+
clear: /*#__PURE__*/css(_templateObject9 || (_templateObject9 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-font-family: var(--plasma-typo-text-m-font-family);\n --plasma-link-color: inherit;\n --plasma-link-color-hover: inherit;\n --plasma-link-color-active: inherit;\n --plasma-link-color-visited: inherit;\n --plasma-link-color-visited-hover: inherit;\n --plasma-link-color-visited-active: inherit;\n --plasma-link-underline-border: 0.063rem;\n "])))
|
20
20
|
},
|
21
21
|
disabled: {
|
22
|
-
"true": /*#__PURE__*/css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
22
|
+
"true": /*#__PURE__*/css(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-disabled-opacity: 0.4;\n "])))
|
23
23
|
},
|
24
24
|
focused: {
|
25
|
-
"true": /*#__PURE__*/css(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n
|
25
|
+
"true": /*#__PURE__*/css(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteral(["\n --plasma-link-focus-color: var(--text-primary);\n "])))
|
26
26
|
}
|
27
27
|
}
|
28
28
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-cs",
|
3
|
-
"version": "0.316.0-canary.
|
3
|
+
"version": "0.316.0-canary.1967.15176713247.0",
|
4
4
|
"description": "Salute Design System / React UI kit for SDDS CS web applications",
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"directory": "packages/sdds-cs"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@salutejs/plasma-new-hope": "0.324.0-canary.
|
33
|
+
"@salutejs/plasma-new-hope": "0.324.0-canary.1967.15176713247.0",
|
34
34
|
"@salutejs/sdds-themes": "0.36.0"
|
35
35
|
},
|
36
36
|
"peerDependencies": {
|
@@ -123,5 +123,5 @@
|
|
123
123
|
"Anton Vinogradov"
|
124
124
|
],
|
125
125
|
"sideEffects": false,
|
126
|
-
"gitHead": "
|
126
|
+
"gitHead": "eee260124a6a8cc14e5211b5c1b05d72ef00bccc"
|
127
127
|
}
|