Compare commits

...
Author SHA1 Message Date
github-actions[bot]andgithub-actions[bot] 5151313833 Version Packages (#1722)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-22 18:46:30 +01:00
Ken 45977bf71d ✨ Linter ubrukte css-selektorer 2022-11-22 17:17:08 +01:00
Ken e8007328db 🐛 Css-tokens 2022-11-22 17:10:37 +01:00
Ken 92f0fee402 🎨 sanity-typer 2022-11-21 15:35:43 +01:00
Ken d347deb05f 🔥 Fjernet gammel sanity-script 2022-11-21 14:39:19 +01:00
26 changed files with 102 additions and 48 deletions

No files matched your search

+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-codemod
## 2.0.1
## 2.0.0
### Major Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-codemod",
"version": "2.0.0",
"version": "2.0.1",
"description": "Aksel codemods for NAVs designsystem",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
+6
View File
@@ -1,5 +1,11 @@
# @navikt/ds-css
## 2.0.1
### Patch Changes
- [`e8007328d`](https://github.com/navikt/Designsystemet/commit/e8007328db3f6d5be696cf24f03304c79be0f3f7) Thanks [@KenAJoh](https://github.com/KenAJoh)! - Bugfixer ved bruk av tokens
## 2.0.0
### Major Changes
+2 -2
View File
@@ -24,7 +24,7 @@
.navds-accordion__header:hover {
color: var(--ac-accordion-header-text-hover, var(--a-text-action-on-action-subtle));
border-color: var(--ac-accordion-header-border-hover, var(--a-border-strong-hover));
border-color: var(--ac-accordion-header-border-hover, var(--a-border-strong));
}
.navds-accordion__header-content {
@@ -43,7 +43,7 @@
}
.navds-accordion__item--open > .navds-accordion__header:hover + * .navds-accordion__content {
border-color: var(--ac-accordion-content-border-open, var(--a-border-strong-hover));
border-color: var(--ac-accordion-content-border-open, var(--a-border-strong));
}
.navds-accordion__expand-icon {
+1 -1
View File
@@ -37,7 +37,7 @@ body,
}
a {
color: var(--a-semantic-color-link);
color: var(--a-text-action);
}
button {
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-css",
"version": "2.0.0",
"version": "2.0.1",
"description": "CSS for NAV Designsystem",
"author": "Aksel | NAV designsystem team",
"keywords": [
@@ -20,7 +20,7 @@
"watch": "postcss --watch --use postcss-import -o dist/index.css index.css"
},
"devDependencies": {
"@navikt/ds-tokens": "^2.0.0",
"@navikt/ds-tokens": "^2.0.1",
"normalize.css": "^8.0.1",
"postcss": "^8.4.0",
"postcss-cli": "^9.0.0",
+2 -2
View File
@@ -11,11 +11,11 @@
},
"accordion": {
"--ac-accordion-header-text-hover": "--a-text-action-on-action-subtle",
"--ac-accordion-header-border-hover": "--a-border-strong-hover",
"--ac-accordion-header-border-hover": "--a-border-strong",
"--ac-accordion-item-bg-open": "--a-surface-action-subtle",
"--ac-accordion-item-border-open": "--a-surface-action-subtle",
"--ac-accordion-content-border": "--a-border-strong",
"--ac-accordion-content-border-open": "--a-border-strong-hover"
"--ac-accordion-content-border-open": "--a-border-strong"
},
"button": {
"--ac-button-primary-bg": "--a-surface-action",
+7
View File
@@ -1,5 +1,12 @@
# @navikt/ds-react
## 2.0.1
### Patch Changes
- Updated dependencies []:
- @navikt/ds-icons@2.0.1
## 2.0.0
### Major Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-react",
"version": "2.0.0",
"version": "2.0.1",
"description": "Aksel react-components for NAV designsystem",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
@@ -37,7 +37,7 @@
},
"dependencies": {
"@floating-ui/react-dom-interactions": "0.9.2",
"@navikt/ds-icons": "^2.0.0",
"@navikt/ds-icons": "^2.0.1",
"@radix-ui/react-tabs": "1.0.0",
"@radix-ui/react-toggle-group": "1.0.0",
"clsx": "^1.2.1",
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-tailwind
## 2.0.1
## 2.0.0
### Major Changes
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-tailwind",
"version": "2.0.0",
"version": "2.0.1",
"description": "Tailwind config based on @navikt/ds-tokens",
"author": "Aksel | NAV designsystem team",
"keywords": [
@@ -22,7 +22,7 @@
"directory": "@navikt/core/tailwind"
},
"devDependencies": {
"@navikt/ds-tokens": "^2.0.0",
"@navikt/ds-tokens": "^2.0.1",
"@types/jest": "^29.0.0",
"@types/node": "^17.0.35",
"color": "4.2.3",
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-tokens
## 2.0.1
## 2.0.0
### Major Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-tokens",
"version": "2.0.0",
"version": "2.0.1",
"description": "Design-tokens for NAV designsystem",
"author": "Aksel | NAV designsystem team",
"keywords": [
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-icons
## 2.0.1
## 2.0.0
## 1.5.10
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-icons",
"version": "2.0.0",
"version": "2.0.1",
"description": "Aksel icons for NAV",
"author": "Aksel | NAV designsystem team",
"repository": {
+2
View File
@@ -1,5 +1,7 @@
# @navikt/ds-css-internal
## 2.0.1
## 2.0.0
### Major Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-css-internal",
"version": "2.0.0",
"version": "2.0.1",
"description": "CSS for NAV internal Designsystem-components",
"author": "Aksel | NAV designsystem team",
"keywords": [
+8
View File
@@ -1,5 +1,13 @@
# @navikt/ds-react-internal
## 2.0.1
### Patch Changes
- Updated dependencies []:
- @navikt/ds-react@2.0.1
- @navikt/ds-icons@2.0.1
## 2.0.0
## 1.5.10
+3 -3
View File
@@ -1,6 +1,6 @@
{
"name": "@navikt/ds-react-internal",
"version": "2.0.0",
"version": "2.0.1",
"description": "Aksel react components for internal UIs in NAV",
"author": "Aksel | NAV designsystem team",
"license": "MIT",
@@ -35,8 +35,8 @@
"watch": "tsc --watch -p tsconfig.esm.json"
},
"dependencies": {
"@navikt/ds-icons": "^2.0.0",
"@navikt/ds-react": "^2.0.0",
"@navikt/ds-icons": "^2.0.1",
"@navikt/ds-react": "^2.0.1",
"clsx": "^1.1.1",
"copy-to-clipboard": "^3.3.1"
},
+8 -8
View File
@@ -19,14 +19,14 @@
"website"
],
"dependencies": {
"@navikt/ds-codemod": "^2.0.0",
"@navikt/ds-css": "^2.0.0",
"@navikt/ds-css-internal": "^2.0.0",
"@navikt/ds-icons": "^2.0.0",
"@navikt/ds-react": "^2.0.0",
"@navikt/ds-react-internal": "^2.0.0",
"@navikt/ds-tailwind": "^2.0.0",
"@navikt/ds-tokens": "^2.0.0"
"@navikt/ds-codemod": "^2.0.1",
"@navikt/ds-css": "^2.0.1",
"@navikt/ds-css-internal": "^2.0.1",
"@navikt/ds-icons": "^2.0.1",
"@navikt/ds-react": "^2.0.1",
"@navikt/ds-react-internal": "^2.0.1",
"@navikt/ds-tailwind": "^2.0.1",
"@navikt/ds-tokens": "^2.0.1"
},
"devDependencies": {
"prettier-plugin-tailwindcss": "^0.1.13"
-16
View File
@@ -988,7 +988,6 @@ Bruk en kort og konsis tittel om mulig. Blir satt som `<H1 />` på toppen av sid
| Sanity.Keyed<alert>
| Sanity.Keyed<tabell>
| Sanity.Keyed<video>
| Sanity.Keyed<tokens>
| Sanity.Keyed<spesial_seksjon>
>;
@@ -1005,7 +1004,6 @@ Bruk en kort og konsis tittel om mulig. Blir satt som `<H1 />` på toppen av sid
| Sanity.Keyed<video>
| Sanity.Keyed<props_seksjon>
| Sanity.Keyed<tastatur_modul>
| Sanity.Keyed<tokens>
| Sanity.Keyed<kode_eksempler>
| Sanity.Keyed<token_ref>
>;
@@ -1399,20 +1397,6 @@ Hvis videoen inneholder lyd, anbelfaler vi å skrive en transkripsjon som kan le
transkripsjon?: string;
};
type tokens = {
_type: "tokens";
/**
* Tittel/beskrivelse - `String`
*/
title?: string;
/**
* Tokens - `Array`
*/
tokenlist?: Array<Sanity.KeyedReference<ds_tokens>>;
};
type tips = {
_type: "tips";
+1 -2
View File
@@ -10,12 +10,11 @@
"build": "next build",
"start": "next start",
"e2e": "yarn build && yarn start-server-and-test start http://localhost:3000 playwright",
"update:colors": "npx ts-node --project tsconfig.tsnode.json ./lib/update-documents/update-color-examples",
"update:props": "npx ts-node --project tsconfig.tsnode.json ./lib/update-documents/update-props",
"update:tokens": "npx ts-node --project tsconfig.tsnode.json ./lib/update-documents/update-tokens",
"update:search": "npx ts-node --project tsconfig.tsnode.json ./lib/search",
"update:eksempler": "npx ts-node --project tsconfig.tsnode.json ./lib/examples/update-sanity",
"update:sanity": "yarn update:tokens && yarn update:props && yarn update:colors && yarn update:eksempler",
"update:sanity": "yarn update:tokens && yarn update:props && yarn update:eksempler",
"analyze": "cross-env ANALYZE=true next build",
"test": "jest",
"playwright": "playwright test",
+2 -1
View File
@@ -10,6 +10,7 @@ pre[class*="language-"] {
max-width: calc(100% - 4.5rem);
color: var(--a-gray-50);
background: none;
/* stylelint-disable-next-line color-function-notation */
text-shadow: 0 1px rgba(0, 0, 0, 0.3);
text-align: left;
white-space: pre;
@@ -38,7 +39,7 @@ pre[class*="language-"] {
:not(pre) > code[class*="language-"],
pre[class*="language-"] {
background: var(---a-surface-inverted);
background: var(--a-surface-inverted);
}
/* Inline code */
+2 -2
View File
@@ -10,8 +10,8 @@
"preview": "vite preview"
},
"dependencies": {
"@navikt/ds-css": "2.0.0",
"@navikt/ds-react": "2.0.0",
"@navikt/ds-css": "2.0.1",
"@navikt/ds-react": "2.0.1",
"react": "^18.0.0",
"react-dom": "^18.0.0"
},
+17 -1
View File
@@ -138,7 +138,12 @@
"stylelint-config-standard",
"stylelint-config-prettier"
],
"plugins": [
"stylelint-value-no-unknown-custom-properties",
"stylelint-declaration-block-no-ignored-properties"
],
"rules": {
"plugin/declaration-block-no-ignored-properties": true,
"value-list-comma-newline-after": null,
"declaration-colon-newline-after": null,
"no-descending-specificity": null,
@@ -163,11 +168,20 @@
{
"camelCaseSvgKeywords": true
}
],
"csstools/value-no-unknown-custom-properties": [
true,
{
"importFrom": [
"@navikt/core/tokens/dist/tokens.css"
]
}
]
},
"ignoreFiles": [
"**/dist/**",
"**/aksel.nav.no/sanity/dist**"
"**/aksel.nav.no/sanity/dist**",
"**/@navikt/codemod/**"
]
},
"repository": {
@@ -209,6 +223,8 @@
"stylelint": "^14.8.5",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^25.0.0",
"stylelint-declaration-block-no-ignored-properties": "^2.6.0",
"stylelint-value-no-unknown-custom-properties": "^4.0.0",
"typescript": "^4.8.0",
"webpack": "^5.4.0",
"webpack-cli": "^4.2.0",
+23
View File
@@ -8404,6 +8404,8 @@ __metadata:
stylelint: ^14.8.5
stylelint-config-prettier: ^9.0.3
stylelint-config-standard: ^25.0.0
stylelint-declaration-block-no-ignored-properties: ^2.6.0
stylelint-value-no-unknown-custom-properties: ^4.0.0
typescript: ^4.8.0
webpack: ^5.4.0
webpack-cli: ^4.2.0
@@ -28058,6 +28060,27 @@ __metadata:
languageName: node
linkType: hard
"stylelint-declaration-block-no-ignored-properties@npm:^2.6.0":
version: 2.6.0
resolution: "stylelint-declaration-block-no-ignored-properties@npm:2.6.0"
peerDependencies:
stylelint: ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0
checksum: 6fc38ec4bd471443c486f647a82cc001c455eb5654cbcb1e631f2d5fe920586775c0bc90a6d9ad8be254e37ba5f67584d0baa1409fc8a8d18dae74f558292190
languageName: node
linkType: hard
"stylelint-value-no-unknown-custom-properties@npm:^4.0.0":
version: 4.0.0
resolution: "stylelint-value-no-unknown-custom-properties@npm:4.0.0"
dependencies:
postcss-value-parser: ^4.2.0
resolve: ^1.22.0
peerDependencies:
stylelint: 10 - 14
checksum: 2c0e932a16932180c1afbb842a93290b44d265b702faa8f17a2ca0ced8503487ad24367d585e474e0866fda67ad3cb8f2de5ae673968cd7bb030e207d822c45e
languageName: node
linkType: hard
"stylelint@npm:^14.8.5":
version: 14.14.0
resolution: "stylelint@npm:14.14.0"