@cloud-ru/ds-drawer 1.1.1 → 1.1.2-preview-fb7fca7a.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/README.md +2 -0
- package/dist/cjs/components/Drawer/types.d.ts +2 -2
- package/dist/cjs/helperComponents/DesktopDrawer/DesktopDrawer.d.ts +1 -1
- package/dist/cjs/helperComponents/DesktopDrawer/DesktopDrawer.js +2 -2
- package/dist/esm/components/Drawer/types.d.ts +2 -2
- package/dist/esm/helperComponents/DesktopDrawer/DesktopDrawer.d.ts +1 -1
- package/dist/esm/helperComponents/DesktopDrawer/DesktopDrawer.js +2 -2
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/package.json +9 -9
- package/src/components/Drawer/types.ts +2 -2
- package/src/helperComponents/DesktopDrawer/DesktopDrawer.tsx +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cloud-ru/ds-drawer",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2-preview-fb7fca7a.0",
|
|
4
4
|
"description": "Пакет выезжающих панелей — компоненты Drawer и DrawerCustom с едиными токенами позиции и ширины.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"classnames": "^2.5.1",
|
|
41
41
|
"react-remove-scroll": "^2.7.2",
|
|
42
42
|
"tabbable": "^6.5.0",
|
|
43
|
-
"@cloud-ru/ds-adaptive": "
|
|
44
|
-
"@cloud-ru/ds-bottom-sheet": "
|
|
45
|
-
"@cloud-ru/ds-materials": "
|
|
46
|
-
"@cloud-ru/ds-popup-private": "
|
|
47
|
-
"@cloud-ru/ds-
|
|
48
|
-
"@cloud-ru/ds-
|
|
49
|
-
"@cloud-ru/ds-
|
|
50
|
-
"@cloud-ru/ds-
|
|
43
|
+
"@cloud-ru/ds-adaptive": "1.0.1",
|
|
44
|
+
"@cloud-ru/ds-bottom-sheet": "1.1.1",
|
|
45
|
+
"@cloud-ru/ds-materials": "1.0.1",
|
|
46
|
+
"@cloud-ru/ds-popup-private": "1.1.1",
|
|
47
|
+
"@cloud-ru/ds-scroll": "1.0.2",
|
|
48
|
+
"@cloud-ru/ds-tooltip": "1.0.4",
|
|
49
|
+
"@cloud-ru/ds-utils": "1.1.0",
|
|
50
|
+
"@cloud-ru/ds-portal-context": "1.0.1"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
@@ -8,14 +8,14 @@ import { DrawerCustomProps } from '../DrawerCustom';
|
|
|
8
8
|
/**
|
|
9
9
|
* Адаптивный Drawer: desktop — боковая/верхняя/нижняя панель, `mobile` — `BottomSheet`.
|
|
10
10
|
*
|
|
11
|
-
* Только desktop: `position`, `width`, `heightAuto`, `nestedDrawer` (на mobile игнорируются).
|
|
11
|
+
* Только desktop: `position`, `width`, `heightAuto`, `nestedDrawer`, `truncate` (на mobile игнорируются).
|
|
12
12
|
* Только mobile: `swipeEnabled`, `snapPoints`, `snapIndex`, `onSnapIndexChange`, `safeArea`, `withDividers`
|
|
13
13
|
* (на desktop-панели игнорируются — это анатомия `BottomSheet`).
|
|
14
14
|
*/
|
|
15
15
|
export type DrawerProps = WithSupportProps<
|
|
16
16
|
Omit<DrawerCustomProps, 'nestedDrawer' | 'push' | 'resizable'> &
|
|
17
17
|
Pick<BottomSheetProps, 'swipeEnabled' | 'snapPoints' | 'snapIndex' | 'onSnapIndexChange' | 'safeArea'> &
|
|
18
|
-
Pick<DialogHeaderProps, 'title' | 'slotAfterTitle' | 'slotSecondTitle' | 'onBackButtonClick'> &
|
|
18
|
+
Pick<DialogHeaderProps, 'title' | 'slotAfterTitle' | 'slotSecondTitle' | 'onBackButtonClick' | 'truncate'> &
|
|
19
19
|
Pick<DialogBodyProps, 'content'> & {
|
|
20
20
|
/** Ссылка на скроллируемый контейнер контента (например, для дозагрузки по скроллу). */
|
|
21
21
|
contentRef?: Ref<HTMLElement>;
|
|
@@ -11,6 +11,7 @@ export function DesktopDrawer({
|
|
|
11
11
|
content,
|
|
12
12
|
media,
|
|
13
13
|
title,
|
|
14
|
+
truncate,
|
|
14
15
|
slotAfterTitle,
|
|
15
16
|
slotSecondTitle,
|
|
16
17
|
subtitle,
|
|
@@ -42,6 +43,7 @@ export function DesktopDrawer({
|
|
|
42
43
|
{showHeader && (
|
|
43
44
|
<DrawerCustom.Header
|
|
44
45
|
title={title}
|
|
46
|
+
truncate={truncate}
|
|
45
47
|
slotAfterTitle={slotAfterTitle}
|
|
46
48
|
slotSecondTitle={slotSecondTitle}
|
|
47
49
|
subtitle={subtitle}
|