@synergy-design-system/mcp 2.6.1 → 2.8.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 +33 -0
- package/dist/utilities/storybook/scraper.js +14 -3
- package/metadata/checksum.txt +1 -1
- package/metadata/packages/components/components/syn-alert/component.styles.ts +126 -26
- package/metadata/packages/components/components/syn-alert/component.ts +1 -2
- package/metadata/packages/components/components/syn-checkbox/component.angular.ts +13 -0
- package/metadata/packages/components/components/syn-checkbox/component.styles.ts +99 -39
- package/metadata/packages/components/components/syn-checkbox/component.ts +13 -10
- package/metadata/packages/components/components/syn-checkbox/component.vue +5 -0
- package/metadata/packages/components/components/syn-combobox/component.angular.ts +13 -0
- package/metadata/packages/components/components/syn-combobox/component.styles.ts +216 -193
- package/metadata/packages/components/components/syn-combobox/component.ts +68 -39
- package/metadata/packages/components/components/syn-combobox/component.vue +5 -0
- package/metadata/packages/components/components/syn-file/component.angular.ts +13 -0
- package/metadata/packages/components/components/syn-file/component.styles.ts +20 -3
- package/metadata/packages/components/components/syn-file/component.ts +19 -5
- package/metadata/packages/components/components/syn-file/component.vue +5 -0
- package/metadata/packages/components/components/syn-input/component.ts +1 -2
- package/metadata/packages/components/components/syn-popup/component.styles.ts +24 -17
- package/metadata/packages/components/components/syn-popup/component.ts +1 -2
- package/metadata/packages/components/components/syn-radio/component.angular.ts +13 -0
- package/metadata/packages/components/components/syn-radio/component.styles.ts +91 -29
- package/metadata/packages/components/components/syn-radio/component.ts +19 -10
- package/metadata/packages/components/components/syn-radio/component.vue +5 -0
- package/metadata/packages/components/components/syn-radio-group/component.styles.ts +30 -9
- package/metadata/packages/components/components/syn-radio-group/component.ts +61 -32
- package/metadata/packages/components/components/syn-range/component.angular.ts +13 -0
- package/metadata/packages/components/components/syn-range/component.styles.ts +27 -3
- package/metadata/packages/components/components/syn-range/component.ts +17 -5
- package/metadata/packages/components/components/syn-range/component.vue +5 -0
- package/metadata/packages/components/components/syn-select/component.angular.ts +13 -0
- package/metadata/packages/components/components/syn-select/component.styles.ts +222 -151
- package/metadata/packages/components/components/syn-select/component.ts +30 -15
- package/metadata/packages/components/components/syn-select/component.vue +5 -0
- package/metadata/packages/components/components/syn-switch/component.angular.ts +13 -0
- package/metadata/packages/components/components/syn-switch/component.styles.ts +145 -63
- package/metadata/packages/components/components/syn-switch/component.ts +16 -4
- package/metadata/packages/components/components/syn-switch/component.vue +5 -0
- package/metadata/packages/components/components/syn-textarea/component.styles.ts +55 -27
- package/metadata/packages/components/components/syn-textarea/component.ts +1 -3
- package/metadata/packages/components/components/syn-tooltip/component.styles.ts +15 -10
- package/metadata/packages/components/components/syn-tooltip/component.ts +13 -5
- package/metadata/packages/components/components/syn-validate/component.angular.ts +9 -0
- package/metadata/packages/components/components/syn-validate/component.react.ts +8 -0
- package/metadata/packages/components/components/syn-validate/component.ts +106 -8
- package/metadata/packages/components/components/syn-validate/component.vue +9 -0
- package/metadata/packages/components/static/CHANGELOG.md +43 -0
- package/metadata/packages/tokens/CHANGELOG.md +33 -0
- package/metadata/packages/tokens/dark.css +7 -1
- package/metadata/packages/tokens/index.js +31 -1
- package/metadata/packages/tokens/light.css +7 -1
- package/metadata/packages/tokens/sick2018_dark.css +7 -1
- package/metadata/packages/tokens/sick2018_light.css +7 -1
- package/metadata/packages/tokens/sick2025_dark.css +7 -1
- package/metadata/packages/tokens/sick2025_light.css +7 -1
- package/metadata/static/components/syn-checkbox/docs.md +36 -0
- package/metadata/static/components/syn-combobox/docs.md +138 -0
- package/metadata/static/components/syn-file/docs.md +24 -0
- package/metadata/static/components/syn-input/docs.md +1 -1
- package/metadata/static/components/syn-radio/docs.md +21 -0
- package/metadata/static/components/syn-radio-group/docs.md +46 -0
- package/metadata/static/components/syn-range/docs.md +19 -0
- package/metadata/static/components/syn-select/docs.md +81 -0
- package/metadata/static/components/syn-switch/docs.md +22 -0
- package/metadata/static/components/syn-textarea/docs.md +1 -1
- package/metadata/static/components/syn-tooltip/docs.md +73 -0
- package/metadata/static/components/syn-validate/docs.md +33 -6
- package/package.json +4 -4
- package/metadata/packages/components/components/syn-alert/component.custom.styles.ts +0 -136
- package/metadata/packages/components/components/syn-checkbox/component.custom.styles.ts +0 -86
- package/metadata/packages/components/components/syn-combobox/component.custom.styles.ts +0 -122
- package/metadata/packages/components/components/syn-popup/component.custom.styles.ts +0 -18
- package/metadata/packages/components/components/syn-radio/component.custom.styles.ts +0 -86
- package/metadata/packages/components/components/syn-radio-group/component.custom.styles.ts +0 -25
- package/metadata/packages/components/components/syn-select/component.custom.styles.ts +0 -175
- package/metadata/packages/components/components/syn-switch/component.custom.styles.ts +0 -141
- package/metadata/packages/components/components/syn-textarea/component.custom.styles.ts +0 -48
- package/metadata/packages/components/components/syn-tooltip/component.custom.styles.ts +0 -13
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1192](https://github.com/synergy-design-system/synergy-design-system/pull/1192) [`31c54c0`](https://github.com/synergy-design-system/synergy-design-system/commit/31c54c04a651a14e20bc5f4b2aff1bd92ad26bc0) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-03-02
|
|
8
|
+
|
|
9
|
+
feat: ✨ New variant `tooltip` for `<syn-validate>` (#664)
|
|
10
|
+
|
|
11
|
+
`<syn-validate>` received the option to show validation errors using `<syn-tooltip>`.
|
|
12
|
+
To use this feature, set the `variant` property to `tooltip`.
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`31c54c0`](https://github.com/synergy-design-system/synergy-design-system/commit/31c54c04a651a14e20bc5f4b2aff1bd92ad26bc0)]:
|
|
17
|
+
- @synergy-design-system/tokens@3.6.0
|
|
18
|
+
|
|
19
|
+
## 3.5.0
|
|
20
|
+
|
|
21
|
+
### Minor Changes
|
|
22
|
+
|
|
23
|
+
- [#1189](https://github.com/synergy-design-system/synergy-design-system/pull/1189) [`a4f49ac`](https://github.com/synergy-design-system/synergy-design-system/commit/a4f49ac79a660ef5b8d1b380fe9fcd2159dc9b78) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-02-26
|
|
24
|
+
|
|
25
|
+
feat: ✨ Added readonly for various form fields (#1171, #1172, #1173, #1174, #1175, #1176, #1177, #1178)
|
|
26
|
+
|
|
27
|
+
Applies to:
|
|
28
|
+
- `<syn-checkbox>`
|
|
29
|
+
- `<syn-combobox>`
|
|
30
|
+
- `<syn-file>`
|
|
31
|
+
- `<syn-radio>`
|
|
32
|
+
- `<syn-radio-group>`
|
|
33
|
+
- `<syn-range>`
|
|
34
|
+
- `<syn-select>`
|
|
35
|
+
- `<syn-switch>`
|
|
36
|
+
|
|
37
|
+
Form elements now support being displayed as `readonly` fields.
|
|
38
|
+
|
|
39
|
+
Field marked `readonly` may receive focus, but their value cannot be changed by customer inputs.
|
|
40
|
+
|
|
41
|
+
### Patch Changes
|
|
42
|
+
|
|
43
|
+
- Updated dependencies [[`a4f49ac`](https://github.com/synergy-design-system/synergy-design-system/commit/a4f49ac79a660ef5b8d1b380fe9fcd2159dc9b78)]:
|
|
44
|
+
- @synergy-design-system/tokens@3.5.0
|
|
45
|
+
|
|
3
46
|
## 3.4.1
|
|
4
47
|
|
|
5
48
|
### Patch Changes
|
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1192](https://github.com/synergy-design-system/synergy-design-system/pull/1192) [`31c54c0`](https://github.com/synergy-design-system/synergy-design-system/commit/31c54c04a651a14e20bc5f4b2aff1bd92ad26bc0) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-03-02
|
|
8
|
+
|
|
9
|
+
feat: ✨ New variant `tooltip` for `<syn-validate>` (#664)
|
|
10
|
+
|
|
11
|
+
`<syn-validate>` received the option to show validation errors using `<syn-tooltip>`.
|
|
12
|
+
To use this feature, set the `variant` property to `tooltip`.
|
|
13
|
+
|
|
14
|
+
## 3.5.0
|
|
15
|
+
|
|
16
|
+
### Minor Changes
|
|
17
|
+
|
|
18
|
+
- [#1189](https://github.com/synergy-design-system/synergy-design-system/pull/1189) [`a4f49ac`](https://github.com/synergy-design-system/synergy-design-system/commit/a4f49ac79a660ef5b8d1b380fe9fcd2159dc9b78) Thanks [@schilchSICKAG](https://github.com/schilchSICKAG)! - Released on: 2026-02-26
|
|
19
|
+
|
|
20
|
+
feat: ✨ Added readonly for various form fields (#1171, #1172, #1173, #1174, #1175, #1176, #1177, #1178)
|
|
21
|
+
|
|
22
|
+
Applies to:
|
|
23
|
+
- `<syn-checkbox>`
|
|
24
|
+
- `<syn-combobox>`
|
|
25
|
+
- `<syn-file>`
|
|
26
|
+
- `<syn-radio>`
|
|
27
|
+
- `<syn-radio-group>`
|
|
28
|
+
- `<syn-range>`
|
|
29
|
+
- `<syn-select>`
|
|
30
|
+
- `<syn-switch>`
|
|
31
|
+
|
|
32
|
+
Form elements now support being displayed as `readonly` fields.
|
|
33
|
+
|
|
34
|
+
Field marked `readonly` may receive focus, but their value cannot be changed by customer inputs.
|
|
35
|
+
|
|
3
36
|
## 3.4.1
|
|
4
37
|
|
|
5
38
|
## 3.4.0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 3.
|
|
2
|
+
* @synergy-design-system/tokens version 3.5.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly, this file was auto-generated.
|
|
5
5
|
*/
|
|
@@ -321,6 +321,12 @@
|
|
|
321
321
|
--syn-range-tick-color: var(--syn-color-neutral-600);
|
|
322
322
|
--syn-range-track-color-active: var(--syn-interactive-emphasis-color);
|
|
323
323
|
--syn-readonly-background-color: var(--syn-color-neutral-300);
|
|
324
|
+
--syn-readonly-border-color: var(--syn-typography-color-text);
|
|
325
|
+
--syn-readonly-color-text: var(--syn-color-neutral-500);
|
|
326
|
+
--syn-readonly-icon-color: var(--syn-color-neutral-500);
|
|
327
|
+
--syn-readonly-icon-color-clearable: var(--syn-color-neutral-300);
|
|
328
|
+
--syn-readonly-icon-color-expand: var(--syn-color-neutral-500);
|
|
329
|
+
--syn-readonly-indicator-color: var(--syn-typography-color-text);
|
|
324
330
|
--syn-shadow-medium: 0px 1px 2px 0px rgba(13, 13, 13, 0.08), 0px 1px 4px 0px rgba(13, 13, 13, 0.08), 0px 2px 8px 0px rgba(13, 13, 13, 0.08);
|
|
325
331
|
--syn-shadow-large: 0px 0px 3px 0px rgba(13, 13, 13, 0.12), 0px 2px 6px 0px rgba(13, 13, 13, 0.12), 0px 3px 8px 0px rgba(13, 13, 13, 0.16);
|
|
326
332
|
--syn-shadow-x-large: 0px 1px 4px 0px rgba(13, 13, 13, 0.12), 0px 8px 24px 0px rgba(13, 13, 13, 0.12), 0px 16px 48px 0px rgba(13, 13, 13, 0.16);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 3.
|
|
2
|
+
* @synergy-design-system/tokens version 3.5.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
*/
|
|
5
5
|
|
|
@@ -1573,6 +1573,36 @@ export const SynRangeTrackColorActive = 'var(--syn-range-track-color-active)';
|
|
|
1573
1573
|
*/
|
|
1574
1574
|
export const SynReadonlyBackgroundColor = 'var(--syn-readonly-background-color)';
|
|
1575
1575
|
|
|
1576
|
+
/**
|
|
1577
|
+
* @type {string}
|
|
1578
|
+
*/
|
|
1579
|
+
export const SynReadonlyBorderColor = 'var(--syn-readonly-border-color)';
|
|
1580
|
+
|
|
1581
|
+
/**
|
|
1582
|
+
* @type {string}
|
|
1583
|
+
*/
|
|
1584
|
+
export const SynReadonlyColorText = 'var(--syn-readonly-color-text)';
|
|
1585
|
+
|
|
1586
|
+
/**
|
|
1587
|
+
* @type {string}
|
|
1588
|
+
*/
|
|
1589
|
+
export const SynReadonlyIconColor = 'var(--syn-readonly-icon-color)';
|
|
1590
|
+
|
|
1591
|
+
/**
|
|
1592
|
+
* @type {string}
|
|
1593
|
+
*/
|
|
1594
|
+
export const SynReadonlyIconColorClearable = 'var(--syn-readonly-icon-color-clearable)';
|
|
1595
|
+
|
|
1596
|
+
/**
|
|
1597
|
+
* @type {string}
|
|
1598
|
+
*/
|
|
1599
|
+
export const SynReadonlyIconColorExpand = 'var(--syn-readonly-icon-color-expand)';
|
|
1600
|
+
|
|
1601
|
+
/**
|
|
1602
|
+
* @type {string}
|
|
1603
|
+
*/
|
|
1604
|
+
export const SynReadonlyIndicatorColor = 'var(--syn-readonly-indicator-color)';
|
|
1605
|
+
|
|
1576
1606
|
/**
|
|
1577
1607
|
* @type {string}
|
|
1578
1608
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 3.
|
|
2
|
+
* @synergy-design-system/tokens version 3.5.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly, this file was auto-generated.
|
|
5
5
|
*/
|
|
@@ -321,6 +321,12 @@
|
|
|
321
321
|
--syn-range-tick-color: var(--syn-color-neutral-500);
|
|
322
322
|
--syn-range-track-color-active: var(--syn-interactive-emphasis-color);
|
|
323
323
|
--syn-readonly-background-color: #e6e1dc;
|
|
324
|
+
--syn-readonly-border-color: var(--syn-typography-color-text);
|
|
325
|
+
--syn-readonly-color-text: var(--syn-color-neutral-400);
|
|
326
|
+
--syn-readonly-icon-color: var(--syn-color-neutral-400);
|
|
327
|
+
--syn-readonly-icon-color-clearable: var(--syn-color-neutral-300);
|
|
328
|
+
--syn-readonly-icon-color-expand: var(--syn-color-neutral-400);
|
|
329
|
+
--syn-readonly-indicator-color: var(--syn-typography-color-text);
|
|
324
330
|
--syn-shadow-medium: 0px 1px 2px 0px rgba(13, 13, 13, 0.08), 0px 1px 4px 0px rgba(13, 13, 13, 0.08), 0px 2px 8px 0px rgba(13, 13, 13, 0.08);
|
|
325
331
|
--syn-shadow-large: 0px 0px 3px 0px rgba(13, 13, 13, 0.12), 0px 2px 6px 0px rgba(13, 13, 13, 0.12), 0px 3px 8px 0px rgba(13, 13, 13, 0.16);
|
|
326
332
|
--syn-shadow-x-large: 0px 1px 4px 0px rgba(13, 13, 13, 0.12), 0px 8px 24px 0px rgba(13, 13, 13, 0.12), 0px 16px 48px 0px rgba(13, 13, 13, 0.16);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 3.
|
|
2
|
+
* @synergy-design-system/tokens version 3.5.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly, this file was auto-generated.
|
|
5
5
|
*/
|
|
@@ -321,6 +321,12 @@
|
|
|
321
321
|
--syn-range-tick-color: var(--syn-color-neutral-400);
|
|
322
322
|
--syn-range-track-color-active: var(--syn-interactive-emphasis-color);
|
|
323
323
|
--syn-readonly-background-color: var(--syn-color-neutral-300);
|
|
324
|
+
--syn-readonly-border-color: var(--syn-typography-color-text);
|
|
325
|
+
--syn-readonly-color-text: var(--syn-color-neutral-500);
|
|
326
|
+
--syn-readonly-icon-color: var(--syn-color-neutral-500);
|
|
327
|
+
--syn-readonly-icon-color-clearable: var(--syn-color-neutral-400);
|
|
328
|
+
--syn-readonly-icon-color-expand: var(--syn-color-neutral-500);
|
|
329
|
+
--syn-readonly-indicator-color: var(--syn-typography-color-text);
|
|
324
330
|
--syn-shadow-medium: 0px 1px 2px 0px rgba(49, 55, 58, 0.08), 0px 1px 4px 0px rgba(49, 55, 58, 0.08), 0px 2px 8px 0px rgba(49, 55, 58, 0.08);
|
|
325
331
|
--syn-shadow-large: 0px 0px 3px 0px rgba(49, 55, 58, 0.12), 0px 2px 6px 0px rgba(49, 55, 58, 0.12), 0px 3px 8px 0px rgba(49, 55, 58, 0.16);
|
|
326
332
|
--syn-shadow-x-large: 0px 1px 4px 0px rgba(49, 55, 58, 0.12), 0px 8px 24px 0px rgba(49, 55, 58, 0.12), 0px 16px 48px 0px rgba(49, 55, 58, 0.16);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 3.
|
|
2
|
+
* @synergy-design-system/tokens version 3.5.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly, this file was auto-generated.
|
|
5
5
|
*/
|
|
@@ -321,6 +321,12 @@
|
|
|
321
321
|
--syn-range-tick-color: var(--syn-color-neutral-400);
|
|
322
322
|
--syn-range-track-color-active: var(--syn-interactive-emphasis-color);
|
|
323
323
|
--syn-readonly-background-color: var(--syn-color-neutral-300);
|
|
324
|
+
--syn-readonly-border-color: var(--syn-typography-color-text);
|
|
325
|
+
--syn-readonly-color-text: var(--syn-color-neutral-500);
|
|
326
|
+
--syn-readonly-icon-color: var(--syn-color-neutral-500);
|
|
327
|
+
--syn-readonly-icon-color-clearable: var(--syn-color-neutral-400);
|
|
328
|
+
--syn-readonly-icon-color-expand: var(--syn-color-neutral-500);
|
|
329
|
+
--syn-readonly-indicator-color: var(--syn-typography-color-text);
|
|
324
330
|
--syn-shadow-medium: 0px 1px 2px 0px rgba(49, 55, 58, 0.08), 0px 1px 4px 0px rgba(49, 55, 58, 0.08), 0px 2px 8px 0px rgba(49, 55, 58, 0.08);
|
|
325
331
|
--syn-shadow-large: 0px 0px 3px 0px rgba(49, 55, 58, 0.12), 0px 2px 6px 0px rgba(49, 55, 58, 0.12), 0px 3px 8px 0px rgba(49, 55, 58, 0.16);
|
|
326
332
|
--syn-shadow-x-large: 0px 1px 4px 0px rgba(49, 55, 58, 0.12), 0px 8px 24px 0px rgba(49, 55, 58, 0.12), 0px 16px 48px 0px rgba(49, 55, 58, 0.16);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 3.
|
|
2
|
+
* @synergy-design-system/tokens version 3.5.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly, this file was auto-generated.
|
|
5
5
|
*/
|
|
@@ -321,6 +321,12 @@
|
|
|
321
321
|
--syn-range-tick-color: var(--syn-color-neutral-600);
|
|
322
322
|
--syn-range-track-color-active: var(--syn-interactive-emphasis-color);
|
|
323
323
|
--syn-readonly-background-color: var(--syn-color-neutral-300);
|
|
324
|
+
--syn-readonly-border-color: var(--syn-typography-color-text);
|
|
325
|
+
--syn-readonly-color-text: var(--syn-color-neutral-500);
|
|
326
|
+
--syn-readonly-icon-color: var(--syn-color-neutral-500);
|
|
327
|
+
--syn-readonly-icon-color-clearable: var(--syn-color-neutral-300);
|
|
328
|
+
--syn-readonly-icon-color-expand: var(--syn-color-neutral-500);
|
|
329
|
+
--syn-readonly-indicator-color: var(--syn-typography-color-text);
|
|
324
330
|
--syn-shadow-medium: 0px 1px 2px 0px rgba(13, 13, 13, 0.08), 0px 1px 4px 0px rgba(13, 13, 13, 0.08), 0px 2px 8px 0px rgba(13, 13, 13, 0.08);
|
|
325
331
|
--syn-shadow-large: 0px 0px 3px 0px rgba(13, 13, 13, 0.12), 0px 2px 6px 0px rgba(13, 13, 13, 0.12), 0px 3px 8px 0px rgba(13, 13, 13, 0.16);
|
|
326
332
|
--syn-shadow-x-large: 0px 1px 4px 0px rgba(13, 13, 13, 0.12), 0px 8px 24px 0px rgba(13, 13, 13, 0.12), 0px 16px 48px 0px rgba(13, 13, 13, 0.16);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 3.
|
|
2
|
+
* @synergy-design-system/tokens version 3.5.0
|
|
3
3
|
* SICK Global UX Foundation
|
|
4
4
|
* Do not edit directly, this file was auto-generated.
|
|
5
5
|
*/
|
|
@@ -321,6 +321,12 @@
|
|
|
321
321
|
--syn-range-tick-color: var(--syn-color-neutral-500);
|
|
322
322
|
--syn-range-track-color-active: var(--syn-interactive-emphasis-color);
|
|
323
323
|
--syn-readonly-background-color: #e6e1dc;
|
|
324
|
+
--syn-readonly-border-color: var(--syn-typography-color-text);
|
|
325
|
+
--syn-readonly-color-text: var(--syn-color-neutral-400);
|
|
326
|
+
--syn-readonly-icon-color: var(--syn-color-neutral-400);
|
|
327
|
+
--syn-readonly-icon-color-clearable: var(--syn-color-neutral-300);
|
|
328
|
+
--syn-readonly-icon-color-expand: var(--syn-color-neutral-400);
|
|
329
|
+
--syn-readonly-indicator-color: var(--syn-typography-color-text);
|
|
324
330
|
--syn-shadow-medium: 0px 1px 2px 0px rgba(13, 13, 13, 0.08), 0px 1px 4px 0px rgba(13, 13, 13, 0.08), 0px 2px 8px 0px rgba(13, 13, 13, 0.08);
|
|
325
331
|
--syn-shadow-large: 0px 0px 3px 0px rgba(13, 13, 13, 0.12), 0px 2px 6px 0px rgba(13, 13, 13, 0.12), 0px 3px 8px 0px rgba(13, 13, 13, 0.16);
|
|
326
332
|
--syn-shadow-x-large: 0px 1px 4px 0px rgba(13, 13, 13, 0.12), 0px 8px 24px 0px rgba(13, 13, 13, 0.12), 0px 16px 48px 0px rgba(13, 13, 13, 0.16);
|
|
@@ -66,6 +66,42 @@ Use the disabled attribute to disable the checkbox.
|
|
|
66
66
|
|
|
67
67
|
---
|
|
68
68
|
|
|
69
|
+
## Readonly
|
|
70
|
+
|
|
71
|
+
Add the readonly attribute to draw a read-only checkbox.
|
|
72
|
+
|
|
73
|
+
```html
|
|
74
|
+
<div
|
|
75
|
+
style="display: flex; flex-direction: column; gap: var(--syn-spacing-large)"
|
|
76
|
+
>
|
|
77
|
+
<syn-checkbox name="a" value="a" readonly="" title="" size="medium" form=""
|
|
78
|
+
>Read only content</syn-checkbox
|
|
79
|
+
>
|
|
80
|
+
<syn-checkbox
|
|
81
|
+
name="b"
|
|
82
|
+
value="b"
|
|
83
|
+
readonly=""
|
|
84
|
+
indeterminate=""
|
|
85
|
+
title=""
|
|
86
|
+
size="medium"
|
|
87
|
+
form=""
|
|
88
|
+
>Read only content (indet)</syn-checkbox
|
|
89
|
+
>
|
|
90
|
+
<syn-checkbox
|
|
91
|
+
name="c"
|
|
92
|
+
value="c"
|
|
93
|
+
readonly=""
|
|
94
|
+
checked=""
|
|
95
|
+
title=""
|
|
96
|
+
size="medium"
|
|
97
|
+
form=""
|
|
98
|
+
>Read only content (checked)</syn-checkbox
|
|
99
|
+
>
|
|
100
|
+
</div>
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
---
|
|
104
|
+
|
|
69
105
|
## Sizes
|
|
70
106
|
|
|
71
107
|
Use the size attribute to change a checkbox’s size.
|
|
@@ -441,6 +441,98 @@ Use the disabled attribute to disable a combobox.
|
|
|
441
441
|
|
|
442
442
|
---
|
|
443
443
|
|
|
444
|
+
## Readonly
|
|
445
|
+
|
|
446
|
+
Add the readonly attribute to draw a read-only combobox.
|
|
447
|
+
|
|
448
|
+
```html
|
|
449
|
+
<div
|
|
450
|
+
style="display: flex; flex-direction: column; gap: var(--syn-spacing-large)"
|
|
451
|
+
>
|
|
452
|
+
<syn-combobox
|
|
453
|
+
placeholder="Readonly"
|
|
454
|
+
value="option-1"
|
|
455
|
+
readonly=""
|
|
456
|
+
size="medium"
|
|
457
|
+
placement="bottom"
|
|
458
|
+
form=""
|
|
459
|
+
>
|
|
460
|
+
<syn-icon
|
|
461
|
+
name="wallpaper"
|
|
462
|
+
slot="prefix"
|
|
463
|
+
aria-hidden="true"
|
|
464
|
+
library="default"
|
|
465
|
+
></syn-icon>
|
|
466
|
+
<syn-option
|
|
467
|
+
value="option-1"
|
|
468
|
+
role="option"
|
|
469
|
+
aria-selected="false"
|
|
470
|
+
aria-disabled="false"
|
|
471
|
+
id="syn-combobox-option-0"
|
|
472
|
+
>Option 1</syn-option
|
|
473
|
+
>
|
|
474
|
+
<syn-option
|
|
475
|
+
value="option-2"
|
|
476
|
+
role="option"
|
|
477
|
+
aria-selected="false"
|
|
478
|
+
aria-disabled="false"
|
|
479
|
+
id="syn-combobox-option-1"
|
|
480
|
+
hidden=""
|
|
481
|
+
>Option 2</syn-option
|
|
482
|
+
>
|
|
483
|
+
<syn-option
|
|
484
|
+
value="option-3"
|
|
485
|
+
role="option"
|
|
486
|
+
aria-selected="false"
|
|
487
|
+
aria-disabled="false"
|
|
488
|
+
id="syn-combobox-option-2"
|
|
489
|
+
hidden=""
|
|
490
|
+
>Option 3</syn-option
|
|
491
|
+
>
|
|
492
|
+
</syn-combobox>
|
|
493
|
+
<syn-combobox
|
|
494
|
+
max-options-visible="2"
|
|
495
|
+
multiple=""
|
|
496
|
+
placeholder="Readonly"
|
|
497
|
+
value="option-1 option-2 option-3"
|
|
498
|
+
readonly=""
|
|
499
|
+
size="medium"
|
|
500
|
+
placement="bottom"
|
|
501
|
+
form=""
|
|
502
|
+
>
|
|
503
|
+
<syn-option
|
|
504
|
+
value="option-1"
|
|
505
|
+
role="option"
|
|
506
|
+
aria-selected="false"
|
|
507
|
+
aria-disabled="false"
|
|
508
|
+
id="syn-combobox-option-0"
|
|
509
|
+
hidden=""
|
|
510
|
+
>Option 1</syn-option
|
|
511
|
+
>
|
|
512
|
+
<syn-option
|
|
513
|
+
value="option-2"
|
|
514
|
+
role="option"
|
|
515
|
+
aria-selected="false"
|
|
516
|
+
aria-disabled="false"
|
|
517
|
+
id="syn-combobox-option-1"
|
|
518
|
+
hidden=""
|
|
519
|
+
>Option 2</syn-option
|
|
520
|
+
>
|
|
521
|
+
<syn-option
|
|
522
|
+
value="option-3"
|
|
523
|
+
role="option"
|
|
524
|
+
aria-selected="false"
|
|
525
|
+
aria-disabled="false"
|
|
526
|
+
id="syn-combobox-option-2"
|
|
527
|
+
hidden=""
|
|
528
|
+
>Option 3</syn-option
|
|
529
|
+
>
|
|
530
|
+
</syn-combobox>
|
|
531
|
+
</div>
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
---
|
|
535
|
+
|
|
444
536
|
## Multiple
|
|
445
537
|
|
|
446
538
|
To allow multiple options to be selected, use the multiple attribute. It’s a good practice to use clearable when this option is enabled. To set multiple values at once, set value to a space-delimited list of values. Use the max-options-visible attribute to define the maximum number of selected options that will be visible. After the maximum, "+n" will be shown to indicate the number of additional items that are selected.
|
|
@@ -618,6 +710,52 @@ This restricts the combobox to only allow selections from the available options.
|
|
|
618
710
|
|
|
619
711
|
---
|
|
620
712
|
|
|
713
|
+
## No Results Found
|
|
714
|
+
|
|
715
|
+
A “No results found” message is displayed, when the search term doesn’t match the options.
|
|
716
|
+
|
|
717
|
+
```html
|
|
718
|
+
<syn-combobox
|
|
719
|
+
id="no-results"
|
|
720
|
+
value="Search term"
|
|
721
|
+
restricted=""
|
|
722
|
+
size="medium"
|
|
723
|
+
placement="bottom"
|
|
724
|
+
form=""
|
|
725
|
+
open=""
|
|
726
|
+
>
|
|
727
|
+
<syn-option
|
|
728
|
+
role="option"
|
|
729
|
+
aria-selected="false"
|
|
730
|
+
aria-disabled="false"
|
|
731
|
+
value=""
|
|
732
|
+
id="syn-combobox-option-0"
|
|
733
|
+
hidden=""
|
|
734
|
+
>Option 1</syn-option
|
|
735
|
+
>
|
|
736
|
+
<syn-option
|
|
737
|
+
role="option"
|
|
738
|
+
aria-selected="false"
|
|
739
|
+
aria-disabled="false"
|
|
740
|
+
value=""
|
|
741
|
+
id="syn-combobox-option-1"
|
|
742
|
+
hidden=""
|
|
743
|
+
>Option 2</syn-option
|
|
744
|
+
>
|
|
745
|
+
<syn-option
|
|
746
|
+
role="option"
|
|
747
|
+
aria-selected="false"
|
|
748
|
+
aria-disabled="false"
|
|
749
|
+
value=""
|
|
750
|
+
id="syn-combobox-option-2"
|
|
751
|
+
hidden=""
|
|
752
|
+
>Option 3</syn-option
|
|
753
|
+
>
|
|
754
|
+
</syn-combobox>
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
---
|
|
758
|
+
|
|
621
759
|
## Sizes
|
|
622
760
|
|
|
623
761
|
Use the size attribute to change a combobox size.
|
|
@@ -105,6 +105,30 @@ Use the disabled attribute to disable a file input.
|
|
|
105
105
|
|
|
106
106
|
---
|
|
107
107
|
|
|
108
|
+
## Readonly
|
|
109
|
+
|
|
110
|
+
Use the readonly attribute to set a file input to a readonly state.
|
|
111
|
+
|
|
112
|
+
```html
|
|
113
|
+
<div style="display: flex; flex-direction: column; gap: 1rem">
|
|
114
|
+
<syn-file
|
|
115
|
+
readonly=""
|
|
116
|
+
label="This is a label"
|
|
117
|
+
size="medium"
|
|
118
|
+
form=""
|
|
119
|
+
></syn-file>
|
|
120
|
+
<syn-file
|
|
121
|
+
readonly=""
|
|
122
|
+
droparea=""
|
|
123
|
+
label="This is a label"
|
|
124
|
+
size="medium"
|
|
125
|
+
form=""
|
|
126
|
+
></syn-file>
|
|
127
|
+
</div>
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
---
|
|
131
|
+
|
|
108
132
|
## Sizes
|
|
109
133
|
|
|
110
134
|
Use the size attribute to change the component's size.
|
|
@@ -74,6 +74,27 @@ Use the disabled attribute to disable a radio.
|
|
|
74
74
|
|
|
75
75
|
---
|
|
76
76
|
|
|
77
|
+
## Readonly
|
|
78
|
+
|
|
79
|
+
Add the readonly attribute to draw a read-only radio.
|
|
80
|
+
|
|
81
|
+
```html
|
|
82
|
+
<syn-radio-group value="1" size="medium" form="">
|
|
83
|
+
<syn-radio
|
|
84
|
+
value="1"
|
|
85
|
+
readonly=""
|
|
86
|
+
role="radio"
|
|
87
|
+
tabindex="0"
|
|
88
|
+
aria-disabled="true"
|
|
89
|
+
aria-checked="true"
|
|
90
|
+
size="medium"
|
|
91
|
+
>Read-only content</syn-radio
|
|
92
|
+
>
|
|
93
|
+
</syn-radio-group>
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
77
98
|
## Sizes
|
|
78
99
|
|
|
79
100
|
Add the size attribute to the Radio Group to change the radios’ size.
|
|
@@ -255,6 +255,52 @@ Radios and radio buttons can be disabled by adding the disabled attribute to the
|
|
|
255
255
|
|
|
256
256
|
---
|
|
257
257
|
|
|
258
|
+
## Readonly
|
|
259
|
+
|
|
260
|
+
Add the readonly attribute to a radio to draw it in a readonly state.
|
|
261
|
+
|
|
262
|
+
```html
|
|
263
|
+
<syn-radio-group
|
|
264
|
+
label="This is a label"
|
|
265
|
+
help-text="This is readonly"
|
|
266
|
+
name="a"
|
|
267
|
+
value="2"
|
|
268
|
+
size="medium"
|
|
269
|
+
form=""
|
|
270
|
+
>
|
|
271
|
+
<syn-radio
|
|
272
|
+
value="1"
|
|
273
|
+
role="radio"
|
|
274
|
+
tabindex="-1"
|
|
275
|
+
aria-disabled="false"
|
|
276
|
+
aria-checked="false"
|
|
277
|
+
size="medium"
|
|
278
|
+
>Option</syn-radio
|
|
279
|
+
>
|
|
280
|
+
<syn-radio
|
|
281
|
+
value="2"
|
|
282
|
+
readonly=""
|
|
283
|
+
role="radio"
|
|
284
|
+
tabindex="0"
|
|
285
|
+
aria-disabled="true"
|
|
286
|
+
aria-checked="true"
|
|
287
|
+
size="medium"
|
|
288
|
+
>Option</syn-radio
|
|
289
|
+
>
|
|
290
|
+
<syn-radio
|
|
291
|
+
value="3"
|
|
292
|
+
role="radio"
|
|
293
|
+
tabindex="-1"
|
|
294
|
+
aria-disabled="false"
|
|
295
|
+
aria-checked="false"
|
|
296
|
+
size="medium"
|
|
297
|
+
>Option</syn-radio
|
|
298
|
+
>
|
|
299
|
+
</syn-radio-group>
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
258
304
|
## Sizes
|
|
259
305
|
|
|
260
306
|
The size of Radios and Radio Buttons will be determined by the Radio Group’s size attribute.
|
|
@@ -107,6 +107,25 @@ The focus event gives the user feedback that the Range has been focused by the k
|
|
|
107
107
|
|
|
108
108
|
---
|
|
109
109
|
|
|
110
|
+
## Readonly
|
|
111
|
+
|
|
112
|
+
Add the readonly attribute to a range to draw it in a readonly state.
|
|
113
|
+
|
|
114
|
+
```html
|
|
115
|
+
<form>
|
|
116
|
+
<syn-range
|
|
117
|
+
max="100"
|
|
118
|
+
min="0"
|
|
119
|
+
value="50"
|
|
120
|
+
readonly=""
|
|
121
|
+
size="medium"
|
|
122
|
+
form=""
|
|
123
|
+
></syn-range>
|
|
124
|
+
</form>
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
---
|
|
128
|
+
|
|
110
129
|
## Sizes
|
|
111
130
|
|
|
112
131
|
Use the size attribute to change a range’s size.
|
|
@@ -242,6 +242,87 @@ Use the disabled attribute to disable a select.
|
|
|
242
242
|
|
|
243
243
|
---
|
|
244
244
|
|
|
245
|
+
## Readonly
|
|
246
|
+
|
|
247
|
+
Add the readonly attribute to a select to draw it in a readonly state.
|
|
248
|
+
|
|
249
|
+
```html
|
|
250
|
+
<div
|
|
251
|
+
style="display: flex; flex-direction: column; gap: var(--syn-spacing-large)"
|
|
252
|
+
>
|
|
253
|
+
<syn-select
|
|
254
|
+
placeholder="Readonly"
|
|
255
|
+
value="option-1"
|
|
256
|
+
readonly=""
|
|
257
|
+
size="medium"
|
|
258
|
+
placement="bottom"
|
|
259
|
+
form=""
|
|
260
|
+
>
|
|
261
|
+
<syn-icon
|
|
262
|
+
name="wallpaper"
|
|
263
|
+
slot="prefix"
|
|
264
|
+
aria-hidden="true"
|
|
265
|
+
library="default"
|
|
266
|
+
></syn-icon>
|
|
267
|
+
<syn-option
|
|
268
|
+
value="option-1"
|
|
269
|
+
role="option"
|
|
270
|
+
aria-selected="true"
|
|
271
|
+
aria-disabled="false"
|
|
272
|
+
>Option 1</syn-option
|
|
273
|
+
>
|
|
274
|
+
<syn-option
|
|
275
|
+
value="option-2"
|
|
276
|
+
role="option"
|
|
277
|
+
aria-selected="false"
|
|
278
|
+
aria-disabled="false"
|
|
279
|
+
>Option 2</syn-option
|
|
280
|
+
>
|
|
281
|
+
<syn-option
|
|
282
|
+
value="option-3"
|
|
283
|
+
role="option"
|
|
284
|
+
aria-selected="false"
|
|
285
|
+
aria-disabled="false"
|
|
286
|
+
>Option 3</syn-option
|
|
287
|
+
>
|
|
288
|
+
</syn-select>
|
|
289
|
+
<syn-select
|
|
290
|
+
max-options-visible="2"
|
|
291
|
+
multiple=""
|
|
292
|
+
placeholder="Readonly"
|
|
293
|
+
value="option-1 option-2 option-3"
|
|
294
|
+
readonly=""
|
|
295
|
+
size="medium"
|
|
296
|
+
placement="bottom"
|
|
297
|
+
form=""
|
|
298
|
+
>
|
|
299
|
+
<syn-option
|
|
300
|
+
value="option-1"
|
|
301
|
+
role="option"
|
|
302
|
+
aria-selected="true"
|
|
303
|
+
aria-disabled="false"
|
|
304
|
+
>Option 1</syn-option
|
|
305
|
+
>
|
|
306
|
+
<syn-option
|
|
307
|
+
value="option-2"
|
|
308
|
+
role="option"
|
|
309
|
+
aria-selected="true"
|
|
310
|
+
aria-disabled="false"
|
|
311
|
+
>Option 2</syn-option
|
|
312
|
+
>
|
|
313
|
+
<syn-option
|
|
314
|
+
value="option-3"
|
|
315
|
+
role="option"
|
|
316
|
+
aria-selected="true"
|
|
317
|
+
aria-disabled="false"
|
|
318
|
+
>Option 3</syn-option
|
|
319
|
+
>
|
|
320
|
+
</syn-select>
|
|
321
|
+
</div>
|
|
322
|
+
```
|
|
323
|
+
|
|
324
|
+
---
|
|
325
|
+
|
|
245
326
|
## Multiple
|
|
246
327
|
|
|
247
328
|
To allow multiple options to be selected, use the multiple attribute. It’s a good practice to use clearable when this option is enabled. To set multiple values at once, set value to a space-delimited list of values.
|