@synergy-design-system/mcp 1.1.0 → 1.2.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/CHANGELOG.md +14 -0
- package/metadata/checksum.txt +1 -1
- package/metadata/packages/components/components/syn-combobox/component.styles.ts +2 -1
- package/metadata/packages/components/components/syn-menu-label/component.angular.ts +2 -2
- package/metadata/packages/components/components/syn-menu-label/component.react.ts +2 -2
- package/metadata/packages/components/components/syn-menu-label/component.ts +2 -2
- package/metadata/packages/components/components/syn-menu-label/component.vue +2 -2
- package/metadata/packages/components/components/syn-select/component.custom.styles.ts +2 -1
- package/metadata/packages/components/components/syn-tab-group/component.angular.ts +1 -1
- package/metadata/packages/components/components/syn-tab-group/component.react.ts +1 -1
- package/metadata/packages/components/components/syn-tab-group/component.ts +1 -1
- package/metadata/packages/components/components/syn-tab-group/component.vue +1 -1
- package/metadata/packages/components/migration/migration-synergy-v3.md +95 -1
- package/metadata/packages/components/static/CHANGELOG.md +7 -0
- package/metadata/packages/components/static/README.md +44 -0
- package/metadata/packages/tokens/CHANGELOG.md +7 -0
- package/metadata/packages/tokens/README.md +40 -17
- package/metadata/packages/tokens/dark.css +6 -6
- package/metadata/packages/tokens/index.js +1 -1
- package/metadata/packages/tokens/light.css +6 -6
- package/metadata/packages/tokens/sick2018_dark.css +268 -0
- package/metadata/packages/tokens/sick2018_light.css +268 -0
- package/metadata/packages/tokens/sick2025_dark.css +268 -0
- package/metadata/packages/tokens/sick2025_light.css +268 -0
- package/metadata/static/components/syn-dialog/docs.md +1 -3
- package/metadata/static/components/syn-drawer/docs.md +1 -3
- package/metadata/static/setup/icon-usage.md +136 -1
- package/package.json +8 -5
|
@@ -32,7 +32,8 @@ This can either be done manually or with the help of the bundler.
|
|
|
32
32
|
|
|
33
33
|
With the upgrade to Synergy 3.0, new icons will be used.
|
|
34
34
|
Those icons are already available as assets in the \`@synergy-design-system/assets\` package.
|
|
35
|
-
When using the new icons, you have to make sure that the icons are available in the \`assets/icons/\` directory of your project
|
|
35
|
+
When using the new icons, you have to make sure that the icons are available in the \`assets/icons/\` directory of your project.
|
|
36
|
+
The new SICK 2025 icons will be available as `outline` and `fill` variant. `Outline` is the default icon variant and should be used in most cases. `Fill` icons have a slighty different naming. They have the same name as the `outline` icons, but with a suffix of `_fill`. If the `fill` icons should be used without the `_fill` suffix, the icon names need to be renamed. For some examples see the following subchapters.
|
|
36
37
|
|
|
37
38
|
System icons come bundled with the \`@synergy-design-system/components\` package. You may switch to the new icons with the new \`setSystemIconLibrary\` utility provided.
|
|
38
39
|
Please have a look at the following example to see how to switch the icon library.
|
|
@@ -58,7 +59,10 @@ For more information have a look at the [angular documentation](https://angular.
|
|
|
58
59
|
|
|
59
60
|
Here's an example that copies the Synergy icons to the path **assets/icons/** of an angular project:
|
|
60
61
|
|
|
62
|
+
##### Synergy icons SICK 2018
|
|
63
|
+
|
|
61
64
|
```json
|
|
65
|
+
// angular.json
|
|
62
66
|
"assets": [
|
|
63
67
|
{
|
|
64
68
|
"glob": "**/*",
|
|
@@ -68,12 +72,56 @@ Here's an example that copies the Synergy icons to the path **assets/icons/** of
|
|
|
68
72
|
],
|
|
69
73
|
```
|
|
70
74
|
|
|
75
|
+
```html
|
|
76
|
+
<!-- Usage -->
|
|
77
|
+
<syn-icon name="wallpaper"> <syn-icon /></syn-icon>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
##### Synergy icons SICK 2025 outline
|
|
81
|
+
|
|
82
|
+
```json
|
|
83
|
+
// angular.json
|
|
84
|
+
"assets": [
|
|
85
|
+
{
|
|
86
|
+
"glob": "**/*",
|
|
87
|
+
"input": "./node_modules/@synergy-design-system/assets/src/sick2025/outline",
|
|
88
|
+
"output": "/assets/icons"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
```html
|
|
94
|
+
<!-- Usage -->
|
|
95
|
+
<syn-icon name="wallpaper"> <syn-icon /></syn-icon>
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
##### Synergy icons SICK 2025 fill
|
|
99
|
+
|
|
100
|
+
```json
|
|
101
|
+
// angular.json
|
|
102
|
+
"assets": [
|
|
103
|
+
{
|
|
104
|
+
"glob": "**/*",
|
|
105
|
+
"input": "./node_modules/@synergy-design-system/assets/src/sick2025/fill",
|
|
106
|
+
"output": "/assets/icons"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
```html
|
|
112
|
+
<!-- Usage -->
|
|
113
|
+
<syn-icon name="wallpaper_fill"> <syn-icon /></syn-icon>
|
|
114
|
+
```
|
|
115
|
+
|
|
71
116
|
#### Vite
|
|
72
117
|
|
|
73
118
|
Including assets from another library in vite project can be achieved via using the [vite-plugin-static-copy plugin](https://www.npmjs.com/package/vite-plugin-static-copy).
|
|
74
119
|
Here's an example with adapted vite.config.ts that copies the Synergy icons to the path **assets/icons/** of a vite project:
|
|
75
120
|
|
|
121
|
+
##### Synergy icons SICK 2018
|
|
122
|
+
|
|
76
123
|
```js
|
|
124
|
+
// Vite config
|
|
77
125
|
import { defineConfig } from "vite";
|
|
78
126
|
import { viteStaticCopy } from "vite-plugin-static-copy";
|
|
79
127
|
|
|
@@ -91,6 +139,93 @@ export default defineConfig({
|
|
|
91
139
|
});
|
|
92
140
|
```
|
|
93
141
|
|
|
142
|
+
```html
|
|
143
|
+
<!-- Usage -->
|
|
144
|
+
<syn-icon name="wallpaper"> <syn-icon /></syn-icon>
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
##### Synergy icons SICK 2025 outline
|
|
148
|
+
|
|
149
|
+
```js
|
|
150
|
+
// Vite config
|
|
151
|
+
import { defineConfig } from "vite";
|
|
152
|
+
import { viteStaticCopy } from "vite-plugin-static-copy";
|
|
153
|
+
|
|
154
|
+
export default defineConfig({
|
|
155
|
+
plugins: [
|
|
156
|
+
viteStaticCopy({
|
|
157
|
+
targets: [
|
|
158
|
+
{
|
|
159
|
+
src: "node_modules/@synergy-design-system/assets/src/sick2025/outline/*",
|
|
160
|
+
dest: "./assets/icons/",
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
}),
|
|
164
|
+
],
|
|
165
|
+
});
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
```html
|
|
169
|
+
<!-- Usage -->
|
|
170
|
+
<syn-icon name="wallpaper"> <syn-icon /></syn-icon>
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
##### Synergy icons SICK 2025 fill
|
|
174
|
+
|
|
175
|
+
Usage with `_fill` suffix:
|
|
176
|
+
|
|
177
|
+
```js
|
|
178
|
+
// Vite config
|
|
179
|
+
import { defineConfig } from "vite";
|
|
180
|
+
import { viteStaticCopy } from "vite-plugin-static-copy";
|
|
181
|
+
|
|
182
|
+
export default defineConfig({
|
|
183
|
+
plugins: [
|
|
184
|
+
viteStaticCopy({
|
|
185
|
+
targets: [
|
|
186
|
+
{
|
|
187
|
+
src: "node_modules/@synergy-design-system/assets/src/sick2025/fill/*",
|
|
188
|
+
dest: "./assets/icons/",
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
}),
|
|
192
|
+
],
|
|
193
|
+
});
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
```html
|
|
197
|
+
<!-- Usage -->
|
|
198
|
+
<syn-icon name="wallpaper_fill"> <syn-icon /></syn-icon>
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
Usage without `_fill` suffix by renaming files:
|
|
202
|
+
|
|
203
|
+
```js
|
|
204
|
+
// Vite config
|
|
205
|
+
import { defineConfig } from "vite";
|
|
206
|
+
import { viteStaticCopy } from "vite-plugin-static-copy";
|
|
207
|
+
|
|
208
|
+
export default defineConfig({
|
|
209
|
+
plugins: [
|
|
210
|
+
viteStaticCopy({
|
|
211
|
+
targets: [
|
|
212
|
+
{
|
|
213
|
+
src: "node_modules/@synergy-design-system/assets/src/sick2025/fill/*",
|
|
214
|
+
dest: "./assets/icons/",
|
|
215
|
+
rename: (name, extension) =>
|
|
216
|
+
`${name.replace(/_fill$/, "")}.${extension}`,
|
|
217
|
+
},
|
|
218
|
+
],
|
|
219
|
+
}),
|
|
220
|
+
],
|
|
221
|
+
});
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
```html
|
|
225
|
+
<!-- Usage -->
|
|
226
|
+
<syn-icon name="wallpaper"> <syn-icon /></syn-icon>
|
|
227
|
+
```
|
|
228
|
+
|
|
94
229
|
### How to use a custom icon library
|
|
95
230
|
|
|
96
231
|
To register an additional icon library, use the `registerIconLibrary()` function that's exported from `utilities/icon-library.js`.
|
package/package.json
CHANGED
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
},
|
|
16
16
|
"description": "MCP Server for the Synergy Design System",
|
|
17
17
|
"devDependencies": {
|
|
18
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
19
|
+
"@semantic-release/exec": "^6.0.3",
|
|
20
|
+
"@semantic-release/git": "^10.0.1",
|
|
18
21
|
"@types/jest": "^30.0.0",
|
|
19
22
|
"@types/node": "^22.15.32",
|
|
20
23
|
"@types/serve-handler": "^6.1.4",
|
|
@@ -30,11 +33,11 @@
|
|
|
30
33
|
"semantic-release-monorepo": "7.0.5",
|
|
31
34
|
"ts-jest": "^29.4.0",
|
|
32
35
|
"typescript": "^5.8.3",
|
|
33
|
-
"@synergy-design-system/components": "2.40.0",
|
|
34
|
-
"@synergy-design-system/eslint-config-syn": "^0.1.0",
|
|
35
36
|
"@synergy-design-system/docs": "0.1.0",
|
|
36
|
-
"@synergy-design-system/
|
|
37
|
-
"@synergy-design-system/styles": "1.7.2"
|
|
37
|
+
"@synergy-design-system/eslint-config-syn": "^0.1.0",
|
|
38
|
+
"@synergy-design-system/styles": "1.7.2",
|
|
39
|
+
"@synergy-design-system/tokens": "^2.23.0",
|
|
40
|
+
"@synergy-design-system/components": "2.40.1"
|
|
38
41
|
},
|
|
39
42
|
"exports": {
|
|
40
43
|
".": {
|
|
@@ -119,7 +122,7 @@
|
|
|
119
122
|
"directory": "packages/mcp"
|
|
120
123
|
},
|
|
121
124
|
"type": "module",
|
|
122
|
-
"version": "1.1
|
|
125
|
+
"version": "1.2.1",
|
|
123
126
|
"scripts": {
|
|
124
127
|
"build": "pnpm run build:ts && pnpm run build:metadata && pnpm build:hash",
|
|
125
128
|
"build:all": "pnpm run build && pnpm run build:storybook",
|