ps-helix 7.0.1 → 7.0.2

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": "ps-helix",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "Helix Design System - A comprehensive Angular component library",
5
5
  "author": "Fabrice PEREZ - Design Engineer at PACK Solutions",
6
6
  "license": "MIT",
@@ -99,6 +99,16 @@
99
99
  */
100
100
  --psh-touch-target-min: 2.75rem; /* 44px */
101
101
 
102
+ /**
103
+ * The AA floor, for a control that lives *inside* a compact component.
104
+ *
105
+ * 44px is right for a standalone control. It is wrong for the close button of a tag: the
106
+ * tag would either grow to 44px, or its hit area would spill over the neighbouring tag and
107
+ * swallow clicks meant for it — and 2.5.8 is only met when targets do not overlap. 24px
108
+ * clears the floor without either.
109
+ */
110
+ --psh-touch-target-compact: 1.5rem; /* 24px */
111
+
102
112
  /* Scrollbar width compensation */
103
113
  --psh-scrollbar-width: 0;
104
114
 
@@ -3024,7 +3024,6 @@ declare class PshModalComponent implements AfterViewInit, OnDestroy {
3024
3024
  private readonly overlay;
3025
3025
  private readonly renderer;
3026
3026
  private readonly platformId;
3027
- private readonly zone;
3028
3027
  private readonly document;
3029
3028
  /** Elements this modal marked `inert`, so it only ever undoes its own. */
3030
3029
  private inertedByThisModal;
@@ -3035,9 +3034,17 @@ declare class PshModalComponent implements AfterViewInit, OnDestroy {
3035
3034
  protected readonly zIndex: _angular_core.WritableSignal<number | null>;
3036
3035
  private modalElement?;
3037
3036
  private isAttachedToBody;
3038
- private resizeListener?;
3039
- private readonly isMobileSignal;
3040
- private readonly mobileBreakpoint;
3037
+ /**
3038
+ * Read from the shared `matchMedia`, on the same `md` step the stylesheet uses.
3039
+ *
3040
+ * It was `innerWidth < 768` behind a resize listener per modal — a pixel breakpoint written
3041
+ * in TypeScript, which no amount of `verify:breakpoints` could see because that script reads
3042
+ * stylesheets. It also did not follow browser zoom: at 150% the stylesheet switched at an
3043
+ * effective 1150px while this stayed at 768, so the modal was in its mobile layout while
3044
+ * `isMobileScreen()` still said no, and a consumer binding it — the demo does, for full-width
3045
+ * footer buttons — got desktop buttons in a mobile dialog.
3046
+ */
3047
+ private readonly isMobile;
3041
3048
  /**
3042
3049
  * Controls the visibility of the modal (two-way binding)
3043
3050
  */
@@ -3184,18 +3191,6 @@ declare class PshModalComponent implements AfterViewInit, OnDestroy {
3184
3191
  private releaseBackgroundInert;
3185
3192
  /** Releases this modal's overlay layer and clears its z-index. */
3186
3193
  private releaseOverlay;
3187
- /**
3188
- * Checks if the current screen size is mobile
3189
- */
3190
- private checkScreenSize;
3191
- /**
3192
- * Sets up resize listener to detect screen size changes
3193
- */
3194
- private setupResizeListener;
3195
- /**
3196
- * Removes resize listener
3197
- */
3198
- private removeResizeListener;
3199
3194
  /**
3200
3195
  * Adds keyboard event listeners
3201
3196
  */
@@ -3511,6 +3506,16 @@ declare class PshSidebarComponent implements OnDestroy {
3511
3506
  readonly mode: _angular_core.InputSignal<SidebarMode>;
3512
3507
  readonly position: _angular_core.InputSignal<SidebarPosition>;
3513
3508
  readonly width: _angular_core.InputSignal<string>;
3509
+ /**
3510
+ * The width below which the sidebar becomes an overlay.
3511
+ *
3512
+ * Defaults to the `md` step of the library's scale, in `em` like every media query it ships:
3513
+ * a px breakpoint does not follow browser zoom, so at 150% the rest of the page had switched
3514
+ * to its narrow layout while the sidebar was still docked. It is also exclusive — `768px` was
3515
+ * true at exactly 768px, where a `min-width: 48em` rule is true as well.
3516
+ *
3517
+ * Any CSS length is still accepted, so `'768px'` keeps working.
3518
+ */
3514
3519
  readonly breakpoint: _angular_core.InputSignal<string>;
3515
3520
  readonly autoFocus: _angular_core.InputSignal<boolean>;
3516
3521
  readonly ariaLabelInput: _angular_core.InputSignal<string | undefined>;