@loadsmart/loadsmart-ui 6.0.15 → 6.0.16

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 (32) hide show
  1. package/dist/components/Text/Text.d.ts +1 -1
  2. package/dist/index.js +198 -160
  3. package/dist/index.js.map +1 -1
  4. package/dist/miranda-compatibility.theme-22a9ce26.js +2 -0
  5. package/dist/miranda-compatibility.theme-22a9ce26.js.map +1 -0
  6. package/dist/{prop-82e9ff9d.js → prop-201ffe28.js} +2 -2
  7. package/dist/{prop-82e9ff9d.js.map → prop-201ffe28.js.map} +1 -1
  8. package/dist/testing/index.js +1 -1
  9. package/dist/theming/index.js +1 -1
  10. package/dist/theming/themes/alice.theme.d.ts +70 -15
  11. package/dist/theming/themes/loadsmart.theme.d.ts +70 -15
  12. package/dist/theming/themes/miranda-compatibility.theme.d.ts +141 -85
  13. package/dist/tools/index.js +1 -1
  14. package/package.json +1 -1
  15. package/src/common/CloseButton/CloseButton.tsx +4 -1
  16. package/src/common/SelectionWrapper.tsx +8 -0
  17. package/src/components/Button/Button.tsx +44 -21
  18. package/src/components/Checkbox/Checkbox.tsx +1 -1
  19. package/src/components/Dropdown/DropdownTrigger.tsx +9 -11
  20. package/src/components/Link/Link.tsx +9 -0
  21. package/src/components/Radio/Radio.tsx +1 -1
  22. package/src/components/Select/SelectTrigger.tsx +1 -1
  23. package/src/components/Switch/Switch.tsx +3 -1
  24. package/src/components/Tag/Tag.tsx +24 -4
  25. package/src/components/TextField/TextField.tsx +5 -2
  26. package/src/components/Textarea/Textarea.tsx +5 -2
  27. package/src/components/ToggleGroup/Toggle.tsx +3 -1
  28. package/src/theming/themes/alice.theme.ts +83 -15
  29. package/src/theming/themes/loadsmart.theme.ts +85 -16
  30. package/src/theming/themes/miranda-compatibility.theme.ts +181 -113
  31. package/dist/miranda-compatibility.theme-f99913ed.js +0 -2
  32. package/dist/miranda-compatibility.theme-f99913ed.js.map +0 -1
@@ -112,6 +112,7 @@ declare const mirandaCompatibility: {
112
112
  'button-large-height': string | number;
113
113
  'button-large-padding-x': string | number;
114
114
  'button-large-padding-y': string;
115
+ 'button-outline-offset': string;
115
116
  'button-primary-background': string | number;
116
117
  'button-primary-background--hover': string;
117
118
  'button-primary-background--focus': string | number;
@@ -127,23 +128,25 @@ declare const mirandaCompatibility: {
127
128
  'button-primary-color--focus': string | number;
128
129
  'button-primary-color--active': string | number;
129
130
  'button-primary-color--disabled': string | number;
130
- 'button-primary-outline': string | number;
131
+ 'button-primary-outline': string;
132
+ 'button-primary-box-shadow': string;
131
133
  'button-secondary-background': string | number;
132
134
  'button-secondary-background--hover': string;
133
- 'button-secondary-background--focus': string;
134
- 'button-secondary-background--active': string | number;
135
+ 'button-secondary-background--focus': string | number;
136
+ 'button-secondary-background--active': string;
135
137
  'button-secondary-background--disabled': string | number;
136
- 'button-secondary-border-color': string | number;
138
+ 'button-secondary-border-color': string;
137
139
  'button-secondary-border-color--hover': string;
138
140
  'button-secondary-border-color--focus': string;
139
141
  'button-secondary-border-color--active': string;
140
- 'button-secondary-border-color--disabled': string | number;
141
- 'button-secondary-color': string | number;
142
+ 'button-secondary-border-color--disabled': string;
143
+ 'button-secondary-color': string;
142
144
  'button-secondary-color--hover': string;
143
- 'button-secondary-color--focus': string | number;
145
+ 'button-secondary-color--focus': string;
144
146
  'button-secondary-color--active': string;
145
- 'button-secondary-color--disabled': string | number;
146
- 'button-secondary-outline': string | number;
147
+ 'button-secondary-color--disabled': string;
148
+ 'button-secondary-outline': string;
149
+ 'button-secondary-box-shadow': string;
147
150
  'button-secondary-dark-background': string | number;
148
151
  'button-secondary-dark-background--hover': string;
149
152
  'button-secondary-dark-background--focus': string | number;
@@ -159,83 +162,108 @@ declare const mirandaCompatibility: {
159
162
  'button-secondary-dark-color--focus': string | number;
160
163
  'button-secondary-dark-color--active': string;
161
164
  'button-secondary-dark-color--disabled': string | number;
162
- 'button-warning-background': string | number;
165
+ 'button-tertiary-background': string | number;
166
+ 'button-tertiary-background--hover': string;
167
+ 'button-tertiary-background--focus': string | number;
168
+ 'button-tertiary-background--active': string;
169
+ 'button-tertiary-background--disabled': string | number;
170
+ 'button-tertiary-border-color': string | number;
171
+ 'button-tertiary-border-color--hover': string;
172
+ 'button-tertiary-border-color--focus': string | number;
173
+ 'button-tertiary-border-color--active': string;
174
+ 'button-tertiary-border-color--disabled': string | number;
175
+ 'button-tertiary-color': string;
176
+ 'button-tertiary-color--hover': string;
177
+ 'button-tertiary-color--focus': string;
178
+ 'button-tertiary-color--active': string;
179
+ 'button-tertiary-color--disabled': string;
180
+ 'button-tertiary-outline': string;
181
+ 'button-tertiary-box-shadow': string;
182
+ 'button-warning-background': string;
163
183
  'button-warning-background--hover': string;
164
- 'button-warning-background--focus': string | number;
165
- 'button-warning-background--active': string | number;
166
- 'button-warning-background--disabled': string | number;
167
- 'button-warning-border-color': string | number;
168
- 'button-warning-border-color--hover': string | number;
169
- 'button-warning-border-color--focus': string | number;
170
- 'button-warning-border-color--active': string | number;
171
- 'button-warning-border-color--disabled': string | number;
172
- 'button-warning-color': string | number;
173
- 'button-warning-color--hover': string | number;
174
- 'button-warning-color--focus': string | number;
175
- 'button-warning-color--active': string | number;
184
+ 'button-warning-background--focus': string;
185
+ 'button-warning-background--active': string;
186
+ 'button-warning-background--disabled': string;
187
+ 'button-warning-border-color': string;
188
+ 'button-warning-border-color--hover': string;
189
+ 'button-warning-border-color--focus': string;
190
+ 'button-warning-border-color--active': string;
191
+ 'button-warning-border-color--disabled': string;
192
+ 'button-warning-color': string;
193
+ 'button-warning-color--hover': string;
194
+ 'button-warning-color--focus': string;
195
+ 'button-warning-color--active': string;
176
196
  'button-warning-color--disabled': string | number;
177
- 'button-warning-outline': string | number;
197
+ 'button-warning-outline': string;
198
+ 'button-warning-box-shadow': string;
178
199
  'button-icon-border-radius': string | number;
179
200
  'button-icon-small-width': string | number;
180
201
  'button-icon-width': string | number;
181
202
  'button-icon-large-width': string | number;
182
- 'button-icon-background': string | number;
183
- 'button-icon-background--hover': string | number;
184
- 'button-icon-background--focus': string | number;
185
- 'button-icon-background--active': string | number;
186
- 'button-icon-background--disabled': string | number;
187
- 'button-icon-border-color': string | number;
188
- 'button-icon-border-color--hover': string | number;
189
- 'button-icon-border-color--focus': string | number;
190
- 'button-icon-border-color--active': string | number;
191
- 'button-icon-border-color--disabled': string | number;
192
- 'button-icon-color': string | number;
203
+ 'button-icon-background': string;
204
+ 'button-icon-background--hover': string;
205
+ 'button-icon-background--focus': string;
206
+ 'button-icon-background--active': string;
207
+ 'button-icon-background--disabled': string;
208
+ 'button-icon-border-color': string;
209
+ 'button-icon-border-color--hover': string;
210
+ 'button-icon-border-color--focus': string;
211
+ 'button-icon-border-color--active': string;
212
+ 'button-icon-border-color--disabled': string;
213
+ 'button-icon-color': string;
193
214
  'button-icon-color--hover': string;
194
- 'button-icon-color--focus': string | number;
195
- 'button-icon-color--active': string | number;
196
- 'button-icon-color--disabled': string | number;
197
- 'button-icon-outline': string | number;
215
+ 'button-icon-color--focus': string;
216
+ 'button-icon-color--active': string;
217
+ 'button-icon-color--disabled': string;
218
+ 'button-icon-outline': string;
219
+ 'button-icon-box-shadow': string;
198
220
  'tag-border-radius': string;
199
221
  'tag-border-width': string | number;
200
- 'tag-font-weight': string | number;
201
222
  'tag-font-height': string | number;
202
223
  'tag-spacing': string;
203
- 'tag-spacing-removable': string;
224
+ 'tag-removable-spacing': string;
204
225
  'tag-width': string;
205
- 'tag-outline': string | number;
226
+ 'tag-box-shadow': string;
227
+ 'tag-outline-offset': string;
206
228
  'tag-remove-button-background': string | number;
207
229
  'tag-remove-button-border-radius': string;
208
230
  'tag-icon-spacing': string | number;
209
- 'tag-small-font-size': string | number;
231
+ 'tag-small-font-size': string;
232
+ 'tag-small-font-weight': string;
210
233
  'tag-small-height': string;
211
234
  'tag-small-transform': string;
212
235
  'tag-small-leading-display': string;
213
236
  'tag-small-remove-button-size': string;
214
237
  'tag-small-remove-button-icon-size': string;
215
- 'tag-small-spacing-removable': string;
216
- 'tag-font-size': string | number;
238
+ 'tag-small-spacing': string;
239
+ 'tag-small-removable-spacing': string;
240
+ 'tag-font-size': string;
241
+ 'tag-font-weight': string;
217
242
  'tag-height': string;
218
243
  'tag-transform': string;
219
244
  'tag-leading-display': string;
220
245
  'tag-remove-button-size': string;
221
246
  'tag-remove-button-icon-size': string;
222
- 'tag-large-font-size': string | number;
247
+ 'tag-large-font-size': string;
248
+ 'tag-large-font-weight': string;
223
249
  'tag-large-height': string;
224
250
  'tag-large-transform': string;
225
251
  'tag-large-leading-display': string;
226
252
  'tag-large-remove-button-size': string;
227
253
  'tag-large-remove-button-icon-size': string;
228
- 'tag-default-background': string | number;
254
+ 'tag-large-spacing': string;
255
+ 'tag-default-background': string;
229
256
  'tag-default-background--hover': string;
230
- 'tag-default-background--focus': string | number;
231
- 'tag-default-color': string | number;
257
+ 'tag-default-background--focus': string;
258
+ 'tag-default-color': string;
232
259
  'tag-default-color--hover': string | number;
233
260
  'tag-default-color--focus': string | number;
234
261
  'tag-default-border-color': string;
235
262
  'tag-default-border-color--hover': string;
236
263
  'tag-default-border-color--focus': string;
264
+ 'tag-default-outline': string;
237
265
  'tag-outlined-background': string | number;
238
- 'tag-outlined-background--hover': string;
266
+ 'tag-outlined-background--hover': string | number;
239
267
  'tag-outlined-background--focus': string | number;
240
268
  'tag-outlined-color': string | number;
241
269
  'tag-outlined-color--hover': string | number;
@@ -243,6 +271,7 @@ declare const mirandaCompatibility: {
243
271
  'tag-outlined-border-color': string | number;
244
272
  'tag-outlined-border-color--hover': string | number;
245
273
  'tag-outlined-border-color--focus': string | number;
274
+ 'tag-outlined-outline': string;
246
275
  'tag-accent-background': string;
247
276
  'tag-accent-background--hover': string;
248
277
  'tag-accent-background--focus': string;
@@ -252,39 +281,45 @@ declare const mirandaCompatibility: {
252
281
  'tag-accent-border-color': string;
253
282
  'tag-accent-border-color--hover': string;
254
283
  'tag-accent-border-color--focus': string;
255
- 'tag-success-background': string | number;
256
- 'tag-success-background--hover': string | number;
257
- 'tag-success-background--focus': string | number;
258
- 'tag-success-color': string | number;
284
+ 'tag-accent-outline': string;
285
+ 'tag-success-background': string;
286
+ 'tag-success-background--hover': string;
287
+ 'tag-success-background--focus': string;
288
+ 'tag-success-color': string;
259
289
  'tag-success-color--hover': string | number;
260
290
  'tag-success-color--focus': string | number;
261
- 'tag-success-border-color': string | number;
262
- 'tag-success-border-color--hover': string | number;
263
- 'tag-success-border-color--focus': string | number;
264
- 'tag-warning-background': string | number;
265
- 'tag-warning-background--hover': string | number;
266
- 'tag-warning-background--focus': string | number;
267
- 'tag-warning-color': string | number;
268
- 'tag-warning-color--hover': string | number;
269
- 'tag-warning-color--focus': string | number;
270
- 'tag-warning-border-color': string | number;
271
- 'tag-warning-border-color--hover': string | number;
272
- 'tag-warning-border-color--focus': string | number;
273
- 'tag-danger-background': string | number;
274
- 'tag-danger-background--hover': string | number;
275
- 'tag-danger-background--focus': string | number;
276
- 'tag-danger-color': string | number;
277
- 'tag-danger-color--hover': string | number;
278
- 'tag-danger-color--focus': string | number;
279
- 'tag-danger-border-color': string | number;
280
- 'tag-danger-border-color--hover': string | number;
281
- 'tag-danger-border-color--focus': string | number;
291
+ 'tag-success-border-color': string;
292
+ 'tag-success-border-color--hover': string;
293
+ 'tag-success-border-color--focus': string;
294
+ 'tag-success-outline': string;
295
+ 'tag-warning-background': string;
296
+ 'tag-warning-background--hover': string;
297
+ 'tag-warning-background--focus': string;
298
+ 'tag-warning-color': string;
299
+ 'tag-warning-color--hover': string;
300
+ 'tag-warning-color--focus': string;
301
+ 'tag-warning-border-color': string;
302
+ 'tag-warning-border-color--hover': string;
303
+ 'tag-warning-border-color--focus': string;
304
+ 'tag-warning-outline': string;
305
+ 'tag-danger-background': string;
306
+ 'tag-danger-background--hover': string;
307
+ 'tag-danger-background--focus': string;
308
+ 'tag-danger-color': string;
309
+ 'tag-danger-color--hover': string;
310
+ 'tag-danger-color--focus': string;
311
+ 'tag-danger-border-color': string;
312
+ 'tag-danger-border-color--hover': string;
313
+ 'tag-danger-border-color--focus': string;
314
+ 'tag-danger-outline': string;
282
315
  'checkbox-color': string | number;
283
316
  'checkbox-font-weight': string | number;
284
317
  'checkbox-font-size': string | number;
285
318
  'checkbox-selector-border-radius': string | number;
286
319
  'checkbox-selector-size': string;
287
- 'checkbox-selector-outline': string | number;
320
+ 'checkbox-selector-box-shadow': string;
321
+ 'checkbox-selector-outline': string;
322
+ 'checkbox-selector-outline-offset': string;
288
323
  'checkbox-small-font-size': string | number;
289
324
  'checkbox-selector-icon-color': string | number;
290
325
  'checkbox-selector-background': string | number;
@@ -317,7 +352,7 @@ declare const mirandaCompatibility: {
317
352
  'radio-font-size': string | number;
318
353
  'radio-selector-border-radius': string | number;
319
354
  'radio-selector-size': string;
320
- 'radio-selector-outline': string | number;
355
+ 'radio-selector-box-shadow': string;
321
356
  'radio-small-font-size': string | number;
322
357
  'radio-small-selector-size': string;
323
358
  'radio-selector-background': string | number;
@@ -368,7 +403,9 @@ declare const mirandaCompatibility: {
368
403
  'text-field-height': string | number;
369
404
  'text-field-padding-x': string | number;
370
405
  'text-field-padding-y': string | number;
371
- 'text-field-outline': string | number;
406
+ 'text-field-box-shadow': string;
407
+ 'text-field-outline': string;
408
+ 'text-field-outline-offset': string;
372
409
  'text-field-small-height': string | number;
373
410
  'text-field-small-padding-x': string | number;
374
411
  'text-field-small-padding-y': string | number;
@@ -393,7 +430,7 @@ declare const mirandaCompatibility: {
393
430
  'text-field-dark-border-color--disabled': string | number;
394
431
  'text-field-success-border-color': string | number;
395
432
  'text-field-danger-border-color': string;
396
- 'text-field-dark-outline': string;
433
+ 'text-field-dark-box-shadow': string;
397
434
  'textarea-border-radius': string | number;
398
435
  'textarea-color': string | number;
399
436
  'textarea-font-size': string | number;
@@ -402,7 +439,9 @@ declare const mirandaCompatibility: {
402
439
  'textarea-min-height': string;
403
440
  'textarea-padding-x': string | number;
404
441
  'textarea-padding-y': string | number;
405
- 'textarea-outline': string | number;
442
+ 'textarea-box-shadow': string;
443
+ 'textarea-outline': string;
444
+ 'textarea-outline-offset': string;
406
445
  'textarea-small-padding-x': string | number;
407
446
  'textarea-small-padding-y': string | number;
408
447
  'textarea-small-font-size': string | number;
@@ -426,12 +465,15 @@ declare const mirandaCompatibility: {
426
465
  'textarea-dark-border-color--disabled': string | number;
427
466
  'textarea-success-border-color': string | number;
428
467
  'textarea-danger-border-color': string | number;
429
- 'textarea-dark-outline': string;
468
+ 'textarea-dark-box-shadow': string;
430
469
  'link-font-size': string | number;
431
470
  'link-font-height': string | number;
432
471
  'link-color': string;
433
472
  'link-font-weight': string | number;
434
473
  'link-font-weight--hover': string | number;
474
+ 'link-box-shadow': string;
475
+ 'link-outline': string;
476
+ 'link-outline-offset': string;
435
477
  'breadcrumbs-font-size': string | number;
436
478
  'breadcrumbs-font-height': string | number;
437
479
  'breadcrumbs-font-weight': string | number;
@@ -515,7 +557,9 @@ declare const mirandaCompatibility: {
515
557
  'switch-width': string;
516
558
  'switch-height': string;
517
559
  'switch-border-radius': string;
518
- 'switch-outline': string | number;
560
+ 'switch-box-shadow': string;
561
+ 'switch-outline': string;
562
+ 'switch-outline-offset': string;
519
563
  'switch-large-width': string;
520
564
  'switch-large-height': string;
521
565
  'switch-large-border-radius': string;
@@ -610,9 +654,14 @@ declare const mirandaCompatibility: {
610
654
  'top-navigation-item-icon-color': string | number;
611
655
  'top-navigation-item-color': string | number;
612
656
  'top-navigation-item-color--hover': string;
657
+ 'select-trigger-height': string;
658
+ 'select-trigger-border-color': string;
613
659
  'select-selected-option-check-color': string;
614
660
  'select-selected-option-background-color': string;
615
661
  'toggle-text-transform': string;
662
+ 'toggle-box-shadow': string;
663
+ 'toggle-outline': string;
664
+ 'toggle-outline-offset': string;
616
665
  'toggle-background-color': string | number;
617
666
  'toggle-background-color--hover': string;
618
667
  'toggle-background-color--focus': string | number;
@@ -652,7 +701,7 @@ declare const mirandaCompatibility: {
652
701
  'toggle-multiple-checked-border-color': string;
653
702
  'toggle-multiple-checked-border-color--disabled': string;
654
703
  'toggle-multiple-font-size': string;
655
- 'toggle-multiple-small-font-size': string | number;
704
+ 'toggle-multiple-small-font-size': string;
656
705
  'toggle-multiple-height': string;
657
706
  'toggle-multiple-small-height': string;
658
707
  'toggle-group-border-color--disabled': string;
@@ -666,10 +715,16 @@ declare const mirandaCompatibility: {
666
715
  'toggle-group-single-border-color': string;
667
716
  'toggle-group-single-border-radius': string;
668
717
  'toggle-group-single-padding': string;
718
+ 'dropdown-trigger-border-color': string;
719
+ 'dropdown-trigger-dark-border-color': string;
720
+ 'dropdown-trigger-outlined-border-color': string | number;
669
721
  'dropdown-trigger-expanded-color': string;
670
- 'dropdown-trigger-height': string | number;
671
- 'dropdown-trigger-small-height': string | number;
672
- 'dropdown-trigger-large-height': string | number;
722
+ 'dropdown-trigger-height': string;
723
+ 'dropdown-trigger-small-height': string;
724
+ 'dropdown-trigger-large-height': string;
725
+ 'dropdown-trigger-box-shadow': string;
726
+ 'dropdown-trigger-outline': string;
727
+ 'dropdown-trigger-outline-offset': string;
673
728
  'height-small': string;
674
729
  'height-default': string;
675
730
  'height-large': string;
@@ -741,6 +796,7 @@ declare const mirandaCompatibility: {
741
796
  'border-radius-m': string;
742
797
  'border-radius-l': string;
743
798
  'border-radius-circle': string;
799
+ 'tag-outline-outline': string;
744
800
  'dropdown-background': string | number;
745
801
  'dropdown-border-color': string | number;
746
802
  'dropdown-border-radius': string | number;
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../prop-82e9ff9d.js");require("../toArray-b56541b4.js"),require("../miranda-compatibility.theme-f99913ed.js"),require("@loadsmart/miranda-tokens"),require("../theming/index.js"),exports.conditional=e.conditional,exports.prop=e.prop,exports.whenProps=e.whenProps;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../prop-201ffe28.js");require("../toArray-b56541b4.js"),require("../miranda-compatibility.theme-22a9ce26.js"),require("@loadsmart/miranda-tokens"),require("../theming/index.js"),exports.conditional=e.conditional,exports.prop=e.prop,exports.whenProps=e.whenProps;
2
2
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loadsmart/loadsmart-ui",
3
- "version": "6.0.15",
3
+ "version": "6.0.16",
4
4
  "description": "Miranda UI, a React UI library",
5
5
  "main": "dist",
6
6
  "files": [
@@ -36,7 +36,10 @@ const Button = styled(BaseButton)`
36
36
  })};
37
37
 
38
38
  ${focusable`
39
- box-shadow: ${token('button-icon-outline')};
39
+ box-shadow: ${token('button-icon-box-shadow')};
40
+
41
+ outline: ${token('button-icon-outline')};
42
+ outline-offset: ${token('button-outline-offset')};
40
43
  `}
41
44
  `
42
45
 
@@ -5,6 +5,7 @@ import styled from 'styled-components'
5
5
  import type ColorScheme from 'utils/types/ColorScheme'
6
6
  import conditional, { whenProps } from 'tools/conditional'
7
7
  import disableable from 'styles/disableable'
8
+ import focusable from 'styles/focusable'
8
9
  import font from 'styles/font'
9
10
  import { getToken as token } from 'theming'
10
11
  import transition from 'styles/transition'
@@ -66,6 +67,8 @@ const StyledLabel = styled.label<SelectionStyleProps>`
66
67
 
67
68
  cursor: pointer;
68
69
 
70
+ border-radius: ${token('border-radius-s')};
71
+
69
72
  font-size: ${conditional({
70
73
  'checkbox-font-size': whenProps({ scale: 'default' }),
71
74
  'checkbox-small-font-size': whenProps({ scale: 'small' }),
@@ -93,6 +96,11 @@ const StyledLabel = styled.label<SelectionStyleProps>`
93
96
  }
94
97
 
95
98
  ${disableable()}
99
+
100
+ ${focusable`
101
+ outline: ${token('checkbox-selector-outline')};
102
+ outline-offset: ${token('checkbox-selector-outline-offset')};
103
+ `}
96
104
  `
97
105
 
98
106
  function SelectionWrapper({
@@ -142,11 +142,12 @@ const StyledButton = styled(BaseStyledButton)<{
142
142
 
143
143
  color: ${conditional({
144
144
  'button-primary-color': whenProps({ $variant: 'primary' }),
145
- 'button-secondary-color': whenProps({ $variant: ['secondary', 'tertiary'], $scheme: 'light' }),
145
+ 'button-secondary-color': whenProps({ $variant: 'secondary', $scheme: 'light' }),
146
146
  'button-secondary-dark-color': whenProps({
147
- $variant: ['secondary', 'tertiary'],
147
+ $variant: 'secondary',
148
148
  $scheme: 'dark',
149
149
  }),
150
+ 'button-tertiary-color': whenProps({ $variant: 'tertiary' }),
150
151
  'button-warning-color': whenProps({ $variant: 'warning' }),
151
152
  'button-icon-color': whenProps({ $variant: 'icon' }),
152
153
  })};
@@ -154,13 +155,16 @@ const StyledButton = styled(BaseStyledButton)<{
154
155
  background: ${conditional({
155
156
  'button-primary-background': whenProps({ $variant: 'primary' }),
156
157
  'button-secondary-background': whenProps({
157
- $variant: ['secondary', 'tertiary'],
158
+ $variant: 'secondary',
158
159
  $scheme: 'light',
159
160
  }),
160
161
  'button-secondary-dark-background': whenProps({
161
- $variant: ['secondary', 'tertiary'],
162
+ $variant: 'secondary',
162
163
  $scheme: 'dark',
163
164
  }),
165
+ 'button-tertiary': whenProps({
166
+ $variant: 'tertiary',
167
+ }),
164
168
  'button-warning-background': whenProps({ $variant: 'warning' }),
165
169
  'button-icon-background': whenProps({ $variant: 'icon' }),
166
170
  })};
@@ -169,9 +173,9 @@ const StyledButton = styled(BaseStyledButton)<{
169
173
  'button-primary-border-color': whenProps({ $variant: 'primary' }),
170
174
  'button-secondary-border-color': whenProps({ $variant: 'secondary', $scheme: 'light' }),
171
175
  'button-secondary-dark-border-color': whenProps({ $variant: 'secondary', $scheme: 'dark' }),
176
+ 'button-tertiary-border-color': whenProps({ $variant: 'tertiary' }),
172
177
  'button-warning-border-color': whenProps({ $variant: 'warning' }),
173
178
  'button-icon-border-color': whenProps({ $variant: 'icon' }),
174
- 'color-transparent': whenProps({ $variant: 'tertiary' }),
175
179
  })};
176
180
  border-radius: ${conditional({
177
181
  'button-border-radius': whenProps({ $variant: ['primary', 'secondary', 'warning'] }),
@@ -182,13 +186,16 @@ const StyledButton = styled(BaseStyledButton)<{
182
186
  background: ${conditional({
183
187
  'button-primary-background--hover': whenProps({ $variant: 'primary' }),
184
188
  'button-secondary-background--hover': whenProps({
185
- $variant: ['secondary', 'tertiary'],
189
+ $variant: 'secondary',
186
190
  $scheme: 'light',
187
191
  }),
188
192
  'button-secondary-dark-background--hover': whenProps({
189
- $variant: ['secondary', 'tertiary'],
193
+ $variant: 'secondary',
190
194
  $scheme: 'dark',
191
195
  }),
196
+ 'button-tertiary-background--hover': whenProps({
197
+ $variant: 'tertiary',
198
+ }),
192
199
  'button-warning-background--hover': whenProps({ $variant: 'warning' }),
193
200
  'button-icon-background--hover': whenProps({ $variant: 'icon' }),
194
201
  })};
@@ -202,20 +209,21 @@ const StyledButton = styled(BaseStyledButton)<{
202
209
  $variant: 'secondary',
203
210
  $scheme: 'dark',
204
211
  }),
212
+ 'button-tertiary-border-color--hover': whenProps({ $variant: 'tertiary' }),
205
213
  'button-warning-border-color--hover': whenProps({ $variant: 'warning' }),
206
214
  'button-icon-border-color--hover': whenProps({ $variant: 'icon' }),
207
- 'color-transparent': whenProps({ $variant: 'tertiary' }),
208
215
  })};
209
216
  color: ${conditional({
210
217
  'button-primary-color--hover': whenProps({ $variant: 'primary' }),
211
218
  'button-secondary-color--hover': whenProps({
212
- $variant: ['secondary', 'tertiary'],
219
+ $variant: 'secondary',
213
220
  $scheme: 'light',
214
221
  }),
215
222
  'button-secondary-dark-color--hover': whenProps({
216
- $variant: ['secondary', 'tertiary'],
223
+ $variant: 'secondary',
217
224
  $scheme: 'dark',
218
225
  }),
226
+ 'button-tertiary-color--hover': whenProps({ $variant: 'tertiary' }),
219
227
  'button-warning-color--hover': whenProps({ $variant: 'warning' }),
220
228
  'button-icon-color--hover': whenProps({ $variant: 'icon' }),
221
229
  })};
@@ -225,13 +233,14 @@ const StyledButton = styled(BaseStyledButton)<{
225
233
  background: ${conditional({
226
234
  'button-primary-background--disabled': whenProps({ $variant: 'primary' }),
227
235
  'button-secondary-background--disabled': whenProps({
228
- $variant: ['secondary', 'tertiary'],
236
+ $variant: 'secondary',
229
237
  $scheme: 'light',
230
238
  }),
231
239
  'button-secondary-dark-background--disabled': whenProps({
232
- $variant: ['secondary', 'tertiary'],
240
+ $variant: 'secondary',
233
241
  $scheme: 'dark',
234
242
  }),
243
+ 'button-tertiary-background--disabled': whenProps({ $variant: 'tertiary' }),
235
244
  'button-warning-background--disabled': whenProps({ $variant: 'warning' }),
236
245
  'button-icon-background--disabled': whenProps({ $variant: 'icon' }),
237
246
  })};
@@ -245,20 +254,21 @@ const StyledButton = styled(BaseStyledButton)<{
245
254
  $variant: 'secondary',
246
255
  $scheme: 'dark',
247
256
  }),
257
+ 'button-tertiary-border-color--disabled': whenProps({ $variant: 'tertiary' }),
248
258
  'button-warning-border-color--disabled': whenProps({ $variant: 'warning' }),
249
259
  'button-icon-border-color--disabled': whenProps({ $variant: 'icon' }),
250
- 'color-transparent': whenProps({ $variant: 'tertiary' }),
251
260
  })};
252
261
  color: ${conditional({
253
262
  'button-primary-color--disabled': whenProps({ $variant: 'primary' }),
254
263
  'button-secondary-color--disabled': whenProps({
255
- $variant: ['secondary', 'tertiary'],
264
+ $variant: 'secondary',
256
265
  $scheme: 'light',
257
266
  }),
258
267
  'button-secondary-dark-color--disabled': whenProps({
259
- $variant: ['secondary', 'tertiary'],
268
+ $variant: 'secondary',
260
269
  $scheme: 'dark',
261
270
  }),
271
+ 'button-tertiary-color--disabled': whenProps({ $variant: 'tertiary' }),
262
272
  'button-warning-color--disabled': whenProps({ $variant: 'warning' }),
263
273
  'button-icon-color--disabled': whenProps({ $variant: 'icon' }),
264
274
  })};
@@ -268,13 +278,14 @@ const StyledButton = styled(BaseStyledButton)<{
268
278
  background: ${conditional({
269
279
  'button-primary-background--focus': whenProps({ $variant: 'primary' }),
270
280
  'button-secondary-background--focus': whenProps({
271
- $variant: ['secondary', 'tertiary'],
281
+ $variant: 'secondary',
272
282
  $scheme: 'light',
273
283
  }),
274
284
  'button-secondary-dark-background--focus': whenProps({
275
- $variant: ['secondary', 'tertiary'],
285
+ $variant: 'secondary',
276
286
  $scheme: 'dark',
277
287
  }),
288
+ 'button-tertiary-background--focus': whenProps({ $variant: 'tertiary' }),
278
289
  'button-warning-background--focus': whenProps({ $variant: 'warning' }),
279
290
  'button-icon-background--focus': whenProps({ $variant: 'icon' }),
280
291
  })};
@@ -285,30 +296,42 @@ const StyledButton = styled(BaseStyledButton)<{
285
296
  $scheme: 'light',
286
297
  }),
287
298
  'button-secondary-dark-border-color--focus': whenProps({
288
- $variant: ['secondary', 'tertiary'],
299
+ $variant: 'secondary',
289
300
  $scheme: 'dark',
290
301
  }),
302
+ 'button-tertiary-border-color--focus': whenProps({ $variant: 'tertiary' }),
291
303
  'button-warning-border-color--focus': whenProps({ $variant: 'warning' }),
292
304
  'button-icon-border-color--focus': whenProps({ $variant: 'icon' }),
293
- 'color-transparent': whenProps({ $variant: 'tertiary' }),
294
305
  })};
295
306
  color: ${conditional({
296
307
  'button-primary-color--focus': whenProps({ $variant: 'primary' }),
297
308
  'button-secondary-color--focus': whenProps({
298
- $variant: ['secondary', 'tertiary'],
309
+ $variant: 'secondary',
299
310
  $scheme: 'light',
300
311
  }),
301
312
  'button-secondary-dark-color--focus': whenProps({ $variant: 'secondary', $scheme: 'dark' }),
313
+ 'button-tertiary-color--focus': whenProps({ $variant: 'tertiary' }),
302
314
  'button-warning-color--focus': whenProps({ $variant: 'warning' }),
303
315
  'button-icon-color--focus': whenProps({ $variant: 'icon' }),
304
316
  })};
305
317
 
306
318
  box-shadow: ${conditional({
319
+ 'button-primary-box-shadow': whenProps({ $variant: 'primary' }),
320
+ 'button-secondary-box-shadow': whenProps({ $variant: 'secondary' }),
321
+ 'button-warning-box-shadow': whenProps({ $variant: 'warning' }),
322
+ 'button-tertiary-box-shadow': whenProps({ $variant: 'tertiary' }),
323
+ 'button-icon-box-shadow': whenProps({ $variant: 'icon' }),
324
+ })};
325
+
326
+ outline: ${conditional({
307
327
  'button-primary-outline': whenProps({ $variant: 'primary' }),
308
328
  'button-secondary-outline': whenProps({ $variant: 'secondary' }),
329
+ 'button-tertiary-outline': whenProps({ $variant: 'tertiary' }),
309
330
  'button-warning-outline': whenProps({ $variant: 'warning' }),
310
331
  'button-icon-outline': whenProps({ $variant: 'icon' }),
311
- })}
332
+ })};
333
+
334
+ outline-offset: ${token('button-outline-offset')};
312
335
  `}
313
336
 
314
337
  ${activatable`
@@ -127,7 +127,7 @@ const Selector = styled.input<SelectionStyleProps>`
127
127
  color: ${token('checkbox-selector-icon-color')};
128
128
  }
129
129
 
130
- box-shadow: ${token('checkbox-selector-outline')};
130
+ box-shadow: ${token('checkbox-selector-box-shadow')};
131
131
  `}
132
132
  `
133
133