@cloud-ru/ds-uikit-product-page-layout 2.2.1 → 2.3.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.
Files changed (29) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +80 -12
  3. package/dist/cjs/components/Actions/ActionView.d.ts +1 -1
  4. package/dist/cjs/components/Actions/ActionView.js +6 -2
  5. package/dist/cjs/components/Actions/MobileActions.js +18 -1
  6. package/dist/cjs/components/Actions/styles.module.css +5 -0
  7. package/dist/cjs/components/Actions/types.d.ts +16 -7
  8. package/dist/cjs/components/PageForm/styles.module.css +4 -3
  9. package/dist/cjs/components/PageServices/MobilePageServices.d.ts +2 -2
  10. package/dist/cjs/components/PageServices/MobilePageServices.js +2 -2
  11. package/dist/cjs/style.css +9 -3
  12. package/dist/esm/components/Actions/ActionView.d.ts +1 -1
  13. package/dist/esm/components/Actions/ActionView.js +6 -2
  14. package/dist/esm/components/Actions/MobileActions.js +19 -2
  15. package/dist/esm/components/Actions/styles.module.css +5 -0
  16. package/dist/esm/components/Actions/types.d.ts +16 -7
  17. package/dist/esm/components/PageForm/styles.module.css +4 -3
  18. package/dist/esm/components/PageServices/MobilePageServices.d.ts +2 -2
  19. package/dist/esm/components/PageServices/MobilePageServices.js +2 -2
  20. package/dist/esm/style.css +9 -3
  21. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  22. package/dist/tsconfig.esm.tsbuildinfo +1 -1
  23. package/package.json +20 -20
  24. package/src/components/Actions/ActionView.tsx +8 -9
  25. package/src/components/Actions/MobileActions.tsx +18 -2
  26. package/src/components/Actions/styles.module.scss +4 -0
  27. package/src/components/Actions/types.ts +14 -7
  28. package/src/components/PageForm/styles.module.scss +4 -2
  29. package/src/components/PageServices/MobilePageServices.tsx +3 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
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
+ # 2.3.0 (2026-11-12)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **FF-8815:** forward truncateTitle in mobile page services ([3ff433f](https://github.com/cloud-ru-tech/snack-v2/commit/3ff433fe5f442dde340df59ab4fb5a44841dbe8b))
11
+ - **FF-8815:** handle overflowing mobile page actions ([8ad0498](https://github.com/cloud-ru-tech/snack-v2/commit/8ad0498454c846bfe58636b3b154d724b83611cb))
12
+ - **FF-8815:** page form fix on narrow screen ([521ee8d](https://github.com/cloud-ru-tech/snack-v2/commit/521ee8dfe9ccb60a7e126f2d0725cb62d9fdc701))
13
+
14
+ ### Features
15
+
16
+ - **FF-8815:** support custom page actions ([1d68f54](https://github.com/cloud-ru-tech/snack-v2/commit/1d68f54deb37fe81fcfb9bda6286853798ceb75f))
17
+
6
18
  ## 2.2.1 (2026-11-11)
7
19
 
8
20
  **Note:** Version bump only for package @ds/uikit-product-page-layout
package/README.md CHANGED
@@ -104,7 +104,7 @@ import {
104
104
 
105
105
  | Prop | Type | Default | Description |
106
106
  |------|------|---------|-------------|
107
- | `actions` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `QuotaWidgetPropsBase` | — | |
107
+ | `actions` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `CustomAction` \| `QuotaWidgetPropsBase` | — | |
108
108
  | `children` | `string \| number \| boolean \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal \| null \| undefined` | — | |
109
109
  | `className` | `string` | — | CSS-класс |
110
110
  | `data-test-id` | `string` | — | |
@@ -113,7 +113,7 @@ import {
113
113
 
114
114
  ##### Related types
115
115
 
116
- - `Action` = `{ tooltip?: TooltipProps; hidden?: boolean; } & (({ variant?: typeof BUTTON_TYPE.Filled; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Outline; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Tonal; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Function; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Simple; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Dropdown; } & { 'data-test-id'?: string; } & AriaAttributes & Omit<ButtonProps, "view" | "icon" | "size" | "iconPosition"> & { size?: "xs" | NonNullable<Size | undefined>; className?: string; open?: boolean; onOpenChange?: (open: boolean) => void; } & { items: Item[]; closeOnPopstate?: boolean | undefined; triggerClassName?: string | undefined; placement?: Placement | undefined; closeDroplistOnItemClick?: boolean | undefined; }) | ({ variant: typeof BUTTON_TYPE.Kebab; } & ButtonKebabProps) | ({ variant: typeof BUTTON_TYPE.Droplist; } & ButtonDroplistProps) | ({ variant: typeof BUTTON_TYPE.Quota; } & { 'data-test-id'?: string; } & AriaAttributes & QuotaWidgetPropsBase & { quotasUrl: string; onQuotasUrlClick?: () => void; buttonProps?: Pick<ButtonProps, "size" | "className" | "fullWidth" | "label" | "appearance" | "disabled" | "view">; }))`
116
+ - `Action` = `CustomAction | StandardAction`
117
117
 
118
118
  **ButtonDroplistProps**
119
119
 
@@ -129,6 +129,15 @@ import {
129
129
  | `button` | `ButtonProps` | — | |
130
130
  | `list` | `DroplistListProps` \| `DroplistMobileSlots` \| `DroplistProps` \| `EmptyState` \| `PublicListContextType` \| `ScrollProps` \| `SelectionState` | — | |
131
131
 
132
+ **CustomAction**
133
+
134
+ | Prop | Type | Default | Description |
135
+ |------|------|---------|-------------|
136
+ | `hidden` | `boolean \| undefined` | — | |
137
+ | `render` | `() => { default: ReactNode; asListItem: Item; }` | — | Вызывается при рендеринге; React hooks следует использовать внутри компонента default. |
138
+ | `tooltip` | `TooltipProps` | — | |
139
+ | `variant` | `"custom"` | — | |
140
+
132
141
  ## PageServices
133
142
 
134
143
  Детальная страница инстанса — селект раздела, заголовок со статусом, действия и контент. Адаптивная — на mobile селект выносится наверх full-bleed-строкой.
@@ -162,7 +171,7 @@ import {
162
171
 
163
172
  | Prop | Type | Default | Description |
164
173
  |------|------|---------|-------------|
165
- | `actions` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `QuotaWidgetPropsBase` | — | |
174
+ | `actions` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `CustomAction` \| `QuotaWidgetPropsBase` | — | |
166
175
  | `autoHeight` | `boolean` | — | |
167
176
  | `children` | `string \| number \| boolean \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal \| null \| undefined` | — | |
168
177
  | `className` | `string` | — | |
@@ -178,7 +187,7 @@ import {
178
187
 
179
188
  ##### Related types
180
189
 
181
- - `Action` = `{ tooltip?: TooltipProps; hidden?: boolean; } & (({ variant?: typeof BUTTON_TYPE.Filled; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Outline; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Tonal; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Function; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Simple; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Dropdown; } & { 'data-test-id'?: string; } & AriaAttributes & Omit<ButtonProps, "view" | "icon" | "size" | "iconPosition"> & { size?: "xs" | NonNullable<Size | undefined>; className?: string; open?: boolean; onOpenChange?: (open: boolean) => void; } & { items: Item[]; closeOnPopstate?: boolean | undefined; triggerClassName?: string | undefined; placement?: Placement | undefined; closeDroplistOnItemClick?: boolean | undefined; }) | ({ variant: typeof BUTTON_TYPE.Kebab; } & ButtonKebabProps) | ({ variant: typeof BUTTON_TYPE.Droplist; } & ButtonDroplistProps) | ({ variant: typeof BUTTON_TYPE.Quota; } & { 'data-test-id'?: string; } & AriaAttributes & QuotaWidgetPropsBase & { quotasUrl: string; onQuotasUrlClick?: () => void; buttonProps?: Pick<ButtonProps, "size" | "className" | "fullWidth" | "label" | "appearance" | "disabled" | "view">; }))`
190
+ - `Action` = `CustomAction | StandardAction`
182
191
 
183
192
  **ButtonDroplistProps**
184
193
 
@@ -194,6 +203,15 @@ import {
194
203
  | `button` | `ButtonProps` | — | |
195
204
  | `list` | `DroplistListProps` \| `DroplistMobileSlots` \| `DroplistProps` \| `EmptyState` \| `PublicListContextType` \| `ScrollProps` \| `SelectionState` | — | |
196
205
 
206
+ **CustomAction**
207
+
208
+ | Prop | Type | Default | Description |
209
+ |------|------|---------|-------------|
210
+ | `hidden` | `boolean \| undefined` | — | |
211
+ | `render` | `() => { default: ReactNode; asListItem: Item; }` | — | Вызывается при рендеринге; React hooks следует использовать внутри компонента default. |
212
+ | `tooltip` | `TooltipProps` | — | |
213
+ | `variant` | `"custom"` | — | |
214
+
197
215
  **Documentation**
198
216
 
199
217
  | Prop | Type | Default | Description |
@@ -238,6 +256,27 @@ import {
238
256
  | `label` | `string` | — | |
239
257
  | `onClick` | `((e: MouseEvent<HTMLElement>) => void) \| undefined` | — | |
240
258
 
259
+ ### Кастомные действия
260
+
261
+ Элемент `variant: 'custom'` возвращает два представления: `default` для панели действий и `asListItem` (тип `Item` из `@cloud-ru/ds-list`) для меню при нехватке места на мобильном экране. `hidden` скрывает действие. Функция `render` должна быть чистой; React hooks используются внутри компонента, возвращаемого в `default`.
262
+
263
+ ```tsx
264
+ const actions: Action[] = [
265
+ {
266
+ variant: 'custom',
267
+ render: () => ({
268
+ default: <Button label='Создать снимок диска' onClick={createSnapshot} />,
269
+ asListItem: {
270
+ content: { label: 'Создать снимок диска' },
271
+ onClick: createSnapshot,
272
+ },
273
+ }),
274
+ },
275
+ ];
276
+ ```
277
+
278
+ Свойство `hidden` поддерживается и для кастомных действий: скрытое действие не занимает место в панели, не попадает в меню, его `render` не вызывается.
279
+
241
280
  ## PageForm
242
281
 
243
282
  Раскладка формы создания/настройки — степпер, контент, сайд-блок и sticky-футер с оценкой бюджета. Адаптивная.
@@ -544,7 +583,7 @@ import {
544
583
  | `disabled` | `boolean` | — | Отключена |
545
584
  | `error` | `boolean` | — | Флаг ошибки при загрузке квот |
546
585
  | `fullWidth` | `boolean` | — | На всю ширину |
547
- | `hidden` | `boolean` | `false` | |
586
+ | `hidden` | `boolean` | — | |
548
587
  | `href` | `string` | — | |
549
588
  | `icon` | `ReactNode` | — | Иконка |
550
589
  | `iconPosition` | `"after"` \| `"before"` | — | Позиция иконки относительно текста |
@@ -564,12 +603,13 @@ import {
564
603
  | `projectName` | `string` | — | Название проекта, по которому отображаются квоты |
565
604
  | `quotas` | `QuotaItem[]` | — | Список квот для отображения |
566
605
  | `quotasUrl` | `string` | — | Ссылка на страницу квот по проекту |
606
+ | `render` | `() => { default: ReactNode; asListItem: Item; }` | — | Вызывается при рендеринге; React hooks следует использовать внутри компонента default. |
567
607
  | `size` | `"l"` \| `"m"` \| `"s"` \| `"xs"` | — | Размер <br/> Размер триггера; для `xs` применяется кнопка `s`. |
568
608
  | `skeletonRowCount` | `number` | `4` | Количество строк-заглушек, пока идёт загрузка. <br/> Строка — это ряд сетки: в две колонки (desktop-дропдаун) она даёт две карточки, <br/> в одну (mobile, аккордеон `QuotaWidgetMini`) — одну. |
569
609
  | `target` | `HTMLAttributeAnchorTarget` | — | |
570
610
  | `tooltip` | `TooltipProps` | — | |
571
611
  | `triggerClassName` | `string` | — | CSS-класс триггера |
572
- | `variant` | `"dropdown"` \| `"droplist"` \| `"filled"` \| `"function"` \| `"kebab"` \| `"outline"` \| `"quota"` \| `"simple"` \| `"tonal"` | — | |
612
+ | `variant` | `"custom"` \| `"dropdown"` \| `"droplist"` \| `"filled"` \| `"function"` \| `"kebab"` \| `"outline"` \| `"quota"` \| `"simple"` \| `"tonal"` | — | |
573
613
  | `view` | `"elevated"` \| `"filled"` \| `"function"` \| `"outline"` \| `"simple"` \| `"tonal"` | — | Вариант кнопки (Figma: filled, outline, function, simple, elevated) |
574
614
 
575
615
  ## ButtonDroplist
@@ -749,12 +789,12 @@ import {
749
789
 
750
790
  | Prop | Type | Default | Description |
751
791
  |------|------|---------|-------------|
752
- | `items` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `QuotaWidgetPropsBase` | — | |
792
+ | `items` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `CustomAction` \| `QuotaWidgetPropsBase` | — | |
753
793
  | `maxVisibleItems` | `number` | — | |
754
794
 
755
795
  #### Related types
756
796
 
757
- - `Action` = `{ tooltip?: TooltipProps; hidden?: boolean; } & (({ variant?: typeof BUTTON_TYPE.Filled; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Outline; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Tonal; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Function; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Simple; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Dropdown; } & { 'data-test-id'?: string; } & AriaAttributes & Omit<ButtonProps, "view" | "icon" | "size" | "iconPosition"> & { size?: "xs" | NonNullable<Size | undefined>; className?: string; open?: boolean; onOpenChange?: (open: boolean) => void; } & { items: Item[]; closeOnPopstate?: boolean | undefined; triggerClassName?: string | undefined; placement?: Placement | undefined; closeDroplistOnItemClick?: boolean | undefined; }) | ({ variant: typeof BUTTON_TYPE.Kebab; } & ButtonKebabProps) | ({ variant: typeof BUTTON_TYPE.Droplist; } & ButtonDroplistProps) | ({ variant: typeof BUTTON_TYPE.Quota; } & { 'data-test-id'?: string; } & AriaAttributes & QuotaWidgetPropsBase & { quotasUrl: string; onQuotasUrlClick?: () => void; buttonProps?: Pick<ButtonProps, "size" | "className" | "fullWidth" | "label" | "appearance" | "disabled" | "view">; }))`
797
+ - `Action` = `CustomAction | StandardAction`
758
798
 
759
799
  **ButtonDroplistProps**
760
800
 
@@ -770,13 +810,22 @@ import {
770
810
  | `button` | `ButtonProps` | — | |
771
811
  | `list` | `DroplistListProps` \| `DroplistMobileSlots` \| `DroplistProps` \| `EmptyState` \| `PublicListContextType` \| `ScrollProps` \| `SelectionState` | — | |
772
812
 
813
+ **CustomAction**
814
+
815
+ | Prop | Type | Default | Description |
816
+ |------|------|---------|-------------|
817
+ | `hidden` | `boolean \| undefined` | — | |
818
+ | `render` | `() => { default: ReactNode; asListItem: Item; }` | — | Вызывается при рендеринге; React hooks следует использовать внутри компонента default. |
819
+ | `tooltip` | `TooltipProps` | — | |
820
+ | `variant` | `"custom"` | — | |
821
+
773
822
  ## MobilePageCatalog
774
823
 
775
824
  ### Props `MobilePageCatalogProps`
776
825
 
777
826
  | Prop | Type | Default | Description |
778
827
  |------|------|---------|-------------|
779
- | `actions` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `QuotaWidgetPropsBase` | `[]` | |
828
+ | `actions` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `CustomAction` \| `QuotaWidgetPropsBase` | `[]` | |
780
829
  | `children` | `string \| number \| boolean \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal \| null \| undefined` | — | |
781
830
  | `className` | `string` | — | |
782
831
  | `data-test-id` | `string` | — | |
@@ -785,7 +834,7 @@ import {
785
834
 
786
835
  #### Related types
787
836
 
788
- - `Action` = `{ tooltip?: TooltipProps; hidden?: boolean; } & (({ variant?: typeof BUTTON_TYPE.Filled; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Outline; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Tonal; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Function; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Simple; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Dropdown; } & { 'data-test-id'?: string; } & AriaAttributes & Omit<ButtonProps, "view" | "icon" | "size" | "iconPosition"> & { size?: "xs" | NonNullable<Size | undefined>; className?: string; open?: boolean; onOpenChange?: (open: boolean) => void; } & { items: Item[]; closeOnPopstate?: boolean | undefined; triggerClassName?: string | undefined; placement?: Placement | undefined; closeDroplistOnItemClick?: boolean | undefined; }) | ({ variant: typeof BUTTON_TYPE.Kebab; } & ButtonKebabProps) | ({ variant: typeof BUTTON_TYPE.Droplist; } & ButtonDroplistProps) | ({ variant: typeof BUTTON_TYPE.Quota; } & { 'data-test-id'?: string; } & AriaAttributes & QuotaWidgetPropsBase & { quotasUrl: string; onQuotasUrlClick?: () => void; buttonProps?: Pick<ButtonProps, "size" | "className" | "fullWidth" | "label" | "appearance" | "disabled" | "view">; }))`
837
+ - `Action` = `CustomAction | StandardAction`
789
838
 
790
839
  **ButtonDroplistProps**
791
840
 
@@ -801,6 +850,15 @@ import {
801
850
  | `button` | `ButtonProps` | — | |
802
851
  | `list` | `DroplistListProps` \| `DroplistMobileSlots` \| `DroplistProps` \| `EmptyState` \| `PublicListContextType` \| `ScrollProps` \| `SelectionState` | — | |
803
852
 
853
+ **CustomAction**
854
+
855
+ | Prop | Type | Default | Description |
856
+ |------|------|---------|-------------|
857
+ | `hidden` | `boolean \| undefined` | — | |
858
+ | `render` | `() => { default: ReactNode; asListItem: Item; }` | — | Вызывается при рендеринге; React hooks следует использовать внутри компонента default. |
859
+ | `tooltip` | `TooltipProps` | — | |
860
+ | `variant` | `"custom"` | — | |
861
+
804
862
  ## MobilePageForm
805
863
 
806
864
  ### Props `DesktopPageFormProps`
@@ -830,7 +888,7 @@ import {
830
888
 
831
889
  | Prop | Type | Default | Description |
832
890
  |------|------|---------|-------------|
833
- | `actions` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `QuotaWidgetPropsBase` | `[]` | |
891
+ | `actions` | `Action` \| `ButtonDropdownDroplistConfig` \| `ButtonDroplistProps` \| `ButtonKebabProps` \| `CustomAction` \| `QuotaWidgetPropsBase` | `[]` | |
834
892
  | `children` | `string \| number \| boolean \| ReactElement<any, string \| JSXElementConstructor<any>> \| Iterable<ReactNode> \| ReactPortal \| null \| undefined` | — | |
835
893
  | `className` | `string` | — | |
836
894
  | `data-test-id` | `string` | — | |
@@ -840,10 +898,11 @@ import {
840
898
  | `slotBeforeTitle` | `ReactNode` | — | Слот перед заголовком (например, кнопка «назад») |
841
899
  | `subtitle` | `ReactNode` | — | Подзаголовок под заголовком |
842
900
  | `title` | `string` | — | Заголовок страницы |
901
+ | `truncateTitle` | `boolean` | — | Обрезать заголовок в одну строку с многоточием |
843
902
 
844
903
  #### Related types
845
904
 
846
- - `Action` = `{ tooltip?: TooltipProps; hidden?: boolean; } & (({ variant?: typeof BUTTON_TYPE.Filled; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Outline; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Tonal; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Function; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Simple; } & ActionButtonProps) | ({ variant: typeof BUTTON_TYPE.Dropdown; } & { 'data-test-id'?: string; } & AriaAttributes & Omit<ButtonProps, "view" | "icon" | "size" | "iconPosition"> & { size?: "xs" | NonNullable<Size | undefined>; className?: string; open?: boolean; onOpenChange?: (open: boolean) => void; } & { items: Item[]; closeOnPopstate?: boolean | undefined; triggerClassName?: string | undefined; placement?: Placement | undefined; closeDroplistOnItemClick?: boolean | undefined; }) | ({ variant: typeof BUTTON_TYPE.Kebab; } & ButtonKebabProps) | ({ variant: typeof BUTTON_TYPE.Droplist; } & ButtonDroplistProps) | ({ variant: typeof BUTTON_TYPE.Quota; } & { 'data-test-id'?: string; } & AriaAttributes & QuotaWidgetPropsBase & { quotasUrl: string; onQuotasUrlClick?: () => void; buttonProps?: Pick<ButtonProps, "size" | "className" | "fullWidth" | "label" | "appearance" | "disabled" | "view">; }))`
905
+ - `Action` = `CustomAction | StandardAction`
847
906
 
848
907
  **ButtonDroplistProps**
849
908
 
@@ -859,6 +918,15 @@ import {
859
918
  | `button` | `ButtonProps` | — | |
860
919
  | `list` | `DroplistListProps` \| `DroplistMobileSlots` \| `DroplistProps` \| `EmptyState` \| `PublicListContextType` \| `ScrollProps` \| `SelectionState` | — | |
861
920
 
921
+ **CustomAction**
922
+
923
+ | Prop | Type | Default | Description |
924
+ |------|------|---------|-------------|
925
+ | `hidden` | `boolean \| undefined` | — | |
926
+ | `render` | `() => { default: ReactNode; asListItem: Item; }` | — | Вызывается при рендеринге; React hooks следует использовать внутри компонента default. |
927
+ | `tooltip` | `TooltipProps` | — | |
928
+ | `variant` | `"custom"` | — | |
929
+
862
930
  - `SidebarItem` = `SidebarItemWithHref | SidebarItemWithItems`
863
931
 
864
932
  **SidebarItemBase**
@@ -11,7 +11,7 @@ type CommonProps = {
11
11
  * `@ds`-примитивы, которые берут раскладку из `AdaptiveProvider`. Раскладку фиксируют обёртки
12
12
  * `DesktopActions` / `MobileActions` (`withLayoutType`), поэтому отдельный проп `layoutType` не нужен.
13
13
  */
14
- export declare function ActionView({ variant, tooltip, hidden, commonProps, ...buttonProps }: Action & {
14
+ export declare function ActionView({ hidden, tooltip, commonProps, ...action }: Action & {
15
15
  commonProps: CommonProps;
16
16
  }): string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
17
17
  export {};
@@ -14,10 +14,14 @@ const constants_1 = require("./constants");
14
14
  * `@ds`-примитивы, которые берут раскладку из `AdaptiveProvider`. Раскладку фиксируют обёртки
15
15
  * `DesktopActions` / `MobileActions` (`withLayoutType`), поэтому отдельный проп `layoutType` не нужен.
16
16
  */
17
- function ActionView({ variant, tooltip, hidden = false, commonProps, ...buttonProps }) {
18
- if (hidden) {
17
+ function ActionView({ hidden, tooltip, commonProps, ...action }) {
18
+ if (hidden)
19
19
  return null;
20
+ if (action.variant === 'custom') {
21
+ const content = (0, jsx_runtime_1.jsx)("div", { className: commonProps.className, children: action.render().default });
22
+ return tooltip ? (0, jsx_runtime_1.jsx)(tooltip_1.Tooltip, { ...tooltip, children: content }) : content;
20
23
  }
24
+ const { variant, ...buttonProps } = action;
21
25
  // disableSpanWrapper — кнопка остаётся ПРЯМЫМ flex-потомком контейнера действий: без него Tooltip
22
26
  // добавляет span-обёртку (`flex:0 1 auto`), и `fullWidth`-кнопка (`flex:1 1 0`) не растягивается на
23
27
  // всю ширину (mobile: 2 действия должны делить строку). Как в MobilePageForm ButtonGroup.
@@ -22,7 +22,12 @@ const utils_2 = require("./utils");
22
22
  function MobileActionsBase({ items, maxVisibleItems }) {
23
23
  const containerRef = (0, react_2.useRef)(null);
24
24
  const [isOpen, setIsOpen] = (0, react_2.useState)(false);
25
- const { visibleItems, hiddenItems } = (0, utils_1.useDynamicList)({ parentContainerRef: containerRef, items, maxVisibleItems });
25
+ const availableItems = (0, react_2.useMemo)(() => items.filter(item => !item.hidden), [items]);
26
+ const { visibleItems, hiddenItems } = (0, utils_1.useDynamicList)({
27
+ parentContainerRef: containerRef,
28
+ items: availableItems,
29
+ maxVisibleItems,
30
+ });
26
31
  const { t: tQuota } = uikit_product_quota_1.quotaLocale.useTranslations();
27
32
  if (!(0, utils_2.hasVisibleActions)(items)) {
28
33
  return null;
@@ -30,6 +35,18 @@ function MobileActionsBase({ items, maxVisibleItems }) {
30
35
  const hiddenItemsWithKebab = hiddenItems.concat(visibleItems.filter(item => item.variant === constants_2.BUTTON_TYPE.Kebab));
31
36
  const visibleItemsWithoutKebab = visibleItems.filter(item => item.variant !== constants_2.BUTTON_TYPE.Kebab);
32
37
  const droplistItems = hiddenItemsWithKebab.reduce((acc, action) => {
38
+ if (action.variant === 'custom') {
39
+ const { asListItem } = action.render();
40
+ acc.push({
41
+ ...asListItem,
42
+ onClick: (event) => {
43
+ setIsOpen(false);
44
+ if ('onClick' in asListItem)
45
+ asListItem.onClick?.(event);
46
+ },
47
+ });
48
+ return acc;
49
+ }
33
50
  switch (action.variant) {
34
51
  case constants_2.BUTTON_TYPE.Tonal:
35
52
  case constants_2.BUTTON_TYPE.Simple:
@@ -26,4 +26,9 @@
26
26
  }
27
27
  .button[data-variant=icon-only]{
28
28
  flex:0 0 auto;
29
+ }
30
+
31
+ .mobileActionsWrapper .button[data-full-width]:not([data-variant=icon-only]){
32
+ min-width:-moz-max-content;
33
+ min-width:max-content;
29
34
  }
@@ -1,6 +1,8 @@
1
1
  import { ButtonProps } from '@cloud-ru/ds-button';
2
+ import { Item } from '@cloud-ru/ds-list';
2
3
  import { TooltipProps } from '@cloud-ru/ds-tooltip';
3
4
  import { ButtonDropdownProps } from '@cloud-ru/ds-uikit-product-button-predefined';
5
+ import { ReactNode } from 'react';
4
6
  import { ButtonDroplistProps } from './buttons/ButtonDroplist';
5
7
  import { ButtonKebabProps } from './buttons/ButtonKebab';
6
8
  import { ButtonQuotaProps } from './buttons/ButtonQuota';
@@ -15,13 +17,19 @@ export type ActionButtonProps = (ButtonProps & {
15
17
  }) | (Omit<ButtonProps<'a'>, 'as'> & {
16
18
  as: 'a';
17
19
  });
18
- /**
19
- * Action — один элемент панели действий. Дискриминированный union по `variant` (`BUTTON_TYPE`).
20
- * Простые кнопки (`filled`/`outline`/`tonal`/`function`/`simple`) маппятся на единый `Button` из
21
- * `@cloud-ru/ds-button` с соответствующим `view`; составные (`dropdown`/`kebab`/`droplist`/`quota`) — на
22
- * предопределённые обёртки.
23
- */
24
- export type Action = {
20
+ /** Кастомное действие с представлениями для панели и выпадающего меню. */
21
+ export type CustomAction = {
22
+ variant: 'custom';
23
+ hidden?: boolean;
24
+ tooltip?: TooltipProps;
25
+ /** Вызывается при рендеринге; React hooks следует использовать внутри компонента default. */
26
+ render(): {
27
+ default: ReactNode;
28
+ asListItem: Item;
29
+ };
30
+ };
31
+ export type Action = CustomAction | StandardAction;
32
+ type StandardAction = {
25
33
  tooltip?: TooltipProps;
26
34
  hidden?: boolean;
27
35
  } & (({
@@ -47,3 +55,4 @@ export type ActionsProps = {
47
55
  items: Action[];
48
56
  maxVisibleItems?: number;
49
57
  };
58
+ export {};
@@ -1,10 +1,10 @@
1
1
  .container{
2
2
  display:flex;
3
3
  gap:var(--sn-primitive-dimension-24, 24px);
4
- justify-content:center;
4
+ justify-content:safe center;
5
5
  box-sizing:border-box;
6
- min-width:-moz-fit-content;
7
- min-width:fit-content;
6
+ width:100%;
7
+ min-width:0;
8
8
  min-height:100%;
9
9
  padding:var(--sn-density-spacing-interval-l, var(--sn-platform-comfort-spacing-interval-l, var(--sn-primitive-dimension-32, 32px)));
10
10
  }
@@ -92,6 +92,7 @@
92
92
  top:var(--sn-density-spacing-interval-l, var(--sn-platform-comfort-spacing-interval-l, var(--sn-primitive-dimension-32, 32px)));
93
93
  display:flex;
94
94
  flex-direction:column;
95
+ flex-shrink:0;
95
96
  gap:var(--sn-primitive-dimension-4, 4px);
96
97
  align-self:flex-start;
97
98
  width:304px;
@@ -3,10 +3,10 @@ import { PropsWithChildren } from 'react';
3
3
  import { ActionsProps } from '../Actions';
4
4
  import { HeadlineProps } from '../Headline';
5
5
  import { SidebarSelectProps } from '../PageSidebar';
6
- export type MobilePageServicesProps = WithSupportProps<PropsWithChildren<Pick<HeadlineProps, 'title' | 'slotBeforeTitle' | 'subtitle' | 'slotAfterTitle'> & {
6
+ export type MobilePageServicesProps = WithSupportProps<PropsWithChildren<Pick<HeadlineProps, 'title' | 'slotBeforeTitle' | 'subtitle' | 'slotAfterTitle' | 'truncateTitle'> & {
7
7
  className?: string;
8
8
  sidebar?: SidebarSelectProps;
9
9
  actions?: ActionsProps['items'];
10
10
  maxVisibleActionsItems?: ActionsProps['maxVisibleItems'];
11
11
  }>>;
12
- export declare function MobilePageServices({ children, title, actions, className, sidebar, slotAfterTitle, subtitle, slotBeforeTitle, maxVisibleActionsItems, ...rest }: MobilePageServicesProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function MobilePageServices({ children, title, actions, className, sidebar, slotAfterTitle, subtitle, slotBeforeTitle, maxVisibleActionsItems, truncateTitle, ...rest }: MobilePageServicesProps): import("react/jsx-runtime").JSX.Element;
@@ -11,6 +11,6 @@ const Actions_1 = require("../Actions");
11
11
  const Headline_1 = require("../Headline");
12
12
  const PageSidebar_1 = require("../PageSidebar");
13
13
  const mobileStyles_module_scss_1 = __importDefault(require('./mobileStyles.module.css'));
14
- function MobilePageServices({ children, title, actions = [], className, sidebar, slotAfterTitle, subtitle, slotBeforeTitle, maxVisibleActionsItems, ...rest }) {
15
- return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(mobileStyles_module_scss_1.default.wrapper, className), ...(0, utils_1.extractSupportProps)(rest), children: (0, jsx_runtime_1.jsxs)("div", { className: mobileStyles_module_scss_1.default.body, children: [(0, jsx_runtime_1.jsxs)("div", { className: mobileStyles_module_scss_1.default.headlineWrapper, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, slotBeforeTitle: slotBeforeTitle, slotAfterTitle: slotAfterTitle, subtitle: subtitle }), sidebar && (0, jsx_runtime_1.jsx)(PageSidebar_1.SidebarSelect, { ...sidebar }), actions.length > 0 && (0, jsx_runtime_1.jsx)(Actions_1.MobileActions, { items: actions, maxVisibleItems: maxVisibleActionsItems })] }), (0, jsx_runtime_1.jsx)("div", { className: mobileStyles_module_scss_1.default.childWrapper, children: children })] }) }));
14
+ function MobilePageServices({ children, title, actions = [], className, sidebar, slotAfterTitle, subtitle, slotBeforeTitle, maxVisibleActionsItems, truncateTitle, ...rest }) {
15
+ return ((0, jsx_runtime_1.jsx)("div", { className: (0, classnames_1.default)(mobileStyles_module_scss_1.default.wrapper, className), ...(0, utils_1.extractSupportProps)(rest), children: (0, jsx_runtime_1.jsxs)("div", { className: mobileStyles_module_scss_1.default.body, children: [(0, jsx_runtime_1.jsxs)("div", { className: mobileStyles_module_scss_1.default.headlineWrapper, children: [(0, jsx_runtime_1.jsx)(Headline_1.Headline, { title: title, truncateTitle: truncateTitle, slotBeforeTitle: slotBeforeTitle, slotAfterTitle: slotAfterTitle, subtitle: subtitle }), sidebar && (0, jsx_runtime_1.jsx)(PageSidebar_1.SidebarSelect, { ...sidebar }), actions.length > 0 && (0, jsx_runtime_1.jsx)(Actions_1.MobileActions, { items: actions, maxVisibleItems: maxVisibleActionsItems })] }), (0, jsx_runtime_1.jsx)("div", { className: mobileStyles_module_scss_1.default.childWrapper, children: children })] }) }));
16
16
  }
@@ -27,6 +27,11 @@
27
27
  .button[data-variant=icon-only]{
28
28
  flex:0 0 auto;
29
29
  }
30
+
31
+ .mobileActionsWrapper .button[data-full-width]:not([data-variant=icon-only]){
32
+ min-width:-moz-max-content;
33
+ min-width:max-content;
34
+ }
30
35
  .subtitle{
31
36
  display:flex;
32
37
  flex-direction:row;
@@ -216,10 +221,10 @@
216
221
  .container{
217
222
  display:flex;
218
223
  gap:var(--sn-primitive-dimension-24, 24px);
219
- justify-content:center;
224
+ justify-content:safe center;
220
225
  box-sizing:border-box;
221
- min-width:-moz-fit-content;
222
- min-width:fit-content;
226
+ width:100%;
227
+ min-width:0;
223
228
  min-height:100%;
224
229
  padding:var(--sn-density-spacing-interval-l, var(--sn-platform-comfort-spacing-interval-l, var(--sn-primitive-dimension-32, 32px)));
225
230
  }
@@ -307,6 +312,7 @@
307
312
  top:var(--sn-density-spacing-interval-l, var(--sn-platform-comfort-spacing-interval-l, var(--sn-primitive-dimension-32, 32px)));
308
313
  display:flex;
309
314
  flex-direction:column;
315
+ flex-shrink:0;
310
316
  gap:var(--sn-primitive-dimension-4, 4px);
311
317
  align-self:flex-start;
312
318
  width:304px;
@@ -11,7 +11,7 @@ type CommonProps = {
11
11
  * `@ds`-примитивы, которые берут раскладку из `AdaptiveProvider`. Раскладку фиксируют обёртки
12
12
  * `DesktopActions` / `MobileActions` (`withLayoutType`), поэтому отдельный проп `layoutType` не нужен.
13
13
  */
14
- export declare function ActionView({ variant, tooltip, hidden, commonProps, ...buttonProps }: Action & {
14
+ export declare function ActionView({ hidden, tooltip, commonProps, ...action }: Action & {
15
15
  commonProps: CommonProps;
16
16
  }): string | number | boolean | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
17
17
  export {};
@@ -11,10 +11,14 @@ import { BUTTON_TYPE } from './constants.js';
11
11
  * `@ds`-примитивы, которые берут раскладку из `AdaptiveProvider`. Раскладку фиксируют обёртки
12
12
  * `DesktopActions` / `MobileActions` (`withLayoutType`), поэтому отдельный проп `layoutType` не нужен.
13
13
  */
14
- export function ActionView({ variant, tooltip, hidden = false, commonProps, ...buttonProps }) {
15
- if (hidden) {
14
+ export function ActionView({ hidden, tooltip, commonProps, ...action }) {
15
+ if (hidden)
16
16
  return null;
17
+ if (action.variant === 'custom') {
18
+ const content = _jsx("div", { className: commonProps.className, children: action.render().default });
19
+ return tooltip ? _jsx(Tooltip, { ...tooltip, children: content }) : content;
17
20
  }
21
+ const { variant, ...buttonProps } = action;
18
22
  // disableSpanWrapper — кнопка остаётся ПРЯМЫМ flex-потомком контейнера действий: без него Tooltip
19
23
  // добавляет span-обёртку (`flex:0 1 auto`), и `fullWidth`-кнопка (`flex:1 1 0`) не растягивается на
20
24
  // всю ширину (mobile: 2 действия должны делить строку). Как в MobilePageForm ButtonGroup.
@@ -7,7 +7,7 @@ import { Droplist } from '@cloud-ru/ds-list';
7
7
  import { Tooltip } from '@cloud-ru/ds-tooltip';
8
8
  import { quotaLocale, QuotaWidget } from '@cloud-ru/ds-uikit-product-quota';
9
9
  import { useDynamicList } from '@cloud-ru/ds-utils';
10
- import { useRef, useState } from 'react';
10
+ import { useMemo, useRef, useState } from 'react';
11
11
  import { TEST_IDS } from '../../constants.js';
12
12
  import { ActionView } from './ActionView.js';
13
13
  import { BUTTON_TYPE } from './constants.js';
@@ -16,7 +16,12 @@ import { hasVisibleActions } from './utils.js';
16
16
  function MobileActionsBase({ items, maxVisibleItems }) {
17
17
  const containerRef = useRef(null);
18
18
  const [isOpen, setIsOpen] = useState(false);
19
- const { visibleItems, hiddenItems } = useDynamicList({ parentContainerRef: containerRef, items, maxVisibleItems });
19
+ const availableItems = useMemo(() => items.filter(item => !item.hidden), [items]);
20
+ const { visibleItems, hiddenItems } = useDynamicList({
21
+ parentContainerRef: containerRef,
22
+ items: availableItems,
23
+ maxVisibleItems,
24
+ });
20
25
  const { t: tQuota } = quotaLocale.useTranslations();
21
26
  if (!hasVisibleActions(items)) {
22
27
  return null;
@@ -24,6 +29,18 @@ function MobileActionsBase({ items, maxVisibleItems }) {
24
29
  const hiddenItemsWithKebab = hiddenItems.concat(visibleItems.filter(item => item.variant === BUTTON_TYPE.Kebab));
25
30
  const visibleItemsWithoutKebab = visibleItems.filter(item => item.variant !== BUTTON_TYPE.Kebab);
26
31
  const droplistItems = hiddenItemsWithKebab.reduce((acc, action) => {
32
+ if (action.variant === 'custom') {
33
+ const { asListItem } = action.render();
34
+ acc.push({
35
+ ...asListItem,
36
+ onClick: (event) => {
37
+ setIsOpen(false);
38
+ if ('onClick' in asListItem)
39
+ asListItem.onClick?.(event);
40
+ },
41
+ });
42
+ return acc;
43
+ }
27
44
  switch (action.variant) {
28
45
  case BUTTON_TYPE.Tonal:
29
46
  case BUTTON_TYPE.Simple:
@@ -26,4 +26,9 @@
26
26
  }
27
27
  .button[data-variant=icon-only]{
28
28
  flex:0 0 auto;
29
+ }
30
+
31
+ .mobileActionsWrapper .button[data-full-width]:not([data-variant=icon-only]){
32
+ min-width:-moz-max-content;
33
+ min-width:max-content;
29
34
  }
@@ -1,6 +1,8 @@
1
1
  import { ButtonProps } from '@cloud-ru/ds-button';
2
+ import { Item } from '@cloud-ru/ds-list';
2
3
  import { TooltipProps } from '@cloud-ru/ds-tooltip';
3
4
  import { ButtonDropdownProps } from '@cloud-ru/ds-uikit-product-button-predefined';
5
+ import { ReactNode } from 'react';
4
6
  import { ButtonDroplistProps } from './buttons/ButtonDroplist.js';
5
7
  import { ButtonKebabProps } from './buttons/ButtonKebab.js';
6
8
  import { ButtonQuotaProps } from './buttons/ButtonQuota.js';
@@ -15,13 +17,19 @@ export type ActionButtonProps = (ButtonProps & {
15
17
  }) | (Omit<ButtonProps<'a'>, 'as'> & {
16
18
  as: 'a';
17
19
  });
18
- /**
19
- * Action — один элемент панели действий. Дискриминированный union по `variant` (`BUTTON_TYPE`).
20
- * Простые кнопки (`filled`/`outline`/`tonal`/`function`/`simple`) маппятся на единый `Button` из
21
- * `@cloud-ru/ds-button` с соответствующим `view`; составные (`dropdown`/`kebab`/`droplist`/`quota`) — на
22
- * предопределённые обёртки.
23
- */
24
- export type Action = {
20
+ /** Кастомное действие с представлениями для панели и выпадающего меню. */
21
+ export type CustomAction = {
22
+ variant: 'custom';
23
+ hidden?: boolean;
24
+ tooltip?: TooltipProps;
25
+ /** Вызывается при рендеринге; React hooks следует использовать внутри компонента default. */
26
+ render(): {
27
+ default: ReactNode;
28
+ asListItem: Item;
29
+ };
30
+ };
31
+ export type Action = CustomAction | StandardAction;
32
+ type StandardAction = {
25
33
  tooltip?: TooltipProps;
26
34
  hidden?: boolean;
27
35
  } & (({
@@ -47,3 +55,4 @@ export type ActionsProps = {
47
55
  items: Action[];
48
56
  maxVisibleItems?: number;
49
57
  };
58
+ export {};
@@ -1,10 +1,10 @@
1
1
  .container{
2
2
  display:flex;
3
3
  gap:var(--sn-primitive-dimension-24, 24px);
4
- justify-content:center;
4
+ justify-content:safe center;
5
5
  box-sizing:border-box;
6
- min-width:-moz-fit-content;
7
- min-width:fit-content;
6
+ width:100%;
7
+ min-width:0;
8
8
  min-height:100%;
9
9
  padding:var(--sn-density-spacing-interval-l, var(--sn-platform-comfort-spacing-interval-l, var(--sn-primitive-dimension-32, 32px)));
10
10
  }
@@ -92,6 +92,7 @@
92
92
  top:var(--sn-density-spacing-interval-l, var(--sn-platform-comfort-spacing-interval-l, var(--sn-primitive-dimension-32, 32px)));
93
93
  display:flex;
94
94
  flex-direction:column;
95
+ flex-shrink:0;
95
96
  gap:var(--sn-primitive-dimension-4, 4px);
96
97
  align-self:flex-start;
97
98
  width:304px;
@@ -3,10 +3,10 @@ import { PropsWithChildren } from 'react';
3
3
  import { ActionsProps } from '../Actions/index.js';
4
4
  import { HeadlineProps } from '../Headline/index.js';
5
5
  import { SidebarSelectProps } from '../PageSidebar/index.js';
6
- export type MobilePageServicesProps = WithSupportProps<PropsWithChildren<Pick<HeadlineProps, 'title' | 'slotBeforeTitle' | 'subtitle' | 'slotAfterTitle'> & {
6
+ export type MobilePageServicesProps = WithSupportProps<PropsWithChildren<Pick<HeadlineProps, 'title' | 'slotBeforeTitle' | 'subtitle' | 'slotAfterTitle' | 'truncateTitle'> & {
7
7
  className?: string;
8
8
  sidebar?: SidebarSelectProps;
9
9
  actions?: ActionsProps['items'];
10
10
  maxVisibleActionsItems?: ActionsProps['maxVisibleItems'];
11
11
  }>>;
12
- export declare function MobilePageServices({ children, title, actions, className, sidebar, slotAfterTitle, subtitle, slotBeforeTitle, maxVisibleActionsItems, ...rest }: MobilePageServicesProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare function MobilePageServices({ children, title, actions, className, sidebar, slotAfterTitle, subtitle, slotBeforeTitle, maxVisibleActionsItems, truncateTitle, ...rest }: MobilePageServicesProps): import("react/jsx-runtime").JSX.Element;
@@ -5,6 +5,6 @@ import { MobileActions } from '../Actions/index.js';
5
5
  import { Headline } from '../Headline/index.js';
6
6
  import { SidebarSelect } from '../PageSidebar/index.js';
7
7
  import styles from './mobileStyles.module.css';
8
- export function MobilePageServices({ children, title, actions = [], className, sidebar, slotAfterTitle, subtitle, slotBeforeTitle, maxVisibleActionsItems, ...rest }) {
9
- return (_jsx("div", { className: cn(styles.wrapper, className), ...extractSupportProps(rest), children: _jsxs("div", { className: styles.body, children: [_jsxs("div", { className: styles.headlineWrapper, children: [_jsx(Headline, { title: title, slotBeforeTitle: slotBeforeTitle, slotAfterTitle: slotAfterTitle, subtitle: subtitle }), sidebar && _jsx(SidebarSelect, { ...sidebar }), actions.length > 0 && _jsx(MobileActions, { items: actions, maxVisibleItems: maxVisibleActionsItems })] }), _jsx("div", { className: styles.childWrapper, children: children })] }) }));
8
+ export function MobilePageServices({ children, title, actions = [], className, sidebar, slotAfterTitle, subtitle, slotBeforeTitle, maxVisibleActionsItems, truncateTitle, ...rest }) {
9
+ return (_jsx("div", { className: cn(styles.wrapper, className), ...extractSupportProps(rest), children: _jsxs("div", { className: styles.body, children: [_jsxs("div", { className: styles.headlineWrapper, children: [_jsx(Headline, { title: title, truncateTitle: truncateTitle, slotBeforeTitle: slotBeforeTitle, slotAfterTitle: slotAfterTitle, subtitle: subtitle }), sidebar && _jsx(SidebarSelect, { ...sidebar }), actions.length > 0 && _jsx(MobileActions, { items: actions, maxVisibleItems: maxVisibleActionsItems })] }), _jsx("div", { className: styles.childWrapper, children: children })] }) }));
10
10
  }