@synergy-design-system/mcp 1.14.0 → 1.15.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,3 +1,10 @@
1
+ # [@synergy-design-system/mcp-v1.15.0](https://github.com/synergy-design-system/synergy-design-system/compare/mcp/1.14.0...mcp/1.15.0) (2025-10-28)
2
+
3
+
4
+ ### Features
5
+
6
+ * ✨ CD update for syn-radio ([#1051](https://github.com/synergy-design-system/synergy-design-system/issues/1051)) ([b245f1f](https://github.com/synergy-design-system/synergy-design-system/commit/b245f1f90836a68594ecc8fdc026ecb8b3d284a9))
7
+
1
8
  # [@synergy-design-system/mcp-v1.14.0](https://github.com/synergy-design-system/synergy-design-system/compare/mcp/1.13.0...mcp/1.14.0) (2025-10-27)
2
9
 
3
10
 
@@ -1 +1 @@
1
- f3114c45878f843af63d95fbab5c9fec
1
+ 88e8ef9504ea15108a792da88481adef
@@ -11,15 +11,33 @@ export default css`
11
11
  opacity: var(--syn-input-disabled-opacity);
12
12
  }
13
13
 
14
+ /* Checked */
15
+ /* stylelint-disable-next-line no-descending-specificity */
16
+ .radio--checked .radio__control {
17
+ background-color: var(--syn-interactive-emphasis-color, var(--syn-color-primary-600));
18
+ border-color: var(--syn-interactive-emphasis-color, var(--syn-color-primary-600));
19
+ }
20
+
14
21
  /* Checked + hover */
15
- .radio.radio--checked:not(.radio--disabled):hover .radio__control {
16
- background-color: var(--syn-color-primary-950);
17
- border-color: var(--syn-color-primary-950);
22
+ .radio.radio--checked:not(.radio--disabled) .radio__control:hover {
23
+ background-color: var(--syn-interactive-emphasis-color-hover, var(--syn-color-primary-950));
24
+ border-color: var(--syn-interactive-emphasis-color-hover, var(--syn-color-primary-950));
25
+ }
26
+
27
+ /* Checked + active */
28
+ .radio.radio--checked:not(.radio--disabled) .radio__control:active {
29
+ background-color: var(--syn-interactive-emphasis-color-active, var(--syn-color-primary-950));
30
+ border-color: var(--syn-interactive-emphasis-color-active, var(--syn-color-primary-950));
18
31
  }
19
32
 
20
- /* Hover */
21
- .radio:not(.radio--checked):not(.radio--disabled):hover .radio__control {
22
- border-color: var(--syn-color-primary-900);
33
+ /* Not-Checked + Hover */
34
+ .radio:not(.radio--checked):not(.radio--disabled) .radio__control:hover {
35
+ border-color: var(--syn-input-border-color-hover);
36
+ }
37
+
38
+ /* Not-Checked + active */
39
+ .radio:not(.radio--checked):not(.radio--disabled) .radio__control:active {
40
+ border-color: var(--syn-color-neutral-1000);
23
41
  }
24
42
 
25
43
  /* Fix#456: Multi line radio fixes */
@@ -43,6 +61,8 @@ export default css`
43
61
  top: -2px;
44
62
  }
45
63
 
64
+ /* /Fix#456 */
65
+
46
66
  /**
47
67
  * #920: The new icons are instances in figma.
48
68
  * The width of the system icon is 12px x 12px, so there is no inner padding.
@@ -52,21 +72,6 @@ export default css`
52
72
  scale: 0.5;
53
73
  }
54
74
 
55
- /* /Fix#456 */
56
-
57
- /* Size modifiers */
58
- .radio--small {
59
- --toggle-size: var(--syn-input-font-size-small);
60
- }
61
-
62
- .radio--medium {
63
- --toggle-size: var(--syn-font-size-medium);
64
- }
65
-
66
- .radio--large {
67
- --toggle-size: var(--syn-spacing-large);
68
- }
69
-
70
75
  .radio--small .radio__label, .radio--large .radio__label {
71
76
  margin-inline-start: var(--syn-spacing-x-small);
72
77
  }
@@ -4,9 +4,13 @@ export default css`
4
4
  :host([data-user-invalid]) {
5
5
  --syn-input-border-color: var(--syn-input-border-color-focus-error);
6
6
  --syn-input-border-color-hover: var(--syn-input-border-color-focus-error);
7
- --syn-color-primary-600: var(--syn-color-error-700);
7
+ --syn-color-primary-600: var(--syn-input-border-color-focus-error);
8
8
  --syn-color-primary-900: var(--syn-color-error-900);
9
9
  --syn-color-primary-950: var(--syn-color-error-950);
10
+ --syn-color-neutral-1000: var(--syn-input-border-color-focus-error);
11
+ --syn-interactive-emphasis-color: var(--syn-input-border-color-focus-error);
12
+ --syn-interactive-emphasis-color-hover: var(--syn-input-border-color-focus-error);
13
+ --syn-interactive-emphasis-color-active: var(--syn-input-border-color-focus-error);
10
14
  }
11
15
 
12
16
  .form-control--has-help-text.form-control--radio-group .form-control__help-text {
@@ -18,5 +22,4 @@ export default css`
18
22
  flex-direction: column;
19
23
  gap: var(--syn-spacing-x-small);
20
24
  }
21
-
22
25
  `;
@@ -1,3 +1,10 @@
1
+ # [@synergy-design-system/components-v2.54.0](https://github.com/synergy-design-system/synergy-design-system/compare/components/2.53.0...components/2.54.0) (2025-10-28)
2
+
3
+
4
+ ### Features
5
+
6
+ * ✨ CD update for syn-radio ([#1051](https://github.com/synergy-design-system/synergy-design-system/issues/1051)) ([b245f1f](https://github.com/synergy-design-system/synergy-design-system/commit/b245f1f90836a68594ecc8fdc026ecb8b3d284a9))
7
+
1
8
  # [@synergy-design-system/components-v2.53.0](https://github.com/synergy-design-system/synergy-design-system/compare/components/2.52.0...components/2.53.0) (2025-10-27)
2
9
 
3
10
 
@@ -1,3 +1,10 @@
1
+ # [@synergy-design-system/tokens-v2.35.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/2.34.0...tokens/2.35.0) (2025-10-28)
2
+
3
+
4
+ ### Features
5
+
6
+ * ✨ CD update for syn-radio ([#1051](https://github.com/synergy-design-system/synergy-design-system/issues/1051)) ([b245f1f](https://github.com/synergy-design-system/synergy-design-system/commit/b245f1f90836a68594ecc8fdc026ecb8b3d284a9))
7
+
1
8
  # [@synergy-design-system/tokens-v2.34.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/2.33.0...tokens/2.34.0) (2025-10-27)
2
9
 
3
10
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.33.0
2
+ * @synergy-design-system/tokens version 2.34.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.33.0
2
+ * @synergy-design-system/tokens version 2.34.0
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.33.0
2
+ * @synergy-design-system/tokens version 2.34.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.33.0
2
+ * @synergy-design-system/tokens version 2.34.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.33.0
2
+ * @synergy-design-system/tokens version 2.34.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.33.0
2
+ * @synergy-design-system/tokens version 2.34.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.33.0
2
+ * @synergy-design-system/tokens version 2.34.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -16,17 +16,37 @@ Radios allow the user to select a single option from a group. \nRadios are desig
16
16
 
17
17
  ---
18
18
 
19
- ## Disabled
19
+ ## Initial Value
20
20
 
21
- Use the disabled attribute to disable a radio.
21
+ To set the initial value and checked state, use the value attribute on the radio element.
22
+
23
+ ```html
24
+ <syn-radio-group value="1" size="medium" form="">
25
+ <syn-radio
26
+ value="1"
27
+ selected=""
28
+ role="radio"
29
+ tabindex="0"
30
+ aria-disabled="false"
31
+ aria-checked="true"
32
+ size="medium"
33
+ >Option</syn-radio
34
+ >
35
+ </syn-radio-group>
36
+ ```
37
+
38
+ ---
39
+
40
+ ## Focus
41
+
42
+ The focus event gives the user feedback that the Radio has been focused by the keyboard interaction.
22
43
 
23
44
  ```html
24
45
  <syn-radio
25
46
  value="1"
26
- disabled=""
27
47
  role="radio"
28
48
  tabindex="-1"
29
- aria-disabled="true"
49
+ aria-disabled="false"
30
50
  aria-checked="false"
31
51
  size="medium"
32
52
  >Option</syn-radio
@@ -35,16 +55,17 @@ Use the disabled attribute to disable a radio.
35
55
 
36
56
  ---
37
57
 
38
- ## Focus
58
+ ## Disabled
39
59
 
40
- The focus event gives the user feedback that the Radio has been focused by the keyboard interaction.
60
+ Use the disabled attribute to disable a radio.
41
61
 
42
62
  ```html
43
63
  <syn-radio
44
64
  value="1"
65
+ disabled=""
45
66
  role="radio"
46
67
  tabindex="-1"
47
- aria-disabled="false"
68
+ aria-disabled="true"
48
69
  aria-checked="false"
49
70
  size="medium"
50
71
  >Option</syn-radio
@@ -53,21 +74,70 @@ The focus event gives the user feedback that the Radio has been focused by the k
53
74
 
54
75
  ---
55
76
 
77
+ ## Sizes
78
+
79
+ Add the size attribute to the Radio Group to change the radios’ size.
80
+
81
+ ```html
82
+ <div
83
+ style="display: flex; flex-direction: column; gap: var(--syn-spacing-large)"
84
+ >
85
+ <syn-radio
86
+ value="1"
87
+ size="small"
88
+ role="radio"
89
+ tabindex="-1"
90
+ aria-disabled="false"
91
+ aria-checked="false"
92
+ >Option</syn-radio
93
+ >
94
+ <syn-radio
95
+ value="2"
96
+ size="medium"
97
+ role="radio"
98
+ tabindex="-1"
99
+ aria-disabled="false"
100
+ aria-checked="false"
101
+ >Option</syn-radio
102
+ >
103
+ <syn-radio
104
+ value="3"
105
+ size="large"
106
+ role="radio"
107
+ tabindex="-1"
108
+ aria-disabled="false"
109
+ aria-checked="false"
110
+ >Option</syn-radio
111
+ >
112
+ </div>
113
+ ```
114
+
115
+ ---
116
+
56
117
  ## Invalid
57
118
 
58
119
  The invalid status is used to warn the user that the Radio is invalid. For example, if the radio is mandatory and nothing has been checked.
59
120
 
60
121
  ```html
61
122
  <form class="custom-validity">
62
- <syn-radio-group required="" value="" size="medium" form="">
123
+ <syn-radio-group required="" value="2" size="medium" form="">
63
124
  <syn-radio
64
125
  value="1"
65
126
  role="radio"
66
- tabindex="0"
127
+ tabindex="-1"
67
128
  aria-disabled="false"
68
129
  aria-checked="false"
69
130
  size="medium"
70
- >Option</syn-radio
131
+ >Invalid</syn-radio
132
+ >
133
+ <syn-radio
134
+ value="2"
135
+ role="radio"
136
+ tabindex="0"
137
+ aria-disabled="false"
138
+ aria-checked="true"
139
+ size="medium"
140
+ >Invalid</syn-radio
71
141
  >
72
142
  </syn-radio-group>
73
143
  <syn-button type="submit" variant="filled" title="" size="medium"
@@ -85,39 +155,3 @@ The invalid status is used to warn the user that the Radio is invalid. For examp
85
155
  }
86
156
  </style>
87
157
  ```
88
-
89
- ---
90
-
91
- ## Sizes
92
-
93
- Add the size attribute to the Radio Group to change the radios’ size.
94
-
95
- ```html
96
- <syn-radio
97
- value="1"
98
- size="small"
99
- role="radio"
100
- tabindex="-1"
101
- aria-disabled="false"
102
- aria-checked="false"
103
- >Option</syn-radio
104
- >
105
- <syn-radio
106
- value="2"
107
- size="medium"
108
- role="radio"
109
- tabindex="-1"
110
- aria-disabled="false"
111
- aria-checked="false"
112
- >Option</syn-radio
113
- >
114
- <syn-radio
115
- value="3"
116
- size="large"
117
- role="radio"
118
- tabindex="-1"
119
- aria-disabled="false"
120
- aria-checked="false"
121
- >Option</syn-radio
122
- >
123
- ```
@@ -74,23 +74,23 @@ Use the label attribute to give the radio-group an accessible label. For labels
74
74
 
75
75
  ---
76
76
 
77
- ## Help Text
77
+ ## Checked
78
78
 
79
- Add descriptive help text to a switch with the help-text attribute. For help texts that contain HTML, use the help-text slot instead.The help-text attribute should not be used to display error messages. To handle validation and error messaging, use syn-validate for proper error management.
79
+ To set the initial value and checked state, use the value attribute on the containing radio group.
80
80
 
81
81
  ```html
82
82
  <syn-radio-group
83
83
  label="This is a label"
84
- help-text="This is the help-text"
84
+ help-text="This is checked"
85
85
  name="a"
86
- value=""
86
+ value="2"
87
87
  size="medium"
88
88
  form=""
89
89
  >
90
90
  <syn-radio
91
91
  value="1"
92
92
  role="radio"
93
- tabindex="0"
93
+ tabindex="-1"
94
94
  aria-disabled="false"
95
95
  aria-checked="false"
96
96
  size="medium"
@@ -99,9 +99,9 @@ Add descriptive help text to a switch with the help-text attribute. For help tex
99
99
  <syn-radio
100
100
  value="2"
101
101
  role="radio"
102
- tabindex="-1"
102
+ tabindex="0"
103
103
  aria-disabled="false"
104
- aria-checked="false"
104
+ aria-checked="true"
105
105
  size="medium"
106
106
  >Option</syn-radio
107
107
  >
@@ -119,13 +119,14 @@ Add descriptive help text to a switch with the help-text attribute. For help tex
119
119
 
120
120
  ---
121
121
 
122
- ## Focus
122
+ ## Help Text
123
123
 
124
- The focus event gives the user feedback that one of the radio buttons has been focused by the keyboard interaction.
124
+ Add descriptive help text to a switch with the help-text attribute. For help texts that contain HTML, use the help-text slot instead.The help-text attribute should not be used to display error messages. To handle validation and error messaging, use syn-validate for proper error management.
125
125
 
126
126
  ```html
127
127
  <syn-radio-group
128
128
  label="This is a label"
129
+ help-text="Choose the most appropriate option."
129
130
  name="a"
130
131
  value=""
131
132
  size="medium"
@@ -133,10 +134,9 @@ The focus event gives the user feedback that one of the radio buttons has been f
133
134
  >
134
135
  <syn-radio
135
136
  value="1"
136
- disabled=""
137
137
  role="radio"
138
138
  tabindex="0"
139
- aria-disabled="true"
139
+ aria-disabled="false"
140
140
  aria-checked="false"
141
141
  size="medium"
142
142
  >Option</syn-radio
@@ -164,14 +164,13 @@ The focus event gives the user feedback that one of the radio buttons has been f
164
164
 
165
165
  ---
166
166
 
167
- ## Disabled
167
+ ## Focus
168
168
 
169
- Radios and radio buttons can be disabled by adding the disabled attribute to the respective options inside the radio group.
169
+ The focus event gives the user feedback that one of the radio buttons has been focused by the keyboard interaction.
170
170
 
171
171
  ```html
172
172
  <syn-radio-group
173
173
  label="This is a label"
174
- help-text="This is disabled"
175
174
  name="a"
176
175
  value=""
177
176
  size="medium"
@@ -179,19 +178,19 @@ Radios and radio buttons can be disabled by adding the disabled attribute to the
179
178
  >
180
179
  <syn-radio
181
180
  value="1"
181
+ disabled=""
182
182
  role="radio"
183
183
  tabindex="0"
184
- aria-disabled="false"
184
+ aria-disabled="true"
185
185
  aria-checked="false"
186
186
  size="medium"
187
187
  >Option</syn-radio
188
188
  >
189
189
  <syn-radio
190
190
  value="2"
191
- disabled=""
192
191
  role="radio"
193
192
  tabindex="-1"
194
- aria-disabled="true"
193
+ aria-disabled="false"
195
194
  aria-checked="false"
196
195
  size="medium"
197
196
  >Option</syn-radio
@@ -210,21 +209,23 @@ Radios and radio buttons can be disabled by adding the disabled attribute to the
210
209
 
211
210
  ---
212
211
 
213
- ## Checked
212
+ ## Disabled
213
+
214
+ Radios and radio buttons can be disabled by adding the disabled attribute to the respective options inside the radio group.
214
215
 
215
216
  ```html
216
217
  <syn-radio-group
217
218
  label="This is a label"
218
- help-text="This is checked"
219
+ help-text="This is disabled"
219
220
  name="a"
220
- value="2"
221
+ value=""
221
222
  size="medium"
222
223
  form=""
223
224
  >
224
225
  <syn-radio
225
226
  value="1"
226
227
  role="radio"
227
- tabindex="-1"
228
+ tabindex="0"
228
229
  aria-disabled="false"
229
230
  aria-checked="false"
230
231
  size="medium"
@@ -232,10 +233,11 @@ Radios and radio buttons can be disabled by adding the disabled attribute to the
232
233
  >
233
234
  <syn-radio
234
235
  value="2"
236
+ disabled=""
235
237
  role="radio"
236
- tabindex="0"
237
- aria-disabled="false"
238
- aria-checked="true"
238
+ tabindex="-1"
239
+ aria-disabled="true"
240
+ aria-checked="false"
239
241
  size="medium"
240
242
  >Option</syn-radio
241
243
  >
@@ -253,6 +255,79 @@ Radios and radio buttons can be disabled by adding the disabled attribute to the
253
255
 
254
256
  ---
255
257
 
258
+ ## Sizes
259
+
260
+ The size of Radios and Radio Buttons will be determined by the Radio Group’s size attribute.
261
+
262
+ ```html
263
+ <div
264
+ style="display: flex; flex-direction: column; gap: var(--syn-spacing-large)"
265
+ >
266
+ <syn-radio-group label="Small size" size="small" value="" form="">
267
+ <syn-radio
268
+ value="1"
269
+ role="radio"
270
+ tabindex="0"
271
+ aria-disabled="false"
272
+ aria-checked="false"
273
+ size="small"
274
+ >Option</syn-radio
275
+ >
276
+ <syn-radio
277
+ value="2"
278
+ role="radio"
279
+ tabindex="-1"
280
+ aria-disabled="false"
281
+ aria-checked="false"
282
+ size="small"
283
+ >Option</syn-radio
284
+ >
285
+ </syn-radio-group>
286
+ <syn-radio-group label="Medium size" size="medium" value="" form="">
287
+ <syn-radio
288
+ value="1"
289
+ role="radio"
290
+ tabindex="0"
291
+ aria-disabled="false"
292
+ aria-checked="false"
293
+ size="medium"
294
+ >Option</syn-radio
295
+ >
296
+ <syn-radio
297
+ value="2"
298
+ role="radio"
299
+ tabindex="-1"
300
+ aria-disabled="false"
301
+ aria-checked="false"
302
+ size="medium"
303
+ >Option</syn-radio
304
+ >
305
+ </syn-radio-group>
306
+ <syn-radio-group label="Large size" size="large" value="" form="">
307
+ <syn-radio
308
+ value="1"
309
+ role="radio"
310
+ tabindex="0"
311
+ aria-disabled="false"
312
+ aria-checked="false"
313
+ size="large"
314
+ >Option</syn-radio
315
+ >
316
+ <syn-radio
317
+ value="2"
318
+ role="radio"
319
+ tabindex="-1"
320
+ aria-disabled="false"
321
+ aria-checked="false"
322
+ size="large"
323
+ >Option</syn-radio
324
+ >
325
+ </syn-radio-group>
326
+ </div>
327
+ ```
328
+
329
+ ---
330
+
256
331
  ## Invalid
257
332
 
258
333
  The invalid status is used to warn the user that the Radio Group is invalid. For example, if the radio is mandatory and nothing has been checked.
@@ -304,7 +379,7 @@ The invalid status is used to warn the user that the Radio Group is invalid. For
304
379
  .custom-validity {
305
380
  display: flex;
306
381
  flex-direction: column;
307
- gap: 1rem;
382
+ gap: var(--syn-spacing-large);
308
383
  }
309
384
  syn-button {
310
385
  align-self: flex-start;
package/package.json CHANGED
@@ -33,11 +33,11 @@
33
33
  "serve-handler": "^6.1.6",
34
34
  "ts-jest": "^29.4.4",
35
35
  "typescript": "^5.9.3",
36
+ "@synergy-design-system/components": "2.54.0",
36
37
  "@synergy-design-system/docs": "0.1.0",
37
- "@synergy-design-system/components": "2.53.0",
38
- "@synergy-design-system/eslint-config-syn": "^0.1.0",
39
38
  "@synergy-design-system/styles": "1.8.1",
40
- "@synergy-design-system/tokens": "^2.34.0"
39
+ "@synergy-design-system/eslint-config-syn": "^0.1.0",
40
+ "@synergy-design-system/tokens": "^2.35.0"
41
41
  },
42
42
  "exports": {
43
43
  ".": {
@@ -122,7 +122,7 @@
122
122
  "directory": "packages/mcp"
123
123
  },
124
124
  "type": "module",
125
- "version": "1.14.0",
125
+ "version": "1.15.0",
126
126
  "scripts": {
127
127
  "build": "pnpm run build:ts && pnpm run build:metadata && pnpm build:hash",
128
128
  "build:all": "pnpm run build && pnpm run build:storybook",