@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,19 +1,19 @@
|
|
|
1
1
|
.sapphire-text-field {
|
|
2
|
-
width: var(--sapphire-
|
|
3
|
-
outline: solid var(--sapphire-
|
|
4
|
-
var(--sapphire-
|
|
5
|
-
outline-offset: calc(0px - var(--sapphire-
|
|
2
|
+
width: var(--sapphire-semantic-size-width-control-default);
|
|
3
|
+
outline: solid var(--sapphire-semantic-size-border-sm)
|
|
4
|
+
var(--sapphire-semantic-color-border-field-default);
|
|
5
|
+
outline-offset: calc(0px - var(--sapphire-semantic-size-border-sm));
|
|
6
6
|
box-sizing: border-box;
|
|
7
7
|
overflow-x: hidden;
|
|
8
8
|
display: flex;
|
|
9
9
|
align-items: center;
|
|
10
|
-
border-radius: var(--sapphire-
|
|
10
|
+
border-radius: var(--sapphire-semantic-size-radius-sm);
|
|
11
11
|
cursor: text;
|
|
12
|
-
color: var(--sapphire-
|
|
13
|
-
background-color: var(--sapphire-
|
|
14
|
-
height: var(--sapphire-
|
|
15
|
-
font-family: var(--sapphire-
|
|
16
|
-
font-size: var(--sapphire-
|
|
12
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
13
|
+
background-color: var(--sapphire-semantic-color-background-field-default);
|
|
14
|
+
height: var(--sapphire-semantic-size-height-input-lg);
|
|
15
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
16
|
+
font-size: var(--sapphire-semantic-size-font-control-default);
|
|
17
17
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
18
18
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
19
19
|
* occurs for bold fonts on dark backgrounds but depending on the font, it
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
-moz-osx-font-smoothing: grayscale;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
.sapphire-text-field--
|
|
33
|
-
height: var(--sapphire-
|
|
34
|
-
font-size: var(--sapphire-
|
|
32
|
+
.sapphire-text-field--md {
|
|
33
|
+
height: var(--sapphire-semantic-size-height-input-md);
|
|
34
|
+
font-size: var(--sapphire-semantic-size-font-control-md);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.sapphire-text-field__input {
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
width: 100%;
|
|
40
40
|
height: 100%;
|
|
41
41
|
margin: 0;
|
|
42
|
-
padding: 0 var(--sapphire-
|
|
43
|
-
line-height: var(--sapphire-
|
|
42
|
+
padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-lg);
|
|
43
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
44
44
|
|
|
45
45
|
font-family: inherit;
|
|
46
46
|
font-size: inherit;
|
|
47
|
-
font-weight: var(--sapphire-
|
|
47
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
48
48
|
|
|
49
|
-
caret-color: var(--sapphire-
|
|
49
|
+
caret-color: var(--sapphire-semantic-color-background-action-primary-default);
|
|
50
50
|
color: inherit;
|
|
51
51
|
|
|
52
52
|
background-color: transparent;
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
outline: none;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
.sapphire-text-field--
|
|
58
|
-
padding: 0 var(--sapphire-
|
|
57
|
+
.sapphire-text-field--md .sapphire-text-field__input {
|
|
58
|
+
padding: 0 var(--sapphire-semantic-size-spacing-control-horizontal-md);
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -63,10 +63,10 @@
|
|
|
63
63
|
*/
|
|
64
64
|
.sapphire-text-field__input::placeholder {
|
|
65
65
|
opacity: 1; /* some browsers set a lower than 1 opacity */
|
|
66
|
-
color: var(--sapphire-
|
|
66
|
+
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
/**
|
|
69
|
+
/**
|
|
70
70
|
* Input text alignment
|
|
71
71
|
*/
|
|
72
72
|
.sapphire-text-field__input--align-right {
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
* (this supports a prefix/postfix)
|
|
79
79
|
*/
|
|
80
80
|
.sapphire-text-field:not(.sapphire-text-field--multiline) {
|
|
81
|
-
gap: var(--sapphire-
|
|
81
|
+
gap: var(--sapphire-semantic-size-spacing-20);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
/**
|
|
@@ -91,14 +91,14 @@
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
.sapphire-text-field .sapphire-text-field__prefix {
|
|
94
|
-
color: var(--sapphire-
|
|
94
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
95
95
|
flex-shrink: 0;
|
|
96
96
|
z-index: 1;
|
|
97
|
-
margin-left: var(--sapphire-
|
|
97
|
+
margin-left: var(--sapphire-semantic-size-spacing-control-horizontal-lg);
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
.sapphire-text-field--
|
|
101
|
-
margin-left: var(--sapphire-
|
|
100
|
+
.sapphire-text-field--md .sapphire-text-field__prefix {
|
|
101
|
+
margin-left: var(--sapphire-semantic-size-spacing-control-horizontal-md);
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
/**
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
.sapphire-text-field .sapphire-text-field__postfix {
|
|
114
|
-
color: var(--sapphire-
|
|
114
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
115
115
|
flex-shrink: 0;
|
|
116
116
|
z-index: 1;
|
|
117
|
-
margin-right: var(--sapphire-
|
|
117
|
+
margin-right: var(--sapphire-semantic-size-spacing-control-horizontal-lg);
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
.sapphire-text-field--
|
|
121
|
-
margin-right: var(--sapphire-
|
|
120
|
+
.sapphire-text-field--md .sapphire-text-field__postfix {
|
|
121
|
+
margin-right: var(--sapphire-semantic-size-spacing-control-horizontal-md);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
/**
|
|
@@ -127,14 +127,14 @@
|
|
|
127
127
|
|
|
128
128
|
.sapphire-text-field .sapphire-text-field__prefix--icon,
|
|
129
129
|
.sapphire-text-field .sapphire-text-field__postfix--icon {
|
|
130
|
-
width: var(--sapphire-
|
|
131
|
-
height: var(--sapphire-
|
|
130
|
+
width: var(--sapphire-semantic-size-icon-lg);
|
|
131
|
+
height: var(--sapphire-semantic-size-icon-lg);
|
|
132
132
|
}
|
|
133
133
|
|
|
134
|
-
.sapphire-text-field--
|
|
135
|
-
.sapphire-text-field--
|
|
136
|
-
width: var(--sapphire-
|
|
137
|
-
height: var(--sapphire-
|
|
134
|
+
.sapphire-text-field--md .sapphire-text-field__prefix--icon,
|
|
135
|
+
.sapphire-text-field--md .sapphire-text-field__postfix--icon {
|
|
136
|
+
width: var(--sapphire-semantic-size-icon-md);
|
|
137
|
+
height: var(--sapphire-semantic-size-icon-md);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
/**
|
|
@@ -151,20 +151,20 @@
|
|
|
151
151
|
.sapphire-text-field--multiline .sapphire-text-field__input {
|
|
152
152
|
resize: none;
|
|
153
153
|
width: 100%;
|
|
154
|
-
padding: var(--sapphire-
|
|
155
|
-
var(--sapphire-
|
|
154
|
+
padding: var(--sapphire-semantic-size-spacing-control-vertical-lg)
|
|
155
|
+
var(--sapphire-semantic-size-spacing-control-horizontal-lg);
|
|
156
156
|
scroll-padding-bottom: var(
|
|
157
|
-
--sapphire-
|
|
157
|
+
--sapphire-semantic-size-spacing-control-vertical-lg
|
|
158
158
|
);
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
.sapphire-text-field--
|
|
161
|
+
.sapphire-text-field--md
|
|
162
162
|
.sapphire-text-field--multiline
|
|
163
163
|
.sapphire-text-field__input {
|
|
164
|
-
padding: var(--sapphire-
|
|
165
|
-
var(--sapphire-
|
|
164
|
+
padding: var(--sapphire-semantic-size-spacing-control-vertical-md)
|
|
165
|
+
var(--sapphire-semantic-size-spacing-control-horizontal-md);
|
|
166
166
|
scroll-padding-bottom: var(
|
|
167
|
-
--sapphire-
|
|
167
|
+
--sapphire-semantic-size-spacing-control-vertical-md
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -177,18 +177,18 @@
|
|
|
177
177
|
}
|
|
178
178
|
|
|
179
179
|
.sapphire-text-field__counter {
|
|
180
|
-
color: var(--sapphire-
|
|
181
|
-
padding-left: var(--sapphire-
|
|
180
|
+
color: var(--sapphire-semantic-color-content-default-secondary);
|
|
181
|
+
padding-left: var(--sapphire-semantic-size-spacing-20);
|
|
182
182
|
margin-left: auto;
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
.sapphire-text-field__counter--error {
|
|
186
|
-
color: var(--sapphire-
|
|
186
|
+
color: var(--sapphire-semantic-color-content-negative-secondary-default);
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
.sapphire-text-field--error {
|
|
190
|
-
outline: solid var(--sapphire-
|
|
191
|
-
var(--sapphire-
|
|
190
|
+
outline: solid var(--sapphire-semantic-size-border-sm)
|
|
191
|
+
var(--sapphire-semantic-color-border-field-error);
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/**
|
|
@@ -196,39 +196,39 @@
|
|
|
196
196
|
*/
|
|
197
197
|
.sapphire-text-field.is-focus,
|
|
198
198
|
.sapphire-text-field:focus-within {
|
|
199
|
-
outline: solid var(--sapphire-
|
|
200
|
-
var(--sapphire-
|
|
201
|
-
outline-offset: calc(0px - var(--sapphire-
|
|
199
|
+
outline: solid var(--sapphire-semantic-size-focus-ring)
|
|
200
|
+
var(--sapphire-semantic-color-focus-ring);
|
|
201
|
+
outline-offset: calc(0px - var(--sapphire-semantic-size-focus-ring));
|
|
202
202
|
}
|
|
203
203
|
|
|
204
204
|
.sapphire-text-field.is-focus .sapphire-text-field__input:autofill,
|
|
205
205
|
.sapphire-text-field:focus-within .sapphire-text-field__input:autofill {
|
|
206
|
-
/*
|
|
206
|
+
/*
|
|
207
207
|
* https://developer.mozilla.org/en-US/docs/Web/CSS/:autofill
|
|
208
|
-
* Overriding background-color property of auto filled input is not possible,
|
|
208
|
+
* Overriding background-color property of auto filled input is not possible,
|
|
209
209
|
* so box-shadow is used here to achieve the same look.
|
|
210
|
-
* Fixes the state when the field is focused and the user is hovering
|
|
210
|
+
* Fixes the state when the field is focused and the user is hovering
|
|
211
211
|
* or focusing on the list of browser autofilling suggestions.
|
|
212
212
|
*/
|
|
213
|
-
box-shadow: 0 0 0 var(--sapphire-
|
|
214
|
-
var(--sapphire-
|
|
213
|
+
box-shadow: 0 0 0 var(--sapphire-semantic-size-height-input-lg) inset
|
|
214
|
+
var(--sapphire-semantic-color-background-surface) !important;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
/**
|
|
218
218
|
* Stepper
|
|
219
|
-
*
|
|
219
|
+
*
|
|
220
220
|
* This is used in some numeric inputs
|
|
221
221
|
*/
|
|
222
222
|
.sapphire-text-field__stepper {
|
|
223
223
|
display: flex;
|
|
224
224
|
flex-direction: column;
|
|
225
225
|
justify-items: stretch;
|
|
226
|
-
padding: var(--sapphire-
|
|
226
|
+
padding: var(--sapphire-semantic-size-spacing-5)
|
|
227
227
|
calc(
|
|
228
|
-
var(--sapphire-
|
|
229
|
-
var(--sapphire-
|
|
228
|
+
var(--sapphire-semantic-size-spacing-5) +
|
|
229
|
+
var(--sapphire-semantic-size-border-sm)
|
|
230
230
|
);
|
|
231
|
-
gap: var(--sapphire-
|
|
231
|
+
gap: var(--sapphire-semantic-size-spacing-5);
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
.sapphire-text-field:has(.sapphire-text-field__stepper)
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
display: flex;
|
|
241
241
|
align-items: center;
|
|
242
242
|
justify-content: center;
|
|
243
|
-
width: var(--sapphire-
|
|
243
|
+
width: var(--sapphire-semantic-size-icon-md);
|
|
244
244
|
|
|
245
245
|
/* In Safari buttons get a 2px border
|
|
246
246
|
* https://github.com/necolas/normalize.css/blob/master/normalize.css#L160-L169
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
|
|
254
254
|
/* shape */
|
|
255
255
|
border-radius: var(
|
|
256
|
-
--sapphire-
|
|
256
|
+
--sapphire-semantic-size-radius-sm
|
|
257
257
|
); /* same as the control */
|
|
258
258
|
border-style: solid;
|
|
259
259
|
border-width: 0;
|
|
@@ -262,29 +262,35 @@
|
|
|
262
262
|
/* transition */
|
|
263
263
|
/* we don't want to transition outline-offset */
|
|
264
264
|
transition-property: opacity, background-color, color;
|
|
265
|
-
transition-duration: var(--sapphire-
|
|
265
|
+
transition-duration: var(--sapphire-semantic-time-fade-quick);
|
|
266
266
|
transition-timing-function: ease-in-out;
|
|
267
267
|
cursor: pointer;
|
|
268
268
|
|
|
269
269
|
/* color */
|
|
270
|
-
background-color: var(
|
|
271
|
-
|
|
270
|
+
background-color: var(
|
|
271
|
+
--sapphire-semantic-color-background-action-tertiary-default
|
|
272
|
+
);
|
|
273
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-default);
|
|
272
274
|
}
|
|
273
275
|
|
|
274
276
|
.sapphire-text-field__stepper-button:not(:active):not(.is-active):not(
|
|
275
277
|
.js-hover
|
|
276
278
|
):hover,
|
|
277
279
|
.sapphire-text-field__stepper-button:not(:active):not(.is-active).is-hover {
|
|
278
|
-
background-color: var(
|
|
279
|
-
|
|
280
|
+
background-color: var(
|
|
281
|
+
--sapphire-semantic-color-background-action-tertiary-hover
|
|
282
|
+
);
|
|
283
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-hover);
|
|
280
284
|
}
|
|
281
285
|
|
|
282
286
|
.sapphire-text-field__stepper-button.is-active,
|
|
283
287
|
.sapphire-text-field__stepper-button:active {
|
|
284
|
-
background-color: var(
|
|
285
|
-
|
|
288
|
+
background-color: var(
|
|
289
|
+
--sapphire-semantic-color-background-action-tertiary-active
|
|
290
|
+
);
|
|
291
|
+
color: var(--sapphire-semantic-color-content-action-tertiary-active);
|
|
286
292
|
}
|
|
287
293
|
|
|
288
|
-
.sapphire-text-field--
|
|
289
|
-
width: var(--sapphire-
|
|
294
|
+
.sapphire-text-field--md.sapphire-text-field__stepper-button {
|
|
295
|
+
width: var(--sapphire-semantic-size-icon-sm);
|
|
290
296
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare const styles: {
|
|
2
2
|
readonly "sapphire-text-field": string;
|
|
3
|
-
readonly "sapphire-text-field--
|
|
3
|
+
readonly "sapphire-text-field--md": string;
|
|
4
4
|
readonly "sapphire-text-field__input": string;
|
|
5
5
|
readonly "sapphire-text-field__input--align-right": string;
|
|
6
6
|
readonly "sapphire-text-field--multiline": string;
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
.sapphire-toast-container {
|
|
30
30
|
pointer-events: none;
|
|
31
31
|
position: fixed;
|
|
32
|
-
margin: var(--sapphire-
|
|
32
|
+
margin: var(--sapphire-semantic-size-spacing-40);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/* Placement */
|
|
@@ -85,11 +85,11 @@
|
|
|
85
85
|
width: max-content;
|
|
86
86
|
|
|
87
87
|
overflow: hidden;
|
|
88
|
-
max-width: var(--sapphire-
|
|
89
|
-
min-width: var(--sapphire-
|
|
90
|
-
box-shadow: var(--sapphire-
|
|
88
|
+
max-width: var(--sapphire-global-size-generic-1400);
|
|
89
|
+
min-width: var(--sapphire-global-size-generic-750);
|
|
90
|
+
box-shadow: var(--sapphire-global-shadow-sm);
|
|
91
91
|
border-radius: var(--sapphire-semantic-size-radius-popover);
|
|
92
|
-
animation-duration: var(--sapphire-
|
|
92
|
+
animation-duration: var(--sapphire-semantic-time-motion-default);
|
|
93
93
|
|
|
94
94
|
/* Ease-out Cubic */
|
|
95
95
|
animation-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
.sapphire-toast--queued {
|
|
123
123
|
opacity: 0;
|
|
124
124
|
animation-name: fade-in;
|
|
125
|
-
animation-delay: var(--sapphire-
|
|
125
|
+
animation-delay: var(--sapphire-semantic-time-motion-default);
|
|
126
126
|
animation-fill-mode: forwards;
|
|
127
127
|
}
|
|
128
128
|
|
|
@@ -137,17 +137,15 @@
|
|
|
137
137
|
align-items: center;
|
|
138
138
|
justify-content: space-between;
|
|
139
139
|
|
|
140
|
-
background-color: var(
|
|
141
|
-
--sapphire-semantic-color-background-surface-primary-default
|
|
142
|
-
);
|
|
140
|
+
background-color: var(--sapphire-semantic-color-background-surface);
|
|
143
141
|
color: var(--sapphire-semantic-color-content-default-primary);
|
|
144
|
-
font-family: var(--sapphire-
|
|
145
|
-
font-size: var(--sapphire-
|
|
146
|
-
font-weight: var(--sapphire-
|
|
147
|
-
line-height: var(--sapphire-
|
|
148
|
-
padding: var(--sapphire-
|
|
149
|
-
var(--sapphire-
|
|
150
|
-
padding-right: var(--sapphire-
|
|
142
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
143
|
+
font-size: var(--sapphire-global-size-font-88);
|
|
144
|
+
font-weight: var(--sapphire-semantic-font-weight-default-semibold);
|
|
145
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
146
|
+
padding: var(--sapphire-semantic-size-spacing-20)
|
|
147
|
+
var(--sapphire-semantic-size-spacing-40);
|
|
148
|
+
padding-right: var(--sapphire-semantic-size-spacing-20);
|
|
151
149
|
}
|
|
152
150
|
|
|
153
151
|
.sapphire-toast__content--success {
|
|
@@ -196,12 +194,12 @@
|
|
|
196
194
|
-moz-osx-font-smoothing: grayscale;
|
|
197
195
|
|
|
198
196
|
/* sizing */
|
|
199
|
-
height: var(--sapphire-semantic-size-height-control-
|
|
200
|
-
width: var(--sapphire-semantic-size-height-control-
|
|
197
|
+
height: var(--sapphire-semantic-size-height-control-sm);
|
|
198
|
+
width: var(--sapphire-semantic-size-height-control-sm);
|
|
201
199
|
flex-shrink: 0; /* When part of flex layout the button will otherwise be squashed */
|
|
202
200
|
|
|
203
201
|
/* shape */
|
|
204
|
-
border-radius: var(--sapphire-semantic-size-height-control-
|
|
202
|
+
border-radius: var(--sapphire-semantic-size-height-control-sm);
|
|
205
203
|
border-style: solid;
|
|
206
204
|
border-width: 0;
|
|
207
205
|
border-color: transparent;
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
|
|
10
10
|
.sapphire-tooltip {
|
|
11
11
|
display: inline-block;
|
|
12
|
-
box-shadow: var(--sapphire-
|
|
13
|
-
max-width: var(--sapphire-
|
|
14
|
-
border-radius: var(--sapphire-
|
|
12
|
+
box-shadow: var(--sapphire-semantic-shadow-popover);
|
|
13
|
+
max-width: var(--sapphire-global-size-generic-750);
|
|
14
|
+
border-radius: var(--sapphire-semantic-size-radius-sm);
|
|
15
15
|
overflow-wrap: break-word;
|
|
16
16
|
overflow: hidden;
|
|
17
17
|
/* if implemented as focusable, we don't want the outline because this is not
|
|
18
18
|
* an an interactive element in itself */
|
|
19
19
|
outline: none;
|
|
20
20
|
|
|
21
|
-
animation: fade-in var(--sapphire-
|
|
21
|
+
animation: fade-in var(--sapphire-semantic-time-fade-quick) ease-in-out;
|
|
22
22
|
|
|
23
23
|
/* The below is meant to address a font rendering quirk in OSX where the text
|
|
24
24
|
* looks bolder than intended due to subpixel rendering. This quirk generally
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.sapphire-tooltip__content {
|
|
39
|
-
background-color: var(--sapphire-
|
|
40
|
-
color: var(--sapphire-
|
|
41
|
-
font-family: var(--sapphire-
|
|
42
|
-
font-weight: var(--sapphire-
|
|
43
|
-
font-size: var(--sapphire-
|
|
44
|
-
line-height: var(--sapphire-
|
|
45
|
-
padding: var(--sapphire-
|
|
46
|
-
var(--sapphire-
|
|
39
|
+
background-color: var(--sapphire-semantic-color-background-surface);
|
|
40
|
+
color: var(--sapphire-semantic-color-content-default-primary);
|
|
41
|
+
font-family: var(--sapphire-semantic-font-name-default);
|
|
42
|
+
font-weight: var(--sapphire-semantic-font-weight-default-regular);
|
|
43
|
+
font-size: var(--sapphire-global-size-font-88);
|
|
44
|
+
line-height: var(--sapphire-semantic-size-line-height-md);
|
|
45
|
+
padding: var(--sapphire-semantic-size-spacing-10)
|
|
46
|
+
var(--sapphire-semantic-size-spacing-20);
|
|
47
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "33.0.0",
|
|
4
4
|
"description": "CSS implementation of the Sapphire Design System from Danske Bank A/S",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"typescript": "~4.6.4"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@danske/sapphire-design-tokens": "^
|
|
69
|
+
"@danske/sapphire-design-tokens": "^41.0.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "42619f28a8015091b0481151c8c9ddde0074fe0a"
|
|
72
72
|
}
|
package/themes/default-dark.js
CHANGED
|
@@ -7,6 +7,6 @@ require("@danske/sapphire-design-tokens/build/themes/default-dark/assets/fonts/d
|
|
|
7
7
|
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/default-dark/css/tokens.module.css"));
|
|
8
8
|
var theme = {
|
|
9
9
|
themeClassName: tokens_module_css_1["default"]['sapphire-theme-default-dark'],
|
|
10
|
-
|
|
10
|
+
themeContrastModifierClassName: tokens_module_css_1["default"]['sapphire-theme--contrast']
|
|
11
11
|
};
|
|
12
12
|
exports["default"] = theme;
|
package/themes/default.js
CHANGED
|
@@ -7,6 +7,7 @@ require("@danske/sapphire-design-tokens/build/themes/default/assets/fonts/danske
|
|
|
7
7
|
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/default/css/tokens.module.css"));
|
|
8
8
|
var theme = {
|
|
9
9
|
themeClassName: tokens_module_css_1["default"]['sapphire-theme-default'],
|
|
10
|
-
|
|
10
|
+
themeSecondaryModifierClassName: tokens_module_css_1["default"]['sapphire-theme--secondary'],
|
|
11
|
+
themeContrastModifierClassName: tokens_module_css_1["default"]['sapphire-theme--contrast']
|
|
11
12
|
};
|
|
12
13
|
exports["default"] = theme;
|
package/themes/index.d.ts
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import '@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/fira/fontFace.css';
|
|
2
|
-
import '@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/playfair/fontFace.css';
|
|
3
|
-
import type { Theme } from '.';
|
|
4
|
-
declare const theme: Theme;
|
|
5
|
-
export default theme;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
require("@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/fira/fontFace.css");
|
|
7
|
-
require("@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/playfair/fontFace.css");
|
|
8
|
-
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/june-dark/css/tokens.module.css"));
|
|
9
|
-
var theme = {
|
|
10
|
-
themeClassName: tokens_module_css_1["default"]['sapphire-theme-june-dark'],
|
|
11
|
-
contrastThemeClassName: tokens_module_css_1["default"]['sapphire-theme-contrast']
|
|
12
|
-
};
|
|
13
|
-
exports["default"] = theme;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import '@danske/sapphire-design-tokens/build/themes/june/assets/fonts/fira/fontFace.css';
|
|
2
|
-
import '@danske/sapphire-design-tokens/build/themes/june/assets/fonts/playfair/fontFace.css';
|
|
3
|
-
import type { Theme } from '.';
|
|
4
|
-
declare const theme: Theme;
|
|
5
|
-
export default theme;
|
package/build/themes/cjs/june.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
require("@danske/sapphire-design-tokens/build/themes/june/assets/fonts/fira/fontFace.css");
|
|
7
|
-
require("@danske/sapphire-design-tokens/build/themes/june/assets/fonts/playfair/fontFace.css");
|
|
8
|
-
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/june/css/tokens.module.css"));
|
|
9
|
-
var theme = {
|
|
10
|
-
themeClassName: tokens_module_css_1["default"]['sapphire-theme-june'],
|
|
11
|
-
contrastThemeClassName: tokens_module_css_1["default"]['sapphire-theme-contrast']
|
|
12
|
-
};
|
|
13
|
-
exports["default"] = theme;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import '@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/fira/fontFace.css';
|
|
2
|
-
import '@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/playfair/fontFace.css';
|
|
3
|
-
import type { Theme } from '.';
|
|
4
|
-
declare const theme: Theme;
|
|
5
|
-
export default theme;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/fira/fontFace.css';
|
|
2
|
-
import '@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/playfair/fontFace.css';
|
|
3
|
-
import styles from '@danske/sapphire-design-tokens/build/themes/june-dark/css/tokens.module.css';
|
|
4
|
-
var theme = {
|
|
5
|
-
themeClassName: styles['sapphire-theme-june-dark'],
|
|
6
|
-
contrastThemeClassName: styles['sapphire-theme-contrast']
|
|
7
|
-
};
|
|
8
|
-
export default theme;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import '@danske/sapphire-design-tokens/build/themes/june/assets/fonts/fira/fontFace.css';
|
|
2
|
-
import '@danske/sapphire-design-tokens/build/themes/june/assets/fonts/playfair/fontFace.css';
|
|
3
|
-
import type { Theme } from '.';
|
|
4
|
-
declare const theme: Theme;
|
|
5
|
-
export default theme;
|
package/build/themes/esm/june.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import '@danske/sapphire-design-tokens/build/themes/june/assets/fonts/fira/fontFace.css';
|
|
2
|
-
import '@danske/sapphire-design-tokens/build/themes/june/assets/fonts/playfair/fontFace.css';
|
|
3
|
-
import styles from '@danske/sapphire-design-tokens/build/themes/june/css/tokens.module.css';
|
|
4
|
-
var theme = {
|
|
5
|
-
themeClassName: styles['sapphire-theme-june'],
|
|
6
|
-
contrastThemeClassName: styles['sapphire-theme-contrast']
|
|
7
|
-
};
|
|
8
|
-
export default theme;
|
package/themes/default-dark.css
DELETED
package/themes/june-dark.css
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
@import '~@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/fira/fontFace.css';
|
|
2
|
-
@import '~@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/playfair/fontFace.css';
|
|
3
|
-
@import '~@danske/sapphire-design-tokens/build/themes/june-dark/css/tokens.css';
|
package/themes/june-dark.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import '@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/fira/fontFace.css';
|
|
2
|
-
import '@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/playfair/fontFace.css';
|
|
3
|
-
import type { Theme } from '.';
|
|
4
|
-
declare const theme: Theme;
|
|
5
|
-
export default theme;
|
package/themes/june-dark.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
require("@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/fira/fontFace.css");
|
|
7
|
-
require("@danske/sapphire-design-tokens/build/themes/june-dark/assets/fonts/playfair/fontFace.css");
|
|
8
|
-
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/june-dark/css/tokens.module.css"));
|
|
9
|
-
var theme = {
|
|
10
|
-
themeClassName: tokens_module_css_1["default"]['sapphire-theme-june-dark'],
|
|
11
|
-
contrastThemeClassName: tokens_module_css_1["default"]['sapphire-theme-contrast']
|
|
12
|
-
};
|
|
13
|
-
exports["default"] = theme;
|
package/themes/june-dark.scss
DELETED
package/themes/june.css
DELETED
package/themes/june.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import '@danske/sapphire-design-tokens/build/themes/june/assets/fonts/fira/fontFace.css';
|
|
2
|
-
import '@danske/sapphire-design-tokens/build/themes/june/assets/fonts/playfair/fontFace.css';
|
|
3
|
-
import type { Theme } from '.';
|
|
4
|
-
declare const theme: Theme;
|
|
5
|
-
export default theme;
|
package/themes/june.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
exports.__esModule = true;
|
|
6
|
-
require("@danske/sapphire-design-tokens/build/themes/june/assets/fonts/fira/fontFace.css");
|
|
7
|
-
require("@danske/sapphire-design-tokens/build/themes/june/assets/fonts/playfair/fontFace.css");
|
|
8
|
-
var tokens_module_css_1 = __importDefault(require("@danske/sapphire-design-tokens/build/themes/june/css/tokens.module.css"));
|
|
9
|
-
var theme = {
|
|
10
|
-
themeClassName: tokens_module_css_1["default"]['sapphire-theme-june'],
|
|
11
|
-
contrastThemeClassName: tokens_module_css_1["default"]['sapphire-theme-contrast']
|
|
12
|
-
};
|
|
13
|
-
exports["default"] = theme;
|
package/themes/june.scss
DELETED