@wallarm-org/design-system 3.0.0 → 3.1.0
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 +3 -3
- package/dist/metadata/components.json +2 -2
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -96,13 +96,13 @@ pnpm build
|
|
|
96
96
|
|
|
97
97
|
Icons in `src/icons/` are generated from the [WADS-Iconography](https://www.figma.com/design/ezgUqbCqEBXqC4ViRausYIAN/WADS-Iconography?node-id=5702-845) Figma page — don't edit them by hand.
|
|
98
98
|
|
|
99
|
-
To get a `
|
|
99
|
+
To get a `FIGMA_ACCESS_TOKEN`:
|
|
100
100
|
|
|
101
101
|
1. Sign in to Figma with the account that can open WADS-Iconography (your Wallarm account, not a personal one).
|
|
102
102
|
2. Account menu (top left) → **Settings** → **Security** → **Personal access tokens** → **Generate new token**.
|
|
103
103
|
3. Name it (e.g. `wallarm-icons-sync`), pick an expiration, and set the scopes: **File content → Read-only**. Leave every other scope at **No access** — the sync only reads the page and exports SVGs.
|
|
104
104
|
4. Copy the token right away — Figma shows it only once.
|
|
105
|
-
5. Add `
|
|
105
|
+
5. Add `FIGMA_ACCESS_TOKEN=figd_…` to the repo-root `.env.local` (git-ignored). Never commit it or paste it into chats or PRs. If it leaks, revoke it on the same Settings page.
|
|
106
106
|
|
|
107
107
|
Then:
|
|
108
108
|
|
|
@@ -112,7 +112,7 @@ pnpm --filter @wallarm-org/design-system icons:sync --category 'Edit & Text' #
|
|
|
112
112
|
pnpm --filter @wallarm-org/design-system icons:sync --only Bell,BellOff # refresh just these
|
|
113
113
|
```
|
|
114
114
|
|
|
115
|
-
The command writes the component files, `src/icons/index.ts`, the gallery category (`module/const.ts`) and Code Connect (`module/Icons.figma.
|
|
115
|
+
The command writes the component files, `src/icons/index.ts`, the gallery category (`module/const.ts`) and Code Connect (`module/Icons.figma.batch.json` + its `Icons.figma.batch.ts` template). `scripts/icons/manifest.json` maps Figma nodes to component names, and also holds excluded nodes and the `keep` list of hand-maintained icons. When a new layer's name collides with an existing icon, map it there. Brand icons without a Neutral variant in Figma get a generated `*Neutral` twin. Commit with `[update-screenshots]` so CI refreshes the icon gallery baselines.
|
|
116
116
|
|
|
117
117
|
- [Storybook](https://wallarm.github.io/design-system/) - Interactive examples
|
|
118
118
|
- [NPM](https://www.npmjs.com/package/@wallarm-org/design-system) - NPM package
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wallarm-org/design-system",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Core design system library with React components and Storybook documentation",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -87,12 +87,14 @@
|
|
|
87
87
|
"e2e:docker:ui": "playwright test --config=playwright.config.docker.ts --ui",
|
|
88
88
|
"e2e:docker:failed": "playwright test --config=playwright.config.docker.ts --last-failed",
|
|
89
89
|
"e2e:docker:report": "playwright show-report ./playwright-report --port=9323",
|
|
90
|
-
"icons:sync": "tsx scripts/icons/sync.ts"
|
|
90
|
+
"icons:sync": "tsx scripts/icons/sync.ts",
|
|
91
|
+
"code-connect:preview": "node --env-file-if-exists=../../.env.local node_modules/@figma/code-connect/bin/figma connect preview",
|
|
92
|
+
"code-connect:publish": "node --env-file-if-exists=../../.env.local node_modules/@figma/code-connect/bin/figma connect publish --exit-on-unreadable-files"
|
|
91
93
|
},
|
|
92
94
|
"devDependencies": {
|
|
93
95
|
"@babel/core": "7.29.7",
|
|
94
96
|
"@babel/preset-typescript": "7.29.7",
|
|
95
|
-
"@figma/code-connect": "
|
|
97
|
+
"@figma/code-connect": "2.0.2",
|
|
96
98
|
"@internationalized/date": "3.12.4",
|
|
97
99
|
"@lezer/generator": "1.8.1",
|
|
98
100
|
"@rsbuild/core": "catalog:",
|