@solid-design-system/mcp 7.0.0-next.9 → 7.0.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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - Consolidated `sd-chip` and `sd-flag`: _[`#3267`](https://github.com/solid-design-system/solid/pull/3267) [`12db708`](https://github.com/solid-design-system/solid/commit/12db708ea227bc2ce2a7835d12190ee1ae40f891) [@auroraVasconcelos](https://github.com/auroraVasconcelos)_
8
+
9
+ - Removed the `sd-flag` style.
10
+ - Added `sd-chip--color-{primary,neutral,white}`, `sd-chip--shade-{subtle,low,medium,high}`, `sd-chip--size-{sm,lg}`, `sd-chip--outline` and `sd-chip--sharp` classes.
11
+
12
+ ### Patch Changes
13
+
14
+ - Fix versioned icons to work with next versions. _[`#3186`](https://github.com/solid-design-system/solid/pull/3186) [`30af3ad`](https://github.com/solid-design-system/solid/commit/30af3ad6d2e8daebeaa9d6a863fdd5794a015da9) [@auroraVasconcelos](https://github.com/auroraVasconcelos)_
15
+
16
+ ## 7.0.0-next.12
17
+
18
+ ## 7.0.0-next.11
19
+
20
+ ## 7.0.0-next.10
21
+
3
22
  ## 7.0.0-next.9
4
23
 
5
24
  ## 7.0.0-next.8
@@ -8,7 +8,9 @@ Use the `headline` attribute to set the headline of the dialog. If you need to u
8
8
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
9
9
  dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam.
10
10
  </p>
11
- <sd-button slot="footer">Button</sd-button>
11
+ <div slot="footer" class="flex sm:justify-end gap-4">
12
+ <sd-button>Button</sd-button>
13
+ </div>
12
14
  </sd-dialog>
13
15
  </div>
14
16
  <script type="module">
@@ -9,7 +9,9 @@ Use the `no-close-button` attribute to hide the close button in the dialog.
9
9
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
10
10
  dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam.
11
11
  </p>
12
- <sd-button class="close-button" slot="footer" variant="primary">Button</sd-button>
12
+ <div slot="footer" class="flex sm:justify-end gap-4">
13
+ <sd-button class="close-button" variant="primary">Button</sd-button>
14
+ </div>
13
15
  </sd-dialog>
14
16
  </div>
15
17
 
@@ -61,7 +61,9 @@ Use the `open` attribute to show the dialog.
61
61
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et
62
62
  dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam.
63
63
  </p>
64
- <sd-button slot="footer">Button</sd-button>
64
+ <div slot="footer" class="flex sm:justify-end gap-4">
65
+ <sd-button>Button</sd-button>
66
+ </div>
65
67
  </sd-dialog>
66
68
  </div>
67
69
  <script type="module">
@@ -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-down" slot="icon-right"></sd-icon>
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-down" slot="icon-right"></sd-icon>
47
+ <sd-icon library="_internal" name="chevron-bottom" slot="icon-right"></sd-icon>
48
48
  </sd-button>
49
49
  ${generateTemplate({
50
50
  args
@@ -3,33 +3,90 @@ name: chip
3
3
  title: Chip
4
4
  components:
5
5
  - sd-chip
6
- - sd-chip--primary-200
7
- - sd-chip--primary-300
8
- - sd-chip--primary-500
9
- - sd-chip--white
6
+ - sd-chip--color-neutral
7
+ - sd-chip--color-white
8
+ - sd-chip--outline
9
+ - sd-chip--shade-high
10
+ - sd-chip--shade-low
11
+ - sd-chip--shade-medium
12
+ - sd-chip--sharp
13
+ - sd-chip--size-lg
10
14
  version: 1.0.0
11
15
  ---
12
16
 
13
17
  ## Template: Background Options
14
18
 
15
19
  ```html
16
- <div class="grid grid-cols-2 grid-rows-2">
17
- <div class="bg-white p-4 border border-neutral-200">
18
- <span class="sd-chip sd-chip--primary-200">primary-200</span>
20
+ <div class="grid grid-col-1 sm:grid-cols-3 gap-px bg-neutral-400 border border-neutral-400">
21
+ <div class="bg-white py-6 px-8 flex flex-col gap-2 items-start min-h-32">
22
+ <span class="sd-chip">primary-subtle</span>
23
+ <span class="sd-chip sd-chip--color-neutral">neutral-subtle</span>
19
24
  </div>
20
- <div class="bg-primary-100 p-4">
21
- <span class=" sd-chip sd-chip--primary-300">primary-300</span>
25
+ <div class="bg-primary-100 py-6 px-8 min-h-32">
26
+ <span class="sd-chip sd-chip--shade-low">primary-low</span>
22
27
  </div>
23
- <div class="bg-primary p-4">
24
- <span class="sd-chip sd-chip--primary-500">primary-500</span>
28
+ <div class="bg-neutral-100 py-6 px-8 min-h-32">
29
+ <span class="sd-chip sd-chip--color-neutral sd-chip--shade-low">neutral-low</span>
25
30
  </div>
26
- <div slot="media" class="relative">
31
+ <div class="bg-primary py-6 px-8 min-h-32">
32
+ <span class="sd-chip sd-chip--shade-high">primary-high</span>
33
+ </div>
34
+ <div class="relative col-span-1 sm:col-span-2 py-6 px-8 min-h-32">
27
35
  <img
28
- class="aspect-video object-cover"
36
+ class="absolute inset-0 w-full h-full object-cover"
29
37
  src="./placeholders/images/coffeeshop.jpg"
30
- alt="A group of people sitting in a coffee shop"
38
+ alt="Four young people sit around a café table laughing, while one of them looks at a tablet."
31
39
  />
32
- <span class="absolute top-3 left-4 sd-chip sd-chip--white">white</span>
40
+ <div class="relative">
41
+ <span class="sd-chip sd-chip--color-white">white</span>
42
+ </div>
43
+ </div>
44
+ </div>
45
+
46
+ <div class="grid grid-col-1 sm:grid-cols-3 gap-px bg-neutral-400 border border-neutral-400 mt-8">
47
+ <div class="bg-white py-6 flex flex-col gap-4 items-end min-h-32">
48
+ <span class="sd-chip sd-chip--shade-low sd-chip--size-lg sd-chip--sharp">primary-low</span>
49
+ <span class="sd-chip sd-chip--color-neutral sd-chip--shade-low sd-chip--size-lg sd-chip--sharp"> neutral-low </span>
50
+ </div>
51
+ <div class="bg-primary-100 py-6 min-h-32 relative">
52
+ <span class="sd-chip sd-chip--shade-medium sd-chip--size-lg sd-chip--sharp absolute right-0">primary-medium</span>
53
+ </div>
54
+ <div class="bg-neutral-100 py-6 min-h-32 relative">
55
+ <span class="sd-chip sd-chip--color-neutral sd-chip--shade-medium sd-chip--size-lg sd-chip--sharp absolute right-0"
56
+ >neutral-medium</span
57
+ >
58
+ </div>
59
+ <div class="bg-primary min-h-32 py-6 relative">
60
+ <span class="sd-chip sd-chip--shade-high sd-chip--size-lg sd-chip--sharp absolute right-0">primary-high</span>
61
+ </div>
62
+ <div class="relative col-span-1 sm:col-span-2 py-6 min-h-32">
63
+ <img
64
+ class="absolute inset-0 w-full h-full object-cover"
65
+ src="./placeholders/images/coffeeshop.jpg"
66
+ alt="Four young people sit around a café table laughing, while one of them looks at a tablet."
67
+ />
68
+ <div class="relative">
69
+ <span class="sd-chip sd-chip--color-neutral sd-chip--size-lg sd-chip--sharp absolute right-0"
70
+ >neutral-subtle</span
71
+ >
72
+ </div>
73
+ </div>
74
+ </div>
75
+ ```
76
+
77
+ ## Template: Background Options Outlined
78
+
79
+ ```html
80
+ <div class="grid grid-col-1 sm:grid-cols-3 gap-px bg-neutral-400 border border-neutral-400 mt-4">
81
+ <div class="bg-white py-6 px-8 flex flex-col gap-2 items-start min-h-32">
82
+ <span class="sd-chip sd-chip--shade-medium sd-chip--outline">primary-medium</span>
83
+ <span class="sd-chip sd-chip--color-neutral sd-chip--shade-medium sd-chip--outline">neutral-medium</span>
84
+ </div>
85
+ <div class="bg-primary-100 py-6 px-8 min-h-32">
86
+ <span class="sd-chip sd-chip--shade-medium sd-chip--outline">primary-medium</span>
87
+ </div>
88
+ <div class="bg-neutral-100 py-6 px-8 min-h-32">
89
+ <span class="sd-chip sd-chip--color-neutral sd-chip--shade-medium sd-chip--outline">neutral-medium</span>
33
90
  </div>
34
91
  </div>
35
92
  ```
@@ -18,16 +18,6 @@ version: 1.0.0
18
18
  ## Template: Dialog with Button Group
19
19
 
20
20
  ```html
21
- <!-- TODO: remove once this bugfix is addressed: https://github.com/solid-design-system/solid/issues/1325 -->
22
- <style>
23
- @media (min-width: 414px) {
24
- sd-dialog::part(footer) {
25
- width: 100%;
26
- margin: 0;
27
- }
28
- }
29
- </style>
30
-
31
21
  <sd-button id="drawer-trigger">Open Dialog</sd-button>
32
22
  <sd-dialog id="dialog" open>
33
23
  <span slot="headline" class="sd-headline sd-headline--size-3xl">Cancel your subscription?</span>
@@ -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-down" slot="icon-right"></sd-icon>
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,9 @@ 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
- </sd-tab-panel>
290
+ </sd-tab-panel>
291
291
 
292
- <sd-tab-panel name="consumer">
292
+ <sd-tab-panel name="consumer">
293
293
 
294
294
  <sd-notification variant="warning" open>
295
295
  **Do not import or bundle theme CSS.** The Theme Host already provides the theme for the entire page. Bundling it
@@ -369,7 +369,7 @@ extend: {
369
369
  }
370
370
  };
371
371
 
372
- ```
372
+ ````
373
373
 
374
374
  </sd-tab-panel>
375
375
  </sd-tab-group>
@@ -379,46 +379,20 @@ That's it — you're ready to build. Head over to the <sd-link href="?path=/docs
379
379
  </sd-tab-panel>
380
380
  </sd-tab-group>
381
381
 
382
- ## ⚠️ Upcoming breaking changes
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.
382
+ ## CSS Variables deprecation
389
383
 
390
- - Deprecated variables are still functional for now
391
- - All deprecated variables are clearly marked in the documentation
392
- - Recommended replacements are already provided
384
+ CSS variables used for custom theming can become deprecated as token versions are updated.
385
+ These changes will always be communicated properly before breaking changes are applied and are currently listed in the
386
+ <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)"
393
387
 
394
- **Where to find deprecated variables**: You can find this information directly on each component’s documentation page.
388
+ However, if you manage an environment that still requires the use of these variables, you can import the `legacy-variables.css` stylesheet
389
+ as fallback layer:
395
390
 
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
391
+ ```js
392
+ ````
417
393
 
418
- Currently, any version of the **components** and **styles** packages is compatible with any version of the **tokens** package. In a future release:
394
+ ## Minimum dependency requirement
419
395
 
420
- - A **minimum dependency requirement** will be introduced
421
- - The **tokens package version must be equal to or higher than** the components and styles versions
396
+ 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
397
 
423
- We recommend reviewing your setup now to ensure that your tokens package is **aligned with (or ahead of)** your components and styles. This will help you avoid compatibility issues once the new requirement is enforced.
424
- ```
398
+ For example, when using version `6.30.0` of components or styles, the minimum supported tokens version is `6.30.0`.
@@ -99,15 +99,19 @@ This will only affect the primary background color inside `sd-button` components
99
99
  <sd-notification variant="warning" open>
100
100
  Make sure the **theme you load** (from `@solid-design-system/tokens`) is at a version **equal to or higher than** the
101
101
  highest `@solid-design-system/components` and `@solid-design-system/styles` version used anywhere on the page —
102
- including by any embedded consumers. This will become a hard requirement in a future release — aligning now avoids
103
- breakage later.
102
+ including by any embedded consumers.
104
103
  </sd-notification>
105
104
 
106
105
  ### Deprecated CSS variables (tokens)
107
106
 
108
- The following CSS variables (tokens) are deprecated and will be removed in a future release. Update your custom styles to use the recommended replacements.
107
+ The following CSS variables (tokens) are deprecated. Please update your custom styles to use the recommended replacements.
108
+ If you manage an environment that still requires the use of these variables,
109
+ 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>
110
+ section on loading `legacy-variables.css`.
109
111
 
110
- <table>
112
+ #### Deprecated variables:
113
+
114
+ <table class="sd-table">
111
115
  <tr>
112
116
  <th>Deprecated variable</th>
113
117
  <th>Replacement</th>
@@ -172,13 +176,91 @@ The following CSS variables (tokens) are deprecated and will be removed in a fut
172
176
  <td>`--sd-accordion__chevron-color-text`</td>
173
177
  <td>`--sd-accordion-color-icon-fill`</td>
174
178
  </tr>
179
+ <tr>
180
+ <td>`--sd-chip--primary-200-color-background`</td>
181
+ <td>`--sd-chip--primary-low-color-background`</td>
182
+ </tr>
183
+ <tr>
184
+ <td>`--sd-chip--primary-200-color-border`</td>
185
+ <td>`--sd-chip--primary-subtle-color-filled-border`</td>
186
+ </tr>
187
+ <tr>
188
+ <td>`--sd-chip--primary-300-color-background`</td>
189
+ <td>`--sd-chip--primary-medium-color-background`</td>
190
+ </tr>
191
+ <tr>
192
+ <td>`--sd-chip--primary-300-color-border`</td>
193
+ <td>`--sd-chip--primary-medium-color-filled-border`</td>
194
+ </tr>
195
+ <tr>
196
+ <td>`--sd-chip--primary-500-color-background`</td>
197
+ <td>`--sd-chip--primary-high-color-background`</td>
198
+ </tr>
199
+ <tr>
200
+ <td>`--sd-chip--primary-500-color-border`</td>
201
+ <td>`--sd-chip--primary-high-color-filled-border`</td>
202
+ </tr>
203
+ <tr>
204
+ <td>`--sd-chip--primary-500-color-text`</td>
205
+ <td>`text-black`</td>
206
+ </tr>
207
+ <tr>
208
+ <td>`--sd-chip--white-color-border`</td>
209
+ <td>`--sd-chip--white-color-filled-border`</td>
210
+ </tr>
211
+ <tr>
212
+ <td>`--sd-chip-font-size`</td>
213
+ <td>`--sd-marker-font-size`</td>
214
+ </tr>
215
+ <tr>
216
+ <td>`--sd-chip-font-weight`</td>
217
+ <td>`--sd-marker-font-weight`</td>
218
+ </tr>
219
+ <tr>
220
+ <td>`--sd-flag-border-radius`</td>
221
+ <td>`--sd-chip-border-radius`</td>
222
+ </tr>
223
+ <tr>
224
+ <td>`--sd-flag-border-width`</td>
225
+ <td>`--sd-chip-border-width`</td>
226
+ </tr>
227
+ <tr>
228
+ <td>`--sd-flag--neutral-200-color-background`</td>
229
+ <td>`--sd-chip--neutral-low-color-background`</td>
230
+ </tr>
231
+ <tr>
232
+ <td>`--sd-flag--neutral-200-color-border`</td>
233
+ <td>`--sd-chip--neutral-low-color-filled-border`</td>
234
+ </tr>
235
+ <tr>
236
+ <td>`--sd-flag--neutral-300-color-background`</td>
237
+ <td>`--sd-chip--neutral-medium-color-background`</td>
238
+ </tr>
239
+ <tr>
240
+ <td>`--sd-flag--neutral-300-color-border`</td>
241
+ <td>`--sd-chip--neutral-medium-color-filled-border`</td>
242
+ </tr>
243
+ <tr>
244
+ <td>`--sd-flag--neutral-500-color-background`</td>
245
+ <td>`--sd-chip--neutral-high-color-background`</td>
246
+ </tr>
247
+ <tr>
248
+ <td>`--sd-flag--neutral-500-color-border`</td>
249
+ <td>`--sd-chip--neutral-high-color-filled-border`</td>
250
+ </tr>
251
+ <tr>
252
+ <td>`--sd-flag--white-color-background`</td>
253
+ <td>`--sd-chip--white-color-background`</td>
254
+ </tr>
255
+ <tr>
256
+ <td>`--sd-flag--white-color-border`</td>
257
+ <td>`--sd-chip--white-color-filled-border`</td>
258
+ </tr>
175
259
  </table>
176
260
 
177
- You can also find deprecated variables directly on each component's documentation page.
178
-
179
- </sd-tab-panel>
261
+ </sd-tab-panel>
180
262
 
181
- <sd-tab-panel name="consumer">
263
+ <sd-tab-panel name="consumer">
182
264
 
183
265
  ## Using tokens
184
266
 
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.9",
24
- "@solid-design-system/styles": "7.0.0-next.9",
25
- "@solid-design-system/tokens": "7.0.0-next.9"
23
+ "@solid-design-system/components": "7.0.0",
24
+ "@solid-design-system/styles": "7.0.0",
25
+ "@solid-design-system/tokens": "7.0.0"
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.9",
62
+ "version": "7.0.0",
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",