@salutejs/sdds-cs 0.317.0-canary.1954.15277675821.0 → 0.317.0-canary.1967.15291487889.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.
@@ -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,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
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-cs",
|
3
|
-
"version": "0.317.0-canary.
|
3
|
+
"version": "0.317.0-canary.1967.15291487889.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.325.0-canary.
|
33
|
+
"@salutejs/plasma-new-hope": "0.325.0-canary.1967.15291487889.0",
|
34
34
|
"@salutejs/sdds-themes": "0.37.0-dev.0"
|
35
35
|
},
|
36
36
|
"peerDependencies": {
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"@salutejs/plasma-colors": "0.15.0",
|
57
57
|
"@salutejs/plasma-core": "1.197.0-dev.0",
|
58
58
|
"@salutejs/plasma-cy-utils": "0.128.0-dev.0",
|
59
|
-
"@salutejs/plasma-icons": "1.218.0-canary.
|
59
|
+
"@salutejs/plasma-icons": "1.218.0-canary.1967.15291487889.0",
|
60
60
|
"@salutejs/plasma-sb-utils": "0.198.0-dev.0",
|
61
61
|
"@storybook/addon-docs": "7.6.17",
|
62
62
|
"@storybook/addon-essentials": "7.6.17",
|
@@ -123,5 +123,5 @@
|
|
123
123
|
"Anton Vinogradov"
|
124
124
|
],
|
125
125
|
"sideEffects": false,
|
126
|
-
"gitHead": "
|
126
|
+
"gitHead": "75960bf663d562fda8fd68fed760783078c16ddd"
|
127
127
|
}
|