@nordhealth/components 3.11.0 → 3.11.1

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,7 @@
1
1
  import { ReactiveController, ReactiveControllerHost } from "lit";
2
2
  export declare class FocusTrapController implements ReactiveController {
3
3
  private host;
4
+ private inertElements;
4
5
  constructor(host: ReactiveControllerHost & HTMLElement);
5
6
  hostDisconnected(): void;
6
7
  trap(): void;
@@ -1 +1,14 @@
1
- export declare function inertAround(element: Element, enabled: boolean): void;
1
+ /**
2
+ * Set or remove the `inert` attribute on all given elements.
3
+ *
4
+ * @param elements The elements to set or remove the `inert` attribute on.
5
+ * @param enabled Whether to set or remove the `inert` attribute.
6
+ */
7
+ export declare function setInertAttributes(elements: Element[], enabled: boolean): void;
8
+ /**
9
+ * Get all siblings of an element, including the siblings of its parents.
10
+ * Use this to find all elements that should be inert when a modal is open.
11
+ * And then use `setInertAttributes` to set or remove the `inert` attribute
12
+ * on all of them.
13
+ */
14
+ export declare function getElementsAround(element: Element): Element[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordhealth/components",
3
- "version": "3.11.0",
3
+ "version": "3.11.1",
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",
@@ -184,5 +184,5 @@
184
184
  }
185
185
  ]
186
186
  },
187
- "gitHead": "af6a027358fdd5f6cf7745bfbd3ae8a858a78578"
187
+ "gitHead": "c56f9d37629fd100c685f818813566e4354d6747"
188
188
  }