@nysds/nys-label 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-label.js +1 -1
- package/package.json +4 -4
- package/dist/index.d.ts +0 -1
- package/dist/nys-label.d.ts +0 -35
package/dist/nys-label.js
CHANGED
|
@@ -5,7 +5,7 @@ import { property as i } from "lit/decorators.js";
|
|
|
5
5
|
* █ █ █ █▄▄▄█ ▀▀▀▄▄ █ █ ▀▀▀▄▄
|
|
6
6
|
* █ ▀█ █ █▄▄▄█ █▄▄▀ █▄▄▄█
|
|
7
7
|
*
|
|
8
|
-
* Label Component
|
|
8
|
+
* Label 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-label",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"description": "The Label component from the NYS Design System.",
|
|
5
5
|
"module": "dist/nys-label.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,15 +16,15 @@
|
|
|
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",
|
|
23
23
|
"lit-analyze": "lit-analyzer '**/*.ts'"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@nysds/nys-icon": "^1.15.
|
|
27
|
-
"@nysds/nys-tooltip": "^1.15.
|
|
26
|
+
"@nysds/nys-icon": "^1.15.1",
|
|
27
|
+
"@nysds/nys-tooltip": "^1.15.1"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"lit": "^3.3.1",
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./nys-label";
|
package/dist/nys-label.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
/**
|
|
3
|
-
* **Internal component.** Renders form labels with description, required/optional flag, and tooltip.
|
|
4
|
-
*
|
|
5
|
-
* Used internally by form components (textinput, select, checkbox, etc.). Not intended for direct use.
|
|
6
|
-
* Handles label association via `for`, displays asterisk for required fields, and integrates tooltips.
|
|
7
|
-
*
|
|
8
|
-
* @summary Internal label component for form fields with flag and tooltip support.
|
|
9
|
-
* @element nys-label
|
|
10
|
-
*
|
|
11
|
-
* @slot description - Custom HTML description content below the label.
|
|
12
|
-
*/
|
|
13
|
-
export declare class NysLabel extends LitElement {
|
|
14
|
-
static styles: import("lit").CSSResult;
|
|
15
|
-
/** ID of the form element this label is associated with. */
|
|
16
|
-
for: string;
|
|
17
|
-
/** Label text displayed above the form field. */
|
|
18
|
-
label: string;
|
|
19
|
-
/** Helper text displayed below the label. */
|
|
20
|
-
description: string;
|
|
21
|
-
/** Flag type: `required` shows asterisk, `optional` shows "(Optional)". */
|
|
22
|
-
flag: string;
|
|
23
|
-
/** Adjusts colors for dark backgrounds. */
|
|
24
|
-
inverted: boolean;
|
|
25
|
-
/** Tooltip text shown on hover/focus of info icon next to label. */
|
|
26
|
-
get tooltip(): string;
|
|
27
|
-
set tooltip(value: string);
|
|
28
|
-
private _tooltip;
|
|
29
|
-
/**
|
|
30
|
-
* Event Handlers
|
|
31
|
-
* --------------------------------------------------------------------------
|
|
32
|
-
*/
|
|
33
|
-
private _handleLabelClick;
|
|
34
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
35
|
-
}
|