@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,25 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default css`
|
|
4
|
-
:host([data-user-invalid]) {
|
|
5
|
-
--syn-input-border-color: var(--syn-input-border-color-focus-error);
|
|
6
|
-
--syn-input-border-color-hover: var(--syn-input-border-color-focus-error);
|
|
7
|
-
--syn-color-primary-600: var(--syn-input-border-color-focus-error);
|
|
8
|
-
--syn-color-primary-900: var(--syn-color-error-900);
|
|
9
|
-
--syn-color-primary-950: var(--syn-color-error-950);
|
|
10
|
-
--syn-color-neutral-1000: var(--syn-input-border-color-focus-error);
|
|
11
|
-
--syn-interactive-emphasis-color: var(--syn-input-border-color-focus-error);
|
|
12
|
-
--syn-interactive-emphasis-color-hover: var(--syn-input-border-color-focus-error);
|
|
13
|
-
--syn-interactive-emphasis-color-active: var(--syn-input-border-color-focus-error);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.form-control--has-help-text.form-control--radio-group .form-control__help-text {
|
|
17
|
-
margin-top: var(--syn-spacing-x-small);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.form-control-input {
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: column;
|
|
23
|
-
gap: var(--syn-spacing-x-small);
|
|
24
|
-
}
|
|
25
|
-
`;
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
import sharedOptionSize from '../option/option-size.styles.js';
|
|
3
|
-
|
|
4
|
-
export default css`
|
|
5
|
-
/** #429: Use token for opacity */
|
|
6
|
-
.select--standard.select--disabled .select__combobox {
|
|
7
|
-
opacity: var(--syn-input-disabled-opacity);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Invalid user data
|
|
12
|
-
*/
|
|
13
|
-
:host([data-user-invalid]) .select__combobox {
|
|
14
|
-
border-color: var(--syn-input-border-color-focus-error);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
:host([data-user-invalid]) .select--standard:not(.select--disabled).select--open .select__combobox,
|
|
18
|
-
:host([data-user-invalid]) .select--standard:not(.select--disabled).select--focused .select__combobox {
|
|
19
|
-
border-color: var(--syn-input-border-color-focus-error);
|
|
20
|
-
box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* Clear button */
|
|
24
|
-
.select__clear {
|
|
25
|
-
color: var(--syn-input-icon-icon-clearable-color);
|
|
26
|
-
font-size: var(--syn-spacing-large);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.select--small .select__clear {
|
|
30
|
-
font-size: var(--syn-spacing-medium);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.select--large .select__clear {
|
|
34
|
-
font-size: var(--syn-spacing-x-large);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.select--medium .select__clear {
|
|
38
|
-
margin-inline-start: var(--syn-spacing-small);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* Expand icon */
|
|
42
|
-
.select__expand-icon {
|
|
43
|
-
color: var(--syn-color-neutral-950);
|
|
44
|
-
margin-inline-start: var(--syn-spacing-small);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.select--small .select__expand-icon {
|
|
48
|
-
font-size: var(--syn-spacing-medium);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.select--medium .select__expand-icon {
|
|
52
|
-
font-size: var(--syn-spacing-large);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.select--large .select__expand-icon {
|
|
56
|
-
font-size: var(--syn-spacing-x-large);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Change select border on hover */
|
|
60
|
-
/* stylelint-disable-next-line no-descending-specificity */
|
|
61
|
-
.select:not(.select--disabled):hover .select__combobox {
|
|
62
|
-
border-color: var(--syn-input-border-color-hover);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Prefix and Suffix */
|
|
66
|
-
|
|
67
|
-
/* Small */
|
|
68
|
-
.select--small .select__prefix::slotted(*) {
|
|
69
|
-
margin-inline-end: var(--syn-spacing-x-small);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.select--small .select__suffix::slotted(*) {
|
|
73
|
-
margin-inline-start: var(--syn-spacing-x-small);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.select--small .select__suffix::slotted(syn-icon),
|
|
77
|
-
.select--small .select__prefix::slotted(syn-icon) {
|
|
78
|
-
font-size: var(--syn-font-size-medium);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/* Medium */
|
|
82
|
-
.select--medium .select__prefix::slotted(*) {
|
|
83
|
-
margin-inline-end: var(--syn-input-spacing-small);
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.select--medium .select__suffix::slotted(*) {
|
|
87
|
-
margin-inline-start: var(--syn-input-spacing-small);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.select--medium .select__suffix::slotted(syn-icon),
|
|
91
|
-
.select--medium .select__prefix::slotted(syn-icon) {
|
|
92
|
-
font-size: var(--syn-font-size-x-large);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* Large */
|
|
96
|
-
.select--large .select__prefix::slotted(*) {
|
|
97
|
-
margin-inline-end: var(--syn-input-spacing-medium);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.select--large .select__suffix::slotted(*) {
|
|
101
|
-
margin-inline-start: var(--syn-input-spacing-medium);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.select--large .select__suffix::slotted(syn-icon),
|
|
105
|
-
.select--large .select__prefix::slotted(syn-icon) {
|
|
106
|
-
font-size: var(--syn-font-size-2x-large);
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.select__prefix,
|
|
110
|
-
.select__suffix {
|
|
111
|
-
color: var(--syn-input-icon-color);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
/* Multi Select */
|
|
115
|
-
.select__tags {
|
|
116
|
-
margin-inline-start: var(--syn-spacing-medium);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.select--small .select__tags {
|
|
120
|
-
gap: var(--syn-spacing-2x-small);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.select--medium .select__tags {
|
|
124
|
-
gap: var(--syn-spacing-x-small);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
.select--large .select__tags {
|
|
128
|
-
gap: var(--syn-spacing-small);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/* Listbox */
|
|
132
|
-
.select__listbox {
|
|
133
|
-
border-radius: var(--syn-input-border-radius-medium);
|
|
134
|
-
box-shadow: var(--syn-shadow-medium);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
/**
|
|
138
|
-
* Make sure to hide the syn-divider for the first syn-optgroup
|
|
139
|
-
* Note! ::slotted does currently not work with ::part, so we
|
|
140
|
-
* opted for using a css variable here.
|
|
141
|
-
*/
|
|
142
|
-
.select__listbox ::slotted(syn-optgroup:first-of-type) {
|
|
143
|
-
--display-divider: none;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* #850: Allow to measure the size of the combobox.
|
|
148
|
-
* This is needed so we can automatically size and truncate the tags in the <syn-select multiple> component.
|
|
149
|
-
* Scoped to multiple to not break the single select per accident.
|
|
150
|
-
* Scoped to when placeholder is not visible to not break the placeholder visualization
|
|
151
|
-
*/
|
|
152
|
-
:host([multiple]) :not(.select--placeholder-visible) > .select__combobox > .select__tags {
|
|
153
|
-
min-width: 100px;
|
|
154
|
-
overflow: hidden;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
:host([multiple]) .select__tags > div {
|
|
158
|
-
display: contents;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
:host([multiple]) .select__tags > div > syn-tag {
|
|
162
|
-
--syn-tag-position-adjustment: var(--syn-spacing-3x-small);
|
|
163
|
-
|
|
164
|
-
max-width: var(--syn-select-tag-max-width);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
:host([multiple]) .select__tags > div > syn-tag::part(content) {
|
|
168
|
-
display: initial;
|
|
169
|
-
overflow: hidden;
|
|
170
|
-
text-overflow: ellipsis;
|
|
171
|
-
white-space: nowrap;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
${sharedOptionSize}
|
|
175
|
-
`;
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default css`
|
|
4
|
-
:host([size='small']) {
|
|
5
|
-
--height: var(--syn-switch-height-small);
|
|
6
|
-
--thumb-size: var(--syn-toggle-size-small);
|
|
7
|
-
--width: var(--syn-switch-width-small);
|
|
8
|
-
|
|
9
|
-
font-size: var(--syn-input-font-size-small);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
:host([size='medium']) {
|
|
13
|
-
--height: var(--syn-switch-height-medium);
|
|
14
|
-
--thumb-size: var(--syn-toggle-size-medium);
|
|
15
|
-
--width: var(--syn-switch-width-medium);
|
|
16
|
-
|
|
17
|
-
font-size: var(--syn-input-font-size-medium);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
:host([size='large']) {
|
|
21
|
-
--height: var(--syn-switch-height-large);
|
|
22
|
-
--thumb-size: var(--syn-toggle-size-large);
|
|
23
|
-
--width: var(--syn-switch-width-large);
|
|
24
|
-
|
|
25
|
-
font-size: var(--syn-input-font-size-large);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/** #429: Use token for opacity */
|
|
29
|
-
.switch--disabled {
|
|
30
|
-
opacity: var(--syn-input-disabled-opacity);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.switch.switch--small {
|
|
34
|
-
padding: var(--syn-spacing-2x-small) 0;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.switch.switch--medium {
|
|
38
|
-
padding: var(--syn-spacing-2x-small) 0;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.switch.switch--large {
|
|
42
|
-
padding: var(--syn-spacing-3x-small) 0;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Hint: can be removed, if the padding stylings for sizes from above are removed */
|
|
46
|
-
.form-control--has-help-text .switch {
|
|
47
|
-
padding-bottom: 0;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.switch__control {
|
|
51
|
-
background-color: var(--syn-input-icon-icon-clearable-color);
|
|
52
|
-
border: solid var(--syn-border-width-medium) var(--syn-input-icon-icon-clearable-color);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.switch__control .switch__thumb {
|
|
56
|
-
border: none;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/* Checked */
|
|
60
|
-
.switch--checked .switch__control {
|
|
61
|
-
background-color: var(--syn-interactive-emphasis-color);
|
|
62
|
-
border-color: var(--syn-interactive-emphasis-color);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/* Hover */
|
|
66
|
-
.switch:not(.switch--checked):not(.switch--disabled):hover .switch__control {
|
|
67
|
-
background-color: var(--syn-input-icon-icon-clearable-color-hover);
|
|
68
|
-
border-color: var(--syn-input-icon-icon-clearable-color-hover);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.switch:not(.switch--checked):not(.switch--disabled):hover .switch__control:hover .switch__thumb {
|
|
72
|
-
background-color: var(--syn-color-neutral-0);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* Checked + hover */
|
|
76
|
-
.switch.switch--checked:not(.switch--disabled):hover .switch__control {
|
|
77
|
-
background-color: var(--syn-interactive-emphasis-color-hover);
|
|
78
|
-
border-color: var(--syn-interactive-emphasis-color-hover);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.switch.switch--checked:not(.switch--disabled):hover .switch__control:hover .switch__thumb {
|
|
82
|
-
background-color: var(--syn-color-neutral-0);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/*
|
|
86
|
-
* #443: Add active styles
|
|
87
|
-
* The checked and unchecked states have different active colors
|
|
88
|
-
* Note the fallback is defined to match the hover color.
|
|
89
|
-
* This is done to make sure no active state is shown at all if no active color is defined.
|
|
90
|
-
* Still better than showing one for the unchecked state but not for the checked state.
|
|
91
|
-
*/
|
|
92
|
-
.switch:not(.switch--checked):not(.switch--disabled):active .switch__control {
|
|
93
|
-
background: var(--syn-input-icon-icon-clearable-color-active);
|
|
94
|
-
border-color: var(--syn-input-icon-icon-clearable-color-active);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.switch.switch--checked:not(.switch--disabled):active .switch__control {
|
|
98
|
-
background: var(--syn-interactive-emphasis-color-active);
|
|
99
|
-
border-color: var(--syn-interactive-emphasis-color-active);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/* Focus */
|
|
103
|
-
.switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {
|
|
104
|
-
background-color: var(--syn-input-icon-icon-clearable-color);
|
|
105
|
-
border-color: var(--syn-input-icon-icon-clearable-color);
|
|
106
|
-
outline: var(--syn-focus-ring);
|
|
107
|
-
outline-offset: var(--syn-focus-ring-offset);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.switch:not(.switch--checked):not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {
|
|
111
|
-
background-color: var(--syn-color-neutral-0);
|
|
112
|
-
outline: none;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/* Checked + focus */
|
|
116
|
-
.switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control {
|
|
117
|
-
background-color: var(--syn-interactive-emphasis-color);
|
|
118
|
-
border-color: var(--syn-interactive-emphasis-color);
|
|
119
|
-
outline: var(--syn-focus-ring);
|
|
120
|
-
outline-offset: var(--syn-focus-ring-offset);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.switch.switch--checked:not(.switch--disabled) .switch__input:focus-visible ~ .switch__control .switch__thumb {
|
|
124
|
-
background-color: var(--syn-color-neutral-0);
|
|
125
|
-
outline: none;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.switch__label {
|
|
129
|
-
margin-inline-start: var(--syn-spacing-x-small);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
:host([data-user-invalid]) .switch:not(.switch--checked):not(.switch--disabled) .switch__control {
|
|
133
|
-
background-color: var(--syn-input-border-color-focus-error);
|
|
134
|
-
border-color: var(--syn-input-border-color-focus-error);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
:host([data-user-invalid]) .switch:not(.switch--checked):not(.switch--disabled):hover .switch__control {
|
|
138
|
-
background-color: var(--syn-input-border-color-hover);
|
|
139
|
-
border-color: var(--syn-input-border-color-hover);
|
|
140
|
-
}
|
|
141
|
-
`;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default css`
|
|
4
|
-
:host([data-user-invalid]) .textarea--standard {
|
|
5
|
-
border-color: var(--syn-input-border-color-focus-error);
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
:host([data-user-invalid]) .textarea--standard.textarea--focused:not(.textarea--disabled) {
|
|
9
|
-
border-color: var(--syn-input-border-color-focus-error);
|
|
10
|
-
box-shadow: 0 0 0 var(--syn-focus-ring-width) var(--syn-input-focus-ring-error);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
/** #429: Use token for opacity */
|
|
14
|
-
.textarea--readonly.textarea--disabled,
|
|
15
|
-
.textarea--standard.textarea--disabled {
|
|
16
|
-
opacity: var(--syn-input-disabled-opacity);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.textarea__control {
|
|
20
|
-
/*
|
|
21
|
-
Unfortunately we need to add a small margin to the textarea control. This is needed for the new sick 2025 theme,
|
|
22
|
-
as because of the big border-radius the resize icon will otherwise overlap with the border
|
|
23
|
-
This added margin needs to be subtracted from the padding of the textarea
|
|
24
|
-
*/
|
|
25
|
-
margin: var(--syn-spacing-3x-small);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.textarea--small .textarea__control {
|
|
29
|
-
/* TODO: Wait for Design response, how to handle this left / right spacing. Design has "--syn-input-spacing-medium" for all sizes,
|
|
30
|
-
but we have different (coming from shoelace) */
|
|
31
|
-
|
|
32
|
-
/* We need to subtract the added margin of the textarea control from the padding */
|
|
33
|
-
padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-small) - var(--syn-spacing-3x-small));
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.textarea--medium .textarea__control {
|
|
37
|
-
/* We need to subtract the added margin of the textarea control from the padding */
|
|
38
|
-
padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-medium) - var(--syn-spacing-3x-small));
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.textarea--large .textarea__control {
|
|
42
|
-
/* TODO: Wait for Design response, how to handle this left / right spacing. Design has "--syn-input-spacing-medium" for all sizes,
|
|
43
|
-
but we have different (coming from shoelace) */
|
|
44
|
-
|
|
45
|
-
/* We need to subtract the added margin of the textarea control from the padding */
|
|
46
|
-
padding: calc(var(--syn-spacing-x-small) - var(--syn-spacing-3x-small)) calc(var(--syn-input-spacing-large) - var(--syn-spacing-3x-small));
|
|
47
|
-
}
|
|
48
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { css } from 'lit';
|
|
2
|
-
|
|
3
|
-
export default css`
|
|
4
|
-
/* Write custom CSS here */
|
|
5
|
-
.tooltip__body {
|
|
6
|
-
box-shadow: var(--syn-shadow-large);
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
/** #640: Adjust the zIndex of the arrow to make sure the box-shadow above does not bleed out */
|
|
10
|
-
:host ::part(arrow) {
|
|
11
|
-
z-index: 0 !important;
|
|
12
|
-
}
|
|
13
|
-
`;
|