@solid-design-system/mcp 7.0.0-next.10 → 7.0.0-next.12
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 +4 -0
- package/metadata/packages/components/sd-icon/stories/libraries.md +1 -1
- package/metadata/packages/components/sd-menu/stories/grouping.md +1 -1
- package/metadata/packages/components/sd-menu/stories/icon.md +1 -1
- package/metadata/packages/templates/menu.md +1 -1
- package/metadata/packages/tokens/docs/installation.md +18 -42
- package/metadata/packages/tokens/docs/usage.md +89 -6
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -19,8 +19,8 @@ Solid ships with three public icon libraries, `default`, `sd-status-assets`, and
|
|
|
19
19
|
<h3 class="sd-headline sd-headline--size-base mb-4">Status Library</h3>
|
|
20
20
|
<div class="flex gap-6">
|
|
21
21
|
<sd-icon color="primary" library="sd-status-assets" name="status-check"></sd-icon>
|
|
22
|
-
<sd-icon color="primary" library="sd-status-assets" name="status-exclamation"></sd-icon>
|
|
23
22
|
<sd-icon color="primary" library="sd-status-assets" name="status-close"></sd-icon>
|
|
23
|
+
<sd-icon color="primary" library="sd-status-assets" name="status-exclamation"></sd-icon>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
26
|
|
|
@@ -4,7 +4,7 @@ Use dividers to group menu-items in a menu.
|
|
|
4
4
|
<sd-dropdown distance="4" rounded>
|
|
5
5
|
<sd-button variant="secondary" slot="trigger">
|
|
6
6
|
Menu
|
|
7
|
-
<sd-icon library="_internal" name="chevron-
|
|
7
|
+
<sd-icon library="_internal" name="chevron-bottom" slot="icon-right"></sd-icon>
|
|
8
8
|
</sd-button>
|
|
9
9
|
<sd-menu>
|
|
10
10
|
<sd-menu-item>Menu item 1</sd-menu-item>
|
|
@@ -44,7 +44,7 @@ return html` <div class="h-[350px]">
|
|
|
44
44
|
<sd-dropdown distance="4" rounded open>
|
|
45
45
|
<sd-button variant="secondary" slot="trigger">
|
|
46
46
|
Menu
|
|
47
|
-
<sd-icon library="_internal" name="chevron-
|
|
47
|
+
<sd-icon library="_internal" name="chevron-bottom" slot="icon-right"></sd-icon>
|
|
48
48
|
</sd-button>
|
|
49
49
|
${generateTemplate({
|
|
50
50
|
args
|
|
@@ -64,7 +64,7 @@ version: 1.0.0
|
|
|
64
64
|
<sd-dropdown distance="4" rounded stay-open-on-select>
|
|
65
65
|
<sd-button variant="secondary" slot="trigger">
|
|
66
66
|
Menu
|
|
67
|
-
<sd-icon library="_internal" name="chevron-
|
|
67
|
+
<sd-icon library="_internal" name="chevron-bottom" slot="icon-right"></sd-icon>
|
|
68
68
|
</sd-button>
|
|
69
69
|
<sd-menu>
|
|
70
70
|
<sd-menu-item type="checkbox">Account overview</sd-menu-item>
|
|
@@ -287,9 +287,22 @@ That's it — your page is now themed. Head over to the <sd-link href="?path=/do
|
|
|
287
287
|
|
|
288
288
|
</sd-accordion>
|
|
289
289
|
|
|
290
|
-
|
|
290
|
+
### CSS Variables deprecation
|
|
291
|
+
|
|
292
|
+
CSS variables used for custom theming can become deprecated as token versions are updated.
|
|
293
|
+
These changes will always be communicated properly before breaking changes are applied and are currently listed in the
|
|
294
|
+
<sd-link href="https://solid-design-system.fe.union-investment.de/docs/?path=/docs/packages-tokens-installation--docs#css-variables-deprecation">Usage</sd-link> page under "Deprecated CSS variables (tokens)"
|
|
291
295
|
|
|
292
|
-
|
|
296
|
+
However, if you manage an environment that still requires the use of these variables, you can import the `legacy-variables.css` stylesheet
|
|
297
|
+
as fallback layer:
|
|
298
|
+
|
|
299
|
+
```js
|
|
300
|
+
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
</sd-tab-panel>
|
|
304
|
+
|
|
305
|
+
<sd-tab-panel name="consumer">
|
|
293
306
|
|
|
294
307
|
<sd-notification variant="warning" open>
|
|
295
308
|
**Do not import or bundle theme CSS.** The Theme Host already provides the theme for the entire page. Bundling it
|
|
@@ -379,46 +392,9 @@ That's it — you're ready to build. Head over to the <sd-link href="?path=/docs
|
|
|
379
392
|
</sd-tab-panel>
|
|
380
393
|
</sd-tab-group>
|
|
381
394
|
|
|
382
|
-
##
|
|
383
|
-
|
|
384
|
-
Breaking changes will be introduced in a future release (date to be announced).
|
|
385
|
-
|
|
386
|
-
### CSS Variables
|
|
387
|
-
|
|
388
|
-
Some CSS variables used for custom theming will be removed.
|
|
389
|
-
|
|
390
|
-
- Deprecated variables are still functional for now
|
|
391
|
-
- All deprecated variables are clearly marked in the documentation
|
|
392
|
-
- Recommended replacements are already provided
|
|
393
|
-
|
|
394
|
-
**Where to find deprecated variables**: You can find this information directly on each component’s documentation page.
|
|
395
|
-
|
|
396
|
-
Deprecated variables:
|
|
397
|
-
|
|
398
|
-
- `--sd-button--size-lg-border-radius` replace with `--sd-button-border-radius`
|
|
399
|
-
- `--sd-button--size-md-border-radius` replace with `--sd-button-border-radius`
|
|
400
|
-
- `--sd-button--size-sm-border-radius` replace with `--sd-button-border-radius`
|
|
401
|
-
- `--sd-button--secondary--inverted--color-border` replace with `--sd-button-secondary-inverted-color-border`
|
|
402
|
-
- `--sd-form-control-color-icon` replace with `--sd-form-control-color-icon-fill`
|
|
403
|
-
- `--sd-menu-color-icon` replace with `--sd-menu-item-color-icon-fill`
|
|
404
|
-
- `--sd-menu-color-text` replace with `--sd-menu-item-color-text`
|
|
405
|
-
- `--sd-menu--disabled-color-icon` replace with `--sd-menu-item--disabled-color-icon-fill`
|
|
406
|
-
- `--sd-menu--disabled-color-text` replace with `--sd-menu-item--disabled-color-text`
|
|
407
|
-
- `--sd-tag-font-weight` replace with `--sd-choice-control-font-weight`
|
|
408
|
-
- `--sd-tag--disabled-color-border` replace with `--sd-color-border-neutral-500`
|
|
409
|
-
- `--sd-navigation-item--current-color-text` replace with `--sd-navigation-item-color-text`
|
|
410
|
-
- `--sd-option--disabled-color-border` replace with `--sd-color-border-neutral-500`
|
|
411
|
-
- `--sd-audio__timestamp-color-text` replace with `--sd-color-text-neutral-700`
|
|
412
|
-
- `--sd-accordion__chevron-color-text` replace with `--sd-accordion-color-icon-fill`
|
|
413
|
-
|
|
414
|
-
---
|
|
415
|
-
|
|
416
|
-
### Minimum dependency requirement
|
|
417
|
-
|
|
418
|
-
Currently, any version of the **components** and **styles** packages is compatible with any version of the **tokens** package. In a future release:
|
|
395
|
+
## Minimum dependency requirement
|
|
419
396
|
|
|
420
|
-
|
|
421
|
-
- The **tokens package version must be equal to or higher than** the components and styles versions
|
|
397
|
+
The installed `@solid-design-system/tokens` version must always be equal to or greater than the versions of the `@solid-design-system/components` and `@solid-design-system/styles` packages.
|
|
422
398
|
|
|
423
|
-
|
|
399
|
+
For example, when using version `6.30.0` of components or styles, the minimum supported tokens version is `6.30.0`.
|
|
424
400
|
```
|
|
@@ -105,9 +105,14 @@ This will only affect the primary background color inside `sd-button` components
|
|
|
105
105
|
|
|
106
106
|
### Deprecated CSS variables (tokens)
|
|
107
107
|
|
|
108
|
-
The following CSS variables (tokens) are deprecated
|
|
108
|
+
The following CSS variables (tokens) are deprecated. Please update your custom styles to use the recommended replacements.
|
|
109
|
+
If you manage an environment that still requires the use of these variables,
|
|
110
|
+
please refer to the <sd-link href="https://solid-design-system.fe.union-investment.de/docs/?path=/docs/packages-tokens-installation--docs#css-variables-deprecation">Installation</sd-link>
|
|
111
|
+
section on loading `legacy-variables.css`.
|
|
109
112
|
|
|
110
|
-
|
|
113
|
+
#### Deprecated variables:
|
|
114
|
+
|
|
115
|
+
<table class="sd-table">
|
|
111
116
|
<tr>
|
|
112
117
|
<th>Deprecated variable</th>
|
|
113
118
|
<th>Replacement</th>
|
|
@@ -172,13 +177,91 @@ The following CSS variables (tokens) are deprecated and will be removed in a fut
|
|
|
172
177
|
<td>`--sd-accordion__chevron-color-text`</td>
|
|
173
178
|
<td>`--sd-accordion-color-icon-fill`</td>
|
|
174
179
|
</tr>
|
|
180
|
+
<tr>
|
|
181
|
+
<td>`--sd-chip--primary-200-color-background`</td>
|
|
182
|
+
<td>`--sd-chip--primary-low-color-background`</td>
|
|
183
|
+
</tr>
|
|
184
|
+
<tr>
|
|
185
|
+
<td>`--sd-chip--primary-200-color-border`</td>
|
|
186
|
+
<td>`--sd-chip--primary-subtle-color-filled-border`</td>
|
|
187
|
+
</tr>
|
|
188
|
+
<tr>
|
|
189
|
+
<td>`--sd-chip--primary-300-color-background`</td>
|
|
190
|
+
<td>`--sd-chip--primary-medium-color-background`</td>
|
|
191
|
+
</tr>
|
|
192
|
+
<tr>
|
|
193
|
+
<td>`--sd-chip--primary-300-color-border`</td>
|
|
194
|
+
<td>`--sd-chip--primary-medium-color-filled-border`</td>
|
|
195
|
+
</tr>
|
|
196
|
+
<tr>
|
|
197
|
+
<td>`--sd-chip--primary-500-color-background`</td>
|
|
198
|
+
<td>`--sd-chip--primary-high-color-background`</td>
|
|
199
|
+
</tr>
|
|
200
|
+
<tr>
|
|
201
|
+
<td>`--sd-chip--primary-500-color-border`</td>
|
|
202
|
+
<td>`--sd-chip--primary-high-color-filled-border`</td>
|
|
203
|
+
</tr>
|
|
204
|
+
<tr>
|
|
205
|
+
<td>`--sd-chip--primary-500-color-text`</td>
|
|
206
|
+
<td>`text-black`</td>
|
|
207
|
+
</tr>
|
|
208
|
+
<tr>
|
|
209
|
+
<td>`--sd-chip--white-color-border`</td>
|
|
210
|
+
<td>`--sd-chip--white-color-filled-border`</td>
|
|
211
|
+
</tr>
|
|
212
|
+
<tr>
|
|
213
|
+
<td>`--sd-chip-font-size`</td>
|
|
214
|
+
<td>`--sd-marker-font-size`</td>
|
|
215
|
+
</tr>
|
|
216
|
+
<tr>
|
|
217
|
+
<td>`--sd-chip-font-weight`</td>
|
|
218
|
+
<td>`--sd-marker-font-weight`</td>
|
|
219
|
+
</tr>
|
|
220
|
+
<tr>
|
|
221
|
+
<td>`--sd-flag-border-radius`</td>
|
|
222
|
+
<td>`--sd-chip-border-radius`</td>
|
|
223
|
+
</tr>
|
|
224
|
+
<tr>
|
|
225
|
+
<td>`--sd-flag-border-width`</td>
|
|
226
|
+
<td>`--sd-chip-border-width`</td>
|
|
227
|
+
</tr>
|
|
228
|
+
<tr>
|
|
229
|
+
<td>`--sd-flag--neutral-200-color-background`</td>
|
|
230
|
+
<td>`--sd-chip--neutral-low-color-background`</td>
|
|
231
|
+
</tr>
|
|
232
|
+
<tr>
|
|
233
|
+
<td>`--sd-flag--neutral-200-color-border`</td>
|
|
234
|
+
<td>`--sd-chip--neutral-low-color-filled-border`</td>
|
|
235
|
+
</tr>
|
|
236
|
+
<tr>
|
|
237
|
+
<td>`--sd-flag--neutral-300-color-background`</td>
|
|
238
|
+
<td>`--sd-chip--neutral-medium-color-background`</td>
|
|
239
|
+
</tr>
|
|
240
|
+
<tr>
|
|
241
|
+
<td>`--sd-flag--neutral-300-color-border`</td>
|
|
242
|
+
<td>`--sd-chip--neutral-medium-color-filled-border`</td>
|
|
243
|
+
</tr>
|
|
244
|
+
<tr>
|
|
245
|
+
<td>`--sd-flag--neutral-500-color-background`</td>
|
|
246
|
+
<td>`--sd-chip--neutral-high-color-background`</td>
|
|
247
|
+
</tr>
|
|
248
|
+
<tr>
|
|
249
|
+
<td>`--sd-flag--neutral-500-color-border`</td>
|
|
250
|
+
<td>`--sd-chip--neutral-high-color-filled-border`</td>
|
|
251
|
+
</tr>
|
|
252
|
+
<tr>
|
|
253
|
+
<td>`--sd-flag--white-color-background`</td>
|
|
254
|
+
<td>`--sd-chip--white-color-background`</td>
|
|
255
|
+
</tr>
|
|
256
|
+
<tr>
|
|
257
|
+
<td>`--sd-flag--white-color-border`</td>
|
|
258
|
+
<td>`--sd-chip--white-color-filled-border`</td>
|
|
259
|
+
</tr>
|
|
175
260
|
</table>
|
|
176
261
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
</sd-tab-panel>
|
|
262
|
+
</sd-tab-panel>
|
|
180
263
|
|
|
181
|
-
|
|
264
|
+
<sd-tab-panel name="consumer">
|
|
182
265
|
|
|
183
266
|
## Using tokens
|
|
184
267
|
|
package/package.json
CHANGED
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"prettier": "^3.9.5",
|
|
21
21
|
"tsx": "^4.23.1",
|
|
22
22
|
"typescript": "^5.9.3",
|
|
23
|
-
"@solid-design-system/components": "7.0.0-next.
|
|
24
|
-
"@solid-design-system/styles": "7.0.0-next.
|
|
25
|
-
"@solid-design-system/tokens": "7.0.0-next.
|
|
23
|
+
"@solid-design-system/components": "7.0.0-next.12",
|
|
24
|
+
"@solid-design-system/styles": "7.0.0-next.12",
|
|
25
|
+
"@solid-design-system/tokens": "7.0.0-next.12"
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"directory": "packages/mcp"
|
|
60
60
|
},
|
|
61
61
|
"type": "module",
|
|
62
|
-
"version": "7.0.0-next.
|
|
62
|
+
"version": "7.0.0-next.12",
|
|
63
63
|
"scripts": {
|
|
64
64
|
"build": "pnpm run build:components && pnpm run build:tokens && pnpm run build:ts && pnpm run build:metadata && cd ../.. && pnpm exec prettier --write --log-level warn packages/mcp/metadata",
|
|
65
65
|
"build:components": "cd ../components && pnpm exec node scripts/make-metadata.js --outdir dist",
|