@synergy-design-system/mcp 1.11.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 +14 -0
- package/metadata/checksum.txt +1 -1
- package/metadata/packages/components/components/syn-checkbox/component.custom.styles.ts +9 -1
- package/metadata/packages/components/components/syn-icon-button/component.custom.styles.ts +17 -6
- package/metadata/packages/components/static/CHANGELOG.md +14 -0
- package/metadata/packages/tokens/CHANGELOG.md +14 -0
- package/metadata/packages/tokens/dark.css +3 -1
- package/metadata/packages/tokens/index.js +11 -1
- package/metadata/packages/tokens/light.css +3 -1
- package/metadata/packages/tokens/sick2018_dark.css +3 -1
- package/metadata/packages/tokens/sick2018_light.css +3 -1
- package/metadata/packages/tokens/sick2025_dark.css +3 -1
- package/metadata/packages/tokens/sick2025_light.css +3 -1
- package/metadata/static/components/syn-checkbox/docs.md +64 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
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)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* ✨ CD update for syn-icon-button ([#1048](https://github.com/synergy-design-system/synergy-design-system/issues/1048)) ([d740a54](https://github.com/synergy-design-system/synergy-design-system/commit/d740a5495abd1b36bbe1c1c47fc69ca6a6480549))
|
|
14
|
+
|
|
1
15
|
# [@synergy-design-system/mcp-v1.11.0](https://github.com/synergy-design-system/synergy-design-system/compare/mcp/1.10.0...mcp/1.11.0) (2025-10-23)
|
|
2
16
|
|
|
3
17
|
|
package/metadata/checksum.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
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);
|
|
@@ -16,7 +16,7 @@ export default css`
|
|
|
16
16
|
|
|
17
17
|
/* Remove round borders */
|
|
18
18
|
.icon-button:focus-visible {
|
|
19
|
-
border-radius: var(--syn-border-radius-none);
|
|
19
|
+
border-radius: var(--syn-icon-button-focus-ring-border-radius, var(--syn-border-radius-none));
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
/* Colors */
|
|
@@ -26,20 +26,31 @@ export default css`
|
|
|
26
26
|
|
|
27
27
|
:host([color="primary"]),
|
|
28
28
|
:host([color="primary"]) .icon-button:focus-visible:not(.icon-button--disabled) {
|
|
29
|
-
color: var(--syn-color-primary-600);
|
|
29
|
+
color: var(--syn-interactive-emphasis-color, var(--syn-color-primary-600));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
:host([color="primary"]) .icon-button:hover:not(.icon-button--disabled) {
|
|
33
|
-
color: var(--syn-color-primary-900);
|
|
33
|
+
color: var(--syn-interactive-emphasis-color-hover, var(--syn-color-primary-900));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
:host([color="primary"]) .icon-button:active:not(.icon-button--disabled) {
|
|
37
|
-
color: var(--syn-color-primary-950);
|
|
37
|
+
color: var(--syn-interactive-emphasis-color-active, var(--syn-color-primary-950));
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
:host([color="neutral"]) {
|
|
41
|
+
color: var(--syn-interactive-quiet-color, var(--syn-typography-color-text));
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host([color="neutral"]) .icon-button:hover:not(.icon-button--disabled) {
|
|
45
|
+
color: var(--syn-interactive-quiet-color-hover, var(--syn-color-primary-600));
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host([color="neutral"]) .icon-button:active:not(.icon-button--disabled) {
|
|
49
|
+
color: var(--syn-interactive-quiet-color-active, var(--syn-color-primary-700));
|
|
38
50
|
}
|
|
39
51
|
|
|
40
|
-
:host([color="neutral"]),
|
|
41
52
|
:host([color="neutral"]) .icon-button:focus-visible:not(.icon-button--disabled):not(:hover) {
|
|
42
|
-
color: var(--syn-color-
|
|
53
|
+
color: var(--syn-interactive-quiet-color, var(--syn-typography-color-text));
|
|
43
54
|
}
|
|
44
55
|
|
|
45
56
|
/* Sizes */
|
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
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)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* ✨ CD update for syn-icon-button ([#1048](https://github.com/synergy-design-system/synergy-design-system/issues/1048)) ([d740a54](https://github.com/synergy-design-system/synergy-design-system/commit/d740a5495abd1b36bbe1c1c47fc69ca6a6480549))
|
|
14
|
+
|
|
1
15
|
# [@synergy-design-system/components-v2.50.0](https://github.com/synergy-design-system/synergy-design-system/compare/components/2.49.0...components/2.50.0) (2025-10-23)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,3 +1,17 @@
|
|
|
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
|
+
|
|
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)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* ✨ CD update for syn-icon-button ([#1048](https://github.com/synergy-design-system/synergy-design-system/issues/1048)) ([d740a54](https://github.com/synergy-design-system/synergy-design-system/commit/d740a5495abd1b36bbe1c1c47fc69ca6a6480549))
|
|
14
|
+
|
|
1
15
|
# [@synergy-design-system/tokens-v2.31.0](https://github.com/synergy-design-system/synergy-design-system/compare/tokens/2.30.0...tokens/2.31.0) (2025-10-23)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 2.
|
|
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;
|
|
@@ -121,6 +122,7 @@
|
|
|
121
122
|
--syn-font-weight-normal: 400;
|
|
122
123
|
--syn-font-weight-semibold: 600;
|
|
123
124
|
--syn-header-border-color: var(--syn-color-neutral-400);
|
|
125
|
+
--syn-icon-button-focus-ring-border-radius: var(--syn-border-radius-none);
|
|
124
126
|
--syn-input-background-color: var(--syn-color-neutral-0);
|
|
125
127
|
--syn-input-background-color-disabled: var(--syn-input-background-color);
|
|
126
128
|
--syn-input-background-color-focus: var(--syn-input-background-color);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 2.
|
|
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
|
*/
|
|
@@ -573,6 +578,11 @@ export const SynFontWeightSemibold = 'var(--syn-font-weight-semibold)';
|
|
|
573
578
|
*/
|
|
574
579
|
export const SynHeaderBorderColor = 'var(--syn-header-border-color)';
|
|
575
580
|
|
|
581
|
+
/**
|
|
582
|
+
* @type {string}
|
|
583
|
+
*/
|
|
584
|
+
export const SynIconButtonFocusRingBorderRadius = 'var(--syn-icon-button-focus-ring-border-radius)';
|
|
585
|
+
|
|
576
586
|
/**
|
|
577
587
|
* @type {string}
|
|
578
588
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 2.
|
|
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;
|
|
@@ -121,6 +122,7 @@
|
|
|
121
122
|
--syn-font-weight-normal: 400;
|
|
122
123
|
--syn-font-weight-semibold: 600;
|
|
123
124
|
--syn-header-border-color: var(--syn-color-neutral-400);
|
|
125
|
+
--syn-icon-button-focus-ring-border-radius: var(--syn-border-radius-none);
|
|
124
126
|
--syn-input-background-color: var(--syn-color-neutral-0);
|
|
125
127
|
--syn-input-background-color-disabled: var(--syn-input-background-color);
|
|
126
128
|
--syn-input-background-color-focus: var(--syn-input-background-color);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 2.
|
|
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;
|
|
@@ -121,6 +122,7 @@
|
|
|
121
122
|
--syn-font-weight-normal: 400;
|
|
122
123
|
--syn-font-weight-semibold: 600;
|
|
123
124
|
--syn-header-border-color: var(--syn-color-neutral-400);
|
|
125
|
+
--syn-icon-button-focus-ring-border-radius: var(--syn-border-radius-none);
|
|
124
126
|
--syn-input-background-color: var(--syn-color-neutral-0);
|
|
125
127
|
--syn-input-background-color-disabled: var(--syn-input-background-color);
|
|
126
128
|
--syn-input-background-color-focus: var(--syn-input-background-color);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 2.
|
|
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;
|
|
@@ -121,6 +122,7 @@
|
|
|
121
122
|
--syn-font-weight-normal: 400;
|
|
122
123
|
--syn-font-weight-semibold: 600;
|
|
123
124
|
--syn-header-border-color: var(--syn-color-neutral-400);
|
|
125
|
+
--syn-icon-button-focus-ring-border-radius: var(--syn-border-radius-none);
|
|
124
126
|
--syn-input-background-color: var(--syn-color-neutral-0);
|
|
125
127
|
--syn-input-background-color-disabled: var(--syn-input-background-color);
|
|
126
128
|
--syn-input-background-color-focus: var(--syn-input-background-color);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 2.
|
|
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;
|
|
@@ -121,6 +122,7 @@
|
|
|
121
122
|
--syn-font-weight-normal: 400;
|
|
122
123
|
--syn-font-weight-semibold: 600;
|
|
123
124
|
--syn-header-border-color: var(--syn-color-neutral-300);
|
|
125
|
+
--syn-icon-button-focus-ring-border-radius: var(--syn-border-radius-pill);
|
|
124
126
|
--syn-input-background-color: var(--syn-color-neutral-50);
|
|
125
127
|
--syn-input-background-color-disabled: var(--syn-input-background-color);
|
|
126
128
|
--syn-input-background-color-focus: var(--syn-input-background-color);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 2.
|
|
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;
|
|
@@ -121,6 +122,7 @@
|
|
|
121
122
|
--syn-font-weight-normal: 400;
|
|
122
123
|
--syn-font-weight-semibold: 600;
|
|
123
124
|
--syn-header-border-color: #e6e1dc;
|
|
125
|
+
--syn-icon-button-focus-ring-border-radius: var(--syn-border-radius-pill);
|
|
124
126
|
--syn-input-background-color: var(--syn-color-neutral-0);
|
|
125
127
|
--syn-input-background-color-disabled: var(--syn-input-background-color);
|
|
126
128
|
--syn-input-background-color-focus: var(--syn-input-background-color);
|
|
@@ -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
|
|
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.
|
|
37
|
-
"@synergy-design-system/tokens": "^2.31.0",
|
|
38
|
-
"@synergy-design-system/eslint-config-syn": "^0.1.0",
|
|
36
|
+
"@synergy-design-system/components": "2.52.0",
|
|
39
37
|
"@synergy-design-system/docs": "0.1.0",
|
|
38
|
+
"@synergy-design-system/eslint-config-syn": "^0.1.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.
|
|
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",
|