@nysds/nys-skipnav 1.15.0 → 1.15.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.
- package/dist/nys-skipnav.js +1 -1
- package/package.json +2 -2
- package/dist/index.d.ts +0 -1
- package/dist/nys-skipnav.d.ts +0 -38
- package/dist/nys-skipnav.figma.d.ts +0 -1
package/dist/nys-skipnav.js
CHANGED
|
@@ -5,7 +5,7 @@ import { property as l } from "lit/decorators.js";
|
|
|
5
5
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
6
6
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
7
7
|
*
|
|
8
|
-
* Skipnav Component
|
|
8
|
+
* Skipnav Component v1.15.1
|
|
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.15.
|
|
3
|
+
"version": "1.15.1",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"dev": "tsc --emitDeclarationOnly && vite",
|
|
19
|
-
"build": "
|
|
19
|
+
"build": "vite build",
|
|
20
20
|
"test": "vite build && wtr",
|
|
21
21
|
"build:watch": "tsc --emitDeclarationOnly && vite build --watch",
|
|
22
22
|
"test:watch": "vite build && wtr --watch",
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./nys-skipnav";
|
package/dist/nys-skipnav.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|