@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.
- package/build/themes/cjs/default-dark.js +1 -1
- package/build/themes/cjs/default.js +2 -1
- package/build/themes/cjs/index.d.ts +2 -1
- package/build/themes/esm/default-dark.js +1 -1
- package/build/themes/esm/default.js +2 -1
- package/build/themes/esm/index.d.ts +2 -1
- package/components/accordion/accordion.module.css +38 -40
- package/components/avatar/avatar.module.css +61 -51
- package/components/avatar/avatar.module.css.d.ts +4 -4
- package/components/backdrop/backdrop.module.css +3 -3
- package/components/badge/badge.module.css +257 -135
- package/components/badge/badge.module.css.d.ts +3 -3
- package/components/button/button.module.css +200 -400
- package/components/button/button.module.css.d.ts +6 -7
- package/components/buttonGroup/buttonGroup.module.css +6 -6
- package/components/buttonGroup/buttonGroup.module.css.d.ts +2 -2
- package/components/calendar/calendar.module.css +90 -86
- package/components/checkbox/checkbox.module.css +59 -51
- package/components/checkbox/checkbox.module.css.d.ts +2 -2
- package/components/contextualHelp/contextualHelp.module.css +13 -10
- package/components/dateField/dateField.module.css +66 -64
- package/components/dateField/dateField.module.css.d.ts +1 -1
- package/components/dialog/dialog.module.css +13 -13
- package/components/dialog/dialog.module.css.d.ts +4 -4
- package/components/dropzone/dropzone.module.css +29 -23
- package/components/feedbackMessage/feedbackMessage.module.css +15 -15
- package/components/field/field.module.css +16 -16
- package/components/field/field.module.css.d.ts +1 -1
- package/components/fieldGroup/fieldGroup.module.css +4 -4
- package/components/fieldGroup/fieldGroup.module.css.d.ts +1 -1
- package/components/heading/heading.module.css +37 -85
- package/components/icon/icon.module.css +12 -12
- package/components/icon/icon.module.css.d.ts +4 -4
- package/components/iconButton/iconButton.module.css +130 -366
- package/components/iconButton/iconButton.module.css.d.ts +7 -8
- package/components/label/label.module.css +11 -11
- package/components/label/label.module.css.d.ts +1 -1
- package/components/labeledValue/labeledValue.module.css +7 -7
- package/components/labeledValue/labeledValue.module.css.d.ts +2 -2
- package/components/link/link.module.css +22 -22
- package/components/link/link.module.css.d.ts +2 -2
- package/components/list/list.module.css +41 -31
- package/components/listbox/listbox.module.css +80 -66
- package/components/listbox/listbox.module.css.d.ts +2 -2
- package/components/modalLayout/modalLayout.module.css +9 -11
- package/components/notificationBadge/notificationBadge.module.css +23 -25
- package/components/notificationBadge/notificationBadge.module.css.d.ts +3 -3
- package/components/pagination/pagination.module.css +16 -16
- package/components/panel/panel.module.css +4 -4
- package/components/panel/panel.module.css.d.ts +1 -1
- package/components/paragraph/paragraph.module.css +8 -8
- package/components/paragraph/paragraph.module.css.d.ts +2 -2
- package/components/popover/popover.module.css +6 -6
- package/components/radio/radio.module.css +32 -32
- package/components/radio/radio.module.css.d.ts +1 -1
- package/components/searchField/searchField.module.css +41 -45
- package/components/searchField/searchField.module.css.d.ts +1 -2
- package/components/segmentedControl/segmentedControl.module.css +33 -35
- package/components/segmentedControl/segmentedControl.module.css.d.ts +2 -2
- package/components/select/select.module.css +32 -32
- package/components/select/select.module.css.d.ts +1 -1
- package/components/skeleton/skeleton.module.css +6 -8
- package/components/spinner/spinner.module.css +22 -22
- package/components/spinner/spinner.module.css.d.ts +4 -4
- package/components/surface/surface.module.css +3 -7
- package/components/surface/surface.module.css.d.ts +0 -1
- package/components/switch/switch.module.css +45 -39
- package/components/switch/switch.module.css.d.ts +1 -1
- package/components/table/table.module.css +66 -54
- package/components/tabs/tabs.module.css +46 -45
- package/components/tabs/tabs.module.css.d.ts +2 -2
- package/components/tag/tag.module.css +32 -24
- package/components/text/text.module.css +48 -96
- package/components/textField/textField.module.css +78 -72
- package/components/textField/textField.module.css.d.ts +1 -1
- package/components/toast/toast.module.css +17 -19
- package/components/tooltip/tooltip.module.css +12 -12
- package/package.json +3 -3
- package/themes/default-dark.js +1 -1
- package/themes/default.js +2 -1
- package/themes/index.d.ts +2 -1
- package/build/themes/cjs/june-dark.d.ts +0 -5
- package/build/themes/cjs/june-dark.js +0 -13
- package/build/themes/cjs/june.d.ts +0 -5
- package/build/themes/cjs/june.js +0 -13
- package/build/themes/esm/june-dark.d.ts +0 -5
- package/build/themes/esm/june-dark.js +0 -8
- package/build/themes/esm/june.d.ts +0 -5
- package/build/themes/esm/june.js +0 -8
- package/themes/default-dark.css +0 -2
- package/themes/june-dark.css +0 -3
- package/themes/june-dark.d.ts +0 -5
- package/themes/june-dark.js +0 -13
- package/themes/june-dark.scss +0 -3
- package/themes/june.css +0 -3
- package/themes/june.d.ts +0 -5
- package/themes/june.js +0 -13
- 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-
|
|
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-
|
|
27
|
-
var(--sapphire-
|
|
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-
|
|
53
|
-
var(--sapphire-
|
|
54
|
-
color: var(--sapphire-
|
|
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-
|
|
69
|
+
color: var(--sapphire-semantic-color-content-action-danger-default);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
.sapphire-listbox__item--selected {
|
|
73
|
-
color: var(--sapphire-
|
|
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(
|
|
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-
|
|
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-
|
|
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-
|
|
101
|
+
grid-template-columns: auto 1fr var(--sapphire-semantic-size-icon-lg);
|
|
100
102
|
padding: calc(
|
|
101
|
-
var(--sapphire-
|
|
102
|
-
var(--sapphire-
|
|
103
|
+
var(--sapphire-semantic-size-spacing-30) -
|
|
104
|
+
var(--sapphire-semantic-size-spacing-5)
|
|
103
105
|
)
|
|
104
|
-
var(--sapphire-
|
|
105
|
-
border-radius: var(--sapphire-
|
|
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-
|
|
109
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
108
110
|
transition-timing-function: ease-in-out;
|
|
109
111
|
|
|
110
|
-
min-height: var(--sapphire-
|
|
112
|
+
min-height: var(--sapphire-semantic-size-height-control-xs);
|
|
111
113
|
}
|
|
112
114
|
|
|
113
|
-
.sapphire-listbox--
|
|
114
|
-
gap: var(--sapphire-
|
|
115
|
-
grid-template-columns: auto 1fr var(--sapphire-
|
|
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-
|
|
118
|
-
var(--sapphire-
|
|
119
|
+
var(--sapphire-semantic-size-spacing-20) -
|
|
120
|
+
var(--sapphire-semantic-size-spacing-5)
|
|
119
121
|
)
|
|
120
|
-
var(--sapphire-
|
|
122
|
+
var(--sapphire-semantic-size-spacing-25);
|
|
121
123
|
}
|
|
122
124
|
|
|
123
|
-
.sapphire-listbox--
|
|
124
|
-
gap: var(--sapphire-
|
|
125
|
-
grid-template-columns: auto 1fr var(--sapphire-
|
|
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-
|
|
128
|
-
var(--sapphire-
|
|
129
|
+
var(--sapphire-semantic-size-spacing-10) -
|
|
130
|
+
var(--sapphire-semantic-size-spacing-5)
|
|
129
131
|
)
|
|
130
|
-
var(--sapphire-
|
|
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-
|
|
141
|
-
line-height: var(--sapphire-
|
|
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-
|
|
154
|
-
font-size: var(--sapphire-
|
|
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-
|
|
159
|
-
font-size: var(--sapphire-
|
|
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--
|
|
163
|
-
font-size: var(--sapphire-
|
|
164
|
+
.sapphire-listbox--md .sapphire-listbox__primary-text {
|
|
165
|
+
font-size: var(--sapphire-semantic-size-font-text-md);
|
|
164
166
|
}
|
|
165
|
-
.sapphire-listbox--
|
|
166
|
-
font-size: var(--sapphire-
|
|
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--
|
|
170
|
-
font-size: var(--sapphire-
|
|
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--
|
|
174
|
-
font-size: var(--sapphire-
|
|
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-
|
|
183
|
+
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
182
184
|
}
|
|
183
185
|
|
|
184
186
|
.sapphire-listbox__item.is-disabled {
|
|
185
|
-
opacity: var(--sapphire-
|
|
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-
|
|
197
|
+
height: var(--sapphire-semantic-size-border-sm);
|
|
196
198
|
width: 100%;
|
|
197
|
-
background: var(--sapphire-
|
|
199
|
+
background: var(--sapphire-semantic-color-border-separator-default);
|
|
198
200
|
margin-top: calc(
|
|
199
|
-
var(--sapphire-
|
|
200
|
-
var(--sapphire-
|
|
201
|
+
var(--sapphire-semantic-size-spacing-10) -
|
|
202
|
+
var(--sapphire-semantic-size-spacing-5)
|
|
201
203
|
);
|
|
202
204
|
margin-bottom: calc(
|
|
203
|
-
var(--sapphire-
|
|
204
|
-
var(--sapphire-
|
|
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-
|
|
214
|
-
var(--sapphire-
|
|
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-
|
|
224
|
-
background-color: var(
|
|
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-
|
|
234
|
-
background-color: var(
|
|
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-
|
|
244
|
-
background-color: var(
|
|
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-
|
|
251
|
-
background-color: var(
|
|
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-
|
|
257
|
-
background-color: var(
|
|
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-
|
|
263
|
-
background-color: var(
|
|
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--
|
|
8
|
-
readonly "sapphire-listbox--
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
38
|
-
font-family: var(--sapphire-
|
|
39
|
-
font-weight: var(--sapphire-
|
|
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-
|
|
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-
|
|
63
|
+
animation: pop-out var(--sapphire-semantic-time-fade-default) forwards;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/* Sizes */
|
|
67
|
-
.sapphire-notification-badge--
|
|
68
|
-
height: var(--sapphire-
|
|
69
|
-
border-radius: var(--sapphire-
|
|
70
|
-
padding: var(--sapphire-
|
|
71
|
-
var(--sapphire-
|
|
72
|
-
font-size: var(--sapphire-
|
|
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--
|
|
76
|
-
height: var(--sapphire-
|
|
77
|
-
border-radius: var(--sapphire-
|
|
78
|
-
padding: 0 var(--sapphire-
|
|
79
|
-
font-size: var(--sapphire-
|
|
80
|
-
min-width: var(--sapphire-
|
|
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--
|
|
85
|
-
min-width: var(--sapphire-
|
|
86
|
-
height: var(--sapphire-
|
|
87
|
-
border-radius: var(--sapphire-
|
|
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-
|
|
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--
|
|
8
|
-
readonly "sapphire-notification-badge--
|
|
9
|
-
readonly "sapphire-notification-badge--
|
|
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-
|
|
6
|
-
var(--sapphire-
|
|
7
|
-
background-color: var(--sapphire-
|
|
8
|
-
font-family: var(--sapphire-
|
|
9
|
-
font-size: var(--sapphire-
|
|
10
|
-
height: var(--sapphire-
|
|
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-
|
|
33
|
-
gap: var(--sapphire-
|
|
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-
|
|
38
|
-
padding-left: var(--sapphire-
|
|
39
|
-
padding-right: var(--sapphire-
|
|
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-
|
|
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-
|
|
51
|
-
width: var(--sapphire-
|
|
52
|
-
font-size: var(--sapphire-
|
|
53
|
-
font-weight: var(--sapphire-
|
|
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-
|
|
8
|
+
transition: transform var(--sapphire-semantic-time-motion-default) ease-in-out;
|
|
9
9
|
transform: translateX(100%);
|
|
10
|
-
width: var(--sapphire-
|
|
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--
|
|
18
|
-
width: var(--sapphire-
|
|
17
|
+
.sapphire-panel--sm {
|
|
18
|
+
width: var(--sapphire-semantic-size-width-panel-sm);
|
|
19
19
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.sapphire-paragraph {
|
|
2
|
-
font-family: var(--sapphire-
|
|
3
|
-
color: var(--sapphire-
|
|
4
|
-
font-size: var(--sapphire-
|
|
5
|
-
line-height: var(--sapphire-
|
|
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--
|
|
27
|
-
font-size: var(--sapphire-
|
|
26
|
+
.sapphire-paragraph--sm {
|
|
27
|
+
font-size: var(--sapphire-semantic-size-font-text-md);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
.sapphire-paragraph--
|
|
31
|
-
font-size: var(--sapphire-
|
|
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--
|
|
4
|
-
readonly "sapphire-paragraph--
|
|
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-
|
|
13
|
-
box-shadow: var(--sapphire-
|
|
14
|
-
animation: fade-in var(--sapphire-
|
|
15
|
-
border-radius: var(--sapphire-
|
|
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-
|
|
34
|
+
padding: var(--sapphire-semantic-size-spacing-30);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.sapphire-popover--max-width {
|
|
38
|
-
max-width: var(--sapphire-
|
|
38
|
+
max-width: var(--sapphire-global-size-generic-1120);
|
|
39
39
|
}
|