@navikt/ds-css 7.23.2 → 7.25.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/CHANGELOG.md +28 -0
- package/chat.css +0 -3
- package/config/_mappings.js +12 -1
- package/darkside/chat.darkside.css +0 -3
- package/darkside/form/file-upload.darkside.css +0 -4
- package/darkside/form/select.darkside.css +1 -0
- package/darkside/form/switch.darkside.css +27 -12
- package/darkside/form/text-field.darkside.css +1 -0
- package/darkside/form/textarea.darkside.css +1 -0
- package/darkside/index.css +2 -0
- package/darkside/link-anchor.darkside.css +53 -0
- package/darkside/link-card.darkside.css +109 -0
- package/darkside/table.darkside.css +50 -0
- package/dist/component/chat.css +0 -3
- package/dist/component/chat.min.css +1 -1
- package/dist/component/form.css +26 -11
- package/dist/component/form.min.css +1 -1
- package/dist/component/linkanchor.css +53 -0
- package/dist/component/linkanchor.min.css +1 -0
- package/dist/component/linkcard.css +94 -0
- package/dist/component/linkcard.min.css +1 -0
- package/dist/component/table.css +49 -0
- package/dist/component/table.min.css +1 -1
- package/dist/components.css +239 -16
- package/dist/components.min.css +2 -2
- package/dist/darkside/component/chat.css +0 -3
- package/dist/darkside/component/chat.min.css +1 -1
- package/dist/darkside/component/form.css +30 -16
- package/dist/darkside/component/form.min.css +1 -1
- package/dist/darkside/component/linkanchor.css +52 -0
- package/dist/darkside/component/linkanchor.min.css +1 -0
- package/dist/darkside/component/linkcard.css +108 -0
- package/dist/darkside/component/linkcard.min.css +1 -0
- package/dist/darkside/component/table.css +39 -0
- package/dist/darkside/component/table.min.css +1 -1
- package/dist/darkside/components.css +227 -19
- package/dist/darkside/components.min.css +1 -1
- package/dist/darkside/global/tokens.css +5 -5
- package/dist/darkside/global/tokens.min.css +1 -1
- package/dist/darkside/index.css +232 -24
- package/dist/darkside/index.min.css +1 -1
- package/dist/darkside/version/{7.23.2 → 7.25.1}/component/chat.css +0 -3
- package/dist/darkside/version/{7.23.2 → 7.25.1}/component/chat.min.css +1 -1
- package/dist/darkside/version/{7.23.2 → 7.25.1}/component/form.css +30 -16
- package/dist/darkside/version/7.25.1/component/form.min.css +1 -0
- package/dist/darkside/version/7.25.1/component/linkanchor.css +52 -0
- package/dist/darkside/version/7.25.1/component/linkanchor.min.css +1 -0
- package/dist/darkside/version/7.25.1/component/linkcard.css +108 -0
- package/dist/darkside/version/7.25.1/component/linkcard.min.css +1 -0
- package/dist/darkside/version/{7.23.2 → 7.25.1}/component/table.css +39 -0
- package/dist/darkside/version/7.25.1/component/table.min.css +1 -0
- package/dist/darkside/version/{7.23.2 → 7.25.1}/components.css +227 -19
- package/dist/darkside/version/7.25.1/components.min.css +1 -0
- package/dist/darkside/version/{7.23.2 → 7.25.1}/global/tokens.css +5 -5
- package/dist/darkside/version/7.25.1/global/tokens.min.css +1 -0
- package/dist/darkside/version/{7.23.2 → 7.25.1}/index.css +232 -24
- package/dist/darkside/version/7.25.1/index.min.css +1 -0
- package/dist/global/tokens.css +1 -1
- package/dist/global/tokens.min.css +1 -1
- package/dist/index.css +240 -17
- package/dist/index.min.css +3 -3
- package/form/file-upload.css +0 -4
- package/form/select.css +1 -0
- package/form/switch.css +25 -9
- package/form/text-field.css +1 -0
- package/form/textarea.css +1 -0
- package/index.css +2 -0
- package/link-anchor.css +53 -0
- package/link-card.css +106 -0
- package/package.json +2 -2
- package/table.css +49 -0
- package/dist/darkside/version/7.23.2/component/form.min.css +0 -1
- package/dist/darkside/version/7.23.2/component/table.min.css +0 -1
- package/dist/darkside/version/7.23.2/components.min.css +0 -1
- package/dist/darkside/version/7.23.2/global/tokens.min.css +0 -1
- package/dist/darkside/version/7.23.2/index.min.css +0 -1
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/accordion.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/accordion.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/actionmenu.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/actionmenu.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/alert.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/alert.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/button.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/button.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/chips.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/chips.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/copybutton.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/copybutton.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/date.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/date.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/dropdown.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/dropdown.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/expansioncard.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/expansioncard.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/guidepanel.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/guidepanel.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/helptext.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/helptext.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/internalheader.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/internalheader.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/link.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/link.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/linkpanel.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/linkpanel.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/list.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/list.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/loader.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/loader.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/modal.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/modal.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/pagination.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/pagination.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/panel.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/panel.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/popover.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/popover.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/primitives.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/primitives.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/progressbar.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/progressbar.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/readmore.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/readmore.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/skeleton.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/skeleton.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/stepper.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/stepper.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/tabs.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/tabs.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/tag.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/tag.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/theme.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/theme.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/timeline.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/timeline.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/togglegroup.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/togglegroup.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/tooltip.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/tooltip.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/typography.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/component/typography.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/global/baseline.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/global/baseline.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/global/fonts.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/global/fonts.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/global/print.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/global/print.min.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/global/reset.css +0 -0
- /package/dist/darkside/version/{7.23.2 → 7.25.1}/global/reset.min.css +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @navikt/ds-css
|
|
2
2
|
|
|
3
|
+
## 7.25.1
|
|
4
|
+
|
|
5
|
+
## 7.25.0
|
|
6
|
+
|
|
7
|
+
### Minor Changes
|
|
8
|
+
|
|
9
|
+
- FileUpload: Allow for custom buttons in FileUpload.Item. ([#3906](https://github.com/navikt/aksel/pull/3906))
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Table: Selected rows are now highlighted with outline. ([#3898](https://github.com/navikt/aksel/pull/3898))
|
|
14
|
+
|
|
15
|
+
- Chat: Removed ol > li semantics, replaced with 'div'. ([#3904](https://github.com/navikt/aksel/pull/3904))
|
|
16
|
+
|
|
17
|
+
## 7.24.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- LinkCard: :tada: Added new component 'LinkCard'. ([#3883](https://github.com/navikt/aksel/pull/3883))
|
|
22
|
+
|
|
23
|
+
- Table: :tada: Added prop 'stickyHeader', allowing header to remain sticky while scrolling in table. ([#3893](https://github.com/navikt/aksel/pull/3893))
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Forms: Added built-in scroll-margin to TextField, Textarea and Select. ([#3897](https://github.com/navikt/aksel/pull/3897))
|
|
28
|
+
|
|
29
|
+
- Switch: Size='small' are now visually comparable to radio and checkbox in the same size. ([#3892](https://github.com/navikt/aksel/pull/3892))
|
|
30
|
+
|
|
3
31
|
## 7.23.2
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/chat.css
CHANGED
package/config/_mappings.js
CHANGED
|
@@ -124,7 +124,13 @@ const StyleMappings = {
|
|
|
124
124
|
{
|
|
125
125
|
component: "FileUpload",
|
|
126
126
|
main: formCss,
|
|
127
|
-
dependencies: [
|
|
127
|
+
dependencies: [
|
|
128
|
+
typoCss,
|
|
129
|
+
"button.css",
|
|
130
|
+
"loader.css",
|
|
131
|
+
"link.css",
|
|
132
|
+
primitivesCss,
|
|
133
|
+
],
|
|
128
134
|
},
|
|
129
135
|
{
|
|
130
136
|
component: "GuidePanel",
|
|
@@ -145,6 +151,11 @@ const StyleMappings = {
|
|
|
145
151
|
},
|
|
146
152
|
{ component: "Label", main: typoCss },
|
|
147
153
|
{ component: "Link", main: "link.css", dependencies: [typoCss] },
|
|
154
|
+
{
|
|
155
|
+
component: "LinkCard",
|
|
156
|
+
main: "link-card.css",
|
|
157
|
+
dependencies: [typoCss, "link-anchor.css"],
|
|
158
|
+
},
|
|
148
159
|
{
|
|
149
160
|
component: "LinkPanel",
|
|
150
161
|
main: "link-panel.css",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
.aksel-switch--small > & {
|
|
22
22
|
height: 2rem;
|
|
23
|
+
width: 2.5rem;
|
|
23
24
|
top: 0;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
@@ -32,19 +33,21 @@
|
|
|
32
33
|
|
|
33
34
|
.aksel-switch__content {
|
|
34
35
|
--__axc-switch-block-padding: 0.75rem;
|
|
36
|
+
--__axc-switch-inline-padding: 3.25rem;
|
|
35
37
|
|
|
36
38
|
position: relative;
|
|
37
39
|
display: flex;
|
|
38
40
|
flex-direction: column;
|
|
39
41
|
gap: var(--ax-space-2);
|
|
40
|
-
padding: var(--__axc-switch-block-padding) 0 var(--__axc-switch-block-padding)
|
|
42
|
+
padding: var(--__axc-switch-block-padding) 0 var(--__axc-switch-block-padding) var(--__axc-switch-inline-padding);
|
|
41
43
|
|
|
42
44
|
.aksel-switch--right & {
|
|
43
|
-
padding: var(--__axc-switch-block-padding)
|
|
45
|
+
padding: var(--__axc-switch-block-padding) var(--__axc-switch-inline-padding) var(--__axc-switch-block-padding) 0;
|
|
44
46
|
}
|
|
45
47
|
|
|
46
48
|
.aksel-switch--small & {
|
|
47
49
|
--__axc-switch-block-padding: 0.375rem;
|
|
50
|
+
--__axc-switch-inline-padding: 2.75rem;
|
|
48
51
|
}
|
|
49
52
|
|
|
50
53
|
&.aksel-switch--with-description {
|
|
@@ -87,7 +90,9 @@
|
|
|
87
90
|
transition-timing-function: ease;
|
|
88
91
|
|
|
89
92
|
.aksel-switch--small > & {
|
|
90
|
-
top: var(--ax-space-
|
|
93
|
+
top: var(--ax-space-6);
|
|
94
|
+
width: 2.25rem;
|
|
95
|
+
height: 1.25rem;
|
|
91
96
|
}
|
|
92
97
|
|
|
93
98
|
.aksel-switch__input:checked ~ & {
|
|
@@ -135,6 +140,11 @@
|
|
|
135
140
|
left: 0.0625rem;
|
|
136
141
|
top: 0.0625rem;
|
|
137
142
|
|
|
143
|
+
.aksel-switch--small & {
|
|
144
|
+
width: 0.875rem;
|
|
145
|
+
height: 0.875rem;
|
|
146
|
+
}
|
|
147
|
+
|
|
138
148
|
.aksel-switch__input:checked ~ .aksel-switch__track > & {
|
|
139
149
|
background-color: var(--ax-bg-raised);
|
|
140
150
|
transform: translateX(1.25rem);
|
|
@@ -145,18 +155,15 @@
|
|
|
145
155
|
top: 0;
|
|
146
156
|
}
|
|
147
157
|
|
|
148
|
-
.aksel-switch__input:checked ~ .aksel-switch__track > &
|
|
149
|
-
|
|
150
|
-
|
|
158
|
+
.aksel-switch--small > .aksel-switch__input:checked ~ .aksel-switch__track > & {
|
|
159
|
+
transform: translateX(1rem);
|
|
160
|
+
width: 1rem;
|
|
161
|
+
height: 1rem;
|
|
162
|
+
left: 0;
|
|
163
|
+
top: 0;
|
|
151
164
|
}
|
|
152
165
|
}
|
|
153
166
|
|
|
154
|
-
.aksel-switch__checkmark {
|
|
155
|
-
visibility: hidden;
|
|
156
|
-
opacity: 0;
|
|
157
|
-
transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
167
|
@media (hover: hover) and (pointer: fine) {
|
|
161
168
|
.aksel-switch__input:hover:not(:disabled) ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
162
169
|
transform: translateX(0.17rem);
|
|
@@ -165,6 +172,10 @@
|
|
|
165
172
|
.aksel-switch__input:checked:hover:not(:disabled) ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
166
173
|
transform: translateX(1.1rem);
|
|
167
174
|
}
|
|
175
|
+
|
|
176
|
+
.aksel-switch--small > .aksel-switch__input:checked:hover:not(:disabled) ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
177
|
+
transform: translateX(0.875rem);
|
|
178
|
+
}
|
|
168
179
|
}
|
|
169
180
|
|
|
170
181
|
.aksel-switch--right {
|
|
@@ -227,6 +238,10 @@
|
|
|
227
238
|
& > .aksel-switch__input:checked:hover ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
228
239
|
transform: translateX(1.25rem);
|
|
229
240
|
}
|
|
241
|
+
|
|
242
|
+
&.aksel-switch--small > .aksel-switch__input:checked:hover ~ .aksel-switch__track > .aksel-switch__thumb {
|
|
243
|
+
transform: translateX(1rem);
|
|
244
|
+
}
|
|
230
245
|
}
|
|
231
246
|
}
|
|
232
247
|
|
package/darkside/index.css
CHANGED
|
@@ -38,6 +38,8 @@
|
|
|
38
38
|
@import "./internalheader.darkside.css" layer(aksel.components);
|
|
39
39
|
@import "./link.darkside.css" layer(aksel.components);
|
|
40
40
|
@import "./link-panel.darkside.css" layer(aksel.components);
|
|
41
|
+
@import "./link-anchor.darkside.css" layer(aksel.components);
|
|
42
|
+
@import "./link-card.darkside.css" layer(aksel.components);
|
|
41
43
|
@import "./loader.darkside.css" layer(aksel.components);
|
|
42
44
|
@import "./modal.darkside.css" layer(aksel.components);
|
|
43
45
|
@import "./pagination.darkside.css" layer(aksel.components);
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
.aksel-link-anchor__overlay {
|
|
2
|
+
cursor: pointer;
|
|
3
|
+
|
|
4
|
+
&:focus-within {
|
|
5
|
+
outline: 3px solid var(--ax-border-focus);
|
|
6
|
+
outline-offset: 3px;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@supports selector(:has(*)) {
|
|
11
|
+
.aksel-link-anchor__overlay:focus-within {
|
|
12
|
+
outline: unset;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.aksel-link-anchor__overlay:has(:focus-visible) {
|
|
16
|
+
outline: 3px solid var(--ax-border-focus);
|
|
17
|
+
outline-offset: 3px;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.aksel-link-anchor {
|
|
22
|
+
text-decoration: underline;
|
|
23
|
+
text-decoration-color: currentColor;
|
|
24
|
+
text-underline-offset: 0.1em;
|
|
25
|
+
text-decoration-thickness: 0.05em;
|
|
26
|
+
color: inherit;
|
|
27
|
+
|
|
28
|
+
&:hover,
|
|
29
|
+
.aksel-link-anchor__overlay:hover & {
|
|
30
|
+
text-decoration-thickness: 0.111em;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:focus-visible {
|
|
34
|
+
outline: 3px solid var(--ax-border-focus);
|
|
35
|
+
outline-offset: 3px;
|
|
36
|
+
border-radius: 1px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.aksel-link-anchor__overlay &:focus-visible {
|
|
40
|
+
outline: none;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aksel-link-anchor__arrow {
|
|
45
|
+
transition: transform 200ms;
|
|
46
|
+
transform: translateX(0);
|
|
47
|
+
flex-shrink: 0;
|
|
48
|
+
|
|
49
|
+
.aksel-link-anchor:hover &,
|
|
50
|
+
.aksel-link-anchor__overlay:hover & {
|
|
51
|
+
transform: translateX(4px);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
.aksel-link-card {
|
|
2
|
+
--__axc-link-card-padding-block: var(--ax-space-16);
|
|
3
|
+
--__axc-link-card-padding-inline: var(--ax-space-20);
|
|
4
|
+
|
|
5
|
+
border-radius: var(--ax-border-radius-xlarge);
|
|
6
|
+
text-decoration: none;
|
|
7
|
+
color: var(--ax-text-neutral);
|
|
8
|
+
transition-property: border-color, box-shadow, transform, background-color;
|
|
9
|
+
transition-duration: 300ms;
|
|
10
|
+
transition-timing-function: cubic-bezier(0, 0, 0, 1);
|
|
11
|
+
position: relative;
|
|
12
|
+
background-color: var(--ax-bg-raised);
|
|
13
|
+
border: 1px solid var(--ax-border-subtleA);
|
|
14
|
+
padding: var(--__axc-link-card-padding-block) var(--__axc-link-card-padding-inline);
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
display: grid;
|
|
17
|
+
grid-template-areas:
|
|
18
|
+
"image image"
|
|
19
|
+
"icon title"
|
|
20
|
+
"icon description"
|
|
21
|
+
"icon footer";
|
|
22
|
+
grid-template-columns: auto 1fr;
|
|
23
|
+
grid-template-rows: min-content min-content min-content auto;
|
|
24
|
+
align-items: center;
|
|
25
|
+
|
|
26
|
+
&:not(:has(.aksel-link-card__description, .aksel-link-card__footer)) {
|
|
27
|
+
grid-template-rows: auto 1fr;
|
|
28
|
+
|
|
29
|
+
& .aksel-link-card__title {
|
|
30
|
+
align-items: center;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
& .aksel-link-card__icon {
|
|
34
|
+
align-self: center;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:hover {
|
|
39
|
+
border-color: var(--ax-border-default);
|
|
40
|
+
box-shadow: 0 0 0 1px var(--ax-border-default);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.aksel-link-card--small {
|
|
45
|
+
--__axc-link-card-padding-block: var(--ax-space-12);
|
|
46
|
+
--__axc-link-card-padding-inline: var(--ax-space-16);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.aksel-link-card__title {
|
|
50
|
+
grid-area: title;
|
|
51
|
+
color: var(--ax-text-subtle);
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: flex-start;
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
gap: var(--ax-space-8);
|
|
56
|
+
hyphens: auto;
|
|
57
|
+
|
|
58
|
+
.aksel-link-card[data-color="neutral"] &,
|
|
59
|
+
&[data-color="neutral"] {
|
|
60
|
+
color: var(--ax-text-default);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.aksel-link-card__description {
|
|
65
|
+
grid-area: description;
|
|
66
|
+
margin-block-start: var(--ax-space-4);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.aksel-link-card__footer {
|
|
70
|
+
grid-area: footer;
|
|
71
|
+
margin-block-start: var(--ax-space-16);
|
|
72
|
+
display: flex;
|
|
73
|
+
align-self: flex-end;
|
|
74
|
+
gap: var(--ax-space-8);
|
|
75
|
+
flex-wrap: wrap;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.aksel-link-card__icon {
|
|
79
|
+
grid-area: icon;
|
|
80
|
+
width: max-content;
|
|
81
|
+
height: max-content;
|
|
82
|
+
display: grid;
|
|
83
|
+
place-content: center;
|
|
84
|
+
color: var(--ax-text-default);
|
|
85
|
+
align-self: flex-start;
|
|
86
|
+
margin-inline-end: var(--ax-space-16);
|
|
87
|
+
|
|
88
|
+
.aksel-link-card--small & {
|
|
89
|
+
margin-inline-end: var(--ax-space-12);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.aksel-link-card__image-container {
|
|
94
|
+
overflow: hidden;
|
|
95
|
+
grid-area: image;
|
|
96
|
+
margin-block: calc(var(--__axc-link-card-padding-block) * -1) var(--__axc-link-card-padding-block);
|
|
97
|
+
margin-inline: calc(var(--__axc-link-card-padding-inline) * 1 * -1);
|
|
98
|
+
border-radius: calc(var(--ax-border-radius-xlarge) - 1px);
|
|
99
|
+
border-bottom-left-radius: 0;
|
|
100
|
+
border-bottom-right-radius: 0;
|
|
101
|
+
position: relative;
|
|
102
|
+
|
|
103
|
+
& :is(img, picture) {
|
|
104
|
+
object-fit: cover;
|
|
105
|
+
display: block;
|
|
106
|
+
max-width: 100%;
|
|
107
|
+
height: 100%;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -2,10 +2,23 @@
|
|
|
2
2
|
width: 100%;
|
|
3
3
|
border-collapse: collapse;
|
|
4
4
|
display: table;
|
|
5
|
+
|
|
6
|
+
&.aksel-table--sticky-header {
|
|
7
|
+
border-collapse: separate;
|
|
8
|
+
border-spacing: 0;
|
|
9
|
+
}
|
|
5
10
|
}
|
|
6
11
|
|
|
7
12
|
.aksel-table__header {
|
|
8
13
|
display: table-header-group;
|
|
14
|
+
|
|
15
|
+
.aksel-table--sticky-header & {
|
|
16
|
+
position: sticky;
|
|
17
|
+
top: 0;
|
|
18
|
+
z-index: 10;
|
|
19
|
+
background-color: var(--ax-bg-default);
|
|
20
|
+
box-sizing: border-box;
|
|
21
|
+
}
|
|
9
22
|
}
|
|
10
23
|
|
|
11
24
|
.aksel-table__body {
|
|
@@ -23,13 +36,42 @@
|
|
|
23
36
|
|
|
24
37
|
.aksel-table__row {
|
|
25
38
|
display: table-row;
|
|
39
|
+
|
|
40
|
+
&:has(+ .aksel-table__row--selected) :is(.aksel-table__header-cell, .aksel-table__data-cell) {
|
|
41
|
+
border-color: var(--ax-border-default);
|
|
42
|
+
}
|
|
26
43
|
}
|
|
27
44
|
|
|
28
45
|
.aksel-table__row--selected {
|
|
29
46
|
background-color: var(--ax-bg-softA);
|
|
47
|
+
box-shadow:
|
|
48
|
+
inset 1px 0 0 0 var(--ax-border-default),
|
|
49
|
+
inset -1px 0 0 0 var(--ax-border-default);
|
|
50
|
+
|
|
51
|
+
&:first-of-type {
|
|
52
|
+
box-shadow:
|
|
53
|
+
inset 1px 0 0 0 var(--ax-border-default),
|
|
54
|
+
inset -1px 0 0 0 var(--ax-border-default),
|
|
55
|
+
inset 0 1px 0 0 var(--ax-border-default);
|
|
56
|
+
}
|
|
30
57
|
|
|
31
58
|
& + .aksel-table__expanded-row {
|
|
32
59
|
background-color: var(--ax-bg-softA);
|
|
60
|
+
box-shadow:
|
|
61
|
+
inset 1px 0 0 0 var(--ax-border-default),
|
|
62
|
+
inset -1px 0 0 0 var(--ax-border-default);
|
|
63
|
+
|
|
64
|
+
& .aksel-table__expanded-row-collapse {
|
|
65
|
+
border-color: var(--ax-border-default);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& :is(.aksel-table__header-cell, .aksel-table__data-cell) {
|
|
70
|
+
border-color: var(--ax-border-default);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&.aksel-table__expandable-row--open :is(.aksel-table__header-cell, .aksel-table__data-cell) {
|
|
74
|
+
border-color: transparent;
|
|
33
75
|
}
|
|
34
76
|
}
|
|
35
77
|
|
|
@@ -245,6 +287,14 @@
|
|
|
245
287
|
border-bottom: 1px solid var(--ax-border-neutral-subtleA);
|
|
246
288
|
}
|
|
247
289
|
|
|
290
|
+
.aksel-table__expanded-row {
|
|
291
|
+
&:has(+ .aksel-table__row--selected) {
|
|
292
|
+
& .aksel-table__expanded-row-collapse {
|
|
293
|
+
border-color: var(--ax-border-default);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
248
298
|
.aksel-table__expanded-row-content {
|
|
249
299
|
--__ac-table-expanded-row-pi: calc(var(--ax-space-8) + 3rem);
|
|
250
300
|
|
package/dist/component/chat.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.navds-chat{align-items:flex-end;display:flex;gap:var(--a-spacing-3);max-width:40.75rem}.navds-chat--right{flex-direction:row-reverse}.navds-chat__bubble-wrapper{display:flex;flex-direction:column;gap:var(--a-spacing-3)
|
|
1
|
+
.navds-chat{align-items:flex-end;display:flex;gap:var(--a-spacing-3);max-width:40.75rem}.navds-chat--right{flex-direction:row-reverse}.navds-chat__bubble-wrapper{display:flex;flex-direction:column;gap:var(--a-spacing-3)}.navds-chat--right .navds-chat__bubble-wrapper{align-items:flex-end}.navds-chat__avatar{align-items:center;background-color:var(--ac-chat-avatar-bg,var(--a-surface-neutral-subtle));border-radius:var(--a-border-radius-full);box-shadow:var(--a-shadow-xsmall);color:var(--ac-chat-avatar-color,var(--a-text-default));display:flex;flex-shrink:0;font-size:1.06rem;height:2.5rem;justify-content:center;letter-spacing:.024rem;line-height:2.5rem;overflow:hidden;width:2.5rem}.navds-chat__avatar svg{align-self:center;max-height:1.5rem;max-width:1.5rem;width:100%}.navds-chat__bubble{background-color:var(--ac-chat-bubble-bg,var(--a-surface-neutral-subtle));border-radius:var(--a-border-radius-xlarge);border-bottom-left-radius:2px;box-shadow:var(--a-shadow-xsmall);display:flex;flex-direction:column;gap:var(--a-spacing-2);padding:var(--a-spacing-4);width:-webkit-fit-content;width:fit-content}.navds-chat--right .navds-chat__bubble{border-radius:var(--a-border-radius-xlarge);border-bottom-right-radius:2px}.navds-chat--small .navds-chat__bubble{padding:var(--a-spacing-3)}.navds-chat--info .navds-chat__avatar,.navds-chat--info .navds-chat__bubble{background-color:var(--a-surface-info-subtle)}.navds-chat--subtle .navds-chat__avatar,.navds-chat--subtle .navds-chat__bubble{background-color:var(--a-surface-default)}.navds-chat__top-text{align-items:baseline;color:var(--ac-chat-top-text,var(--a-text-default));display:flex;font-weight:400;gap:var(--a-spacing-2);margin:0}.navds-chat--right .navds-chat__top-text{align-self:flex-end}.navds-chat--top-text-left .navds-chat__top-text{align-self:flex-start}.navds-chat--left .navds-chat__top-text--right,.navds-chat--top-text-right .navds-chat__top-text{align-self:flex-end}.navds-chat--right .navds-chat__top-text--left{align-self:flex-start}@media (forced-colors:active){.navds-chat__avatar,.navds-chat__bubble{background-color:canvas;border:1px solid canvastext;color:initial}.navds-chat__avatar svg{forced-color-adjust:none}}
|
package/dist/component/form.css
CHANGED
|
@@ -256,9 +256,6 @@ li.navds-file-item {
|
|
|
256
256
|
.navds-file-item__file-info {
|
|
257
257
|
overflow-wrap: anywhere;
|
|
258
258
|
}
|
|
259
|
-
.navds-file-item__button {
|
|
260
|
-
margin-left: auto;
|
|
261
|
-
}
|
|
262
259
|
.navds-file-item__error {
|
|
263
260
|
color: var(--a-text-danger);
|
|
264
261
|
display: grid;
|
|
@@ -743,6 +740,7 @@ li.navds-file-item {
|
|
|
743
740
|
position: relative;
|
|
744
741
|
padding: 0.5rem;
|
|
745
742
|
padding-right: 2rem;
|
|
743
|
+
scroll-margin-block-start: 4rem;
|
|
746
744
|
}
|
|
747
745
|
@media (forced-colors: active) {
|
|
748
746
|
.navds-select__input.navds-select__input.navds-select__input {
|
|
@@ -852,6 +850,7 @@ li.navds-file-item {
|
|
|
852
850
|
}
|
|
853
851
|
.navds-switch--small > .navds-switch__input {
|
|
854
852
|
height: 2rem;
|
|
853
|
+
width: 2.5rem;
|
|
855
854
|
top: 0;
|
|
856
855
|
}
|
|
857
856
|
/* Label */
|
|
@@ -869,10 +868,10 @@ li.navds-file-item {
|
|
|
869
868
|
padding: 0.75rem 3.25rem 0.75rem 0;
|
|
870
869
|
}
|
|
871
870
|
.navds-switch--small > .navds-switch__label-wrapper > .navds-switch__content {
|
|
872
|
-
padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 0 calc(var(--a-spacing-2) - var(--a-spacing-05))
|
|
871
|
+
padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 0 calc(var(--a-spacing-2) - var(--a-spacing-05)) 2.75rem;
|
|
873
872
|
}
|
|
874
873
|
.navds-switch--right.navds-switch--small > .navds-switch__label-wrapper > .navds-switch__content {
|
|
875
|
-
padding: calc(var(--a-spacing-2) - var(--a-spacing-05))
|
|
874
|
+
padding: calc(var(--a-spacing-2) - var(--a-spacing-05)) 2.75rem calc(var(--a-spacing-2) - var(--a-spacing-05)) 0;
|
|
876
875
|
}
|
|
877
876
|
.navds-switch--with-description,
|
|
878
877
|
.navds-switch--small > .navds-switch__label-wrapper > .navds-switch--with-description {
|
|
@@ -900,7 +899,9 @@ li.navds-file-item {
|
|
|
900
899
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
901
900
|
}
|
|
902
901
|
.navds-switch--small > .navds-switch__track {
|
|
903
|
-
top: var(--a-spacing-1);
|
|
902
|
+
top: var(--a-spacing-1-alt);
|
|
903
|
+
width: 2.25rem;
|
|
904
|
+
height: 1.25rem;
|
|
904
905
|
}
|
|
905
906
|
.navds-switch--right > .navds-switch__input,
|
|
906
907
|
.navds-switch--right > .navds-switch__track {
|
|
@@ -955,6 +956,10 @@ li.navds-file-item {
|
|
|
955
956
|
align-items: center;
|
|
956
957
|
justify-content: center;
|
|
957
958
|
}
|
|
959
|
+
.navds-switch--small .navds-switch__thumb {
|
|
960
|
+
width: 0.875rem;
|
|
961
|
+
height: 0.875rem;
|
|
962
|
+
}
|
|
958
963
|
.navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
959
964
|
transform: translateX(1.25rem);
|
|
960
965
|
color: var(--ac-switch-thumb-icon-checked, var(--a-icon-action-selected));
|
|
@@ -964,11 +969,12 @@ li.navds-file-item {
|
|
|
964
969
|
left: 0;
|
|
965
970
|
top: 0;
|
|
966
971
|
}
|
|
967
|
-
.navds-switch__input:checked ~ .navds-switch__track .navds-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
+
.navds-switch--small > .navds-switch__input:checked ~ .navds-switch__track > .navds-switch__thumb {
|
|
973
|
+
transform: translateX(1rem);
|
|
974
|
+
width: 1rem;
|
|
975
|
+
height: 1rem;
|
|
976
|
+
left: 0;
|
|
977
|
+
top: 0;
|
|
972
978
|
}
|
|
973
979
|
@media (hover: hover) and (pointer: fine) {
|
|
974
980
|
.navds-switch__input:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
@@ -978,6 +984,10 @@ li.navds-file-item {
|
|
|
978
984
|
.navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
979
985
|
transform: translateX(1.125rem);
|
|
980
986
|
}
|
|
987
|
+
|
|
988
|
+
.navds-switch--small > .navds-switch__input:checked:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
989
|
+
transform: translateX(0.875rem);
|
|
990
|
+
}
|
|
981
991
|
}
|
|
982
992
|
.navds-switch__input:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
983
993
|
transform: translateX(0);
|
|
@@ -985,6 +995,9 @@ li.navds-file-item {
|
|
|
985
995
|
.navds-switch__input:checked:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
986
996
|
transform: translateX(1.25rem);
|
|
987
997
|
}
|
|
998
|
+
.navds-switch--small > .navds-switch__input:checked:disabled:hover ~ .navds-switch__track > .navds-switch__thumb {
|
|
999
|
+
transform: translateX(1rem);
|
|
1000
|
+
}
|
|
988
1001
|
/* Disabled */
|
|
989
1002
|
.navds-switch__input:disabled {
|
|
990
1003
|
appearance: none;
|
|
@@ -1085,6 +1098,7 @@ li.navds-file-item {
|
|
|
1085
1098
|
min-height: 3rem;
|
|
1086
1099
|
width: 100%;
|
|
1087
1100
|
color: var(--ac-textfield-text, var(--__ac-textfield-text, var(--a-text-default)));
|
|
1101
|
+
scroll-margin-block-start: 4rem;
|
|
1088
1102
|
}
|
|
1089
1103
|
.navds-text-field__input[size] {
|
|
1090
1104
|
width: auto;
|
|
@@ -1169,6 +1183,7 @@ li.navds-file-item {
|
|
|
1169
1183
|
width: 100%;
|
|
1170
1184
|
display: block;
|
|
1171
1185
|
color: var(--ac-textarea-text, var(--__ac-textarea-text, var(--a-text-default)));
|
|
1186
|
+
scroll-margin-block-start: 4rem;
|
|
1172
1187
|
}
|
|
1173
1188
|
.navds-textarea__input::placeholder {
|
|
1174
1189
|
color: var(--ac-textarea-placeholder, var(--__ac-textarea-placeholder, var(--a-text-subtle)));
|