You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Changed package name from @nhsdigital/nhs-fdp-design-system to @nhsdigital/fdp-design-system
- Updated all import references across docs, src, and config files
- Package name now matches the repo name and avoids redundant "nhs" prefix
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
exportdefaultfunction RootLayout({ children }: { children:React.ReactNode }) {
69
69
return (
@@ -124,13 +124,13 @@ Some interactive components adopt an explicit split to guarantee deterministic,
124
124
-`Component.tsx` – Client interactive variant that wraps the pure renderer and adds state, effects and data attributes for behaviours.
125
125
-`Component.server.tsx` – Server (static) variant invoking the pure renderer only. Contains no React hooks (enforced via `npm run verify:server-variants`).
126
126
127
-
Current migrated components: `Radios`, `Header` (exporting `RadiosServer`, `HeaderServer`). You can import server variants via `@nhsdigital/nhs-fdp-design-system/components/ComponentName/server`.
127
+
Current migrated components: `Radios`, `Header` (exporting `RadiosServer`, `HeaderServer`). You can import server variants via `@nhsdigital/fdp-design-system/components/ComponentName/server`.
exportdefaultfunction RootLayout({ children }: { children:React.ReactNode }) {
22
22
return (
@@ -34,7 +34,7 @@ export default function RootLayout({ children }: { children: React.ReactNode })
34
34
}
35
35
```
36
36
37
-
Alternative (legacy): If you can’t use the component, create your own client-only wrapper that imports '@nhsdigital/nhs-fdp-design-system/behaviours'. Note: avoid manual script tags (e.g. adding a src directly) – this is brittle in Next.js and won’t help SSR inline dynamic imports.
37
+
Alternative (legacy): If you can’t use the component, create your own client-only wrapper that imports '@nhsdigital/fdp-design-system/behaviours'. Note: avoid manual script tags (e.g. adding a src directly) – this is brittle in Next.js and won’t help SSR inline dynamic imports.
38
38
39
39
## How to Verify It's Working
40
40
@@ -64,7 +64,7 @@ So behaviours **automatically initialize** there. But in your Next.js app, nothi
64
64
65
65
## What the Behaviours Do
66
66
67
-
When you import `@nhsdigital/nhs-fdp-design-system/behaviours`, it:
67
+
When you import `@nhsdigital/fdp-design-system/behaviours`, it:
68
68
69
69
1.**Auto-initializes** on DOM ready (code at bottom of `behaviours/index.ts`)
70
70
2.**Finds all headers** on the page (`.nhsuk-header`)
@@ -80,9 +80,9 @@ Without this, you just get the static SSR markup with no interactivity.
80
80
81
81
```tsx
82
82
// app/layout.tsx
83
-
import'@nhsdigital/nhs-fdp-design-system/behaviours'// ← The magic line
0 commit comments