Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/hot-dryers-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
13 changes: 0 additions & 13 deletions .editorconfig

This file was deleted.

2 changes: 0 additions & 2 deletions .github/workflows/check-conventional-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,3 @@ jobs:
- uses: CondeNast/conventional-pull-request-action@3ce30fdb4d2beef8b941f23a1114dd8188eba082 # v0.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commitlintRulesPath: './commitlint.rules.js'
15 changes: 2 additions & 13 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,12 @@
{
"recommendations": [
"biomejs.biome",
"unifiedjs.vscode-mdx",
"christian-kohler.npm-intellisense",
"techer.open-in-browser",
"ionutvmi.path-autocomplete",
"jock.svg",
"naumovs.color-highlight",
"clinyong.vscode-css-modules",
"aaron-bond.better-comments",
"eamodio.gitlens",
"ms-vsliveshare.vsliveshare",
"vivaxy.vscode-conventional-commits",
"bierner.color-info",
"formulahendry.auto-rename-tag",
"formulahendry.auto-close-tag",
"usernamehw.errorlens",
"phoenisx.cssvar",
"editorconfig.editorconfig",
"zignd.html-css-class-completion",
"biomejs.biome"
"phoenisx.cssvar"
]
}
4 changes: 0 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"cssvar.files": [
"packages/theme/src/themes/designsystemet.css",
],
"html-css-class-completion.includeGlobPattern": "packages/css/**/*.{css,html}",
"[github-actions-workflow]": {
"editor.defaultFormatter": "redhat.vscode-yaml"
},
Expand All @@ -35,9 +34,6 @@
"[ignore]": {
"editor.defaultFormatter": "foxundermoon.shell-format"
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
}
Expand Down
3 changes: 0 additions & 3 deletions commitlint.rules.js

This file was deleted.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
"@vitejs/plugin-react-swc": "^4.2.0",
"@vitest/coverage-v8": "4.0.7",
"@vitest/browser-playwright": "4.0.7",
"@vitest/ui": "4.0.7",
"chromatic": "^13.3.3",
"just-pnpm": "^1.0.2",
"tsconfck": "^3.1.6",
Expand Down
4 changes: 0 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
"dependencies": {
"@commander-js/extra-typings": "^14.0.0",
"@tokens-studio/sd-transforms": "1.3.0",
"apca-w3": "^0.1.9",
"change-case": "^5.4.4",
"chroma-js": "^3.1.2",
"colorjs.io": "^0.6.0-alpha.1",
Expand All @@ -81,14 +80,11 @@
},
"devDependencies": {
"@tokens-studio/types": "0.5.2",
"@types/apca-w3": "^0.1.3",
"@types/chroma-js": "^3.1.2",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.19.0",
"@types/object-hash": "^3.0.6",
"@types/ramda": "^0.31.1",
"fs-extra": "^11.3.2",
"tslib": "^2.8.1",
"tsup": "^8.5.0",
"tsx": "^4.20.6",
"typescript": "^5.9.3"
Expand Down
1 change: 0 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
"@storybook/addon-docs": "^9.1.16",
"@storybook/addon-vitest": "^9.1.16",
"@storybook/react-vite": "^9.1.16",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
Expand Down
42 changes: 5 additions & 37 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions test/__mocks__/svg.ts

This file was deleted.

20 changes: 0 additions & 20 deletions test/testUtils.ts

This file was deleted.

26 changes: 0 additions & 26 deletions test/vitest.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,12 @@ import { expect, vi } from 'vitest';
import '@testing-library/jest-dom/vitest';
import * as matchers from '@testing-library/jest-dom/matchers';

import { mockMediaQuery } from './testUtils';

expect.extend(matchers);

/**
* Mock of Dialog element for testing purposes
*/

HTMLDialogElement.prototype.show = vi.fn(function mock(
this: HTMLDialogElement,
) {
this.open = true;
});

HTMLDialogElement.prototype.showModal = vi.fn(function mock(
this: HTMLDialogElement,
) {
this.open = true;
});

HTMLDialogElement.prototype.close = vi.fn(function mock(
this: HTMLDialogElement,
) {
Expand All @@ -37,15 +23,3 @@ document.addEventListener('keydown', (event) => {
dialog?.close();
}
});

// Add support for dialog form method
document.addEventListener('click', ({ target }) => {
if (target instanceof HTMLElement)
target
.closest('form[method="dialog"] button[type="submit"]')
?.closest('dialog')
?.close();
});

const { setScreenWidth } = mockMediaQuery(800);
setScreenWidth(800);
Loading