@civicactions/cmsds-open-data-components 4.0.6 → 4.0.8-alpha.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/README.md +22 -0
- package/dist/main.js +4 -2
- package/dist/main.js.map +1 -1
- package/package.json +9 -2
- package/scripts/README.md +119 -0
- package/scripts/generate-usage-report.cjs +445 -0
package/README.md
CHANGED
|
@@ -42,6 +42,28 @@ Stories use the CSF3 (Component Story Format 3) format. See existing stories in
|
|
|
42
42
|
|
|
43
43
|
Storybook integration is ongoing for this project. Some components and page templates may not yet have stories, and certain icons or styles from the CMS.gov design system might not display as intended in Storybook.
|
|
44
44
|
|
|
45
|
+
## Component Inventory
|
|
46
|
+
|
|
47
|
+
This project includes an automated script that generates a comprehensive inventory of all components, templates, services, hooks, contexts, utilities, and types.
|
|
48
|
+
|
|
49
|
+
### Generating the Inventory
|
|
50
|
+
|
|
51
|
+
To generate the inventory report:
|
|
52
|
+
```bash
|
|
53
|
+
npm run generate:inventory
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
This creates `COMPONENTS_INVENTORY.md` in the root directory with:
|
|
57
|
+
- Complete list of all library items
|
|
58
|
+
- Public export status
|
|
59
|
+
- Storybook story coverage
|
|
60
|
+
- Unit test coverage
|
|
61
|
+
- Quality metrics and statistics
|
|
62
|
+
|
|
63
|
+
The inventory is automatically updated on every commit via a pre-commit hook.
|
|
64
|
+
|
|
65
|
+
For more details, see the [Inventory Generator Documentation](scripts/README.md).
|
|
66
|
+
|
|
45
67
|
## Publishing new versions
|
|
46
68
|
|
|
47
69
|
### Clear out caches and previous build
|
package/dist/main.js
CHANGED
|
@@ -2258,13 +2258,14 @@ function $7264a673914aa746$export$2b9377795161999(type) {
|
|
|
2258
2258
|
|
|
2259
2259
|
|
|
2260
2260
|
|
|
2261
|
-
const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback })=>{
|
|
2261
|
+
const $64a351d3fd8413c3$var$HeaderResizeElement = ({ table: table, header: header, sortElement: sortElement, setAriaLiveFeedback: setAriaLiveFeedback, id: id })=>{
|
|
2262
2262
|
const [columnResizing, setColumnResizing] = (0, $hgUW1$useState)("");
|
|
2263
2263
|
return /*#__PURE__*/ (0, $hgUW1$jsxs)("th", {
|
|
2264
2264
|
key: header.id,
|
|
2265
2265
|
style: {
|
|
2266
2266
|
width: header.getSize()
|
|
2267
2267
|
},
|
|
2268
|
+
id: id,
|
|
2268
2269
|
title: typeof header.column.columnDef.header === "string" ? header.column.columnDef.header : "",
|
|
2269
2270
|
className: "ds-u-border-y--2 ds-u-padding--2 ds-u-border--dark ds-u-font-weight--bold",
|
|
2270
2271
|
"aria-sort": header.column.getIsSorted() === "asc" ? "ascending" : header.column.getIsSorted() === "desc" ? "descending" : "none",
|
|
@@ -5943,7 +5944,8 @@ const $6765a74df807d015$var$DataDictionaryTable = ({ tableColumns: tableColumns,
|
|
|
5943
5944
|
table: table,
|
|
5944
5945
|
header: header,
|
|
5945
5946
|
setAriaLiveFeedback: setAriaLiveFeedback,
|
|
5946
|
-
sortElement: sortElement
|
|
5947
|
+
sortElement: sortElement,
|
|
5948
|
+
id: "dataDictionary_" + header.id
|
|
5947
5949
|
}, header.id + "_resize") : /*#__PURE__*/ (0, $hgUW1$jsxs)((0, $hgUW1$TableCell), {
|
|
5948
5950
|
key: header.id,
|
|
5949
5951
|
className: `ds-u-border-y--2 ds-u-border--dark ds-u-border-x--0`,
|