@navikt/ds-css 7.32.4 → 7.32.5
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/CHANGELOG.md +2 -0
- package/config/bundle.darkside.ts +2 -2
- package/config/tests/bundle.test.ts +1 -1
- package/darkside/modal.darkside.css +0 -4
- package/dist/component/modal.css +1 -29
- package/dist/components.css +2 -0
- package/dist/darkside/component/modal.css +0 -4
- package/dist/darkside/component/modal.min.css +1 -1
- package/dist/darkside/components.css +0 -4
- package/dist/darkside/components.min.css +1 -1
- package/dist/darkside/global/tokens.css +1 -1
- package/dist/darkside/global/tokens.min.css +1 -1
- package/dist/darkside/index.css +1 -5
- package/dist/darkside/index.min.css +1 -1
- package/dist/darkside/version/{7.32.4 → 7.32.5}/component/modal.css +0 -4
- package/dist/darkside/version/7.32.5/component/modal.min.css +1 -0
- package/dist/darkside/version/{7.32.4 → 7.32.5}/components.css +0 -4
- package/dist/darkside/version/{7.32.4 → 7.32.5}/components.min.css +1 -1
- package/dist/darkside/version/{7.32.4 → 7.32.5}/global/tokens.css +1 -1
- package/dist/darkside/version/{7.32.4 → 7.32.5}/global/tokens.min.css +1 -1
- package/dist/darkside/version/{7.32.4 → 7.32.5}/index.css +1 -5
- package/dist/darkside/version/{7.32.4 → 7.32.5}/index.min.css +1 -1
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +3 -1
- package/dist/index.min.css +1 -1
- package/modal.css +1 -0
- package/package.json +2 -2
- package/dist/darkside/version/7.32.4/component/modal.min.css +0 -1
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/accordion.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/accordion.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/actionmenu.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/actionmenu.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/alert.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/alert.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/button.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/button.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/chat.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/chat.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/chips.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/chips.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/copybutton.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/copybutton.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/date.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/date.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/dropdown.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/dropdown.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/expansioncard.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/expansioncard.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/form.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/form.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/guidepanel.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/guidepanel.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/helptext.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/helptext.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/internalheader.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/internalheader.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/link.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/link.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/linkanchor.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/linkanchor.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/linkcard.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/linkcard.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/linkpanel.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/linkpanel.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/list.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/list.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/loader.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/loader.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/pagination.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/pagination.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/panel.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/panel.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/popover.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/popover.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/primitives.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/primitives.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/process.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/process.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/progressbar.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/progressbar.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/readmore.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/readmore.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/skeleton.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/skeleton.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/stepper.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/stepper.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/table.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/table.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/tabs.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/tabs.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/tag.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/tag.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/theme.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/theme.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/timeline.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/timeline.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/togglegroup.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/togglegroup.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/tooltip.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/tooltip.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/typography.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/component/typography.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/global/baseline.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/global/baseline.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/global/fonts.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/global/fonts.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/global/print.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/global/print.min.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/global/reset.css +0 -0
- /package/dist/darkside/version/{7.32.4 → 7.32.5}/global/reset.min.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import browserslist from "browserslist";
|
|
2
2
|
import esbuild from "esbuild";
|
|
3
3
|
import fastglob from "fast-glob";
|
|
4
|
-
import fs from "fs";
|
|
5
4
|
import { Features, browserslistToTargets, bundleAsync } from "lightningcss";
|
|
6
|
-
import
|
|
5
|
+
import fs from "node:fs";
|
|
6
|
+
import path from "node:path";
|
|
7
7
|
import {
|
|
8
8
|
StyleMappings,
|
|
9
9
|
componentsCss,
|
package/dist/component/modal.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
/* TODO: Remove in v8 */
|
|
1
2
|
.navds-modal__document-body {
|
|
2
3
|
overflow: hidden;
|
|
3
4
|
}
|
|
4
|
-
|
|
5
5
|
.navds-modal {
|
|
6
6
|
--__ac-modal-bg: var(--ac-modal-bg, var(--a-surface-default));
|
|
7
7
|
|
|
@@ -20,13 +20,11 @@
|
|
|
20
20
|
inset: 0;
|
|
21
21
|
z-index: 9999;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
23
|
.navds-modal[open] {
|
|
25
24
|
display: flex;
|
|
26
25
|
flex-direction: column;
|
|
27
26
|
animation: akselModalFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
28
27
|
}
|
|
29
|
-
|
|
30
28
|
.navds-modal--polyfilled {
|
|
31
29
|
top: 50%;
|
|
32
30
|
bottom: unset; /* Overrides inset: 0 from .navds-modal */
|
|
@@ -39,15 +37,12 @@
|
|
|
39
37
|
height: fit-content;
|
|
40
38
|
margin: auto;
|
|
41
39
|
}
|
|
42
|
-
|
|
43
40
|
.navds-modal--polyfilled .navds-modal--polyfilled {
|
|
44
41
|
overflow: auto;
|
|
45
42
|
}
|
|
46
|
-
|
|
47
43
|
.navds-modal--polyfilled:not([open]) {
|
|
48
44
|
display: none; /* from polyfill */
|
|
49
45
|
}
|
|
50
|
-
|
|
51
46
|
._dialog_overlay {
|
|
52
47
|
/* From polyfill */
|
|
53
48
|
position: fixed;
|
|
@@ -57,15 +52,12 @@
|
|
|
57
52
|
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
|
|
58
53
|
left: 0;
|
|
59
54
|
}
|
|
60
|
-
|
|
61
55
|
.navds-modal--small {
|
|
62
56
|
width: var(--ac-modal-width-small, 450px);
|
|
63
57
|
}
|
|
64
|
-
|
|
65
58
|
.navds-modal--medium {
|
|
66
59
|
width: var(--ac-modal-width-medium, 700px);
|
|
67
60
|
}
|
|
68
|
-
|
|
69
61
|
@media (min-width: 480px) {
|
|
70
62
|
.navds-modal {
|
|
71
63
|
max-width: calc(100% - 2em);
|
|
@@ -75,7 +67,6 @@
|
|
|
75
67
|
max-width: min(700px, calc(100% - 2em));
|
|
76
68
|
}
|
|
77
69
|
}
|
|
78
|
-
|
|
79
70
|
@media (min-height: 480px) {
|
|
80
71
|
.navds-modal {
|
|
81
72
|
max-height: calc(100% - 2em);
|
|
@@ -86,7 +77,6 @@
|
|
|
86
77
|
max-height: calc(100% - 4em);
|
|
87
78
|
}
|
|
88
79
|
}
|
|
89
|
-
|
|
90
80
|
.navds-modal::backdrop {
|
|
91
81
|
/*
|
|
92
82
|
* Cannot use --a-surface-backdrop because ::backdrop does not inherit from anything but itself.
|
|
@@ -96,7 +86,6 @@
|
|
|
96
86
|
background: var(--ac-modal-backdrop, rgb(2 20 49 / 0.49));
|
|
97
87
|
animation: akselModalBackdropFadeIn 0.7s cubic-bezier(0.15, 1, 0.3, 1);
|
|
98
88
|
}
|
|
99
|
-
|
|
100
89
|
.navds-modal--polyfilled + .backdrop /* Cannot be combined with ::backdrop selector */ {
|
|
101
90
|
background: var(--ac-modal-backdrop, rgb(2 20 49 / 0.49));
|
|
102
91
|
|
|
@@ -108,38 +97,31 @@
|
|
|
108
97
|
/* stylelint-disable-next-line declaration-block-no-redundant-longhand-properties */
|
|
109
98
|
left: 0;
|
|
110
99
|
}
|
|
111
|
-
|
|
112
100
|
.navds-modal__button {
|
|
113
101
|
margin-left: var(--a-spacing-4);
|
|
114
102
|
float: right;
|
|
115
103
|
}
|
|
116
|
-
|
|
117
104
|
.navds-modal__header {
|
|
118
105
|
padding: var(--a-spacing-6) var(--a-spacing-6) var(--a-spacing-4) var(--a-spacing-6);
|
|
119
106
|
}
|
|
120
|
-
|
|
121
107
|
.navds-modal--small .navds-modal__header {
|
|
122
108
|
padding: var(--a-spacing-4) var(--a-spacing-4) var(--a-spacing-3) var(--a-spacing-4);
|
|
123
109
|
}
|
|
124
|
-
|
|
125
110
|
.navds-modal__header-icon svg {
|
|
126
111
|
display: inline;
|
|
127
112
|
vertical-align: -0.25rem;
|
|
128
113
|
margin-right: var(--a-spacing-1);
|
|
129
114
|
}
|
|
130
|
-
|
|
131
115
|
.navds-modal__label {
|
|
132
116
|
font-weight: 600;
|
|
133
117
|
color: var(--a-text-subtle);
|
|
134
118
|
}
|
|
135
|
-
|
|
136
119
|
.navds-modal__body {
|
|
137
120
|
padding: var(--a-spacing-6);
|
|
138
121
|
overflow: auto;
|
|
139
122
|
overscroll-behavior: contain;
|
|
140
123
|
position: relative; /* Needed to make sr-only elements position correctly - see Storybook */
|
|
141
124
|
}
|
|
142
|
-
|
|
143
125
|
.navds-modal:not(.navds-modal--polyfilled) .navds-modal__body {
|
|
144
126
|
background:
|
|
145
127
|
linear-gradient(var(--__ac-modal-bg) 30%, transparent) top,
|
|
@@ -154,39 +136,31 @@
|
|
|
154
136
|
background-attachment: local, local, scroll, scroll;
|
|
155
137
|
background-repeat: no-repeat;
|
|
156
138
|
}
|
|
157
|
-
|
|
158
139
|
.navds-modal--small .navds-modal__body {
|
|
159
140
|
padding: var(--a-spacing-2) var(--a-spacing-4) var(--a-spacing-4);
|
|
160
141
|
}
|
|
161
|
-
|
|
162
142
|
.navds-modal__header + .navds-modal__body {
|
|
163
143
|
padding-top: var(--a-spacing-0);
|
|
164
144
|
}
|
|
165
|
-
|
|
166
145
|
.navds-modal__footer {
|
|
167
146
|
display: flex;
|
|
168
147
|
flex-flow: row-reverse wrap;
|
|
169
148
|
gap: var(--a-spacing-4);
|
|
170
149
|
padding: var(--a-spacing-4) var(--a-spacing-6) var(--a-spacing-6) var(--a-spacing-6);
|
|
171
150
|
}
|
|
172
|
-
|
|
173
151
|
.navds-modal--small .navds-modal__footer {
|
|
174
152
|
padding: var(--a-spacing-4);
|
|
175
153
|
}
|
|
176
|
-
|
|
177
154
|
.navds-modal__footer :nth-of-type(2) {
|
|
178
155
|
margin-left: auto;
|
|
179
156
|
}
|
|
180
|
-
|
|
181
157
|
/* When Datepicker is used nested inside a Modal */
|
|
182
|
-
|
|
183
158
|
.navds-modal--polyfilled .navds-modal--polyfilled.navds-date__nested-modal {
|
|
184
159
|
min-width: fit-content;
|
|
185
160
|
max-width: 100vw;
|
|
186
161
|
max-height: 100vh;
|
|
187
162
|
animation: none;
|
|
188
163
|
}
|
|
189
|
-
|
|
190
164
|
@keyframes akselModalFadeIn {
|
|
191
165
|
0% {
|
|
192
166
|
opacity: 0.0001; /* Safari will not set focus inside the modal when it opens if we set this to 0 */
|
|
@@ -201,7 +175,6 @@
|
|
|
201
175
|
transform: none;
|
|
202
176
|
}
|
|
203
177
|
}
|
|
204
|
-
|
|
205
178
|
@keyframes akselModalBackdropFadeIn {
|
|
206
179
|
0% {
|
|
207
180
|
opacity: 0.0001;
|
|
@@ -215,7 +188,6 @@
|
|
|
215
188
|
opacity: 1;
|
|
216
189
|
}
|
|
217
190
|
}
|
|
218
|
-
|
|
219
191
|
@media (forced-colors: active) {
|
|
220
192
|
.navds-modal {
|
|
221
193
|
outline: 2px solid transparent;
|
package/dist/components.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer aksel.components{.aksel-
|
|
1
|
+
@layer aksel.components{.aksel-modal{--__axc-modal-bg: var(--ax-bg-raised);background-color:var(--__axc-modal-bg);border:1px solid var(--ax-border-neutral-subtleA);border-radius:var(--ax-radius-12);box-shadow:var(--ax-shadow-dialog);max-width:100%;max-height:100%;color:var(--ax-text-neutral);margin:auto;padding:0;position:fixed}.aksel-modal[open]{flex-direction:column;animation:.7s cubic-bezier(.15,1,.3,1) akselModalFadeIn;display:flex}.aksel-modal--polyfilled{width:fit-content;height:fit-content;margin:auto;top:50%;left:0;right:0;transform:translateY(-50%)}.aksel-modal--polyfilled:not([open]){display:none}.aksel-modal--polyfilled .aksel-modal--polyfilled{overflow:auto}._dialog_overlay{position:fixed;inset:0}.aksel-modal--medium{width:700px}.aksel-modal--small{width:450px}.aksel-modal--small .aksel-modal__header,.aksel-modal--small .aksel-modal__body{padding:var(--ax-space-12) var(--ax-space-16)}.aksel-modal--small .aksel-modal__footer{padding-block:var(--ax-space-12) var(--ax-space-16);padding-inline:var(--ax-space-16)}@media(min-width:480px){.aksel-modal{max-width:calc(100% - 2em)}.aksel-modal--autowidth{max-width:min(700px,100% - 2em)}}@media(min-height:480px){.aksel-modal{max-height:calc(100% - 2em)}.aksel-modal--top{max-height:calc(100% - 4em);margin-top:2em}}.aksel-modal::backdrop{background:#021431cc;animation:.7s cubic-bezier(.15,1,.3,1) akselModalBackdropFadeIn}.aksel-modal--polyfilled+.backdrop{background:#021431cc;position:fixed;inset:0}.aksel-modal__button{margin-left:var(--ax-space-16);float:right}.aksel-modal__header{padding:var(--ax-space-16) var(--ax-space-20)}.aksel-modal__header-icon svg{vertical-align:-.25rem;margin-right:var(--ax-space-4);display:inline}.aksel-modal__label{font-weight:var(--ax-font-weight-bold);color:var(--ax-text-neutral-subtle)}.aksel-modal__body{padding:var(--ax-space-16) var(--ax-space-20);overscroll-behavior:contain;background:linear-gradient(var(--__axc-modal-bg) 30%,transparent) top,linear-gradient(transparent,var(--__axc-modal-bg) 60%) bottom,radial-gradient(farthest-side at 50% 0,rgba(0,0,0,.3),transparent) top,radial-gradient(farthest-side at 50% 100%,rgba(0,0,0,.3),transparent) bottom;background-repeat:no-repeat;background-size:100% 40px,100% 50px,100% 16px,100% 16px;background-attachment:local,local,scroll,scroll;position:relative;overflow:auto}.aksel-modal__header+.aksel-modal__body{padding-top:var(--ax-space-0)}.aksel-modal__footer{gap:var(--ax-space-16);padding-block:var(--ax-space-16) var(--ax-space-20);padding-inline:var(--ax-space-20);flex-flow:row-reverse wrap;display:flex}.aksel-modal__footer :nth-of-type(2){margin-left:auto}.aksel-modal--polyfilled .aksel-modal--polyfilled.aksel-date__nested-modal{min-width:fit-content;max-width:100vw;max-height:100vh;animation:none}@keyframes akselModalFadeIn{0%{opacity:.0001;transform:translate3d(0,4px,0)}50%{opacity:1}to{transform:none}}@keyframes akselModalBackdropFadeIn{0%{opacity:.0001}50%{opacity:1}to{opacity:1}}@media(forced-colors:active){.aksel-modal{outline:2px solid rgba(0,0,0,0)}}}
|