@salutejs/sdds-cs 0.237.0-canary.1717.12926923324.0 → 0.237.0-canary.1718.12929142809.0

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,161 @@
1
+ # 0.236.0 (23 января 2025)
2
+
3
+ ## Функциональные изменения в компонентах
4
+
5
+ ### Rating
6
+
7
+ * исправлена логика расчета отображаемого значения
8
+
9
+ **Before**: <img width="521" alt="image" src="https://github.com/user-attachments/assets/187e7764-1a7d-440a-a027-66d9ab131401" />
10
+
11
+ **After**: <img width="517" alt="image" src="https://github.com/user-attachments/assets/23f56b4f-3ead-45fd-9d6b-3a0d3c8cba3f" />
12
+
13
+ [PR](https://github.com/salute-developers/plasma/pull/1685)
14
+
15
+ ### Note
16
+
17
+ * добавлен новый компонент Note
18
+
19
+ <img width="454" alt="image" src="https://github.com/user-attachments/assets/01230e8f-117c-46ec-b50f-8427e648049a" />
20
+
21
+ [PR](https://github.com/salute-developers/plasma/pull/1681)
22
+
23
+ ### Flow
24
+
25
+ Универсальный контейнер для упорядоченного размещения вложенных компонентов (например, медиафайлы, карточки или блоки текста).
26
+
27
+ [PR](https://github.com/salute-developers/plasma/pull/1657)
28
+
29
+ ### NumberInput
30
+
31
+ * исправлен баг, позволявший ввести число с точкой в конце, больше максимального значения или ниже минимального значения
32
+ * добавлено свойство `precision`, определяющее кол-во знаков после запятой
33
+ * добавлены тесты на эти кейсы
34
+
35
+ [PR](https://github.com/salute-developers/plasma/pull/1699)
36
+
37
+ ### DatePicker
38
+
39
+ * добавлена возможность указать место раскрытия календаря
40
+
41
+ **After**: <img width="620" alt="image" src="https://github.com/user-attachments/assets/06764c3a-c58d-46a9-a027-49715ebe91e4" />
42
+
43
+ [PR](https://github.com/salute-developers/plasma/pull/1697)
44
+
45
+ ### Avatar
46
+
47
+ * добавлен блок для отображения дополнительного контента в виде badge или counter
48
+
49
+ **After**: <img width="127" alt="image" src="https://github.com/user-attachments/assets/9e795ffb-4d81-44d5-8959-63234db209b8" /> <img width="116" alt="image" src="https://github.com/user-attachments/assets/452d8c47-44a4-4a75-b3a7-d7a43381469b" />
50
+
51
+ [PR](https://github.com/salute-developers/plasma/pull/1696)
52
+
53
+ * поля ввода даты становятся независимыми после выбора полной даты в DatePickerRange
54
+ * добавлено свойство `closeAfterDateSelect`, позволяющее закрыть календарь после выбора даты
55
+
56
+ [PR](https://github.com/salute-developers/plasma/pull/1702)
57
+
58
+ ### Slider
59
+
60
+ * Изменен отступ между иконкой слева и label при горизонтальном слайдере
61
+
62
+ [PR](https://github.com/salute-developers/plasma/pull/1703)
63
+
64
+ ### ThemeBuilder
65
+
66
+ Добавлена валидация при создании токена / редактировании токена:
67
+
68
+ * Проверка, что токен называется в CamelCase нотации
69
+ * Название токена не должно превышвать 32 символа
70
+ * Название не должно начинаться с название подгруппы, в которой он создаётся
71
+ * В названии не должно быть зарезервированных слов "onDark", "onLight", "inverse"
72
+ * Значение обычного цвета теперь поддерживается только в HEX и HEXA форматах
73
+ * Значение градиента допускается только в полном описании: linear|radial-gradient (<угол / радиус>, <цвет> <позиция>, <цвет> <позиция>)
74
+
75
+ [PR](https://github.com/salute-developers/plasma/pull/1690)
76
+
77
+ ### Cell
78
+
79
+ * добавлена возможность передачи `restProps` в компоненты `CellTextbox`
80
+ * исправлен пример для `CellTextbox`
81
+
82
+ ### Checkbox
83
+
84
+ * исправлена ширина кликабельной области `label` по умолчанию (`singleLine=false`)
85
+ * добавлена `story` для длинного названия + `singleLine`
86
+ * добавлен тест на клик по `label` и тест для свойства `singleLine`
87
+
88
+ ### Radiobox
89
+
90
+ * исправлена ширина кликабельной области `label` по умолчанию (`singleLine=false`)
91
+
92
+ [PR](https://github.com/salute-developers/plasma/pull/1701)
93
+
94
+ ### TextField, Autocomplete, TextArea, Combobox, Select
95
+
96
+ * исправлен размер иконки trigger для hint
97
+ * добавлено отображение Hint внутри TextField-like компонент
98
+
99
+ <img width="1080" alt="image" src="https://github.com/user-attachments/assets/99ab8bf7-b1b0-422b-a9e8-9fec18134833" />
100
+
101
+ [PR](https://github.com/salute-developers/plasma/pull/1706)
102
+
103
+ ### Combobox, Select, Dropdown
104
+
105
+ * добавлена возможность задавать направление раскрытия вложенных дропдаунов
106
+
107
+ <img width="420" alt="image" src="https://github.com/user-attachments/assets/1ada8d53-f6ed-4ea7-a921-d433ddd273a0" />
108
+
109
+ [PR](https://github.com/salute-developers/plasma/pull/1709)
110
+
111
+ ### Button, IconButton
112
+
113
+ * актуализированы примеры документации для свойств: `size`, `view`
114
+
115
+ [PR](https://github.com/salute-developers/plasma/pull/1668)
116
+
117
+ ### Tree
118
+
119
+ * перенесен внешний css из rc-tree в локальную сборку
120
+
121
+ [PR](https://github.com/salute-developers/plasma/pull/1710)
122
+
123
+ ### Tokens
124
+
125
+ * актуализированы токены для конфигураций компонентов
126
+
127
+ [PR](https://github.com/salute-developers/plasma/pull/1646)
128
+
129
+ ### Autocomplete, Select, Combobox
130
+
131
+ * добавлены новые токены для более детальной кастомизации
132
+ * исправлен токен жирности шрифта для `button-like` варианта `Select`;
133
+
134
+ [PR](https://github.com/salute-developers/plasma/pull/1675)
135
+
136
+ ### Dropdown
137
+
138
+ * добавлен токен `itemMargin`
139
+ * добавлен токен `disclosureIconColor`
140
+
141
+ [PR](https://github.com/salute-developers/plasma/pull/1705)
142
+
143
+ ## Изменения в библиотеки
144
+
145
+ ### Chip
146
+
147
+ * добавлен размер `xs`
148
+
149
+ <img width="144" alt="image" src="https://github.com/user-attachments/assets/901f0824-9d8b-49fa-8a15-df05162e8565" />
150
+
151
+ [PR](https://github.com/salute-developers/plasma/pull/1713)
152
+
153
+ * в конфигурационных файлах и `storybook` оставлен только размер `s`
154
+ * значения токенов приведены к макету
155
+
156
+ [PR](https://github.com/salute-developers/plasma/pull/1705)
157
+
158
+
1
159
  # 0.224.0 (26 декабря 2024)
2
160
 
3
161
  ## Функциональные изменения в компонентах
@@ -2413,6 +2413,7 @@ export const NotificationsProvider: React_2.FC<{
2413
2413
  children: ReactNode;
2414
2414
  frame?: string;
2415
2415
  placement?: NotificationPlacement;
2416
+ UNSAFE_SSR_ENABLED?: boolean;
2416
2417
  }>;
2417
2418
 
2418
2419
  // @public (undocumented)
@@ -21,6 +21,7 @@ export declare const NotificationsProvider: React.FC<{
21
21
  children: ReactNode;
22
22
  frame?: string;
23
23
  placement?: NotificationPlacement;
24
+ UNSAFE_SSR_ENABLED?: boolean;
24
25
  }>;
25
26
  export type { NotificationIconPlacement, NotificationPlacement, NotificationLayout, NotificationProps };
26
27
  export { addNotification, closeNotification };
@@ -33,10 +33,12 @@ var NotificationsProvider = exports.NotificationsProvider = function Notificatio
33
33
  var children = _ref.children,
34
34
  _ref$frame = _ref.frame,
35
35
  frame = _ref$frame === void 0 ? 'document' : _ref$frame,
36
- placement = _ref.placement;
36
+ placement = _ref.placement,
37
+ UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED;
37
38
  return /*#__PURE__*/_react["default"].createElement(_styledComponents.NotificationsProvider, {
38
39
  config: mergedConfig,
39
40
  frame: frame,
40
- placement: placement
41
+ placement: placement,
42
+ UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
41
43
  }, children);
42
44
  };
@@ -33,10 +33,12 @@ var NotificationsProvider = exports.NotificationsProvider = function Notificatio
33
33
  var children = _ref.children,
34
34
  _ref$frame = _ref.frame,
35
35
  frame = _ref$frame === void 0 ? 'document' : _ref$frame,
36
- placement = _ref.placement;
36
+ placement = _ref.placement,
37
+ UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED;
37
38
  return /*#__PURE__*/_react["default"].createElement(_emotion.NotificationsProvider, {
38
39
  config: mergedConfig,
39
40
  frame: frame,
40
- placement: placement
41
+ placement: placement,
42
+ UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
41
43
  }, children);
42
44
  };
@@ -8,11 +8,13 @@ export var NotificationsProvider = function NotificationsProvider(_ref) {
8
8
  var children = _ref.children,
9
9
  _ref$frame = _ref.frame,
10
10
  frame = _ref$frame === void 0 ? 'document' : _ref$frame,
11
- placement = _ref.placement;
11
+ placement = _ref.placement,
12
+ UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED;
12
13
  return /*#__PURE__*/React.createElement(Provider, {
13
14
  config: mergedConfig,
14
15
  frame: frame,
15
- placement: placement
16
+ placement: placement,
17
+ UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
16
18
  }, children);
17
19
  };
18
20
  export { addNotification, closeNotification };
@@ -8,11 +8,13 @@ export var NotificationsProvider = function NotificationsProvider(_ref) {
8
8
  var children = _ref.children,
9
9
  _ref$frame = _ref.frame,
10
10
  frame = _ref$frame === void 0 ? 'document' : _ref$frame,
11
- placement = _ref.placement;
11
+ placement = _ref.placement,
12
+ UNSAFE_SSR_ENABLED = _ref.UNSAFE_SSR_ENABLED;
12
13
  return /*#__PURE__*/React.createElement(Provider, {
13
14
  config: mergedConfig,
14
15
  frame: frame,
15
- placement: placement
16
+ placement: placement,
17
+ UNSAFE_SSR_ENABLED: UNSAFE_SSR_ENABLED
16
18
  }, children);
17
19
  };
18
20
  export { addNotification, closeNotification };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salutejs/sdds-cs",
3
- "version": "0.237.0-canary.1717.12926923324.0",
3
+ "version": "0.237.0-canary.1718.12929142809.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.247.0-canary.1717.12926923324.0",
33
+ "@salutejs/plasma-new-hope": "0.248.0-canary.1718.12929142809.0",
34
34
  "@salutejs/sdds-themes": "0.31.0"
35
35
  },
36
36
  "peerDependencies": {
@@ -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.14.0",
57
- "@salutejs/plasma-core": "1.192.0-canary.1717.12926923324.0",
58
- "@salutejs/plasma-cy-utils": "0.123.0-canary.1717.12926923324.0",
57
+ "@salutejs/plasma-core": "1.191.0",
58
+ "@salutejs/plasma-cy-utils": "0.122.0",
59
59
  "@salutejs/plasma-icons": "1.210.0",
60
- "@salutejs/plasma-sb-utils": "0.191.0-canary.1717.12926923324.0",
60
+ "@salutejs/plasma-sb-utils": "0.191.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": "f6f47c5599d2d226e90e795ec8ab2f1f23dac0ea"
126
+ "gitHead": "fa79603f1453bbf1c03a748d2d672d4500bb9490"
127
127
  }
@@ -1,63 +0,0 @@
1
- import React, { ComponentProps } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { InSpacingDecorator } from '@salutejs/plasma-sb-utils';
4
-
5
- import { Button } from '../Button/Button';
6
- import { TextField } from '../TextField/TextField';
7
- import { Checkbox } from '../Checkbox/Checkbox';
8
-
9
- import { ViewContainer } from './ViewContainer';
10
-
11
- type StoryViewProps = ComponentProps<typeof ViewContainer>;
12
-
13
- const meta: Meta<StoryViewProps> = {
14
- title: 'Data Display/ViewContainer',
15
- decorators: [InSpacingDecorator],
16
- };
17
-
18
- export default meta;
19
-
20
- type Story = StoryObj<StoryViewProps>;
21
-
22
- const ViewExample = ({ view }: StoryViewProps) => {
23
- const style = {
24
- background: view === 'onLight' ? '#ededed' : undefined,
25
- color: view === 'onLight' ? 'black' : undefined,
26
- };
27
-
28
- return (
29
- <>
30
- <h4>view: {view ?? 'default'}</h4>
31
- <div>
32
- <ViewContainer
33
- view={view}
34
- style={{
35
- ...style,
36
- padding: '1rem',
37
- borderRadius: '1rem',
38
- display: 'flex',
39
- flexDirection: 'column',
40
- gap: '1rem',
41
- }}
42
- >
43
- <h3 style={{ margin: 0 }}>Inside ViewContainer</h3>
44
- <Button text="default Button" />
45
- <Checkbox checked label="Label" />
46
- <TextField value="Example Value" label="Label" labelPlacement="outer" />
47
- </ViewContainer>
48
- </div>
49
- </>
50
- );
51
- };
52
-
53
- export const Default: Story = {
54
- render: () => {
55
- return (
56
- <>
57
- <ViewExample />
58
- <br />
59
- <ViewExample view="onLight" />
60
- </>
61
- );
62
- },
63
- };
@@ -1,63 +0,0 @@
1
- import React, { ComponentProps } from 'react';
2
- import type { StoryObj, Meta } from '@storybook/react';
3
- import { InSpacingDecorator } from '@salutejs/plasma-sb-utils';
4
-
5
- import { Button } from '../Button/Button';
6
- import { TextField } from '../TextField/TextField';
7
- import { Checkbox } from '../Checkbox/Checkbox';
8
-
9
- import { ViewContainer } from './ViewContainer';
10
-
11
- type StoryViewProps = ComponentProps<typeof ViewContainer>;
12
-
13
- const meta: Meta<StoryViewProps> = {
14
- title: 'Data Display/ViewContainer',
15
- decorators: [InSpacingDecorator],
16
- };
17
-
18
- export default meta;
19
-
20
- type Story = StoryObj<StoryViewProps>;
21
-
22
- const ViewExample = ({ view }: StoryViewProps) => {
23
- const style = {
24
- background: view === 'onLight' ? '#ededed' : undefined,
25
- color: view === 'onLight' ? 'black' : undefined,
26
- };
27
-
28
- return (
29
- <>
30
- <h4>view: {view ?? 'default'}</h4>
31
- <div>
32
- <ViewContainer
33
- view={view}
34
- style={{
35
- ...style,
36
- padding: '1rem',
37
- borderRadius: '1rem',
38
- display: 'flex',
39
- flexDirection: 'column',
40
- gap: '1rem',
41
- }}
42
- >
43
- <h3 style={{ margin: 0 }}>Inside ViewContainer</h3>
44
- <Button text="default Button" />
45
- <Checkbox checked label="Label" />
46
- <TextField value="Example Value" label="Label" labelPlacement="outer" />
47
- </ViewContainer>
48
- </div>
49
- </>
50
- );
51
- };
52
-
53
- export const Default: Story = {
54
- render: () => {
55
- return (
56
- <>
57
- <ViewExample />
58
- <br />
59
- <ViewExample view="onLight" />
60
- </>
61
- );
62
- },
63
- };