@gov-components/layout-header-sidebar 1.0.0 → 1.0.1
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 +4 -9
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -24,19 +24,14 @@ Install the package via npm:
|
|
|
24
24
|
npm install @gov-components/layout-header-sidebar @gov-components/design-tokens
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
## Setup
|
|
27
|
+
## Setup
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
```tsx
|
|
32
|
-
// app/layout.tsx
|
|
33
|
-
import "@gov-components/design-tokens/dist/tokens-core.css"; // Essential styles
|
|
34
|
-
import "@gov-components/design-tokens/dist/typography.css"; // Fonts & Typo
|
|
35
|
-
// ... other imports
|
|
36
|
-
```
|
|
29
|
+
The library automatically handles style imports. You don't need to manually import design tokens anymore.
|
|
37
30
|
|
|
38
31
|
If you are using Next.js Transpile Packages (recommended for avoiding build errors):
|
|
39
32
|
|
|
33
|
+
|
|
34
|
+
|
|
40
35
|
```js
|
|
41
36
|
// next.config.ts
|
|
42
37
|
const nextConfig = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gov-components/layout-header-sidebar",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Reusable Header and Sidebar components for React/Next.js projects",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -45,6 +45,6 @@
|
|
|
45
45
|
"typescript": "^5.4.5"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@gov-components/design-tokens": "^1.0.
|
|
48
|
+
"@gov-components/design-tokens": "^1.0.5"
|
|
49
49
|
}
|
|
50
50
|
}
|