@navikt/ds-css 4.7.4 → 4.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 +12 -0
- package/config/_mappings.js +13 -1
- package/dist/component/index.css +59 -2
- package/dist/component/index.min.css +3 -1
- package/dist/component/stack.css +54 -0
- package/dist/component/stack.min.css +3 -0
- package/dist/component/table.css +5 -1
- package/dist/component/table.min.css +1 -1
- package/dist/components.css +58 -1
- package/dist/components.min.css +3 -1
- package/dist/global/tokens.css +1 -1
- package/dist/index.css +59 -2
- package/dist/index.min.css +3 -1
- package/index.css +1 -0
- package/package.json +2 -2
- package/stack.css +61 -0
- package/table.css +5 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @navikt/ds-css
|
|
2
2
|
|
|
3
|
+
## 4.9.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Table: ExpandableRow kan nå åpnes med 'expandOnRowClick'-prop ([#2127](https://github.com/navikt/aksel/pull/2127))
|
|
8
|
+
|
|
9
|
+
## 4.8.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- Nye komponenter `VStack`, `HStack` og `Spacer` for å enklere kunne lage layout med flexbox og spacing-variabler. ([#2040](https://github.com/navikt/aksel/pull/2040))
|
|
14
|
+
|
|
3
15
|
## 4.7.4
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/config/_mappings.js
CHANGED
|
@@ -57,7 +57,7 @@ const StyleMappings = {
|
|
|
57
57
|
{
|
|
58
58
|
component: "UNSAFE_Combobox",
|
|
59
59
|
main: "combobox.css",
|
|
60
|
-
dependencies: [typoCss],
|
|
60
|
+
dependencies: [typoCss, "chips.css"],
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
63
|
component: "ConfirmationPanel",
|
|
@@ -134,6 +134,18 @@ const StyleMappings = {
|
|
|
134
134
|
{ component: "Select", main: formCss, dependencies: [typoCss] },
|
|
135
135
|
{ component: "Skeleton", main: "skeleton.css", dependencies: [] },
|
|
136
136
|
{ component: "Stepper", main: "stepper.css", dependencies: [typoCss] },
|
|
137
|
+
{
|
|
138
|
+
component: "HStack",
|
|
139
|
+
main: "stack.css",
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
component: "VStack",
|
|
143
|
+
main: "stack.css",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
component: "Spacer",
|
|
147
|
+
main: "stack.css",
|
|
148
|
+
},
|
|
137
149
|
{ component: "Switch", main: formCss, dependencies: [typoCss] },
|
|
138
150
|
{ component: "Table", main: "table.css", dependencies: [typoCss] },
|
|
139
151
|
{ component: "Tabs", main: "tabs.css", dependencies: [typoCss] },
|
package/dist/component/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
/**
|
|
3
3
|
* Do not edit directly
|
|
4
|
-
* Generated on
|
|
4
|
+
* Generated on Mon, 07 Aug 2023 12:01:38 GMT
|
|
5
5
|
*/
|
|
6
6
|
:root, :host {
|
|
7
7
|
--a-spacing-05: 0.125rem;
|
|
@@ -5008,6 +5008,60 @@ button.navds-internalheader__title:active,
|
|
|
5008
5008
|
opacity: 0.4;
|
|
5009
5009
|
}
|
|
5010
5010
|
}
|
|
5011
|
+
/* stylelint-disable csstools/value-no-unknown-custom-properties */
|
|
5012
|
+
/* stylelint-disable aksel/design-token-exists */
|
|
5013
|
+
.navds-stack {
|
|
5014
|
+
--ac-stack-align: initial;
|
|
5015
|
+
--ac-stack-justify: initial;
|
|
5016
|
+
--ac-stack-direction: initial;
|
|
5017
|
+
--ac-stack-wrap: initial;
|
|
5018
|
+
--ac-stack-gap-xs: initial;
|
|
5019
|
+
--ac-stack-gap-sm: initial;
|
|
5020
|
+
--ac-stack-gap-md: initial;
|
|
5021
|
+
--ac-stack-gap-lg: initial;
|
|
5022
|
+
--ac-stack-gap-xl: initial;
|
|
5023
|
+
--__ac-stack-gap: var(--ac-stack-gap-xs);
|
|
5024
|
+
|
|
5025
|
+
gap: var(--__ac-stack-gap);
|
|
5026
|
+
display: flex;
|
|
5027
|
+
align-items: var(--ac-stack-align);
|
|
5028
|
+
justify-content: var(--ac-stack-justify);
|
|
5029
|
+
flex-flow: var(--ac-stack-direction) var(--ac-stack-wrap);
|
|
5030
|
+
}
|
|
5031
|
+
.navds-stack__spacer {
|
|
5032
|
+
flex: 1;
|
|
5033
|
+
justify-self: stretch;
|
|
5034
|
+
align-self: stretch;
|
|
5035
|
+
}
|
|
5036
|
+
.navds-stack > .navds-stack__spacer {
|
|
5037
|
+
margin-block-start: calc(var(--__ac-stack-gap) * -1);
|
|
5038
|
+
}
|
|
5039
|
+
.navds-hstack > .navds-stack__spacer {
|
|
5040
|
+
margin-inline-start: calc(var(--__ac-stack-gap) * -1);
|
|
5041
|
+
}
|
|
5042
|
+
@media (min-width: 480px) {
|
|
5043
|
+
.navds-stack {
|
|
5044
|
+
--__ac-stack-gap: var(--ac-stack-gap-sm, var(--ac-stack-gap-xs));
|
|
5045
|
+
}
|
|
5046
|
+
}
|
|
5047
|
+
@media (min-width: 768px) {
|
|
5048
|
+
.navds-stack {
|
|
5049
|
+
--__ac-stack-gap: var(--ac-stack-gap-md, var(--ac-stack-gap-sm, var(--ac-stack-gap-xs)));
|
|
5050
|
+
}
|
|
5051
|
+
}
|
|
5052
|
+
@media (min-width: 1024px) {
|
|
5053
|
+
.navds-stack {
|
|
5054
|
+
--__ac-stack-gap: var(--ac-stack-gap-lg, var(--ac-stack-gap-md, var(--ac-stack-gap-sm, var(--ac-stack-gap-xs))));
|
|
5055
|
+
}
|
|
5056
|
+
}
|
|
5057
|
+
@media (min-width: 1280px) {
|
|
5058
|
+
.navds-stack {
|
|
5059
|
+
--__ac-stack-gap: var(
|
|
5060
|
+
--ac-stack-gap-xl,
|
|
5061
|
+
var(--ac-stack-gap-lg, var(--ac-stack-gap-md, var(--ac-stack-gap-sm, var(--ac-stack-gap-xs))))
|
|
5062
|
+
);
|
|
5063
|
+
}
|
|
5064
|
+
}
|
|
5011
5065
|
.navds-stepper {
|
|
5012
5066
|
--navds-stepper-circle-size: 1.75rem;
|
|
5013
5067
|
--navds-stepper-border-width: 2px;
|
|
@@ -5247,7 +5301,7 @@ button.navds-stepper__step {
|
|
|
5247
5301
|
.navds-table__row {
|
|
5248
5302
|
display: table-row;
|
|
5249
5303
|
}
|
|
5250
|
-
.navds-table__body .navds-table__row--shade-on-hover:hover {
|
|
5304
|
+
.navds-table__body .navds-table__row--shade-on-hover:not(.navds-table__expandable-row--expansion-disabled):hover {
|
|
5251
5305
|
background-color: var(--ac-table-row-hover, var(--a-bg-subtle));
|
|
5252
5306
|
}
|
|
5253
5307
|
.navds-table__row--selected {
|
|
@@ -5358,6 +5412,9 @@ button.navds-stepper__step {
|
|
|
5358
5412
|
.navds-table__expandable-row:not(.navds-table__expandable-row--open) .navds-table__data-cell {
|
|
5359
5413
|
transition: border-bottom-color 190ms cubic-bezier(0.6, 0.04, 0.98, 0.335);
|
|
5360
5414
|
}
|
|
5415
|
+
.navds-table__expandable-row:not(.navds-table__expandable-row--expansion-disabled):hover {
|
|
5416
|
+
cursor: pointer;
|
|
5417
|
+
}
|
|
5361
5418
|
.navds-table__expandable-row--open .navds-table__data-cell {
|
|
5362
5419
|
border-bottom-color: transparent;
|
|
5363
5420
|
}
|