@sats-group/ui-lib 81.1.0 → 81.3.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/package.json +1 -1
- package/react/badge/badge.scss +13 -13
- package/react/banner/banner.scss +17 -17
- package/react/bomb/bomb.scss +4 -4
- package/react/checkbox/checkbox.scss +36 -36
- package/react/chip/chip.scss +10 -10
- package/react/chip-selected/chip-selected.scss +3 -3
- package/react/confirmation/confirmation.scss +4 -4
- package/react/context-menu/context-menu.scss +14 -14
- package/react/dropdown-list/dropdown-list.scss +33 -33
- package/react/expander/expander.js +1 -1
- package/react/expander/expander.js.map +3 -3
- package/react/expander/expander.scss +12 -9
- package/react/expander/expander.types.d.ts +2 -0
- package/react/expander/expander.types.js +1 -1
- package/react/expander/expander.types.js.map +2 -2
- package/react/filter/filter.scss +11 -11
- package/react/flag/flag.scss +4 -4
- package/react/form-content/form-content.scss +11 -11
- package/react/link/link.scss +9 -9
- package/react/link-card/link-card.scss +5 -5
- package/react/message/message.scss +10 -10
- package/react/message-field/message-field.scss +2 -2
- package/react/modal/modal.scss +9 -9
- package/react/progress-bar/progress-bar.scss +7 -7
- package/react/radio/radio.scss +19 -19
- package/react/scale-bar/scale-bar.scss +3 -3
- package/react/search/search.scss +17 -17
- package/react/select/select.scss +17 -17
- package/react/tag/tag.scss +39 -39
- package/react/text-area/text-area.scss +32 -32
- package/react/text-input/text-input.scss +37 -37
- package/react/toggle/toggle.scss +4 -4
- package/react/toolbox/toolbox.scss +6 -6
- package/react/visually-button/visually-button.scss +79 -79
- package/tokens/colours.scss +3 -0
- package/tokens/default-colours.css +414 -0
- /package/tokens/{dark-variables.css → darkmode.css} +0 -0
- /package/tokens/{light-variables.css → lightmode.css} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
@use '../../tokens/corner-radius';
|
|
2
2
|
@use '../../tokens/font-names';
|
|
3
|
-
@use '../../tokens/
|
|
3
|
+
@use '../../tokens/colours';
|
|
4
4
|
@use '../../tokens/dark';
|
|
5
5
|
@use '../../tokens/spacing';
|
|
6
6
|
|
|
@@ -23,24 +23,24 @@
|
|
|
23
23
|
&__label {
|
|
24
24
|
&--theme-light {
|
|
25
25
|
&-disabled {
|
|
26
|
-
color:
|
|
26
|
+
color: var(--on-background-primary-disabled);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
&--theme-dark {
|
|
30
|
-
color:
|
|
30
|
+
color: var(--on-fixed-background-primary-default);
|
|
31
31
|
&-disabled {
|
|
32
|
-
color:
|
|
32
|
+
color: var(--on-fixed-background-primary-disabled);
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
&__max {
|
|
38
|
-
color:
|
|
38
|
+
color: var(--on-background-primary-alternate);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
&__input {
|
|
42
42
|
width: 100%;
|
|
43
|
-
border: 0.5px solid
|
|
43
|
+
border: 0.5px solid var(--ge-border-default);
|
|
44
44
|
border-radius: corner-radius.$s;
|
|
45
45
|
|
|
46
46
|
font-family: font-names.$brand, sans-serif;
|
|
@@ -70,62 +70,62 @@
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
&--theme-light {
|
|
73
|
-
background-color:
|
|
74
|
-
color:
|
|
73
|
+
background-color: var(--surface-primary-default);
|
|
74
|
+
color: var(--on-surface-primary-default);
|
|
75
75
|
&:focus {
|
|
76
|
-
outline: 1px solid
|
|
76
|
+
outline: 1px solid var(--ge-border-focused);
|
|
77
77
|
outline-offset: -1px;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
&:hover {
|
|
81
|
-
background-color:
|
|
81
|
+
background-color: var(--surface-primary-hover);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&::placeholder {
|
|
85
|
-
color:
|
|
85
|
+
color: var(--on-surface-primary-alternate);
|
|
86
86
|
opacity: 1;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&:disabled {
|
|
90
|
-
background-color:
|
|
90
|
+
background-color: var(--surface-primary-disabled);
|
|
91
91
|
&::placeholder {
|
|
92
|
-
color:
|
|
92
|
+
color: var(--on-surface-primary-disabled);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
&-error {
|
|
97
|
-
border-color:
|
|
97
|
+
border-color: var(--ge-signal-border-error);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
&--theme-dark {
|
|
102
|
-
background-color:
|
|
103
|
-
color:
|
|
102
|
+
background-color: var(--fixed-surface-secondary-default);
|
|
103
|
+
color: var(--on-fixed-surface-primary-default);
|
|
104
104
|
&:focus {
|
|
105
|
-
background:
|
|
106
|
-
outline: 2px solid
|
|
105
|
+
background: var(--fixed-surface-primary-hover);
|
|
106
|
+
outline: 2px solid var(--ge-border-focused);
|
|
107
107
|
outline-offset: -2px;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
&:hover {
|
|
111
|
-
background-color:
|
|
111
|
+
background-color: var(--fixed-surface-primary-hover);
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
&::placeholder {
|
|
115
|
-
color:
|
|
115
|
+
color: var(--on-fixed-surface-primary-alternate);
|
|
116
116
|
opacity: 1;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
&:disabled {
|
|
120
|
-
background-color:
|
|
120
|
+
background-color: var(--fixed-surface-primary-selected);
|
|
121
121
|
border: 0;
|
|
122
122
|
&::placeholder {
|
|
123
|
-
color:
|
|
123
|
+
color: var(--on-fixed-surface-secondary-disabled);
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
&-error {
|
|
128
|
-
border-color:
|
|
128
|
+
border-color: var(--on-fixed-surface-error);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
}
|
|
@@ -134,23 +134,23 @@
|
|
|
134
134
|
margin-left: spacing.$xs;
|
|
135
135
|
|
|
136
136
|
&--theme-light {
|
|
137
|
-
color:
|
|
137
|
+
color: var(--on-surface-featured);
|
|
138
138
|
&-disabled {
|
|
139
139
|
|
|
140
|
-
color:
|
|
140
|
+
color: var(--on-surface-primary-disabled);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
&--theme-dark {
|
|
144
|
-
color:
|
|
144
|
+
color: var(--on-fixed-surface-featured);
|
|
145
145
|
&-disabled {
|
|
146
|
-
color:
|
|
146
|
+
color: var(--on-fixed-background-primary-disabled);
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
&__error {
|
|
153
|
-
color:
|
|
153
|
+
color: var(--on-surface-error);
|
|
154
154
|
margin-top: spacing.$xxs;
|
|
155
155
|
}
|
|
156
156
|
|
|
@@ -164,16 +164,16 @@
|
|
|
164
164
|
gap: spacing.$xs;
|
|
165
165
|
|
|
166
166
|
&--theme-light {
|
|
167
|
-
color:
|
|
167
|
+
color: var(--on-background-primary-disabled);
|
|
168
168
|
&--error {
|
|
169
|
-
color:
|
|
169
|
+
color: var(--on-surface-error);
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
&--theme-dark {
|
|
174
|
-
color:
|
|
174
|
+
color: var(--on-fixed-background-primary-disabled);
|
|
175
175
|
&--error {
|
|
176
|
-
color:
|
|
176
|
+
color: var(--on-fixed-surface-error);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use '../../tokens/corner-radius';
|
|
2
2
|
@use '../../tokens/font-sizes';
|
|
3
3
|
@use '../../tokens/font-names';
|
|
4
|
-
@use '../../tokens/
|
|
4
|
+
@use '../../tokens/colours';
|
|
5
5
|
@use '../../tokens/spacing';
|
|
6
6
|
|
|
7
7
|
.text-input {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&__length-counter {
|
|
35
|
-
color:
|
|
35
|
+
color: var(--on-background-primary-alternate);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
&__label-wrapper {
|
|
@@ -41,23 +41,23 @@
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
&__input-wrapper {
|
|
44
|
-
border: 1px solid
|
|
44
|
+
border: 1px solid var(--ge-divider-default);
|
|
45
45
|
border-radius: corner-radius.$s;
|
|
46
46
|
display: flex;
|
|
47
47
|
align-items: center;
|
|
48
|
-
background-color:
|
|
49
|
-
color:
|
|
48
|
+
background-color: var(--surface-primary-default);
|
|
49
|
+
color: var(--on-surface-primary-default);
|
|
50
50
|
width: 100%;
|
|
51
51
|
box-sizing: border-box;
|
|
52
52
|
|
|
53
53
|
&:focus-within {
|
|
54
|
-
border-color:
|
|
54
|
+
border-color: var(--ge-border-focused);
|
|
55
55
|
outline: none;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
@media (hover: hover) {
|
|
59
59
|
&:hover {
|
|
60
|
-
background-color:
|
|
60
|
+
background-color: var(--surface-primary-hover);
|
|
61
61
|
cursor: text;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
@@ -77,13 +77,13 @@
|
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
&::placeholder {
|
|
80
|
-
color:
|
|
80
|
+
color: var(--on-surface-primary-alternate);
|
|
81
81
|
opacity: 1;
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
&[disabled],
|
|
85
85
|
&[disabled]::placeholder {
|
|
86
|
-
color:
|
|
86
|
+
color: var(--on-surface-primary-disabled);
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
&::-webkit-outer-spin-button,
|
|
@@ -118,11 +118,11 @@
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
&__help {
|
|
121
|
-
color:
|
|
121
|
+
color: var(--on-surface-primary-alternate);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
&__error {
|
|
125
|
-
color:
|
|
125
|
+
color: var(--on-surface-error);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
&__icon {
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
&__asterisk {
|
|
133
|
-
color:
|
|
133
|
+
color: var(--on-surface-featured);
|
|
134
134
|
margin-left: spacing.$xs;
|
|
135
135
|
}
|
|
136
136
|
|
|
@@ -138,78 +138,78 @@
|
|
|
138
138
|
#{$block}__label,
|
|
139
139
|
#{$block}__icon,
|
|
140
140
|
#{$block}__help {
|
|
141
|
-
color:
|
|
141
|
+
color: var(--on-background-primary-disabled);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
#{$block}__input-wrapper {
|
|
145
|
-
background-color:
|
|
146
|
-
border-color:
|
|
145
|
+
background-color: var(--surface-primary-disabled);
|
|
146
|
+
border-color: var(--surface-primary-disabled);
|
|
147
147
|
cursor: auto;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
&--error {
|
|
152
152
|
#{$block}__icon {
|
|
153
|
-
color:
|
|
153
|
+
color: var(--on-surface-error);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
#{$block}__input-wrapper {
|
|
157
|
-
outline: 2px solid
|
|
157
|
+
outline: 2px solid var(--ge-signal-error);
|
|
158
158
|
outline-offset: -2px;
|
|
159
159
|
|
|
160
160
|
&:focus {
|
|
161
|
-
outline: 2px solid
|
|
161
|
+
outline: 2px solid var(--ge-signal-error);
|
|
162
162
|
outline-offset: -2px;
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
&__input {
|
|
168
|
-
color:
|
|
168
|
+
color: var(--on-surface-primary-default);
|
|
169
169
|
}
|
|
170
170
|
|
|
171
171
|
&--theme-dark {
|
|
172
172
|
#{$block}__icon {
|
|
173
|
-
color:
|
|
173
|
+
color: var(--on-fixed-surface-primary-default);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
#{$block}__label {
|
|
177
|
-
color:
|
|
177
|
+
color: var(--on-fixed-background-primary-default);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
#{$block}__length-counter,
|
|
181
181
|
#{$block}__help {
|
|
182
|
-
color:
|
|
182
|
+
color: var(--on-background-primary-alternate);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
#{$block}__input-wrapper {
|
|
186
|
-
background-color:
|
|
187
|
-
border-color:
|
|
188
|
-
color:
|
|
186
|
+
background-color: var(--fixed-surface-secondary-default);
|
|
187
|
+
border-color: var(--ge-border-default);
|
|
188
|
+
color: var(--on-fixed-surface-primary-alternate);
|
|
189
189
|
|
|
190
190
|
&:focus-within {
|
|
191
|
-
background:
|
|
192
|
-
color:
|
|
191
|
+
background: var(--fixed-surface-primary-default);
|
|
192
|
+
color: var(--on-fixed-surface-primary-default);
|
|
193
193
|
outline: none;
|
|
194
|
-
border-color:
|
|
194
|
+
border-color: var(--ge-border-focused);
|
|
195
195
|
|
|
196
196
|
~ #{$block}__icon {
|
|
197
|
-
color:
|
|
197
|
+
color: var(--on-fixed-surface-primary-default);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
&::placeholder {
|
|
202
|
-
color:
|
|
202
|
+
color: var(--on-fixed-surface-primary-alternate);
|
|
203
203
|
}
|
|
204
204
|
|
|
205
205
|
&[disabled],
|
|
206
206
|
&[disabled]::placeholder {
|
|
207
|
-
color:
|
|
207
|
+
color: var(--on-fixed-surface-primary-disabled);
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
@media (hover: hover) {
|
|
211
211
|
&:hover {
|
|
212
|
-
background-color:
|
|
212
|
+
background-color: var(--fixed-surface-primary-hover);
|
|
213
213
|
cursor: text;
|
|
214
214
|
}
|
|
215
215
|
}
|
|
@@ -217,23 +217,23 @@
|
|
|
217
217
|
|
|
218
218
|
#{$block}__input {
|
|
219
219
|
background-color: transparent;
|
|
220
|
-
color:
|
|
220
|
+
color: var(--on-fixed-surface-primary-default);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
&#{$block}--disabled {
|
|
224
224
|
#{$block}__label,
|
|
225
225
|
#{$block}__icon,
|
|
226
226
|
#{$block}__help {
|
|
227
|
-
color:
|
|
227
|
+
color: var(--on-fixed-surface-primary-disabled);
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
&#{$block}--error #{$block}__icon {
|
|
231
|
-
color:
|
|
231
|
+
color: var(--on-fixed-surface-error);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
#{$block}__input-wrapper {
|
|
235
|
-
background-color:
|
|
236
|
-
border-color:
|
|
235
|
+
background-color: var(--fixed-surface-primary-selected);
|
|
236
|
+
border-color: var(--on-fixed-surface-primary-disabled);
|
|
237
237
|
cursor: auto;
|
|
238
238
|
}
|
|
239
239
|
|
package/react/toggle/toggle.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '../../tokens/
|
|
1
|
+
@use '../../tokens/colours';
|
|
2
2
|
@use '../../tokens/spacing.scss';
|
|
3
3
|
|
|
4
4
|
.toggle {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&__slider {
|
|
29
|
-
background:
|
|
29
|
+
background: var(--ge-toggle-unselected-default);
|
|
30
30
|
border-radius: 40px;
|
|
31
31
|
position: absolute;
|
|
32
32
|
top: 50%;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
&__slider-element {
|
|
42
42
|
height: 18px;
|
|
43
43
|
width: 18px;
|
|
44
|
-
background:
|
|
44
|
+
background: var(--ge-toggle-interactive-element);
|
|
45
45
|
filter: drop-shadow(0px 3px 1px rgba(0, 0, 0, 0.06))
|
|
46
46
|
drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.05))
|
|
47
47
|
drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.05));
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
height: $sizeHeight;
|
|
56
56
|
|
|
57
57
|
&:checked + #{$block}__slider {
|
|
58
|
-
background:
|
|
58
|
+
background: var(--ge-toggle-selected-default);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&:checked + #{$block}__slider #{$block}__slider-element {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
@use '../../tokens/
|
|
1
|
+
@use '../../tokens/colours';
|
|
2
2
|
@use '../../tokens/spacing';
|
|
3
3
|
@use '../../tokens/corner-radius';
|
|
4
4
|
|
|
5
5
|
.toolbox {
|
|
6
|
-
border-top: 1px solid
|
|
6
|
+
border-top: 1px solid var(--ge-border-default);
|
|
7
7
|
border-bottom-right-radius: corner-radius.$s;
|
|
8
8
|
border-bottom-left-radius: corner-radius.$s;
|
|
9
|
-
background-color:
|
|
9
|
+
background-color: var(--surface-primary-default);
|
|
10
10
|
width: 100%;
|
|
11
11
|
display: flex;
|
|
12
12
|
justify-content: space-evenly;
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
width: 100%;
|
|
18
18
|
|
|
19
19
|
&:hover {
|
|
20
|
-
background:
|
|
20
|
+
background: var(--surface-primary-hover);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&:first-child {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&:not(:last-child) {
|
|
37
|
-
border-right: 1px solid
|
|
37
|
+
border-right: 1px solid var(--ge-border-default);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
align-items: center;
|
|
55
55
|
row-gap: spacing.$xs;
|
|
56
56
|
column-gap: spacing.$xxs;
|
|
57
|
-
color:
|
|
57
|
+
color: var(--on-buttons-on-link-default);
|
|
58
58
|
padding: spacing.$s;
|
|
59
59
|
background: none;
|
|
60
60
|
border: none;
|