@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.
Files changed (39) hide show
  1. package/package.json +1 -1
  2. package/react/badge/badge.scss +13 -13
  3. package/react/banner/banner.scss +17 -17
  4. package/react/bomb/bomb.scss +4 -4
  5. package/react/checkbox/checkbox.scss +36 -36
  6. package/react/chip/chip.scss +10 -10
  7. package/react/chip-selected/chip-selected.scss +3 -3
  8. package/react/confirmation/confirmation.scss +4 -4
  9. package/react/context-menu/context-menu.scss +14 -14
  10. package/react/dropdown-list/dropdown-list.scss +33 -33
  11. package/react/expander/expander.js +1 -1
  12. package/react/expander/expander.js.map +3 -3
  13. package/react/expander/expander.scss +12 -9
  14. package/react/expander/expander.types.d.ts +2 -0
  15. package/react/expander/expander.types.js +1 -1
  16. package/react/expander/expander.types.js.map +2 -2
  17. package/react/filter/filter.scss +11 -11
  18. package/react/flag/flag.scss +4 -4
  19. package/react/form-content/form-content.scss +11 -11
  20. package/react/link/link.scss +9 -9
  21. package/react/link-card/link-card.scss +5 -5
  22. package/react/message/message.scss +10 -10
  23. package/react/message-field/message-field.scss +2 -2
  24. package/react/modal/modal.scss +9 -9
  25. package/react/progress-bar/progress-bar.scss +7 -7
  26. package/react/radio/radio.scss +19 -19
  27. package/react/scale-bar/scale-bar.scss +3 -3
  28. package/react/search/search.scss +17 -17
  29. package/react/select/select.scss +17 -17
  30. package/react/tag/tag.scss +39 -39
  31. package/react/text-area/text-area.scss +32 -32
  32. package/react/text-input/text-input.scss +37 -37
  33. package/react/toggle/toggle.scss +4 -4
  34. package/react/toolbox/toolbox.scss +6 -6
  35. package/react/visually-button/visually-button.scss +79 -79
  36. package/tokens/colours.scss +3 -0
  37. package/tokens/default-colours.css +414 -0
  38. /package/tokens/{dark-variables.css → darkmode.css} +0 -0
  39. /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/light';
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: light.$on-background-primary-disabled;
26
+ color: var(--on-background-primary-disabled);
27
27
  }
28
28
  }
29
29
  &--theme-dark {
30
- color: light.$on-fixed-background-primary-default;
30
+ color: var(--on-fixed-background-primary-default);
31
31
  &-disabled {
32
- color: light.$on-fixed-background-primary-disabled;
32
+ color: var(--on-fixed-background-primary-disabled);
33
33
  }
34
34
  }
35
35
  }
36
36
 
37
37
  &__max {
38
- color: light.$on-background-primary-alternate;
38
+ color: var(--on-background-primary-alternate);
39
39
  }
40
40
 
41
41
  &__input {
42
42
  width: 100%;
43
- border: 0.5px solid light.$ge-border-default;
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: light.$surface-primary-default;
74
- color: light.$on-surface-primary-default;
73
+ background-color: var(--surface-primary-default);
74
+ color: var(--on-surface-primary-default);
75
75
  &:focus {
76
- outline: 1px solid light.$ge-border-focused;
76
+ outline: 1px solid var(--ge-border-focused);
77
77
  outline-offset: -1px;
78
78
  }
79
79
 
80
80
  &:hover {
81
- background-color: light.$surface-primary-hover;
81
+ background-color: var(--surface-primary-hover);
82
82
  }
83
83
 
84
84
  &::placeholder {
85
- color: light.$on-surface-primary-alternate;
85
+ color: var(--on-surface-primary-alternate);
86
86
  opacity: 1;
87
87
  }
88
88
 
89
89
  &:disabled {
90
- background-color: light.$surface-primary-disabled;
90
+ background-color: var(--surface-primary-disabled);
91
91
  &::placeholder {
92
- color: light.$on-surface-primary-disabled;
92
+ color: var(--on-surface-primary-disabled);
93
93
  }
94
94
  }
95
95
 
96
96
  &-error {
97
- border-color: light.$ge-signal-border-error;
97
+ border-color: var(--ge-signal-border-error);
98
98
  }
99
99
  }
100
100
 
101
101
  &--theme-dark {
102
- background-color: light.$fixed-surface-secondary-default;
103
- color: light.$on-fixed-surface-primary-default;
102
+ background-color: var(--fixed-surface-secondary-default);
103
+ color: var(--on-fixed-surface-primary-default);
104
104
  &:focus {
105
- background: light.$fixed-surface-primary-hover;
106
- outline: 2px solid light.$ge-border-focused;
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: light.$fixed-surface-primary-hover;
111
+ background-color: var(--fixed-surface-primary-hover);
112
112
  }
113
113
 
114
114
  &::placeholder {
115
- color: light.$on-fixed-surface-primary-alternate;
115
+ color: var(--on-fixed-surface-primary-alternate);
116
116
  opacity: 1;
117
117
  }
118
118
 
119
119
  &:disabled {
120
- background-color: light.$fixed-surface-primary-selected;
120
+ background-color: var(--fixed-surface-primary-selected);
121
121
  border: 0;
122
122
  &::placeholder {
123
- color: light.$on-fixed-surface-secondary-disabled;
123
+ color: var(--on-fixed-surface-secondary-disabled);
124
124
  }
125
125
  }
126
126
 
127
127
  &-error {
128
- border-color: light.$on-fixed-surface-error;
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: light.$on-surface-featured;
137
+ color: var(--on-surface-featured);
138
138
  &-disabled {
139
139
 
140
- color: light.$on-surface-primary-disabled;
140
+ color: var(--on-surface-primary-disabled);
141
141
  }
142
142
  }
143
143
  &--theme-dark {
144
- color: light.$on-fixed-surface-featured;
144
+ color: var(--on-fixed-surface-featured);
145
145
  &-disabled {
146
- color: light.$on-fixed-background-primary-disabled;
146
+ color: var(--on-fixed-background-primary-disabled);
147
147
  }
148
148
  }
149
149
 
150
150
  }
151
151
 
152
152
  &__error {
153
- color: light.$on-surface-error;
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: light.$on-background-primary-disabled;
167
+ color: var(--on-background-primary-disabled);
168
168
  &--error {
169
- color: light.$on-surface-error;
169
+ color: var(--on-surface-error);
170
170
  }
171
171
  }
172
172
 
173
173
  &--theme-dark {
174
- color: light.$on-fixed-background-primary-disabled;
174
+ color: var(--on-fixed-background-primary-disabled);
175
175
  &--error {
176
- color: light.$on-fixed-surface-error;
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/light';
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: light.$on-background-primary-alternate;
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 light.$ge-divider-default;
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: light.$surface-primary-default;
49
- color: light.$on-surface-primary-default;
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: light.$ge-border-focused;
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: light.$surface-primary-hover;
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: light.$on-surface-primary-alternate;
80
+ color: var(--on-surface-primary-alternate);
81
81
  opacity: 1;
82
82
  }
83
83
 
84
84
  &[disabled],
85
85
  &[disabled]::placeholder {
86
- color: light.$on-surface-primary-disabled;
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: light.$on-surface-primary-alternate;
121
+ color: var(--on-surface-primary-alternate);
122
122
  }
123
123
 
124
124
  &__error {
125
- color: light.$on-surface-error;
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: light.$on-surface-featured;
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: light.$on-background-primary-disabled;
141
+ color: var(--on-background-primary-disabled);
142
142
  }
143
143
 
144
144
  #{$block}__input-wrapper {
145
- background-color: light.$surface-primary-disabled;
146
- border-color: light.$surface-primary-disabled;
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: light.$on-surface-error;
153
+ color: var(--on-surface-error);
154
154
  }
155
155
 
156
156
  #{$block}__input-wrapper {
157
- outline: 2px solid light.$ge-signal-error;
157
+ outline: 2px solid var(--ge-signal-error);
158
158
  outline-offset: -2px;
159
159
 
160
160
  &:focus {
161
- outline: 2px solid light.$ge-signal-error;
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: light.$on-surface-primary-default;
168
+ color: var(--on-surface-primary-default);
169
169
  }
170
170
 
171
171
  &--theme-dark {
172
172
  #{$block}__icon {
173
- color: light.$on-fixed-surface-primary-default;
173
+ color: var(--on-fixed-surface-primary-default);
174
174
  }
175
175
 
176
176
  #{$block}__label {
177
- color: light.$on-fixed-background-primary-default;
177
+ color: var(--on-fixed-background-primary-default);
178
178
  }
179
179
 
180
180
  #{$block}__length-counter,
181
181
  #{$block}__help {
182
- color: light.$on-background-primary-alternate;
182
+ color: var(--on-background-primary-alternate);
183
183
  }
184
184
 
185
185
  #{$block}__input-wrapper {
186
- background-color: light.$fixed-surface-secondary-default;
187
- border-color: light.$ge-border-default;
188
- color: light.$on-fixed-surface-primary-alternate;
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: light.$fixed-surface-primary-default;
192
- color: light.$on-fixed-surface-primary-default;
191
+ background: var(--fixed-surface-primary-default);
192
+ color: var(--on-fixed-surface-primary-default);
193
193
  outline: none;
194
- border-color: light.$ge-border-focused;
194
+ border-color: var(--ge-border-focused);
195
195
 
196
196
  ~ #{$block}__icon {
197
- color: light.$on-fixed-surface-primary-default;
197
+ color: var(--on-fixed-surface-primary-default);
198
198
  }
199
199
  }
200
200
 
201
201
  &::placeholder {
202
- color: light.$on-fixed-surface-primary-alternate;
202
+ color: var(--on-fixed-surface-primary-alternate);
203
203
  }
204
204
 
205
205
  &[disabled],
206
206
  &[disabled]::placeholder {
207
- color: light.$on-fixed-surface-primary-disabled;
207
+ color: var(--on-fixed-surface-primary-disabled);
208
208
  }
209
209
 
210
210
  @media (hover: hover) {
211
211
  &:hover {
212
- background-color: light.$fixed-surface-primary-hover;
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: light.$on-fixed-surface-primary-default;
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: light.$on-fixed-surface-primary-disabled;
227
+ color: var(--on-fixed-surface-primary-disabled);
228
228
  }
229
229
 
230
230
  &#{$block}--error #{$block}__icon {
231
- color: light.$on-fixed-surface-error;
231
+ color: var(--on-fixed-surface-error);
232
232
  }
233
233
 
234
234
  #{$block}__input-wrapper {
235
- background-color: light.$fixed-surface-primary-selected;
236
- border-color: light.$on-fixed-surface-primary-disabled;
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
 
@@ -1,4 +1,4 @@
1
- @use '../../tokens/light';
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: light.$ge-toggle-unselected-default;
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: light.$ge-toggle-interactive-element;
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: light.$ge-toggle-selected-default;
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/light';
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 light.$ge-border-default;
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: light.$surface-primary-default;
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: light.$surface-primary-hover;
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 light.$ge-border-default;
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: light.$on-buttons-on-link-default;
57
+ color: var(--on-buttons-on-link-default);
58
58
  padding: spacing.$s;
59
59
  background: none;
60
60
  border: none;