@synergy-design-system/mcp 1.12.0 → 1.13.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.13.0](https://github.com/synergy-design-system/synergy-design-system/compare/mcp/1.12.0...mcp/1.13.0) (2025-10-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * ✨ CD update for syn-checkbox ([#1050](https://github.com/synergy-design-system/synergy-design-system/issues/1050)) ([1054c71](https://github.com/synergy-design-system/synergy-design-system/commit/1054c71415f36233ba1e242433806aac21d4d19b))
7
+
1
8
  # [@synergy-design-system/mcp-v1.12.0](https://github.com/synergy-design-system/synergy-design-system/compare/mcp/1.11.0...mcp/1.12.0) (2025-10-23)
2
9
 
3
10
 
@@ -1 +1 @@
1
- d80b07b1c5fd9cf03e5d37e1384733b0
1
+ 70cb3200ddbb9faa6788b5b71e130280
@@ -2,13 +2,21 @@ import { css } from 'lit';
2
2
 
3
3
  export default css`
4
4
  .checkbox__control {
5
- border-radius: var(--syn-input-border-radius-small);
5
+ border-radius: var(--syn-checkbox-border-radius, var(--syn-input-border-radius-small));
6
6
  }
7
7
 
8
8
  :host([data-user-invalid]) .checkbox__control {
9
+ background: var(--syn-input-border-color-focus-error);
9
10
  border-color: var(--syn-input-border-color-focus-error);
10
11
  }
11
12
 
13
+ /**
14
+ * #943: When invalid, use a transparent background if not checked or indeterminate
15
+ */
16
+ :host([data-user-invalid]:not([checked]):not([indeterminate])) .checkbox__control {
17
+ background: transparent;
18
+ }
19
+
12
20
  /** #429: Use token for opacity */
13
21
  .checkbox--disabled {
14
22
  opacity: var(--syn-input-disabled-opacity);
@@ -1,3 +1,10 @@
1
+ # [@synergy-design-system/components-v2.52.0](https://github.com/synergy-design-system/synergy-design-system/compare/components/2.51.0...components/2.52.0) (2025-10-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * ✨ CD update for syn-checkbox ([#1050](https://github.com/synergy-design-system/synergy-design-system/issues/1050)) ([1054c71](https://github.com/synergy-design-system/synergy-design-system/commit/1054c71415f36233ba1e242433806aac21d4d19b))
7
+
1
8
  # [@synergy-design-system/components-v2.51.0](https://github.com/synergy-design-system/synergy-design-system/compare/components/2.50.0...components/2.51.0) (2025-10-23)
2
9
 
3
10
 
@@ -1,3 +1,10 @@
1
+ # [@synergy-design-system/tokens-v2.33.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/2.32.0...tokens/2.33.0) (2025-10-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * ✨ CD update for syn-checkbox ([#1050](https://github.com/synergy-design-system/synergy-design-system/issues/1050)) ([1054c71](https://github.com/synergy-design-system/synergy-design-system/commit/1054c71415f36233ba1e242433806aac21d4d19b))
7
+
1
8
  # [@synergy-design-system/tokens-v2.32.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/2.31.0...tokens/2.32.0) (2025-10-23)
2
9
 
3
10
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.31.0
2
+ * @synergy-design-system/tokens version 2.32.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -23,6 +23,7 @@
23
23
  --syn-button-font-size-large: var(--syn-font-size-large);
24
24
  --syn-button-font-size-medium: var(--syn-font-size-medium);
25
25
  --syn-button-font-size-small: var(--syn-font-size-small);
26
+ --syn-checkbox-border-radius: var(--syn-border-radius-none);
26
27
  --syn-color-accent-50: #481700;
27
28
  --syn-color-accent-100: #7c310b;
28
29
  --syn-color-accent-200: #983b08;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.31.0
2
+ * @synergy-design-system/tokens version 2.32.0
3
3
  * SICK Global UX Foundation
4
4
  */
5
5
 
@@ -83,6 +83,11 @@ export const SynButtonFontSizeMedium = 'var(--syn-button-font-size-medium)';
83
83
  */
84
84
  export const SynButtonFontSizeSmall = 'var(--syn-button-font-size-small)';
85
85
 
86
+ /**
87
+ * @type {string}
88
+ */
89
+ export const SynCheckboxBorderRadius = 'var(--syn-checkbox-border-radius)';
90
+
86
91
  /**
87
92
  * @type {string}
88
93
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.31.0
2
+ * @synergy-design-system/tokens version 2.32.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -23,6 +23,7 @@
23
23
  --syn-button-font-size-large: var(--syn-font-size-large);
24
24
  --syn-button-font-size-medium: var(--syn-font-size-medium);
25
25
  --syn-button-font-size-small: var(--syn-font-size-small);
26
+ --syn-checkbox-border-radius: var(--syn-border-radius-none);
26
27
  --syn-color-accent-50: #fffbea;
27
28
  --syn-color-accent-100: #fff2c5;
28
29
  --syn-color-accent-200: #ffe685;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.31.0
2
+ * @synergy-design-system/tokens version 2.32.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -23,6 +23,7 @@
23
23
  --syn-button-font-size-large: var(--syn-font-size-large);
24
24
  --syn-button-font-size-medium: var(--syn-font-size-medium);
25
25
  --syn-button-font-size-small: var(--syn-font-size-small);
26
+ --syn-checkbox-border-radius: var(--syn-border-radius-none);
26
27
  --syn-color-accent-50: #481700;
27
28
  --syn-color-accent-100: #7c310b;
28
29
  --syn-color-accent-200: #983b08;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.31.0
2
+ * @synergy-design-system/tokens version 2.32.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -23,6 +23,7 @@
23
23
  --syn-button-font-size-large: var(--syn-font-size-large);
24
24
  --syn-button-font-size-medium: var(--syn-font-size-medium);
25
25
  --syn-button-font-size-small: var(--syn-font-size-small);
26
+ --syn-checkbox-border-radius: var(--syn-border-radius-none);
26
27
  --syn-color-accent-50: #fffbea;
27
28
  --syn-color-accent-100: #fff2c5;
28
29
  --syn-color-accent-200: #ffe685;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.31.0
2
+ * @synergy-design-system/tokens version 2.32.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -23,6 +23,7 @@
23
23
  --syn-button-font-size-large: var(--syn-font-size-large);
24
24
  --syn-button-font-size-medium: var(--syn-font-size-medium);
25
25
  --syn-button-font-size-small: var(--syn-font-size-small);
26
+ --syn-checkbox-border-radius: var(--syn-border-radius-small);
26
27
  --syn-color-accent-50: #ffffff;
27
28
  --syn-color-accent-100: #ffffff;
28
29
  --syn-color-accent-200: #ffffff;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @synergy-design-system/tokens version 2.31.0
2
+ * @synergy-design-system/tokens version 2.32.0
3
3
  * SICK Global UX Foundation
4
4
  * Do not edit directly, this file was auto-generated.
5
5
  */
@@ -23,6 +23,7 @@
23
23
  --syn-button-font-size-large: var(--syn-font-size-large);
24
24
  --syn-button-font-size-medium: var(--syn-font-size-medium);
25
25
  --syn-button-font-size-small: var(--syn-font-size-small);
26
+ --syn-checkbox-border-radius: var(--syn-border-radius-small);
26
27
  --syn-color-accent-50: #ffffff;
27
28
  --syn-color-accent-100: #ffffff;
28
29
  --syn-color-accent-200: #ffffff;
@@ -18,6 +18,22 @@ Use the checked attribute to activate the checkbox.
18
18
 
19
19
  ---
20
20
 
21
+ ## Help Text
22
+
23
+ Add descriptive help text to a checkbox 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.
24
+
25
+ ```html
26
+ <syn-checkbox
27
+ help-text="What should the user know about the checkbox?"
28
+ title=""
29
+ size="medium"
30
+ form=""
31
+ >Label</syn-checkbox
32
+ >
33
+ ```
34
+
35
+ ---
36
+
21
37
  ## Indeterminate
22
38
 
23
39
  Use the indeterminate attribute to make the checkbox indeterminate.
@@ -30,6 +46,16 @@ Use the indeterminate attribute to make the checkbox indeterminate.
30
46
 
31
47
  ---
32
48
 
49
+ ## Focus
50
+
51
+ The focus event gives the user feedback that the Checkbox has been focused by the keyboard interaction.
52
+
53
+ ```html
54
+ <syn-checkbox title="" size="medium" form="">Focused</syn-checkbox>
55
+ ```
56
+
57
+ ---
58
+
33
59
  ## Disabled
34
60
 
35
61
  Use the disabled attribute to disable the checkbox.
@@ -45,7 +71,9 @@ Use the disabled attribute to disable the checkbox.
45
71
  Use the size attribute to change a checkbox’s size.
46
72
 
47
73
  ```html
48
- <div style="display: flex; flex-direction: column; gap: 1rem">
74
+ <div
75
+ style="display: flex; flex-direction: column; gap: var(--syn-spacing-large)"
76
+ >
49
77
  <syn-checkbox size="small" title="" form="">Small</syn-checkbox>
50
78
  <syn-checkbox size="medium" title="" form="">Medium</syn-checkbox>
51
79
  <syn-checkbox size="large" title="" form="">Large</syn-checkbox>
@@ -54,6 +82,41 @@ Use the size attribute to change a checkbox’s size.
54
82
 
55
83
  ---
56
84
 
85
+ ## Invalid
86
+
87
+ The invalid status is used to warn the user that the Checkbox is invalid. For example, if the check is mandatory and nothing has been checked.
88
+
89
+ ```html
90
+ <form class="custom-validity">
91
+ <div class="custom-validity">
92
+ <syn-checkbox required="" title="" size="medium" form=""
93
+ >Invalid</syn-checkbox
94
+ >
95
+ <syn-checkbox required="" indeterminate="" title="" size="medium" form=""
96
+ >Invalid</syn-checkbox
97
+ >
98
+ <syn-checkbox required="" checked="" title="" size="medium" form=""
99
+ >Invalid</syn-checkbox
100
+ >
101
+ </div>
102
+ <syn-button type="submit" variant="filled" title="" size="medium"
103
+ >Submit</syn-button
104
+ >
105
+ </form>
106
+ <style>
107
+ .custom-validity {
108
+ display: flex;
109
+ flex-direction: column;
110
+ gap: var(--syn-spacing-large);
111
+ }
112
+ syn-button {
113
+ align-self: flex-start;
114
+ }
115
+ </style>
116
+ ```
117
+
118
+ ---
119
+
57
120
  ## Custom Validity
58
121
 
59
122
  Use the setCustomValidity() method to set a custom validation message. This will prevent the form from submitting and make the browser display the error message you provide. To clear the error, call this function with an empty string.
package/package.json CHANGED
@@ -33,10 +33,10 @@
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.51.0",
36
+ "@synergy-design-system/components": "2.52.0",
37
37
  "@synergy-design-system/docs": "0.1.0",
38
38
  "@synergy-design-system/eslint-config-syn": "^0.1.0",
39
- "@synergy-design-system/tokens": "^2.32.0",
39
+ "@synergy-design-system/tokens": "^2.33.0",
40
40
  "@synergy-design-system/styles": "1.8.1"
41
41
  },
42
42
  "exports": {
@@ -122,7 +122,7 @@
122
122
  "directory": "packages/mcp"
123
123
  },
124
124
  "type": "module",
125
- "version": "1.12.0",
125
+ "version": "1.13.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",