@nysds/components 1.11.1 → 1.11.3
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/LICENSE.md +43 -1
- package/dist/custom-elements.json +8944 -0
- package/dist/nysds.es.js +941 -6187
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +99 -5392
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-accordion/src/nys-accordion.d.ts +1 -1
- package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +1 -1
- package/dist/packages/nys-avatar/src/nys-avatar.d.ts +1 -2
- package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +1 -1
- package/dist/packages/nys-badge/src/nys-badge.d.ts +1 -1
- package/dist/packages/nys-button/src/nys-button.d.ts +1 -1
- package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +1 -1
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +1 -1
- package/dist/packages/nys-divider/src/nys-divider.d.ts +1 -1
- package/dist/packages/nys-errormessage/src/nys-errormessage.d.ts +1 -1
- package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +1 -1
- package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +1 -1
- package/dist/packages/nys-icon/src/nys-icon.d.ts +1 -1
- package/dist/packages/nys-label/src/nys-label.d.ts +1 -1
- package/dist/packages/nys-modal/src/nys-modal.d.ts +1 -2
- package/dist/packages/nys-pagination/src/nys-pagination.d.ts +2 -2
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +1 -1
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +1 -1
- package/dist/packages/nys-select/src/nys-select.d.ts +2 -1
- package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +1 -1
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +1 -1
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +1 -1
- package/dist/packages/nys-toggle/src/nys-toggle.d.ts +1 -2
- package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +1 -1
- package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +1 -1
- package/package.json +24 -15
- package/dist/packages/nys-accordion/src/nys-accordion.styles.d.ts +0 -2
- package/dist/packages/nys-alert/src/nys-alert.styles.d.ts +0 -2
- package/dist/packages/nys-avatar/src/nys-avatar.styles.d.ts +0 -2
- package/dist/packages/nys-backtotop/src/nys-backtotop.styles.d.ts +0 -2
- package/dist/packages/nys-badge/src/nys-badge.styles.d.ts +0 -2
- package/dist/packages/nys-button/src/nys-button.styles.d.ts +0 -2
- package/dist/packages/nys-checkbox/src/nys-checkbox.styles.d.ts +0 -2
- package/dist/packages/nys-divider/src/nys-divider.styles.d.ts +0 -2
- package/dist/packages/nys-errormessage/src/nys-errormessage.styles.d.ts +0 -2
- package/dist/packages/nys-fileinput/src/nys-fileinput.styles.d.ts +0 -2
- package/dist/packages/nys-fileinput/src/nys-fileitem.styles.d.ts +0 -2
- package/dist/packages/nys-globalfooter/src/nys-globalfooter.styles.d.ts +0 -2
- package/dist/packages/nys-globalheader/src/nys-globalheader.styles.d.ts +0 -2
- package/dist/packages/nys-icon/src/nys-icon.styles.d.ts +0 -2
- package/dist/packages/nys-label/src/nys-label.styles.d.ts +0 -2
- package/dist/packages/nys-modal/src/nys-modal.styles.d.ts +0 -2
- package/dist/packages/nys-pagination/src/nys-pagination.styles.d.ts +0 -2
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.styles.d.ts +0 -2
- package/dist/packages/nys-select/src/nys-select.styles.d.ts +0 -2
- package/dist/packages/nys-skipnav/src/nys-skipnav.styles.d.ts +0 -2
- package/dist/packages/nys-textarea/src/nys-textarea.styles.d.ts +0 -2
- package/dist/packages/nys-textinput/src/nys-textinput.styles.d.ts +0 -2
- package/dist/packages/nys-toggle/src/nys-toggle.styles.d.ts +0 -2
- package/dist/packages/nys-tooltip/src/nys-tooltip.styles.d.ts +0 -2
- package/dist/packages/nys-unavfooter/src/nys-unavfooter.styles.d.ts +0 -2
- package/dist/packages/nys-unavheader/src/nys-unavheader.styles.d.ts +0 -2
|
@@ -5,10 +5,10 @@ import "./nys-accordionitem";
|
|
|
5
5
|
* The items within is called "nys-accordionitem"
|
|
6
6
|
*/
|
|
7
7
|
export declare class NysAccordion extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
8
9
|
id: string;
|
|
9
10
|
singleSelect: boolean;
|
|
10
11
|
bordered: boolean;
|
|
11
|
-
static styles: import("lit").CSSResult;
|
|
12
12
|
/**************** Lifecycle Methods ****************/
|
|
13
13
|
constructor();
|
|
14
14
|
connectedCallback(): void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysAccordionItem extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
heading: string;
|
|
5
6
|
expanded: boolean;
|
|
6
7
|
bordered: boolean;
|
|
7
|
-
static styles: import("lit").CSSResult;
|
|
8
8
|
/**************** Lifecycle Methods ****************/
|
|
9
9
|
constructor();
|
|
10
10
|
connectedCallback(): void;
|
|
@@ -14,8 +14,7 @@ export declare class NysAvatar extends LitElement {
|
|
|
14
14
|
private _slotHasContent;
|
|
15
15
|
/******************** Functions ********************/
|
|
16
16
|
connectedCallback(): void;
|
|
17
|
-
|
|
18
|
-
private _checkSlotContent;
|
|
17
|
+
private _handleSlotChange;
|
|
19
18
|
private getContrastForeground;
|
|
20
19
|
render(): import("lit-html").TemplateResult<1>;
|
|
21
20
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysBacktotop extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
position: string;
|
|
4
5
|
visible: boolean;
|
|
5
|
-
static styles: import("lit").CSSResult;
|
|
6
6
|
private isMobile;
|
|
7
7
|
private forceVisible;
|
|
8
8
|
private mediaQuery;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysBadge extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
private static readonly VALID_SIZES;
|
|
@@ -18,7 +19,6 @@ export declare class NysBadge extends LitElement {
|
|
|
18
19
|
private _suffixIcon;
|
|
19
20
|
get suffixIcon(): string | boolean;
|
|
20
21
|
set suffixIcon(value: string | boolean);
|
|
21
|
-
static styles: import("lit").CSSResult;
|
|
22
22
|
connectedCallback(): void;
|
|
23
23
|
private static readonly DEFAULT_ICONS;
|
|
24
24
|
private resolveIcon;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysButton extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
private static readonly VALID_SIZES;
|
|
@@ -34,7 +35,6 @@ export declare class NysButton extends LitElement {
|
|
|
34
35
|
get target(): (typeof NysButton.VALID_TARGETS)[number];
|
|
35
36
|
set target(value: string);
|
|
36
37
|
getButtonElement(): Promise<HTMLElement | null>;
|
|
37
|
-
static styles: import("lit").CSSResult;
|
|
38
38
|
private _internals;
|
|
39
39
|
/**************** Lifecycle Methods ****************/
|
|
40
40
|
static formAssociated: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import "./nys-checkboxgroup";
|
|
3
3
|
export declare class NysCheckbox extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
4
5
|
checked: boolean;
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
required: boolean;
|
|
@@ -20,7 +21,6 @@ export declare class NysCheckbox extends LitElement {
|
|
|
20
21
|
get size(): (typeof NysCheckbox.VALID_SIZES)[number];
|
|
21
22
|
set size(value: string);
|
|
22
23
|
getInputElement(): Promise<HTMLInputElement | null>;
|
|
23
|
-
static styles: import("lit").CSSResult;
|
|
24
24
|
private _internals;
|
|
25
25
|
/********************** Lifecycle updates **********************/
|
|
26
26
|
static formAssociated: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysCheckboxgroup extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
required: boolean;
|
|
@@ -17,7 +18,6 @@ export declare class NysCheckboxgroup extends LitElement {
|
|
|
17
18
|
private _size;
|
|
18
19
|
get size(): (typeof NysCheckboxgroup.VALID_SIZES)[number];
|
|
19
20
|
set size(value: string);
|
|
20
|
-
static styles: import("lit").CSSResult;
|
|
21
21
|
private _internals;
|
|
22
22
|
/********************** Lifecycle updates **********************/
|
|
23
23
|
static formAssociated: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysErrorMessage extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
showError: boolean;
|
|
4
5
|
errorMessage: string;
|
|
5
6
|
showDivider: boolean;
|
|
6
7
|
private _internals;
|
|
7
|
-
static styles: import("lit").CSSResult;
|
|
8
8
|
/********************** Lifecycle updates **********************/
|
|
9
9
|
static formAssociated: boolean;
|
|
10
10
|
constructor();
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import "./nys-fileitem";
|
|
3
3
|
export declare class NysFileinput extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
4
5
|
id: string;
|
|
5
6
|
name: string;
|
|
6
7
|
label: string;
|
|
@@ -17,7 +18,6 @@ export declare class NysFileinput extends LitElement {
|
|
|
17
18
|
dropzone: boolean;
|
|
18
19
|
width: "lg" | "full";
|
|
19
20
|
inverted: boolean;
|
|
20
|
-
static styles: import("lit").CSSResult;
|
|
21
21
|
private _selectedFiles;
|
|
22
22
|
private _dragActive;
|
|
23
23
|
private get _isDropDisabled();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysFileItem extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
filename: string;
|
|
4
5
|
status: "pending" | "processing" | "done" | "error";
|
|
5
6
|
progress: number;
|
|
6
7
|
errorMessage: string;
|
|
7
|
-
static styles: import("lit").CSSResult;
|
|
8
8
|
private _handleRemove;
|
|
9
9
|
private splitFilename;
|
|
10
10
|
render(): import("lit-html").TemplateResult<1>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysIcon extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
name: string;
|
|
4
5
|
ariaLabel: string;
|
|
5
6
|
rotate: string;
|
|
6
7
|
flip: string;
|
|
7
8
|
color: string;
|
|
8
|
-
static styles: import("lit").CSSResult;
|
|
9
9
|
private static readonly VALID_TYPES;
|
|
10
10
|
private _size;
|
|
11
11
|
get size(): (typeof NysIcon.VALID_TYPES)[number];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysLabel extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
for: string;
|
|
4
5
|
label: string;
|
|
5
6
|
description: string;
|
|
@@ -8,6 +9,5 @@ export declare class NysLabel extends LitElement {
|
|
|
8
9
|
get tooltip(): string;
|
|
9
10
|
set tooltip(value: string);
|
|
10
11
|
private _tooltip;
|
|
11
|
-
static styles: import("lit").CSSResult;
|
|
12
12
|
render(): import("lit-html").TemplateResult<1>;
|
|
13
13
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysModal extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
heading: string;
|
|
5
6
|
subheading: string;
|
|
@@ -14,12 +15,10 @@ export declare class NysModal extends LitElement {
|
|
|
14
15
|
private _originalBodyOverflow;
|
|
15
16
|
private hasBodySlots;
|
|
16
17
|
private hasActionSlots;
|
|
17
|
-
static styles: import("lit").CSSResult;
|
|
18
18
|
/**************** Lifecycle Methods ****************/
|
|
19
19
|
constructor();
|
|
20
20
|
connectedCallback(): void;
|
|
21
21
|
disconnectedCallback(): void;
|
|
22
|
-
firstUpdated(): void;
|
|
23
22
|
updated(changeProps: Map<string, any>): Promise<void>;
|
|
24
23
|
/******************** Functions ********************/
|
|
25
24
|
private _hideBodyScroll;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { LitElement, TemplateResult } from "lit";
|
|
2
2
|
export declare class NysPagination extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
currentPage: number;
|
|
6
7
|
totalPages: number;
|
|
7
8
|
_twoBeforeLast: boolean;
|
|
8
|
-
static styles: import("lit").CSSResult;
|
|
9
9
|
/**************** Lifecycle Methods ****************/
|
|
10
10
|
constructor();
|
|
11
|
-
|
|
11
|
+
willUpdate(changedProps: Map<string, unknown>): void;
|
|
12
12
|
connectedCallback(): void;
|
|
13
13
|
/******************** Functions ********************/
|
|
14
14
|
private _clampPage;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import "./nys-radiogroup";
|
|
3
3
|
export declare class NysRadiobutton extends LitElement {
|
|
4
|
+
static styles: import("lit").CSSResult;
|
|
4
5
|
checked: boolean;
|
|
5
6
|
disabled: boolean;
|
|
6
7
|
required: boolean;
|
|
@@ -19,7 +20,6 @@ export declare class NysRadiobutton extends LitElement {
|
|
|
19
20
|
getInputElement(): Promise<HTMLInputElement | null>;
|
|
20
21
|
formResetUpdate(): void;
|
|
21
22
|
static buttonGroup: Record<string, NysRadiobutton>;
|
|
22
|
-
static styles: import("lit").CSSResult;
|
|
23
23
|
/********************** Lifecycle updates **********************/
|
|
24
24
|
connectedCallback(): void;
|
|
25
25
|
disconnectedCallback(): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysRadiogroup extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
required: boolean;
|
|
@@ -18,7 +19,6 @@ export declare class NysRadiogroup extends LitElement {
|
|
|
18
19
|
private _size;
|
|
19
20
|
get size(): (typeof NysRadiogroup.VALID_SIZES)[number];
|
|
20
21
|
set size(value: string);
|
|
21
|
-
static styles: import("lit").CSSResult;
|
|
22
22
|
private _internals;
|
|
23
23
|
/********************** Lifecycle updates **********************/
|
|
24
24
|
static formAssociated: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysSelect extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
label: string;
|
|
@@ -17,7 +18,7 @@ export declare class NysSelect extends LitElement {
|
|
|
17
18
|
private _width;
|
|
18
19
|
get width(): (typeof NysSelect.VALID_WIDTHS)[number];
|
|
19
20
|
set width(value: string);
|
|
20
|
-
|
|
21
|
+
private _originalErrorMessage;
|
|
21
22
|
private _hasUserInteracted;
|
|
22
23
|
private _internals;
|
|
23
24
|
/********************** Lifecycle updates **********************/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysSkipnav extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
href: string;
|
|
5
|
-
static styles: import("lit").CSSResult;
|
|
6
6
|
constructor();
|
|
7
7
|
connectedCallback(): void;
|
|
8
8
|
/**************** Event Handlers ****************/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysTextarea extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
label: string;
|
|
@@ -24,7 +25,6 @@ export declare class NysTextarea extends LitElement {
|
|
|
24
25
|
showError: boolean;
|
|
25
26
|
errorMessage: string;
|
|
26
27
|
updated(changedProperties: Map<string | number | symbol, unknown>): Promise<void>;
|
|
27
|
-
static styles: import("lit").CSSResult;
|
|
28
28
|
private _hasUserInteracted;
|
|
29
29
|
private _internals;
|
|
30
30
|
/********************** Lifecycle updates **********************/
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysTextinput extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
name: string;
|
|
5
6
|
private static readonly VALID_TYPES;
|
|
@@ -27,7 +28,6 @@ export declare class NysTextinput extends LitElement {
|
|
|
27
28
|
showError: boolean;
|
|
28
29
|
errorMessage: string;
|
|
29
30
|
private showPassword;
|
|
30
|
-
static styles: import("lit").CSSResult;
|
|
31
31
|
private _originalErrorMessage;
|
|
32
32
|
private _hasUserInteracted;
|
|
33
33
|
private _internals;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysToggle extends LitElement {
|
|
3
|
-
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
value: string;
|
|
@@ -15,7 +15,6 @@ export declare class NysToggle extends LitElement {
|
|
|
15
15
|
private _size;
|
|
16
16
|
get size(): (typeof NysToggle.VALID_SIZES)[number];
|
|
17
17
|
set size(value: string);
|
|
18
|
-
static styles: import("lit").CSSResult;
|
|
19
18
|
private _internals;
|
|
20
19
|
/********************** Lifecycle updates **********************/
|
|
21
20
|
static formAssociated: boolean;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysTooltip extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
id: string;
|
|
4
5
|
text: string;
|
|
5
6
|
inverted: boolean;
|
|
@@ -8,7 +9,6 @@ export declare class NysTooltip extends LitElement {
|
|
|
8
9
|
private _userHasSetPosition;
|
|
9
10
|
private _originalUserPosition;
|
|
10
11
|
private _internallyUpdatingPosition;
|
|
11
|
-
static styles: import("lit").CSSResult;
|
|
12
12
|
/********************* Position Logic *********************/
|
|
13
13
|
private _position;
|
|
14
14
|
get position(): "right" | "top" | "bottom" | "left" | null;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
export declare class NysUnavHeader extends LitElement {
|
|
3
|
+
static styles: import("lit").CSSResult;
|
|
3
4
|
trustbarVisible: boolean;
|
|
4
5
|
searchDropdownVisible: boolean;
|
|
5
6
|
languageVisible: boolean;
|
|
@@ -7,7 +8,6 @@ export declare class NysUnavHeader extends LitElement {
|
|
|
7
8
|
hideTranslate: boolean;
|
|
8
9
|
hideSearch: boolean;
|
|
9
10
|
private languages;
|
|
10
|
-
static styles: import("lit").CSSResult;
|
|
11
11
|
private _getNysLogo;
|
|
12
12
|
private _toggleTrustbar;
|
|
13
13
|
private _toggleLanguageList;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nysds/components",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.3",
|
|
4
4
|
"description": "New York State's design system and code component library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"workspaces": [
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"build": "npm run lint && tsc --emitDeclarationOnly && vite build",
|
|
27
27
|
"build:umd": "tsc --emitDeclarationOnly && vite build --config vite.config.umd.js",
|
|
28
28
|
"build:packages": "npm run lint && node src/scripts/build-order.js",
|
|
29
|
-
"build:all": "npm run clean:dist && NODE_ENV=production npm run build:packages && NODE_ENV=production npm run build && NODE_ENV=production npm run build:umd",
|
|
29
|
+
"build:all": "npm run clean:dist && NODE_ENV=production npm run build:packages && NODE_ENV=production npm run build && NODE_ENV=production npm run build:umd && npm run cem",
|
|
30
30
|
"build:link": "npm run build:all && npm link",
|
|
31
31
|
"lint": "eslint src/ packages/**/*.{ts,js}",
|
|
32
32
|
"lint:fix": "eslint src/ packages/**/*.{ts,js} --fix",
|
|
33
33
|
"lit-analyze": "lit-analyzer $(find ./packages -name '*.ts' ! -name '*.figma.*')",
|
|
34
|
-
"release": "NODE_ENV=production npm run build:all && npm run test && npm publish --workspaces --access public && npm publish --access public",
|
|
35
|
-
"release:dry-run": "NODE_ENV=production npm run build:all && NODE_ENV=production npm run test && node src/scripts/publish-dry-run.js",
|
|
34
|
+
"release": "NODE_ENV=production npm run build:all && NODE_ENV=production npm run test && npm run cem && NODE_ENV=production npm publish --workspaces --access public && NODE_ENV=production npm publish --access public",
|
|
35
|
+
"release:dry-run": "NODE_ENV=production npm run build:all && NODE_ENV=production npm run test && npm run cem && node src/scripts/publish-dry-run.js",
|
|
36
36
|
"release:alpha": "npm run build && npm run build:umd && npm publish --tag next",
|
|
37
37
|
"test": "npx playwright install && wtr --node-resolve",
|
|
38
38
|
"test:build": "npm run build:all && npm run test",
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"clean:node": "rm -rf node_modules && rm -rf packages/*/node_modules",
|
|
44
44
|
"clean:dist": "rm -rf dist && rm -rf packages/*/dist",
|
|
45
45
|
"clean:all": "npm run clean:dist && npm run clean:node",
|
|
46
|
-
"code-connect": "dotenv -- npx figma connect publish"
|
|
46
|
+
"code-connect": "dotenv -- npx figma connect publish",
|
|
47
|
+
"cem": "npx cem analyze --config 'custom-elements-manifest.config.mjs'"
|
|
47
48
|
},
|
|
48
49
|
"repository": {
|
|
49
50
|
"type": "git",
|
|
@@ -54,38 +55,45 @@
|
|
|
54
55
|
"bugs": {
|
|
55
56
|
"url": "https://github.com/ITS-HCD/nysds/issues"
|
|
56
57
|
},
|
|
57
|
-
"homepage": "https://
|
|
58
|
+
"homepage": "https://designsystem.ny.gov/",
|
|
58
59
|
"devDependencies": {
|
|
59
|
-
"@chromatic-com/storybook": "^4.1.
|
|
60
|
+
"@chromatic-com/storybook": "^4.1.3",
|
|
61
|
+
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
60
62
|
"@figma/code-connect": "^1.3.7",
|
|
61
63
|
"@floating-ui/dom": "^1.7.4",
|
|
62
|
-
"@storybook/addon-a11y": "10.0.0",
|
|
63
|
-
"@storybook/addon-docs": "10.0.0",
|
|
64
|
-
"@storybook/addon-links": "10.0.0",
|
|
65
|
-
"@storybook/web-components-vite": "10.0.0",
|
|
66
64
|
"@open-wc/testing": "^4.0.0",
|
|
65
|
+
"@storybook/addon-a11y": "10.0.8",
|
|
66
|
+
"@storybook/addon-docs": "10.0.8",
|
|
67
|
+
"@storybook/addon-links": "10.0.8",
|
|
68
|
+
"@storybook/web-components-vite": "10.0.8",
|
|
67
69
|
"@types/mocha": "^10.0.10",
|
|
68
70
|
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
69
71
|
"@typescript-eslint/parser": "^8.46.2",
|
|
72
|
+
"@wc-toolkit/wctools": "^0.0.9",
|
|
70
73
|
"@web/dev-server-esbuild": "^1.0.4",
|
|
71
74
|
"@web/test-runner": "^0.20.2",
|
|
72
75
|
"@web/test-runner-commands": "^0.9.0",
|
|
73
76
|
"@web/test-runner-playwright": "^0.11.1",
|
|
77
|
+
"custom-element-react-wrappers": "^1.7.3",
|
|
78
|
+
"custom-element-vs-code-integration": "^1.5.0",
|
|
74
79
|
"dotenv-cli": "^10.0.0",
|
|
75
|
-
"eslint-plugin-storybook": "10.0.0",
|
|
76
80
|
"eslint": "^9.38.0",
|
|
77
81
|
"eslint-plugin-lit": "^2.1.1",
|
|
78
82
|
"eslint-plugin-prettier": "^5.5.4",
|
|
83
|
+
"eslint-plugin-storybook": "10.0.8",
|
|
79
84
|
"i": "^0.3.7",
|
|
80
|
-
"storybook": "10.0.0",
|
|
81
85
|
"lit": "^3.3.1",
|
|
82
86
|
"lit-analyzer": "^2.0.3",
|
|
83
87
|
"plop": "^4.0.4",
|
|
88
|
+
"rollup-plugin-esbuild-minify": "^1.3.0",
|
|
89
|
+
"rollup-plugin-minify-template-literals": "^1.1.7",
|
|
84
90
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
91
|
+
"sass": "^1.94.0",
|
|
85
92
|
"sinon": "^21.0.0",
|
|
93
|
+
"storybook": "10.0.8",
|
|
86
94
|
"tslib": "^2.8.1",
|
|
87
95
|
"typescript": "^5.9.3",
|
|
88
|
-
"vite": "^7.
|
|
96
|
+
"vite": "^7.2.2"
|
|
89
97
|
},
|
|
90
98
|
"eslintConfig": {
|
|
91
99
|
"extends": [
|
|
@@ -94,5 +102,6 @@
|
|
|
94
102
|
},
|
|
95
103
|
"overrides": {
|
|
96
104
|
"storybook": "$storybook"
|
|
97
|
-
}
|
|
105
|
+
},
|
|
106
|
+
"customElements": "dist/custom-elements.json"
|
|
98
107
|
}
|