@navikt/ds-css 8.10.2 → 8.10.4

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 (68) hide show
  1. package/dist/component/accordion.css +6 -21
  2. package/dist/component/accordion.min.css +1 -1
  3. package/dist/component/actionmenu.css +1 -9
  4. package/dist/component/alert.css +6 -16
  5. package/dist/component/alert.min.css +1 -1
  6. package/dist/component/button.css +5 -66
  7. package/dist/component/button.min.css +1 -1
  8. package/dist/component/chat.css +3 -19
  9. package/dist/component/chat.min.css +1 -1
  10. package/dist/component/date.css +11 -66
  11. package/dist/component/date.min.css +1 -1
  12. package/dist/component/dialog.css +15 -57
  13. package/dist/component/dialog.min.css +1 -1
  14. package/dist/component/dropdown.css +1 -2
  15. package/dist/component/dropdown.min.css +1 -1
  16. package/dist/component/expansioncard.css +5 -27
  17. package/dist/component/expansioncard.min.css +1 -1
  18. package/dist/component/form.css +26 -208
  19. package/dist/component/form.min.css +1 -1
  20. package/dist/component/guidepanel.css +3 -19
  21. package/dist/component/guidepanel.min.css +1 -1
  22. package/dist/component/helptext.css +1 -5
  23. package/dist/component/helptext.min.css +1 -1
  24. package/dist/component/inlinemessage.css +1 -1
  25. package/dist/component/inlinemessage.min.css +1 -1
  26. package/dist/component/internalheader.css +1 -10
  27. package/dist/component/internalheader.min.css +1 -1
  28. package/dist/component/link.css +1 -5
  29. package/dist/component/linkanchor.css +2 -10
  30. package/dist/component/linkcard.css +8 -55
  31. package/dist/component/linkcard.min.css +1 -1
  32. package/dist/component/list.css +3 -3
  33. package/dist/component/list.min.css +1 -1
  34. package/dist/component/modal.css +3 -16
  35. package/dist/component/modal.min.css +1 -1
  36. package/dist/component/primitives.css +4 -18
  37. package/dist/component/primitives.min.css +1 -1
  38. package/dist/component/process.css +10 -53
  39. package/dist/component/process.min.css +1 -1
  40. package/dist/component/skeleton.css +0 -1
  41. package/dist/component/skeleton.min.css +1 -1
  42. package/dist/component/stepper.css +2 -22
  43. package/dist/component/stepper.min.css +1 -1
  44. package/dist/component/table.css +1 -22
  45. package/dist/component/table.min.css +1 -1
  46. package/dist/component/tabs.css +3 -3
  47. package/dist/component/tabs.min.css +1 -1
  48. package/dist/component/tag.css +1 -12
  49. package/dist/component/tag.min.css +1 -1
  50. package/dist/component/timeline.css +2 -12
  51. package/dist/component/timeline.min.css +1 -1
  52. package/dist/component/togglegroup.css +0 -1
  53. package/dist/component/togglegroup.min.css +1 -1
  54. package/dist/components.css +125 -759
  55. package/dist/components.min.css +1 -1
  56. package/dist/global/tokens.css +1 -1
  57. package/dist/global/tokens.min.css +1 -1
  58. package/dist/index.css +126 -760
  59. package/dist/index.min.css +1 -1
  60. package/package.json +13 -7
  61. package/src/data-table.css +72 -4
  62. package/types.d.ts +1 -0
  63. package/.gitignore +0 -1
  64. package/CHANGELOG.md +0 -1574
  65. package/config/_mappings.d.ts +0 -25
  66. package/config/_mappings.js +0 -264
  67. package/config/bundle.ts +0 -279
  68. package/config/get-version.js +0 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@navikt/ds-css",
3
- "version": "8.10.2",
3
+ "version": "8.10.4",
4
4
  "description": "CSS for Nav Designsystem",
5
5
  "author": "Aksel | Nav designsystem team",
6
6
  "keywords": [
@@ -14,7 +14,9 @@
14
14
  "files": [
15
15
  "*",
16
16
  "!dist/version",
17
- "!config/bundle.js"
17
+ "!config",
18
+ "!.gitignore",
19
+ "!CHANGELOG.md"
18
20
  ],
19
21
  "repository": {
20
22
  "type": "git",
@@ -30,7 +32,7 @@
30
32
  "css:get-version": "node config/get-version.js"
31
33
  },
32
34
  "devDependencies": {
33
- "@navikt/ds-tokens": "^8.10.2",
35
+ "@navikt/ds-tokens": "^8.10.4",
34
36
  "browserslist": "^4.25.0",
35
37
  "esbuild": "^0.27.4",
36
38
  "fast-glob": "3.3.3",
@@ -46,9 +48,13 @@
46
48
  ],
47
49
  "main": "./dist/index.css",
48
50
  "exports": {
49
- ".": "./dist/index.css",
50
- "./dist/*": "./dist/*",
51
- "./tokens.json": "./tokens.json",
52
- "./config/_mappings": "./config/_mappings.js"
51
+ ".": {
52
+ "types": "./types.d.ts",
53
+ "default": "./dist/index.css"
54
+ },
55
+ "./dist/*": {
56
+ "types": "./types.d.ts",
57
+ "default": "./dist/*"
58
+ }
53
59
  }
54
60
  }
@@ -11,6 +11,7 @@
11
11
  overflow: auto;
12
12
  width: 100%;
13
13
  position: relative;
14
+ scroll-timeline: --horizontal-table-scroll inline;
14
15
  }
15
16
 
16
17
  .aksel-data-table {
@@ -104,15 +105,17 @@
104
105
  position: sticky;
105
106
  top: 0;
106
107
  z-index: 3;
108
+ box-shadow: 1px 1px 0 0 var(--ax-border-neutral-subtle);
107
109
 
108
- &::after {
110
+ /* This breaks filler-cells ⬇️. Trying box-shadow instead ⬆️ */
111
+ /* &::after {
109
112
  content: "";
110
113
  position: absolute;
111
114
  inset-inline: 0;
112
115
  bottom: -1px;
113
116
  pointer-events: none;
114
117
  border-bottom: 1px solid var(--ax-border-neutral-subtle);
115
- }
118
+ } */
116
119
  }
117
120
  }
118
121
 
@@ -146,6 +149,27 @@
146
149
  box-shadow: 0 1px 0 0 var(--ax-border-neutral-subtle);
147
150
  }
148
151
 
152
+ @keyframes scroll-shadow-fade-start {
153
+ 0% {
154
+ opacity: 0;
155
+ }
156
+
157
+ 10%,
158
+ 100% {
159
+ opacity: 1;
160
+ }
161
+ }
162
+
163
+ @keyframes scroll-shadow-fade-end {
164
+ 90% {
165
+ opacity: 1;
166
+ }
167
+
168
+ 100% {
169
+ opacity: 0;
170
+ }
171
+ }
172
+
149
173
  .aksel-data-table__cell {
150
174
  /* border doesn't work on sticky thead when we have collapsed borders, so using box-shadow instead */
151
175
  box-shadow: inset 1px 1px 0 0 var(--ax-border-neutral-subtle);
@@ -195,6 +219,24 @@
195
219
  &[data-sticky="start"] {
196
220
  left: 0;
197
221
 
222
+ &::before {
223
+ content: "";
224
+ position: absolute;
225
+ inset: 0;
226
+ width: 100%;
227
+ height: 100%;
228
+ pointer-events: none;
229
+ box-shadow: 4px 0 8px 1px var(--ax-border-neutral-subtleA);
230
+ clip-path: inset(0 -24px 0 0);
231
+ opacity: 0;
232
+ }
233
+
234
+ .aksel-data-table[data-scroll] &::before {
235
+ opacity: 1;
236
+ animation: scroll-shadow-fade-start 1s linear;
237
+ animation-timeline: --horizontal-table-scroll;
238
+ }
239
+
198
240
  &::after {
199
241
  inset-inline: 0 -1px;
200
242
  border-right-width: 1px;
@@ -203,10 +245,32 @@
203
245
 
204
246
  &[data-sticky="end"] {
205
247
  right: 0;
248
+
249
+ &::before {
250
+ content: "";
251
+ position: absolute;
252
+ inset: 0;
253
+ width: 100%;
254
+ height: 100%;
255
+ pointer-events: none;
256
+ box-shadow: -4px 0 8px 1px var(--ax-border-neutral-subtleA);
257
+ clip-path: inset(0 0 0 -24px);
258
+ opacity: 0;
259
+ }
260
+
261
+ .aksel-data-table[data-scroll] &::before {
262
+ opacity: 1;
263
+ animation: scroll-shadow-fade-end 1s linear;
264
+ animation-timeline: --horizontal-table-scroll;
265
+ }
206
266
  }
207
267
 
208
268
  background-color: var(--ax-bg-raised);
209
269
 
270
+ .aksel-data-table__tr[data-selected="true"] & {
271
+ background-color: var(--ax-bg-soft);
272
+ }
273
+
210
274
  .aksel-data-table__thead & {
211
275
  background-color: var(--ax-bg-neutral-soft);
212
276
  }
@@ -234,11 +298,11 @@
234
298
  &:not([data-selectable="true"]) > div {
235
299
  padding-block: var(--__axc-data-table-density);
236
300
  padding-inline: var(--__axc-data-table-pi-cell);
301
+ overflow: hidden;
237
302
 
238
303
  .aksel-data-table[data-truncate-content="true"] & {
239
304
  text-overflow: ellipsis;
240
305
  white-space: nowrap;
241
- overflow: hidden;
242
306
  }
243
307
  }
244
308
  }
@@ -444,9 +508,9 @@
444
508
  }
445
509
 
446
510
  .aksel-data-table__filler-cell {
447
- width: auto;
448
511
  display: table-cell;
449
512
  padding: 0;
513
+ width: auto;
450
514
  }
451
515
 
452
516
  .aksel-data-drag-and-drop__drag-handler__button {
@@ -593,3 +657,7 @@ html[data-dragging-cursor="true"] *::after {
593
657
  display: flex;
594
658
  align-items: center;
595
659
  }
660
+
661
+ .aksel-data-table__details-panel-row {
662
+ box-shadow: inset 1px 1px 0 0 var(--ax-border-neutral-subtle);
663
+ }
package/types.d.ts ADDED
@@ -0,0 +1 @@
1
+ declare module "@navikt/ds-css" {}
package/.gitignore DELETED
@@ -1 +0,0 @@
1
- !*.d.ts