@cloud-ru/ds-toolbar 1.1.8-preview-3ffb7c01.0 → 1.1.8

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 CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.1.8 (2026-10-02)
7
+
8
+ **Note:** Version bump only for package @ds/toolbar
9
+
6
10
  ## 1.1.7 (2026-10-01)
7
11
 
8
12
  **Note:** Version bump only for package @ds/toolbar
package/README.md CHANGED
@@ -197,14 +197,14 @@ export function WithDataView() {
197
197
  | Prop | Type | Default | Description |
198
198
  |------|------|---------|-------------|
199
199
  | `after` | `ReactNode` | — | Дополнительный слот между поиском и переключателем вида (+ slotExtraButton в Figma). <br> <br/> На mobile-раскладке (из `AdaptiveProvider`) не рендерится в строке — кнопки переносятся в меню «⋯» <br/> (`Button` с `onClick` и `label` / `icon` / `aria-label`, одна обёртка вокруг кнопки <br/> или элемент с `data-toolbar-after-overflow`). Иначе — в `moreActions`. |
200
- | `bulkActions` | `BulkAction` | — | Список массовых действий |
200
+ | `bulkActions` | `BulkActionsProps` | — | Список массовых действий |
201
201
  | `checked` | `boolean` | — | Значение чекбокса |
202
202
  | `className` | `string` | — | Класснейм |
203
203
  | `data-test-id` | `string` | — | |
204
204
  | `dataView` | `DataViewBaseProps` \| `ToolbarDataViewProps` | — | Переключатель вида данных — SegmentControl (showDataView в Figma) |
205
205
  | `filterRow` | `FilterRow` | — | |
206
206
  | `indeterminate` | `boolean` | — | Состояние частичного выбора |
207
- | `moreActions` | `Action` | — | Элементы выпадающего списка кнопки с действиями |
207
+ | `moreActions` | `MoreActionsProps` | — | Элементы выпадающего списка кнопки с действиями |
208
208
  | `onCheck` | `(() => void)` | — | Колбек смены значения чекбокса |
209
209
  | `onRefresh` | `(() => void)` | — | Колбек обновления |
210
210
  | `outline` | `boolean` | `true` | Внешний бордер |
@@ -236,14 +236,27 @@ export function WithDataView() {
236
236
  | `icon` | `((props: { className?: string; }, deprecatedLegacyContext?: any) => ReactNode) \| (new (props: { className?: string; }, deprecatedLegacyContext?: any) => Component<any, any>)` | — | |
237
237
  | `label` | `string` | — | |
238
238
  | `onClick` | `(() => void) \| undefined` | — | |
239
- | `tooltip` | `string \| number \| boolean \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal \| null \| undefined` | — | |
239
+ | `tooltip` | `TooltipProps` | — | |
240
+
241
+ **BulkActionsProps**
242
+
243
+ | Prop | Type | Default | Description |
244
+ |------|------|---------|-------------|
245
+ | `actions` | `BulkAction` | — | Список массовых действий |
246
+ | `checked` | `boolean \| undefined` | — | Значение чекбокса |
247
+ | `data-test-id` | `string \| undefined` | — | |
248
+ | `indeterminate` | `boolean \| undefined` | — | Состояние частичного выбора |
249
+ | `onCheck` | `(() => void) \| undefined` | — | Колбек смены значения чекбокса |
250
+ | `selectedCount` | `number \| undefined` | — | Количество выбранных элементов (для подписи Selected: N) |
251
+ | `showBulkCheckbox` | `boolean \| undefined` | — | Показывать чекбокс слева (Figma: showBulkCheckbox) |
252
+ | `totalCount` | `number \| undefined` | — | Общее количество элементов (для подписи Selected: N of M) |
240
253
 
241
254
  **DataViewBaseProps**
242
255
 
243
256
  | Prop | Type | Default | Description |
244
257
  |------|------|---------|-------------|
245
258
  | `defaultValue` | `"compact"` \| `"list"` | — | |
246
- | `items` | `Segment` | — | |
259
+ | `items` | `DataViewValue` \| `Segment` \| `SegmentControlProps` | — | |
247
260
  | `onChange` | `((value: DataViewValue) => void) \| undefined` | — | |
248
261
  | `value` | `"compact"` \| `"list"` | — | |
249
262
 
@@ -266,6 +279,13 @@ export function WithDataView() {
266
279
  | `value` | `TState \| undefined` | — | Состояние фильтров |
267
280
  | `visibleFilters` | `string[] \| undefined` | — | Состояние для видимых фильтров |
268
281
 
282
+ **MoreActionsProps**
283
+
284
+ | Prop | Type | Default | Description |
285
+ |------|------|---------|-------------|
286
+ | `data-test-id` | `string \| undefined` | — | |
287
+ | `moreActions` | `Action` | — | Элементы выпадающего списка кнопки с действиями |
288
+
269
289
  **SearchProps**
270
290
 
271
291
  | Prop | Type | Default | Description |
@@ -282,7 +302,7 @@ export function WithDataView() {
282
302
  |------|------|---------|-------------|
283
303
  | `data-test-id` | `string \| undefined` | — | |
284
304
  | `defaultValue` | `"compact"` \| `"list"` | — | |
285
- | `items` | `Segment` | — | |
305
+ | `items` | `DataViewValue` \| `Segment` \| `SegmentControlProps` | — | |
286
306
  | `onChange` | `((value: DataViewValue) => void) \| undefined` | — | |
287
307
  | `show` | `boolean \| undefined` | — | Показать переключатель вида. Если `dataView` не передан — равносильно `show: false` |
288
308
  | `value` | `"compact"` \| `"list"` | — | |
@@ -21,5 +21,5 @@ function MobileBulkActionsSheet({ open, actions, selectedCount, totalCount, hasS
21
21
  // Платформу webMobile фиксирует сам BottomSheet: свой набор sn-классов здесь не нужен.
22
22
  return ((0, jsx_runtime_1.jsx)(bottom_sheet_1.BottomSheet, { container: portalContext.current ?? undefined, open: open, onClose: CLOSE_STUB_CALLBACK, title: t('multipleActions'),
23
23
  // TODO: slotAfterTitle должен расширяться на всю ширину, а section-label уходить вправо
24
- slotAfterTitle: (0, jsx_runtime_1.jsx)(SelectionLabel_1.SelectionLabel, { placement: 'headline', selectedCount: selectedCount, totalCount: totalCount, hasSelection: hasSelection }), content: (0, jsx_runtime_1.jsx)(BulkActionsControls_1.BulkActionsControls, { variant: 'sheet', actions: actions, checked: checked, indeterminate: indeterminate, onCheck: onCheck, showCheckbox: showBulkCheckbox, selectedCount: selectedCount, totalCount: totalCount, hasSelection: hasSelection }), showBackdrop: false, swipeEnabled: false, lockScroll: false, closeOnPopstate: false, safeAreaTop: false, safeAreaBottom: false, withDividers: false, "data-test-id": testIds_1.TEST_IDS.mobileBulkActionsSheet }, bottomSheetKey));
24
+ slotAfterTitle: (0, jsx_runtime_1.jsx)(SelectionLabel_1.SelectionLabel, { placement: 'headline', selectedCount: selectedCount, totalCount: totalCount, hasSelection: hasSelection }), content: (0, jsx_runtime_1.jsx)(BulkActionsControls_1.BulkActionsControls, { variant: 'sheet', actions: actions, checked: checked, indeterminate: indeterminate, onCheck: onCheck, showCheckbox: showBulkCheckbox, selectedCount: selectedCount, totalCount: totalCount, hasSelection: hasSelection }), showBackdrop: false, swipeEnabled: false, lockScroll: false, closeOnPopstate: false, safeArea: false, withDividers: false, "data-test-id": testIds_1.TEST_IDS.mobileBulkActionsSheet }, bottomSheetKey));
25
25
  }
@@ -18,5 +18,5 @@ export function MobileBulkActionsSheet({ open, actions, selectedCount, totalCoun
18
18
  // Платформу webMobile фиксирует сам BottomSheet: свой набор sn-классов здесь не нужен.
19
19
  return (_jsx(BottomSheet, { container: portalContext.current ?? undefined, open: open, onClose: CLOSE_STUB_CALLBACK, title: t('multipleActions'),
20
20
  // TODO: slotAfterTitle должен расширяться на всю ширину, а section-label уходить вправо
21
- slotAfterTitle: _jsx(SelectionLabel, { placement: 'headline', selectedCount: selectedCount, totalCount: totalCount, hasSelection: hasSelection }), content: _jsx(BulkActionsControls, { variant: 'sheet', actions: actions, checked: checked, indeterminate: indeterminate, onCheck: onCheck, showCheckbox: showBulkCheckbox, selectedCount: selectedCount, totalCount: totalCount, hasSelection: hasSelection }), showBackdrop: false, swipeEnabled: false, lockScroll: false, closeOnPopstate: false, safeAreaTop: false, safeAreaBottom: false, withDividers: false, "data-test-id": TEST_IDS.mobileBulkActionsSheet }, bottomSheetKey));
21
+ slotAfterTitle: _jsx(SelectionLabel, { placement: 'headline', selectedCount: selectedCount, totalCount: totalCount, hasSelection: hasSelection }), content: _jsx(BulkActionsControls, { variant: 'sheet', actions: actions, checked: checked, indeterminate: indeterminate, onCheck: onCheck, showCheckbox: showBulkCheckbox, selectedCount: selectedCount, totalCount: totalCount, hasSelection: hasSelection }), showBackdrop: false, swipeEnabled: false, lockScroll: false, closeOnPopstate: false, safeArea: false, withDividers: false, "data-test-id": TEST_IDS.mobileBulkActionsSheet }, bottomSheetKey));
22
22
  }