@navikt/ds-css 4.7.4 → 4.8.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 +6 -0
- package/config/_mappings.js +13 -1
- package/dist/component/index.css +55 -1
- 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/components.css +54 -0
- package/dist/components.min.css +3 -1
- package/dist/global/tokens.css +1 -1
- package/dist/index.css +55 -1
- package/dist/index.min.css +3 -1
- package/index.css +1 -0
- package/package.json +2 -2
- package/stack.css +61 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @navikt/ds-css
|
|
2
2
|
|
|
3
|
+
## 4.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Nye komponenter `VStack`, `HStack` og `Spacer` for å enklere kunne lage layout med flexbox og spacing-variabler. ([#2040](https://github.com/navikt/aksel/pull/2040))
|
|
8
|
+
|
|
3
9
|
## 4.7.4
|
|
4
10
|
|
|
5
11
|
### 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 Fri, 04 Aug 2023
|
|
4
|
+
* Generated on Fri, 04 Aug 2023 11:46:26 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;
|