@danske/sapphire-css 32.2.0 → 33.0.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 (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 +45 -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
@@ -1,6 +1,6 @@
1
1
  .sapphire-listbox {
2
2
  box-sizing: border-box;
3
- min-width: var(--sapphire-listbox-size-width-min);
3
+ min-width: var(--sapphire-global-size-generic-320);
4
4
  margin: 0;
5
5
  position: relative;
6
6
  list-style: none;
@@ -23,8 +23,8 @@
23
23
  */
24
24
 
25
25
  padding: calc(
26
- var(--sapphire-listbox-size-spacing-outer-horizontal) -
27
- var(--sapphire-listbox-size-spacing-outer-vertical)
26
+ var(--sapphire-semantic-size-spacing-10) -
27
+ var(--sapphire-semantic-size-spacing-5)
28
28
  )
29
29
  0;
30
30
 
@@ -49,9 +49,9 @@
49
49
  display: flex;
50
50
  justify-content: space-between;
51
51
  align-items: center;
52
- padding: var(--sapphire-listbox-size-spacing-outer-vertical)
53
- var(--sapphire-listbox-size-spacing-outer-horizontal);
54
- color: var(--sapphire-listbox-color-content-normal-primary-default);
52
+ padding: var(--sapphire-semantic-size-spacing-5)
53
+ var(--sapphire-semantic-size-spacing-10);
54
+ color: var(--sapphire-semantic-color-content-selection-unselected-default);
55
55
  outline: none;
56
56
  cursor: pointer;
57
57
  text-decoration: none;
@@ -66,15 +66,17 @@
66
66
  }
67
67
 
68
68
  .sapphire-listbox__item--danger {
69
- color: var(--sapphire-listbox-color-content-danger-default);
69
+ color: var(--sapphire-semantic-color-content-action-danger-default);
70
70
  }
71
71
 
72
72
  .sapphire-listbox__item--selected {
73
- color: var(--sapphire-listbox-color-content-selected-default);
73
+ color: var(--sapphire-semantic-color-content-selection-selected-default);
74
74
  }
75
75
 
76
76
  .sapphire-listbox__item--selected .sapphire-listbox__content {
77
- background-color: var(--sapphire-listbox-color-background-selected-default);
77
+ background-color: var(
78
+ --sapphire-semantic-color-background-selection-selected-default
79
+ );
78
80
  }
79
81
 
80
82
  /* Content inside the item */
@@ -85,49 +87,49 @@
85
87
  * max-width set to mitigate the issue of not being able to set a max-width on the popover the
86
88
  * listbox is rendered in, in use cases like Select.
87
89
  */
88
- max-width: calc(100vw - 2 * var(--sapphire-listbox-size-width-icon-l));
90
+ max-width: calc(100vw - 2 * var(--sapphire-semantic-size-icon-lg));
89
91
  display: grid;
90
92
  grid-auto-flow: column;
91
93
  align-items: center;
92
- gap: var(--sapphire-listbox-size-spacing-inner-horizontal-l);
94
+ gap: var(--sapphire-semantic-size-spacing-30);
93
95
  /*
94
96
  * We want the left-side icon column to not take space if it's empty. The
95
97
  * right-side "checkmark" icon column should always take space even if the
96
98
  * checkmark isn't there. This is to make sure the listbox doesn't jump when
97
99
  * selecting items that add the checkmark in the last column.
98
100
  */
99
- grid-template-columns: auto 1fr var(--sapphire-listbox-size-width-icon-l);
101
+ grid-template-columns: auto 1fr var(--sapphire-semantic-size-icon-lg);
100
102
  padding: calc(
101
- var(--sapphire-listbox-size-spacing-inner-vertical-l) -
102
- var(--sapphire-listbox-size-spacing-outer-vertical)
103
+ var(--sapphire-semantic-size-spacing-30) -
104
+ var(--sapphire-semantic-size-spacing-5)
103
105
  )
104
- var(--sapphire-listbox-size-spacing-inner-horizontal-l);
105
- border-radius: var(--sapphire-listbox-size-radius-item);
106
+ var(--sapphire-semantic-size-spacing-30);
107
+ border-radius: var(--sapphire-semantic-size-radius-sm);
106
108
  transition-property: opacity, background-color, color;
107
- transition-duration: var(--sapphire-listbox-time-transition);
109
+ transition-duration: var(--sapphire-semantic-time-fade-quick);
108
110
  transition-timing-function: ease-in-out;
109
111
 
110
- min-height: var(--sapphire-listbox-size-height-min-height);
112
+ min-height: var(--sapphire-semantic-size-height-control-xs);
111
113
  }
112
114
 
113
- .sapphire-listbox--medium .sapphire-listbox__content {
114
- gap: var(--sapphire-listbox-size-spacing-inner-horizontal-m);
115
- grid-template-columns: auto 1fr var(--sapphire-listbox-size-width-icon-m);
115
+ .sapphire-listbox--md .sapphire-listbox__content {
116
+ gap: var(--sapphire-semantic-size-spacing-25);
117
+ grid-template-columns: auto 1fr var(--sapphire-semantic-size-icon-md);
116
118
  padding: calc(
117
- var(--sapphire-listbox-size-spacing-inner-vertical-m) -
118
- var(--sapphire-listbox-size-spacing-outer-vertical)
119
+ var(--sapphire-semantic-size-spacing-20) -
120
+ var(--sapphire-semantic-size-spacing-5)
119
121
  )
120
- var(--sapphire-listbox-size-spacing-inner-horizontal-m);
122
+ var(--sapphire-semantic-size-spacing-25);
121
123
  }
122
124
 
123
- .sapphire-listbox--small .sapphire-listbox__content {
124
- gap: var(--sapphire-listbox-size-spacing-inner-horizontal-s);
125
- grid-template-columns: auto 1fr var(--sapphire-listbox-size-width-icon-s);
125
+ .sapphire-listbox--sm .sapphire-listbox__content {
126
+ gap: var(--sapphire-semantic-size-spacing-20);
127
+ grid-template-columns: auto 1fr var(--sapphire-semantic-size-icon-sm);
126
128
  padding: calc(
127
- var(--sapphire-listbox-size-spacing-inner-vertical-s) -
128
- var(--sapphire-listbox-size-spacing-outer-vertical)
129
+ var(--sapphire-semantic-size-spacing-10) -
130
+ var(--sapphire-semantic-size-spacing-5)
129
131
  )
130
- var(--sapphire-listbox-size-spacing-inner-horizontal-s);
132
+ var(--sapphire-semantic-size-spacing-20);
131
133
  }
132
134
 
133
135
  /* Icon content */
@@ -137,8 +139,8 @@
137
139
 
138
140
  /* Text content */
139
141
  .sapphire-listbox__text-container {
140
- font-family: var(--sapphire-listbox-font-name);
141
- line-height: var(--sapphire-listbox-size-line-height);
142
+ font-family: var(--sapphire-semantic-font-name-default);
143
+ line-height: var(--sapphire-semantic-size-line-height-md);
142
144
  }
143
145
 
144
146
  /*
@@ -150,39 +152,39 @@
150
152
  }
151
153
 
152
154
  .sapphire-listbox__primary-text {
153
- font-weight: var(--sapphire-listbox-font-weight-primary);
154
- font-size: var(--sapphire-listbox-size-font-primary-l);
155
+ font-weight: var(--sapphire-semantic-font-weight-default-semibold);
156
+ font-size: var(--sapphire-semantic-size-font-text-lg);
155
157
  }
156
158
 
157
159
  .sapphire-listbox__secondary-text {
158
- font-weight: var(--sapphire-listbox-font-weight-secondary);
159
- font-size: var(--sapphire-listbox-size-font-secondary-l);
160
+ font-weight: var(--sapphire-semantic-font-weight-default-regular);
161
+ font-size: var(--sapphire-semantic-size-font-text-md);
160
162
  }
161
163
 
162
- .sapphire-listbox--medium .sapphire-listbox__primary-text {
163
- font-size: var(--sapphire-listbox-size-font-primary-m);
164
+ .sapphire-listbox--md .sapphire-listbox__primary-text {
165
+ font-size: var(--sapphire-semantic-size-font-text-md);
164
166
  }
165
- .sapphire-listbox--small .sapphire-listbox__primary-text {
166
- font-size: var(--sapphire-listbox-size-font-primary-s);
167
+ .sapphire-listbox--sm .sapphire-listbox__primary-text {
168
+ font-size: var(--sapphire-semantic-size-font-text-sm);
167
169
  }
168
170
 
169
- .sapphire-listbox--medium .sapphire-listbox__secondary-text {
170
- font-size: var(--sapphire-listbox-size-font-secondary-m);
171
+ .sapphire-listbox--md .sapphire-listbox__secondary-text {
172
+ font-size: var(--sapphire-semantic-size-font-text-sm);
171
173
  }
172
174
 
173
- .sapphire-listbox--small .sapphire-listbox__secondary-text {
174
- font-size: var(--sapphire-listbox-size-font-secondary-s);
175
+ .sapphire-listbox--sm .sapphire-listbox__secondary-text {
176
+ font-size: var(--sapphire-semantic-size-font-text-sm);
175
177
  }
176
178
 
177
179
  .sapphire-listbox__item:not(.sapphire-listbox__item--danger):not(
178
180
  .sapphire-listbox__item--selected
179
181
  )
180
182
  .sapphire-listbox__secondary-text {
181
- color: var(--sapphire-listbox-color-content-normal-secondary-default);
183
+ color: var(--sapphire-semantic-color-content-default-secondary);
182
184
  }
183
185
 
184
186
  .sapphire-listbox__item.is-disabled {
185
- opacity: var(--sapphire-listbox-opacity-disabled);
187
+ opacity: var(--sapphire-semantic-opacity-disabled);
186
188
  cursor: not-allowed;
187
189
  }
188
190
 
@@ -192,16 +194,16 @@
192
194
  }
193
195
 
194
196
  .sapphire-listbox__separator {
195
- height: var(--sapphire-listbox-size-height-separator);
197
+ height: var(--sapphire-semantic-size-border-sm);
196
198
  width: 100%;
197
- background: var(--sapphire-listbox-color-separator);
199
+ background: var(--sapphire-semantic-color-border-separator-default);
198
200
  margin-top: calc(
199
- var(--sapphire-listbox-size-spacing-outer-horizontal) -
200
- var(--sapphire-listbox-size-spacing-outer-vertical)
201
+ var(--sapphire-semantic-size-spacing-10) -
202
+ var(--sapphire-semantic-size-spacing-5)
201
203
  );
202
204
  margin-bottom: calc(
203
- var(--sapphire-listbox-size-spacing-outer-horizontal) -
204
- var(--sapphire-listbox-size-spacing-outer-vertical)
205
+ var(--sapphire-semantic-size-spacing-10) -
206
+ var(--sapphire-semantic-size-spacing-5)
205
207
  );
206
208
  }
207
209
 
@@ -210,8 +212,8 @@
210
212
  .sapphire-listbox__item:not(.is-disabled).is-focus .sapphire-listbox__content,
211
213
  .sapphire-listbox__item:not(.is-disabled):not(.js-focus):focus-visible
212
214
  .sapphire-listbox__content {
213
- box-shadow: 0px 0px 0px var(--sapphire-listbox-size-focus-ring)
214
- var(--sapphire-listbox-color-focus-ring);
215
+ box-shadow: 0px 0px 0px var(--sapphire-semantic-size-focus-ring)
216
+ var(--sapphire-semantic-color-focus-ring);
215
217
  }
216
218
 
217
219
  /* Hover */
@@ -220,8 +222,10 @@
220
222
  .sapphire-listbox__content,
221
223
  .sapphire-listbox__item:not(.is-disabled):not(.js-hover):not(.is-active):hover
222
224
  .sapphire-listbox__content {
223
- color: var(--sapphire-listbox-color-content-normal-primary-hover);
224
- background-color: var(--sapphire-listbox-color-background-normal-hover);
225
+ color: var(--sapphire-semantic-color-content-selection-unselected-hover);
226
+ background-color: var(
227
+ --sapphire-semantic-color-background-selection-unselected-hover
228
+ );
225
229
  }
226
230
 
227
231
  .sapphire-listbox__item--danger:not(.is-disabled):not(.is-active).is-hover
@@ -230,8 +234,10 @@
230
234
  .is-active
231
235
  ):hover
232
236
  .sapphire-listbox__content {
233
- color: var(--sapphire-listbox-color-content-danger-hover);
234
- background-color: var(--sapphire-listbox-color-background-danger-hover);
237
+ color: var(--sapphire-semantic-color-content-action-danger-default);
238
+ background-color: var(
239
+ --sapphire-semantic-color-background-action-danger-default
240
+ );
235
241
  }
236
242
 
237
243
  .sapphire-listbox__item--selected:not(.is-disabled):not(.is-active).is-hover
@@ -240,25 +246,33 @@
240
246
  .js-hover
241
247
  ):hover
242
248
  .sapphire-listbox__content {
243
- color: var(--sapphire-listbox-color-content-selected-hover);
244
- background-color: var(--sapphire-listbox-color-background-selected-hover);
249
+ color: var(--sapphire-semantic-color-content-selection-selected-hover);
250
+ background-color: var(
251
+ --sapphire-semantic-color-background-selection-selected-hover
252
+ );
245
253
  }
246
254
 
247
255
  /* Active */
248
256
 
249
257
  .sapphire-listbox__item:not(.is-disabled).is-active .sapphire-listbox__content {
250
- color: var(--sapphire-listbox-color-content-normal-primary-active);
251
- background-color: var(--sapphire-listbox-color-background-normal-active);
258
+ color: var(--sapphire-semantic-color-content-selection-unselected-active);
259
+ background-color: var(
260
+ --sapphire-semantic-color-background-selection-unselected-active
261
+ );
252
262
  }
253
263
 
254
264
  .sapphire-listbox__item--danger:not(.is-disabled).is-active
255
265
  .sapphire-listbox__content {
256
- color: var(--sapphire-listbox-color-content-danger-active);
257
- background-color: var(--sapphire-listbox-color-background-danger-active);
266
+ color: var(--sapphire-semantic-color-content-action-danger-active);
267
+ background-color: var(
268
+ --sapphire-semantic-color-background-action-danger-hover
269
+ );
258
270
  }
259
271
 
260
272
  .sapphire-listbox__item--selected:not(.is-disabled).is-active
261
273
  .sapphire-listbox__content {
262
- color: var(--sapphire-listbox-color-content-selected-active);
263
- background-color: var(--sapphire-listbox-color-background-selected-active);
274
+ color: var(--sapphire-semantic-color-content-selection-selected-active);
275
+ background-color: var(
276
+ --sapphire-semantic-color-background-selection-selected-active
277
+ );
264
278
  }
@@ -4,8 +4,8 @@ declare const styles: {
4
4
  readonly "sapphire-listbox__item--danger": string;
5
5
  readonly "sapphire-listbox__item--selected": string;
6
6
  readonly "sapphire-listbox__content": string;
7
- readonly "sapphire-listbox--medium": string;
8
- readonly "sapphire-listbox--small": string;
7
+ readonly "sapphire-listbox--md": string;
8
+ readonly "sapphire-listbox--sm": string;
9
9
  readonly "sapphire-listbox__icon": string;
10
10
  readonly "sapphire-listbox__text-container": string;
11
11
  readonly "sapphire-listbox__primary-text": string;
@@ -3,9 +3,7 @@
3
3
  flex-direction: column;
4
4
  height: 100%;
5
5
  min-height: 0;
6
- background-color: var(
7
- --sapphire-semantic-color-background-surface-primary-default
8
- );
6
+ background-color: var(--sapphire-semantic-color-background-surface);
9
7
  font-family: var(--sapphire-semantic-font-name-default);
10
8
  color: var(--sapphire-semantic-color-content-default-primary);
11
9
  }
@@ -18,7 +16,7 @@
18
16
  display: flex;
19
17
  justify-content: space-between;
20
18
  padding: var(--sapphire-semantic-size-spacing-50)
21
- var(--sapphire-semantic-size-spacing-container-horizontal-m);
19
+ var(--sapphire-semantic-size-spacing-container-horizontal-md);
22
20
  gap: var(--sapphire-semantic-size-spacing-40);
23
21
  }
24
22
 
@@ -26,7 +24,7 @@
26
24
  overflow-y: auto;
27
25
  overflow-x: hidden;
28
26
  flex-grow: 1;
29
- padding: 0 var(--sapphire-semantic-size-spacing-container-horizontal-m);
27
+ padding: 0 var(--sapphire-semantic-size-spacing-container-horizontal-md);
30
28
  }
31
29
 
32
30
  .sapphire-modal-layout__body.sapphire-modal-layout__body--no-padding {
@@ -39,9 +37,9 @@
39
37
 
40
38
  .sapphire-modal-layout__footer {
41
39
  padding: var(--sapphire-semantic-size-spacing-70)
42
- var(--sapphire-semantic-size-spacing-container-horizontal-m)
40
+ var(--sapphire-semantic-size-spacing-container-horizontal-md)
43
41
  var(--sapphire-semantic-size-spacing-70)
44
- var(--sapphire-semantic-size-spacing-container-horizontal-m);
42
+ var(--sapphire-semantic-size-spacing-container-horizontal-md);
45
43
  }
46
44
 
47
45
  /** Container for heading and subheading **/
@@ -64,12 +62,12 @@
64
62
 
65
63
  .sapphire-modal-layout__header-container + .sapphire-modal-layout__body {
66
64
  /** invisible line wrap attached only for visual consistency, once we get attached border-bottom with scrolled content **/
67
- border-top: var(--sapphire-semantic-size-border-s) solid transparent;
65
+ border-top: var(--sapphire-semantic-size-border-sm) solid transparent;
68
66
  }
69
67
 
70
68
  .sapphire-modal-layout__header-container
71
69
  + .sapphire-modal-layout__body.sapphire-modal-layout__body--scrolled {
72
- border-top: var(--sapphire-semantic-size-border-s) solid
70
+ border-top: var(--sapphire-semantic-size-border-sm) solid
73
71
  var(--sapphire-semantic-color-border-separator-default);
74
72
  }
75
73
 
@@ -80,11 +78,11 @@
80
78
 
81
79
  .sapphire-modal-layout__body + .sapphire-modal-layout__footer-container {
82
80
  /** invisible line wrap attached only for visual consistency, once we get attached border-bottom with scrolled content **/
83
- border-top: var(--sapphire-semantic-size-border-s) solid transparent;
81
+ border-top: var(--sapphire-semantic-size-border-sm) solid transparent;
84
82
  }
85
83
 
86
84
  .sapphire-modal-layout__body.sapphire-modal-layout__body--scrollable
87
85
  + .sapphire-modal-layout__footer-container {
88
- border-top: var(--sapphire-semantic-size-border-s) solid
86
+ border-top: var(--sapphire-semantic-size-border-sm) solid
89
87
  var(--sapphire-semantic-color-border-separator-default);
90
88
  }
@@ -34,9 +34,9 @@
34
34
  flex-direction: column;
35
35
  justify-content: center;
36
36
  align-items: center;
37
- color: var(--sapphire-notification-badge-color-content-default);
38
- font-family: var(--sapphire-notification-badge-font-name);
39
- font-weight: var(--sapphire-notification-badge-font-weight);
37
+ color: var(--sapphire-semantic-color-content-action-primary-default);
38
+ font-family: var(--sapphire-semantic-font-name-default);
39
+ font-weight: var(--sapphire-semantic-font-weight-default-semibold);
40
40
  box-sizing: border-box;
41
41
  font-style: normal;
42
42
  /* The below is meant to address a font rendering quirk in OSX where the text
@@ -55,47 +55,45 @@
55
55
  }
56
56
 
57
57
  .sapphire-notification-badge--pop-in {
58
- animation: pop-in var(--sapphire-notification-badge-time-transition)
58
+ animation: pop-in var(--sapphire-semantic-time-fade-default)
59
59
  cubic-bezier(0.55, -0.49, 0.39, 1.49);
60
60
  }
61
61
 
62
62
  .sapphire-notification-badge--pop-out {
63
- animation: pop-out var(--sapphire-notification-badge-time-transition) forwards;
63
+ animation: pop-out var(--sapphire-semantic-time-fade-default) forwards;
64
64
  }
65
65
 
66
66
  /* Sizes */
67
- .sapphire-notification-badge--large {
68
- height: var(--sapphire-notification-badge-size-height-l);
69
- border-radius: var(--sapphire-notification-badge-size-radius-l);
70
- padding: var(--sapphire-notification-badge-size-spacing-l-vertical)
71
- var(--sapphire-notification-badge-size-spacing-l-horizontal);
72
- font-size: var(--sapphire-notification-badge-size-font-primary);
67
+ .sapphire-notification-badge--lg {
68
+ height: var(--sapphire-global-size-generic-60);
69
+ border-radius: var(--sapphire-global-size-generic-60);
70
+ padding: var(--sapphire-semantic-size-spacing-10)
71
+ var(--sapphire-semantic-size-spacing-20);
72
+ font-size: var(--sapphire-semantic-size-font-control-sm);
73
73
  }
74
74
 
75
- .sapphire-notification-badge--medium {
76
- height: var(--sapphire-notification-badge-size-height-m);
77
- border-radius: var(--sapphire-notification-badge-size-radius-m);
78
- padding: 0 var(--sapphire-notification-badge-size-spacing-m-horizontal);
79
- font-size: var(--sapphire-notification-badge-size-font-secondary);
80
- min-width: var(--sapphire-notification-badge-size-width-m);
75
+ .sapphire-notification-badge--md {
76
+ height: var(--sapphire-global-size-generic-40);
77
+ border-radius: var(--sapphire-global-size-generic-40);
78
+ padding: 0 var(--sapphire-semantic-size-spacing-10);
79
+ font-size: var(--sapphire-global-size-font-60);
80
+ min-width: var(--sapphire-global-size-generic-40);
81
81
  box-sizing: border-box;
82
82
  }
83
83
 
84
- .sapphire-notification-badge--small {
85
- min-width: var(--sapphire-notification-badge-size-width-s);
86
- height: var(--sapphire-notification-badge-size-height-s);
87
- border-radius: var(--sapphire-notification-badge-size-radius-s);
84
+ .sapphire-notification-badge--sm {
85
+ min-width: var(--sapphire-global-size-generic-20);
86
+ height: var(--sapphire-global-size-generic-20);
87
+ border-radius: var(--sapphire-global-size-generic-20);
88
88
  }
89
89
 
90
90
  /* Variants */
91
91
  .sapphire-notification-badge--primary {
92
- background-color: var(--sapphire-notification-badge-color-background-primary);
92
+ background-color: var(--sapphire-global-color-red-500);
93
93
  }
94
94
 
95
95
  .sapphire-notification-badge--secondary {
96
- background-color: var(
97
- --sapphire-notification-badge-color-background-secondary
98
- );
96
+ background-color: var(--sapphire-global-color-blue-500);
99
97
  }
100
98
 
101
99
  /* Positioned */
@@ -4,9 +4,9 @@ declare const styles: {
4
4
  readonly "pop-in": string;
5
5
  readonly "sapphire-notification-badge--pop-out": string;
6
6
  readonly "pop-out": string;
7
- readonly "sapphire-notification-badge--large": string;
8
- readonly "sapphire-notification-badge--medium": string;
9
- readonly "sapphire-notification-badge--small": string;
7
+ readonly "sapphire-notification-badge--lg": string;
8
+ readonly "sapphire-notification-badge--md": string;
9
+ readonly "sapphire-notification-badge--sm": string;
10
10
  readonly "sapphire-notification-badge--primary": string;
11
11
  readonly "sapphire-notification-badge--secondary": string;
12
12
  readonly "sapphire-notification-badge-container": string;
@@ -2,12 +2,12 @@
2
2
  display: flex;
3
3
  justify-content: flex-end;
4
4
  align-items: center;
5
- padding: var(--sapphire-pagination-size-spacing-container-vertical)
6
- var(--sapphire-pagination-size-spacing-container-horizontal);
7
- background-color: var(--sapphire-pagination-color-background);
8
- font-family: var(--sapphire-pagination-font-name);
9
- font-size: var(--sapphire-pagination-size-font-page);
10
- height: var(--sapphire-pagination-size-height);
5
+ padding: var(--sapphire-semantic-size-spacing-20)
6
+ var(--sapphire-semantic-size-spacing-50);
7
+ background-color: var(--sapphire-semantic-color-background-surface);
8
+ font-family: var(--sapphire-semantic-font-name-default);
9
+ font-size: var(--sapphire-semantic-size-font-control-sm);
10
+ height: var(--sapphire-semantic-size-height-control-md);
11
11
 
12
12
  /* The below is meant to address a font rendering quirk in OSX where the text
13
13
  * looks bolder than intended due to subpixel rendering. This quirk generally
@@ -29,26 +29,26 @@
29
29
  align-items: center;
30
30
  justify-content: flex-end;
31
31
  flex-grow: 1;
32
- color: var(--sapphire-pagination-color-text);
33
- gap: var(--sapphire-pagination-size-spacing-controls-horizontal);
32
+ color: var(--sapphire-semantic-color-content-default-primary);
33
+ gap: var(--sapphire-semantic-size-spacing-30);
34
34
  }
35
35
 
36
36
  .sapphire-pagination__text {
37
- font-weight: var(--sapphire-pagination-font-weight-alphabetic-text);
38
- padding-left: var(--sapphire-pagination-size-spacing-text-horizontal);
39
- padding-right: var(--sapphire-pagination-size-spacing-text-horizontal);
37
+ font-weight: var(--sapphire-semantic-font-weight-default-regular);
38
+ padding-left: var(--sapphire-semantic-size-spacing-20);
39
+ padding-right: var(--sapphire-semantic-size-spacing-20);
40
40
  }
41
41
 
42
42
  .sapphire-pagination__text--emphasized {
43
- font-weight: var(--sapphire-pagination-font-weight-numeric-text);
43
+ font-weight: var(--sapphire-semantic-font-weight-default-semibold);
44
44
  }
45
45
 
46
46
  .sapphire-pagination__ellipsis {
47
47
  display: flex;
48
48
  justify-content: center;
49
49
  align-items: center;
50
- height: var(--sapphire-pagination-size-ellipsis);
51
- width: var(--sapphire-pagination-size-ellipsis);
52
- font-size: var(--sapphire-pagination-size-font-ellipsis);
53
- font-weight: var(--sapphire-pagination-font-weight-numeric-text);
50
+ height: var(--sapphire-semantic-size-height-control-sm);
51
+ width: var(--sapphire-semantic-size-height-control-sm);
52
+ font-size: var(--sapphire-semantic-size-font-control-sm);
53
+ font-weight: var(--sapphire-semantic-font-weight-default-semibold);
54
54
  }
@@ -5,15 +5,15 @@
5
5
  display: block;
6
6
  height: 100%;
7
7
  outline: 0;
8
- transition: transform var(--sapphire-panel-time-transition) ease-in-out;
8
+ transition: transform var(--sapphire-semantic-time-motion-default) ease-in-out;
9
9
  transform: translateX(100%);
10
- width: var(--sapphire-panel-size-width-l);
10
+ width: var(--sapphire-semantic-size-width-panel-lg);
11
11
  }
12
12
 
13
13
  .sapphire-panel--visible {
14
14
  transform: translateX(0%);
15
15
  }
16
16
 
17
- .sapphire-panel--small {
18
- width: var(--sapphire-panel-size-width-s);
17
+ .sapphire-panel--sm {
18
+ width: var(--sapphire-semantic-size-width-panel-sm);
19
19
  }
@@ -1,7 +1,7 @@
1
1
  declare const styles: {
2
2
  readonly "sapphire-panel": string;
3
3
  readonly "sapphire-panel--visible": string;
4
- readonly "sapphire-panel--small": string;
4
+ readonly "sapphire-panel--sm": string;
5
5
  };
6
6
  export = styles;
7
7
 
@@ -1,8 +1,8 @@
1
1
  .sapphire-paragraph {
2
- font-family: var(--sapphire-paragraph-font-name);
3
- color: var(--sapphire-paragraph-color-text);
4
- font-size: var(--sapphire-paragraph-size-font-default);
5
- line-height: var(--sapphire-paragraph-size-line-height);
2
+ font-family: var(--sapphire-semantic-font-name-default);
3
+ color: var(--sapphire-semantic-color-content-default-primary);
4
+ font-size: var(--sapphire-semantic-size-font-text-lg);
5
+ line-height: var(--sapphire-semantic-size-line-height-md);
6
6
  /* not able to find specification in sketch docs for margin,
7
7
  will update this once specifications are established */
8
8
  margin-top: 0px;
@@ -23,10 +23,10 @@
23
23
  -moz-osx-font-smoothing: grayscale;
24
24
  }
25
25
 
26
- .sapphire-paragraph--small {
27
- font-size: var(--sapphire-paragraph-size-font-s);
26
+ .sapphire-paragraph--sm {
27
+ font-size: var(--sapphire-semantic-size-font-text-md);
28
28
  }
29
29
 
30
- .sapphire-paragraph--extra-small {
31
- font-size: var(--sapphire-paragraph-size-font-xs);
30
+ .sapphire-paragraph--xs {
31
+ font-size: var(--sapphire-semantic-size-font-text-sm);
32
32
  }
@@ -1,7 +1,7 @@
1
1
  declare const styles: {
2
2
  readonly "sapphire-paragraph": string;
3
- readonly "sapphire-paragraph--small": string;
4
- readonly "sapphire-paragraph--extra-small": string;
3
+ readonly "sapphire-paragraph--sm": string;
4
+ readonly "sapphire-paragraph--xs": string;
5
5
  };
6
6
  export = styles;
7
7
 
@@ -9,10 +9,10 @@
9
9
 
10
10
  .sapphire-popover {
11
11
  box-sizing: border-box;
12
- background-color: var(--sapphire-popover-color-background);
13
- box-shadow: var(--sapphire-popover-shadow);
14
- animation: fade-in var(--sapphire-popover-time-transition) ease-in-out;
15
- border-radius: var(--sapphire-popover-size-radius);
12
+ background-color: var(--sapphire-semantic-color-background-popover-default);
13
+ box-shadow: var(--sapphire-semantic-shadow-popover);
14
+ animation: fade-in var(--sapphire-semantic-time-fade-quick) ease-in-out;
15
+ border-radius: var(--sapphire-semantic-size-radius-popover);
16
16
  overflow: auto;
17
17
 
18
18
  /* The below is meant to address a font rendering quirk in OSX where the text
@@ -31,9 +31,9 @@
31
31
  }
32
32
 
33
33
  .sapphire-popover--padded {
34
- padding: var(--sapphire-popover-size-spacing-padded);
34
+ padding: var(--sapphire-semantic-size-spacing-30);
35
35
  }
36
36
 
37
37
  .sapphire-popover--max-width {
38
- max-width: var(--sapphire-popover-size-max-width);
38
+ max-width: var(--sapphire-global-size-generic-1120);
39
39
  }