Skip to content
GitLab
Explore
Sign in
Commits on Source (205)
c11a1156
chore(card): release 3.1.2
Jul 03, 2024
06662343
ci(playwright): add manual job for updating snapshots
Jul 03, 2024
1e83379d
ci(playwright): fix e2e update snapshots not running on main
Jul 03, 2024
aecfded1
feat(gatsby): max width on index card section
Jul 05, 2024
f139a321
fix(input-datepicker): style calendar disabled dates
Jul 05, 2024
ec037f31
chore(input-datepicker): release 1.1.2
Jul 05, 2024
e6201d2c
chore(header): remove nav-link margin bottom
Jul 05, 2024
51856e2b
chore(deps): update dependency @playwright/test to ^1.45.1
Jul 05, 2024
b2bc7d5c
chore(deps): update dependency @types/node to ^20.14.10
Jul 06, 2024
d7ce8364
chore(deps): update dependency npm-run-all2 to ^6.2.2
Jul 08, 2024
f15bb217
chore(deps): update dependency typescript to ^5.5.3
Jul 08, 2024
dcb12d79
chore(deps): update dependency @testing-library/dom to ^10.3.1
Jul 08, 2024
0b56617e
fix(deps): update eslint to ^7.15.0
Jul 08, 2024
78e0efc6
chore(deps): update dependency postcss-custom-media to ^10.0.8
Jul 08, 2024
dd9e1a2e
chore(deps): update dependency rimraf to ^5.0.8
Jul 08, 2024
fbfcec37
feat(card)!: change imgSrc & imgAlt props to prop image of type ReactNode
Jul 08, 2024
554c92f0
docs(card): update to latest card component
Jul 08, 2024
7654fa81
chore(deps): npm audit fix
Jul 08, 2024
d75fddc9
chore(deps): update dependency browserslist to ^4.23.2
Jul 12, 2024
4108a1c2
chore(deps): update dependency rimraf to ^5.0.9
Jul 13, 2024
f68fb68d
chore(deps): update npm to v10.8.2
Jul 13, 2024
88b7be9f
chore(deps): update dependency prettier to ^3.3.3
Jul 13, 2024
661366f5
chore(deps): update dependency terser to ^5.31.2
Jul 14, 2024
f3ae0f47
chore(deps): update node to v20.15.1
Jul 14, 2024
fa19b9d9
fix(deps): update eslint
Jul 14, 2024
63732abc
chore(deps): update dependency ts-jest to ^29.2.2
Jul 15, 2024
0d94f949
fix(deps): update dependency gatsby to ^5.13.7
Jul 15, 2024
b7841920
chore(deps): update dependency storybook to v8
Jul 15, 2024
f86eb3d3
chore(deps): update dependency rimraf to v6
Jul 15, 2024
04d02a42
chore(deps): update dependency @types/node to ^20.14.11
Jul 19, 2024
21e8782a
chore(deps): update dependency turbo to ^2.0.9
Jul 20, 2024
55607c57
chore(deps): update dependency @playwright/test to ^1.45.2
Jul 20, 2024
7982bf20
chore(deps): update dependency style-dictionary to ^4.0.1
Jul 20, 2024
535242e4
chore(deps): update esbuild
Jul 20, 2024
e9a2ae6f
chore(deps): update jest
Jul 21, 2024
4c54c232
fix(deps): update eslint
Jul 21, 2024
b51b1208
chore(deps): update dependency stylelint to ^16.7.0
Jul 21, 2024
db50c913
chore(deps): update dependency storybook to v8
Jul 21, 2024
6c095ce0
chore(deps): update dependency postcss-nested to ^6.2.0
Jul 21, 2024
54a6f351
chore(deps): update dependency husky to ^9.1.1
Jul 21, 2024
d41f86f1
chore(deps): update storybook to ^8.2.5
Jul 25, 2024
332a8c84
chore(deps): update dependency @playwright/test to ^1.45.3
Jul 26, 2024
a93b41a2
chore(deps): update dependency postcss to ^8.4.40
Jul 27, 2024
7b3434e1
chore(deps): update dependency husky to ^9.1.3
Jul 27, 2024
bfc4d6b0
chore(deps): update dependency tsup to ^8.2.3
Jul 27, 2024
4f404b38
chore(deps): update node
Jul 27, 2024
a5c2f81b
chore(deps): update jest
Jul 28, 2024
aa84ff23
chore(deps): update storybook to ^8.2.6
Jul 28, 2024
f933888e
chore(deps): update dependency storybook to v8
Jul 28, 2024
d848240a
chore(deps): update dependency cpy to ^11.1.0
Jul 28, 2024
bebcdb33
chore(deps): update dependency typescript to ^5.5.4
Jul 28, 2024
d6917053
fix(deps): update dependency react-aria-components to ^1.3.1
Jul 28, 2024
9c623c4f
style: format
Jul 28, 2024
a8bf363d
chore(card): release 4.0.0
Jul 28, 2024
640f4eeb
docs(card): update readme
Jul 28, 2024
f30be22c
refactor(tokens): move from cjs to esm
Jul 28, 2024
b08dae23
chore(deps): update dependency @types/node to ^20.14.13
Jul 28, 2024
613a99e8
fix(deps): update eslint to ^7.17.0
Jul 29, 2024
242f6b83
refactor: move component source code to src directory
Jul 29, 2024
aa4ed026
chore: add nvmrc
Jul 29, 2024
03326c7b
ci(release): add link to release on slack
Jul 29, 2024
318fdd1d
style: order imports alphabetically
Jul 31, 2024
ff194b9b
test(modal): fix warnings
Jul 31, 2024
23574c1a
refactor(deps): replace clsx with clsx/lite
Jul 31, 2024
7e6b4fd2
ci: move ci_token to vault
Aug 01, 2024
6ded7867
feat: import order alphabetically
Aug 01, 2024
b550ea3e
feat(tokens)!: refactor css color variables
Aug 02, 2024
b316a937
docs(tokens): update docs after changes to color scheme usage
Aug 02, 2024
4dff38ea
feat(tokens): update to new color tokens
Aug 02, 2024
f0bea7cd
chore(deps): update dependency @types/node to ^20.14.14
Aug 02, 2024
41490ffb
chore(deps): update dependency husky to ^9.1.4
Aug 03, 2024
08cbaaaf
chore(deps): update dependency autoprefixer to ^10.4.20
Aug 03, 2024
a56b957a
chore(deps): update dependency turbo to ^2.0.11
Aug 03, 2024
c2105965
chore(deps): update dependency browserslist to ^4.23.3
Aug 04, 2024
d3236328
chore(deps): update dependency lint-staged to ^15.2.8
Aug 04, 2024
28202ddf
fix(deps): update jest
Aug 04, 2024
c7816a96
chore(deps): update storybook
Aug 04, 2024
3f1c355f
chore(deps): update dependency tsup to ^8.2.4
Aug 04, 2024
212c49a6
chore(deps): update dependency stylelint to ^16.8.1
Aug 05, 2024
ea5d6860
chore(deps): update dependency storybook to v8
Aug 05, 2024
9aa2370a
fix(deps): update eslint to ^7.18.0
Aug 05, 2024
a48f96a7
fix(deps): update dependency gatsby-plugin-matomo to ^0.16.3
Aug 05, 2024
c6ba84fa
chore(deps): update dependency postcss-custom-media to v11
Aug 05, 2024
618e09ac
chore: fix package init
Aug 05, 2024
84267ffb
chore: replace init script for new packages with turbo generator
Aug 08, 2024
b87230df
docs(gatsby): update team names
Aug 08, 2024
17b10190
chore: add basic tests & story to init package templates
Aug 08, 2024
fbc25aec
chore: ignore package init generator template tests
Aug 09, 2024
9528b15e
chore(playwright): better test matching
Aug 09, 2024
57db7acf
chore(deps): update dependency postcss to ^8.4.41
Aug 09, 2024
d2caa1f5
chore(deps): update dependency terser to ^5.31.5
Aug 10, 2024
8535ae0d
chore(deps): update dependency @types/node to ^20.14.15
Aug 10, 2024
a112ddf4
chore(deps): update dependency turbo to ^2.0.12
Aug 10, 2024
e0816c89
chore(deps): update storybook to ^8.2.8
Aug 11, 2024
4592ecb4
chore(deps): update dependency @playwright/test to ^1.46.0
Aug 11, 2024
db9cb5cf
chore(deps): update dependency storybook to v8
Aug 11, 2024
9453e58b
chore(renovate): ignore turbo generators
Aug 11, 2024
d47766d1
chore(deps): update dependency @commitlint/cli to ^19.4.0
Aug 11, 2024
40abdf05
fix(deps): update dependency eslint-plugin-jest to ^28.8.0
Aug 12, 2024
dee73bd4
fix(deps): update dependency eslint-plugin-testing-library to ^6.3.0
Aug 12, 2024
Hide whitespace changes
Inline
Side-by-side
.eslintrc.js
View file @
2ca7786c
...
...
@@ -4,7 +4,12 @@ module.exports = {
ecmaVersion
:
"
latest
"
,
sourceType
:
"
module
"
,
},
ignorePatterns
:
[
"
.eslintrc.js
"
,
"
*.config.ts
"
,
"
docs/tutorial/**
"
],
ignorePatterns
:
[
"
.eslintrc.js
"
,
"
*.config.ts
"
,
"
docs/tutorial/**
"
,
"
turbo/generators/**
"
,
],
rules
:
{},
overrides
:
[
{
...
...
.gitlab-ci.yml
View file @
2ca7786c
default
:
image
:
node:20.1
5
.0
image
:
node:20.1
7
.0
interruptible
:
true
include
:
...
...
@@ -109,6 +109,41 @@ test-e2e:
except
:
-
schedules
test-e2e-update-snapshots
:
stage
:
test
extends
:
.npm_cache
id_tokens
:
VAULT_ID_TOKEN
:
aud
:
"
https://vault.sikt.no:8200"
secrets
:
CI_TOKEN
:
vault
:
"
gitlab/${CI_PROJECT_PATH}/ci-token@secret"
token
:
$VAULT_ID_TOKEN
file
:
false
script
:
-
npm pkg delete scripts.prepare
-
npm ci
-
npx playwright install --with-deps
-
npm run test:e2e -- --update-snapshots
after_script
:
-
git config user.name "CI Pipeline"
-
git config user.email "cipipeline@example.com"
-
git add "packages/**/playwright/**/*.png"
-
>
git commit -m "test: update playwright snapshots"
-
git remote set-url --push origin "https://$CI_TOKEN@gitlab.sikt.no/designsystem/sds-komponentbibliotek.git"
-
git push origin HEAD:$CI_COMMIT_REF_NAME
needs
:
-
install
-
packages
when
:
manual
only
:
-
branches
-
merge_requests
except
:
-
main
-
schedules
.vuln
:
stage
:
test
extends
:
.imagescan
...
...
@@ -202,7 +237,7 @@ storybook:
name
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
expire_in
:
1 days
paths
:
-
storybook/storybook-static
-
apps/
storybook/storybook-static
needs
:
-
install
-
packages
...
...
@@ -228,13 +263,13 @@ gatsby:
policy
:
pull
-
key
:
"
$CI_JOB_NAME-$CI_COMMIT_BRANCH"
paths
:
-
gatsby/.cache/
-
gatsby/public/
-
apps/
gatsby/.cache/
-
apps/
gatsby/public/
artifacts
:
name
:
"
$CI_JOB_NAME-$CI_COMMIT_REF_SLUG"
expire_in
:
1 days
paths
:
-
gatsby/public
-
apps/
gatsby/public
dependencies
:
-
packages
needs
:
...
...
@@ -352,6 +387,6 @@ release-report:
extends
:
.tag
script
:
-
>
curl --request POST --header "Content-Type: application/json" --data "{\"text\":\"
Tag $CI_COMMIT_TAG
succeeded on $CI_COMMIT_BRANCH <$CI_PIPELINE_URL|$CI_PIPELINE_ID>\"}" "${SLACK_WEBHOOK_URL_PUBLIC}"
curl --request POST --header "Content-Type: application/json" --data "{\"text\":\"
Release <https://${CI_SERVER_HOST}/${CI_PROJECT_PATH}/-/releases/${CI_COMMIT_TAG}|$CI_COMMIT_TAG>
succeeded on $CI_COMMIT_BRANCH <$CI_PIPELINE_URL|$CI_PIPELINE_ID>\"}" "${SLACK_WEBHOOK_URL_PUBLIC}"
needs
:
-
publish
.nvmrc
0 → 100644
View file @
2ca7786c
20.17.0
.prettierignore
View file @
2ca7786c
...
...
@@ -5,3 +5,4 @@ storybook-static
gatsby/public
.cache
gatsby-types.d.ts
turbo/generators/template
\ No newline at end of file
CONTRIBUTING.md
View file @
2ca7786c
...
...
@@ -113,8 +113,10 @@ See [Example](./docs/tutorial/__example__) component for base setup.
Initialize a package:
When asked, enter a package name without
`sds-`
prefix.
```
sh
npm run init
--package
=
<package-name>
npm run init
```
If you have custom build needs, the build script and entry points may vary.
...
...
@@ -163,6 +165,8 @@ npx playwright install --with-deps
CI
=
true
npx playwright
test
--update-snapshots
```
This can also be done in the CI pipeline with the manual job
`test-e2e-update-snapshots`
.
**Note**
This should only be done when you add new components or you have made changes to existing ones and have verified everything is correct!
#### Merge request
...
...
Dockerfile
View file @
2ca7786c
FROM
nginx:latest
RUN
rm
-rf
/usr/share/nginx/html
COPY
gatsby/public /usr/share/nginx/html
COPY
storybook/storybook-static /usr/share/nginx/html/storybook
COPY
apps/
gatsby/public /usr/share/nginx/html
COPY
apps/
storybook/storybook-static /usr/share/nginx/html/storybook
COPY
nginx.conf /etc/nginx/conf.d/default.conf
gatsby/.eslintrc.js
→
apps/
gatsby/.eslintrc.js
View file @
2ca7786c
File moved
gatsby/.gitignore
→
apps/
gatsby/.gitignore
View file @
2ca7786c
File moved
gatsby/README.md
→
apps/
gatsby/README.md
View file @
2ca7786c
File moved
gatsby/gatsby-config.ts
→
apps/
gatsby/gatsby-config.ts
View file @
2ca7786c
...
...
@@ -59,7 +59,7 @@ const config: GatsbyConfig = {
resolve
:
"
gatsby-source-filesystem
"
,
options
:
{
name
:
"
components
"
,
path
:
`
${
__dirname
}
/../packages`
,
path
:
`
${
__dirname
}
/../
../
packages`
,
ignore
:
[
"
**/.*
"
,
"
**/*.png
"
,
...
...
gatsby/gatsby-node.ts
→
apps/
gatsby/gatsby-node.ts
View file @
2ca7786c
...
...
@@ -63,6 +63,7 @@ export const createPages: GatsbyNode["createPages"] = async ({
const
pathToPackageJson
=
path
.
resolve
(
__dirname
,
"
..
"
,
"
..
"
,
"
packages
"
,
packageDir
,
"
package.json
"
,
...
...
gatsby/package.json
→
apps/
gatsby/package.json
View file @
2ca7786c
...
...
@@ -14,12 +14,11 @@
"@mdx-js/mdx"
:
"^3.0.1"
,
"@mdx-js/react"
:
"^3.0.1"
,
"@phosphor-icons/react"
:
"^2.1.7"
,
"@sikt/sds-accordion"
:
"^2.0.2"
,
"@sikt/sds-badge"
:
"^2.0.0"
,
"@sikt/sds-breadcrumbs"
:
"^2.0.0"
,
"@sikt/sds-button"
:
"^3.1.0"
,
"@sikt/sds-card"
:
"^
3.1
.0"
,
"@sikt/sds-core"
:
"^3.
0.2
"
,
"@sikt/sds-card"
:
"^
4.0
.0"
,
"@sikt/sds-core"
:
"^3.
1.0
"
,
"@sikt/sds-footer"
:
"^2.0.0"
,
"@sikt/sds-header"
:
"^3.0.3"
,
"@sikt/sds-icons"
:
"^2.0.1"
,
...
...
@@ -27,11 +26,11 @@
"@sikt/sds-logo"
:
"^2.0.0"
,
"@sikt/sds-section"
:
"^3.0.0"
,
"@sikt/sds-table"
:
"^2.0.1"
,
"@sikt/sds-tokens"
:
"^
1
.0.1"
,
"@sikt/sds-tokens"
:
"^
2
.0.1"
,
"canvas-confetti"
:
"^1.9.3"
,
"clsx"
:
"^2.1.1"
,
"gatsby"
:
"^5.13.
6
"
,
"gatsby-plugin-matomo"
:
"^0.16.
2
"
,
"gatsby"
:
"^5.13.
7
"
,
"gatsby-plugin-matomo"
:
"^0.16.
3
"
,
"gatsby-plugin-mdx"
:
"^5.13.1"
,
"gatsby-plugin-robots-txt"
:
"^1.8.0"
,
"gatsby-plugin-sitemap"
:
"^6.13.1"
,
...
...
@@ -42,16 +41,16 @@
},
"devDependencies"
:
{
"@types/canvas-confetti"
:
"^1.6.4"
,
"@types/node"
:
"^20.1
4.9
"
,
"@types/react"
:
"^18.3.
3
"
,
"@types/node"
:
"^20.1
6.5
"
,
"@types/react"
:
"^18.3.
8
"
,
"@types/react-dom"
:
"^18.3.0"
,
"eslint-config-react-app"
:
"^7.0.1"
,
"gatsby-plugin-force-file-loader"
:
"^5.0.1"
,
"gatsby-plugin-layout"
:
"^4.13.1"
,
"gatsby-plugin-manifest"
:
"^5.13.1"
,
"gatsby-plugin-postcss"
:
"^6.13.1"
,
"postcss"
:
"^8.4.
39
"
,
"style-dictionary"
:
"^4.
0.0
"
,
"typescript"
:
"^5.
5
.2"
"postcss"
:
"^8.4.
47
"
,
"style-dictionary"
:
"^4.
1.2
"
,
"typescript"
:
"^5.
6
.2"
}
}
gatsby/src/components/Contributors.tsx
→
apps/
gatsby/src/components/Contributors.tsx
View file @
2ca7786c
...
...
@@ -27,12 +27,20 @@ const Contributors = ({
:
[]),
],
[
{
name
:
"
Kjartan
"
,
role
:
"
Teknologi
"
,
team
:
"
Opptak Søker
"
},
{
name
:
"
Sondre S.
"
,
role
:
"
Teknologi
"
,
team
:
"
Opptak Søker
"
},
{
name
:
"
Erik
"
,
role
:
"
Teknologi
"
,
team
:
"
Opptak Søker
"
},
{
name
:
"
Vegard
"
,
role
:
"
Teknologi
"
,
team
:
"
Opptak Søker
"
},
{
name
:
"
Hilde
"
,
role
:
"
Design
"
,
team
:
"
Opptak Søker
"
},
{
name
:
"
Jakob
"
,
role
:
"
Teknologi
"
,
team
:
"
Opptak Søker
"
},
{
name
:
"
Kjartan
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm. Min utdanning
"
,
},
{
name
:
"
Sondre S.
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm. Min utdanning
"
,
},
{
name
:
"
Erik
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm. Min utdanning
"
},
{
name
:
"
Vegard
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm. Min utdanning
"
},
{
name
:
"
Hilde
"
,
role
:
"
Design
"
,
team
:
"
Studieadm. Min utdanning
"
},
{
name
:
"
Jakob
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm. Min utdanning
"
},
],
[
{
name
:
"
Sigurd
"
,
role
:
"
Teknologi
"
,
team
:
"
Kudaf
"
},
...
...
@@ -40,16 +48,17 @@ const Contributors = ({
{
name
:
"
Glaysa
"
,
role
:
"
Teknologi
"
,
team
:
"
Kudaf
"
},
],
[
{
name
:
"
Marius
"
,
role
:
"
Teknologi
"
,
team
:
"
Opptak Søknadsbehandling
"
},
{
name
:
"
Patrick
"
,
role
:
"
Teknologi
"
,
team
:
"
Opptak Søknadsbehandling
"
},
{
name
:
"
An
"
,
role
:
"
Teknologi
"
,
team
:
"
Opptak Søknadsbehandling
"
},
{
name
:
"
Mats
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm. Admin
"
},
{
name
:
"
Marius
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm. Admin
"
},
{
name
:
"
Patrick
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm. Admin
"
},
{
name
:
"
An
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm. Admin
"
},
],
[
{
name
:
"
Jonas
"
,
role
:
"
Teknologi
"
,
team
:
"
FS Studentportal
"
},
{
name
:
"
Christian
"
,
role
:
"
Design
"
,
team
:
"
FS Studentportal
"
},
{
name
:
"
Lasse
"
,
role
:
"
Teknologi
"
,
team
:
"
FS Studentportal
"
},
],
[{
name
:
"
Sondre L.
"
,
role
:
"
Teknologi
"
,
team
:
"
Opptak
Kjerne
"
}],
[{
name
:
"
Sondre L.
"
,
role
:
"
Teknologi
"
,
team
:
"
Studieadm.
Kjerne
"
}],
[{
name
:
"
John-Magne
"
,
role
:
"
Teknologi
"
,
team
:
"
Feide Kundeportal
"
}],
[{
name
:
"
Deg
"
,
role
:
"
Din rolle
"
,
team
:
"
Ditt team
"
}],
];
...
...
gatsby/src/components/Footer.tsx
→
apps/
gatsby/src/components/Footer.tsx
View file @
2ca7786c
...
...
@@ -3,7 +3,7 @@ import { Footer as SdsFooter } from "@sikt/sds-footer";
import
*
as
style
from
"
./footer.module.css
"
;
import
{
ButtonLink
}
from
"
@sikt/sds-button
"
;
import
{
Link
}
from
"
@sikt/sds-core
"
;
import
clsx
from
"
clsx
"
;
import
{
clsx
}
from
"
clsx
/lite
"
;
const
Footer
=
({
className
}:
{
className
?:
string
})
=>
{
return
(
...
...
gatsby/src/components/Head.tsx
→
apps/
gatsby/src/components/Head.tsx
View file @
2ca7786c
File moved
gatsby/src/components/Header.tsx
→
apps/
gatsby/src/components/Header.tsx
View file @
2ca7786c
File moved
gatsby/src/components/Hero.tsx
→
apps/
gatsby/src/components/Hero.tsx
View file @
2ca7786c
import
{
ReactNode
}
from
"
react
"
;
import
clsx
from
"
clsx
"
;
import
{
clsx
}
from
"
clsx
/lite
"
;
import
{
BreadcrumbItem
,
Breadcrumbs
}
from
"
@sikt/sds-breadcrumbs
"
;
import
{
Link
as
GatsbyLink
}
from
"
gatsby-link
"
;
import
{
Heading1
}
from
"
@sikt/sds-core
"
;
...
...
gatsby/src/components/NavCard.tsx
→
apps/
gatsby/src/components/NavCard.tsx
View file @
2ca7786c
import
{
ElementType
,
forwardRef
,
ReactNode
}
from
"
react
"
;
import
clsx
from
"
clsx
"
;
import
{
clsx
}
from
"
clsx
/lite
"
;
import
{
ArrowRightIcon
}
from
"
@sikt/sds-icons
"
;
import
*
as
style
from
"
./nav-card.module.css
"
;
...
...
gatsby/src/components/Notice.tsx
→
apps/
gatsby/src/components/Notice.tsx
View file @
2ca7786c
import
{
ReactNode
}
from
"
react
"
;
import
clsx
from
"
clsx
"
;
import
{
clsx
}
from
"
clsx
/lite
"
;
import
{
WarningIcon
}
from
"
@sikt/sds-icons
"
;
import
*
as
style
from
"
./notice.module.css
"
;
...
...
gatsby/src/components/Swatch.tsx
→
apps/
gatsby/src/components/Swatch.tsx
View file @
2ca7786c
File moved
Prev
1
2
3
4
5
…
28
Next