Skip to content

Commit 2f76c62

Browse files
Upgrade to React 19 and add Ontario Design System component specs
React 19 upgrade: - Root and component-lab devDeps: react/react-dom ^19.2.4, @types/react/react-dom ^19.0.0 - component-lab: bring @vitejs/plugin-react and vite in line with root (v6, v8) - Fix useUniqueId test regex: React 19 changed useId output from ":rN:" (stripped to "rN") to "_r_N_"; update pattern to match both formats Ontario Design System specs (packages/react-ontario/src/components/): - SPEC.md for all 10 Phase 1 components: OntarioButton, OntarioInput, OntarioHeader, OntarioFooter, OntarioPageAlert, OntarioCriticalAlert, OntarioCallout, OntarioAccordion, OntarioTable, OntarioCheckboxes - Each spec covers: user story, domain subcomponents, full prop table, rendering/variant/security/event/accessibility task lists with named tests - Security decisions documented per component: which props need safeHtml(), which need sanitizeHref(), which are pass-through only Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent f3ce25b commit 2f76c62

14 files changed

Lines changed: 743 additions & 647 deletions

File tree

apps/component-lab/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
"@sfgps-ds/react-uswds": "*",
1313
"@uswds/uswds": "3.13.0",
1414
"dompurify": "^3.0.0",
15-
"react": "^18.0.0",
16-
"react-dom": "^18.0.0",
15+
"react": "^19.2.4",
16+
"react-dom": "^19.2.4",
1717
"react-router-dom": "^7.0.0"
1818
},
1919
"devDependencies": {
2020
"@types/dompurify": "^3.0.5",
2121
"@types/node": "^24.0.0",
22-
"@types/react": "^18.0.0",
23-
"@types/react-dom": "^18.0.0",
24-
"@vitejs/plugin-react": "^4.0.0",
25-
"typescript": "~5.5.0",
26-
"vite": "^5.0.0"
22+
"@types/react": "^19.0.0",
23+
"@types/react-dom": "^19.0.0",
24+
"@vitejs/plugin-react": "^6.0.0",
25+
"typescript": "~5.8.0",
26+
"vite": "^8.0.0"
2727
}
2828
}

0 commit comments

Comments
 (0)