Skip to content
Open
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 eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import nlDesignSystemConfig from '@nl-design-system/eslint-config/configs/nl-des
import prettier from 'eslint-config-prettier';
import perfectionist from 'eslint-plugin-perfectionist';
import react from 'eslint-plugin-react';
import storybook from 'eslint-plugin-storybook';
import { defineConfig, globalIgnores } from 'eslint/config';
import tseslint from 'typescript-eslint';

Expand Down Expand Up @@ -72,6 +73,7 @@ export default defineConfig([
...react.configs.flat.recommended,
...react.configs.flat['jsx-runtime'],
},
storybook.configs['flat/recommended'],
{
// Minor override for Stencil files that import `h` but do not use it so allow this
files: ['packages/web-components-stencil/**/*.tsx'],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"url": "git@github.com:nl-design-system/example.git",
"directory": "."
},
"packageManager": "pnpm@10.30.1+sha512.3590e550d5384caa39bd5c7c739f72270234b2f6059e13018f975c313b1eb9fefcc09714048765d4d9efe961382c312e624572c0420762bdc5d5940cdf9be73a",
"packageManager": "pnpm@10.30.3+sha512.c961d1e0a2d8e354ecaa5166b822516668b7f44cb5bd95122d590dd81922f606f5473b6d23ec4a5be05e7fcd18e8488d47d978bbe981872f1145d06e9a740017",
"engines": {
"//": "Update @types/node to match the highest node version here",
"node": ">=24 <=25",
Expand All @@ -29,6 +29,7 @@
"@eslint/json": "0.14.0",
"@nl-design-system/eslint-config": "2.2.0",
"@types/node": "24.10.9",
"eslint-plugin-storybook": "10.2.14",
"eslint": "9.39.2",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-perfectionist": "4.15.1",
Expand Down
6 changes: 3 additions & 3 deletions packages/components-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@
"@testing-library/jest-dom": "6.9.1",
"@testing-library/react": "16.3.2",
"@testing-library/user-event": "14.6.1",
"@types/react": "18.3.27",
"@types/react": "19.2.14",
"@vitejs/plugin-react": "4.7.0",
"@vitest/coverage-v8": "3.2.4",
"jsdom": "26.1.0",
"next": "15.5.10",
"postcss": "8.5.6",
"react": "18.3.1",
"react-dom": "18.3.1",
"react": "19.2.4",
"react-dom": "19.2.4",
"rimraf": "6.1.2",
"rollup": "4.57.0",
"rollup-plugin-filesize": "10.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/config/ParametersArgsDecorator.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Decorator } from '@storybook/react';
import type { Decorator } from '@storybook/react-vite';

export const ParametersArgsDecorator: Decorator = (Story, context) => {
context.parameters['args'] = context.args;
Expand Down
4 changes: 0 additions & 4 deletions packages/storybook/config/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ const config: StorybookConfig = {
addons: [
'@storybook/addon-a11y',
'@storybook/addon-docs',
'@storybook/addon-viewport',
'@whitespace/storybook-addon-html',
'@etchteam/storybook-addon-status',
],
core: {
disableTelemetry: true,
disableWhatsNewNotifications: true,
},
docs: {
autodocs: 'tag',
},
framework: {
name: '@storybook/react-vite',
options: {},
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/config/preview.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '@example/design-tokens/dist/index.css';
import '@example/font/src/index.scss';
import type { Preview } from '@storybook/react';
import type { Preview } from '@storybook/react-vite';
import { defineCustomElements } from '@example/web-components-stencil/loader/index.js';
import { ParametersArgsDecorator } from './ParametersArgsDecorator';

Expand Down
26 changes: 11 additions & 15 deletions packages/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,29 +20,25 @@
},
"devDependencies": {
"@babel/core": "7.28.6",
"@etchteam/storybook-addon-status": "5.0.0",
"@etchteam/storybook-addon-status": "8.0.0",
"@example/assets": "workspace:*",
"@example/components-css": "workspace:*",
"@example/design-tokens": "workspace:*",
"@example/font": "workspace:*",
"@example/web-components-react": "workspace:*",
"@example/web-components-stencil": "workspace:*",
"@storybook/addon-a11y": "8.6.15",
"@storybook/addon-actions": "8.6.15",
"@storybook/addon-docs": "8.6.15",
"@storybook/addon-interactions": "8.6.15",
"@storybook/addon-links": "8.6.15",
"@storybook/addon-viewport": "8.6.15",
"@storybook/react": "8.6.15",
"@storybook/react-vite": "8.6.15",
"@types/react": "18.3.27",
"@types/react-dom": "18.3.7",
"@whitespace/storybook-addon-html": "6.1.1",
"react": "18.3.1",
"react-dom": "18.3.1",
"@storybook/addon-a11y": "10.2.14",
"@storybook/addon-docs": "10.2.14",
"@storybook/addon-links": "10.2.14",
"@storybook/react-vite": "10.2.14",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"@whitespace/storybook-addon-html": "9.0.0",
"react": "19.2.4",
"react-dom": "19.2.4",
"react-syntax-highlighter": "15.6.6",
"rimraf": "6.1.2",
"storybook": "8.6.15",
"storybook": "10.2.14",
"typescript": "5.9.3",
"vite": "6.4.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/src/css-button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @license CC0-1.0 */

import type { Meta, StoryObj } from '@storybook/react';
import type { Meta, StoryObj } from '@storybook/react-vite';
import readme from '@example/components-css/button/README.md?raw';
import { PropsWithChildren } from 'react';
import '@example/components-css/button/index.scss';
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/src/documentation/introduction.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Markdown, Meta } from '@storybook/addon-docs';
import { Markdown, Meta } from '@storybook/addon-docs/blocks';
import markdown from './introduction.md?raw';

<Meta title="Example/Intro" />
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/src/documentation/license.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Markdown, Meta } from '@storybook/addon-docs';
import { Markdown, Meta } from '@storybook/addon-docs/blocks';
import markdown from '../../../../LICENSE.md?raw';

<Meta title="Example/Open Source License" />
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/src/documentation/notice.mdx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Markdown, Meta } from '@storybook/addon-docs';
import { Markdown, Meta } from '@storybook/addon-docs/blocks';
import markdown from '../../../../NOTICE.md?raw';

<Meta title="Example/Toestemming voor gebruik" />
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/src/react-button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Meta, StoryObj } from '@storybook/react';
import { Meta, StoryObj } from '@storybook/react-vite';
import { Button } from '../../components-react/src/Button';

const meta = {
Expand Down
2 changes: 1 addition & 1 deletion packages/storybook/src/web-component-button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* @license CC0-1.0 */

import type { Meta, StoryObj } from '@storybook/react';
import type { Meta, StoryObj } from '@storybook/react-vite';
import readme from '@example/components-css/button/README.md?raw';
import { ExampleButton } from '@example/web-components-react';
import { PropsWithChildren } from 'react';
Expand Down
4 changes: 3 additions & 1 deletion packages/storybook/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"compilerOptions": {
"jsx": "react-jsx",
"allowSyntheticDefaultImports": true,
"skipLibCheck": true
"skipLibCheck": true,
"module": "esnext",
"moduleResolution": "bundler"
},
"extends": "../../tsconfig.json",
"include": ["config/**/*.ts", "config/**/*.tsx", "src/**/*.ts", "src/**/*.tsx"],
Expand Down
8 changes: 4 additions & 4 deletions packages/web-components-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
"devDependencies": {
"@example/web-components-stencil": "workspace:*",
"@types/node": "24.10.9",
"@types/react": "18.3.27",
"@types/react-dom": "18.3.7",
"react": "18.3.1",
"react-dom": "18.3.1",
"@types/react": "19.2.14",
"@types/react-dom": "19.2.3",
"react": "19.2.4",
"react-dom": "19.2.4",
"rimraf": "6.1.2",
"typescript": "5.9.3"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/web-components-stencil/src/button/index.scss
Original file line number Diff line number Diff line change
@@ -1 +1 @@
@import "~@example/components-css/button/index";
@use "~@example/components-css/button/index" as *;
Loading