@salutejs/sdds-cs 0.374.0-next-sbcom.0 → 0.374.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/dist/beta/cjs/Popover/Popover.js +39 -31
- package/dist/beta/cjs/Popover/config/CloseInnerSize.css +19 -0
- package/dist/beta/cjs/Popover/config/CloseInnerSize.module.css.js +8 -0
- package/dist/beta/cjs/Popover/config/CloseInnerView.css +15 -0
- package/dist/beta/cjs/Popover/config/CloseInnerView.module.css.js +8 -0
- package/dist/beta/cjs/Popover/config/CloseNoneSize.css +15 -0
- package/dist/beta/cjs/Popover/config/CloseNoneSize.module.css.js +8 -0
- package/dist/beta/cjs/Popover/config/CloseNoneView.css +9 -0
- package/dist/beta/cjs/Popover/config/CloseNoneView.module.css.js +8 -0
- package/dist/beta/cjs/Tooltip/Tooltip.js +32 -13
- package/dist/beta/cjs/Tooltip/config/Size.css +29 -0
- package/dist/beta/cjs/Tooltip/config/Size.module.css.js +8 -0
- package/dist/beta/cjs/Tooltip/config/View.css +11 -0
- package/dist/beta/cjs/Tooltip/config/View.module.css.js +8 -0
- package/dist/beta/cjs/_virtual/_rollupPluginBabelHelpers.js +37 -0
- package/dist/beta/cjs/index.js +11 -19
- package/dist/beta/es/Popover/Popover.js +30 -10
- package/dist/beta/es/Popover/config/CloseInnerSize.css +19 -0
- package/dist/beta/es/Popover/config/CloseInnerSize.module.css.js +4 -0
- package/dist/beta/es/Popover/config/CloseInnerView.css +15 -0
- package/dist/beta/es/Popover/config/CloseInnerView.module.css.js +4 -0
- package/dist/beta/es/Popover/config/CloseNoneSize.css +15 -0
- package/dist/beta/es/Popover/config/CloseNoneSize.module.css.js +4 -0
- package/dist/beta/es/Popover/config/CloseNoneView.css +9 -0
- package/dist/beta/es/Popover/config/CloseNoneView.module.css.js +4 -0
- package/dist/beta/es/Tooltip/Tooltip.js +24 -4
- package/dist/beta/es/Tooltip/config/Size.css +29 -0
- package/dist/beta/es/Tooltip/config/Size.module.css.js +4 -0
- package/dist/beta/es/Tooltip/config/View.css +11 -0
- package/dist/beta/es/Tooltip/config/View.module.css.js +4 -0
- package/dist/beta/es/_virtual/_rollupPluginBabelHelpers.js +31 -0
- package/dist/beta/es/index.js +2 -2
- package/dist/beta/types/Popover/Popover.d.ts +16 -43
- package/dist/beta/types/Popover/index.d.ts +1 -0
- package/dist/beta/types/Tooltip/Tooltip.d.ts +13 -10
- package/dist/beta/types/Tooltip/index.d.ts +1 -0
- package/dist/emotion/cjs/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/emotion/cjs/components/Calendar/Calendar.config.js +1 -2
- package/dist/emotion/cjs/components/Calendar/CalendarDouble.config.js +1 -2
- package/dist/emotion/cjs/components/Combobox/Combobox.config.js +2 -2
- package/dist/emotion/cjs/components/DatePicker/DatePicker.config.js +0 -1
- package/dist/emotion/cjs/components/Drawer/Drawer.config.js +12 -0
- package/dist/emotion/cjs/components/Drawer/Drawer.js +1 -1
- package/dist/emotion/cjs/components/Notification/Notification.js +3 -2
- package/dist/emotion/cjs/components/Select/Select.config.js +1 -1
- package/dist/emotion/cjs/components/Spinner/Spinner.config.js +8 -31
- package/dist/emotion/cjs/components/Spinner/Spinner.js +10 -1
- package/dist/emotion/cjs/components/TextField/TextField.clear.config.js +1 -1
- package/dist/emotion/cjs/components/TextField/TextField.config.js +2 -2
- package/dist/emotion/es/components/Autocomplete/Autocomplete.config.js +1 -1
- package/dist/emotion/es/components/Calendar/Calendar.config.js +1 -2
- package/dist/emotion/es/components/Calendar/CalendarDouble.config.js +1 -2
- package/dist/emotion/es/components/Combobox/Combobox.config.js +2 -2
- package/dist/emotion/es/components/DatePicker/DatePicker.config.js +0 -1
- package/dist/emotion/es/components/Drawer/Drawer.config.js +9 -0
- package/dist/emotion/es/components/Drawer/Drawer.js +2 -2
- package/dist/emotion/es/components/Notification/Notification.js +3 -2
- package/dist/emotion/es/components/Select/Select.config.js +1 -1
- package/dist/emotion/es/components/Spinner/Spinner.config.js +9 -32
- package/dist/emotion/es/components/Spinner/Spinner.js +5 -1
- package/dist/emotion/es/components/TextField/TextField.clear.config.js +1 -1
- package/dist/emotion/es/components/TextField/TextField.config.js +2 -2
- package/package.json +19 -14
- package/types/components/Avatar/Avatar.d.ts +4 -4
- package/types/components/Combobox/Combobox.d.ts +8 -0
- package/types/components/Drawer/Drawer.config.d.ts +7 -0
- package/types/components/Drawer/Drawer.d.ts +5 -1
- package/types/components/Notification/Notification.d.ts +2 -1
- package/types/components/Spinner/Spinner.config.d.ts +0 -9
- package/types/components/Spinner/Spinner.d.ts +40 -26
- package/types/components/Spinner/index.d.ts +1 -1
- package/dist/beta/cjs/Popover/Popover.closeInner.config.js +0 -54
- package/dist/beta/cjs/Popover/Popover.closeNone.config.js +0 -46
- package/dist/beta/cjs/Popover/index.js +0 -11
- package/dist/beta/cjs/Tooltip/Tooltip.config.js +0 -62
- package/dist/beta/cjs/Tooltip/index.js +0 -11
- package/dist/beta/es/Popover/Popover.closeInner.config.js +0 -44
- package/dist/beta/es/Popover/Popover.closeNone.config.js +0 -36
- package/dist/beta/es/Popover/index.js +0 -1
- package/dist/beta/es/Tooltip/Tooltip.config.js +0 -52
- package/dist/beta/es/Tooltip/index.js +0 -1
- package/dist/beta/types/Popover/Popover.closeInner.config.d.ts +0 -16
- package/dist/beta/types/Popover/Popover.closeNone.config.d.ts +0 -16
- package/dist/beta/types/Tooltip/Tooltip.config.d.ts +0 -16
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/sdds-cs",
|
|
3
|
-
"version": "0.374.0
|
|
3
|
+
"version": "0.374.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
|
"publishConfig": {
|
|
@@ -42,8 +42,9 @@
|
|
|
42
42
|
"styled-components": "^5.3.1"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@salutejs/plasma-new-hope": "0.382.0
|
|
46
|
-
"@salutejs/sdds-themes": "0.83.0
|
|
45
|
+
"@salutejs/plasma-new-hope": "0.382.0",
|
|
46
|
+
"@salutejs/sdds-themes": "0.83.0",
|
|
47
|
+
"classnames": "2.5.1"
|
|
47
48
|
},
|
|
48
49
|
"devDependencies": {
|
|
49
50
|
"@babel/cli": "7.24.1",
|
|
@@ -56,12 +57,15 @@
|
|
|
56
57
|
"@emotion/babel-plugin": "11.11.0",
|
|
57
58
|
"@emotion/react": ">=11",
|
|
58
59
|
"@emotion/styled": ">=11",
|
|
60
|
+
"@ironkinoko/rollup-plugin-styles": "^4.0.3",
|
|
59
61
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@salutejs/plasma-
|
|
63
|
-
"@salutejs/plasma-
|
|
64
|
-
"@salutejs/plasma-
|
|
62
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
63
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
64
|
+
"@salutejs/plasma-colors": "0.25.0",
|
|
65
|
+
"@salutejs/plasma-core": "1.245.0",
|
|
66
|
+
"@salutejs/plasma-cy-utils": "0.175.0",
|
|
67
|
+
"@salutejs/plasma-icons": "1.252.0",
|
|
68
|
+
"@salutejs/plasma-sb-utils": "0.246.0",
|
|
65
69
|
"@types/node": "16.7.13",
|
|
66
70
|
"@types/react": "18.0.28",
|
|
67
71
|
"@types/react-dom": "18.0.11",
|
|
@@ -72,6 +76,7 @@
|
|
|
72
76
|
"default-browser-id": "2.0.0",
|
|
73
77
|
"react": "18.2.0",
|
|
74
78
|
"react-dom": "18.2.0",
|
|
79
|
+
"rollup": "^3.28.0",
|
|
75
80
|
"styled-components": "5.3.1",
|
|
76
81
|
"typescript-coverage-report": "0.7.0"
|
|
77
82
|
},
|
|
@@ -81,11 +86,9 @@
|
|
|
81
86
|
"build:emotion": "rm -rf dist/emotion && npm run build:emotion:esm && npm run build:emotion:cjs",
|
|
82
87
|
"build:emotion:cjs": "swc ./src --ignore \"src/components/_beta/**\" -d ./dist/emotion/cjs --strip-leading-paths --config-file ../../swc.config.json -C module.type=commonjs",
|
|
83
88
|
"build:emotion:esm": "swc ./src --ignore \"src/components/_beta/**\" -d ./dist/emotion/es --strip-leading-paths --config-file ../../swc.config.json -C module.type=es6",
|
|
84
|
-
"build:beta": "rm -rf dist/beta &&
|
|
85
|
-
"build:beta:cjs": "swc ./src/components/_beta -d ./dist/beta/cjs --strip-leading-paths --config-file ../../swc.config.json -C module.type=commonjs && mv dist/beta/cjs/components/_beta/* dist/beta/cjs && rimraf dist/beta/cjs/components",
|
|
86
|
-
"build:beta:esm": "swc ./src/components/_beta -d ./dist/beta/es --strip-leading-paths --config-file ../../swc.config.json -C module.type=es6 && mv dist/beta/es/components/_beta/* dist/beta/es && rimraf dist/beta/es/components",
|
|
89
|
+
"build:beta": "rm -rf dist/beta && rollup -c rollup.beta.config.mjs",
|
|
87
90
|
"postbuild": "npm run generate:typings",
|
|
88
|
-
"generate:typings": "
|
|
91
|
+
"generate:typings": "tsc && tsc -p src/components/_beta/tsconfig.json",
|
|
89
92
|
"storybook": "storybook dev -p ${PORT:-7007} -c .storybook",
|
|
90
93
|
"storybook:build": "storybook build -c .storybook -o build-sb",
|
|
91
94
|
"typescript-coverage": "npx typescript-coverage-report > /dev/null",
|
|
@@ -101,6 +104,8 @@
|
|
|
101
104
|
"contributors": [
|
|
102
105
|
"salute.developers@gmail.com"
|
|
103
106
|
],
|
|
104
|
-
"sideEffects":
|
|
105
|
-
|
|
107
|
+
"sideEffects": [
|
|
108
|
+
"*.css"
|
|
109
|
+
],
|
|
110
|
+
"gitHead": "a419e9303c97682114c77f181eedcbf37b52adf3"
|
|
106
111
|
}
|
|
@@ -47,7 +47,7 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/emotion").Componen
|
|
|
47
47
|
size?: string;
|
|
48
48
|
name?: string;
|
|
49
49
|
url?: string;
|
|
50
|
-
customText?:
|
|
50
|
+
customText?: string;
|
|
51
51
|
status?: "active" | "inactive";
|
|
52
52
|
isScalable?: boolean;
|
|
53
53
|
focused?: boolean;
|
|
@@ -76,7 +76,7 @@ declare const mergedConfig: import("@salutejs/plasma-new-hope/emotion").Componen
|
|
|
76
76
|
size?: string;
|
|
77
77
|
name?: string;
|
|
78
78
|
url?: string;
|
|
79
|
-
customText?:
|
|
79
|
+
customText?: string;
|
|
80
80
|
status?: "active" | "inactive";
|
|
81
81
|
isScalable?: boolean;
|
|
82
82
|
focused?: boolean;
|
|
@@ -128,7 +128,7 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
|
|
|
128
128
|
size?: string;
|
|
129
129
|
name?: string;
|
|
130
130
|
url?: string;
|
|
131
|
-
customText?:
|
|
131
|
+
customText?: string;
|
|
132
132
|
status?: "active" | "inactive";
|
|
133
133
|
isScalable?: boolean;
|
|
134
134
|
focused?: boolean;
|
|
@@ -157,7 +157,7 @@ declare const Avatar: import("react").FunctionComponent<import("@salutejs/plasma
|
|
|
157
157
|
size?: string;
|
|
158
158
|
name?: string;
|
|
159
159
|
url?: string;
|
|
160
|
-
customText?:
|
|
160
|
+
customText?: string;
|
|
161
161
|
status?: "active" | "inactive";
|
|
162
162
|
isScalable?: boolean;
|
|
163
163
|
focused?: boolean;
|
|
@@ -24,6 +24,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
24
24
|
};
|
|
25
25
|
}> & (({
|
|
26
26
|
items: ComboboxItemOption[];
|
|
27
|
+
sortItems?: ((a: ComboboxItemOption, b: ComboboxItemOption) => number) | undefined;
|
|
27
28
|
treeView?: boolean;
|
|
28
29
|
arrowPlacement?: "left" | "right";
|
|
29
30
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/Combobox.types.js").Placement;
|
|
@@ -89,6 +90,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
89
90
|
_offset?: [number, number];
|
|
90
91
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
91
92
|
items: ComboboxItemOption[];
|
|
93
|
+
sortItems?: ((a: ComboboxItemOption, b: ComboboxItemOption) => number) | undefined;
|
|
92
94
|
treeView?: boolean;
|
|
93
95
|
arrowPlacement?: "left" | "right";
|
|
94
96
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/Combobox.types.js").Placement;
|
|
@@ -154,6 +156,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
154
156
|
_offset?: [number, number];
|
|
155
157
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
156
158
|
items: ComboboxItemOption[];
|
|
159
|
+
sortItems?: ((a: ComboboxItemOption, b: ComboboxItemOption) => number) | undefined;
|
|
157
160
|
treeView?: boolean;
|
|
158
161
|
arrowPlacement?: "left" | "right";
|
|
159
162
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/Combobox.types.js").Placement;
|
|
@@ -219,6 +222,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
219
222
|
_offset?: [number, number];
|
|
220
223
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
221
224
|
items: ComboboxItemOption[];
|
|
225
|
+
sortItems?: ((a: ComboboxItemOption, b: ComboboxItemOption) => number) | undefined;
|
|
222
226
|
treeView?: boolean;
|
|
223
227
|
arrowPlacement?: "left" | "right";
|
|
224
228
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/Combobox.types.js").Placement;
|
|
@@ -284,6 +288,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
284
288
|
_offset?: [number, number];
|
|
285
289
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
286
290
|
items: ComboboxItemOption[];
|
|
291
|
+
sortItems?: ((a: ComboboxItemOption, b: ComboboxItemOption) => number) | undefined;
|
|
287
292
|
treeView?: boolean;
|
|
288
293
|
arrowPlacement?: "left" | "right";
|
|
289
294
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/Combobox.types.js").Placement;
|
|
@@ -353,6 +358,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
353
358
|
_offset?: [number, number];
|
|
354
359
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
355
360
|
items: ComboboxItemOption[];
|
|
361
|
+
sortItems?: ((a: ComboboxItemOption, b: ComboboxItemOption) => number) | undefined;
|
|
356
362
|
treeView?: boolean;
|
|
357
363
|
arrowPlacement?: "left" | "right";
|
|
358
364
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/Combobox.types.js").Placement;
|
|
@@ -422,6 +428,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
422
428
|
_offset?: [number, number];
|
|
423
429
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
424
430
|
items: ComboboxItemOption[];
|
|
431
|
+
sortItems?: ((a: ComboboxItemOption, b: ComboboxItemOption) => number) | undefined;
|
|
425
432
|
treeView?: boolean;
|
|
426
433
|
arrowPlacement?: "left" | "right";
|
|
427
434
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/Combobox.types.js").Placement;
|
|
@@ -491,6 +498,7 @@ declare const ComboboxNew: React.FunctionComponent<import("@salutejs/plasma-new-
|
|
|
491
498
|
_offset?: [number, number];
|
|
492
499
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "defaultValue" | "placeholder" | "onScroll" | "value"> & React.RefAttributes<HTMLInputElement>) | ({
|
|
493
500
|
items: ComboboxItemOption[];
|
|
501
|
+
sortItems?: ((a: ComboboxItemOption, b: ComboboxItemOption) => number) | undefined;
|
|
494
502
|
treeView?: boolean;
|
|
495
503
|
arrowPlacement?: "left" | "right";
|
|
496
504
|
placement?: import("@salutejs/plasma-new-hope/types/components/Combobox/Combobox.types.js").Placement;
|
|
@@ -19,3 +19,10 @@ export declare const config: {
|
|
|
19
19
|
export declare const headerConfig: {
|
|
20
20
|
base: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
21
21
|
};
|
|
22
|
+
export declare const contentConfig: {
|
|
23
|
+
variations: {
|
|
24
|
+
view: {
|
|
25
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
@@ -31,7 +31,11 @@ export declare const Drawer: import("react").FunctionComponent<import("@salutejs
|
|
|
31
31
|
/**
|
|
32
32
|
* Компонент части контента Drawer.
|
|
33
33
|
*/
|
|
34
|
-
export declare const DrawerContent: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<
|
|
34
|
+
export declare const DrawerContent: import("react").FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
|
|
35
|
+
view: {
|
|
36
|
+
default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
37
|
+
};
|
|
38
|
+
}> & {
|
|
35
39
|
view?: string;
|
|
36
40
|
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
37
41
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ComponentProps, ForwardRefExoticComponent, ReactNode } from 'react';
|
|
2
|
-
import { NotificationProps as NotificationPropsNewHope, NotificationPlacement } from '@salutejs/plasma-new-hope/emotion';
|
|
2
|
+
import { NotificationProps as NotificationPropsNewHope, NotificationDefaultArgs, NotificationPlacement } from '@salutejs/plasma-new-hope/emotion';
|
|
3
3
|
export type { NotificationPlacement };
|
|
4
4
|
export declare const NotificationNewHope: React.FunctionComponent<import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
|
|
5
5
|
view: {
|
|
@@ -25,4 +25,5 @@ export declare const NotificationsProvider: React.FC<{
|
|
|
25
25
|
frame?: string;
|
|
26
26
|
placement?: NotificationPlacement;
|
|
27
27
|
UNSAFE_SSR_ENABLED?: boolean;
|
|
28
|
+
defaultNotificationArgs?: NotificationDefaultArgs<NotificationProps>;
|
|
28
29
|
}>;
|
|
@@ -4,15 +4,6 @@ export declare const config: {
|
|
|
4
4
|
size: string;
|
|
5
5
|
};
|
|
6
6
|
variations: {
|
|
7
|
-
size: {
|
|
8
|
-
xxs: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
9
|
-
xs: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
10
|
-
s: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
11
|
-
m: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
12
|
-
l: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
13
|
-
xl: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
14
|
-
xxl: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
15
|
-
};
|
|
16
7
|
view: {
|
|
17
8
|
default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
18
9
|
secondary: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
@@ -1,14 +1,27 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
export type SpinnerProps = HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
/**
|
|
4
|
+
* Размер спиннера
|
|
5
|
+
*/
|
|
6
|
+
size?: string | number;
|
|
7
|
+
/**
|
|
8
|
+
* Цвет спиннера
|
|
9
|
+
*/
|
|
10
|
+
view?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Цвет спиннера
|
|
13
|
+
* @deprecated
|
|
14
|
+
*/
|
|
15
|
+
color?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
*/
|
|
19
|
+
deviceScale?: number;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Компонент для отображения индикатора загрузки.
|
|
23
|
+
*/
|
|
24
|
+
export declare const Spinner: import("@emotion/styled").StyledComponent<(import("@salutejs/plasma-new-hope/types/engines/types.js").PropsType<{
|
|
12
25
|
view: {
|
|
13
26
|
default: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
14
27
|
secondary: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
@@ -19,20 +32,21 @@ declare const SpinnerComponent: FunctionComponent<import("@salutejs/plasma-new-h
|
|
|
19
32
|
warning: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
20
33
|
negative: import("@salutejs/plasma-new-hope/types/engines/types.js").PolymorphicClassName;
|
|
21
34
|
};
|
|
22
|
-
}> &
|
|
35
|
+
}> & ((HTMLAttributes<HTMLDivElement> & {
|
|
36
|
+
width?: never;
|
|
37
|
+
height?: never;
|
|
23
38
|
size?: string | number;
|
|
24
39
|
view?: string;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export {};
|
|
40
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
size?: never;
|
|
44
|
+
view?: string;
|
|
45
|
+
} & import("react").RefAttributes<HTMLDivElement>) | (HTMLAttributes<HTMLDivElement> & {
|
|
46
|
+
width: string;
|
|
47
|
+
height: string;
|
|
48
|
+
size?: never;
|
|
49
|
+
view?: string;
|
|
50
|
+
} & import("react").RefAttributes<HTMLDivElement>))) & {
|
|
51
|
+
theme?: import("@emotion/react").Theme;
|
|
52
|
+
}, {}, {}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { Spinner } from './Spinner';
|
|
2
|
-
export type { SpinnerProps } from '
|
|
2
|
+
export type { SpinnerProps } from './Spinner';
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "config", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return config;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
|
|
12
|
-
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
13
|
-
const config = {
|
|
14
|
-
defaults: {
|
|
15
|
-
view: 'default',
|
|
16
|
-
size: 'm'
|
|
17
|
-
},
|
|
18
|
-
variations: {
|
|
19
|
-
view: {
|
|
20
|
-
default: (0, _emotion.css)`
|
|
21
|
-
${_emotion._beta_popoverTokens.backgroundColor}: ${_sdds_cs.surfaceSolidCard};
|
|
22
|
-
${_emotion._beta_popoverTokens.boxShadow}: ${_sdds_cs.shadowDownHardM};
|
|
23
|
-
${_emotion._beta_popoverTokens.iconColor}: ${_sdds_cs.textSecondary};
|
|
24
|
-
${_emotion._beta_popoverTokens.iconColorHover}: ${_sdds_cs.textSecondaryHover};
|
|
25
|
-
${_emotion._beta_popoverTokens.iconColorActive}: ${_sdds_cs.textSecondaryActive};
|
|
26
|
-
`,
|
|
27
|
-
info: (0, _emotion.css)`
|
|
28
|
-
${_emotion._beta_popoverTokens.backgroundColor}: ${_sdds_cs.surfaceAccent};
|
|
29
|
-
${_emotion._beta_popoverTokens.boxShadow}: ${_sdds_cs.shadowDownHardM};
|
|
30
|
-
${_emotion._beta_popoverTokens.iconColor}: ${_sdds_cs.onDarkTextSecondary};
|
|
31
|
-
${_emotion._beta_popoverTokens.iconColorHover}: ${_sdds_cs.onDarkTextSecondaryHover};
|
|
32
|
-
${_emotion._beta_popoverTokens.iconColorActive}: ${_sdds_cs.onDarkTextSecondaryActive};
|
|
33
|
-
`
|
|
34
|
-
},
|
|
35
|
-
size: {
|
|
36
|
-
m: (0, _emotion.css)`
|
|
37
|
-
${_emotion._beta_popoverTokens.borderRadius}: 1rem;
|
|
38
|
-
${_emotion._beta_popoverTokens.padding}: 0.75rem 0.5rem 0.5rem 0.5rem;
|
|
39
|
-
${_emotion._beta_popoverTokens.iconOffset}: 0.625rem;
|
|
40
|
-
${_emotion._beta_popoverTokens.tailWidth}: 20px;
|
|
41
|
-
${_emotion._beta_popoverTokens.tailHeight}: 8px;
|
|
42
|
-
${_emotion._beta_popoverTokens.tailSideCurvature}: -10%;
|
|
43
|
-
`,
|
|
44
|
-
s: (0, _emotion.css)`
|
|
45
|
-
${_emotion._beta_popoverTokens.borderRadius}: 0.75rem;
|
|
46
|
-
${_emotion._beta_popoverTokens.padding}: 0.5rem 0.375rem 0.375rem 0.375rem;
|
|
47
|
-
${_emotion._beta_popoverTokens.iconOffset}: 0.5rem;
|
|
48
|
-
${_emotion._beta_popoverTokens.tailWidth}: 20px;
|
|
49
|
-
${_emotion._beta_popoverTokens.tailHeight}: 8px;
|
|
50
|
-
${_emotion._beta_popoverTokens.tailSideCurvature}: -10%;
|
|
51
|
-
`
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
};
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "config", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return config;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
|
|
12
|
-
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
13
|
-
const config = {
|
|
14
|
-
defaults: {
|
|
15
|
-
view: 'default',
|
|
16
|
-
size: 'm'
|
|
17
|
-
},
|
|
18
|
-
variations: {
|
|
19
|
-
view: {
|
|
20
|
-
default: (0, _emotion.css)`
|
|
21
|
-
${_emotion._beta_popoverTokens.backgroundColor}: ${_sdds_cs.surfaceSolidCard};
|
|
22
|
-
${_emotion._beta_popoverTokens.boxShadow}: ${_sdds_cs.shadowDownHardM};
|
|
23
|
-
`,
|
|
24
|
-
info: (0, _emotion.css)`
|
|
25
|
-
${_emotion._beta_popoverTokens.backgroundColor}: ${_sdds_cs.surfaceAccent};
|
|
26
|
-
${_emotion._beta_popoverTokens.boxShadow}: ${_sdds_cs.shadowDownHardM};
|
|
27
|
-
`
|
|
28
|
-
},
|
|
29
|
-
size: {
|
|
30
|
-
m: (0, _emotion.css)`
|
|
31
|
-
${_emotion._beta_popoverTokens.borderRadius}: 1rem;
|
|
32
|
-
${_emotion._beta_popoverTokens.padding}: 0.75rem 0.5rem 0.5rem 0.5rem;
|
|
33
|
-
${_emotion._beta_popoverTokens.tailWidth}: 20px;
|
|
34
|
-
${_emotion._beta_popoverTokens.tailHeight}: 8px;
|
|
35
|
-
${_emotion._beta_popoverTokens.tailSideCurvature}: -10%;
|
|
36
|
-
`,
|
|
37
|
-
s: (0, _emotion.css)`
|
|
38
|
-
${_emotion._beta_popoverTokens.borderRadius}: 0.75rem;
|
|
39
|
-
${_emotion._beta_popoverTokens.padding}: 0.5rem 0.375rem 0.375rem 0.375rem;
|
|
40
|
-
${_emotion._beta_popoverTokens.tailWidth}: 20px;
|
|
41
|
-
${_emotion._beta_popoverTokens.tailHeight}: 8px;
|
|
42
|
-
${_emotion._beta_popoverTokens.tailSideCurvature}: -10%;
|
|
43
|
-
`
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
Object.defineProperty(exports, "config", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: function() {
|
|
8
|
-
return config;
|
|
9
|
-
}
|
|
10
|
-
});
|
|
11
|
-
const _sdds_cs = require("@salutejs/sdds-themes/tokens/sdds_cs");
|
|
12
|
-
const _emotion = require("@salutejs/plasma-new-hope/emotion");
|
|
13
|
-
const config = {
|
|
14
|
-
defaults: {
|
|
15
|
-
view: 'default',
|
|
16
|
-
size: 's'
|
|
17
|
-
},
|
|
18
|
-
variations: {
|
|
19
|
-
view: {
|
|
20
|
-
default: (0, _emotion.css)`
|
|
21
|
-
${_emotion._beta_tooltipTokens.backgroundColor}: ${_sdds_cs.inverseSurfaceSolidCard};
|
|
22
|
-
${_emotion._beta_tooltipTokens.boxShadow}: ${_sdds_cs.shadowDownHardS};
|
|
23
|
-
${_emotion._beta_tooltipTokens.color}: ${_sdds_cs.inverseTextPrimary};
|
|
24
|
-
`,
|
|
25
|
-
secondary: (0, _emotion.css)`
|
|
26
|
-
${_emotion._beta_tooltipTokens.backgroundColor}: ${_sdds_cs.onDarkSurfaceSolidSecondary};
|
|
27
|
-
${_emotion._beta_tooltipTokens.boxShadow}: ${_sdds_cs.shadowDownHardS};
|
|
28
|
-
${_emotion._beta_tooltipTokens.color}: ${_sdds_cs.inverseTextPrimary};
|
|
29
|
-
`
|
|
30
|
-
},
|
|
31
|
-
size: {
|
|
32
|
-
m: (0, _emotion.css)`
|
|
33
|
-
${_emotion._beta_tooltipTokens.borderRadius}: 0.5rem;
|
|
34
|
-
${_emotion._beta_tooltipTokens.padding}: 0.5rem 0.75rem;
|
|
35
|
-
${_emotion._beta_tooltipTokens.gap}: 0.25rem;
|
|
36
|
-
${_emotion._beta_tooltipTokens.fontFamily}: ${_sdds_cs.bodyS.fontFamily};
|
|
37
|
-
${_emotion._beta_tooltipTokens.fontSize}: ${_sdds_cs.bodyS.fontSize};
|
|
38
|
-
${_emotion._beta_tooltipTokens.fontStyle}: ${_sdds_cs.bodyS.fontStyle};
|
|
39
|
-
${_emotion._beta_tooltipTokens.fontWeight}: ${_sdds_cs.bodyS.fontWeight};
|
|
40
|
-
${_emotion._beta_tooltipTokens.letterSpacing}: ${_sdds_cs.bodyS.letterSpacing};
|
|
41
|
-
${_emotion._beta_tooltipTokens.lineHeight}: ${_sdds_cs.bodyS.lineHeight};
|
|
42
|
-
${_emotion._beta_tooltipTokens.tailWidth}: 20px;
|
|
43
|
-
${_emotion._beta_tooltipTokens.tailHeight}: 8px;
|
|
44
|
-
${_emotion._beta_tooltipTokens.tailSideCurvature}: -10%;
|
|
45
|
-
`,
|
|
46
|
-
s: (0, _emotion.css)`
|
|
47
|
-
${_emotion._beta_tooltipTokens.borderRadius}: 0.5rem;
|
|
48
|
-
${_emotion._beta_tooltipTokens.padding}: 0.5rem 0.75rem;
|
|
49
|
-
${_emotion._beta_tooltipTokens.gap}: 0.25rem;
|
|
50
|
-
${_emotion._beta_tooltipTokens.fontFamily}: ${_sdds_cs.bodyXS.fontFamily};
|
|
51
|
-
${_emotion._beta_tooltipTokens.fontSize}: ${_sdds_cs.bodyXS.fontSize};
|
|
52
|
-
${_emotion._beta_tooltipTokens.fontStyle}: ${_sdds_cs.bodyXS.fontStyle};
|
|
53
|
-
${_emotion._beta_tooltipTokens.fontWeight}: ${_sdds_cs.bodyXS.fontWeight};
|
|
54
|
-
${_emotion._beta_tooltipTokens.letterSpacing}: ${_sdds_cs.bodyXS.letterSpacing};
|
|
55
|
-
${_emotion._beta_tooltipTokens.lineHeight}: ${_sdds_cs.bodyXS.lineHeight};
|
|
56
|
-
${_emotion._beta_tooltipTokens.tailWidth}: 14px;
|
|
57
|
-
${_emotion._beta_tooltipTokens.tailHeight}: 6px;
|
|
58
|
-
${_emotion._beta_tooltipTokens.tailSideCurvature}: -10%;
|
|
59
|
-
`
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { onDarkTextSecondary, onDarkTextSecondaryActive, onDarkTextSecondaryHover, shadowDownHardM, surfaceAccent, surfaceSolidCard, textSecondary, textSecondaryActive, textSecondaryHover } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
2
|
-
import { css, _beta_popoverTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
3
|
-
export const config = {
|
|
4
|
-
defaults: {
|
|
5
|
-
view: 'default',
|
|
6
|
-
size: 'm'
|
|
7
|
-
},
|
|
8
|
-
variations: {
|
|
9
|
-
view: {
|
|
10
|
-
default: css`
|
|
11
|
-
${tokens.backgroundColor}: ${surfaceSolidCard};
|
|
12
|
-
${tokens.boxShadow}: ${shadowDownHardM};
|
|
13
|
-
${tokens.iconColor}: ${textSecondary};
|
|
14
|
-
${tokens.iconColorHover}: ${textSecondaryHover};
|
|
15
|
-
${tokens.iconColorActive}: ${textSecondaryActive};
|
|
16
|
-
`,
|
|
17
|
-
info: css`
|
|
18
|
-
${tokens.backgroundColor}: ${surfaceAccent};
|
|
19
|
-
${tokens.boxShadow}: ${shadowDownHardM};
|
|
20
|
-
${tokens.iconColor}: ${onDarkTextSecondary};
|
|
21
|
-
${tokens.iconColorHover}: ${onDarkTextSecondaryHover};
|
|
22
|
-
${tokens.iconColorActive}: ${onDarkTextSecondaryActive};
|
|
23
|
-
`
|
|
24
|
-
},
|
|
25
|
-
size: {
|
|
26
|
-
m: css`
|
|
27
|
-
${tokens.borderRadius}: 1rem;
|
|
28
|
-
${tokens.padding}: 0.75rem 0.5rem 0.5rem 0.5rem;
|
|
29
|
-
${tokens.iconOffset}: 0.625rem;
|
|
30
|
-
${tokens.tailWidth}: 20px;
|
|
31
|
-
${tokens.tailHeight}: 8px;
|
|
32
|
-
${tokens.tailSideCurvature}: -10%;
|
|
33
|
-
`,
|
|
34
|
-
s: css`
|
|
35
|
-
${tokens.borderRadius}: 0.75rem;
|
|
36
|
-
${tokens.padding}: 0.5rem 0.375rem 0.375rem 0.375rem;
|
|
37
|
-
${tokens.iconOffset}: 0.5rem;
|
|
38
|
-
${tokens.tailWidth}: 20px;
|
|
39
|
-
${tokens.tailHeight}: 8px;
|
|
40
|
-
${tokens.tailSideCurvature}: -10%;
|
|
41
|
-
`
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { shadowDownHardM, surfaceAccent, surfaceSolidCard } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
2
|
-
import { css, _beta_popoverTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
3
|
-
export const config = {
|
|
4
|
-
defaults: {
|
|
5
|
-
view: 'default',
|
|
6
|
-
size: 'm'
|
|
7
|
-
},
|
|
8
|
-
variations: {
|
|
9
|
-
view: {
|
|
10
|
-
default: css`
|
|
11
|
-
${tokens.backgroundColor}: ${surfaceSolidCard};
|
|
12
|
-
${tokens.boxShadow}: ${shadowDownHardM};
|
|
13
|
-
`,
|
|
14
|
-
info: css`
|
|
15
|
-
${tokens.backgroundColor}: ${surfaceAccent};
|
|
16
|
-
${tokens.boxShadow}: ${shadowDownHardM};
|
|
17
|
-
`
|
|
18
|
-
},
|
|
19
|
-
size: {
|
|
20
|
-
m: css`
|
|
21
|
-
${tokens.borderRadius}: 1rem;
|
|
22
|
-
${tokens.padding}: 0.75rem 0.5rem 0.5rem 0.5rem;
|
|
23
|
-
${tokens.tailWidth}: 20px;
|
|
24
|
-
${tokens.tailHeight}: 8px;
|
|
25
|
-
${tokens.tailSideCurvature}: -10%;
|
|
26
|
-
`,
|
|
27
|
-
s: css`
|
|
28
|
-
${tokens.borderRadius}: 0.75rem;
|
|
29
|
-
${tokens.padding}: 0.5rem 0.375rem 0.375rem 0.375rem;
|
|
30
|
-
${tokens.tailWidth}: 20px;
|
|
31
|
-
${tokens.tailHeight}: 8px;
|
|
32
|
-
${tokens.tailSideCurvature}: -10%;
|
|
33
|
-
`
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Popover } from './Popover';
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { bodyS, bodyXS, inverseSurfaceSolidCard, inverseTextPrimary, onDarkSurfaceSolidSecondary, shadowDownHardS } from '@salutejs/sdds-themes/tokens/sdds_cs';
|
|
2
|
-
import { css, _beta_tooltipTokens as tokens } from '@salutejs/plasma-new-hope/emotion';
|
|
3
|
-
export const config = {
|
|
4
|
-
defaults: {
|
|
5
|
-
view: 'default',
|
|
6
|
-
size: 's'
|
|
7
|
-
},
|
|
8
|
-
variations: {
|
|
9
|
-
view: {
|
|
10
|
-
default: css`
|
|
11
|
-
${tokens.backgroundColor}: ${inverseSurfaceSolidCard};
|
|
12
|
-
${tokens.boxShadow}: ${shadowDownHardS};
|
|
13
|
-
${tokens.color}: ${inverseTextPrimary};
|
|
14
|
-
`,
|
|
15
|
-
secondary: css`
|
|
16
|
-
${tokens.backgroundColor}: ${onDarkSurfaceSolidSecondary};
|
|
17
|
-
${tokens.boxShadow}: ${shadowDownHardS};
|
|
18
|
-
${tokens.color}: ${inverseTextPrimary};
|
|
19
|
-
`
|
|
20
|
-
},
|
|
21
|
-
size: {
|
|
22
|
-
m: css`
|
|
23
|
-
${tokens.borderRadius}: 0.5rem;
|
|
24
|
-
${tokens.padding}: 0.5rem 0.75rem;
|
|
25
|
-
${tokens.gap}: 0.25rem;
|
|
26
|
-
${tokens.fontFamily}: ${bodyS.fontFamily};
|
|
27
|
-
${tokens.fontSize}: ${bodyS.fontSize};
|
|
28
|
-
${tokens.fontStyle}: ${bodyS.fontStyle};
|
|
29
|
-
${tokens.fontWeight}: ${bodyS.fontWeight};
|
|
30
|
-
${tokens.letterSpacing}: ${bodyS.letterSpacing};
|
|
31
|
-
${tokens.lineHeight}: ${bodyS.lineHeight};
|
|
32
|
-
${tokens.tailWidth}: 20px;
|
|
33
|
-
${tokens.tailHeight}: 8px;
|
|
34
|
-
${tokens.tailSideCurvature}: -10%;
|
|
35
|
-
`,
|
|
36
|
-
s: css`
|
|
37
|
-
${tokens.borderRadius}: 0.5rem;
|
|
38
|
-
${tokens.padding}: 0.5rem 0.75rem;
|
|
39
|
-
${tokens.gap}: 0.25rem;
|
|
40
|
-
${tokens.fontFamily}: ${bodyXS.fontFamily};
|
|
41
|
-
${tokens.fontSize}: ${bodyXS.fontSize};
|
|
42
|
-
${tokens.fontStyle}: ${bodyXS.fontStyle};
|
|
43
|
-
${tokens.fontWeight}: ${bodyXS.fontWeight};
|
|
44
|
-
${tokens.letterSpacing}: ${bodyXS.letterSpacing};
|
|
45
|
-
${tokens.lineHeight}: ${bodyXS.lineHeight};
|
|
46
|
-
${tokens.tailWidth}: 14px;
|
|
47
|
-
${tokens.tailHeight}: 6px;
|
|
48
|
-
${tokens.tailSideCurvature}: -10%;
|
|
49
|
-
`
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Tooltip } from './Tooltip';
|