@navikt/ds-css 7.8.0 → 7.9.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/CHANGELOG.md +23 -0
- package/button.css +9 -1
- package/config/bundle.darkside.ts +270 -0
- package/config/tests/bundle.test.ts +46 -0
- package/darkside/baseline/{utilities.darkside.css → baseline.darkside.css} +9 -0
- package/darkside/baseline/tokens.darkside.css +1 -0
- package/darkside/button.darkside.css +10 -2
- package/darkside/copybutton.darkside.css +1 -1
- package/darkside/dropdown.darkside.css +1 -1
- package/darkside/form/combobox.darkside.css +1 -1
- package/darkside/form/fieldset.darkside.css +1 -1
- package/darkside/form/form.darkside.css +2 -15
- package/darkside/form/radio-checkbox.darkside.css +1 -1
- package/darkside/form/search.darkside.css +2 -2
- package/darkside/form/switch.darkside.css +1 -1
- package/darkside/index.css +9 -11
- package/darkside/link.darkside.css +2 -2
- package/darkside/tag.darkside.css +85 -147
- package/darkside/timeline.darkside.css +118 -211
- package/darkside/toggle-group.darkside.css +19 -9
- package/darkside/tooltip.darkside.css +82 -57
- package/darkside/typography.darkside.css +12 -12
- package/dist/component/button.css +9 -1
- package/dist/component/button.min.css +2 -2
- package/dist/component/form.css +37 -37
- package/dist/component/form.min.css +1 -1
- package/dist/component/link.css +1 -1
- package/dist/component/link.min.css +1 -1
- package/dist/component/table.css +1 -1
- package/dist/component/table.min.css +1 -1
- package/dist/component/tag.css +12 -6
- package/dist/component/tag.min.css +1 -1
- package/dist/component/typography.css +12 -0
- package/dist/component/typography.min.css +1 -1
- package/dist/components.css +73 -48
- package/dist/components.min.css +3 -3
- package/dist/darkside/component/accordion.css +174 -0
- package/dist/darkside/component/accordion.min.css +1 -0
- package/dist/darkside/component/actionmenu.css +182 -0
- package/dist/darkside/component/actionmenu.min.css +1 -0
- package/dist/darkside/component/alert.css +105 -0
- package/dist/darkside/component/alert.min.css +1 -0
- package/dist/darkside/component/button.css +279 -0
- package/dist/darkside/component/button.min.css +1 -0
- package/dist/darkside/component/chat.css +103 -0
- package/dist/darkside/component/chat.min.css +1 -0
- package/dist/darkside/component/chips.css +176 -0
- package/dist/darkside/component/chips.min.css +1 -0
- package/dist/darkside/component/copybutton.css +176 -0
- package/dist/darkside/component/copybutton.min.css +1 -0
- package/dist/darkside/component/date.css +262 -0
- package/dist/darkside/component/date.min.css +1 -0
- package/dist/darkside/component/dropdown.css +92 -0
- package/dist/darkside/component/dropdown.min.css +1 -0
- package/dist/darkside/component/expansioncard.css +167 -0
- package/dist/darkside/component/expansioncard.min.css +1 -0
- package/dist/darkside/component/form.css +1862 -0
- package/dist/darkside/component/form.min.css +1 -0
- package/dist/darkside/component/guidepanel.css +113 -0
- package/dist/darkside/component/guidepanel.min.css +1 -0
- package/dist/darkside/component/helptext.css +53 -0
- package/dist/darkside/component/helptext.min.css +1 -0
- package/dist/darkside/component/internalheader.css +100 -0
- package/dist/darkside/component/internalheader.min.css +1 -0
- package/dist/darkside/component/link.css +60 -0
- package/dist/darkside/component/link.min.css +1 -0
- package/dist/darkside/component/linkpanel.css +48 -0
- package/dist/darkside/component/linkpanel.min.css +1 -0
- package/dist/darkside/component/list.css +88 -0
- package/dist/darkside/component/list.min.css +1 -0
- package/dist/darkside/component/loader.css +119 -0
- package/dist/darkside/component/loader.min.css +1 -0
- package/dist/darkside/component/modal.css +175 -0
- package/dist/darkside/component/modal.min.css +1 -0
- package/dist/darkside/component/pagination.css +43 -0
- package/dist/darkside/component/pagination.min.css +1 -0
- package/dist/darkside/component/panel.css +12 -0
- package/dist/darkside/component/panel.min.css +1 -0
- package/dist/darkside/component/popover.css +18 -0
- package/dist/darkside/component/popover.min.css +1 -0
- package/dist/darkside/component/primitives.css +1291 -0
- package/dist/darkside/component/primitives.min.css +1 -0
- package/dist/darkside/component/progressbar.css +106 -0
- package/dist/darkside/component/progressbar.min.css +1 -0
- package/dist/darkside/component/readmore.css +95 -0
- package/dist/darkside/component/readmore.min.css +1 -0
- package/dist/darkside/component/skeleton.css +66 -0
- package/dist/darkside/component/skeleton.min.css +1 -0
- package/dist/darkside/component/stepper.css +234 -0
- package/dist/darkside/component/stepper.min.css +1 -0
- package/dist/darkside/component/table.css +225 -0
- package/dist/darkside/component/table.min.css +1 -0
- package/dist/darkside/component/tabs.css +138 -0
- package/dist/darkside/component/tabs.min.css +1 -0
- package/dist/darkside/component/tag.css +128 -0
- package/dist/darkside/component/tag.min.css +1 -0
- package/dist/darkside/component/theme.css +17 -0
- package/dist/darkside/component/theme.min.css +1 -0
- package/dist/darkside/component/timeline.css +338 -0
- package/dist/darkside/component/timeline.min.css +1 -0
- package/dist/darkside/component/togglegroup.css +116 -0
- package/dist/darkside/component/togglegroup.min.css +1 -0
- package/dist/darkside/component/tooltip.css +108 -0
- package/dist/darkside/component/tooltip.min.css +1 -0
- package/dist/darkside/component/typography.css +254 -0
- package/dist/darkside/component/typography.min.css +1 -0
- package/dist/darkside/components.css +7493 -0
- package/dist/darkside/components.min.css +1 -0
- package/dist/darkside/global/baseline.css +47 -0
- package/dist/darkside/global/baseline.min.css +1 -0
- package/dist/darkside/global/fonts.css +109 -0
- package/dist/darkside/global/fonts.min.css +1 -0
- package/dist/darkside/global/print.css +52 -0
- package/dist/darkside/global/print.min.css +1 -0
- package/dist/darkside/global/reset.css +93 -0
- package/dist/darkside/global/reset.min.css +1 -0
- package/dist/darkside/global/tokens.css +896 -0
- package/dist/darkside/global/tokens.min.css +1 -0
- package/dist/darkside/index.css +8693 -0
- package/dist/darkside/index.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/accordion.css +174 -0
- package/dist/darkside/version/7.9.0/component/accordion.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/actionmenu.css +182 -0
- package/dist/darkside/version/7.9.0/component/actionmenu.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/alert.css +105 -0
- package/dist/darkside/version/7.9.0/component/alert.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/button.css +279 -0
- package/dist/darkside/version/7.9.0/component/button.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/chat.css +103 -0
- package/dist/darkside/version/7.9.0/component/chat.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/chips.css +176 -0
- package/dist/darkside/version/7.9.0/component/chips.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/copybutton.css +176 -0
- package/dist/darkside/version/7.9.0/component/copybutton.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/date.css +262 -0
- package/dist/darkside/version/7.9.0/component/date.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/dropdown.css +92 -0
- package/dist/darkside/version/7.9.0/component/dropdown.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/expansioncard.css +167 -0
- package/dist/darkside/version/7.9.0/component/expansioncard.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/form.css +1862 -0
- package/dist/darkside/version/7.9.0/component/form.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/guidepanel.css +113 -0
- package/dist/darkside/version/7.9.0/component/guidepanel.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/helptext.css +53 -0
- package/dist/darkside/version/7.9.0/component/helptext.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/internalheader.css +100 -0
- package/dist/darkside/version/7.9.0/component/internalheader.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/link.css +60 -0
- package/dist/darkside/version/7.9.0/component/link.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/linkpanel.css +48 -0
- package/dist/darkside/version/7.9.0/component/linkpanel.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/list.css +88 -0
- package/dist/darkside/version/7.9.0/component/list.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/loader.css +119 -0
- package/dist/darkside/version/7.9.0/component/loader.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/modal.css +175 -0
- package/dist/darkside/version/7.9.0/component/modal.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/pagination.css +43 -0
- package/dist/darkside/version/7.9.0/component/pagination.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/panel.css +12 -0
- package/dist/darkside/version/7.9.0/component/panel.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/popover.css +18 -0
- package/dist/darkside/version/7.9.0/component/popover.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/primitives.css +1291 -0
- package/dist/darkside/version/7.9.0/component/primitives.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/progressbar.css +106 -0
- package/dist/darkside/version/7.9.0/component/progressbar.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/readmore.css +95 -0
- package/dist/darkside/version/7.9.0/component/readmore.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/skeleton.css +66 -0
- package/dist/darkside/version/7.9.0/component/skeleton.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/stepper.css +234 -0
- package/dist/darkside/version/7.9.0/component/stepper.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/table.css +225 -0
- package/dist/darkside/version/7.9.0/component/table.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/tabs.css +138 -0
- package/dist/darkside/version/7.9.0/component/tabs.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/tag.css +128 -0
- package/dist/darkside/version/7.9.0/component/tag.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/theme.css +17 -0
- package/dist/darkside/version/7.9.0/component/theme.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/timeline.css +338 -0
- package/dist/darkside/version/7.9.0/component/timeline.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/togglegroup.css +116 -0
- package/dist/darkside/version/7.9.0/component/togglegroup.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/tooltip.css +108 -0
- package/dist/darkside/version/7.9.0/component/tooltip.min.css +1 -0
- package/dist/darkside/version/7.9.0/component/typography.css +254 -0
- package/dist/darkside/version/7.9.0/component/typography.min.css +1 -0
- package/dist/darkside/version/7.9.0/components.css +7493 -0
- package/dist/darkside/version/7.9.0/components.min.css +1 -0
- package/dist/darkside/version/7.9.0/global/baseline.css +47 -0
- package/dist/darkside/version/7.9.0/global/baseline.min.css +1 -0
- package/dist/darkside/version/7.9.0/global/fonts.css +109 -0
- package/dist/darkside/version/7.9.0/global/fonts.min.css +1 -0
- package/dist/darkside/version/7.9.0/global/print.css +52 -0
- package/dist/darkside/version/7.9.0/global/print.min.css +1 -0
- package/dist/darkside/version/7.9.0/global/reset.css +93 -0
- package/dist/darkside/version/7.9.0/global/reset.min.css +1 -0
- package/dist/darkside/version/7.9.0/global/tokens.css +896 -0
- package/dist/darkside/version/7.9.0/global/tokens.min.css +1 -0
- package/dist/darkside/version/7.9.0/index.css +8693 -0
- package/dist/darkside/version/7.9.0/index.min.css +1 -0
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +74 -49
- package/dist/index.min.css +4 -4
- package/form/form.css +0 -13
- package/form/select.css +5 -1
- package/form/switch.css +30 -19
- package/form/textarea.css +3 -6
- package/link.css +1 -1
- package/package.json +23 -9
- package/table.css +1 -1
- package/tag.css +12 -6
- package/tokens.json +3 -3
- package/typography.css +12 -0
- package/darkside/index copy.css +0 -37
- package/dist/component/index.css +0 -10103
- package/dist/component/index.min.css +0 -9
- /package/darkside/{baseline/theme.darkside.css → theme.darkside.css} +0 -0
package/form/form.css
CHANGED
|
@@ -17,19 +17,6 @@
|
|
|
17
17
|
color: var(--ac-form-description, var(--__ac-form-description, var(--a-text-subtle)));
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
.navds-form-field .navds-error-message,
|
|
21
|
-
.navds-fieldset .navds-error-message,
|
|
22
|
-
.navds-file-item .navds-error-message {
|
|
23
|
-
display: flex;
|
|
24
|
-
gap: var(--a-spacing-2);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.navds-form-field .navds-error-message::before,
|
|
28
|
-
.navds-fieldset .navds-error-message::before,
|
|
29
|
-
.navds-file-item .navds-error-message::before {
|
|
30
|
-
content: "•";
|
|
31
|
-
}
|
|
32
|
-
|
|
33
20
|
.navds-form-field--disabled {
|
|
34
21
|
opacity: 0.3;
|
|
35
22
|
cursor: not-allowed;
|
package/form/select.css
CHANGED
|
@@ -73,11 +73,15 @@
|
|
|
73
73
|
/**
|
|
74
74
|
Error handling
|
|
75
75
|
*/
|
|
76
|
-
.navds-select--error > *
|
|
76
|
+
.navds-select--error > * .navds-select__input:not(:hover, :disabled) {
|
|
77
77
|
box-shadow: 0 0 0 1px var(--ac-select-error-border, var(--a-surface-danger));
|
|
78
78
|
border-color: var(--ac-select-error-border, var(--a-surface-danger));
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
+
.navds-select--error .navds-select__input:focus {
|
|
82
|
+
box-shadow: var(--a-shadow-focus);
|
|
83
|
+
}
|
|
84
|
+
|
|
81
85
|
/**
|
|
82
86
|
Disabled
|
|
83
87
|
*/
|
package/form/switch.css
CHANGED
|
@@ -72,12 +72,15 @@
|
|
|
72
72
|
.navds-switch__track {
|
|
73
73
|
width: 2.75rem;
|
|
74
74
|
height: 1.5rem;
|
|
75
|
-
background-color: var(--ac-switch-bg, var(--a-surface-
|
|
75
|
+
background-color: var(--ac-switch-bg, var(--a-surface-default));
|
|
76
|
+
border: 2px solid var(--a-border-default);
|
|
76
77
|
position: absolute;
|
|
77
78
|
top: var(--a-spacing-3);
|
|
78
79
|
left: 0;
|
|
79
80
|
border-radius: var(--a-border-radius-full);
|
|
80
|
-
transition: background-color
|
|
81
|
+
transition-property: background-color, border-color;
|
|
82
|
+
transition-duration: 100ms;
|
|
83
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
.navds-switch--small > .navds-switch__track {
|
|
@@ -92,18 +95,20 @@
|
|
|
92
95
|
|
|
93
96
|
.navds-switch__input:checked ~ .navds-switch__track {
|
|
94
97
|
background-color: var(--ac-switch-checked-bg, var(--a-surface-action-selected));
|
|
98
|
+
border-color: var(--ac-switch-checked-bg, var(--a-surface-action-selected));
|
|
95
99
|
}
|
|
96
100
|
|
|
97
101
|
.navds-switch__input:hover ~ .navds-switch__track {
|
|
98
|
-
background-color: var(--ac-switch-hover-bg, var(--a-surface-
|
|
102
|
+
background-color: var(--ac-switch-hover-bg, var(--a-surface-subtle));
|
|
99
103
|
}
|
|
100
104
|
|
|
101
|
-
.navds-switch__input:hover:checked ~ .navds-switch__track {
|
|
105
|
+
.navds-switch__input:hover:checked:not(:disabled) ~ .navds-switch__track {
|
|
102
106
|
background-color: var(--ac-switch-checked-hover-bg, var(--a-surface-action-selected-hover));
|
|
107
|
+
border-color: var(--ac-switch-checked-hover-bg, var(--a-surface-action-selected-hover));
|
|
103
108
|
}
|
|
104
109
|
|
|
105
110
|
.navds-switch__input:disabled ~ .navds-switch__track {
|
|
106
|
-
background-color: var(--ac-switch-bg, var(--a-surface-
|
|
111
|
+
background-color: var(--ac-switch-bg, var(--a-surface-default));
|
|
107
112
|
}
|
|
108
113
|
|
|
109
114
|
.navds-switch__input:checked:disabled ~ .navds-switch__track {
|
|
@@ -129,15 +134,15 @@
|
|
|
129
134
|
|
|
130
135
|
/* Thumb */
|
|
131
136
|
.navds-switch__thumb {
|
|
132
|
-
background-color: var(--ac-switch-thumb-bg, var(--a-surface-
|
|
137
|
+
background-color: var(--ac-switch-thumb-bg, var(--a-surface-neutral));
|
|
133
138
|
color: var(--ac-switch-thumb-icon, var(--a-icon-subtle));
|
|
134
139
|
border-radius: var(--a-border-radius-full);
|
|
135
|
-
width: 1.
|
|
136
|
-
height: 1.
|
|
140
|
+
width: 1.125rem;
|
|
141
|
+
height: 1.125rem;
|
|
137
142
|
position: absolute;
|
|
138
143
|
transform: translateX(0);
|
|
139
|
-
left:
|
|
140
|
-
top:
|
|
144
|
+
left: 0.0625rem;
|
|
145
|
+
top: 0.0625rem;
|
|
141
146
|
transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
142
147
|
display: flex;
|
|
143
148
|
align-items: center;
|
|
@@ -147,6 +152,11 @@
|
|
|
147
152
|
.navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
148
153
|
transform: translateX(1.25rem);
|
|
149
154
|
color: var(--ac-switch-thumb-icon-checked, var(--a-icon-action-selected));
|
|
155
|
+
background-color: var(--a-surface-default);
|
|
156
|
+
width: 1.25rem;
|
|
157
|
+
height: 1.25rem;
|
|
158
|
+
left: 0;
|
|
159
|
+
top: 0;
|
|
150
160
|
}
|
|
151
161
|
|
|
152
162
|
.navds-switch__input:checked ~ .navds-switch__track .navds-switch__checkmark {
|
|
@@ -195,6 +205,7 @@
|
|
|
195
205
|
.navds-switch--readonly > .navds-switch__input:checked ~ .navds-switch__track,
|
|
196
206
|
.navds-switch--readonly > .navds-switch__input:checked:hover ~ .navds-switch__track {
|
|
197
207
|
background-color: var(--a-surface-neutral-moderate);
|
|
208
|
+
border-color: var(--a-border-subtle);
|
|
198
209
|
}
|
|
199
210
|
|
|
200
211
|
.navds-switch--readonly > .navds-switch__label-wrapper,
|
|
@@ -212,12 +223,12 @@
|
|
|
212
223
|
}
|
|
213
224
|
|
|
214
225
|
.navds-switch--readonly .navds-switch__thumb {
|
|
215
|
-
background-color: var(--a-surface-
|
|
216
|
-
box-shadow: 0 0 0 2px var(--a-border-default);
|
|
226
|
+
background-color: var(--a-surface-neutral);
|
|
217
227
|
}
|
|
218
228
|
|
|
219
229
|
.navds-switch--readonly > .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
220
|
-
color: var(--a-icon-
|
|
230
|
+
color: var(--a-icon-on-neutral);
|
|
231
|
+
background-color: var(--a-surface-neutral);
|
|
221
232
|
}
|
|
222
233
|
|
|
223
234
|
@media (hover: hover) and (pointer: fine) {
|
|
@@ -237,7 +248,9 @@
|
|
|
237
248
|
}
|
|
238
249
|
|
|
239
250
|
.navds-switch__thumb,
|
|
240
|
-
.navds-switch--readonly .navds-switch__thumb
|
|
251
|
+
.navds-switch--readonly .navds-switch__thumb,
|
|
252
|
+
.navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb,
|
|
253
|
+
.navds-switch--readonly .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
241
254
|
background-color: fieldtext;
|
|
242
255
|
}
|
|
243
256
|
|
|
@@ -246,11 +259,8 @@
|
|
|
246
259
|
color: field;
|
|
247
260
|
}
|
|
248
261
|
|
|
249
|
-
.navds-switch__track {
|
|
250
|
-
|
|
251
|
-
height: calc(1.5rem + 4px);
|
|
252
|
-
top: var(--a-spacing-3);
|
|
253
|
-
border: 2px solid fieldtext;
|
|
262
|
+
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
263
|
+
background-color: graytext;
|
|
254
264
|
}
|
|
255
265
|
|
|
256
266
|
.navds-switch__input:focus-visible ~ .navds-switch__track {
|
|
@@ -264,6 +274,7 @@
|
|
|
264
274
|
|
|
265
275
|
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__thumb {
|
|
266
276
|
background-color: graytext;
|
|
277
|
+
border-color: graytext;
|
|
267
278
|
}
|
|
268
279
|
|
|
269
280
|
.navds-switch--disabled:not(.navds-switch--loading) .navds-switch__track {
|
package/form/textarea.css
CHANGED
|
@@ -111,16 +111,13 @@
|
|
|
111
111
|
/**
|
|
112
112
|
Error handling
|
|
113
113
|
*/
|
|
114
|
-
.navds-textarea--error .navds-textarea__input:not(:hover, :
|
|
114
|
+
.navds-textarea--error .navds-textarea__input:not(:hover, :disabled) {
|
|
115
115
|
box-shadow: 0 0 0 1px var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
116
116
|
border-color: var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
box-shadow: 0 0 0 1px var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
122
|
-
border-color: var(--ac-textarea-error-border, var(--__ac-textarea-error-border, var(--a-border-danger)));
|
|
123
|
-
}
|
|
119
|
+
.navds-textarea--error .navds-textarea__input:focus-visible {
|
|
120
|
+
box-shadow: var(--a-shadow-focus);
|
|
124
121
|
}
|
|
125
122
|
|
|
126
123
|
.navds-textarea__input:disabled {
|
package/link.css
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@navikt/ds-css",
|
|
3
|
-
"version": "7.
|
|
4
|
-
"description": "CSS for
|
|
5
|
-
"author": "Aksel |
|
|
3
|
+
"version": "7.9.0",
|
|
4
|
+
"description": "CSS for Nav Designsystem",
|
|
5
|
+
"author": "Aksel | Nav designsystem team",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"css"
|
|
8
8
|
],
|
|
@@ -20,29 +20,43 @@
|
|
|
20
20
|
"type": "git",
|
|
21
21
|
"url": "git+https://github.com/navikt/aksel.git"
|
|
22
22
|
},
|
|
23
|
-
"main": "./dist/index.css",
|
|
24
23
|
"scripts": {
|
|
25
|
-
"build": "node config/bundle.js",
|
|
24
|
+
"build": "node config/bundle.js && yarn build:darkside",
|
|
26
25
|
"watch": "nodemon --ignore dist -e css --watch . --exec \"yarn build\"",
|
|
27
|
-
"css:get-version": "node config/get-version.js"
|
|
26
|
+
"css:get-version": "node config/get-version.js",
|
|
27
|
+
"build:darkside": "tsx ./config/bundle.darkside.ts",
|
|
28
|
+
"test": "yarn build && vitest run"
|
|
28
29
|
},
|
|
29
30
|
"devDependencies": {
|
|
30
|
-
"@navikt/ds-tokens": "^7.
|
|
31
|
+
"@navikt/ds-tokens": "^7.9.0",
|
|
32
|
+
"@types/clean-css": "4.2.11",
|
|
31
33
|
"autoprefixer": "^10.4.20",
|
|
34
|
+
"browserslist": "^4.24.2",
|
|
35
|
+
"clean-css": "5.3.3",
|
|
32
36
|
"cssnano": "6.0.0",
|
|
33
37
|
"fast-glob": "3.2.11",
|
|
38
|
+
"lightningcss": "^1.28.0",
|
|
34
39
|
"lodash": "^4.17.21",
|
|
35
40
|
"nodemon": "^3.0.1",
|
|
36
41
|
"normalize.css": "^8.0.1",
|
|
37
42
|
"postcss": "^8.4.31",
|
|
38
43
|
"postcss-cli": "^9.0.0",
|
|
39
44
|
"postcss-combine-duplicated-selectors": "10.0.3",
|
|
40
|
-
"postcss-import": "^14.1.0"
|
|
45
|
+
"postcss-import": "^14.1.0",
|
|
46
|
+
"tsx": "^4.7.1",
|
|
47
|
+
"vitest": "^1.2.2"
|
|
41
48
|
},
|
|
42
49
|
"browserslist": [
|
|
43
50
|
">0.2%",
|
|
44
51
|
"not dead",
|
|
45
52
|
"not ie <= 11",
|
|
46
53
|
"not op_mini all"
|
|
47
|
-
]
|
|
54
|
+
],
|
|
55
|
+
"main": "./dist/index.css",
|
|
56
|
+
"exports": {
|
|
57
|
+
".": "./dist/index.css",
|
|
58
|
+
"./dist/*": "./dist/*",
|
|
59
|
+
"./darkside": "./dist/darkside/index.min.css",
|
|
60
|
+
"./tokens.json": "./tokens.json"
|
|
61
|
+
}
|
|
48
62
|
}
|
package/table.css
CHANGED
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
transition: transform 150ms ease-in-out;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
.navds-table__toggle-expand-cell:hover {
|
|
209
|
+
.navds-table__expandable-row:not(.navds-table__expandable-row--expansion-disabled) .navds-table__toggle-expand-cell:hover {
|
|
210
210
|
cursor: pointer;
|
|
211
211
|
}
|
|
212
212
|
|
package/tag.css
CHANGED
|
@@ -127,37 +127,43 @@
|
|
|
127
127
|
color: var(--ac-tag-neutral-moderate-text, var(--a-text-default));
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.navds-tag--alt1
|
|
130
|
+
.navds-tag--alt1,
|
|
131
|
+
.navds-tag--outline.navds-tag--meta-purple {
|
|
131
132
|
border-color: var(--ac-tag-alt-1-border, var(--a-border-alt-1));
|
|
132
133
|
background-color: var(--ac-tag-alt-1-bg, var(--a-surface-alt-1-subtle));
|
|
133
134
|
color: var(--ac-tag-alt-1-text, var(--a-text-default));
|
|
134
135
|
}
|
|
135
136
|
|
|
136
|
-
.navds-tag--alt1-filled
|
|
137
|
+
.navds-tag--alt1-filled,
|
|
138
|
+
.navds-tag--strong.navds-tag--meta-purple {
|
|
137
139
|
border-color: transparent;
|
|
138
140
|
background-color: var(--ac-tag-alt-1-filled-bg, var(--a-surface-alt-1));
|
|
139
141
|
color: var(--ac-tag-alt-1-filled-text, var(--a-text-on-alt-1));
|
|
140
142
|
}
|
|
141
143
|
|
|
142
|
-
.navds-tag--alt1-moderate
|
|
144
|
+
.navds-tag--alt1-moderate,
|
|
145
|
+
.navds-tag--moderate.navds-tag--meta-purple {
|
|
143
146
|
border-color: transparent;
|
|
144
147
|
background-color: var(--ac-tag-alt-1-moderate-bg, var(--a-surface-alt-1-moderate));
|
|
145
148
|
color: var(--ac-tag-alt-1-moderate-text, var(--a-text-default));
|
|
146
149
|
}
|
|
147
150
|
|
|
148
|
-
.navds-tag--alt2
|
|
151
|
+
.navds-tag--alt2,
|
|
152
|
+
.navds-tag--outline.navds-tag--meta-lime {
|
|
149
153
|
border-color: var(--ac-tag-alt-2-border, var(--a-border-alt-2));
|
|
150
154
|
background-color: var(--ac-tag-alt-2-bg, var(--a-surface-alt-2-subtle));
|
|
151
155
|
color: var(--ac-tag-alt-2-text, var(--a-text-default));
|
|
152
156
|
}
|
|
153
157
|
|
|
154
|
-
.navds-tag--alt2-filled
|
|
158
|
+
.navds-tag--alt2-filled,
|
|
159
|
+
.navds-tag--strong.navds-tag--meta-lime {
|
|
155
160
|
border-color: transparent;
|
|
156
161
|
background-color: var(--ac-tag-alt-2-filled-bg, var(--a-surface-alt-2));
|
|
157
162
|
color: var(--ac-tag-alt-2-filled-text, var(--a-text-on-alt-2));
|
|
158
163
|
}
|
|
159
164
|
|
|
160
|
-
.navds-tag--alt2-moderate
|
|
165
|
+
.navds-tag--alt2-moderate,
|
|
166
|
+
.navds-tag--moderate.navds-tag--meta-lime {
|
|
161
167
|
border-color: transparent;
|
|
162
168
|
background-color: var(--ac-tag-alt-2-moderate-bg, var(--a-surface-alt-2-moderate));
|
|
163
169
|
color: var(--ac-tag-alt-2-moderate-text, var(--a-text-default));
|
package/tokens.json
CHANGED
|
@@ -411,11 +411,11 @@
|
|
|
411
411
|
},
|
|
412
412
|
"switch": {
|
|
413
413
|
"--ac-switch-action": "--a-surface-action-selected",
|
|
414
|
-
"--ac-switch-bg": "--a-surface-
|
|
414
|
+
"--ac-switch-bg": "--a-surface-default",
|
|
415
415
|
"--ac-switch-checked-bg": "--a-surface-action-selected",
|
|
416
|
-
"--ac-switch-hover-bg": "--a-surface-
|
|
416
|
+
"--ac-switch-hover-bg": "--a-surface-subtle",
|
|
417
417
|
"--ac-switch-checked-hover-bg": "--a-surface-action-selected-hover",
|
|
418
|
-
"--ac-switch-thumb-bg": "--a-surface-
|
|
418
|
+
"--ac-switch-thumb-bg": "--a-surface-neutral",
|
|
419
419
|
"--ac-switch-thumb-icon": "--a-icon-subtle",
|
|
420
420
|
"--ac-switch-thumb-icon-checked": "--a-icon-action-selected"
|
|
421
421
|
},
|
package/typography.css
CHANGED
|
@@ -216,6 +216,18 @@
|
|
|
216
216
|
color: var(--ac-typo-error-text, var(--__ac-typo-error-text, var(--a-text-danger)));
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
+
.navds-error-message.navds-error-message--show-icon {
|
|
220
|
+
display: flex;
|
|
221
|
+
gap: var(--a-spacing-1);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.navds-error-message.navds-error-message--show-icon svg {
|
|
225
|
+
margin-top: 0.15em;
|
|
226
|
+
flex: 0 0 auto;
|
|
227
|
+
width: 1em;
|
|
228
|
+
height: 1em;
|
|
229
|
+
}
|
|
230
|
+
|
|
219
231
|
.navds-typo--truncate {
|
|
220
232
|
overflow: hidden;
|
|
221
233
|
white-space: nowrap;
|
package/darkside/index copy.css
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
|
|
3
|
-
@import "baseline/index.css";
|
|
4
|
-
@import "typography.css";
|
|
5
|
-
@import "accordion.css";
|
|
6
|
-
@import "alert.css";
|
|
7
|
-
@import "button.css";
|
|
8
|
-
@import "chat.css";
|
|
9
|
-
@import "chips.css";
|
|
10
|
-
@import "copybutton.css";
|
|
11
|
-
@import "dropdown.css";
|
|
12
|
-
@import "action-menu.css";
|
|
13
|
-
@import "expansioncard.css";
|
|
14
|
-
@import "guide-panel.css";
|
|
15
|
-
@import "form/index.css";
|
|
16
|
-
@import "help-text.css";
|
|
17
|
-
@import "internalheader.css";
|
|
18
|
-
@import "link.css";
|
|
19
|
-
@import "loader.css";
|
|
20
|
-
@import "modal.css";
|
|
21
|
-
@import "pagination.css";
|
|
22
|
-
@import "popover.css";
|
|
23
|
-
@import "date.css";
|
|
24
|
-
@import "tag.css";
|
|
25
|
-
@import "timeline.css";
|
|
26
|
-
@import "tooltip.css";
|
|
27
|
-
@import "toggle-group.css";
|
|
28
|
-
@import "panel.css";
|
|
29
|
-
@import "link-panel.css";
|
|
30
|
-
@import "read-more.css";
|
|
31
|
-
@import "progress-bar.css";
|
|
32
|
-
@import "skeleton.css";
|
|
33
|
-
@import "stepper.css";
|
|
34
|
-
@import "table.css";
|
|
35
|
-
@import "tabs.css";
|
|
36
|
-
@import "list.css";
|
|
37
|
-
@import "primitives/index.css";
|