@nysds/components 1.10.0 → 1.11.0
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/nysds.es.js +1766 -1744
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +309 -226
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +1 -0
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +2 -0
- package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +1 -0
- package/dist/packages/nys-label/src/nys-label.d.ts +1 -1
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +1 -0
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +2 -0
- package/dist/packages/nys-select/src/nys-select.d.ts +1 -0
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +2 -1
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +1 -0
- package/dist/packages/nys-toggle/src/nys-toggle.d.ts +1 -0
- package/package.json +35 -41
- package/dist/packages/nys-stepper/src/index.d.ts +0 -2
- package/dist/packages/nys-stepper/src/nys-step.d.ts +0 -14
- package/dist/packages/nys-stepper/src/nys-stepper.d.ts +0 -22
- package/dist/packages/nys-stepper/src/nys-stepper.styles.d.ts +0 -2
|
@@ -10,6 +10,7 @@ export declare class NysCheckboxgroup extends LitElement {
|
|
|
10
10
|
description: string;
|
|
11
11
|
tile: boolean;
|
|
12
12
|
_tooltip: string;
|
|
13
|
+
inverted: boolean;
|
|
13
14
|
form: string | null;
|
|
14
15
|
private _slottedDescriptionText;
|
|
15
16
|
private static readonly VALID_SIZES;
|
|
@@ -31,6 +32,7 @@ export declare class NysCheckboxgroup extends LitElement {
|
|
|
31
32
|
private _manageRequire;
|
|
32
33
|
private _updateCheckboxSize;
|
|
33
34
|
private _updateCheckboxTile;
|
|
35
|
+
private _updateCheckboxInvert;
|
|
34
36
|
private _updateCheckboxShowError;
|
|
35
37
|
private _updateCheckboxForm;
|
|
36
38
|
private _getSlotDescriptionForAria;
|
|
@@ -10,6 +10,7 @@ export declare class NysRadiogroup extends LitElement {
|
|
|
10
10
|
description: string;
|
|
11
11
|
tile: boolean;
|
|
12
12
|
_tooltip: string;
|
|
13
|
+
inverted: boolean;
|
|
13
14
|
form: string | null;
|
|
14
15
|
private selectedValue;
|
|
15
16
|
private _slottedDescriptionText;
|
|
@@ -41,6 +42,7 @@ export declare class NysRadiogroup extends LitElement {
|
|
|
41
42
|
private _initializeChildAttributes;
|
|
42
43
|
private _updateRadioButtonsSize;
|
|
43
44
|
private _updateRadioButtonsTile;
|
|
45
|
+
private _updateRadioButtonsInvert;
|
|
44
46
|
private _updateRadioButtonsShowError;
|
|
45
47
|
private _updateRadioButtonsForm;
|
|
46
48
|
private _getSlotDescriptionForAria;
|
|
@@ -11,8 +11,9 @@ export declare class NysTextarea extends LitElement {
|
|
|
11
11
|
required: boolean;
|
|
12
12
|
optional: boolean;
|
|
13
13
|
_tooltip: string;
|
|
14
|
+
inverted: boolean;
|
|
14
15
|
form: string | null;
|
|
15
|
-
maxlength: null;
|
|
16
|
+
maxlength: number | null;
|
|
16
17
|
private static readonly VALID_WIDTHS;
|
|
17
18
|
width: (typeof NysTextarea.VALID_WIDTHS)[number];
|
|
18
19
|
rows: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nysds/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "New York State's design system and code component library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"workspaces": [
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
],
|
|
9
9
|
"files": [
|
|
10
10
|
"dist/",
|
|
11
|
-
"!
|
|
11
|
+
"!nys-stepper/"
|
|
12
12
|
],
|
|
13
13
|
"main": "dist/nysds.js",
|
|
14
14
|
"module": "dist/nysds.es.js",
|
|
@@ -26,18 +26,18 @@
|
|
|
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 && npm run build:packages && npm run build && 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",
|
|
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 'packages/**/*.ts'",
|
|
34
|
-
"release:dry-run": "NODE_ENV=production npm run build:all && NODE_ENV=production npm run test && node src/scripts/publish-dry-run.js",
|
|
35
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",
|
|
36
36
|
"release:alpha": "npm run build && npm run build:umd && npm publish --tag next",
|
|
37
|
-
"test": "wtr --node-resolve",
|
|
38
|
-
"test:build": "npm run build:all &&
|
|
39
|
-
"storybook": "storybook dev -p 6006",
|
|
40
|
-
"storybook:build:all": "npm run build:all &&
|
|
37
|
+
"test": "npx playwright install && wtr --node-resolve",
|
|
38
|
+
"test:build": "npm run build:all && npm run test",
|
|
39
|
+
"storybook": "NODE_ENV=production storybook dev -p 6006",
|
|
40
|
+
"storybook:build:all": "NODE_ENV=production npm run build:all && npm run storybook",
|
|
41
41
|
"build-storybook": "npm run build:packages && storybook build",
|
|
42
42
|
"storybook:cibuild": "storybook build",
|
|
43
43
|
"clean:node": "rm -rf node_modules && rm -rf packages/*/node_modules",
|
|
@@ -55,43 +55,37 @@
|
|
|
55
55
|
"url": "https://github.com/ITS-HCD/nysds/issues"
|
|
56
56
|
},
|
|
57
57
|
"homepage": "https://github.com/ITS-HCD/nysds/blob/main/README.md",
|
|
58
|
-
"dependencies": {
|
|
59
|
-
"@figma/code-connect": "^1.3.1",
|
|
60
|
-
"@floating-ui/dom": "^1.7.1",
|
|
61
|
-
"lit-analyzer": "^2.0.3"
|
|
62
|
-
},
|
|
63
58
|
"devDependencies": {
|
|
64
|
-
"@chromatic-com/storybook": "^4.1.
|
|
65
|
-
"@
|
|
66
|
-
"@
|
|
67
|
-
"@storybook/addon-
|
|
68
|
-
"@storybook/addon-
|
|
69
|
-
"@storybook/
|
|
70
|
-
"@
|
|
71
|
-
"@
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
59
|
+
"@chromatic-com/storybook": "^4.1.1",
|
|
60
|
+
"@figma/code-connect": "^1.3.7",
|
|
61
|
+
"@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
|
+
"@open-wc/testing": "^4.0.0",
|
|
67
|
+
"@types/mocha": "^10.0.10",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
69
|
+
"@typescript-eslint/parser": "^8.46.2",
|
|
70
|
+
"@web/dev-server-esbuild": "^1.0.4",
|
|
71
|
+
"@web/test-runner": "^0.20.2",
|
|
75
72
|
"@web/test-runner-commands": "^0.9.0",
|
|
76
|
-
"@web/test-runner-playwright": "^0.11.
|
|
73
|
+
"@web/test-runner-playwright": "^0.11.1",
|
|
77
74
|
"dotenv-cli": "^10.0.0",
|
|
78
|
-
"eslint": "
|
|
79
|
-
"eslint
|
|
80
|
-
"eslint-plugin-
|
|
81
|
-
"eslint-plugin-
|
|
75
|
+
"eslint-plugin-storybook": "10.0.0",
|
|
76
|
+
"eslint": "^9.38.0",
|
|
77
|
+
"eslint-plugin-lit": "^2.1.1",
|
|
78
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
82
79
|
"i": "^0.3.7",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"tslib": "^2.
|
|
90
|
-
"typescript": "^5.
|
|
91
|
-
"vite": "^
|
|
92
|
-
},
|
|
93
|
-
"peerDependencies": {
|
|
94
|
-
"lit": "^3.2.1"
|
|
80
|
+
"storybook": "10.0.0",
|
|
81
|
+
"lit": "^3.3.1",
|
|
82
|
+
"lit-analyzer": "^2.0.3",
|
|
83
|
+
"plop": "^4.0.4",
|
|
84
|
+
"rollup-plugin-visualizer": "^6.0.5",
|
|
85
|
+
"sinon": "^21.0.0",
|
|
86
|
+
"tslib": "^2.8.1",
|
|
87
|
+
"typescript": "^5.9.3",
|
|
88
|
+
"vite": "^7.1.2"
|
|
95
89
|
},
|
|
96
90
|
"eslintConfig": {
|
|
97
91
|
"extends": [
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
export declare class NysStep extends LitElement {
|
|
3
|
-
selected: boolean;
|
|
4
|
-
current: boolean;
|
|
5
|
-
label: string;
|
|
6
|
-
href: string;
|
|
7
|
-
isCompactExpanded: boolean;
|
|
8
|
-
onClick?: (e: Event) => void;
|
|
9
|
-
stepNumber: number;
|
|
10
|
-
static styles: import("lit").CSSResult;
|
|
11
|
-
private _handleActivate;
|
|
12
|
-
private _handleKeydown;
|
|
13
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import "./nys-step";
|
|
3
|
-
export declare class NysStepper extends LitElement {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
label: string;
|
|
7
|
-
counterText: string;
|
|
8
|
-
isCompactExpanded: boolean;
|
|
9
|
-
static styles: import("lit").CSSResult;
|
|
10
|
-
private _stepsNumbered;
|
|
11
|
-
constructor();
|
|
12
|
-
connectedCallback(): void;
|
|
13
|
-
disconnectedCallback(): void;
|
|
14
|
-
private _validateSteps;
|
|
15
|
-
private _validateButtonSlot;
|
|
16
|
-
private _onStepClick;
|
|
17
|
-
private _updateCounter;
|
|
18
|
-
updated(): void;
|
|
19
|
-
private _toggleCompact;
|
|
20
|
-
private _handleCounterKeydown;
|
|
21
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
22
|
-
}
|