@cloud-ru/ds-bottom-sheet 2.0.1 → 2.0.3

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/src/constants.ts CHANGED
@@ -17,11 +17,13 @@ export { FOOTER_ACTIONS_ORIENTATION, MEDIA_KIND, TEST_IDS } from '@cloud-ru/ds-p
17
17
  export const NO_DRAG_ATTRIBUTE = 'data-bottom-sheet-no-drag';
18
18
 
19
19
  /**
20
- * Пресеты snap-points для различных сценариев использования.
20
+ * Пресеты `snapPoints` (доли высоты вьюпорта) для типовых сценариев.
21
21
  */
22
- export const SNAP_POINTS_PRESET: Record<string, SnapPoint[]> = {
22
+ export const SNAP_POINTS_PRESET = {
23
23
  quarter: [0.25],
24
24
  half: [0.5],
25
25
  threeQuarters: [0.75],
26
26
  full: [1],
27
- };
27
+ /** Открывается на половину вьюпорта, drag вверх раскрывает на всю высоту. */
28
+ halfFull: [0.5, 1],
29
+ } satisfies Record<string, SnapPoint[]>;