@nysds/nys-skipnav 1.19.0 → 1.19.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.
@@ -0,0 +1,38 @@
1
+ import { LitElement } from "lit";
2
+ /**
3
+ * An accessible "Skip to main content" link for keyboard and screen reader users. Visually hidden until focused.
4
+ *
5
+ * Place as the first focusable element in the document. Links to `#main-content` by default, or specify `href`
6
+ * for a custom target. The target element receives focus when activated for proper screen reader announcement.
7
+ *
8
+ * @summary Skip navigation link for keyboard accessibility. Hidden until focused.
9
+ * @element nys-skipnav
10
+ *
11
+ * @example Default skip link
12
+ * ```html
13
+ * <nys-skipnav></nys-skipnav>
14
+ * <main id="main-content">...</main>
15
+ * ```
16
+ *
17
+ * @example Custom target
18
+ * ```html
19
+ * <nys-skipnav href="#content-area"></nys-skipnav>
20
+ * ```
21
+ */
22
+ export declare class NysSkipnav extends LitElement {
23
+ static styles: import("lit").CSSResult;
24
+ /** Unique identifier. Auto-generated if not provided. */
25
+ id: string;
26
+ /** Target element ID (with `#`). Defaults to `#main-content`. */
27
+ href: string;
28
+ constructor();
29
+ connectedCallback(): void;
30
+ /**
31
+ * Event Handlers
32
+ * --------------------------------------------------------------------------
33
+ */
34
+ private _handleFocus;
35
+ private _handleBlur;
36
+ private _handleClick;
37
+ render(): import("lit-html").TemplateResult<1>;
38
+ }
@@ -5,7 +5,7 @@ import { property as l } from "lit/decorators.js";
5
5
  * █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
6
6
  * █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
7
7
  *
8
- * Skipnav Component v1.19.0
8
+ * Skipnav Component v1.19.2
9
9
  * Part of the New York State Design System
10
10
  * Repository: https://github.com/its-hcd/nysds
11
11
  * License: MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nysds/nys-skipnav",
3
- "version": "1.19.0",
3
+ "version": "1.19.2",
4
4
  "description": "The Skipnav component from the NYS Design System.",
5
5
  "module": "dist/nys-skipnav.js",
6
6
  "types": "dist/index.d.ts",
@@ -36,5 +36,6 @@
36
36
  "skipnav"
37
37
  ],
38
38
  "author": "New York State Design System Team",
39
- "license": "MIT"
39
+ "license": "MIT",
40
+ "sideEffects": true
40
41
  }