@danske/sapphire-css 32.2.0 → 33.0.1

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 (98) hide show
  1. package/build/themes/cjs/default-dark.js +1 -1
  2. package/build/themes/cjs/default.js +2 -1
  3. package/build/themes/cjs/index.d.ts +2 -1
  4. package/build/themes/esm/default-dark.js +1 -1
  5. package/build/themes/esm/default.js +2 -1
  6. package/build/themes/esm/index.d.ts +2 -1
  7. package/components/accordion/accordion.module.css +38 -40
  8. package/components/avatar/avatar.module.css +61 -51
  9. package/components/avatar/avatar.module.css.d.ts +4 -4
  10. package/components/backdrop/backdrop.module.css +3 -3
  11. package/components/badge/badge.module.css +257 -135
  12. package/components/badge/badge.module.css.d.ts +3 -3
  13. package/components/button/button.module.css +200 -400
  14. package/components/button/button.module.css.d.ts +6 -7
  15. package/components/buttonGroup/buttonGroup.module.css +6 -6
  16. package/components/buttonGroup/buttonGroup.module.css.d.ts +2 -2
  17. package/components/calendar/calendar.module.css +90 -86
  18. package/components/checkbox/checkbox.module.css +59 -51
  19. package/components/checkbox/checkbox.module.css.d.ts +2 -2
  20. package/components/contextualHelp/contextualHelp.module.css +13 -10
  21. package/components/dateField/dateField.module.css +66 -64
  22. package/components/dateField/dateField.module.css.d.ts +1 -1
  23. package/components/dialog/dialog.module.css +13 -13
  24. package/components/dialog/dialog.module.css.d.ts +4 -4
  25. package/components/dropzone/dropzone.module.css +29 -23
  26. package/components/feedbackMessage/feedbackMessage.module.css +15 -15
  27. package/components/field/field.module.css +16 -16
  28. package/components/field/field.module.css.d.ts +1 -1
  29. package/components/fieldGroup/fieldGroup.module.css +4 -4
  30. package/components/fieldGroup/fieldGroup.module.css.d.ts +1 -1
  31. package/components/heading/heading.module.css +37 -85
  32. package/components/icon/icon.module.css +12 -12
  33. package/components/icon/icon.module.css.d.ts +4 -4
  34. package/components/iconButton/iconButton.module.css +130 -366
  35. package/components/iconButton/iconButton.module.css.d.ts +7 -8
  36. package/components/label/label.module.css +11 -11
  37. package/components/label/label.module.css.d.ts +1 -1
  38. package/components/labeledValue/labeledValue.module.css +7 -7
  39. package/components/labeledValue/labeledValue.module.css.d.ts +2 -2
  40. package/components/link/link.module.css +22 -22
  41. package/components/link/link.module.css.d.ts +2 -2
  42. package/components/list/list.module.css +41 -31
  43. package/components/listbox/listbox.module.css +80 -66
  44. package/components/listbox/listbox.module.css.d.ts +2 -2
  45. package/components/modalLayout/modalLayout.module.css +9 -11
  46. package/components/notificationBadge/notificationBadge.module.css +23 -25
  47. package/components/notificationBadge/notificationBadge.module.css.d.ts +3 -3
  48. package/components/pagination/pagination.module.css +16 -16
  49. package/components/panel/panel.module.css +4 -4
  50. package/components/panel/panel.module.css.d.ts +1 -1
  51. package/components/paragraph/paragraph.module.css +8 -8
  52. package/components/paragraph/paragraph.module.css.d.ts +2 -2
  53. package/components/popover/popover.module.css +6 -6
  54. package/components/radio/radio.module.css +32 -32
  55. package/components/radio/radio.module.css.d.ts +1 -1
  56. package/components/searchField/searchField.module.css +41 -45
  57. package/components/searchField/searchField.module.css.d.ts +1 -2
  58. package/components/segmentedControl/segmentedControl.module.css +33 -35
  59. package/components/segmentedControl/segmentedControl.module.css.d.ts +2 -2
  60. package/components/select/select.module.css +32 -32
  61. package/components/select/select.module.css.d.ts +1 -1
  62. package/components/skeleton/skeleton.module.css +6 -8
  63. package/components/spinner/spinner.module.css +22 -22
  64. package/components/spinner/spinner.module.css.d.ts +4 -4
  65. package/components/surface/surface.module.css +3 -7
  66. package/components/surface/surface.module.css.d.ts +0 -1
  67. package/components/switch/switch.module.css +47 -39
  68. package/components/switch/switch.module.css.d.ts +1 -1
  69. package/components/table/table.module.css +66 -54
  70. package/components/tabs/tabs.module.css +46 -45
  71. package/components/tabs/tabs.module.css.d.ts +2 -2
  72. package/components/tag/tag.module.css +32 -24
  73. package/components/text/text.module.css +48 -96
  74. package/components/textField/textField.module.css +78 -72
  75. package/components/textField/textField.module.css.d.ts +1 -1
  76. package/components/toast/toast.module.css +17 -19
  77. package/components/tooltip/tooltip.module.css +12 -12
  78. package/package.json +3 -3
  79. package/themes/default-dark.js +1 -1
  80. package/themes/default.js +2 -1
  81. package/themes/index.d.ts +2 -1
  82. package/build/themes/cjs/june-dark.d.ts +0 -5
  83. package/build/themes/cjs/june-dark.js +0 -13
  84. package/build/themes/cjs/june.d.ts +0 -5
  85. package/build/themes/cjs/june.js +0 -13
  86. package/build/themes/esm/june-dark.d.ts +0 -5
  87. package/build/themes/esm/june-dark.js +0 -8
  88. package/build/themes/esm/june.d.ts +0 -5
  89. package/build/themes/esm/june.js +0 -8
  90. package/themes/default-dark.css +0 -2
  91. package/themes/june-dark.css +0 -3
  92. package/themes/june-dark.d.ts +0 -5
  93. package/themes/june-dark.js +0 -13
  94. package/themes/june-dark.scss +0 -3
  95. package/themes/june.css +0 -3
  96. package/themes/june.d.ts +0 -5
  97. package/themes/june.js +0 -13
  98. package/themes/june.scss +0 -3
@@ -27,25 +27,25 @@
27
27
  -moz-osx-font-smoothing: grayscale;
28
28
 
29
29
  /* sizing */
30
- height: var(--sapphire-icon-button-size-height-m);
31
- width: var(--sapphire-icon-button-size-width-m);
30
+ height: var(--sapphire-semantic-size-height-control-md);
31
+ width: var(--sapphire-semantic-size-height-control-md);
32
32
  flex-shrink: 0; /* When part of flex layout the button will otherwise be squashed */
33
33
 
34
34
  /* shape */
35
- border-radius: var(--sapphire-icon-button-size-radius-m);
35
+ border-radius: var(--sapphire-semantic-size-height-control-md);
36
36
  border-style: solid;
37
37
  border-width: 0;
38
38
  border-color: transparent;
39
39
 
40
40
  /* typography */
41
- font-family: var(--sapphire-icon-button-font-name);
42
- font-weight: var(--sapphire-icon-button-font-weight);
43
- font-size: var(--sapphire-icon-button-size-font-m);
41
+ font-family: var(--sapphire-semantic-font-name-default);
42
+ font-weight: var(--sapphire-semantic-font-weight-default-semibold);
43
+ font-size: var(--sapphire-semantic-size-font-control-md);
44
44
 
45
45
  /* transition */
46
46
  /* we don't want to transition outline-offset */
47
47
  transition-property: opacity, background-color, color;
48
- transition-duration: var(--sapphire-icon-button-time-transition);
48
+ transition-duration: var(--sapphire-semantic-time-fade-quick);
49
49
  transition-timing-function: ease-in-out;
50
50
  cursor: pointer;
51
51
  }
@@ -57,7 +57,7 @@ a.sapphire-icon-button {
57
57
  /* Disabled state for all variants */
58
58
  .sapphire-icon-button:disabled,
59
59
  .sapphire-icon-button.is-disabled {
60
- opacity: var(--sapphire-icon-button-opacity-disabled);
60
+ opacity: var(--sapphire-semantic-opacity-disabled);
61
61
  cursor: not-allowed;
62
62
  }
63
63
 
@@ -67,9 +67,9 @@ a.sapphire-icon-button {
67
67
  }
68
68
  .sapphire-icon-button.is-focus,
69
69
  .sapphire-icon-button:not(.js-focus):focus-visible {
70
- outline: var(--sapphire-icon-button-size-focus-ring-border) solid
71
- var(--sapphire-icon-button-color-focus-ring);
72
- outline-offset: var(--sapphire-icon-button-size-focus-ring-offset);
70
+ outline: var(--sapphire-semantic-size-focus-ring) solid
71
+ var(--sapphire-semantic-color-focus-ring);
72
+ outline-offset: var(--sapphire-semantic-size-focus-ring);
73
73
  }
74
74
 
75
75
  /* Button loading */
@@ -88,122 +88,83 @@ a.sapphire-icon-button {
88
88
 
89
89
  /* ### Variant: Primary */
90
90
  /* ## Style: Default */
91
- .sapphire-icon-button--primary-fill {
91
+ .sapphire-icon-button--primary {
92
92
  background-color: var(
93
- --sapphire-icon-button-color-background-primary-default
93
+ --sapphire-semantic-color-background-action-primary-default
94
94
  );
95
- color: var(--sapphire-icon-button-color-content-primary-default);
95
+ color: var(--sapphire-semantic-color-content-action-primary-default);
96
96
  }
97
- .sapphire-icon-button--primary-fill:not(:disabled):not(.is-disabled):not(
97
+ .sapphire-icon-button--primary:not(:disabled):not(.is-disabled):not(
98
98
  :active
99
99
  ):not(.is-active):not(.js-hover):hover,
100
- .sapphire-icon-button--primary-fill:not(:disabled):not(.is-disabled):not(
100
+ .sapphire-icon-button--primary:not(:disabled):not(.is-disabled):not(
101
101
  :active
102
102
  ):not(.is-active).is-hover {
103
- background-color: var(--sapphire-icon-button-color-background-primary-hover);
103
+ background-color: var(
104
+ --sapphire-semantic-color-background-action-primary-hover
105
+ );
104
106
  }
105
- .sapphire-icon-button--primary-fill.is-focus,
106
- .sapphire-icon-button--primary-fill:not(.js-focus):focus-visible {
107
- background-color: var(--sapphire-icon-button-color-background-primary-focus);
107
+ .sapphire-icon-button--primary.is-focus,
108
+ .sapphire-icon-button--primary:not(.js-focus):focus-visible {
109
+ background-color: var(
110
+ --sapphire-semantic-color-background-action-primary-default
111
+ );
108
112
  }
109
- .sapphire-icon-button--primary-fill:not(:disabled):not(.is-disabled).is-active,
110
- .sapphire-icon-button--primary-fill:not(:disabled):not(.is-disabled):active,
111
- .sapphire-icon-button--primary-fill:not(:disabled):not(
113
+ .sapphire-icon-button--primary:not(:disabled):not(.is-disabled).is-active,
114
+ .sapphire-icon-button--primary:not(:disabled):not(.is-disabled):active,
115
+ .sapphire-icon-button--primary:not(:disabled):not(
112
116
  .is-disabled
113
117
  ):focus-visible:active {
114
- background-color: var(--sapphire-icon-button-color-background-primary-active);
118
+ background-color: var(
119
+ --sapphire-semantic-color-background-action-primary-active
120
+ );
115
121
  }
116
122
 
117
123
  /* ### Variant: Secondary */
118
124
  /* ## Style: Default */
119
- /* # Surface: Primary */
120
- .sapphire-icon-button--secondary-fill {
125
+ .sapphire-icon-button--secondary {
121
126
  background-color: var(
122
- --sapphire-icon-button-color-background-secondary-default
127
+ --sapphire-semantic-color-background-action-secondary-default
123
128
  );
124
- color: var(--sapphire-icon-button-color-content-secondary-default);
129
+ color: var(--sapphire-semantic-color-content-action-secondary-default);
125
130
  }
126
131
 
127
- .sapphire-icon-button--secondary-fill:not(:disabled):not(.is-disabled):not(
132
+ .sapphire-icon-button--secondary:not(:disabled):not(.is-disabled):not(
128
133
  :active
129
134
  ):not(.is-active):not(.js-hover):hover,
130
- .sapphire-icon-button--secondary-fill:not(:disabled):not(.is-disabled):not(
135
+ .sapphire-icon-button--secondary:not(:disabled):not(.is-disabled):not(
131
136
  :active
132
137
  ):not(.is-active).is-hover {
133
138
  background-color: var(
134
- --sapphire-icon-button-color-background-secondary-hover
139
+ --sapphire-semantic-color-background-action-secondary-hover
135
140
  );
136
- color: var(--sapphire-icon-button-color-content-secondary-hover);
141
+ color: var(--sapphire-semantic-color-content-action-secondary-hover);
137
142
  }
138
143
 
139
- .sapphire-icon-button--secondary-fill.is-focus,
140
- .sapphire-icon-button--secondary-fill:not(.js-focus):focus-visible {
144
+ .sapphire-icon-button--secondary.is-focus,
145
+ .sapphire-icon-button--secondary:not(.js-focus):focus-visible {
141
146
  background-color: var(
142
- --sapphire-icon-button-color-background-secondary-focus
147
+ --sapphire-semantic-color-background-action-secondary-default
143
148
  );
144
149
  }
145
150
 
146
- .sapphire-icon-button--secondary-fill:not(:disabled):not(
147
- .is-disabled
148
- ).is-active,
149
- .sapphire-icon-button--secondary-fill:not(:disabled):not(.is-disabled):active,
150
- .sapphire-icon-button--secondary-fill:not(:disabled):not(
151
+ .sapphire-icon-button--secondary:not(:disabled):not(.is-disabled).is-active,
152
+ .sapphire-icon-button--secondary:not(:disabled):not(.is-disabled):active,
153
+ .sapphire-icon-button--secondary:not(:disabled):not(
151
154
  .is-disabled
152
155
  ):focus-visible:active {
153
156
  background-color: var(
154
- --sapphire-icon-button-color-background-secondary-active
155
- );
156
- color: var(--sapphire-icon-button-color-content-secondary-active);
157
- }
158
-
159
- /* # Surface: Secondary */
160
- .sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface {
161
- background-color: var(
162
- --sapphire-icon-button-color-background-secondary-surface-secondary-default
163
- );
164
- }
165
-
166
- .sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
167
- :disabled
168
- ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
169
- .sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
170
- :disabled
171
- ):not(.is-disabled):not(:active):not(.is-active).is-hover {
172
- background-color: var(
173
- --sapphire-icon-button-color-background-secondary-surface-secondary-hover
174
- );
175
- }
176
-
177
- .sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface.is-focus,
178
- .sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
179
- .js-focus
180
- ):focus-visible {
181
- background-color: var(
182
- --sapphire-icon-button-color-background-secondary-surface-secondary-focus
183
- );
184
- }
185
-
186
- .sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
187
- :disabled
188
- ):not(.is-disabled).is-active,
189
- .sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
190
- :disabled
191
- ):not(.is-disabled):active,
192
- .sapphire-icon-button--secondary-fill.sapphire-icon-button--secondary-surface:not(
193
- :disabled
194
- ):not(.is-disabled):focus-visible:active {
195
- background-color: var(
196
- --sapphire-icon-button-color-background-secondary-surface-secondary-active
157
+ --sapphire-semantic-color-background-action-secondary-active
197
158
  );
159
+ color: var(--sapphire-semantic-color-content-action-secondary-active);
198
160
  }
199
161
 
200
162
  /* ## Style: Ghost */
201
- /* # Surface: Primary */
202
163
  .sapphire-icon-button--secondary-ghost {
203
164
  background-color: var(
204
- --sapphire-icon-button-color-background-secondary-ghost-default
165
+ --sapphire-semantic-color-background-action-secondary-ghost-default
205
166
  );
206
- color: var(--sapphire-icon-button-color-content-secondary-default);
167
+ color: var(--sapphire-semantic-color-content-action-secondary-default);
207
168
  }
208
169
 
209
170
  .sapphire-icon-button--secondary-ghost:not(:disabled):not(.is-disabled):not(
@@ -213,15 +174,15 @@ a.sapphire-icon-button {
213
174
  :active
214
175
  ):not(.is-active).is-hover {
215
176
  background-color: var(
216
- --sapphire-icon-button-color-background-secondary-ghost-hover
177
+ --sapphire-semantic-color-background-action-secondary-ghost-hover
217
178
  );
218
- color: var(--sapphire-icon-button-color-content-secondary-hover);
179
+ color: var(--sapphire-semantic-color-content-action-secondary-hover);
219
180
  }
220
181
 
221
182
  .sapphire-icon-button--secondary-ghost.is-focus,
222
183
  .sapphire-icon-button--secondary-ghost:not(.js-focus):focus-visible {
223
184
  background-color: var(
224
- --sapphire-icon-button-color-background-secondary-ghost-focus
185
+ --sapphire-semantic-color-background-action-secondary-ghost-default
225
186
  );
226
187
  }
227
188
 
@@ -233,136 +194,56 @@ a.sapphire-icon-button {
233
194
  .is-disabled
234
195
  ):focus-visible:active {
235
196
  background-color: var(
236
- --sapphire-icon-button-color-background-secondary-ghost-active
237
- );
238
- color: var(--sapphire-icon-button-color-content-secondary-active);
239
- }
240
-
241
- /* # Surface: Secondary */
242
- .sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface {
243
- background-color: var(
244
- --sapphire-icon-button-color-background-secondary-ghost-surface-secondary-default
245
- );
246
- }
247
-
248
- .sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
249
- :disabled
250
- ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
251
- .sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
252
- :disabled
253
- ):not(.is-disabled):not(:active):not(.is-active).is-hover {
254
- background-color: var(
255
- --sapphire-icon-button-color-background-secondary-ghost-surface-secondary-hover
256
- );
257
- }
258
-
259
- .sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface.is-focus,
260
- .sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
261
- .js-focus
262
- ):focus-visible {
263
- background-color: var(
264
- --sapphire-icon-button-color-background-secondary-ghost-surface-secondary-focus
265
- );
266
- }
267
-
268
- .sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
269
- :disabled
270
- ):not(.is-disabled).is-active,
271
- .sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
272
- :disabled
273
- ):not(.is-disabled):active,
274
- .sapphire-icon-button--secondary-ghost.sapphire-icon-button--secondary-surface:not(
275
- :disabled
276
- ):not(.is-disabled):focus-visible:active {
277
- background-color: var(
278
- --sapphire-icon-button-color-background-secondary-ghost-surface-secondary-active
197
+ --sapphire-semantic-color-background-action-secondary-ghost-active
279
198
  );
199
+ color: var(--sapphire-semantic-color-content-action-secondary-active);
280
200
  }
281
201
 
282
202
  /* ### Variant: Tertiary */
283
203
  /* ## Style: Default */
284
- /* # Surface: Primary */
285
- .sapphire-icon-button--tertiary-fill {
204
+ .sapphire-icon-button--tertiary {
286
205
  background-color: var(
287
- --sapphire-icon-button-color-background-tertiary-default
206
+ --sapphire-semantic-color-background-action-tertiary-default
288
207
  );
289
- color: var(--sapphire-icon-button-color-content-tertiary-default);
208
+ color: var(--sapphire-semantic-color-content-action-tertiary-default);
290
209
  }
291
210
 
292
- .sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled):not(
211
+ .sapphire-icon-button--tertiary:not(:disabled):not(.is-disabled):not(
293
212
  :active
294
213
  ):not(.is-active):not(.js-hover):hover,
295
- .sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled):not(
214
+ .sapphire-icon-button--tertiary:not(:disabled):not(.is-disabled):not(
296
215
  :active
297
216
  ):not(.is-active).is-hover {
298
- background-color: var(--sapphire-icon-button-color-background-tertiary-hover);
299
- color: var(--sapphire-icon-button-color-content-tertiary-hover);
300
- }
301
-
302
- .sapphire-icon-button--tertiary-fill.is-focus,
303
- .sapphire-icon-button--tertiary-fill:not(.js-focus):focus-visible {
304
- background-color: var(--sapphire-icon-button-color-background-tertiary-focus);
305
- }
306
-
307
- .sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled).is-active,
308
- .sapphire-icon-button--tertiary-fill:not(:disabled):not(.is-disabled):active,
309
- .sapphire-icon-button--tertiary-fill:not(:disabled):not(
310
- .is-disabled
311
- ):focus-visible:active {
312
- background-color: var(
313
- --sapphire-icon-button-color-background-tertiary-active
314
- );
315
- color: var(--sapphire-icon-button-color-content-tertiary-active);
316
- }
317
-
318
- /* # Surface: Secondary */
319
- .sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface {
320
- background-color: var(
321
- --sapphire-icon-button-color-background-tertiary-surface-secondary-default
322
- );
323
- }
324
-
325
- .sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(
326
- :disabled
327
- ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
328
- .sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(
329
- :disabled
330
- ):not(.is-disabled):not(:active):not(.is-active).is-hover {
331
217
  background-color: var(
332
- --sapphire-icon-button-color-background-tertiary-surface-secondary-hover
218
+ --sapphire-semantic-color-background-action-tertiary-hover
333
219
  );
220
+ color: var(--sapphire-semantic-color-content-action-tertiary-hover);
334
221
  }
335
222
 
336
- .sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface.is-focus,
337
- .sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(
338
- .js-focus
339
- ):focus-visible {
223
+ .sapphire-icon-button--tertiary.is-focus,
224
+ .sapphire-icon-button--tertiary:not(.js-focus):focus-visible {
340
225
  background-color: var(
341
- --sapphire-icon-button-color-background-tertiary-surface-secondary-focus
226
+ --sapphire-semantic-color-background-action-tertiary-default
342
227
  );
343
228
  }
344
229
 
345
- .sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(
346
- :disabled
347
- ):not(.is-disabled).is-active,
348
- .sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(
349
- :disabled
350
- ):not(.is-disabled):active,
351
- .sapphire-icon-button--tertiary-fill.sapphire-icon-button--secondary-surface:not(
352
- :disabled
353
- ):not(.is-disabled):focus-visible:active {
230
+ .sapphire-icon-button--tertiary:not(:disabled):not(.is-disabled).is-active,
231
+ .sapphire-icon-button--tertiary:not(:disabled):not(.is-disabled):active,
232
+ .sapphire-icon-button--tertiary:not(:disabled):not(
233
+ .is-disabled
234
+ ):focus-visible:active {
354
235
  background-color: var(
355
- --sapphire-icon-button-color-background-tertiary-surface-secondary-active
236
+ --sapphire-semantic-color-background-action-tertiary-active
356
237
  );
238
+ color: var(--sapphire-semantic-color-content-action-tertiary-active);
357
239
  }
358
240
 
359
241
  /* ## Style: Ghost */
360
- /* # Surface: Primary */
361
242
  .sapphire-icon-button--tertiary-ghost {
362
243
  background-color: var(
363
- --sapphire-icon-button-color-background-tertiary-ghost-default
244
+ --sapphire-semantic-color-background-action-tertiary-ghost-default
364
245
  );
365
- color: var(--sapphire-icon-button-color-content-tertiary-default);
246
+ color: var(--sapphire-semantic-color-content-action-tertiary-default);
366
247
  }
367
248
 
368
249
  .sapphire-icon-button--tertiary-ghost:not(:disabled):not(.is-disabled):not(
@@ -372,15 +253,15 @@ a.sapphire-icon-button {
372
253
  :active
373
254
  ):not(.is-active).is-hover {
374
255
  background-color: var(
375
- --sapphire-icon-button-color-background-tertiary-ghost-hover
256
+ --sapphire-semantic-color-background-action-tertiary-ghost-hover
376
257
  );
377
- color: var(--sapphire-icon-button-color-content-tertiary-hover);
258
+ color: var(--sapphire-semantic-color-content-action-tertiary-hover);
378
259
  }
379
260
 
380
261
  .sapphire-icon-button--tertiary-ghost.is-focus,
381
262
  .sapphire-icon-button--tertiary-ghost:not(.js-focus):focus-visible {
382
263
  background-color: var(
383
- --sapphire-icon-button-color-background-tertiary-ghost-focus
264
+ --sapphire-semantic-color-background-action-tertiary-ghost-default
384
265
  );
385
266
  }
386
267
 
@@ -392,132 +273,56 @@ a.sapphire-icon-button {
392
273
  .is-disabled
393
274
  ):focus-visible:active {
394
275
  background-color: var(
395
- --sapphire-icon-button-color-background-tertiary-ghost-active
396
- );
397
- color: var(--sapphire-icon-button-color-content-tertiary-active);
398
- }
399
-
400
- /* # Surface: Secondary */
401
- .sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface {
402
- background-color: var(
403
- --sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-default
404
- );
405
- }
406
-
407
- .sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
408
- :disabled
409
- ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
410
- .sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
411
- :disabled
412
- ):not(.is-disabled):not(:active):not(.is-active).is-hover {
413
- background-color: var(
414
- --sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-hover
415
- );
416
- }
417
-
418
- .sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface.is-focus,
419
- .sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
420
- .js-focus
421
- ):focus-visible {
422
- background-color: var(
423
- --sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-focus
424
- );
425
- }
426
-
427
- .sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
428
- :disabled
429
- ):not(.is-disabled).is-active,
430
- .sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
431
- :disabled
432
- ):not(.is-disabled):active,
433
- .sapphire-icon-button--tertiary-ghost.sapphire-icon-button--secondary-surface:not(
434
- :disabled
435
- ):not(.is-disabled):focus-visible:active {
436
- background-color: var(
437
- --sapphire-icon-button-color-background-tertiary-ghost-surface-secondary-active
276
+ --sapphire-semantic-color-background-action-tertiary-ghost-active
438
277
  );
278
+ color: var(--sapphire-semantic-color-content-action-tertiary-active);
439
279
  }
440
280
 
441
281
  /* ### Variant: Danger */
442
282
  /* ## Style: Default */
443
- /* # Surface: Primary */
444
- .sapphire-icon-button--danger-fill {
445
- background-color: var(--sapphire-icon-button-color-background-danger-default);
446
- color: var(--sapphire-icon-button-color-content-danger-default);
447
- }
448
-
449
- .sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):not(
450
- :active
451
- ):not(.is-active):not(.js-hover):hover,
452
- .sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):not(
453
- :active
454
- ):not(.is-active).is-hover {
455
- background-color: var(--sapphire-icon-button-color-background-danger-hover);
456
- color: var(--sapphire-icon-button-color-content-danger-hover);
457
- }
458
-
459
- .sapphire-icon-button--danger-fill.is-focus,
460
- .sapphire-icon-button--danger-fill:not(.js-focus):focus-visible {
461
- background-color: var(--sapphire-icon-button-color-background-danger-focus);
462
- }
463
-
464
- .sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled).is-active,
465
- .sapphire-icon-button--danger-fill:not(:disabled):not(.is-disabled):active,
466
- .sapphire-icon-button--danger-fill:not(:disabled):not(
467
- .is-disabled
468
- ):focus-visible:active {
469
- background-color: var(--sapphire-icon-button-color-background-danger-active);
470
- color: var(--sapphire-icon-button-color-content-danger-active);
471
- }
472
-
473
- /* # Surface: Secondary */
474
- .sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface {
283
+ .sapphire-icon-button--danger {
475
284
  background-color: var(
476
- --sapphire-icon-button-color-background-danger-surface-secondary-default
285
+ --sapphire-semantic-color-background-action-danger-default
477
286
  );
287
+ color: var(--sapphire-semantic-color-content-action-danger-default);
478
288
  }
479
289
 
480
- .sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(
481
- :disabled
482
- ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
483
- .sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(
484
- :disabled
485
- ):not(.is-disabled):not(:active):not(.is-active).is-hover {
290
+ .sapphire-icon-button--danger:not(:disabled):not(.is-disabled):not(:active):not(
291
+ .is-active
292
+ ):not(.js-hover):hover,
293
+ .sapphire-icon-button--danger:not(:disabled):not(.is-disabled):not(:active):not(
294
+ .is-active
295
+ ).is-hover {
486
296
  background-color: var(
487
- --sapphire-icon-button-color-background-danger-surface-secondary-hover
297
+ --sapphire-semantic-color-background-action-danger-hover
488
298
  );
299
+ color: var(--sapphire-semantic-color-content-action-danger-hover);
489
300
  }
490
301
 
491
- .sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface.is-focus,
492
- .sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(
493
- .js-focus
494
- ):focus-visible {
302
+ .sapphire-icon-button--danger.is-focus,
303
+ .sapphire-icon-button--danger:not(.js-focus):focus-visible {
495
304
  background-color: var(
496
- --sapphire-icon-button-color-background-danger-surface-secondary-focus
305
+ --sapphire-semantic-color-background-action-danger-default
497
306
  );
498
307
  }
499
308
 
500
- .sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(
501
- :disabled
502
- ):not(.is-disabled).is-active,
503
- .sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(
504
- :disabled
505
- ):not(.is-disabled):active,
506
- .sapphire-icon-button--danger-fill.sapphire-icon-button--secondary-surface:not(
507
- :disabled
508
- ):not(.is-disabled):focus-visible:active {
309
+ .sapphire-icon-button--danger:not(:disabled):not(.is-disabled).is-active,
310
+ .sapphire-icon-button--danger:not(:disabled):not(.is-disabled):active,
311
+ .sapphire-icon-button--danger:not(:disabled):not(
312
+ .is-disabled
313
+ ):focus-visible:active {
509
314
  background-color: var(
510
- --sapphire-icon-button-color-background-danger-surface-secondary-active
315
+ --sapphire-semantic-color-background-action-danger-active
511
316
  );
317
+ color: var(--sapphire-semantic-color-content-action-danger-active);
512
318
  }
513
319
 
514
320
  /* ## Style: Ghost */
515
- /* # Surface: Primary */
516
321
  .sapphire-icon-button--danger-ghost {
517
322
  background-color: var(
518
- --sapphire-icon-button-color-background-danger-ghost-default
323
+ --sapphire-semantic-color-background-action-danger-ghost-default
519
324
  );
520
- color: var(--sapphire-icon-button-color-content-danger-default);
325
+ color: var(--sapphire-semantic-color-content-action-danger-default);
521
326
  }
522
327
 
523
328
  .sapphire-icon-button--danger-ghost:not(:disabled):not(.is-disabled):not(
@@ -527,15 +332,15 @@ a.sapphire-icon-button {
527
332
  :active
528
333
  ):not(.is-active).is-hover {
529
334
  background-color: var(
530
- --sapphire-icon-button-color-background-danger-ghost-hover
335
+ --sapphire-semantic-color-background-action-danger-ghost-hover
531
336
  );
532
- color: var(--sapphire-icon-button-color-content-danger-hover);
337
+ color: var(--sapphire-semantic-color-content-action-danger-hover);
533
338
  }
534
339
 
535
340
  .sapphire-icon-button--danger-ghost.is-focus,
536
341
  .sapphire-icon-button--danger-ghost:not(.js-focus):focus-visible {
537
342
  background-color: var(
538
- --sapphire-icon-button-color-background-danger-ghost-focus
343
+ --sapphire-semantic-color-background-action-danger-ghost-default
539
344
  );
540
345
  }
541
346
 
@@ -545,50 +350,9 @@ a.sapphire-icon-button {
545
350
  .is-disabled
546
351
  ):focus-visible:active {
547
352
  background-color: var(
548
- --sapphire-icon-button-color-background-danger-ghost-active
549
- );
550
- color: var(--sapphire-icon-button-color-content-danger-active);
551
- }
552
-
553
- /* # Surface: Secondary */
554
- .sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface {
555
- background-color: var(
556
- --sapphire-icon-button-color-background-danger-ghost-surface-secondary-default
557
- );
558
- }
559
-
560
- .sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
561
- :disabled
562
- ):not(.is-disabled):not(:active):not(.is-active):not(.js-hover):hover,
563
- .sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
564
- :disabled
565
- ):not(.is-disabled):not(:active):not(.is-active).is-hover {
566
- background-color: var(
567
- --sapphire-icon-button-color-background-danger-ghost-surface-secondary-hover
568
- );
569
- }
570
-
571
- .sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface.is-focus,
572
- .sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
573
- .js-focus
574
- ):focus-visible {
575
- background-color: var(
576
- --sapphire-icon-button-color-background-danger-ghost-surface-secondary-focus
577
- );
578
- }
579
-
580
- .sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
581
- :disabled
582
- ):not(.is-disabled).is-active,
583
- .sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
584
- :disabled
585
- ):not(.is-disabled):active,
586
- .sapphire-icon-button--danger-ghost.sapphire-icon-button--secondary-surface:not(
587
- :disabled
588
- ):not(.is-disabled):focus-visible:active {
589
- background-color: var(
590
- --sapphire-icon-button-color-background-danger-ghost-surface-secondary-active
353
+ --sapphire-semantic-color-background-action-danger-ghost-active
591
354
  );
355
+ color: var(--sapphire-semantic-color-content-action-danger-active);
592
356
  }
593
357
 
594
358
  /**
@@ -599,20 +363,20 @@ a.sapphire-icon-button {
599
363
  flex-direction: column;
600
364
  justify-content: center;
601
365
  align-items: center;
602
- height: var(--sapphire-icon-button-size-icon-m);
603
- width: var(--sapphire-icon-button-size-icon-m);
366
+ height: var(--sapphire-semantic-size-icon-md);
367
+ width: var(--sapphire-semantic-size-icon-md);
604
368
  }
605
- .sapphire-icon-button--large .sapphire-icon-button__icon {
606
- height: var(--sapphire-icon-button-size-icon-l);
607
- width: var(--sapphire-icon-button-size-icon-l);
369
+ .sapphire-icon-button--lg .sapphire-icon-button__icon {
370
+ height: var(--sapphire-semantic-size-icon-lg);
371
+ width: var(--sapphire-semantic-size-icon-lg);
608
372
  }
609
- .sapphire-icon-button--small .sapphire-icon-button__icon {
610
- height: var(--sapphire-icon-button-size-icon-s);
611
- width: var(--sapphire-icon-button-size-icon-s);
373
+ .sapphire-icon-button--sm .sapphire-icon-button__icon {
374
+ height: var(--sapphire-semantic-size-icon-sm);
375
+ width: var(--sapphire-semantic-size-icon-sm);
612
376
  }
613
- .sapphire-icon-button--extra-small .sapphire-icon-button__icon {
614
- height: var(--sapphire-icon-button-size-icon-xs);
615
- width: var(--sapphire-icon-button-size-icon-xs);
377
+ .sapphire-icon-button--xs .sapphire-icon-button__icon {
378
+ height: var(--sapphire-semantic-size-icon-sm);
379
+ width: var(--sapphire-semantic-size-icon-sm);
616
380
  }
617
381
 
618
382
  /**
@@ -621,29 +385,29 @@ a.sapphire-icon-button {
621
385
  /**
622
386
  * LARGE
623
387
  */
624
- .sapphire-icon-button--large {
625
- height: var(--sapphire-icon-button-size-height-l);
626
- width: var(--sapphire-icon-button-size-width-l);
627
- border-radius: var(--sapphire-icon-button-size-radius-l);
628
- font-size: var(--sapphire-icon-button-size-font-l);
388
+ .sapphire-icon-button--lg {
389
+ height: var(--sapphire-semantic-size-height-control-lg);
390
+ width: var(--sapphire-semantic-size-height-control-lg);
391
+ border-radius: var(--sapphire-semantic-size-height-control-lg);
392
+ font-size: var(--sapphire-semantic-size-font-control-default);
629
393
  }
630
394
 
631
395
  /**
632
396
  * SMALL
633
397
  */
634
- .sapphire-icon-button--small {
635
- height: var(--sapphire-icon-button-size-height-s);
636
- width: var(--sapphire-icon-button-size-width-s);
637
- border-radius: var(--sapphire-icon-button-size-radius-s);
638
- font-size: var(--sapphire-icon-button-size-font-s);
398
+ .sapphire-icon-button--sm {
399
+ height: var(--sapphire-semantic-size-height-control-sm);
400
+ width: var(--sapphire-semantic-size-height-control-sm);
401
+ border-radius: var(--sapphire-semantic-size-height-control-sm);
402
+ font-size: var(--sapphire-semantic-size-font-control-sm);
639
403
  }
640
404
 
641
405
  /**
642
406
  * EXTRA SMALL
643
407
  */
644
- .sapphire-icon-button--extra-small {
645
- height: var(--sapphire-icon-button-size-height-xs);
646
- width: var(--sapphire-icon-button-size-width-xs);
647
- border-radius: var(--sapphire-icon-button-size-radius-xs);
648
- font-size: var(--sapphire-icon-button-size-font-xs);
408
+ .sapphire-icon-button--xs {
409
+ height: var(--sapphire-semantic-size-height-control-xs);
410
+ width: var(--sapphire-semantic-size-height-control-xs);
411
+ border-radius: var(--sapphire-semantic-size-height-control-xs);
412
+ font-size: var(--sapphire-semantic-size-font-control-sm);
649
413
  }