@danske/sapphire-css 31.1.2 → 31.2.2
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.
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
transition: transform var(--sapphire-accordion-time-transition-arrow)
|
|
135
135
|
ease-in-out;
|
|
136
136
|
}
|
|
137
|
-
.sapphire-accordion__item--open .sapphire-accordion__item-arrow {
|
|
137
|
+
.sapphire-accordion__item--open > :first-child .sapphire-accordion__item-arrow {
|
|
138
138
|
transform: rotate(180deg);
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -159,11 +159,13 @@
|
|
|
159
159
|
padding-left: var(--sapphire-accordion-size-spacing-body-horizontal);
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
.sapphire-accordion__item--open .sapphire-accordion__item-content-wrapper {
|
|
162
|
+
.sapphire-accordion__item--open > .sapphire-accordion__item-content-wrapper {
|
|
163
163
|
grid-template-rows: 1fr;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
.sapphire-accordion__item--open
|
|
166
|
+
.sapphire-accordion__item--open
|
|
167
|
+
> .sapphire-accordion__item-content-wrapper
|
|
168
|
+
> .sapphire-accordion__item-content {
|
|
167
169
|
padding-top: var(--sapphire-accordion-size-spacing-body-top);
|
|
168
170
|
padding-bottom: var(--sapphire-accordion-size-spacing-body-bottom);
|
|
169
171
|
visibility: visible;
|
|
@@ -212,6 +212,10 @@
|
|
|
212
212
|
width: var(--sapphire-table-size-width-selection-cell);
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
.sapphire-table__selectionCell:not(:first-child) {
|
|
216
|
+
padding-left: var(--sapphire-table-size-spacing-cell-horizontal-default);
|
|
217
|
+
}
|
|
218
|
+
|
|
215
219
|
.sapphire-table__cell:first-child {
|
|
216
220
|
padding-left: var(--sapphire-table-size-spacing-cell-horizontal-end);
|
|
217
221
|
}
|
|
@@ -243,10 +247,32 @@
|
|
|
243
247
|
/**
|
|
244
248
|
* Row divider. Only shown when row is not focused, because of z-index issue with the focus ring.
|
|
245
249
|
*/
|
|
246
|
-
.sapphire-table__row:not(
|
|
250
|
+
.sapphire-table__row:not(
|
|
251
|
+
.is-focus,
|
|
252
|
+
:not(.js-focus):focus-visible,
|
|
253
|
+
.sapphire-table__row--expanded
|
|
254
|
+
) {
|
|
255
|
+
box-shadow: inset 0px -1px 0px 0px var(--sapphire-table-color-border-separator);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
.sapphire-table__row-expanded-view {
|
|
247
259
|
box-shadow: inset 0px -1px 0px 0px var(--sapphire-table-color-border-separator);
|
|
248
260
|
}
|
|
249
261
|
|
|
262
|
+
.sapphire-table__row-expand-button {
|
|
263
|
+
display: inline-flex; /* for transform to take effect */
|
|
264
|
+
transition: transform ease-in-out var(--sapphire-table-time-transition-arrow);
|
|
265
|
+
margin-left: var(--sapphire-table-size-spacing-icon-left-default);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.sapphire-table td:has(.sapphire-table__row-expand-button) {
|
|
269
|
+
width: 0; /* To prevent the cell from growing more than needed. only needed when td is used for cells */
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
.sapphire-table__row--expanded .sapphire-table__row-expand-button {
|
|
273
|
+
transform: rotate(180deg);
|
|
274
|
+
}
|
|
275
|
+
|
|
250
276
|
.sapphire-table--without-last-divider
|
|
251
277
|
.sapphire-table__row:not(
|
|
252
278
|
.is-focus,
|
|
@@ -255,16 +281,29 @@
|
|
|
255
281
|
box-shadow: none;
|
|
256
282
|
}
|
|
257
283
|
|
|
258
|
-
.sapphire-table--interactive .sapphire-table__row
|
|
284
|
+
.sapphire-table--interactive .sapphire-table__row,
|
|
285
|
+
.sapphire-table__row--interactive {
|
|
259
286
|
cursor: default; /* by default cursor is text selection, which is unintuitive when rows are clickable */
|
|
260
287
|
}
|
|
261
288
|
|
|
262
289
|
.sapphire-table--interactive .sapphire-table__row.is-hover,
|
|
263
|
-
.sapphire-
|
|
290
|
+
.sapphire-table__row--interactive.is-hover,
|
|
291
|
+
.sapphire-table--interactive .sapphire-table__row:not(.js-hover):hover,
|
|
292
|
+
.sapphire-table__row--interactive:not(.js-hover):hover {
|
|
264
293
|
background-color: var(--sapphire-table-color-background-hover);
|
|
265
294
|
cursor: pointer;
|
|
266
295
|
}
|
|
267
296
|
|
|
297
|
+
.sapphire-table__row--highlighted {
|
|
298
|
+
background-color: var(--sapphire-table-color-background-hover);
|
|
299
|
+
}
|
|
300
|
+
.sapphire-table__row--highlighted > *:first-child /* setting the highlight style on the first cell,
|
|
301
|
+
since box-shadow is used for separator on rows,
|
|
302
|
+
and to avoid the complications of merging the two shadows */ {
|
|
303
|
+
box-shadow: inset var(--sapphire-table-size-width-highlight) 0px 0px 0px
|
|
304
|
+
var(--sapphire-table-color-background-highlight);
|
|
305
|
+
}
|
|
306
|
+
|
|
268
307
|
/**
|
|
269
308
|
* Selection actions. Optionally shown when a table uses multiple selection.
|
|
270
309
|
*/
|
|
@@ -27,8 +27,13 @@ declare const styles: {
|
|
|
27
27
|
readonly "sapphire-table__headCell_content--ellipsed": string;
|
|
28
28
|
readonly "sapphire-table__row--active": string;
|
|
29
29
|
readonly "sapphire-table__row--selected": string;
|
|
30
|
+
readonly "sapphire-table__row--expanded": string;
|
|
31
|
+
readonly "sapphire-table__row-expanded-view": string;
|
|
32
|
+
readonly "sapphire-table__row-expand-button": string;
|
|
30
33
|
readonly "sapphire-table--without-last-divider": string;
|
|
31
34
|
readonly "sapphire-table--interactive": string;
|
|
35
|
+
readonly "sapphire-table__row--interactive": string;
|
|
36
|
+
readonly "sapphire-table__row--highlighted": string;
|
|
32
37
|
readonly "sapphire-table__selection-action-bar": string;
|
|
33
38
|
readonly "sapphire-table__footer": string;
|
|
34
39
|
readonly "sapphire-table__footer--sticky": string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-css",
|
|
3
|
-
"version": "31.
|
|
3
|
+
"version": "31.2.2",
|
|
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,
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@babel/preset-react": "^7.18.6",
|
|
47
47
|
"@babel/preset-typescript": "^7.18.6",
|
|
48
48
|
"@danske/sapphire-icons": "^2.0.0",
|
|
49
|
-
"@danske/sapphire-react": "3.
|
|
49
|
+
"@danske/sapphire-react": "^3.39.2",
|
|
50
50
|
"@storybook/addon-essentials": "^6.5.13",
|
|
51
51
|
"@storybook/addon-links": "^6.5.13",
|
|
52
52
|
"@storybook/addons": "^6.5.13",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"typescript": "~4.6.4"
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@danske/sapphire-design-tokens": "^39.
|
|
69
|
+
"@danske/sapphire-design-tokens": "^39.2.0"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "e25b4232146128fc907e0602d8a9d4a6fbe5f402"
|
|
72
72
|
}
|