@sb1/ffe-lists 17.1.6 → 18.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/css/lists.css CHANGED
@@ -1,33 +1,13 @@
1
- :root,
2
- :host {
3
- --ffe-v-lists-title-color: var(--ffe-farge-fjell);
4
- --ffe-v-lists-description-description-color: var(--ffe-farge-svart);
5
- --ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-skog);
6
- --ffe-v-lists-check-list-cross-icon-color: var(--ffe-farge-baer);
7
- --ffe-v-detail-list-card-background-color: var(--ffe-farge-hvit);
8
- --ffe-v-detail-list-card-border-color: var(--ffe-farge-lysgraa);
9
- --ffe-v-detail-list-card-border-radius: 16px;
10
- }
11
- @media (prefers-color-scheme: dark) {
12
- :root .regard-color-scheme-preference,
13
- :host .regard-color-scheme-preference {
14
- --ffe-v-lists-title-color: var(--ffe-farge-hvit);
15
- --ffe-v-lists-description-description-color: var(--ffe-farge-lysgraa);
16
- --ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-skog-70);
17
- --ffe-v-detail-list-card-background-color: var(--ffe-farge-natt);
18
- --ffe-v-detail-list-card-border-color: var(--ffe-farge-moerkgraa);
19
- }
20
- }
21
1
  .ffe-description-list .ffe-description-list__description,
22
2
  .ffe-description-list-multicol .ffe-description-list__description,
23
3
  .ffe-description-list .ffe-description-list__term,
24
4
  .ffe-description-list-multicol .ffe-description-list__term {
25
- color: var(--ffe-g-text-color);font-family: var(--ffe-g-font);font-variant-numeric: tabular-nums;line-height: 1.5rem;font-size: var(--ffe-fontsize-body-text);
5
+ color: var(--ffe-color-foreground-default);font-family: var(--ffe-g-font);font-variant-numeric: tabular-nums;line-height: 1.5rem;font-size: var(--ffe-fontsize-body-text);
26
6
  }
27
7
  .ffe-stylized-numbered-list__item::before,
28
8
  .ffe-description-list .ffe-description-list__term,
29
9
  .ffe-description-list-multicol .ffe-description-list__term {
30
- font-family: var(--ffe-g-font-strong);font-variant-numeric: tabular-nums;font-weight: normal;
10
+ font-family: var(--ffe-g-font-strong);color: var(--ffe-color-foreground-default);font-variant-numeric: tabular-nums;font-weight: normal;
31
11
  }
32
12
  @media (min-width: 480px) {
33
13
  .ffe-description-list .ffe-description-list__description,
@@ -49,6 +29,7 @@
49
29
  .ffe-numbered-list,
50
30
  .ffe-bullet-list {
51
31
  font-family: var(--ffe-g-font);
32
+ color: var(--ffe-color-foreground-default);
52
33
  padding: 0;
53
34
  text-align: left;
54
35
  margin: 0 0 var(--ffe-spacing-sm);
@@ -98,6 +79,7 @@
98
79
  .ffe-check-list,
99
80
  .ffe-stylized-numbered-list {
100
81
  font-family: var(--ffe-g-font);
82
+ color: var(--ffe-color-foreground-default);
101
83
  padding: 0;
102
84
  text-align: left;
103
85
  margin: 0 0 var(--ffe-spacing-sm);
@@ -119,10 +101,10 @@
119
101
  place-self: center;
120
102
  }
121
103
  .ffe-check-list__icon--check.ffe-icons {
122
- color: var(--ffe-v-lists-check-list-check-icon-color);
104
+ color: var(--ffe-color-fill-feedback-success);
123
105
  }
124
106
  .ffe-check-list__icon--cross.ffe-icons {
125
- color: var(--ffe-v-lists-check-list-cross-icon-color);
107
+ color: var(--ffe-color-fill-feedback-critical);
126
108
  }
127
109
  @media all and (min-width: 768px) {
128
110
  .ffe-check-list--two-columns {
@@ -158,7 +140,7 @@
158
140
  content: counter(list-elements);
159
141
  grid-column: 1 / 2;
160
142
  grid-row: 1 / 2;
161
- color: var(--ffe-v-lists-title-color);
143
+ color: var(--ffe-color-foreground-emphasis);
162
144
  }
163
145
  .ffe-check-list__item-content,
164
146
  .ffe-stylized-numbered-list__item-content {
@@ -173,14 +155,14 @@
173
155
  }
174
156
  .ffe-description-list .ffe-description-list__term,
175
157
  .ffe-description-list-multicol .ffe-description-list__term {
176
- color: var(--ffe-v-lists-title-color);
158
+ color: var(--ffe-color-foreground-emphasis);
177
159
  font-size: var(--ffe-fontsize-h6);
178
160
  }
179
161
  .ffe-description-list .ffe-description-list__description,
180
162
  .ffe-description-list-multicol .ffe-description-list__description {
181
163
  padding-bottom: var(--vertical-seperation);
182
164
  margin-left: 0;
183
- color: var(--ffe-v-lists-description-description-color);
165
+ color: var(--ffe-color-foreground-default);
184
166
  }
185
167
  .ffe-description-list .ffe-description-list__description + .ffe-description-list__description,
186
168
  .ffe-description-list-multicol .ffe-description-list__description + .ffe-description-list__description {
@@ -291,15 +273,17 @@
291
273
  }
292
274
  }
293
275
  .ffe-detail-list-card {
294
- --detail-list-bg-color: var(--ffe-v-detail-list-card-background-color);
276
+ --detail-list-bg-color: var(--ffe-color-surface-primary-default);
277
+ --ffe-v-detail-list-card-border-radius: 16px;
295
278
  background-color: var(--detail-list-bg-color);
279
+ border: 1px solid var(--ffe-color-border-primary-subtle);
296
280
  border-radius: var(--ffe-v-detail-list-card-border-radius);
297
281
  font-family: var(--ffe-g-font);
298
282
  font-variant-numeric: tabular-nums;
299
283
  container-type: inline-size;
300
284
  }
301
285
  .ffe-detail-list-card__item:not(:last-child) {
302
- border-bottom: 1px solid var(--ffe-v-detail-list-card-border-color);
286
+ border-bottom: 1px solid var(--ffe-color-border-primary-subtle);
303
287
  }
304
288
  .ffe-detail-list-card__item {
305
289
  padding: var(--ffe-spacing-sm);
@@ -336,7 +320,7 @@
336
320
  }
337
321
  .ffe-detail-list-card__item-label {
338
322
  font-family: var(--ffe-g-font-heading-small);
339
- color: var(--ffe-g-secondary-color);
323
+ color: var(--ffe-color-foreground-emphasis);
340
324
  }
341
325
  .ffe-detail-list-card__item-value {
342
326
  margin: 0;
@@ -346,6 +330,7 @@
346
330
  -webkit-box-align: center;
347
331
  -ms-flex-align: center;
348
332
  align-items: center;
333
+ color: var(--ffe-color-foreground-default);
349
334
  }
350
335
  .ffe-detail-list-card__item-value > a,
351
336
  .ffe-detail-list-card__item-value > button {
@@ -362,29 +347,12 @@
362
347
  align-items: normal;
363
348
  }
364
349
  }
365
- .ffe-detail-list-card--bg-sand-30 {
366
- --detail-list-bg-color: var(--ffe-farge-sand-30);
367
- }
368
- .ffe-detail-list-card--bg-sand-70 {
369
- --detail-list-bg-color: var(--ffe-farge-sand-70);
350
+ .ffe-detail-list-card--bg-primary {
351
+ --detail-list-bg-color: var(--ffe-color-surface-primary-default);
370
352
  }
371
- .ffe-detail-list-card--bg-frost-30 {
372
- --detail-list-bg-color: var(--ffe-farge-frost-30);
353
+ .ffe-detail-list-card--bg-secondary {
354
+ --detail-list-bg-color: var(--ffe-color-surface-secondary-default);
373
355
  }
374
- .ffe-detail-list-card--bg-syrin-30 {
375
- --detail-list-bg-color: var(--ffe-farge-syrin-30);
376
- }
377
- .ffe-detail-list-card--bg-syrin-70 {
378
- --detail-list-bg-color: var(--ffe-farge-syrin-70);
379
- }
380
- @media (prefers-color-scheme: dark) {
381
- .regard-color-scheme-preference .ffe-detail-list-card--dm-bg-svart {
382
- --detail-list-bg-color: var(--ffe-farge-svart);
383
- }
384
- .regard-color-scheme-preference .ffe-detail-list-card--dm-bg-natt {
385
- --detail-list-bg-color: var(--ffe-farge-natt);
386
- }
387
- .regard-color-scheme-preference .ffe-detail-list-card--dm-bg-koksgraa {
388
- --detail-list-bg-color: var(--ffe-farge-koksgraa);
389
- }
356
+ .ffe-detail-list-card--bg-tertiary {
357
+ --detail-list-bg-color: var(--ffe-color-surface-tertiary-default);
390
358
  }
@@ -10,7 +10,7 @@
10
10
  }
11
11
 
12
12
  .ffe-description-list__term {
13
- color: var(--ffe-v-lists-title-color);
13
+ color: var(--ffe-color-foreground-emphasis);
14
14
  font-size: var(--ffe-fontsize-h6);
15
15
  &:extend(.ffe-strong-text);
16
16
  }
@@ -20,7 +20,7 @@
20
20
  .ffe-description-list__description {
21
21
  padding-bottom: var(--vertical-seperation);
22
22
  margin-left: 0;
23
- color: var(--ffe-v-lists-description-description-color);
23
+ color: var(--ffe-color-foreground-default);
24
24
  }
25
25
 
26
26
  .ffe-description-list__description + .ffe-description-list__description {
@@ -1,14 +1,16 @@
1
1
  .ffe-detail-list-card {
2
- --detail-list-bg-color: var(--ffe-v-detail-list-card-background-color);
2
+ --detail-list-bg-color: var(--ffe-color-surface-primary-default);
3
+ --ffe-v-detail-list-card-border-radius: 16px;
3
4
 
4
5
  background-color: var(--detail-list-bg-color);
6
+ border: 1px solid var(--ffe-color-border-primary-subtle);
5
7
  border-radius: var(--ffe-v-detail-list-card-border-radius);
6
8
  font-family: var(--ffe-g-font);
7
9
  font-variant-numeric: tabular-nums;
8
10
  container-type: inline-size;
9
11
 
10
12
  &__item:not(:last-child) {
11
- border-bottom: 1px solid var(--ffe-v-detail-list-card-border-color);
13
+ border-bottom: 1px solid var(--ffe-color-border-primary-subtle);
12
14
  }
13
15
 
14
16
  &__item {
@@ -45,13 +47,14 @@
45
47
 
46
48
  &-label {
47
49
  font-family: var(--ffe-g-font-heading-small);
48
- color: var(--ffe-g-secondary-color);
50
+ color: var(--ffe-color-foreground-emphasis);
49
51
  }
50
52
 
51
53
  &-value {
52
54
  margin: 0; // Removes the default dd-element margin when it breaks to a new line
53
55
  display: flex;
54
56
  align-items: center;
57
+ color: var(--ffe-color-foreground-default);
55
58
 
56
59
  & > a,
57
60
  & > button {
@@ -65,41 +68,15 @@
65
68
  }
66
69
  }
67
70
 
68
- &--bg-sand-30 {
69
- --detail-list-bg-color: var(--ffe-farge-sand-30);
71
+ &--bg-primary {
72
+ --detail-list-bg-color: var(--ffe-color-surface-primary-default);
70
73
  }
71
74
 
72
- &--bg-sand-70 {
73
- --detail-list-bg-color: var(--ffe-farge-sand-70);
75
+ &--bg-secondary {
76
+ --detail-list-bg-color: var(--ffe-color-surface-secondary-default);
74
77
  }
75
78
 
76
- &--bg-frost-30 {
77
- --detail-list-bg-color: var(--ffe-farge-frost-30);
78
- }
79
-
80
- &--bg-syrin-30 {
81
- --detail-list-bg-color: var(--ffe-farge-syrin-30);
82
- }
83
-
84
- &--bg-syrin-70 {
85
- --detail-list-bg-color: var(--ffe-farge-syrin-70);
86
- }
87
- }
88
-
89
- .regard-color-scheme-preference & {
90
- @media (prefers-color-scheme: dark) {
91
- .ffe-detail-list-card {
92
- &--dm-bg-svart {
93
- --detail-list-bg-color: var(--ffe-farge-svart);
94
- }
95
-
96
- &--dm-bg-natt {
97
- --detail-list-bg-color: var(--ffe-farge-natt);
98
- }
99
-
100
- &--dm-bg-koksgraa {
101
- --detail-list-bg-color: var(--ffe-farge-koksgraa);
102
- }
103
- }
79
+ &--bg-tertiary {
80
+ --detail-list-bg-color: var(--ffe-color-surface-tertiary-default);
104
81
  }
105
82
  }
package/less/lists.less CHANGED
@@ -1,4 +1,3 @@
1
- @import 'theme';
2
1
  @import './regular-lists.less';
3
2
  @import './description-list.less';
4
3
  @import './detail-list-card.less';
@@ -4,6 +4,7 @@
4
4
  .ffe-numbered-list,
5
5
  .ffe-bullet-list {
6
6
  font-family: var(--ffe-g-font);
7
+ color: var(--ffe-color-foreground-default);
7
8
  padding: 0;
8
9
  text-align: left;
9
10
  margin: 0 0 var(--ffe-spacing-sm);
@@ -59,6 +60,7 @@
59
60
  .ffe-check-list,
60
61
  .ffe-stylized-numbered-list {
61
62
  font-family: var(--ffe-g-font);
63
+ color: var(--ffe-color-foreground-default);
62
64
  padding: 0;
63
65
  text-align: left;
64
66
  margin: 0 0 var(--ffe-spacing-sm);
@@ -83,11 +85,11 @@
83
85
  grid-row: 1 e('/') 2;
84
86
  place-self: center;
85
87
  &--check.ffe-icons {
86
- color: var(--ffe-v-lists-check-list-check-icon-color);
88
+ color: var(--ffe-color-fill-feedback-success);
87
89
  }
88
90
 
89
91
  &--cross.ffe-icons {
90
- color: var(--ffe-v-lists-check-list-cross-icon-color);
92
+ color: var(--ffe-color-fill-feedback-critical);
91
93
  }
92
94
  }
93
95
 
@@ -122,7 +124,7 @@
122
124
  content: counter(list-elements);
123
125
  grid-column: 1 e('/') 2;
124
126
  grid-row: 1 e('/') 2;
125
- color: var(--ffe-v-lists-title-color);
127
+ color: var(--ffe-color-foreground-emphasis);
126
128
  &:extend(.ffe-strong-text);
127
129
  }
128
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-lists",
3
- "version": "17.1.6",
3
+ "version": "18.0.1",
4
4
  "description": "Lists in ffe",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -18,13 +18,13 @@
18
18
  "build": "lessc less/lists.less css/lists.css --autoprefix"
19
19
  },
20
20
  "dependencies": {
21
- "@sb1/ffe-core": "^29.5.2"
21
+ "@sb1/ffe-core": "^30.0.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@sb1/ffe-buildtool": "^0.9.2"
24
+ "@sb1/ffe-buildtool": "^0.10.0"
25
25
  },
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "gitHead": "dc81c750740fef9a1e01725f2ade086c11d81d30"
29
+ "gitHead": "abedc811686859a152f05182aeece4ac8667949a"
30
30
  }
package/less/theme.less DELETED
@@ -1,22 +0,0 @@
1
- :root,
2
- :host {
3
- --ffe-v-lists-title-color: var(--ffe-farge-fjell);
4
- --ffe-v-lists-description-description-color: var(--ffe-farge-svart);
5
- --ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-skog);
6
- --ffe-v-lists-check-list-cross-icon-color: var(--ffe-farge-baer);
7
- --ffe-v-detail-list-card-background-color: var(--ffe-farge-hvit);
8
- --ffe-v-detail-list-card-border-color: var(--ffe-farge-lysgraa);
9
- --ffe-v-detail-list-card-border-radius: 16px;
10
-
11
- @media (prefers-color-scheme: dark) {
12
- .regard-color-scheme-preference {
13
- --ffe-v-lists-title-color: var(--ffe-farge-hvit);
14
- --ffe-v-lists-description-description-color: var(
15
- --ffe-farge-lysgraa
16
- );
17
- --ffe-v-lists-check-list-check-icon-color: var(--ffe-farge-skog-70);
18
- --ffe-v-detail-list-card-background-color: var(--ffe-farge-natt);
19
- --ffe-v-detail-list-card-border-color: var(--ffe-farge-moerkgraa);
20
- }
21
- }
22
- }