@nordhealth/components 1.1.2 → 1.2.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.
@@ -10,8 +10,6 @@ export default class Popout extends LitElement {
10
10
  static styles: import("lit").CSSResult[];
11
11
  private targetElement;
12
12
  private cleanupAutoUpdate?;
13
- private breakpoint;
14
- private viewportObserver;
15
13
  /**
16
14
  * Handle dismissal of the popout, clicking outside the target button and popout.
17
15
  */
@@ -69,6 +67,11 @@ export default class Popout extends LitElement {
69
67
  */
70
68
  private toggleOpen;
71
69
  private getToggle;
70
+ /**
71
+ * Update the smallViewport flag to switch between "sheet" and "floating".
72
+ * autoUpdate is needed when a viewport gets larger and the popout is open.
73
+ */
74
+ private handleMediaQueryChange;
72
75
  }
73
76
  declare global {
74
77
  interface HTMLElementTagNameMap {
@@ -22,9 +22,8 @@ export default class Stack extends LitElement {
22
22
  */
23
23
  alignItems?: "center" | "start" | "end" | "stretch";
24
24
  /**
25
- * Enable or disable responsive behaviour of the stack component.
26
- * Setting this option "true" makes sure that contents are
27
- * stacked vertically on mobile (768px and under).
25
+ * This property is deprecated and will be removed in a future version. We recommend using standard [CSS media queries](https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries) over this property. Please see the [updated usage example](/components/stack/?example=using+responsive+media+query).
26
+ * @deprecated
28
27
  */
29
28
  responsive: boolean;
30
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordhealth/components",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "This package includes Nord Design System web components",
5
5
  "author": "Nordhealth <support@nordhealth.design>",
6
6
  "license": "SEE LICENSE IN LICENSE.md",
@@ -168,5 +168,5 @@
168
168
  }
169
169
  ]
170
170
  },
171
- "gitHead": "351bea008a4cb566cfa89494f42fbfb6b00d09b2"
171
+ "gitHead": "5a3f365f5a37e9e402ab0fc6b6dd3ac56feb2721"
172
172
  }