@basis-ng/primitives 0.0.1-alpha.145 → 0.0.1-alpha.146

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basis-ng/primitives",
3
- "version": "0.0.1-alpha.145",
3
+ "version": "0.0.1-alpha.146",
4
4
  "description": "basis-ng components, animations, directives and services for Angular",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -439,6 +439,7 @@ type Direction = 'top' | 'bottom' | 'left' | 'right';
439
439
  * A draggable floating drawer that can slide from any side.
440
440
  */
441
441
  declare class Drawer {
442
+ private readonly panel;
442
443
  /**
443
444
  * Model indicating whether the drawer is open.
444
445
  */
@@ -476,19 +477,13 @@ declare class Drawer {
476
477
  */
477
478
  readonly transform: _angular_core.Signal<string>;
478
479
  /**
479
- * Current progress to use for the rendered transform.
480
+ * Backdrop opacity that tracks the drawer open progress.
480
481
  */
481
- readonly currentProgress: _angular_core.Signal<number>;
482
+ readonly backdropOpacity: _angular_core.Signal<number>;
482
483
  /**
483
- * Element reference to the host component.
484
- */
485
- private readonly el;
486
- /**
487
- * Close the drawer when clicking outside of it.
488
- * The stopPropagation in the drawer-content prevents clicks inside from closing it.
489
- * @param event - Click event.
484
+ * Current progress to use for the rendered transform.
490
485
  */
491
- closeOnOutsideClick(event: Event): void;
486
+ readonly currentProgress: _angular_core.Signal<number>;
492
487
  /**
493
488
  * Begin tracking pointer movement for drag-to-dismiss.
494
489
  * @param event - Pointer down event.
@@ -506,7 +501,7 @@ declare class Drawer {
506
501
  /**
507
502
  * Closes the drawer and emits the close event.
508
503
  */
509
- private close;
504
+ requestClose(): void;
510
505
  /**
511
506
  * Maps the current side to the transform axis and sign.
512
507
  */