@cloud-ru/ds-toolbar 1.1.9 → 1.1.10

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,12 @@
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.10 (2026-10-05)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **FF-9172:** gen-props resolves indexed access to the field type ([baf31c4](https://github.com/cloud-ru-tech/snack-v2/commit/baf31c4053e76c81d681c9c19a6622f009f40413))
11
+
6
12
  ## 1.1.9 (2026-10-05)
7
13
 
8
14
  **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` | `BulkActionsProps` | — | Список массовых действий |
200
+ | `bulkActions` | `BulkAction` | — | Список массовых действий |
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` | `MoreActionsProps` | — | Элементы выпадающего списка кнопки с действиями |
207
+ | `moreActions` | `Action` | — | Элементы выпадающего списка кнопки с действиями |
208
208
  | `onCheck` | `(() => void)` | — | Колбек смены значения чекбокса |
209
209
  | `onRefresh` | `(() => void)` | — | Колбек обновления |
210
210
  | `outline` | `boolean` | `true` | Внешний бордер |
@@ -236,27 +236,14 @@ 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` | `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) |
239
+ | `tooltip` | `string \| number \| boolean \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal \| null \| undefined` | — | |
253
240
 
254
241
  **DataViewBaseProps**
255
242
 
256
243
  | Prop | Type | Default | Description |
257
244
  |------|------|---------|-------------|
258
245
  | `defaultValue` | `"compact"` \| `"list"` | — | |
259
- | `items` | `DataViewValue` \| `Segment` \| `SegmentControlProps` | — | |
246
+ | `items` | `Segment` | — | |
260
247
  | `onChange` | `((value: DataViewValue) => void) \| undefined` | — | |
261
248
  | `value` | `"compact"` \| `"list"` | — | |
262
249
 
@@ -279,13 +266,6 @@ export function WithDataView() {
279
266
  | `value` | `TState \| undefined` | — | Состояние фильтров |
280
267
  | `visibleFilters` | `string[] \| undefined` | — | Состояние для видимых фильтров |
281
268
 
282
- **MoreActionsProps**
283
-
284
- | Prop | Type | Default | Description |
285
- |------|------|---------|-------------|
286
- | `data-test-id` | `string \| undefined` | — | |
287
- | `moreActions` | `Action` | — | Элементы выпадающего списка кнопки с действиями |
288
-
289
269
  **SearchProps**
290
270
 
291
271
  | Prop | Type | Default | Description |
@@ -302,7 +282,7 @@ export function WithDataView() {
302
282
  |------|------|---------|-------------|
303
283
  | `data-test-id` | `string \| undefined` | — | |
304
284
  | `defaultValue` | `"compact"` \| `"list"` | — | |
305
- | `items` | `DataViewValue` \| `Segment` \| `SegmentControlProps` | — | |
285
+ | `items` | `Segment` | — | |
306
286
  | `onChange` | `((value: DataViewValue) => void) \| undefined` | — | |
307
287
  | `show` | `boolean \| undefined` | — | Показать переключатель вида. Если `dataView` не передан — равносильно `show: false` |
308
288
  | `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, safeArea: 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, safeAreaTop: false, safeAreaBottom: 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, safeArea: 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, safeAreaTop: false, safeAreaBottom: false, withDividers: false, "data-test-id": TEST_IDS.mobileBulkActionsSheet }, bottomSheetKey));
22
22
  }