mirror of
https://github.com/navikt/aksel.git
synced 2026-10-13 09:12:03 +00:00
Compare commits
9
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
409ce29179 | ||
|
|
08c8a07e94 | ||
|
|
701ca3f285 | ||
|
|
e874406491 | ||
|
|
b1516dad35 | ||
|
|
9bd629ca87 | ||
|
|
960246f2f3 | ||
|
|
e07467b66c | ||
|
|
23259595b3 |
No files matched your search
@@ -21,7 +21,7 @@
|
||||
"access": "public",
|
||||
"baseBranch": "master",
|
||||
"updateInternalDependencies": "patch",
|
||||
"ignore": ["shadow-dom", "aksel.nav.no"],
|
||||
"ignore": ["shadow-dom", "aksel.nav.no", "@navikt/ds-navno"],
|
||||
|
||||
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": {
|
||||
"updateInternalDependents": "always"
|
||||
|
||||
@@ -116,6 +116,7 @@ react-docgen.json
|
||||
react-docgen-docs.json
|
||||
cjs
|
||||
esm
|
||||
@navikt/community/navno/css
|
||||
.vercel
|
||||
_docs.json
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ module.exports = (baseConfig) => {
|
||||
use: ["style-loader", "css-loader"],
|
||||
include: [
|
||||
path.resolve(__dirname, "../node_modules/@navikt/core/css/index.css"),
|
||||
path.resolve(__dirname, "../node_modules/@navikt/internal/css/index.css"),
|
||||
],
|
||||
});
|
||||
baseConfig.config.resolve.alias = {
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# @navikt/ds-codemod
|
||||
|
||||
## 2.0.3
|
||||
|
||||
## 2.0.2
|
||||
|
||||
## 2.0.1
|
||||
|
||||
## 2.0.0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navikt/ds-codemod",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"description": "Aksel codemods for NAVs designsystem",
|
||||
"author": "Aksel | NAV designsystem team",
|
||||
"license": "MIT",
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
const template = require("./template");
|
||||
|
||||
module.exports = {
|
||||
typescript: true,
|
||||
ref: true,
|
||||
icon: false,
|
||||
titleProp: false,
|
||||
svgProps: {
|
||||
focusable: false,
|
||||
role: "img",
|
||||
},
|
||||
/* replaceAttrValues: {
|
||||
"#262626": "currentColor",
|
||||
}, */
|
||||
template,
|
||||
};
|
||||
@@ -0,0 +1,38 @@
|
||||
# NAV React-components for nav.no
|
||||
|
||||
## Installation
|
||||
|
||||
Install `@navikt/ds-navno` with yarn
|
||||
|
||||
```bash
|
||||
yarn add @navikt/ds-navno
|
||||
```
|
||||
|
||||
Install `@navikt/ds-navno` with npm
|
||||
|
||||
```bash
|
||||
npm install @navikt/ds-navno
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Remember to also import @navikt/ds-navno/css to apply styling!
|
||||
|
||||
```javascript
|
||||
import "@navikt/ds-navno/css";
|
||||
import { PageHeader } from "@navikt/ds-navno";
|
||||
|
||||
function App() {
|
||||
return <PageHeader />;
|
||||
}
|
||||
```
|
||||
|
||||
## Learn more
|
||||
|
||||
- [Designsystem documentation](https://aksel.nav.no/designsystem)
|
||||
- [Component-docs](https://aksel.nav.no/designsystem/side/oversikt-komponenter)
|
||||
- [Storybook](https://master--5f801fb2aea7820022de2936.chromatic.com/)
|
||||
|
||||
## License
|
||||
|
||||
[MIT](https://github.com/navikt/Designsystemet/blob/master/LICENCE)
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* @type {import('@babel/core').TransformOptions}
|
||||
*/
|
||||
module.exports = {
|
||||
presets: [
|
||||
[
|
||||
"@babel/preset-env",
|
||||
{
|
||||
modules: "auto",
|
||||
useBuiltIns: "entry",
|
||||
corejs: 3,
|
||||
debug: false,
|
||||
bugfixes: true,
|
||||
},
|
||||
],
|
||||
["@babel/preset-typescript", {}],
|
||||
["@babel/preset-react", { development: false, useBuiltIns: true }],
|
||||
],
|
||||
babelrcRoots: ["."],
|
||||
};
|
||||
@@ -0,0 +1,12 @@
|
||||
const path = require("path");
|
||||
|
||||
function defaultIndexTemplate(filePaths) {
|
||||
const exportEntries = filePaths.map((filePath) => {
|
||||
const basename = path.basename(filePath, path.extname(filePath));
|
||||
const exportName = /^\d/.test(basename) ? `Svg${basename}` : basename;
|
||||
return `export { default as Pictogram${exportName} } from './${basename}'`;
|
||||
});
|
||||
return exportEntries.join("\n");
|
||||
}
|
||||
|
||||
module.exports = defaultIndexTemplate;
|
||||
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"name": "@navikt/ds-navno",
|
||||
"version": "0.0.1",
|
||||
"private": true,
|
||||
"description": "nav.no + ds components",
|
||||
"author": "Aksel | NAV designsystem team",
|
||||
"license": "MIT",
|
||||
"keywords": [
|
||||
"react",
|
||||
"typescript",
|
||||
"javascript"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/navikt/Designsystemet.git"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"main": "./cjs/index.js",
|
||||
"module": "./esm/index.js",
|
||||
"typings": "./esm/index.d.ts",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"/css",
|
||||
"/cjs",
|
||||
"/esm",
|
||||
"/src",
|
||||
"_docs.json",
|
||||
"!**/*.tsbuildinfo"
|
||||
],
|
||||
"scripts": {
|
||||
"docgen": "yarn ts-node ../../../scripts/docgen.ts",
|
||||
"create-package-json-pointers-to-esm": "node ../../../scripts/createPackageJsonsWithESMPointers.js",
|
||||
"clean": "rimraf cjs esm css",
|
||||
"build": "yarn build-pict && concurrently \"tsc -b\" \"rollup -c\" && yarn css && yarn create-package-json-pointers-to-esm",
|
||||
"css": "copyfiles -f esm/index.css css/ && rimraf esm/*.css cjs/*.css",
|
||||
"test-ignore": "TZ=UTC jest",
|
||||
"build-pict": "svgr --silent --index-template index-template.js --out-dir src/pictograms pictograms"
|
||||
},
|
||||
"dependencies": {
|
||||
"@navikt/ds-icons": "^2.0.3",
|
||||
"@navikt/ds-react": "^2.0.3",
|
||||
"clsx": "^1.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/preset-env": "7.19.4",
|
||||
"@babel/preset-react": "7.18.6",
|
||||
"@babel/preset-typescript": "7.18.6",
|
||||
"@rollup/plugin-babel": "6.0.2",
|
||||
"@rollup/plugin-commonjs": "23.0.2",
|
||||
"@rollup/plugin-node-resolve": "^15.0.1",
|
||||
"@svgr/cli": "6.2.1",
|
||||
"@types/node": "^17.0.35",
|
||||
"concurrently": "7.2.1",
|
||||
"copyfiles": "2.4.1",
|
||||
"postcss-combine-duplicated-selectors": "10.0.3",
|
||||
"postcss-import": "14.1.0",
|
||||
"rimraf": "^3.0.2",
|
||||
"rollup": "3.2.3",
|
||||
"rollup-plugin-node-externals": "5.0.1",
|
||||
"rollup-plugin-postcss": "4.0.2",
|
||||
"ts-node": "10.9.0",
|
||||
"typescript": "^4.8.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@types/react": "^17.0.30 || ^18.0.0",
|
||||
"react": "^17.0.0 || ^18.0.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
<svg
|
||||
width="64"
|
||||
height="64"
|
||||
viewBox="0 0 64 64"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M31.3332 41.791C31.3332 35.3802 37.5554 24.1613 40.6665 24.1613C43.7777 24.1613 49.9999 35.3802 49.9999 41.791C49.9999 48.2017 45.8212 53.0098 40.6665 53.0098C35.5119 53.0098 31.3332 48.8721 31.3332 41.791Z"
|
||||
fill="#FFECCC"
|
||||
/>
|
||||
<path
|
||||
d="M39.825 25.4844C40.2522 25.9492 40.9751 25.9796 41.4398 25.5525C41.9046 25.1254 41.935 24.4024 41.5079 23.9377L39.825 25.4844ZM30.4271 17.5238L23.3331 17.5238L23.3331 19.8095L30.4271 19.8095L30.4271 17.5238ZM6.19028 34.6666L6.19028 64L8.476 64L8.476 34.6666L6.19028 34.6666ZM37.439 22.8885L39.825 25.4844L41.5079 23.9377L39.1219 21.3417L37.439 22.8885ZM23.3331 17.5238C13.8654 17.5238 6.19028 25.1989 6.19028 34.6666L8.476 34.6666C8.47599 26.4612 15.1278 19.8095 23.3331 19.8095L23.3331 17.5238ZM30.4271 19.8095C33.0923 19.8095 35.6355 20.9262 37.439 22.8885L39.1219 21.3417C36.8855 18.9085 33.7319 17.5238 30.4271 17.5238L30.4271 19.8095Z"
|
||||
fill="#FFECCC"
|
||||
/>
|
||||
<path
|
||||
d="M13.8571 42.744C13.8571 44.042 13.1875 45.9912 12.2658 47.6744C11.8135 48.5002 11.3322 49.2031 10.8996 49.6838C10.6824 49.9251 10.4999 50.0852 10.3619 50.178C10.331 50.1987 10.3057 50.2139 10.2857 50.2249C10.2658 50.2139 10.2404 50.1987 10.2095 50.178C10.0715 50.0852 9.88904 49.9251 9.67187 49.6838C9.23923 49.2031 8.75791 48.5002 8.30567 47.6744C7.38392 45.9912 6.71429 44.042 6.71429 42.744C6.71429 40.0533 8.45327 38.3334 10.2857 38.3334C11.273 38.3334 12.1413 38.718 12.7725 39.4244C13.4078 40.1352 13.8571 41.2363 13.8571 42.744Z"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M18.6667 47.6085C17.3979 47.6085 15.4832 48.2838 13.8244 49.2188C13.0115 49.6769 12.3196 50.1645 11.8462 50.603C11.6088 50.823 11.4505 51.0084 11.3582 51.1497C11.3312 51.1911 11.3135 51.2231 11.302 51.2462C11.3135 51.2693 11.3312 51.3012 11.3582 51.3426C11.4505 51.4839 11.6088 51.6694 11.8462 51.8894C12.3196 52.3278 13.0115 52.8155 13.8244 53.2736C15.4832 54.2085 17.3979 54.8839 18.6667 54.8839C21.2846 54.8839 23 53.1402 23 51.2462C23 50.2306 22.6149 49.3431 21.9188 48.7029C21.2203 48.0605 20.1423 47.6085 18.6667 47.6085Z"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M11.9764 50.0867V50.0867C8.85957 51.4986 6.85728 54.6037 6.85728 58.0254L6.85728 60.5216"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M3.87373e-05 64.0002V64.0002C3.08423 58.7853 10.6301 58.7853 13.7143 64.0002V64.0002"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M52.6224 26.9825V26.9825C57.4166 26.9258 61.3335 30.7966 61.3335 35.5912L61.3335 64.667"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M54.0742 15.5883C52.2506 15.5883 49.5767 16.527 47.2991 17.7872C46.1764 18.4083 45.2094 19.0755 44.5387 19.6854C44.2024 19.9911 43.9655 20.2602 43.8195 20.4797C43.6933 20.6694 43.6714 20.7672 43.6676 20.7852C43.6714 20.8032 43.6933 20.9011 43.8195 21.0908C43.9655 21.3103 44.2024 21.5793 44.5387 21.8851C45.2094 22.495 46.1764 23.1621 47.2991 23.7833C49.5767 25.0435 52.2506 25.9821 54.0742 25.9821C57.811 25.9821 60.3335 23.5243 60.3335 20.7852C60.3335 19.3455 59.7756 18.0698 58.7519 17.1456C57.7245 16.2179 56.1626 15.5883 54.0742 15.5883Z"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M31.2594 25.9823C33.0831 25.9823 35.757 25.0436 38.0346 23.7834C39.1573 23.1622 40.1243 22.4951 40.795 21.8852C41.1312 21.5795 41.3682 21.3104 41.5141 21.0909C41.6403 20.9012 41.6622 20.8034 41.666 20.7854C41.6622 20.7674 41.6403 20.6695 41.5141 20.4798C41.3682 20.2603 41.1312 19.9913 40.795 19.6855C40.1243 19.0756 39.1573 18.4085 38.0346 17.7873C35.757 16.5271 33.0831 15.5884 31.2594 15.5884C27.5226 15.5884 25.0002 18.0463 25.0002 20.7854C25.0002 22.2251 25.558 23.5007 26.5817 24.425C27.6092 25.3526 29.1711 25.9823 31.2594 25.9823Z"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M43.8491 8.75968C42.9384 10.3306 42.4176 13.1046 42.3746 15.699C42.3535 16.9776 42.45 18.145 42.645 19.0283C42.7427 19.4711 42.8582 19.8101 42.9762 20.046C43.0806 20.2547 43.1564 20.322 43.1689 20.3329C43.1847 20.3382 43.281 20.37 43.5147 20.3557C43.7789 20.3395 44.1314 20.2696 44.5653 20.1325C45.4309 19.859 46.4942 19.3586 47.5955 18.701C49.83 17.3667 51.9818 15.5306 52.8924 13.9597C54.7572 10.743 53.887 7.33688 51.4989 5.96367C50.2443 5.24233 48.8543 5.08606 47.5388 5.50687C46.2191 5.92903 44.8921 6.9604 43.8491 8.75968Z"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M52.892 28.4375C51.9813 26.8665 49.8296 25.0304 47.5951 23.6961C46.4938 23.0385 45.4304 22.5381 44.5648 22.2646C44.1309 22.1275 43.7784 22.0576 43.5143 22.0415C43.2806 22.0272 43.1842 22.0589 43.1685 22.0642C43.156 22.0751 43.0802 22.1424 42.9758 22.3511C42.8578 22.587 42.7423 22.926 42.6446 23.3688C42.4496 24.2521 42.353 25.4195 42.3742 26.6981C42.4172 29.2925 42.938 32.0665 43.8486 33.6374C45.7134 36.8541 49.1102 37.8066 51.4984 36.4334C52.7529 35.7121 53.5838 34.5913 53.8757 33.2463C54.1684 31.8969 53.9351 30.2367 52.892 28.4375Z"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M32.4416 28.4375C33.3523 26.8665 35.504 25.0304 37.7385 23.6961C38.8398 23.0385 39.9032 22.5381 40.7688 22.2646C41.2027 22.1275 41.5552 22.0576 41.8194 22.0415C42.053 22.0272 42.1494 22.0589 42.1651 22.0642C42.1776 22.0751 42.2534 22.1424 42.3578 22.3511C42.4758 22.587 42.5913 22.926 42.689 23.3688C42.884 24.2521 42.9806 25.4195 42.9594 26.6981C42.9164 29.2925 42.3957 32.0665 41.485 33.6374C39.6203 36.8541 36.2234 37.8066 33.8352 36.4334C32.5807 35.7121 31.7498 34.5913 31.458 33.2463C31.1652 31.8969 31.3985 30.2367 32.4416 28.4375Z"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
<path
|
||||
d="M32.4416 13.9599C33.3523 15.5308 35.504 17.3669 37.7385 18.7012C38.8398 19.3588 39.9032 19.8592 40.7688 20.1327C41.2027 20.2698 41.5552 20.3397 41.8194 20.3558C42.053 20.3702 42.1494 20.3384 42.1651 20.3331C42.1776 20.3222 42.2534 20.2549 42.3578 20.0462C42.4758 19.8103 42.5913 19.4713 42.689 19.0285C42.884 18.1452 42.9806 16.9778 42.9594 15.6992C42.9164 13.1048 42.3957 10.3308 41.485 8.75988C39.6203 5.54323 36.2234 4.59067 33.8352 5.96387C32.5807 6.68522 31.7498 7.80597 31.458 9.15102C31.1652 10.5004 31.3985 12.1606 32.4416 13.9599Z"
|
||||
stroke="#262626"
|
||||
stroke-width="2"
|
||||
/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 6.1 KiB |
@@ -0,0 +1,71 @@
|
||||
<svg
|
||||
width="96"
|
||||
height="96"
|
||||
viewBox="0 0 96 96"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
d="M47 62.6869C47 53.0707 56.3333 36.2424 61 36.2424C65.6667 36.2424 75 53.0707 75 62.6869C75 72.303 68.732 79.5151 61 79.5151C53.268 79.5151 47 73.3086 47 62.6869Z"
|
||||
fill="#FFECCC"
|
||||
/>
|
||||
<path
|
||||
d="M60.2638 37.7434C60.6375 38.15 61.2701 38.1767 61.6768 37.8029C62.0834 37.4292 62.11 36.7966 61.7363 36.39L60.2638 37.7434ZM45.641 27L35.0001 27L35.0001 29L45.641 29L45.641 27ZM10.0001 52L10.0001 96L12.0001 96L12.0001 52L10.0001 52ZM56.6848 33.8494L60.2638 37.7434L61.7363 36.39L58.1573 32.496L56.6848 33.8494ZM35.0001 27C21.1929 27 10.0001 38.1929 10.0001 52L12.0001 52C12.0001 39.2974 22.2975 29 35.0001 29L35.0001 27ZM45.641 29C49.8386 29 53.8442 30.7589 56.6848 33.8494L58.1573 32.496C54.938 28.9934 50.3983 27 45.641 27L45.641 29Z"
|
||||
fill="#FFECCC"
|
||||
/>
|
||||
<path
|
||||
d="M20.7856 64.116C20.7856 66.063 19.7812 68.9867 18.3986 71.5115C17.7202 72.7503 16.9982 73.8046 16.3493 74.5257C16.0235 74.8876 15.7498 75.1278 15.5428 75.2669C15.4964 75.2981 15.4584 75.3208 15.4285 75.3372C15.3986 75.3208 15.3606 75.2981 15.3142 75.2669C15.1072 75.1278 14.8335 74.8876 14.5077 74.5257C13.8588 73.8046 13.1368 72.7503 12.4585 71.5115C11.0758 68.9867 10.0714 66.063 10.0714 64.116C10.0714 60.0798 12.6798 57.5 15.4285 57.5C16.9095 57.5 18.2119 58.0769 19.1587 59.1365C20.1116 60.2028 20.7856 61.8545 20.7856 64.116Z"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M28 71.4127C26.0969 71.4127 23.2248 72.4257 20.7365 73.8281C19.5173 74.5153 18.4794 75.2467 17.7694 75.9045C17.4131 76.2344 17.1757 76.5126 17.0373 76.7246C16.9968 76.7866 16.9702 76.8346 16.953 76.8692C16.9702 76.9039 16.9968 76.9519 17.0373 77.0139C17.1757 77.2259 17.4131 77.5041 17.7694 77.834C18.4794 78.4917 19.5173 79.2232 20.7365 79.9104C23.2248 81.3128 26.0969 82.3258 28 82.3258C31.9269 82.3258 34.5 79.7102 34.5 76.8692C34.5 75.346 33.9224 74.0146 32.8781 73.0543C31.8304 72.0907 30.2134 71.4127 28 71.4127Z"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M17.9645 75.1302V75.1302C13.2893 77.248 10.2858 81.9057 10.2858 87.0383L10.2858 90.7825"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M2.61579e-05 96V96C4.62632 88.1777 15.9451 88.1777 20.5714 96V96"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M78.9333 40.4731V40.4731C86.1247 40.3881 92 46.1943 92 53.3862L92 97"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M81.1111 23.3827C78.3756 23.3827 74.3647 24.7907 70.9484 26.681C69.2643 27.6128 67.8138 28.6135 66.8077 29.5283C66.3034 29.987 65.948 30.3905 65.729 30.7197C65.5397 31.0044 65.5068 31.1511 65.5012 31.1781C65.5068 31.2051 65.5397 31.3519 65.729 31.6365C65.948 31.9657 66.3034 32.3692 66.8077 32.8279C67.8138 33.7428 69.2643 34.7434 70.9484 35.6752C74.3647 37.5655 78.3756 38.9735 81.1111 38.9735C86.7163 38.9735 90.4999 35.2867 90.4999 31.1781C90.4999 29.0185 89.6632 27.105 88.1276 25.7186C86.5865 24.3272 84.2436 23.3827 81.1111 23.3827Z"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M46.8889 38.9736C49.6243 38.9736 53.6352 37.5656 57.0516 35.6754C58.7356 34.7436 60.1861 33.7429 61.1922 32.828C61.6966 32.3694 62.052 31.9658 62.2709 31.6366C62.4602 31.352 62.4931 31.2052 62.4988 31.1782C62.4931 31.1513 62.4602 31.0045 62.2709 30.7199C62.052 30.3907 61.6966 29.9871 61.1922 29.5285C60.1861 28.6136 58.7356 27.6129 57.0516 26.6811C53.6352 24.7909 49.6243 23.3829 46.8889 23.3829C41.2837 23.3829 37.5 27.0697 37.5 31.1782C37.5 33.3379 38.3368 35.2513 39.8723 36.6377C41.4135 38.0292 43.7563 38.9736 46.8889 38.9736Z"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M65.7733 13.1394C64.4073 15.4957 63.6262 19.6567 63.5617 23.5483C63.5299 25.4663 63.6748 27.2173 63.9672 28.5423C64.1138 29.2065 64.2871 29.715 64.4641 30.0689C64.6207 30.382 64.7343 30.4828 64.7531 30.4992C64.7767 30.5072 64.9212 30.5548 65.2717 30.5333C65.668 30.509 66.1968 30.4042 66.8476 30.1986C68.146 29.7883 69.7411 29.0377 71.393 28.0513C74.7447 26.0499 77.9724 23.2957 79.3384 20.9393C82.1355 16.1143 80.8303 11.0052 77.248 8.94534C75.3662 7.86333 73.2812 7.62893 71.308 8.26014C69.3284 8.89337 67.3379 10.4404 65.7733 13.1394Z"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M79.3378 42.6561C77.9718 40.2997 74.7441 37.5455 71.3924 35.544C69.7405 34.5577 68.1454 33.8071 66.847 33.3968C66.1962 33.1912 65.6674 33.0863 65.2712 33.0621C64.9206 33.0406 64.7761 33.0882 64.7525 33.0962C64.7337 33.1126 64.6201 33.2134 64.4635 33.5265C64.2865 33.8804 64.1132 34.3889 63.9666 35.0531C63.6742 36.378 63.5293 38.1291 63.5611 40.047C63.6256 43.9387 64.4067 48.0996 65.7727 50.456C68.5698 55.281 73.6651 56.7098 77.2474 54.65C79.1292 53.568 80.3755 51.8869 80.8133 49.8693C81.2524 47.8453 80.9024 45.355 79.3378 42.6561Z"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M48.6621 42.6561C50.0281 40.2997 53.2558 37.5455 56.6076 35.544C58.2594 34.5577 59.8545 33.8071 61.1529 33.3968C61.8038 33.1912 62.3325 33.0863 62.7288 33.0621C63.0793 33.0406 63.2238 33.0882 63.2475 33.0962C63.2662 33.1126 63.3798 33.2134 63.5364 33.5265C63.7135 33.8804 63.8867 34.3889 64.0333 35.0531C64.3258 36.378 64.4706 38.1291 64.4388 40.047C64.3744 43.9387 63.5932 48.0996 62.2272 50.456C59.4301 55.281 54.3348 56.7098 50.7525 54.65C48.8708 53.568 47.6244 51.8869 47.1867 49.8693C46.7475 47.8453 47.0976 45.355 48.6621 42.6561Z"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
<path
|
||||
d="M48.6621 20.9399C50.0281 23.2962 53.2558 26.0505 56.6076 28.0519C58.2594 29.0383 59.8545 29.7888 61.1529 30.1991C61.8038 30.4048 62.3325 30.5096 62.7288 30.5338C63.0793 30.5553 63.2238 30.5077 63.2475 30.4998C63.2662 30.4834 63.3798 30.3825 63.5364 30.0694C63.7135 29.7155 63.8867 29.2071 64.0333 28.5429C64.3258 27.2179 64.4706 25.4668 64.4388 23.5489C64.3744 19.6573 63.5932 15.4963 62.2272 13.1399C59.4301 8.31492 54.3348 6.88607 50.7525 8.94589C48.8708 10.0279 47.6244 11.709 47.1867 13.7266C46.7475 15.7506 47.0976 18.2409 48.6621 20.9399Z"
|
||||
stroke="#262626"
|
||||
stroke-width="3"
|
||||
/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 5.9 KiB |
@@ -0,0 +1,65 @@
|
||||
import { babel } from "@rollup/plugin-babel";
|
||||
import commonjs from "@rollup/plugin-commonjs";
|
||||
import { nodeResolve } from "@rollup/plugin-node-resolve";
|
||||
import glob from "glob";
|
||||
import * as path from "path";
|
||||
import postcssDuplicate from "postcss-combine-duplicated-selectors";
|
||||
import postcssImport from "postcss-import";
|
||||
import { externals } from "rollup-plugin-node-externals";
|
||||
import postcss from "rollup-plugin-postcss";
|
||||
|
||||
import { readFileSync } from "fs";
|
||||
|
||||
const pkg = JSON.parse(
|
||||
readFileSync(new URL("./package.json", import.meta.url).pathname)
|
||||
);
|
||||
const extensions = [".js", ".jsx", ".ts", ".tsx"];
|
||||
const targets = [
|
||||
"last 3 chrome versions",
|
||||
"last 3 firefox versions",
|
||||
"last 3 opera versions",
|
||||
"last 3 edge versions",
|
||||
"last 3 safari versions",
|
||||
"last 3 chromeandroid versions",
|
||||
"last 1 firefoxandroid versions",
|
||||
"ios >= 13.4",
|
||||
"node 12.20",
|
||||
];
|
||||
|
||||
export default {
|
||||
input: glob.sync("src/**/index.ts"),
|
||||
|
||||
plugins: [
|
||||
externals({ deps: true, devDeps: true, packagePath: "./package.json" }),
|
||||
nodeResolve({ extensions }),
|
||||
postcss({
|
||||
extract: "index.css",
|
||||
plugins: [postcssImport(), postcssDuplicate()],
|
||||
}),
|
||||
commonjs(),
|
||||
babel({
|
||||
rootMode: "upward",
|
||||
extensions,
|
||||
exclude: "node_modules/**",
|
||||
babelHelpers: "bundled",
|
||||
envName: "production",
|
||||
targets,
|
||||
}),
|
||||
],
|
||||
output: [
|
||||
{
|
||||
format: "cjs",
|
||||
dir: path.dirname(pkg.main),
|
||||
preserveModules: true,
|
||||
entryFileNames: "[name].js",
|
||||
exports: "named",
|
||||
},
|
||||
{
|
||||
format: "esm",
|
||||
dir: path.dirname(pkg.module),
|
||||
preserveModules: true,
|
||||
sourcemap: true,
|
||||
entryFileNames: "[name].js",
|
||||
},
|
||||
],
|
||||
};
|
||||
@@ -0,0 +1,2 @@
|
||||
export * from "./page-header";
|
||||
export * from "./pictograms";
|
||||
@@ -0,0 +1,17 @@
|
||||
import cl from "clsx";
|
||||
import React, { forwardRef } from "react";
|
||||
import "./page-header.css";
|
||||
|
||||
export interface PageHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
children: React.ReactNode;
|
||||
}
|
||||
|
||||
export const PageHeader = forwardRef<HTMLDivElement, PageHeaderProps>(
|
||||
({ children, className, ...rest }, ref) => (
|
||||
<div {...rest} ref={ref} className={cl(className, "navno-page-header")}>
|
||||
{children}
|
||||
</div>
|
||||
)
|
||||
);
|
||||
|
||||
export default PageHeader;
|
||||
@@ -0,0 +1 @@
|
||||
export { default as PageHeader } from "./PageHeader";
|
||||
@@ -0,0 +1,3 @@
|
||||
.navno-page-header {
|
||||
color: red;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
import React from "react";
|
||||
import { PageHeader } from ".";
|
||||
|
||||
export default {
|
||||
title: "ds-navno/PageHeader",
|
||||
component: PageHeader,
|
||||
argTypes: {
|
||||
variant: {
|
||||
defaultValue: "var1",
|
||||
control: {
|
||||
type: "radio",
|
||||
options: ["var1", "var1"],
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const Default = (props) => <PageHeader>{props.children}</PageHeader>;
|
||||
|
||||
Default.args = {
|
||||
children: "Id elit esse enim reprehenderit enim nisi veniam nostrud.",
|
||||
};
|
||||
@@ -0,0 +1,53 @@
|
||||
import * as React from "react";
|
||||
import { SVGProps, Ref, forwardRef } from "react";
|
||||
const SvgUtbetalingsdatoer = forwardRef(
|
||||
(props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => {
|
||||
return (
|
||||
<svg
|
||||
width={96}
|
||||
height={96}
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
focusable={false}
|
||||
role="img"
|
||||
ref={ref}
|
||||
{...props}
|
||||
>
|
||||
<path
|
||||
d="M47 62.687c0-9.616 9.333-26.445 14-26.445s14 16.829 14 26.445-6.268 16.828-14 16.828-14-6.206-14-16.828Z"
|
||||
fill="#FFECCC"
|
||||
/>
|
||||
<path
|
||||
d="M60.264 37.743a1 1 0 0 0 1.472-1.353l-1.472 1.353ZM45.64 27h-10.64v2h10.64v-2Zm-35.64 25v44h2V52h-2Zm46.684-18.15 3.579 3.893 1.472-1.353-3.579-3.894-1.472 1.353ZM35 27c-13.807 0-25 11.193-25 25h2c0-12.703 10.297-23 23-23v-2Zm10.641 2a15 15 0 0 1 11.044 4.85l1.472-1.354A17 17 0 0 0 45.641 27v2Z"
|
||||
fill="#FFECCC"
|
||||
/>
|
||||
<path
|
||||
d="M20.786 64.116c0 1.947-1.005 4.87-2.387 7.395-.679 1.24-1.4 2.294-2.05 3.015-.326.362-.6.602-.806.74a1.493 1.493 0 0 1-.114.071 1.493 1.493 0 0 1-.115-.07c-.207-.14-.48-.38-.806-.741-.65-.721-1.371-1.776-2.05-3.014-1.382-2.525-2.387-5.449-2.387-7.396 0-4.036 2.609-6.616 5.357-6.616 1.482 0 2.784.577 3.73 1.636.954 1.067 1.628 2.718 1.628 4.98ZM28 71.413c-1.903 0-4.775 1.013-7.264 2.415-1.219.687-2.257 1.419-2.967 2.076-.356.33-.593.609-.732.82a1.44 1.44 0 0 0-.084.145c.017.035.044.083.084.145.139.212.376.49.732.82.71.658 1.748 1.39 2.968 2.076 2.488 1.403 5.36 2.416 7.263 2.416 3.927 0 6.5-2.616 6.5-5.457 0-1.523-.578-2.854-1.622-3.815-1.048-.963-2.665-1.641-4.878-1.641Z"
|
||||
stroke="#262626"
|
||||
strokeWidth={3}
|
||||
/>
|
||||
<path
|
||||
d="M17.965 75.13a13.073 13.073 0 0 0-7.68 11.908v3.745"
|
||||
stroke="#262626"
|
||||
strokeWidth={3}
|
||||
/>
|
||||
<path
|
||||
d="M0 96c4.626-7.822 15.945-7.822 20.571 0M78.933 40.473C86.125 40.388 92 46.194 92 53.386V97M81.111 23.383c-2.735 0-6.746 1.408-10.163 3.298-1.684.932-3.134 1.932-4.14 2.847-.505.459-.86.863-1.079 1.192-.19.284-.222.431-.228.458.006.027.039.174.228.459.219.329.574.732 1.079 1.19 1.006.916 2.456 1.916 4.14 2.848 3.417 1.89 7.428 3.299 10.163 3.299 5.605 0 9.389-3.687 9.389-7.796 0-2.16-.837-4.073-2.372-5.46-1.541-1.39-3.884-2.335-7.017-2.335ZM46.889 38.974c2.735 0 6.746-1.408 10.163-3.299 1.684-.931 3.134-1.932 4.14-2.847.505-.459.86-.862 1.079-1.191.19-.285.222-.432.228-.459-.006-.027-.039-.174-.228-.458-.219-.33-.574-.733-1.079-1.191-1.006-.915-2.456-1.916-4.14-2.848-3.417-1.89-7.428-3.298-10.163-3.298-5.605 0-9.389 3.687-9.389 7.795 0 2.16.837 4.073 2.372 5.46 1.541 1.391 3.884 2.336 7.017 2.336Z"
|
||||
stroke="#262626"
|
||||
strokeWidth={3}
|
||||
/>
|
||||
<path
|
||||
d="M65.773 13.14c-1.366 2.356-2.147 6.517-2.211 10.408-.032 1.918.113 3.67.405 4.994.147.664.32 1.173.497 1.527.157.313.27.414.29.43.023.008.167.056.518.034.396-.024.925-.129 1.576-.334 1.298-.41 2.893-1.161 4.545-2.148 3.352-2.001 6.58-4.755 7.945-7.112 2.797-4.825 1.492-9.934-2.09-11.994-1.882-1.082-3.967-1.316-5.94-.685-1.98.633-3.97 2.18-5.535 4.88ZM79.338 42.656c-1.366-2.356-4.594-5.11-7.946-7.112-1.651-.986-3.247-1.737-4.545-2.147-.65-.206-1.18-.31-1.576-.335-.35-.021-.495.026-.519.034-.018.017-.132.117-.288.43-.177.354-.35.863-.497 1.527-.293 1.325-.438 3.076-.406 4.994.065 3.892.846 8.053 2.212 10.409 2.797 4.825 7.892 6.254 11.474 4.194 1.882-1.082 3.129-2.763 3.566-4.78.44-2.025.09-4.515-1.475-7.214Z"
|
||||
stroke="#262626"
|
||||
strokeWidth={3}
|
||||
/>
|
||||
<path
|
||||
d="M48.662 42.656c1.366-2.356 4.594-5.11 7.946-7.112 1.651-.986 3.247-1.737 4.545-2.147.65-.206 1.18-.31 1.576-.335.35-.021.495.026.519.034.018.017.132.117.288.43.178.354.35.863.497 1.527.293 1.325.438 3.076.406 4.994-.065 3.892-.846 8.053-2.212 10.409-2.797 4.825-7.892 6.254-11.474 4.194-1.882-1.082-3.129-2.763-3.566-4.78-.44-2.025-.09-4.515 1.475-7.214ZM48.662 20.94c1.366 2.356 4.594 5.11 7.946 7.112 1.651.986 3.247 1.737 4.545 2.147.65.206 1.18.31 1.576.335.35.021.495-.026.519-.034.018-.017.132-.117.288-.43.178-.355.35-.863.497-1.527.293-1.325.438-3.076.406-4.994-.065-3.892-.846-8.053-2.212-10.41-2.797-4.824-7.892-6.253-11.474-4.193-1.882 1.082-3.129 2.763-3.566 4.78-.44 2.025-.09 4.515 1.475 7.214Z"
|
||||
stroke="#262626"
|
||||
strokeWidth={3}
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
);
|
||||
export default SvgUtbetalingsdatoer;
|
||||
@@ -0,0 +1,53 @@
|
||||
import * as React from "react";
|
||||
import { SVGProps, Ref, forwardRef } from "react";
|
||||
const SvgUtbetalingsdatoerSmall = forwardRef(
|
||||
(props: SVGProps<SVGSVGElement>, ref: Ref<SVGSVGElement>) => {
|
||||
return (
|
||||
<svg
|
||||
width={64}
|
||||
height={64}
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
focusable={false}
|
||||
role="img"
|
||||
ref={ref}
|
||||
{...props}
|
||||
>
|
||||
<path
|
||||
d="M31.333 41.791c0-6.41 6.222-17.63 9.334-17.63 3.11 0 9.333 11.22 9.333 17.63 0 6.41-4.179 11.219-9.334 11.219-5.154 0-9.333-4.138-9.333-11.219Z"
|
||||
fill="#FFECCC"
|
||||
/>
|
||||
<path
|
||||
d="M39.825 25.484a1.143 1.143 0 1 0 1.683-1.546l-1.683 1.546Zm-9.398-7.96h-7.094v2.285h7.094v-2.285ZM6.19 34.667V64h2.286V34.667H6.19ZM37.44 22.888l2.386 2.596 1.683-1.546-2.386-2.596-1.683 1.547Zm-14.106-5.364c-9.468 0-17.143 7.675-17.143 17.143h2.286c0-8.206 6.652-14.858 14.857-14.858v-2.285Zm7.094 2.285a9.523 9.523 0 0 1 7.012 3.08l1.683-1.547a11.81 11.81 0 0 0-8.695-3.818v2.285Z"
|
||||
fill="#FFECCC"
|
||||
/>
|
||||
<path
|
||||
d="M13.857 42.744c0 1.298-.67 3.247-1.591 4.93-.453.826-.934 1.53-1.366 2.01-.218.241-.4.401-.538.494-.031.02-.056.036-.076.047a1.054 1.054 0 0 1-.076-.047 3.115 3.115 0 0 1-.538-.494c-.433-.48-.914-1.184-1.366-2.01-.922-1.683-1.592-3.632-1.592-4.93 0-2.69 1.74-4.41 3.572-4.41.987 0 1.855.384 2.487 1.09.635.711 1.084 1.812 1.084 3.32ZM18.667 47.608c-1.27 0-3.184.676-4.843 1.61-.813.459-1.504.946-1.978 1.385-.237.22-.396.405-.488.547a.97.97 0 0 0-.056.096.97.97 0 0 0 .056.097c.092.14.25.326.488.546.474.439 1.165.926 1.978 1.385 1.66.934 3.574 1.61 4.843 1.61 2.618 0 4.333-1.744 4.333-3.638 0-1.015-.385-1.903-1.081-2.543-.699-.643-1.777-1.095-3.252-1.095Z"
|
||||
stroke="#262626"
|
||||
strokeWidth={2}
|
||||
/>
|
||||
<path
|
||||
d="M11.976 50.087a8.715 8.715 0 0 0-5.119 7.938v2.497"
|
||||
stroke="#262626"
|
||||
strokeWidth={2}
|
||||
/>
|
||||
<path
|
||||
d="M0 64c3.084-5.215 10.63-5.215 13.714 0M52.622 26.983a8.61 8.61 0 0 1 8.712 8.608v29.076M54.074 15.588c-1.823 0-4.497.939-6.775 2.2-1.123.62-2.09 1.288-2.76 1.897-.337.306-.574.575-.72.795-.126.19-.148.287-.151.305.003.018.025.116.151.306.146.22.383.488.72.794.67.61 1.637 1.277 2.76 1.898 2.278 1.26 4.952 2.2 6.775 2.2 3.737 0 6.26-2.459 6.26-5.198 0-1.44-.558-2.715-1.582-3.64-1.028-.927-2.59-1.557-4.678-1.557ZM31.26 25.982c1.823 0 4.497-.938 6.775-2.199 1.122-.62 2.09-1.288 2.76-1.898.336-.306.573-.575.72-.794.125-.19.147-.288.151-.306-.004-.018-.026-.116-.152-.305-.146-.22-.383-.489-.719-.794-.67-.61-1.638-1.277-2.76-1.899-2.278-1.26-4.952-2.199-6.776-2.199-3.736 0-6.259 2.458-6.259 5.197 0 1.44.558 2.716 1.582 3.64 1.027.928 2.59 1.557 4.677 1.557Z"
|
||||
stroke="#262626"
|
||||
strokeWidth={2}
|
||||
/>
|
||||
<path
|
||||
d="M43.85 8.76c-.912 1.57-1.432 4.345-1.475 6.939-.022 1.279.075 2.446.27 3.33.098.442.213.781.331 1.017.105.209.18.276.193.287.016.005.112.037.346.023.264-.017.616-.086 1.05-.224.866-.273 1.93-.773 3.03-1.431 2.235-1.334 4.387-3.17 5.297-4.741 1.865-3.217.995-6.623-1.393-7.996-1.255-.722-2.645-.878-3.96-.457-1.32.422-2.647 1.453-3.69 3.253ZM52.892 28.438c-.91-1.572-3.062-3.408-5.297-4.742-1.101-.658-2.165-1.158-3.03-1.431-.434-.137-.787-.207-1.05-.224-.234-.014-.33.018-.346.023-.013.011-.089.078-.193.287-.118.236-.234.575-.331 1.018-.195.883-.292 2.05-.27 3.33.042 2.593.563 5.367 1.474 6.938 1.864 3.217 5.261 4.17 7.65 2.796 1.254-.72 2.085-1.842 2.377-3.187.292-1.35.06-3.01-.984-4.809Z"
|
||||
stroke="#262626"
|
||||
strokeWidth={2}
|
||||
/>
|
||||
<path
|
||||
d="M32.442 28.438c.91-1.572 3.062-3.408 5.297-4.742 1.1-.658 2.164-1.158 3.03-1.431.434-.137.786-.207 1.05-.224.234-.014.33.018.346.023.013.011.088.078.193.287.118.236.233.575.331 1.018.195.883.292 2.05.27 3.33-.043 2.593-.563 5.367-1.474 6.938-1.865 3.217-5.262 4.17-7.65 2.796-1.254-.72-2.085-1.842-2.377-3.187-.293-1.35-.06-3.01.984-4.809ZM32.442 13.96c.91 1.57 3.062 3.407 5.297 4.741 1.1.658 2.164 1.158 3.03 1.432.434.137.786.207 1.05.223.234.014.33-.018.346-.023.013-.01.088-.078.193-.287.118-.236.233-.575.331-1.017.195-.884.292-2.051.27-3.33-.043-2.594-.563-5.368-1.474-6.94-1.865-3.216-5.262-4.168-7.65-2.795-1.254.721-2.085 1.842-2.377 3.187-.293 1.35-.06 3.01.984 4.809Z"
|
||||
stroke="#262626"
|
||||
strokeWidth={2}
|
||||
/>
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
);
|
||||
export default SvgUtbetalingsdatoerSmall;
|
||||
@@ -0,0 +1,2 @@
|
||||
export { default as PictogramUtbetalingsdatoerSmall } from "./UtbetalingsdatoerSmall";
|
||||
export { default as PictogramUtbetalingsdatoer } from "./Utbetalingsdatoer";
|
||||
@@ -0,0 +1,13 @@
|
||||
const template = (variables, { tpl }) => {
|
||||
return tpl`
|
||||
${variables.imports};
|
||||
${variables.interfaces};
|
||||
|
||||
const ${variables.componentName} = forwardRef((${variables.props}) => {
|
||||
return ${variables.jsx};
|
||||
});
|
||||
export default ${variables.componentName}
|
||||
`;
|
||||
};
|
||||
|
||||
module.exports = template;
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "./esm",
|
||||
"module": "esnext",
|
||||
"sourceMap": true,
|
||||
"declaration": true
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"extends": "../../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noImplicitAny": false,
|
||||
"emitDeclarationOnly": true,
|
||||
"declaration": true,
|
||||
"noEmitHelpers": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"sourceMap": true,
|
||||
"outDir": "./esm",
|
||||
"isolatedModules": true
|
||||
},
|
||||
"include": ["./src"]
|
||||
}
|
||||
@@ -1,5 +1,9 @@
|
||||
# @navikt/ds-css
|
||||
|
||||
## 2.0.3
|
||||
|
||||
## 2.0.2
|
||||
|
||||
## 2.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navikt/ds-css",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"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.1",
|
||||
"@navikt/ds-tokens": "^2.0.3",
|
||||
"normalize.css": "^8.0.1",
|
||||
"postcss": "^8.4.0",
|
||||
"postcss-cli": "^9.0.0",
|
||||
|
||||
@@ -1,5 +1,23 @@
|
||||
# @navikt/ds-react
|
||||
|
||||
## 2.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- :sparkles: La til muligheten til å velge layout-strategi for datepicker-popover
|
||||
|
||||
- Updated dependencies []:
|
||||
- @navikt/ds-icons@2.0.3
|
||||
|
||||
## 2.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- :bug: Fikset click-event for datepicker
|
||||
|
||||
- Updated dependencies []:
|
||||
- @navikt/ds-icons@2.0.2
|
||||
|
||||
## 2.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navikt/ds-react",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"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.1",
|
||||
"@navikt/ds-icons": "^2.0.3",
|
||||
"@radix-ui/react-tabs": "1.0.0",
|
||||
"@radix-ui/react-toggle-group": "1.0.0",
|
||||
"clsx": "^1.2.1",
|
||||
|
||||
@@ -107,6 +107,13 @@ export interface DatePickerDefaultProps
|
||||
* onOpenToggle callback for user-controlled state. Only called if `<DatePicker.Input />` is used
|
||||
*/
|
||||
onOpenToggle?: () => void;
|
||||
/**
|
||||
* Avoid using if possible!
|
||||
* Changes what CSS position property to use
|
||||
* You want to use "fixed" if parent wrapper has position relative, but you want popover to escape
|
||||
* @default "absolute"
|
||||
*/
|
||||
strategy?: "absolute" | "fixed";
|
||||
}
|
||||
|
||||
export type DatePickerProps = DatePickerDefaultProps & ConditionalModeProps;
|
||||
@@ -134,6 +141,7 @@ export const DatePicker = forwardRef<HTMLDivElement, DatePickerProps>(
|
||||
open: _open,
|
||||
onClose,
|
||||
onOpenToggle,
|
||||
strategy = "absolute",
|
||||
...rest
|
||||
},
|
||||
ref
|
||||
@@ -204,6 +212,7 @@ export const DatePicker = forwardRef<HTMLDivElement, DatePickerProps>(
|
||||
id={ariaId}
|
||||
role="dialog"
|
||||
ref={ref}
|
||||
strategy={strategy}
|
||||
>
|
||||
<DayPicker
|
||||
locale={getLocaleFromString(locale)}
|
||||
|
||||
@@ -18,7 +18,7 @@ import { Head } from "./Head";
|
||||
interface DatePickerStandaloneDefaultProps
|
||||
extends Omit<
|
||||
DatePickerDefaultProps,
|
||||
"open" | "onClose" | "onOpenToggle" | "wrapperClassName"
|
||||
"open" | "onClose" | "onOpenToggle" | "wrapperClassName" | "strategy"
|
||||
> {
|
||||
/**
|
||||
* Datepicker classname
|
||||
|
||||
@@ -164,10 +164,10 @@ export const useDatepicker = (
|
||||
|
||||
useEffect(() => {
|
||||
window.addEventListener("focusin", handleFocusIn);
|
||||
window.addEventListener("click", handleFocusIn);
|
||||
window.addEventListener("pointerdown", handleFocusIn);
|
||||
return () => {
|
||||
window?.removeEventListener?.("focusin", handleFocusIn);
|
||||
window?.removeEventListener?.("click", handleFocusIn);
|
||||
window?.removeEventListener?.("pointerdown", handleFocusIn);
|
||||
};
|
||||
}, [handleFocusIn]);
|
||||
|
||||
|
||||
@@ -147,10 +147,10 @@ export const useMonthpicker = (
|
||||
|
||||
useEffect(() => {
|
||||
window.addEventListener("focusin", handleFocusIn);
|
||||
window.addEventListener("click", handleFocusIn);
|
||||
window.addEventListener("pointerdown", handleFocusIn);
|
||||
return () => {
|
||||
window?.removeEventListener?.("focusin", handleFocusIn);
|
||||
window?.removeEventListener?.("click", handleFocusIn);
|
||||
window?.removeEventListener?.("pointerdown", handleFocusIn);
|
||||
};
|
||||
}, [handleFocusIn]);
|
||||
|
||||
|
||||
@@ -276,10 +276,10 @@ export const useRangeDatepicker = (
|
||||
|
||||
useEffect(() => {
|
||||
window.addEventListener("focusin", handleFocusIn);
|
||||
window.addEventListener("click", handleFocusIn);
|
||||
window.addEventListener("pointerdown", handleFocusIn);
|
||||
return () => {
|
||||
window?.removeEventListener?.("focusin", handleFocusIn);
|
||||
window?.removeEventListener?.("click", handleFocusIn);
|
||||
window?.removeEventListener?.("pointerdown", handleFocusIn);
|
||||
};
|
||||
}, [handleFocusIn]);
|
||||
|
||||
|
||||
@@ -79,6 +79,13 @@ export interface MonthPickerProps extends React.HTMLAttributes<HTMLDivElement> {
|
||||
* Event fired when the user navigates between years.
|
||||
*/
|
||||
onYearChange?: (y?: Date) => void;
|
||||
/**
|
||||
* Avoid using if possible!
|
||||
* Changes what CSS position property to use
|
||||
* You want to use "fixed" if parent wrapper has position relative, but you want popover to escape
|
||||
* @default "absolute"
|
||||
*/
|
||||
strategy?: "absolute" | "fixed";
|
||||
}
|
||||
|
||||
interface MonthPickerComponent
|
||||
@@ -113,6 +120,7 @@ export const MonthPicker = forwardRef<HTMLDivElement, MonthPickerProps>(
|
||||
defaultSelected,
|
||||
year,
|
||||
onYearChange,
|
||||
strategy = "absolute",
|
||||
},
|
||||
ref
|
||||
) => {
|
||||
@@ -163,6 +171,7 @@ export const MonthPicker = forwardRef<HTMLDivElement, MonthPickerProps>(
|
||||
ref={ref}
|
||||
id={ariaId}
|
||||
className="navds-date"
|
||||
strategy={strategy}
|
||||
>
|
||||
<RootProvider
|
||||
locale={getLocaleFromString(locale)}
|
||||
|
||||
@@ -10,7 +10,7 @@ import MonthSelector from "./MonthSelector";
|
||||
export interface MonthPickerStandaloneProps
|
||||
extends Omit<
|
||||
MonthPickerProps,
|
||||
"open" | "onClose" | "onOpenToggle" | "wrapperClassName"
|
||||
"open" | "onClose" | "onOpenToggle" | "wrapperClassName" | "strategy"
|
||||
> {
|
||||
/**
|
||||
* Monthpicker classname
|
||||
|
||||
@@ -5,8 +5,7 @@ import { OverridableComponent } from "..";
|
||||
export interface DetailProps
|
||||
extends React.HTMLAttributes<HTMLParagraphElement> {
|
||||
/**
|
||||
* medium: 14px, small: 14px
|
||||
* @default "medium"
|
||||
* @deprecated Medium === small
|
||||
*/
|
||||
size?: "medium" | "small";
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# @navikt/ds-tailwind
|
||||
|
||||
## 2.0.3
|
||||
|
||||
## 2.0.2
|
||||
|
||||
## 2.0.1
|
||||
|
||||
## 2.0.0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navikt/ds-tailwind",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"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.1",
|
||||
"@navikt/ds-tokens": "^2.0.3",
|
||||
"@types/jest": "^29.0.0",
|
||||
"@types/node": "^17.0.35",
|
||||
"color": "4.2.3",
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# @navikt/ds-tokens
|
||||
|
||||
## 2.0.3
|
||||
|
||||
## 2.0.2
|
||||
|
||||
## 2.0.1
|
||||
|
||||
## 2.0.0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navikt/ds-tokens",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"description": "Design-tokens for NAV designsystem",
|
||||
"author": "Aksel | NAV designsystem team",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# @navikt/ds-icons
|
||||
|
||||
## 2.0.3
|
||||
|
||||
## 2.0.2
|
||||
|
||||
## 2.0.1
|
||||
|
||||
## 2.0.0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navikt/ds-icons",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"description": "Aksel icons for NAV",
|
||||
"author": "Aksel | NAV designsystem team",
|
||||
"repository": {
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
# @navikt/ds-css-internal
|
||||
|
||||
## 2.0.3
|
||||
|
||||
## 2.0.2
|
||||
|
||||
## 2.0.1
|
||||
|
||||
## 2.0.0
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navikt/ds-css-internal",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"description": "CSS for NAV internal Designsystem-components",
|
||||
"author": "Aksel | NAV designsystem team",
|
||||
"keywords": [
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# @navikt/ds-react-internal
|
||||
|
||||
## 2.0.3
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @navikt/ds-react@2.0.3
|
||||
- @navikt/ds-icons@2.0.3
|
||||
|
||||
## 2.0.2
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Updated dependencies []:
|
||||
- @navikt/ds-react@2.0.2
|
||||
- @navikt/ds-icons@2.0.2
|
||||
|
||||
## 2.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@navikt/ds-react-internal",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.3",
|
||||
"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.1",
|
||||
"@navikt/ds-react": "^2.0.1",
|
||||
"@navikt/ds-icons": "^2.0.3",
|
||||
"@navikt/ds-react": "^2.0.3",
|
||||
"clsx": "^1.1.1",
|
||||
"copy-to-clipboard": "^3.3.1"
|
||||
},
|
||||
|
||||
@@ -19,14 +19,14 @@
|
||||
"website"
|
||||
],
|
||||
"dependencies": {
|
||||
"@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"
|
||||
"@navikt/ds-codemod": "^2.0.3",
|
||||
"@navikt/ds-css": "^2.0.3",
|
||||
"@navikt/ds-css-internal": "^2.0.3",
|
||||
"@navikt/ds-icons": "^2.0.3",
|
||||
"@navikt/ds-react": "^2.0.3",
|
||||
"@navikt/ds-react-internal": "^2.0.3",
|
||||
"@navikt/ds-tailwind": "^2.0.3",
|
||||
"@navikt/ds-tokens": "^2.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier-plugin-tailwindcss": "^0.1.13"
|
||||
|
||||
@@ -23,8 +23,11 @@ import Tabell, { TabellSchema } from "./tabell";
|
||||
import Tastatur from "./tastatur";
|
||||
import Tips from "./tips";
|
||||
import Video from "./video";
|
||||
import { tmpTabell, tmpTabellRow } from "./tabellv2";
|
||||
|
||||
const v2Blocks = [
|
||||
tmpTabell,
|
||||
tmpTabellRow,
|
||||
/* Blocks */
|
||||
RiktekstEnkel,
|
||||
RiktekstAksel,
|
||||
|
||||
@@ -173,6 +173,7 @@ const Riktekst = (type: "aksel" | "ds" | "komponent" | "prinsipp") => {
|
||||
"accordion",
|
||||
"alert",
|
||||
"tabell",
|
||||
"tabell_v2",
|
||||
"video",
|
||||
];
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import React from "react";
|
||||
const Tabell = {
|
||||
type: "object",
|
||||
name: "tabell",
|
||||
title: "Tabell",
|
||||
title: "Tabell (IKKE BRUK)",
|
||||
icon: Data,
|
||||
fields: [
|
||||
{
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
import { Data } from "@navikt/ds-icons";
|
||||
|
||||
export const tmpTabell = {
|
||||
type: "object",
|
||||
name: "tabell_v2",
|
||||
title: "Tabell",
|
||||
icon: Data,
|
||||
fields: [{ type: "array", name: "rows", of: [{ type: "tableRow" }] }],
|
||||
preview: {
|
||||
select: {
|
||||
rows: "rows",
|
||||
},
|
||||
prepare(selection) {
|
||||
const { rows } = selection;
|
||||
return {
|
||||
title: "Tabell",
|
||||
subtitle: rows && `Rader: ${rows.length}`,
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
export const tmpTabellRow = {
|
||||
type: "object",
|
||||
name: "tableRow",
|
||||
title: "Rad",
|
||||
fields: [{ type: "array", name: "cells", of: [{ type: "string" }] }],
|
||||
preview: {
|
||||
select: {
|
||||
cells: "cells",
|
||||
},
|
||||
prepare(selection) {
|
||||
const { cells } = selection;
|
||||
return {
|
||||
title: cells ? cells.join(" | ") : "cell",
|
||||
media: Data,
|
||||
};
|
||||
},
|
||||
},
|
||||
};
|
||||
@@ -17,6 +17,7 @@ import {
|
||||
RelatertInnhold,
|
||||
SideModul,
|
||||
Tabell,
|
||||
Tabellv2,
|
||||
TastaturModul,
|
||||
Tips,
|
||||
TokenTable,
|
||||
@@ -43,6 +44,7 @@ const serializers = {
|
||||
alert: ({ node }) => <Alert node={node} />,
|
||||
kode: ({ node }) => <Kode node={node} />,
|
||||
tabell: ({ node }) => <Tabell node={node} />,
|
||||
tabell_v2: ({ node }) => <Tabellv2 node={node} />,
|
||||
accordion: ({ node }) => <Accordion node={node} />,
|
||||
props_seksjon: ({ node }) => <PropsSeksjon node={node} />,
|
||||
spesial_seksjon: ({ node }) => <SideModul node={node} />,
|
||||
|
||||
@@ -13,6 +13,7 @@ export { default as PropsSeksjon } from "./sanity-modules/props/PropsSeksjon";
|
||||
export { default as PropTable } from "./sanity-modules/props/PropTabell";
|
||||
export { default as SideModul } from "./sanity-modules/SideModul";
|
||||
export { default as Tabell } from "./sanity-modules/Tabell";
|
||||
export { default as Tabellv2 } from "./sanity-modules/Tabellv2";
|
||||
export { default as TastaturModul } from "./sanity-modules/tastatur";
|
||||
export { default as Tips } from "./sanity-modules/tips";
|
||||
export { default as TokenTable } from "./sanity-modules/TokenTable";
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
import { withErrorBoundary } from "@/error-boundary";
|
||||
import { SanityT } from "@/lib";
|
||||
import { Table } from "@navikt/ds-react";
|
||||
|
||||
const TableComponent = ({
|
||||
node,
|
||||
}: {
|
||||
node: SanityT.Schema.tabell_v2;
|
||||
}): JSX.Element => {
|
||||
console.log(node);
|
||||
if (!node || !node.rows || node.rows.length < 2) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="mb-8 overflow-x-auto">
|
||||
<Table>
|
||||
<Table.Header>
|
||||
<Table.Row>
|
||||
{node?.rows[0].cells?.map((cell, y) => (
|
||||
<Table.HeaderCell
|
||||
key={y}
|
||||
className="text-text-subtle"
|
||||
scope="col"
|
||||
>
|
||||
{cell}
|
||||
</Table.HeaderCell>
|
||||
))}
|
||||
</Table.Row>
|
||||
</Table.Header>
|
||||
<Table.Body>
|
||||
{node?.rows?.slice?.(1)?.map((row) => (
|
||||
<Table.Row key={row?._key}>
|
||||
{row?.cells?.map((cell, y) => (
|
||||
<Table.DataCell key={y}>{cell}</Table.DataCell>
|
||||
))}
|
||||
</Table.Row>
|
||||
))}
|
||||
</Table.Body>
|
||||
</Table>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default withErrorBoundary(TableComponent, "Tabell_V2");
|
||||
+22
@@ -962,6 +962,24 @@ Bruk en kort og konsis tittel om mulig. Blir satt som `<H1 />` på toppen av sid
|
||||
isMigrated?: boolean;
|
||||
}
|
||||
|
||||
type tabell_v2 = {
|
||||
_type: "tabell_v2";
|
||||
|
||||
/**
|
||||
* Rows - `Array`
|
||||
*/
|
||||
rows?: Array<Sanity.Keyed<tableRow>>;
|
||||
};
|
||||
|
||||
type tableRow = {
|
||||
_type: "tableRow";
|
||||
|
||||
/**
|
||||
* Cells - `Array`
|
||||
*/
|
||||
cells?: Array<Sanity.Keyed<string>>;
|
||||
};
|
||||
|
||||
type riktekst_enkel = Array<Sanity.Keyed<Sanity.Block>>;
|
||||
|
||||
type riktekst_aksel = Array<
|
||||
@@ -974,6 +992,7 @@ Bruk en kort og konsis tittel om mulig. Blir satt som `<H1 />` på toppen av sid
|
||||
| Sanity.Keyed<accordion>
|
||||
| Sanity.Keyed<alert>
|
||||
| Sanity.Keyed<tabell>
|
||||
| Sanity.Keyed<tabell_v2>
|
||||
| Sanity.Keyed<video>
|
||||
>;
|
||||
|
||||
@@ -987,6 +1006,7 @@ Bruk en kort og konsis tittel om mulig. Blir satt som `<H1 />` på toppen av sid
|
||||
| Sanity.Keyed<accordion>
|
||||
| Sanity.Keyed<alert>
|
||||
| Sanity.Keyed<tabell>
|
||||
| Sanity.Keyed<tabell_v2>
|
||||
| Sanity.Keyed<video>
|
||||
| Sanity.Keyed<spesial_seksjon>
|
||||
>;
|
||||
@@ -1001,6 +1021,7 @@ Bruk en kort og konsis tittel om mulig. Blir satt som `<H1 />` på toppen av sid
|
||||
| Sanity.Keyed<accordion>
|
||||
| Sanity.Keyed<alert>
|
||||
| Sanity.Keyed<tabell>
|
||||
| Sanity.Keyed<tabell_v2>
|
||||
| Sanity.Keyed<video>
|
||||
| Sanity.Keyed<props_seksjon>
|
||||
| Sanity.Keyed<tastatur_modul>
|
||||
@@ -1020,6 +1041,7 @@ Bruk en kort og konsis tittel om mulig. Blir satt som `<H1 />` på toppen av sid
|
||||
| Sanity.Keyed<accordion>
|
||||
| Sanity.Keyed<alert>
|
||||
| Sanity.Keyed<tabell>
|
||||
| Sanity.Keyed<tabell_v2>
|
||||
| Sanity.Keyed<video>
|
||||
| Sanity.Keyed<innholdskort>
|
||||
>;
|
||||
|
||||
@@ -2,6 +2,7 @@ import dotenv from "dotenv";
|
||||
import { noCdnClient } from "../sanity/sanity.server";
|
||||
import CoreDocs from "@navikt/ds-react/_docs.json";
|
||||
import InternalDocs from "@navikt/ds-react-internal/_docs.json";
|
||||
import NavnoDocs from "@navikt/ds-navno/_docs.json";
|
||||
import { SanityT } from "..";
|
||||
|
||||
dotenv.config();
|
||||
@@ -50,6 +51,9 @@ const updateProps = async () => {
|
||||
propList(InternalDocs, "internal").forEach((x) =>
|
||||
transactionClient.createOrReplace(x)
|
||||
);
|
||||
propList(NavnoDocs, "navno").forEach((x) =>
|
||||
transactionClient.createOrReplace(x)
|
||||
);
|
||||
|
||||
await transactionClient
|
||||
.commit()
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
import { Detail } from "@navikt/ds-react";
|
||||
import { withDsExample } from "components/website-modules/examples/withDsExample";
|
||||
|
||||
const Example = () => {
|
||||
return (
|
||||
<Detail size="small">The red fox jumps over the lazy brown dog.</Detail>
|
||||
);
|
||||
};
|
||||
|
||||
export default withDsExample(Example);
|
||||
|
||||
export const args = {
|
||||
index: 2,
|
||||
};
|
||||
@@ -32,9 +32,11 @@ a {
|
||||
}
|
||||
|
||||
/* Improves rendering of images for chrome on Windows */
|
||||
/* stylelint-disable-next-line media-feature-name-no-vendor-prefix */
|
||||
@media screen and (-webkit-min-device-pixel-ratio: 0) and (min-resolution: 0.001dpcm) {
|
||||
img {
|
||||
transform: translateZ(0);
|
||||
/* stylelint-disable-next-line value-no-vendor-prefix */
|
||||
image-rendering: -webkit-optimize-contrast !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
/* stylelint-disable color-function-notation */
|
||||
|
||||
/**
|
||||
* Dracula Theme originally by Zeno Rocha [@zenorocha]
|
||||
* https://draculatheme.com/
|
||||
@@ -10,7 +12,6 @@ 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;
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"dependencies": {
|
||||
"@navikt/ds-css": "2.0.1",
|
||||
"@navikt/ds-react": "2.0.1",
|
||||
"@navikt/ds-css": "2.0.3",
|
||||
"@navikt/ds-react": "2.0.3",
|
||||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0"
|
||||
},
|
||||
|
||||
+2
-1
@@ -24,6 +24,7 @@
|
||||
"@navikt/internal/*",
|
||||
"@navikt/codemod",
|
||||
"@navikt/icons",
|
||||
"@navikt/community/*",
|
||||
"examples/*",
|
||||
"aksel.nav.no"
|
||||
],
|
||||
@@ -180,7 +181,7 @@
|
||||
},
|
||||
"ignoreFiles": [
|
||||
"**/dist/**",
|
||||
"**/aksel.nav.no/sanity/dist**",
|
||||
"**/aksel.nav.no/sanity/**",
|
||||
"**/@navikt/codemod/**"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user