@nysds/components 1.16.0-alpha-3 → 1.16.0-alpha3
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 +45 -4
- package/dist/.vscode/vscode.html-custom-data.json +1 -58
- package/dist/custom-elements.json +671 -616
- package/dist/nysds.es.js +772 -721
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +37 -37
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +4 -2
- package/dist/packages/nys-table/src/nys-table.d.ts +12 -1
- package/dist/packages/react/nysds-jsx.d.ts +1411 -0
- package/package.json +6 -4
- package/packages/react/NysTable.d.ts +4 -0
- package/packages/react/NysTable.js +1 -0
- package/packages/react/index.d.ts +9 -9
- package/packages/react/index.js +9 -9
- package/packages/react/nysds-jsx.d.ts +1428 -0
- package/packages/react/react-utils.js +0 -2
- package/dist/packages/nys-video/src/index.d.ts +0 -1
- package/dist/packages/nys-video/src/nys-video.d.ts +0 -52
- package/dist/packages/nys-video/src/nys-video.figma.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nysds/components",
|
|
3
|
-
"version": "1.16.0-
|
|
3
|
+
"version": "1.16.0-alpha3",
|
|
4
4
|
"description": "New York State's design system and code component library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"workspaces": [
|
|
@@ -34,14 +34,15 @@
|
|
|
34
34
|
"tsc:packages": "tsc -b tsconfig.build.json",
|
|
35
35
|
"build:packages": "npm run tsc:packages && turbo run build --filter='./packages/*'",
|
|
36
36
|
"build:root": "cross-env NODE_ENV=production npm run build && cross-env NODE_ENV=production npm run build:umd",
|
|
37
|
-
"build:all": "npm run clean:dist && npm run lint && npm run lit-analyze || true&& cross-env NODE_ENV=production npm run build:packages && npm run build:root && npm run cem && npm run mcp-server:build",
|
|
38
|
-
"build:link": "npm run build:all && npm link",
|
|
37
|
+
"build:all": "npm run clean:dist && npm run lint && npm run lit-analyze || true && cross-env NODE_ENV=production npm run build:packages && npm run build:root && npm run cem && npm run mcp-server:build",
|
|
38
|
+
"build:link": "npm run build:all && npm link && cd packages/styles && npm link",
|
|
39
39
|
"lint": "eslint --cache --cache-location node_modules/.cache/eslint && stylelint **/*.scss || true",
|
|
40
40
|
"lint:fix": "eslint --fix && stylelint **/*.scss --fix",
|
|
41
41
|
"lit-analyze": "find ./packages/nys-*/ -name '*.ts' ! -name '*.figma.*' | xargs lit-analyzer {}",
|
|
42
42
|
"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",
|
|
43
43
|
"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",
|
|
44
44
|
"release:alpha": "npm run build && npm run build:umd && npm publish --tag next",
|
|
45
|
+
"release:zip": "npm run build:all && node src/scripts/create-release-zip.js",
|
|
45
46
|
"test": "npx playwright install && wtr --node-resolve",
|
|
46
47
|
"test:build": "npm run build:all && npm run test",
|
|
47
48
|
"storybook": "cross-env NODE_ENV=production storybook dev -p 6006",
|
|
@@ -85,6 +86,7 @@
|
|
|
85
86
|
"@web/test-runner-commands": "^0.9.0",
|
|
86
87
|
"@web/test-runner-playwright": "^0.11.1",
|
|
87
88
|
"cross-env": "^10.1.0",
|
|
89
|
+
"custom-element-jsx-integration": "^1.6.0",
|
|
88
90
|
"custom-element-react-wrappers": "^1.7.3",
|
|
89
91
|
"custom-element-vs-code-integration": "^1.5.0",
|
|
90
92
|
"dotenv-cli": "^10.0.0",
|
|
@@ -106,8 +108,8 @@
|
|
|
106
108
|
"stylelint-config-standard": "^40.0.0",
|
|
107
109
|
"stylelint-config-standard-scss": "^17.0.0",
|
|
108
110
|
"tslib": "^2.8.1",
|
|
111
|
+
"turbo": "^2.8.20",
|
|
109
112
|
"typescript": "^5.9.3",
|
|
110
|
-
"turbo": "^2.8.16",
|
|
111
113
|
"vite": "^7.3.1"
|
|
112
114
|
},
|
|
113
115
|
"eslintConfig": {
|
|
@@ -59,6 +59,9 @@ export interface NysTableProps extends Pick<
|
|
|
59
59
|
|
|
60
60
|
/** Fired when the download button or sortable headers are clicked. */
|
|
61
61
|
onNysClick?: (event: CustomEvent) => void;
|
|
62
|
+
|
|
63
|
+
/** Fired when a sortable column header is clicked. Can be prevented by calling `event.preventDefault()` to override default sort behavior. Detail: { columnIndex: number, columnLabel: string, sortDirection: "asc" | "desc" | "none" } */
|
|
64
|
+
onNysColumnSort?: (event: CustomEvent) => void;
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
/**
|
|
@@ -69,6 +72,7 @@ export interface NysTableProps extends Pick<
|
|
|
69
72
|
*
|
|
70
73
|
* ### **Events:**
|
|
71
74
|
* - **nys-click** - Fired when the download button or sortable headers are clicked.
|
|
75
|
+
* - **nys-column-sort** - Fired when a sortable column header is clicked. Can be prevented by calling `event.preventDefault()` to override default sort behavior. Detail: { columnIndex: number, columnLabel: string, sortDirection: "asc" | "desc" | "none" }
|
|
72
76
|
*
|
|
73
77
|
* ### **Slots:**
|
|
74
78
|
* - _default_ - Accepts a `<table>` element. Only the first table is rendered.
|
|
@@ -9,6 +9,7 @@ export const NysTable = forwardRef((props, forwardedRef) => {
|
|
|
9
9
|
|
|
10
10
|
/** Event listeners - run once */
|
|
11
11
|
useEventListener(ref, "nys-click", props.onNysClick);
|
|
12
|
+
useEventListener(ref, "nys-column-sort", props.onNysColumnSort);
|
|
12
13
|
|
|
13
14
|
return React.createElement(
|
|
14
15
|
"nys-table",
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
export * from "./NysAccordion.js";
|
|
2
2
|
export * from "./NysAccordionItem.js";
|
|
3
|
-
export * from "./NysAvatar.js";
|
|
4
3
|
export * from "./NysAlert.js";
|
|
5
|
-
export * from "./
|
|
4
|
+
export * from "./NysAvatar.js";
|
|
6
5
|
export * from "./NysBacktotop.js";
|
|
6
|
+
export * from "./NysBadge.js";
|
|
7
7
|
export * from "./NysButton.js";
|
|
8
8
|
export * from "./NysCheckbox.js";
|
|
9
9
|
export * from "./NysCheckboxgroup.js";
|
|
10
|
+
export * from "./NysCombobox.js";
|
|
10
11
|
export * from "./NysDatepicker.js";
|
|
11
12
|
export * from "./NysDivider.js";
|
|
12
13
|
export * from "./NysDropdownMenu.js";
|
|
13
14
|
export * from "./NysDropdownMenuItem.js";
|
|
14
15
|
export * from "./NysErrorMessage.js";
|
|
15
|
-
export * from "./NysGlobalFooter.js";
|
|
16
16
|
export * from "./NysFileinput.js";
|
|
17
17
|
export * from "./NysFileItem.js";
|
|
18
|
+
export * from "./NysGlobalFooter.js";
|
|
18
19
|
export * from "./NysGlobalHeader.js";
|
|
19
20
|
export * from "./NysIcon.js";
|
|
20
21
|
export * from "./NysLabel.js";
|
|
22
|
+
export * from "./NysModal.js";
|
|
21
23
|
export * from "./NysPagination.js";
|
|
24
|
+
export * from "./NysRadiobutton.js";
|
|
25
|
+
export * from "./NysRadiogroup.js";
|
|
22
26
|
export * from "./NysOption.js";
|
|
23
27
|
export * from "./NysSelect.js";
|
|
24
28
|
export * from "./NysSkipnav.js";
|
|
25
29
|
export * from "./NysStep.js";
|
|
26
30
|
export * from "./NysStepper.js";
|
|
27
|
-
export * from "./NysModal.js";
|
|
28
31
|
export * from "./NysTable.js";
|
|
29
32
|
export * from "./NysTextarea.js";
|
|
30
|
-
export * from "./NysRadiobutton.js";
|
|
31
|
-
export * from "./NysRadiogroup.js";
|
|
32
|
-
export * from "./NysCombobox.js";
|
|
33
|
-
export * from "./NysToggle.js";
|
|
34
33
|
export * from "./NysTextinput.js";
|
|
34
|
+
export * from "./NysToggle.js";
|
|
35
35
|
export * from "./NysTooltip.js";
|
|
36
|
-
export * from "./NysUnavHeader.js";
|
|
37
36
|
export * from "./NysUnavFooter.js";
|
|
37
|
+
export * from "./NysUnavHeader.js";
|
package/packages/react/index.js
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
export * from "./NysAccordion.js";
|
|
2
2
|
export * from "./NysAccordionItem.js";
|
|
3
|
-
export * from "./NysAvatar.js";
|
|
4
3
|
export * from "./NysAlert.js";
|
|
5
|
-
export * from "./
|
|
4
|
+
export * from "./NysAvatar.js";
|
|
6
5
|
export * from "./NysBacktotop.js";
|
|
6
|
+
export * from "./NysBadge.js";
|
|
7
7
|
export * from "./NysButton.js";
|
|
8
8
|
export * from "./NysCheckbox.js";
|
|
9
9
|
export * from "./NysCheckboxgroup.js";
|
|
10
|
+
export * from "./NysCombobox.js";
|
|
10
11
|
export * from "./NysDatepicker.js";
|
|
11
12
|
export * from "./NysDivider.js";
|
|
12
13
|
export * from "./NysDropdownMenu.js";
|
|
13
14
|
export * from "./NysDropdownMenuItem.js";
|
|
14
15
|
export * from "./NysErrorMessage.js";
|
|
15
|
-
export * from "./NysGlobalFooter.js";
|
|
16
16
|
export * from "./NysFileinput.js";
|
|
17
17
|
export * from "./NysFileItem.js";
|
|
18
|
+
export * from "./NysGlobalFooter.js";
|
|
18
19
|
export * from "./NysGlobalHeader.js";
|
|
19
20
|
export * from "./NysIcon.js";
|
|
20
21
|
export * from "./NysLabel.js";
|
|
22
|
+
export * from "./NysModal.js";
|
|
21
23
|
export * from "./NysPagination.js";
|
|
24
|
+
export * from "./NysRadiobutton.js";
|
|
25
|
+
export * from "./NysRadiogroup.js";
|
|
22
26
|
export * from "./NysOption.js";
|
|
23
27
|
export * from "./NysSelect.js";
|
|
24
28
|
export * from "./NysSkipnav.js";
|
|
25
29
|
export * from "./NysStep.js";
|
|
26
30
|
export * from "./NysStepper.js";
|
|
27
|
-
export * from "./NysModal.js";
|
|
28
31
|
export * from "./NysTable.js";
|
|
29
32
|
export * from "./NysTextarea.js";
|
|
30
|
-
export * from "./NysRadiobutton.js";
|
|
31
|
-
export * from "./NysRadiogroup.js";
|
|
32
|
-
export * from "./NysCombobox.js";
|
|
33
|
-
export * from "./NysToggle.js";
|
|
34
33
|
export * from "./NysTextinput.js";
|
|
34
|
+
export * from "./NysToggle.js";
|
|
35
35
|
export * from "./NysTooltip.js";
|
|
36
|
-
export * from "./NysUnavHeader.js";
|
|
37
36
|
export * from "./NysUnavFooter.js";
|
|
37
|
+
export * from "./NysUnavHeader.js";
|