@nswds/ui 3.5.3 → 3.5.5

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.
Files changed (2) hide show
  1. package/README.md +4 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -5,10 +5,12 @@ Reusable design system components for NSW Government digital products. Accessibl
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @nswds/ui @nswds/tokens
8
+ npm install @nswds/ui
9
9
  ```
10
10
 
11
- Requires React 19. The package is ESM-only and ships compiled JavaScript, TypeScript types, and a precompiled stylesheet — no Tailwind setup is required to use it.
11
+ Requires React 19. The package is ESM-only and ships compiled JavaScript, TypeScript types, and a precompiled stylesheet — it needs no Tailwind setup and no separate `@nswds/tokens` install. `@nswds/ui/styles.css` already has the token values inlined; `@nswds/tokens` is a build-time dependency only.
12
+
13
+ > The **registry** channel is different: because it copies editable source (which references the raw token CSS) rather than the precompiled stylesheet, it _does_ install `@nswds/tokens`. See the [registry installation guide](https://github.com/digitalnsw/nswds-ui/blob/main/docs/installing-from-the-registry.md).
12
14
 
13
15
  ## Usage
14
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nswds/ui",
3
- "version": "3.5.3",
3
+ "version": "3.5.5",
4
4
  "description": "UI components for NSW Government digital products, providing reusable design elements and patterns for consistent user interfaces.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/digitalnsw/nswds-ui#readme",
@@ -52,7 +52,6 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@base-ui/react": "^1.5.0",
55
- "@nswds/tokens": "^4.1.0",
56
55
  "class-variance-authority": "^0.7.1",
57
56
  "clsx": "^2.1.1",
58
57
  "tailwind-merge": "^3.6.0"
@@ -63,6 +62,7 @@
63
62
  },
64
63
  "devDependencies": {
65
64
  "@arethetypeswrong/cli": "^0.18.3",
65
+ "@nswds/tokens": "^4.1.0",
66
66
  "@storybook/addon-docs": "10.5.0-alpha.2",
67
67
  "@storybook/react-vite": "10.5.0-alpha.2",
68
68
  "@tailwindcss/cli": "^4.3.0",