Commit 2f76c62
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
- packages
- react-ontario/src/components
- OntarioAccordion
- OntarioButton
- OntarioCallout
- OntarioCheckboxes
- OntarioCriticalAlert
- OntarioHeader
- OntarioInput
- OntarioPageAlert
- OntarioTable
- react-uswds/src/hooks/__tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
0 commit comments