@salutejs/plasma-core 1.187.0-dev.0 → 1.187.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 +258 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,261 @@
|
|
|
1
|
+
# v1.187.0 (Thu Nov 28 2024)
|
|
2
|
+
|
|
3
|
+
### Release Notes
|
|
4
|
+
|
|
5
|
+
#### Release by 27.11.2024 ([#1597](https://github.com/salute-developers/plasma/pull/1597))
|
|
6
|
+
|
|
7
|
+
## Core
|
|
8
|
+
|
|
9
|
+
### Switch Outline
|
|
10
|
+
|
|
11
|
+
- добавлен отдельный `config` для вариации `outline`
|
|
12
|
+
- добавлена соответствующая поддержка во все библиотеки
|
|
13
|
+
|
|
14
|
+
core: Switch outline design (https://github.com/salute-developers/plasma/pull/1560)
|
|
15
|
+
|
|
16
|
+
### Switch
|
|
17
|
+
|
|
18
|
+
- исправлены токены целью добавления возможности реализации нового дизайна
|
|
19
|
+
|
|
20
|
+
plasma-new-hope: fix Switch design (https://github.com/salute-developers/plasma/pull/1569)
|
|
21
|
+
|
|
22
|
+
### Dropdown
|
|
23
|
+
- добавлено новое свойство `renderItem`;
|
|
24
|
+
|
|
25
|
+
feat(plasma-*, sdds-*): Add renderItem prop in Dropdown. Fix issues with Select and Combobox. (https://github.com/salute-developers/plasma/pull/1562)
|
|
26
|
+
|
|
27
|
+
### Select/Combobox
|
|
28
|
+
- улучшено поведение свойства `renderItem` при работе с вложенными списками;
|
|
29
|
+
- исправлен баг, приводящий к неправильной работе чипов в режиме multiple при renderValue;
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
feat(plasma-*, sdds-*): Add renderItem prop in Dropdown. Fix issues with Select and Combobox. (https://github.com/salute-developers/plasma/pull/1562)
|
|
33
|
+
|
|
34
|
+
### Badge
|
|
35
|
+
|
|
36
|
+
- добавлен surfaceClear токен для варианта clear
|
|
37
|
+
- добавлены padding для варианта clear
|
|
38
|
+
- реализован вариант только с иконкой
|
|
39
|
+
- добавлена возможность передать пользовательский цвет для текста и фона
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
feat(plasma-*,sdds-*): Icon only badge (https://github.com/salute-developers/plasma/pull/1546)
|
|
43
|
+
|
|
44
|
+
### Select
|
|
45
|
+
- добавлены св-ва required, requiredPlacement и optional;
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
feat(plasma-*, sdds-*): Add required functionality in Select (https://github.com/salute-developers/plasma/pull/1561)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### TextField, Select
|
|
52
|
+
|
|
53
|
+
- добавлен новый проп `chipType`, который позволяет менять внешний вид для чипа в режиме multiselect;
|
|
54
|
+

|
|
55
|
+
|
|
56
|
+
feat(plasma-*, sdds-*): Add chipType prop in TextField & Select (https://github.com/salute-developers/plasma/pull/1577)
|
|
57
|
+
|
|
58
|
+
### Calendar
|
|
59
|
+
|
|
60
|
+
- при отсутствии значения календарная сетка отображается с минимальной даты
|
|
61
|
+
|
|
62
|
+
**Before**:
|
|
63
|
+
<img width="484" src="https://github.com/user-attachments/assets/e3ea6e68-f8d4-4c9a-95ca-fba28ca282f5" />
|
|
64
|
+
|
|
65
|
+
**After**:
|
|
66
|
+
<img width="464" src="https://github.com/user-attachments/assets/d7a53b4b-4a28-4eda-9c91-7a82d9f03466" />
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
feat(plasma-new-hope): Add displaying date from min value in Calendar (https://github.com/salute-developers/plasma/pull/1572)
|
|
70
|
+
|
|
71
|
+
### Notification
|
|
72
|
+
|
|
73
|
+
- добавлена возможность отображать вечные оповещения
|
|
74
|
+
|
|
75
|
+
plasma-*: Add infinite Notification (https://github.com/salute-developers/plasma/pull/1582)
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
### Autocomplete
|
|
79
|
+
|
|
80
|
+
- добавлена поддержка `react-hook-form`
|
|
81
|
+
- добавлена документация по использованию с нативной формой и `react-hook-form`
|
|
82
|
+
|
|
83
|
+
feat(new-hope): add react hook form support in autocomplite (https://github.com/salute-developers/plasma/pull/1574)
|
|
84
|
+
|
|
85
|
+
### Dropzone
|
|
86
|
+
|
|
87
|
+
- добавлен новый компонент
|
|
88
|
+
|
|
89
|
+
<img width="515" src="https://github.com/user-attachments/assets/30f2131c-f1d1-48ba-b8e5-57f56c65b97d" />
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
feat(plasma-new-hope): Dropzone (https://github.com/salute-developers/plasma/pull/1534)
|
|
93
|
+
|
|
94
|
+
### Button, IconButton
|
|
95
|
+
|
|
96
|
+
- добавлены размеры `XL`
|
|
97
|
+
- добавлен размер `XXS` для компонента `IconButton`
|
|
98
|
+
|
|
99
|
+
feat(sdds-insol): Update `Button` and `IconButton` design (https://github.com/salute-developers/plasma/pull/1576)
|
|
100
|
+
|
|
101
|
+
### TextField
|
|
102
|
+
|
|
103
|
+
- добавлено свойство keepPlaceholder для одновременного отображения label и placeholder
|
|
104
|
+
|
|
105
|
+

|
|
106
|
+
|
|
107
|
+
feat: add keepPlaceholder prop to TextField (https://github.com/salute-developers/plasma/pull/1556)
|
|
108
|
+
|
|
109
|
+
### TextField
|
|
110
|
+
|
|
111
|
+
- добавлено свойство `chipView`
|
|
112
|
+
- добавлен callback `chipValidator`
|
|
113
|
+
|
|
114
|
+
### Chip
|
|
115
|
+
|
|
116
|
+
- добавлены статусные `view`: `positive`, `negative`, `warning`
|
|
117
|
+
|
|
118
|
+
feat(plasma-new-hope): Add chip views and chip validator for TextField (https://github.com/salute-developers/plasma/pull/1589)
|
|
119
|
+
|
|
120
|
+
### Modal
|
|
121
|
+
|
|
122
|
+
- добавлен базовый дизайн с пропсами `hasBody` и `hasClose`
|
|
123
|
+
- старые примеры в сторибуках перенесены в `Custom Modal Demo`
|
|
124
|
+
|
|
125
|
+
<img width="247" src="https://github.com/user-attachments/assets/23d2f8dc-739f-4ef9-8820-93ac3caeffa2" />
|
|
126
|
+
|
|
127
|
+
feat: add Modal designed body (https://github.com/salute-developers/plasma/pull/1558)
|
|
128
|
+
|
|
129
|
+
### TextArea
|
|
130
|
+
|
|
131
|
+
- добавлено свойство для выноса левого helper за пределы TextArea
|
|
132
|
+
|
|
133
|
+
feat: add leftHelperPlacement prop to TextArea (https://github.com/salute-developers/plasma/pull/1579)
|
|
134
|
+
|
|
135
|
+
### TextField, TextArea
|
|
136
|
+
|
|
137
|
+
- упростили типы связанный со свойством `required`
|
|
138
|
+
|
|
139
|
+
fix: "RequiredProps" unions in TextField & TextArea (https://github.com/salute-developers/plasma/pull/1593)
|
|
140
|
+
|
|
141
|
+
## PLASMA-ASDK
|
|
142
|
+
|
|
143
|
+
### Switch
|
|
144
|
+
- обновлена конфигурация компонента
|
|
145
|
+
- обновлены примеры в `storybook`
|
|
146
|
+
|
|
147
|
+
## SDDS-CS
|
|
148
|
+
|
|
149
|
+
### Textarea
|
|
150
|
+
|
|
151
|
+
- изменен `view negative` в соответствии с макетом
|
|
152
|
+
|
|
153
|
+
fix(sdds-cs): edit view negative in textarea sdds-cs (https://github.com/salute-developers/plasma/pull/1567)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### Segment
|
|
157
|
+
|
|
158
|
+
- изменен конфиг компонента в соответсвии с макетам
|
|
159
|
+
|
|
160
|
+
fix(sdds-cs): Segment config edit (https://github.com/salute-developers/plasma/pull/1573)
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
### Сalendar
|
|
164
|
+
|
|
165
|
+
- изменен конфиг компонента в соответсвии с макетам
|
|
166
|
+
|
|
167
|
+
fix(sdds-cs): edit tokens calendar for sdds cs (https://github.com/salute-developers/plasma/pull/1566)
|
|
168
|
+
|
|
169
|
+
### Switch
|
|
170
|
+
- исправлены токены в соответствие с макетом
|
|
171
|
+
- убран `control` для свойства `size` в `storybook`
|
|
172
|
+
|
|
173
|
+
sdds-cs: fix Switch design (https://github.com/salute-developers/plasma/pull/1569)
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
## SDDS-SERV
|
|
177
|
+
|
|
178
|
+
### Switch
|
|
179
|
+
|
|
180
|
+
- добавлен в сборку для `linaria`
|
|
181
|
+
|
|
182
|
+
feat(sdds-serv): Add switch to linaria build (https://github.com/salute-developers/plasma/pull/1583)
|
|
183
|
+
|
|
184
|
+
## Bugs
|
|
185
|
+
|
|
186
|
+
### Select, Combobox, Dropdown
|
|
187
|
+
|
|
188
|
+
- исправлен баг, возникающий когда проп `listHeight` был больше, чем актуальная высота списка, что приводило к пустым пробелам в этом же выпадающем списке.
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
feat(plasma-new-hope): listHeight prop stands for a css maxHeight now (https://github.com/salute-developers/plasma/pull/1585)
|
|
192
|
+
|
|
193
|
+
### Select, Combobox, Dropdown
|
|
194
|
+
|
|
195
|
+
- исправлено некорректное поведение выпадающего списка при использовании его внутри скролла, не являющегося скроллом вьюпорта;
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
feat(plasma-*, sdds-*): Position relative is set by default for target in Select, Combobox, Dropdown (https://github.com/salute-developers/plasma/pull/1586)
|
|
199
|
+
|
|
200
|
+
### TextArea
|
|
201
|
+
|
|
202
|
+
- убран автоподскролл по фокусу
|
|
203
|
+
|
|
204
|
+
fix: TextArea auto scroll on focus (https://github.com/salute-developers/plasma/pull/1590)
|
|
205
|
+
|
|
206
|
+
## Icons
|
|
207
|
+
|
|
208
|
+
### React-native
|
|
209
|
+
|
|
210
|
+
- добавлена генерация иконок для платформы `react-native`
|
|
211
|
+
|
|
212
|
+
feat(plasma-icons): Add react-native icons generator (https://github.com/salute-developers/plasma/pull/1563)
|
|
213
|
+
|
|
214
|
+
## Docs
|
|
215
|
+
|
|
216
|
+
- добавлены примеры с валидацией формы в раздел "Формы"
|
|
217
|
+
|
|
218
|
+
docs: Add validation examples docs (https://github.com/salute-developers/plasma/pull/1587)
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
## Misc
|
|
222
|
+
|
|
223
|
+
### Typography
|
|
224
|
+
- добавлено свойство `noWrap`, запрещающее перенос текста по пробелам
|
|
225
|
+
- обновлены `storybooks`, тесты и документация
|
|
226
|
+
- исправлена опечатка в названии папки `typograpy` -> `typography`
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
`plasma-*, sdds-*`: Typography noWrap prop (https://github.com/salute-developers/plasma/pull/1588)
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
#### 🚀 Enhancement
|
|
234
|
+
|
|
235
|
+
- Release by 27.11.2024 [#1597](https://github.com/salute-developers/plasma/pull/1597) ([@denivladislav](https://github.com/denivladislav) [@Salute-Eva](https://github.com/Salute-Eva) [@shuga2704](https://github.com/shuga2704) [@Yakutoc](https://github.com/Yakutoc) [@TitanKuzmich](https://github.com/TitanKuzmich) [@iljs](https://github.com/iljs) [@neretin-trike](https://github.com/neretin-trike) [@vadim-kudr](https://github.com/vadim-kudr))
|
|
236
|
+
- feat(plasma-*): update tests and configs for Badge ([@TitanKuzmich](https://github.com/TitanKuzmich))
|
|
237
|
+
|
|
238
|
+
#### 🐛 Bug Fix
|
|
239
|
+
|
|
240
|
+
- chore(plasma-b2c, plasma-web): Typography tests and snapshots updated ([@denivladislav](https://github.com/denivladislav))
|
|
241
|
+
- fix: "RequiredProps" unions in TextField & TextArea [#1593](https://github.com/salute-developers/plasma/pull/1593) ([@vadim-kudr](https://github.com/vadim-kudr))
|
|
242
|
+
- Update package-lock.json files ([@Salute-Eva](https://github.com/Salute-Eva))
|
|
243
|
+
- Update versions ([@Salute-Eva](https://github.com/Salute-Eva))
|
|
244
|
+
- chore: Update package-lock.json files \[skip ci\] ([@Salute-Eva](https://github.com/Salute-Eva))
|
|
245
|
+
|
|
246
|
+
#### Authors: 8
|
|
247
|
+
|
|
248
|
+
- [@iljs](https://github.com/iljs)
|
|
249
|
+
- [@Salute-Eva](https://github.com/Salute-Eva)
|
|
250
|
+
- Alexander Lobyntsev ([@Yakutoc](https://github.com/Yakutoc))
|
|
251
|
+
- Dima Shugaev ([@shuga2704](https://github.com/shuga2704))
|
|
252
|
+
- Krivonos Aleksandr ([@TitanKuzmich](https://github.com/TitanKuzmich))
|
|
253
|
+
- neretinaa ([@neretin-trike](https://github.com/neretin-trike))
|
|
254
|
+
- Vadim ([@vadim-kudr](https://github.com/vadim-kudr))
|
|
255
|
+
- Vlad Denisov ([@denivladislav](https://github.com/denivladislav))
|
|
256
|
+
|
|
257
|
+
---
|
|
258
|
+
|
|
1
259
|
# v1.186.0 (Thu Nov 14 2024)
|
|
2
260
|
|
|
3
261
|
### Release Notes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/plasma-core",
|
|
3
|
-
"version": "1.187.0
|
|
3
|
+
"version": "1.187.0",
|
|
4
4
|
"description": "Core library for Plasma: Salute Design System.",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@babel/preset-react": "7.24.1",
|
|
25
25
|
"@babel/preset-typescript": "7.24.1",
|
|
26
26
|
"@microsoft/api-extractor": "7.38.3",
|
|
27
|
-
"@salutejs/plasma-cy-utils": "0.118.0
|
|
27
|
+
"@salutejs/plasma-cy-utils": "0.118.0",
|
|
28
28
|
"@types/jest": "27.0.1",
|
|
29
29
|
"@types/lodash.throttle": "4.1.6",
|
|
30
30
|
"@types/node": "15.14.9",
|
|
@@ -81,5 +81,5 @@
|
|
|
81
81
|
"Зубаиров Фаниль Асхатович"
|
|
82
82
|
],
|
|
83
83
|
"sideEffects": false,
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "81e4a99b282462e1bbc537dae5049bc796c25adb"
|
|
85
85
|
}
|