Skip to content

Commit

Permalink
Merge branch 'main' into mh/expandable-table-click-area
Browse files Browse the repository at this point in the history
  • Loading branch information
mlp73 committed Aug 7, 2023
2 parents 4e610e7 + de3991d commit 14465d8
Show file tree
Hide file tree
Showing 83 changed files with 3,921 additions and 3,209 deletions.
5 changes: 5 additions & 0 deletions .storybook/indexer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ module.exports = (indexers) => {
const exampleIndexer = async (fileName: string, opts) => {
let code = readFileSync(fileName, "utf-8").toString();

code = code
.split("\n")
.filter((line) => !line.includes("withDsExample"))
.join("\n");

code = code.replace("export const args =", "const args =");

code += `\nexport default { title: "Eksempler/${fileName
Expand Down
11 changes: 3 additions & 8 deletions .storybook/main.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const storyIndexers = require("./indexer");

const path = require("path");
const { mergeConfig } = require("vite");

Expand Down Expand Up @@ -59,15 +58,11 @@ module.exports = {
},
async viteFinal(config) {
return mergeConfig(config, {
define: { "process.env": {} },
define: {
"process.env": {},
},
resolve: {
alias: [
/*
// Example
{
find: "@components",
replacement: path.resolve(__dirname, "./src/components"),
}, */
{
find: "components",
replacement: path.resolve(
Expand Down
6 changes: 6 additions & 0 deletions @navikt/aksel-icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @navikt/aksel-icons

## 4.8.0

## 4.7.4

## 4.7.3

## 4.7.2

## 4.7.1
Expand Down
2 changes: 1 addition & 1 deletion @navikt/aksel-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel-icons",
"version": "4.7.2",
"version": "4.8.0",
"author": "Aksel | NAV",
"homepage": "https://aksel.nav.no/ikoner",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions @navikt/aksel-stylelint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @navikt/aksel-stylelint

## 4.8.0

## 4.7.4

## 4.7.3

## 4.7.2

## 4.7.1
Expand Down
6 changes: 3 additions & 3 deletions @navikt/aksel-stylelint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel-stylelint",
"version": "4.7.2",
"version": "4.8.0",
"author": "Aksel | NAV",
"homepage": "https://aksel.nav.no/grunnleggende/kode/stylelint",
"repository": {
Expand Down Expand Up @@ -35,8 +35,8 @@
"dev": "yarn watch:lint"
},
"devDependencies": {
"@navikt/ds-css": "^4.7.2",
"@navikt/ds-tokens": "^4.7.2",
"@navikt/ds-css": "^4.8.0",
"@navikt/ds-tokens": "^4.8.0",
"@types/jest": "^29.0.0",
"concurrently": "7.2.1",
"copyfiles": "2.4.1",
Expand Down
21 changes: 21 additions & 0 deletions @navikt/aksel/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# @navikt/aksel

## 4.8.0

### Patch Changes

- Updated dependencies [[`8a82e1c1f`](https://github.com/navikt/aksel/commit/8a82e1c1f66ea38fca77b25d74b14926bd817dd9)]:
- @navikt/ds-css@4.8.0

## 4.7.4

### Patch Changes

- Updated dependencies [[`492cfc180`](https://github.com/navikt/aksel/commit/492cfc1801df4ab16306185345d5089e24a0d659)]:
- @navikt/ds-css@4.7.4

## 4.7.3

### Patch Changes

- Updated dependencies []:
- @navikt/ds-css@4.7.3

## 4.7.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions @navikt/aksel/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navikt/aksel",
"version": "4.7.2",
"version": "4.8.0",
"description": "Aksel command line interface. Handles css-imports, codemods and more",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"homepage": "https://aksel.nav.no/grunnleggende/kode/kommandolinje",
"dependencies": {
"@navikt/ds-css": "4.7.2",
"@navikt/ds-css": "4.8.0",
"axios": "1.3.6",
"chalk": "4.1.0",
"clipboardy": "^2.3.0",
Expand Down
14 changes: 14 additions & 0 deletions @navikt/core/css/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @navikt/ds-css

## 4.8.0

### Minor Changes

- Nye komponenter `VStack`, `HStack` og `Spacer` for å enklere kunne lage layout med flexbox og spacing-variabler. ([#2040](https://github.com/navikt/aksel/pull/2040))

## 4.7.4

### Patch Changes

- Oppdatert bruk av REM i komponenter for forbedret utrykk ved font-scaling i browser ([#2126](https://github.com/navikt/aksel/pull/2126))

## 4.7.3

## 4.7.2

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions @navikt/core/css/chips.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@
padding: 0 var(--a-spacing-3);
text-decoration: none;
border-radius: var(--a-border-radius-full);
min-height: 32px;
min-height: 2rem;
}

.navds-chips--small .navds-chips__chip {
min-height: 24px;
min-height: 1.5rem;
padding: 0 var(--a-spacing-2);
}

Expand Down
14 changes: 13 additions & 1 deletion @navikt/core/css/config/_mappings.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ const StyleMappings = {
{
component: "UNSAFE_Combobox",
main: "combobox.css",
dependencies: [typoCss],
dependencies: [typoCss, "chips.css"],
},
{
component: "ConfirmationPanel",
Expand Down Expand Up @@ -134,6 +134,18 @@ const StyleMappings = {
{ component: "Select", main: formCss, dependencies: [typoCss] },
{ component: "Skeleton", main: "skeleton.css", dependencies: [] },
{ component: "Stepper", main: "stepper.css", dependencies: [typoCss] },
{
component: "HStack",
main: "stack.css",
},
{
component: "VStack",
main: "stack.css",
},
{
component: "Spacer",
main: "stack.css",
},
{ component: "Switch", main: formCss, dependencies: [typoCss] },
{ component: "Table", main: "table.css", dependencies: [typoCss] },
{ component: "Tabs", main: "tabs.css", dependencies: [typoCss] },
Expand Down
4 changes: 2 additions & 2 deletions @navikt/core/css/copybutton.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
.navds-copybutton__icon {
font-size: 1.5rem;
display: flex;
margin-left: -4px;
margin-left: -0.25rem;
}

.navds-copybutton__icon:only-child {
margin: 0;
}

:where(.navds-copybutton--small, .navds-copybutton--xsmall):where(:not(:only-child)) {
margin: -2px;
margin: -0.125rem;
}

.navds-copybutton:focus-visible {
Expand Down
5 changes: 2 additions & 3 deletions @navikt/core/css/date.css
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@

.navds-date__field-button {
position: absolute;
right: 1px;
right: 0.0625rem;
top: 50%;
transform: translateY(-50%);
color: var(--ac-date-input-button-text, var(--a-text-default));
Expand All @@ -238,7 +238,7 @@
align-items: center;
justify-content: center;
font-size: 1.5rem;
height: calc(100% - 2px);
height: calc(100% - 0.125rem);
border-start-start-radius: 0;
border-end-start-radius: 0;
}
Expand Down Expand Up @@ -284,7 +284,6 @@
}

/* Readonly */

.navds-date__field--readonly .navds-date__field-button {
cursor: default;
}
2 changes: 1 addition & 1 deletion @navikt/core/css/expansioncard.css
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
*************************/

.navds-expansioncard__title--small {
margin-top: 10px;
margin-top: 0.625rem;
}

.navds-expansioncard__title--medium {
Expand Down
8 changes: 4 additions & 4 deletions @navikt/core/css/form/combobox.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
flex-direction: row;
justify-content: space-between;
width: 100%;
border: 1px solid black;
border: 1px solid var(--a-border-default);
}

.navds-combobox__wrapper-inner > :first-child {
Expand Down Expand Up @@ -52,7 +52,7 @@
letter-spacing: 0;
line-height: var(--a-font-line-height-large);
margin: 0;
padding-left: calc(0.5rem - 4px);
padding-left: 0.25rem;
}

.navds-combobox__input-wrapper {
Expand Down Expand Up @@ -190,8 +190,8 @@
align-items: flex-start;
padding: 0;
box-shadow: var(--a-shadow-small);
border-radius: 4px;
gap: 4px 0;
border-radius: var(--a-border-radius-medium);
gap: var(--a-spacing-1) 0;
background-color: var(--ac-combobox-list-bg, var(--a-surface-default));
color: var(--ac-combobox-list-text, var(--a-text-default));
}
Expand Down
2 changes: 1 addition & 1 deletion @navikt/core/css/form/form.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
}

.navds-form-field__description {
margin-top: -6px;
margin-top: -0.375rem;
color: var(--ac-form-description, var(--a-text-subtle));
}

Expand Down
20 changes: 10 additions & 10 deletions @navikt/core/css/form/radio-checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
.navds-checkbox__input,
.navds-radio__input {
position: absolute;
width: 48px;
height: 48px;
width: 3rem;
height: 3rem;
top: 0;
left: -12px;
left: -0.75rem;
z-index: 1;
opacity: 0;
cursor: pointer;
Expand Down Expand Up @@ -51,15 +51,15 @@

.navds-checkbox--small > .navds-checkbox__input,
.navds-radio--small > .navds-radio__input {
width: 32px;
height: 32px;
width: 2rem;
height: 2rem;
top: 0;
left: -6px;
left: -0.375rem;
}

.navds-checkbox--small > .navds-checkbox__label,
.navds-radio--small > .navds-radio__label {
padding: 6px 0;
padding: 0.375rem 0;
}

.navds-checkbox--small > .navds-checkbox__label::before,
Expand Down Expand Up @@ -115,15 +115,15 @@

.navds-checkbox__input:checked + .navds-checkbox__label::before {
background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMyAxMCI+ICAgIDxnPiAgICA8cGF0aCBmaWxsPSIjRkZGRkZGIiBkPSJNNCwxMGMtMC40LDAtMC44LTAuMS0xLjEtMC40TDAuNCw3LjFDMC4xLDYuOCwwLDYuNCwwLDZzMC4yLTAuOCwwLjUtMS4xQzEsNC40LDIsNC40LDIuNSw0LjlMNCw2LjRsNi40LTYgICAgQzEwLjgsMC4xLDExLjEsMCwxMS41LDBjMC40LDAsMC44LDAuMiwxLDAuNWMwLjYsMC42LDAuNSwxLjYtMC4xLDIuMXYwTDUsOS42QzQuNyw5LjksNC40LDEwLDQsMTB6IE0xMS44LDEuOUwxMS44LDEuOSAgICBDMTEuOCwxLjksMTEuOCwxLjksMTEuOCwxLjl6IE0xMS4yLDEuMUMxMS4yLDEuMSwxMS4yLDEuMSwxMS4yLDEuMUwxMS4yLDEuMXoiLz4gICAgPC9nPjwvc3ZnPg==);
background-position: 6px center;
background-position: 0.375rem center;
background-repeat: no-repeat;
background-size: 13px;
background-size: 0.8125rem;
box-shadow: none;
background-color: var(--ac-radio-checkbox-action, var(--a-surface-action));
}

.navds-checkbox--small > .navds-checkbox__input:checked + .navds-checkbox__label::before {
background-position: 4px center;
background-position: 0.25rem center;
}

.navds-checkbox__input:indeterminate:focus-visible + .navds-checkbox__label::before,
Expand Down
6 changes: 3 additions & 3 deletions @navikt/core/css/form/search.css
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@

.navds-search__button-search {
flex-shrink: 0;
min-width: 64px;
min-height: 32px;
min-width: 4rem;
min-height: 2rem;
border-radius: 0;
border-top-right-radius: var(--a-border-radius-medium);
border-bottom-right-radius: var(--a-border-radius-medium);
Expand All @@ -116,7 +116,7 @@
}

.navds-form-field--small .navds-search__button-search {
min-width: 40px;
min-width: 2.5rem;
}

.navds-search__button-search.navds-button--secondary {
Expand Down
4 changes: 2 additions & 2 deletions @navikt/core/css/form/select.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
color: var(--ac-select-text, var(--a-text-default));
width: 100%;
box-sizing: border-box;
min-height: 48px;
min-height: 3rem;
display: inline-block;
position: relative;
padding: 0.5rem;
Expand Down Expand Up @@ -45,7 +45,7 @@
}

.navds-form-field--small .navds-select__input {
min-height: 32px;
min-height: 2rem;
padding: 0 2rem 0 0.25rem;
}

Expand Down
Loading

0 comments on commit 14465d8

Please sign in to comment.