@nysds/components 1.13.1 → 1.15.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/custom-elements.json +2061 -237
- package/dist/.vscode/vscode.css-custom-data.json +15 -0
- package/dist/.vscode/vscode.html-custom-data.json +158 -24
- package/dist/custom-elements.json +2061 -237
- package/dist/nysds.es.js +3178 -1988
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +442 -168
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-accordion/src/nys-accordion.d.ts +4 -0
- package/dist/packages/nys-button/src/nys-button.d.ts +8 -0
- package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +20 -0
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +15 -0
- package/dist/packages/nys-combobox/src/index.d.ts +1 -0
- package/dist/packages/nys-combobox/src/nys-combobox.d.ts +118 -0
- package/dist/packages/nys-combobox/src/nys-combobox.figma.d.ts +1 -0
- package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +74 -7
- package/dist/packages/nys-dropdownmenu/src/index.d.ts +2 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +110 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.figma.d.ts +1 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenuitem.d.ts +40 -0
- package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +8 -0
- package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +8 -0
- package/dist/packages/nys-label/src/nys-label.d.ts +5 -0
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +20 -0
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +9 -0
- package/dist/packages/nys-select/src/nys-select.d.ts +8 -0
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +8 -0
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +11 -1
- package/dist/packages/nys-toggle/src/nys-toggle.d.ts +10 -1
- package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +10 -1
- package/dist/src/index.d.ts +2 -0
- package/package.json +21 -17
- package/dist/nys-stepper/newsletter.html +0 -4
- package/dist/nys-stepper/personal.html +0 -6
- package/dist/nys-stepper/survey.html +0 -5
- package/dist/nys-stepper/team.html +0 -6
|
@@ -28,6 +28,14 @@ import { LitElement } from "lit";
|
|
|
28
28
|
*/
|
|
29
29
|
export declare class NysTextarea extends LitElement {
|
|
30
30
|
static styles: import("lit").CSSResult;
|
|
31
|
+
static shadowRootOptions: {
|
|
32
|
+
delegatesFocus: boolean;
|
|
33
|
+
clonable?: boolean;
|
|
34
|
+
customElementRegistry?: CustomElementRegistry;
|
|
35
|
+
mode: ShadowRootMode;
|
|
36
|
+
serializable?: boolean;
|
|
37
|
+
slotAssignment?: SlotAssignmentMode;
|
|
38
|
+
};
|
|
31
39
|
/** Unique identifier. Auto-generated if not provided. */
|
|
32
40
|
id: string;
|
|
33
41
|
/** Name for form submission. */
|
|
@@ -22,7 +22,7 @@ import { LitElement } from "lit";
|
|
|
22
22
|
* <nys-textinput label="Full Name" required></nys-textinput>
|
|
23
23
|
* ```
|
|
24
24
|
*
|
|
25
|
-
* @example Email
|
|
25
|
+
* @example Required Email
|
|
26
26
|
* ```html
|
|
27
27
|
* <nys-textinput type="email" label="Email Address" required></nys-textinput>
|
|
28
28
|
* ```
|
|
@@ -41,6 +41,14 @@ import { LitElement } from "lit";
|
|
|
41
41
|
*/
|
|
42
42
|
export declare class NysTextinput extends LitElement {
|
|
43
43
|
static styles: import("lit").CSSResult;
|
|
44
|
+
static shadowRootOptions: {
|
|
45
|
+
delegatesFocus: boolean;
|
|
46
|
+
clonable?: boolean;
|
|
47
|
+
customElementRegistry?: CustomElementRegistry;
|
|
48
|
+
mode: ShadowRootMode;
|
|
49
|
+
serializable?: boolean;
|
|
50
|
+
slotAssignment?: SlotAssignmentMode;
|
|
51
|
+
};
|
|
44
52
|
/** Unique identifier. Auto-generated if not provided. */
|
|
45
53
|
id: string;
|
|
46
54
|
/** Name for form submission. */
|
|
@@ -74,6 +82,8 @@ export declare class NysTextinput extends LitElement {
|
|
|
74
82
|
pattern: string;
|
|
75
83
|
/** Maximum character length. */
|
|
76
84
|
maxlength: number | null;
|
|
85
|
+
/** Accessible label. When set, assuming "label" isn't provided for private special cases (i.e., <checkbox other>). */
|
|
86
|
+
ariaLabel: string;
|
|
77
87
|
/**
|
|
78
88
|
* Input width: `sm` (88px), `md` (200px), `lg` (384px), `full` (100%, default).
|
|
79
89
|
* @default "full"
|
|
@@ -26,6 +26,14 @@ import { LitElement } from "lit";
|
|
|
26
26
|
*/
|
|
27
27
|
export declare class NysToggle extends LitElement {
|
|
28
28
|
static styles: import("lit").CSSResult;
|
|
29
|
+
static shadowRootOptions: {
|
|
30
|
+
delegatesFocus: boolean;
|
|
31
|
+
clonable?: boolean;
|
|
32
|
+
customElementRegistry?: CustomElementRegistry;
|
|
33
|
+
mode: ShadowRootMode;
|
|
34
|
+
serializable?: boolean;
|
|
35
|
+
slotAssignment?: SlotAssignmentMode;
|
|
36
|
+
};
|
|
29
37
|
/** Unique identifier. Auto-generated if not provided. */
|
|
30
38
|
id: string;
|
|
31
39
|
/** Name for form submission. */
|
|
@@ -72,7 +80,8 @@ export declare class NysToggle extends LitElement {
|
|
|
72
80
|
private _emitChangeEvent;
|
|
73
81
|
private _handleFocus;
|
|
74
82
|
private _handleBlur;
|
|
75
|
-
private
|
|
83
|
+
private _handleClick;
|
|
84
|
+
private _handleSliderClick;
|
|
76
85
|
private _handleKeyDown;
|
|
77
86
|
render(): import("lit-html").TemplateResult<1>;
|
|
78
87
|
}
|
|
@@ -20,6 +20,11 @@ import { LitElement } from "lit";
|
|
|
20
20
|
* <nys-unavheader hideSearch></nys-unavheader>
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
|
+
interface Language {
|
|
24
|
+
code: string;
|
|
25
|
+
label: string;
|
|
26
|
+
url?: string;
|
|
27
|
+
}
|
|
23
28
|
export declare class NysUnavHeader extends LitElement {
|
|
24
29
|
static styles: import("lit").CSSResult;
|
|
25
30
|
/** Internal: Whether trust bar panel is expanded. */
|
|
@@ -34,8 +39,10 @@ export declare class NysUnavHeader extends LitElement {
|
|
|
34
39
|
hideTranslate: boolean;
|
|
35
40
|
/** Hides the search functionality. */
|
|
36
41
|
hideSearch: boolean;
|
|
42
|
+
/** The URL endpoint of the search, make sure to include the query param. */
|
|
37
43
|
searchUrl: string;
|
|
38
|
-
|
|
44
|
+
/** The list of languages this site can be translated to, default to use Smartling */
|
|
45
|
+
languages: Language[];
|
|
39
46
|
/**
|
|
40
47
|
* Lifecycle Methods
|
|
41
48
|
* --------------------------------------------------------------------------
|
|
@@ -50,6 +57,7 @@ export declare class NysUnavHeader extends LitElement {
|
|
|
50
57
|
private _toggleTrustbar;
|
|
51
58
|
private _toggleLanguageList;
|
|
52
59
|
private _toggleSearchDropdown;
|
|
60
|
+
private _handleLanguageSelect;
|
|
53
61
|
private _handleSearchFocus;
|
|
54
62
|
private _handleSearchBlur;
|
|
55
63
|
private _handleSearchKeyup;
|
|
@@ -57,3 +65,4 @@ export declare class NysUnavHeader extends LitElement {
|
|
|
57
65
|
private _handleSearch;
|
|
58
66
|
render(): import("lit-html").TemplateResult<1>;
|
|
59
67
|
}
|
|
68
|
+
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -5,8 +5,10 @@ export * from "../packages/nys-backtotop/src/index";
|
|
|
5
5
|
export * from "../packages/nys-button/src/index";
|
|
6
6
|
export * from "../packages/nys-badge/src/index";
|
|
7
7
|
export * from "../packages/nys-checkbox/src/index";
|
|
8
|
+
export * from "../packages/nys-combobox/src/index";
|
|
8
9
|
export * from "../packages/nys-datepicker/src/index";
|
|
9
10
|
export * from "../packages/nys-divider/src/index";
|
|
11
|
+
export * from "../packages/nys-dropdownmenu/src/index";
|
|
10
12
|
export * from "../packages/nys-errormessage/src/index";
|
|
11
13
|
export * from "../packages/nys-fileinput/src/index";
|
|
12
14
|
export * from "../packages/nys-icon/src/index";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nysds/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "New York State's design system and code component library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"workspaces": [
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
"build": "tsc --emitDeclarationOnly && vite build",
|
|
28
28
|
"build:umd": "tsc --emitDeclarationOnly && vite build --config vite.config.umd.js",
|
|
29
29
|
"build:packages": "node src/scripts/build-order.js",
|
|
30
|
-
"build:all": "npm run clean:dist && npm run lint && cross-env NODE_ENV=production npm run build:packages && cross-env NODE_ENV=production npm run build && cross-env NODE_ENV=production npm run build:umd && npm run lit-analyze || true && npm run cem && npm run cem:copy",
|
|
30
|
+
"build:all": "npm run clean:dist && npm run lint && cross-env NODE_ENV=production npm run build:packages && cross-env NODE_ENV=production npm run build && cross-env NODE_ENV=production npm run build:umd && npm run lit-analyze || true && npm run cem && npm run cem:copy && npm run mcp-server:build",
|
|
31
31
|
"build:link": "npm run build:all && npm link",
|
|
32
|
-
"lint": "eslint",
|
|
33
|
-
"lint:fix": "eslint --fix",
|
|
32
|
+
"lint": "eslint && stylelint **/*.scss || true",
|
|
33
|
+
"lint:fix": "eslint --fix && stylelint **/*.scss --fix",
|
|
34
34
|
"lit-analyze": "find ./packages/nys-*/ -name '*.ts' ! -name '*.figma.*' | xargs lit-analyzer {}",
|
|
35
35
|
"release": "cross-env NODE_ENV=production npm run build:all && cross-env NODE_ENV=production npm run test && npm run cem && cross-env NODE_ENV=production npm publish --workspaces --access public && cross-env NODE_ENV=production npm publish --access public",
|
|
36
36
|
"release:dry-run": "cross-env NODE_ENV=production npm run build:all && cross-env NODE_ENV=production npm run test && npm run cem && node src/scripts/publish-dry-run.js",
|
|
@@ -41,8 +41,9 @@
|
|
|
41
41
|
"storybook:build:all": "cross-env NODE_ENV=production npm run build:all && npm run storybook",
|
|
42
42
|
"build-storybook": "npm run build:packages && storybook build",
|
|
43
43
|
"storybook:cibuild": "storybook build",
|
|
44
|
+
"mcp-server:build": "node src/scripts/build-mcp-server.js",
|
|
44
45
|
"clean:node": "rm -rf node_modules && rm -rf packages/*/node_modules && rm -rf packages/**/*/node_modules",
|
|
45
|
-
"clean:dist": "rm -rf storybook-static && rm -rf coverage && rm -rf packages/*/coverage && rm -rf dist &&
|
|
46
|
+
"clean:dist": "rm -rf storybook-static && rm -rf coverage && rm -rf packages/*/coverage && rm -rf dist && find packages -type d -name dist ! -path '*/mcp-server/dist' -exec rm -rf {} + 2>/dev/null || true",
|
|
46
47
|
"clean:all": "npm run clean:dist && npm run clean:node",
|
|
47
48
|
"code-connect": "dotenv -- npx figma connect publish",
|
|
48
49
|
"cem": "npx cem analyze --config ./custom-elements-manifest.config.mjs",
|
|
@@ -59,15 +60,15 @@
|
|
|
59
60
|
},
|
|
60
61
|
"homepage": "https://designsystem.ny.gov/",
|
|
61
62
|
"devDependencies": {
|
|
62
|
-
"@chromatic-com/storybook": "^5.0.
|
|
63
|
+
"@chromatic-com/storybook": "^5.0.1",
|
|
63
64
|
"@custom-elements-manifest/analyzer": "^0.11.0",
|
|
64
|
-
"@figma/code-connect": "^1.
|
|
65
|
+
"@figma/code-connect": "^1.4.0",
|
|
65
66
|
"@floating-ui/dom": "^1.7.4",
|
|
66
67
|
"@open-wc/testing": "^4.0.0",
|
|
67
|
-
"@storybook/addon-a11y": "10.2.
|
|
68
|
-
"@storybook/addon-docs": "10.2.
|
|
69
|
-
"@storybook/addon-links": "10.2.
|
|
70
|
-
"@storybook/web-components-vite": "10.2.
|
|
68
|
+
"@storybook/addon-a11y": "10.2.10",
|
|
69
|
+
"@storybook/addon-docs": "10.2.10",
|
|
70
|
+
"@storybook/addon-links": "10.2.10",
|
|
71
|
+
"@storybook/web-components-vite": "10.2.10",
|
|
71
72
|
"@types/mocha": "^10.0.10",
|
|
72
73
|
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
73
74
|
"@typescript-eslint/parser": "^8.46.2",
|
|
@@ -80,10 +81,10 @@
|
|
|
80
81
|
"custom-element-react-wrappers": "^1.7.3",
|
|
81
82
|
"custom-element-vs-code-integration": "^1.5.0",
|
|
82
83
|
"dotenv-cli": "^10.0.0",
|
|
83
|
-
"eslint": "^
|
|
84
|
-
"eslint-plugin-lit": "^2.
|
|
85
|
-
"eslint-plugin-prettier": "^5.5.
|
|
86
|
-
"eslint-plugin-storybook": "10.2.
|
|
84
|
+
"eslint": "^10.0.0",
|
|
85
|
+
"eslint-plugin-lit": "^2.2.1",
|
|
86
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
87
|
+
"eslint-plugin-storybook": "10.2.10",
|
|
87
88
|
"i": "^0.3.7",
|
|
88
89
|
"lit": "^3.3.1",
|
|
89
90
|
"lit-analyzer": "^2.0.3",
|
|
@@ -93,10 +94,13 @@
|
|
|
93
94
|
"rollup-plugin-visualizer": "^6.0.5",
|
|
94
95
|
"sass": "^1.94.0",
|
|
95
96
|
"sinon": "^21.0.0",
|
|
96
|
-
"storybook": "10.2.
|
|
97
|
+
"storybook": "10.2.10",
|
|
98
|
+
"stylelint": "^17.1.1",
|
|
99
|
+
"stylelint-config-standard": "^40.0.0",
|
|
100
|
+
"stylelint-config-standard-scss": "^17.0.0",
|
|
97
101
|
"tslib": "^2.8.1",
|
|
98
102
|
"typescript": "^5.9.3",
|
|
99
|
-
"vite": "^7.
|
|
103
|
+
"vite": "^7.3.1"
|
|
100
104
|
},
|
|
101
105
|
"eslintConfig": {
|
|
102
106
|
"extends": [
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<div style="padding: 2rem;">
|
|
2
|
-
<h2>Personal Details</h2>
|
|
3
|
-
<p>This is the form to enter your personal information. Fill in your name, address, and contact details here.</p>
|
|
4
|
-
<nys-textinput label="Name" required width="md"></nys-textinput>
|
|
5
|
-
<nys-textinput label="Agency Email" required width="md"></nys-textinput>
|
|
6
|
-
</div>
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<div style="padding: 2rem;">
|
|
2
|
-
<h2>Team Information</h2>
|
|
3
|
-
<p>Provide details about your team. Who are you working with? What is your role?</p>
|
|
4
|
-
<nys-textinput label="Agency Name" required width="md"></nys-textinput>
|
|
5
|
-
<nys-textinput label="Team Name" required width="md"></nys-textinput>
|
|
6
|
-
</div>
|