mtrl 0.8.0-next.32 → 0.8.0-next.34

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.
@@ -1,6 +1,18 @@
1
1
  import { SheetConfig } from "./types";
2
2
  /**
3
3
  * Creates a new Sheet component
4
+ *
5
+ * @deprecated Since 0.8.0. Use {@link createBottomSheet} for a sheet anchored
6
+ * to the bottom edge, or {@link createSideSheet} for one docked to a vertical
7
+ * edge. Those follow the M3 bottom sheet and side sheet specifications, which
8
+ * this component predates and does not match.
9
+ *
10
+ * This component is also broken: `open()`, `close()` and the drag gestures
11
+ * call `component.events.emit(...)`, but it composes the event feature that
12
+ * provides `emit` directly and no `events` object, so every one of them
13
+ * throws. Its scrim is never inserted into the page either. It is kept only so
14
+ * that existing imports keep resolving, and it will be removed.
15
+ *
4
16
  * @param {SheetConfig} config - Sheet configuration object
5
17
  * @returns {SheetComponent} Sheet component instance
6
18
  */
@@ -24,6 +24,10 @@ export declare const SHEET_EVENTS: {
24
24
  readonly DRAG_START: "dragstart";
25
25
  readonly DRAG_END: "dragend";
26
26
  };
27
+ /**
28
+ * @deprecated Since 0.8.0. Use BottomSheetConfig or SideSheetConfig.
29
+ * The sheet component this belongs to does not open: see createSheet.
30
+ */
27
31
  /**
28
32
  * Configuration interface for the Sheet component
29
33
  * @category Components
@@ -146,6 +150,10 @@ export interface TitleAPI {
146
150
  */
147
151
  getElement: () => HTMLElement | null;
148
152
  }
153
+ /**
154
+ * @deprecated Since 0.8.0. Use BottomSheetComponent or SideSheetComponent.
155
+ * The sheet component this belongs to does not open: see createSheet.
156
+ */
149
157
  /**
150
158
  * Sheet component interface
151
159
  * @category Components