@synergy-design-system/mcp 2.6.0 → 2.7.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 +30 -0
- package/dist/utilities/storybook/scraper.js +14 -3
- package/metadata/checksum.txt +1 -1
- 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-prio-nav/component.ts +2 -1
- 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/static/CHANGELOG.md +38 -0
- package/metadata/packages/tokens/CHANGELOG.md +24 -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/package.json +4 -4
- 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-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
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
1
|
import { css } from 'lit';
|
|
3
2
|
|
|
4
3
|
export default css`
|
|
5
|
-
|
|
4
|
+
/* stylelint-disable no-descending-specificity */
|
|
5
|
+
/* stylelint-disable plugin/no-unsupported-browser-features */
|
|
6
|
+
/* stylelint-disable property-no-vendor-prefix */
|
|
6
7
|
:host {
|
|
7
8
|
display: block;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
11
|
.textarea {
|
|
11
|
-
display: grid;
|
|
12
12
|
align-items: center;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
cursor: text;
|
|
14
|
+
display: grid;
|
|
15
15
|
font-family: var(--syn-input-font-family);
|
|
16
16
|
font-weight: var(--syn-input-font-weight);
|
|
17
|
-
line-height: var(--syn-line-height-normal);
|
|
18
17
|
letter-spacing: var(--syn-input-letter-spacing);
|
|
19
|
-
|
|
18
|
+
line-height: var(--syn-line-height-normal);
|
|
19
|
+
position: relative;
|
|
20
20
|
transition:
|
|
21
21
|
var(--syn-transition-fast) color,
|
|
22
22
|
var(--syn-transition-fast) border,
|
|
23
23
|
var(--syn-transition-fast) box-shadow,
|
|
24
24
|
var(--syn-transition-fast) background-color;
|
|
25
|
-
|
|
25
|
+
vertical-align: middle;
|
|
26
|
+
width: 100%;
|
|
26
27
|
}
|
|
27
28
|
|
|
28
29
|
/* Standard textareas */
|
|
@@ -35,6 +36,7 @@ export default css`
|
|
|
35
36
|
background-color: var(--syn-input-background-color-hover);
|
|
36
37
|
border-color: var(--syn-input-border-color-hover);
|
|
37
38
|
}
|
|
39
|
+
|
|
38
40
|
.textarea--standard:hover:not(.textarea--disabled) .textarea__control {
|
|
39
41
|
color: var(--syn-input-color-hover);
|
|
40
42
|
}
|
|
@@ -42,8 +44,8 @@ export default css`
|
|
|
42
44
|
.textarea--standard.textarea--focused:not(.textarea--disabled) {
|
|
43
45
|
background-color: var(--syn-input-background-color-focus);
|
|
44
46
|
border-color: var(--syn-input-border-color-focus);
|
|
45
|
-
color: var(--syn-input-color-focus);
|
|
46
47
|
box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-color);
|
|
48
|
+
color: var(--syn-input-color-focus);
|
|
47
49
|
}
|
|
48
50
|
|
|
49
51
|
.textarea--standard.textarea--focused:not(.textarea--disabled) .textarea__control {
|
|
@@ -53,8 +55,8 @@ export default css`
|
|
|
53
55
|
.textarea--standard.textarea--disabled {
|
|
54
56
|
background-color: var(--syn-input-background-color-disabled);
|
|
55
57
|
border-color: var(--syn-input-border-color-disabled);
|
|
56
|
-
opacity: 0.5;
|
|
57
58
|
cursor: not-allowed;
|
|
59
|
+
opacity: var(--syn-input-disabled-opacity); /* #429: Use token for opacity */
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
.textarea__control,
|
|
@@ -63,9 +65,9 @@ export default css`
|
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
.textarea__size-adjuster {
|
|
66
|
-
visibility: hidden;
|
|
67
|
-
pointer-events: none;
|
|
68
68
|
opacity: 0;
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
visibility: hidden;
|
|
69
71
|
}
|
|
70
72
|
|
|
71
73
|
.textarea--standard.textarea--disabled .textarea__control {
|
|
@@ -78,8 +80,8 @@ export default css`
|
|
|
78
80
|
|
|
79
81
|
/* Readonly textareas */
|
|
80
82
|
.textarea--readonly {
|
|
81
|
-
border: none;
|
|
82
83
|
background-color: var(--syn-input-readonly-background-color);
|
|
84
|
+
border: none;
|
|
83
85
|
color: var(--syn-input-color);
|
|
84
86
|
}
|
|
85
87
|
|
|
@@ -95,21 +97,29 @@ export default css`
|
|
|
95
97
|
|
|
96
98
|
.textarea--readonly.textarea--disabled {
|
|
97
99
|
background-color: var(--syn-input-readonly-background-color-disabled);
|
|
98
|
-
opacity: 0.5;
|
|
99
100
|
cursor: not-allowed;
|
|
101
|
+
opacity: var(--syn-input-disabled-opacity);
|
|
100
102
|
}
|
|
101
103
|
|
|
102
104
|
.textarea__control {
|
|
105
|
+
-webkit-appearance: none;
|
|
106
|
+
appearance: none;
|
|
107
|
+
background: none;
|
|
108
|
+
border: none;
|
|
109
|
+
box-shadow: none;
|
|
110
|
+
color: var(--syn-input-color);
|
|
111
|
+
cursor: inherit;
|
|
103
112
|
font-family: inherit;
|
|
104
113
|
font-size: inherit;
|
|
105
114
|
font-weight: inherit;
|
|
106
115
|
line-height: 1.4;
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
116
|
+
|
|
117
|
+
/*
|
|
118
|
+
Unfortunately we need to add a small margin to the textarea control. This is needed for the new sick 2025 theme,
|
|
119
|
+
as because of the big border-radius the resize icon will otherwise overlap with the border
|
|
120
|
+
This added margin needs to be subtracted from the padding of the textarea
|
|
121
|
+
*/
|
|
122
|
+
margin: var(--syn-spacing-3x-small);
|
|
113
123
|
}
|
|
114
124
|
|
|
115
125
|
.textarea__control::-webkit-search-decoration,
|
|
@@ -117,12 +127,13 @@ export default css`
|
|
|
117
127
|
.textarea__control::-webkit-search-results-button,
|
|
118
128
|
.textarea__control::-webkit-search-results-decoration {
|
|
119
129
|
-webkit-appearance: none;
|
|
130
|
+
appearance: none;
|
|
120
131
|
}
|
|
121
132
|
|
|
122
133
|
.textarea__control::placeholder {
|
|
123
134
|
color: var(--syn-input-placeholder-color);
|
|
124
|
-
user-select: none;
|
|
125
135
|
-webkit-user-select: none;
|
|
136
|
+
user-select: none;
|
|
126
137
|
}
|
|
127
138
|
|
|
128
139
|
.textarea__control:focus {
|
|
@@ -132,14 +143,17 @@ export default css`
|
|
|
132
143
|
/*
|
|
133
144
|
* Size modifiers
|
|
134
145
|
*/
|
|
135
|
-
|
|
136
146
|
.textarea--small {
|
|
137
147
|
border-radius: var(--syn-input-border-radius-small);
|
|
138
148
|
font-size: var(--syn-input-font-size-small);
|
|
139
149
|
}
|
|
140
150
|
|
|
141
151
|
.textarea--small .textarea__control {
|
|
142
|
-
|
|
152
|
+
/* TODO: Wait for Design response, how to handle this left / right spacing. Design has "--syn-input-spacing-medium" for all sizes,
|
|
153
|
+
but we have different (coming from shoelace) */
|
|
154
|
+
|
|
155
|
+
/* We need to subtract the added margin of the textarea control from the padding */
|
|
156
|
+
padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-small) - var(--syn-spacing-3x-small));
|
|
143
157
|
}
|
|
144
158
|
|
|
145
159
|
.textarea--medium {
|
|
@@ -148,7 +162,8 @@ export default css`
|
|
|
148
162
|
}
|
|
149
163
|
|
|
150
164
|
.textarea--medium .textarea__control {
|
|
151
|
-
padding
|
|
165
|
+
/* We need to subtract the added margin of the textarea control from the padding */
|
|
166
|
+
padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-medium) - var(--syn-spacing-3x-small));
|
|
152
167
|
}
|
|
153
168
|
|
|
154
169
|
.textarea--large {
|
|
@@ -157,13 +172,16 @@ export default css`
|
|
|
157
172
|
}
|
|
158
173
|
|
|
159
174
|
.textarea--large .textarea__control {
|
|
160
|
-
|
|
175
|
+
/* TODO: Wait for Design response, how to handle this left / right spacing. Design has "--syn-input-spacing-medium" for all sizes,
|
|
176
|
+
but we have different (coming from shoelace) */
|
|
177
|
+
|
|
178
|
+
/* We need to subtract the added margin of the textarea control from the padding */
|
|
179
|
+
padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-large) - var(--syn-spacing-3x-small));
|
|
161
180
|
}
|
|
162
181
|
|
|
163
182
|
/*
|
|
164
183
|
* Resize types
|
|
165
184
|
*/
|
|
166
|
-
|
|
167
185
|
.textarea--resize-none .textarea__control {
|
|
168
186
|
resize: none;
|
|
169
187
|
}
|
|
@@ -174,7 +192,17 @@ export default css`
|
|
|
174
192
|
|
|
175
193
|
.textarea--resize-auto .textarea__control {
|
|
176
194
|
height: auto;
|
|
177
|
-
resize: none;
|
|
178
195
|
overflow-y: hidden;
|
|
196
|
+
resize: none;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* Validation */
|
|
200
|
+
:host([data-user-invalid]) .textarea--standard {
|
|
201
|
+
border-color: var(--syn-input-border-color-focus-error);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
:host([data-user-invalid]) .textarea--standard.textarea--focused:not(.textarea--disabled) {
|
|
205
|
+
border-color: var(--syn-input-border-color-focus-error);
|
|
206
|
+
box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error);
|
|
179
207
|
}
|
|
180
208
|
`;
|
|
@@ -10,10 +10,8 @@ import { property, query, state } from 'lit/decorators.js';
|
|
|
10
10
|
import { watch } from '../../internal/watch.js';
|
|
11
11
|
import componentStyles from '../../styles/component.styles.js';
|
|
12
12
|
import formControlStyles from '../../styles/form-control.styles.js';
|
|
13
|
-
import formControlCustomStyles from '../../styles/form-control.custom.styles.js';
|
|
14
13
|
import SynergyElement from '../../internal/synergy-element.js';
|
|
15
14
|
import styles from './textarea.styles.js';
|
|
16
|
-
import customStyles from './textarea.custom.styles.js';
|
|
17
15
|
import type { CSSResultGroup } from 'lit';
|
|
18
16
|
import type { SynergyFormControl } from '../../internal/synergy-element.js';
|
|
19
17
|
import { enableDefaultSettings } from '../../utilities/defaultSettings/decorator.js';
|
|
@@ -42,7 +40,7 @@ import { enableDefaultSettings } from '../../utilities/defaultSettings/decorator
|
|
|
42
40
|
*/
|
|
43
41
|
@enableDefaultSettings('SynTextarea')
|
|
44
42
|
export default class SynTextarea extends SynergyElement implements SynergyFormControl {
|
|
45
|
-
static styles: CSSResultGroup = [componentStyles, formControlStyles, styles
|
|
43
|
+
static styles: CSSResultGroup = [componentStyles, formControlStyles, styles];
|
|
46
44
|
|
|
47
45
|
private readonly formControlController = new FormControlController(this, {
|
|
48
46
|
assumeInteractionOn: ['syn-blur', 'syn-input']
|
|
@@ -1,5 +1,43 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
feat: ✨ Added readonly for various form fields (#1171, #1172, #1173, #1174, #1175, #1176, #1177, #1178)
|
|
10
|
+
|
|
11
|
+
Applies to:
|
|
12
|
+
- `<syn-checkbox>`
|
|
13
|
+
- `<syn-combobox>`
|
|
14
|
+
- `<syn-file>`
|
|
15
|
+
- `<syn-radio>`
|
|
16
|
+
- `<syn-radio-group>`
|
|
17
|
+
- `<syn-range>`
|
|
18
|
+
- `<syn-select>`
|
|
19
|
+
- `<syn-switch>`
|
|
20
|
+
|
|
21
|
+
Form elements now support being displayed as `readonly` fields.
|
|
22
|
+
|
|
23
|
+
Field marked `readonly` may receive focus, but their value cannot be changed by customer inputs.
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [[`a4f49ac`](https://github.com/synergy-design-system/synergy-design-system/commit/a4f49ac79a660ef5b8d1b380fe9fcd2159dc9b78)]:
|
|
28
|
+
- @synergy-design-system/tokens@3.5.0
|
|
29
|
+
|
|
30
|
+
## 3.4.1
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- [#1196](https://github.com/synergy-design-system/synergy-design-system/pull/1196) [`6a9b934`](https://github.com/synergy-design-system/synergy-design-system/commit/6a9b9349f6404a638fadd842e3f2fd8216fd81cd) Thanks [@kirchsuSICKAG](https://github.com/kirchsuSICKAG)! - Released on: 2026-02-25
|
|
35
|
+
|
|
36
|
+
fix: 🐛 prio nav with only one item (#1195)
|
|
37
|
+
|
|
38
|
+
- Updated dependencies []:
|
|
39
|
+
- @synergy-design-system/tokens@3.4.1
|
|
40
|
+
|
|
3
41
|
## 3.4.0
|
|
4
42
|
|
|
5
43
|
### Minor Changes
|
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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
|
|
8
|
+
|
|
9
|
+
feat: ✨ Added readonly for various form fields (#1171, #1172, #1173, #1174, #1175, #1176, #1177, #1178)
|
|
10
|
+
|
|
11
|
+
Applies to:
|
|
12
|
+
- `<syn-checkbox>`
|
|
13
|
+
- `<syn-combobox>`
|
|
14
|
+
- `<syn-file>`
|
|
15
|
+
- `<syn-radio>`
|
|
16
|
+
- `<syn-radio-group>`
|
|
17
|
+
- `<syn-range>`
|
|
18
|
+
- `<syn-select>`
|
|
19
|
+
- `<syn-switch>`
|
|
20
|
+
|
|
21
|
+
Form elements now support being displayed as `readonly` fields.
|
|
22
|
+
|
|
23
|
+
Field marked `readonly` may receive focus, but their value cannot be changed by customer inputs.
|
|
24
|
+
|
|
25
|
+
## 3.4.1
|
|
26
|
+
|
|
3
27
|
## 3.4.0
|
|
4
28
|
|
|
5
29
|
### Minor Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @synergy-design-system/tokens version 3.
|
|
2
|
+
* @synergy-design-system/tokens version 3.4.1
|
|
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.4.1
|
|
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.4.1
|
|
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.4.1
|
|
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.4.1
|
|
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.4.1
|
|
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.4.1
|
|
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.
|