@salutejs/sdds-cs 0.321.1-canary.2008.16195181996.0 → 0.321.1-canary.2049.16159375154.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/CHANGELOG.md +0 -96
- package/components/TextArea/TextArea.d.ts +0 -8
- package/components/Tooltip/Tooltip.config.d.ts +0 -1
- package/components/Tooltip/Tooltip.config.js +6 -20
- package/emotion/cjs/components/Tooltip/Tooltip.config.js +6 -20
- package/emotion/es/components/Tooltip/Tooltip.config.js +6 -20
- package/es/components/Tooltip/Tooltip.config.js +6 -20
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
@@ -1,99 +1,3 @@
|
|
1
|
-
## 0.321.0 (10 июля 2025)
|
2
|
-
|
3
|
-
## Функциональные изменения в компонентах
|
4
|
-
|
5
|
-
### Tour
|
6
|
-
|
7
|
-
* Добавлен в поставку новый компонент
|
8
|
-
|
9
|
-

|
10
|
-
|
11
|
-
[PR](https://github.com/salute-developers/plasma/pull/2010)
|
12
|
-
|
13
|
-
### DatePicker
|
14
|
-
|
15
|
-
* Добавлена проверка при обновлении `value/defaultValue`, чтобы избежать коллизии при `mount/unmount`
|
16
|
-
|
17
|
-
**Before**:
|
18
|
-
|
19
|
-

|
20
|
-
|
21
|
-
**After**:
|
22
|
-

|
23
|
-
|
24
|
-
[PR](https://github.com/salute-developers/plasma/pull/2058)
|
25
|
-
|
26
|
-
### useUniqId
|
27
|
-
|
28
|
-
* Помечен как deprecated по причине устаревания и не актуальности. Рекомендуем использовать метод `safeUseId`
|
29
|
-
|
30
|
-
[PR](https://github.com/salute-developers/plasma/pull/2053)
|
31
|
-
|
32
|
-
### NumberFormat
|
33
|
-
|
34
|
-
* Улучшен механизм копирование и вставки числа
|
35
|
-
|
36
|
-

|
37
|
-
|
38
|
-
[PR](https://github.com/salute-developers/plasma/pull/2050)
|
39
|
-
|
40
|
-
### Chip
|
41
|
-
|
42
|
-
* изменен размер иконки `Close` для размера `XS`, стало `12x12`
|
43
|
-
|
44
|
-
[PR](https://github.com/salute-developers/plasma/pull/2070)
|
45
|
-
|
46
|
-
### Icons
|
47
|
-
|
48
|
-
* добавлен `rest props` для IconRoot. Теперь есть возможность прокинуть `data-attrs` и другие атрибуты тега
|
49
|
-
|
50
|
-
<img width="1024" src="https://github.com/user-attachments/assets/ff1831f3-98f9-46df-a874-3c4891ca47b4" />
|
51
|
-
|
52
|
-
[PR](https://github.com/salute-developers/plasma/pull/2066)
|
53
|
-
|
54
|
-
### Combobox
|
55
|
-
|
56
|
-
* Добавлен токен для галочки и иконки в режиме `single`
|
57
|
-
|
58
|
-
[PR](https://github.com/salute-developers/plasma/pull/2049)
|
59
|
-
|
60
|
-
### Select
|
61
|
-
|
62
|
-
* Добавлен токен для галочки и иконки в режиме `single`
|
63
|
-
|
64
|
-
[PR](https://github.com/salute-developers/plasma/pull/2049)
|
65
|
-
|
66
|
-
### TextArea
|
67
|
-
|
68
|
-
* добавлено свойство `headerSlot`
|
69
|
-
|
70
|
-
<img width="685" alt="image" src="https://github.com/user-attachments/assets/e092e789-b5ca-4b8e-a500-9f6594dc59ef" />
|
71
|
-
|
72
|
-
[PR](https://github.com/salute-developers/plasma/pull/2075)
|
73
|
-
|
74
|
-
## Изменения в библиотеки
|
75
|
-
|
76
|
-
### Docs
|
77
|
-
|
78
|
-
* Исправлен UI документации, добавлено условие для переопределения token фона
|
79
|
-
|
80
|
-
[PR](https://github.com/salute-developers/plasma/pull/2064)
|
81
|
-
|
82
|
-
### Divider
|
83
|
-
|
84
|
-
* Изменен токен цвета заливки состояния `Default` с `SurfaceSolidPrimary` на `SurfaceSolidTertiary`
|
85
|
-
|
86
|
-
[PR](https://github.com/salute-developers/plasma/pull/2062)
|
87
|
-
|
88
|
-
### Tooltip
|
89
|
-
|
90
|
-
* изменены токены на `inverse` в состоянии `default`
|
91
|
-
|
92
|
-
* добавлено новое состояние `secondary`
|
93
|
-
|
94
|
-
[PR](https://github.com/salute-developers/plasma/pull/2071)
|
95
|
-
|
96
|
-
|
97
1
|
## 0.319.0 (26 июня 2025)
|
98
2
|
|
99
3
|
## Функциональные изменения в компонентах
|
@@ -31,7 +31,6 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
|
|
31
31
|
label?: string;
|
32
32
|
labelPlacement?: "inner" | "outer";
|
33
33
|
titleCaption?: import("react").ReactNode;
|
34
|
-
headerSlot?: import("react").ReactNode;
|
35
34
|
contentRight?: React.ReactElement;
|
36
35
|
resize?: "none" | "both" | "horizontal" | "vertical";
|
37
36
|
helperText?: string;
|
@@ -76,7 +75,6 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
|
|
76
75
|
label?: string;
|
77
76
|
labelPlacement?: "inner" | "outer";
|
78
77
|
titleCaption?: import("react").ReactNode;
|
79
|
-
headerSlot?: import("react").ReactNode;
|
80
78
|
contentRight?: React.ReactElement;
|
81
79
|
resize?: "none" | "both" | "horizontal" | "vertical";
|
82
80
|
helperText?: string;
|
@@ -121,7 +119,6 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
|
|
121
119
|
label?: string;
|
122
120
|
labelPlacement?: "inner" | "outer";
|
123
121
|
titleCaption?: import("react").ReactNode;
|
124
|
-
headerSlot?: import("react").ReactNode;
|
125
122
|
contentRight?: React.ReactElement;
|
126
123
|
resize?: "none" | "both" | "horizontal" | "vertical";
|
127
124
|
helperText?: string;
|
@@ -166,7 +163,6 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
|
|
166
163
|
label?: string;
|
167
164
|
labelPlacement?: "inner" | "outer";
|
168
165
|
titleCaption?: import("react").ReactNode;
|
169
|
-
headerSlot?: import("react").ReactNode;
|
170
166
|
contentRight?: React.ReactElement;
|
171
167
|
resize?: "none" | "both" | "horizontal" | "vertical";
|
172
168
|
helperText?: string;
|
@@ -211,7 +207,6 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
|
|
211
207
|
label?: string;
|
212
208
|
labelPlacement?: "inner" | "outer";
|
213
209
|
titleCaption?: import("react").ReactNode;
|
214
|
-
headerSlot?: import("react").ReactNode;
|
215
210
|
contentRight?: React.ReactElement;
|
216
211
|
resize?: "none" | "both" | "horizontal" | "vertical";
|
217
212
|
helperText?: string;
|
@@ -256,7 +251,6 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
|
|
256
251
|
label?: string;
|
257
252
|
labelPlacement?: "inner" | "outer";
|
258
253
|
titleCaption?: import("react").ReactNode;
|
259
|
-
headerSlot?: import("react").ReactNode;
|
260
254
|
contentRight?: React.ReactElement;
|
261
255
|
resize?: "none" | "both" | "horizontal" | "vertical";
|
262
256
|
helperText?: string;
|
@@ -301,7 +295,6 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
|
|
301
295
|
label?: string;
|
302
296
|
labelPlacement?: "inner" | "outer";
|
303
297
|
titleCaption?: import("react").ReactNode;
|
304
|
-
headerSlot?: import("react").ReactNode;
|
305
298
|
contentRight?: React.ReactElement;
|
306
299
|
resize?: "none" | "both" | "horizontal" | "vertical";
|
307
300
|
helperText?: string;
|
@@ -346,7 +339,6 @@ export declare const TextArea: import("react").FunctionComponent<import("@salute
|
|
346
339
|
label?: string;
|
347
340
|
labelPlacement?: "inner" | "outer";
|
348
341
|
titleCaption?: import("react").ReactNode;
|
349
|
-
headerSlot?: import("react").ReactNode;
|
350
342
|
contentRight?: React.ReactElement;
|
351
343
|
resize?: "none" | "both" | "horizontal" | "vertical";
|
352
344
|
helperText?: string;
|
@@ -39,7 +39,8 @@ function _templateObject() {
|
|
39
39
|
": 1rem;\n ",
|
40
40
|
': url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+");\n ',
|
41
41
|
": 0.375rem;\n ",
|
42
|
-
": 0.5625rem;\n
|
42
|
+
": 0.5625rem;\n ",
|
43
|
+
": var(--surface-solid-card-brightness);\n "
|
43
44
|
]);
|
44
45
|
_templateObject = function _templateObject() {
|
45
46
|
return data;
|
@@ -49,29 +50,15 @@ function _templateObject() {
|
|
49
50
|
function _templateObject1() {
|
50
51
|
var data = _tagged_template_literal([
|
51
52
|
"\n ",
|
52
|
-
": var(--
|
53
|
-
": var(--inverse-surface-solid-card);\n ",
|
53
|
+
": var(--surface-solid-card-brightness);\n ",
|
54
54
|
": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ",
|
55
|
-
": var(--
|
55
|
+
": var(--text-primary);\n "
|
56
56
|
]);
|
57
57
|
_templateObject1 = function _templateObject() {
|
58
58
|
return data;
|
59
59
|
};
|
60
60
|
return data;
|
61
61
|
}
|
62
|
-
function _templateObject2() {
|
63
|
-
var data = _tagged_template_literal([
|
64
|
-
"\n ",
|
65
|
-
": var(--on-dark-surface-solid-secondary);\n ",
|
66
|
-
": var(--on-dark-surface-solid-secondary);\n ",
|
67
|
-
": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ",
|
68
|
-
": var(--inverse-text-primary);\n "
|
69
|
-
]);
|
70
|
-
_templateObject2 = function _templateObject() {
|
71
|
-
return data;
|
72
|
-
};
|
73
|
-
return data;
|
74
|
-
}
|
75
62
|
var config = {
|
76
63
|
defaults: {
|
77
64
|
view: 'default',
|
@@ -79,12 +66,11 @@ var config = {
|
|
79
66
|
},
|
80
67
|
variations: {
|
81
68
|
size: {
|
82
|
-
s: (0, _styledcomponents.css)(_templateObject(), _styledcomponents.tooltipTokens.paddingTop, _styledcomponents.tooltipTokens.paddingRight, _styledcomponents.tooltipTokens.paddingBottom, _styledcomponents.tooltipTokens.paddingLeft, _styledcomponents.tooltipTokens.minHeight, _styledcomponents.tooltipTokens.borderRadius, _styledcomponents.tooltipTokens.textFontFamily, _styledcomponents.tooltipTokens.textFontSize, _styledcomponents.tooltipTokens.textFontStyle, _styledcomponents.tooltipTokens.textFontWeight, _styledcomponents.tooltipTokens.textFontLetterSpacing, _styledcomponents.tooltipTokens.textFontLineHeight, _styledcomponents.tooltipTokens.contentLeftMargin, _styledcomponents.tooltipTokens.arrowMaskWidth, _styledcomponents.tooltipTokens.arrowMaskHeight, _styledcomponents.tooltipTokens.arrowMaskImage, _styledcomponents.tooltipTokens.arrowHeight, _styledcomponents.tooltipTokens.arrowEdgeMargin)
|
69
|
+
s: (0, _styledcomponents.css)(_templateObject(), _styledcomponents.tooltipTokens.paddingTop, _styledcomponents.tooltipTokens.paddingRight, _styledcomponents.tooltipTokens.paddingBottom, _styledcomponents.tooltipTokens.paddingLeft, _styledcomponents.tooltipTokens.minHeight, _styledcomponents.tooltipTokens.borderRadius, _styledcomponents.tooltipTokens.textFontFamily, _styledcomponents.tooltipTokens.textFontSize, _styledcomponents.tooltipTokens.textFontStyle, _styledcomponents.tooltipTokens.textFontWeight, _styledcomponents.tooltipTokens.textFontLetterSpacing, _styledcomponents.tooltipTokens.textFontLineHeight, _styledcomponents.tooltipTokens.contentLeftMargin, _styledcomponents.tooltipTokens.arrowMaskWidth, _styledcomponents.tooltipTokens.arrowMaskHeight, _styledcomponents.tooltipTokens.arrowMaskImage, _styledcomponents.tooltipTokens.arrowHeight, _styledcomponents.tooltipTokens.arrowEdgeMargin, _styledcomponents.tooltipTokens.arrowBackground)
|
83
70
|
},
|
84
71
|
view: {
|
85
72
|
// TODO заменить тень на токен https://github.com/salute-developers/plasma/issues/1131
|
86
|
-
default: (0, _styledcomponents.css)(_templateObject1(), _styledcomponents.tooltipTokens.backgroundColor, _styledcomponents.tooltipTokens.
|
87
|
-
secondary: (0, _styledcomponents.css)(_templateObject2(), _styledcomponents.tooltipTokens.backgroundColor, _styledcomponents.tooltipTokens.arrowBackground, _styledcomponents.tooltipTokens.boxShadow, _styledcomponents.tooltipTokens.color)
|
73
|
+
default: (0, _styledcomponents.css)(_templateObject1(), _styledcomponents.tooltipTokens.backgroundColor, _styledcomponents.tooltipTokens.boxShadow, _styledcomponents.tooltipTokens.color)
|
88
74
|
}
|
89
75
|
}
|
90
76
|
};
|
@@ -39,7 +39,8 @@ function _templateObject() {
|
|
39
39
|
": 1rem;\n ",
|
40
40
|
': url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+");\n ',
|
41
41
|
": 0.375rem;\n ",
|
42
|
-
": 0.5625rem;\n
|
42
|
+
": 0.5625rem;\n ",
|
43
|
+
": var(--surface-solid-card-brightness);\n "
|
43
44
|
]);
|
44
45
|
_templateObject = function _templateObject() {
|
45
46
|
return data;
|
@@ -49,29 +50,15 @@ function _templateObject() {
|
|
49
50
|
function _templateObject1() {
|
50
51
|
var data = _tagged_template_literal([
|
51
52
|
"\n ",
|
52
|
-
": var(--
|
53
|
-
": var(--inverse-surface-solid-card);\n ",
|
53
|
+
": var(--surface-solid-card-brightness);\n ",
|
54
54
|
": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ",
|
55
|
-
": var(--
|
55
|
+
": var(--text-primary);\n "
|
56
56
|
]);
|
57
57
|
_templateObject1 = function _templateObject() {
|
58
58
|
return data;
|
59
59
|
};
|
60
60
|
return data;
|
61
61
|
}
|
62
|
-
function _templateObject2() {
|
63
|
-
var data = _tagged_template_literal([
|
64
|
-
"\n ",
|
65
|
-
": var(--on-dark-surface-solid-secondary);\n ",
|
66
|
-
": var(--on-dark-surface-solid-secondary);\n ",
|
67
|
-
": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ",
|
68
|
-
": var(--inverse-text-primary);\n "
|
69
|
-
]);
|
70
|
-
_templateObject2 = function _templateObject() {
|
71
|
-
return data;
|
72
|
-
};
|
73
|
-
return data;
|
74
|
-
}
|
75
62
|
var config = {
|
76
63
|
defaults: {
|
77
64
|
view: 'default',
|
@@ -79,12 +66,11 @@ var config = {
|
|
79
66
|
},
|
80
67
|
variations: {
|
81
68
|
size: {
|
82
|
-
s: (0, _emotion.css)(_templateObject(), _emotion.tooltipTokens.paddingTop, _emotion.tooltipTokens.paddingRight, _emotion.tooltipTokens.paddingBottom, _emotion.tooltipTokens.paddingLeft, _emotion.tooltipTokens.minHeight, _emotion.tooltipTokens.borderRadius, _emotion.tooltipTokens.textFontFamily, _emotion.tooltipTokens.textFontSize, _emotion.tooltipTokens.textFontStyle, _emotion.tooltipTokens.textFontWeight, _emotion.tooltipTokens.textFontLetterSpacing, _emotion.tooltipTokens.textFontLineHeight, _emotion.tooltipTokens.contentLeftMargin, _emotion.tooltipTokens.arrowMaskWidth, _emotion.tooltipTokens.arrowMaskHeight, _emotion.tooltipTokens.arrowMaskImage, _emotion.tooltipTokens.arrowHeight, _emotion.tooltipTokens.arrowEdgeMargin)
|
69
|
+
s: (0, _emotion.css)(_templateObject(), _emotion.tooltipTokens.paddingTop, _emotion.tooltipTokens.paddingRight, _emotion.tooltipTokens.paddingBottom, _emotion.tooltipTokens.paddingLeft, _emotion.tooltipTokens.minHeight, _emotion.tooltipTokens.borderRadius, _emotion.tooltipTokens.textFontFamily, _emotion.tooltipTokens.textFontSize, _emotion.tooltipTokens.textFontStyle, _emotion.tooltipTokens.textFontWeight, _emotion.tooltipTokens.textFontLetterSpacing, _emotion.tooltipTokens.textFontLineHeight, _emotion.tooltipTokens.contentLeftMargin, _emotion.tooltipTokens.arrowMaskWidth, _emotion.tooltipTokens.arrowMaskHeight, _emotion.tooltipTokens.arrowMaskImage, _emotion.tooltipTokens.arrowHeight, _emotion.tooltipTokens.arrowEdgeMargin, _emotion.tooltipTokens.arrowBackground)
|
83
70
|
},
|
84
71
|
view: {
|
85
72
|
// TODO заменить тень на токен https://github.com/salute-developers/plasma/issues/1131
|
86
|
-
default: (0, _emotion.css)(_templateObject1(), _emotion.tooltipTokens.backgroundColor, _emotion.tooltipTokens.
|
87
|
-
secondary: (0, _emotion.css)(_templateObject2(), _emotion.tooltipTokens.backgroundColor, _emotion.tooltipTokens.arrowBackground, _emotion.tooltipTokens.boxShadow, _emotion.tooltipTokens.color)
|
73
|
+
default: (0, _emotion.css)(_templateObject1(), _emotion.tooltipTokens.backgroundColor, _emotion.tooltipTokens.boxShadow, _emotion.tooltipTokens.color)
|
88
74
|
}
|
89
75
|
}
|
90
76
|
};
|
@@ -28,7 +28,8 @@ function _templateObject() {
|
|
28
28
|
": 1rem;\n ",
|
29
29
|
': url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+");\n ',
|
30
30
|
": 0.375rem;\n ",
|
31
|
-
": 0.5625rem;\n
|
31
|
+
": 0.5625rem;\n ",
|
32
|
+
": var(--surface-solid-card-brightness);\n "
|
32
33
|
]);
|
33
34
|
_templateObject = function _templateObject() {
|
34
35
|
return data;
|
@@ -38,29 +39,15 @@ function _templateObject() {
|
|
38
39
|
function _templateObject1() {
|
39
40
|
var data = _tagged_template_literal([
|
40
41
|
"\n ",
|
41
|
-
": var(--
|
42
|
-
": var(--inverse-surface-solid-card);\n ",
|
42
|
+
": var(--surface-solid-card-brightness);\n ",
|
43
43
|
": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ",
|
44
|
-
": var(--
|
44
|
+
": var(--text-primary);\n "
|
45
45
|
]);
|
46
46
|
_templateObject1 = function _templateObject() {
|
47
47
|
return data;
|
48
48
|
};
|
49
49
|
return data;
|
50
50
|
}
|
51
|
-
function _templateObject2() {
|
52
|
-
var data = _tagged_template_literal([
|
53
|
-
"\n ",
|
54
|
-
": var(--on-dark-surface-solid-secondary);\n ",
|
55
|
-
": var(--on-dark-surface-solid-secondary);\n ",
|
56
|
-
": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ",
|
57
|
-
": var(--inverse-text-primary);\n "
|
58
|
-
]);
|
59
|
-
_templateObject2 = function _templateObject() {
|
60
|
-
return data;
|
61
|
-
};
|
62
|
-
return data;
|
63
|
-
}
|
64
51
|
import { css, tooltipTokens } from '@salutejs/plasma-new-hope/emotion';
|
65
52
|
export var config = {
|
66
53
|
defaults: {
|
@@ -69,12 +56,11 @@ export var config = {
|
|
69
56
|
},
|
70
57
|
variations: {
|
71
58
|
size: {
|
72
|
-
s: css(_templateObject(), tooltipTokens.paddingTop, tooltipTokens.paddingRight, tooltipTokens.paddingBottom, tooltipTokens.paddingLeft, tooltipTokens.minHeight, tooltipTokens.borderRadius, tooltipTokens.textFontFamily, tooltipTokens.textFontSize, tooltipTokens.textFontStyle, tooltipTokens.textFontWeight, tooltipTokens.textFontLetterSpacing, tooltipTokens.textFontLineHeight, tooltipTokens.contentLeftMargin, tooltipTokens.arrowMaskWidth, tooltipTokens.arrowMaskHeight, tooltipTokens.arrowMaskImage, tooltipTokens.arrowHeight, tooltipTokens.arrowEdgeMargin)
|
59
|
+
s: css(_templateObject(), tooltipTokens.paddingTop, tooltipTokens.paddingRight, tooltipTokens.paddingBottom, tooltipTokens.paddingLeft, tooltipTokens.minHeight, tooltipTokens.borderRadius, tooltipTokens.textFontFamily, tooltipTokens.textFontSize, tooltipTokens.textFontStyle, tooltipTokens.textFontWeight, tooltipTokens.textFontLetterSpacing, tooltipTokens.textFontLineHeight, tooltipTokens.contentLeftMargin, tooltipTokens.arrowMaskWidth, tooltipTokens.arrowMaskHeight, tooltipTokens.arrowMaskImage, tooltipTokens.arrowHeight, tooltipTokens.arrowEdgeMargin, tooltipTokens.arrowBackground)
|
73
60
|
},
|
74
61
|
view: {
|
75
62
|
// TODO заменить тень на токен https://github.com/salute-developers/plasma/issues/1131
|
76
|
-
default: css(_templateObject1(), tooltipTokens.backgroundColor, tooltipTokens.
|
77
|
-
secondary: css(_templateObject2(), tooltipTokens.backgroundColor, tooltipTokens.arrowBackground, tooltipTokens.boxShadow, tooltipTokens.color)
|
63
|
+
default: css(_templateObject1(), tooltipTokens.backgroundColor, tooltipTokens.boxShadow, tooltipTokens.color)
|
78
64
|
}
|
79
65
|
}
|
80
66
|
};
|
@@ -28,7 +28,8 @@ function _templateObject() {
|
|
28
28
|
": 1rem;\n ",
|
29
29
|
': url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTYiIGhlaWdodD0iMTYiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6c3ZnPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CiAgPHBhdGggY2xpcC1ydWxlPSJldmVub2RkIiBkPSJtMCw5Ljg1bDE2LDBjLTQuNDEsMCAtOCwyLjY5IC04LDZjMCwtMy4zMSAtMy41OSwtNiAtOCwtNnoiIGZpbGw9IiMxNzE3MTciIGZpbGwtcnVsZT0iZXZlbm9kZCIgaWQ9IlRhaWwiLz4KPC9zdmc+");\n ',
|
30
30
|
": 0.375rem;\n ",
|
31
|
-
": 0.5625rem;\n
|
31
|
+
": 0.5625rem;\n ",
|
32
|
+
": var(--surface-solid-card-brightness);\n "
|
32
33
|
]);
|
33
34
|
_templateObject = function _templateObject() {
|
34
35
|
return data;
|
@@ -38,29 +39,15 @@ function _templateObject() {
|
|
38
39
|
function _templateObject1() {
|
39
40
|
var data = _tagged_template_literal([
|
40
41
|
"\n ",
|
41
|
-
": var(--
|
42
|
-
": var(--inverse-surface-solid-card);\n ",
|
42
|
+
": var(--surface-solid-card-brightness);\n ",
|
43
43
|
": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ",
|
44
|
-
": var(--
|
44
|
+
": var(--text-primary);\n "
|
45
45
|
]);
|
46
46
|
_templateObject1 = function _templateObject() {
|
47
47
|
return data;
|
48
48
|
};
|
49
49
|
return data;
|
50
50
|
}
|
51
|
-
function _templateObject2() {
|
52
|
-
var data = _tagged_template_literal([
|
53
|
-
"\n ",
|
54
|
-
": var(--on-dark-surface-solid-secondary);\n ",
|
55
|
-
": var(--on-dark-surface-solid-secondary);\n ",
|
56
|
-
": 0px 4px 12px 0px rgba(0, 0, 0, 0.16),0px 1px 4px 0px rgba(0, 0, 0, 0.08);\n ",
|
57
|
-
": var(--inverse-text-primary);\n "
|
58
|
-
]);
|
59
|
-
_templateObject2 = function _templateObject() {
|
60
|
-
return data;
|
61
|
-
};
|
62
|
-
return data;
|
63
|
-
}
|
64
51
|
import { css, tooltipTokens } from '@salutejs/plasma-new-hope/styled-components';
|
65
52
|
export var config = {
|
66
53
|
defaults: {
|
@@ -69,12 +56,11 @@ export var config = {
|
|
69
56
|
},
|
70
57
|
variations: {
|
71
58
|
size: {
|
72
|
-
s: css(_templateObject(), tooltipTokens.paddingTop, tooltipTokens.paddingRight, tooltipTokens.paddingBottom, tooltipTokens.paddingLeft, tooltipTokens.minHeight, tooltipTokens.borderRadius, tooltipTokens.textFontFamily, tooltipTokens.textFontSize, tooltipTokens.textFontStyle, tooltipTokens.textFontWeight, tooltipTokens.textFontLetterSpacing, tooltipTokens.textFontLineHeight, tooltipTokens.contentLeftMargin, tooltipTokens.arrowMaskWidth, tooltipTokens.arrowMaskHeight, tooltipTokens.arrowMaskImage, tooltipTokens.arrowHeight, tooltipTokens.arrowEdgeMargin)
|
59
|
+
s: css(_templateObject(), tooltipTokens.paddingTop, tooltipTokens.paddingRight, tooltipTokens.paddingBottom, tooltipTokens.paddingLeft, tooltipTokens.minHeight, tooltipTokens.borderRadius, tooltipTokens.textFontFamily, tooltipTokens.textFontSize, tooltipTokens.textFontStyle, tooltipTokens.textFontWeight, tooltipTokens.textFontLetterSpacing, tooltipTokens.textFontLineHeight, tooltipTokens.contentLeftMargin, tooltipTokens.arrowMaskWidth, tooltipTokens.arrowMaskHeight, tooltipTokens.arrowMaskImage, tooltipTokens.arrowHeight, tooltipTokens.arrowEdgeMargin, tooltipTokens.arrowBackground)
|
73
60
|
},
|
74
61
|
view: {
|
75
62
|
// TODO заменить тень на токен https://github.com/salute-developers/plasma/issues/1131
|
76
|
-
default: css(_templateObject1(), tooltipTokens.backgroundColor, tooltipTokens.
|
77
|
-
secondary: css(_templateObject2(), tooltipTokens.backgroundColor, tooltipTokens.arrowBackground, tooltipTokens.boxShadow, tooltipTokens.color)
|
63
|
+
default: css(_templateObject1(), tooltipTokens.backgroundColor, tooltipTokens.boxShadow, tooltipTokens.color)
|
78
64
|
}
|
79
65
|
}
|
80
66
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@salutejs/sdds-cs",
|
3
|
-
"version": "0.321.1-canary.
|
3
|
+
"version": "0.321.1-canary.2049.16159375154.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,8 +30,8 @@
|
|
30
30
|
"directory": "packages/sdds-cs"
|
31
31
|
},
|
32
32
|
"dependencies": {
|
33
|
-
"@salutejs/plasma-new-hope": "0.329.1-canary.
|
34
|
-
"@salutejs/sdds-themes": "0.41.0"
|
33
|
+
"@salutejs/plasma-new-hope": "0.329.1-canary.2049.16159375154.0",
|
34
|
+
"@salutejs/sdds-themes": "0.41.0-dev.0"
|
35
35
|
},
|
36
36
|
"peerDependencies": {
|
37
37
|
"@emotion/react": ">=11",
|
@@ -54,10 +54,10 @@
|
|
54
54
|
"@microsoft/api-extractor": "7.38.3",
|
55
55
|
"@originjs/vite-plugin-commonjs": "1.0.3",
|
56
56
|
"@salutejs/plasma-colors": "0.15.0",
|
57
|
-
"@salutejs/plasma-core": "1.201.0",
|
58
|
-
"@salutejs/plasma-cy-utils": "0.132.0",
|
59
|
-
"@salutejs/plasma-icons": "1.
|
60
|
-
"@salutejs/plasma-sb-utils": "0.202.0",
|
57
|
+
"@salutejs/plasma-core": "1.201.0-dev.0",
|
58
|
+
"@salutejs/plasma-cy-utils": "0.132.0-dev.0",
|
59
|
+
"@salutejs/plasma-icons": "1.219.1-canary.2049.16159375154.0",
|
60
|
+
"@salutejs/plasma-sb-utils": "0.202.0-dev.0",
|
61
61
|
"@storybook/addon-docs": "7.6.17",
|
62
62
|
"@storybook/addon-essentials": "7.6.17",
|
63
63
|
"@storybook/addons": "7.6.17",
|
@@ -123,5 +123,5 @@
|
|
123
123
|
"Anton Vinogradov"
|
124
124
|
],
|
125
125
|
"sideEffects": false,
|
126
|
-
"gitHead": "
|
126
|
+
"gitHead": "9ec11ce3a5cfd88a908df37812a4f72256a17a89"
|
127
127
|
}
|