Skip to content
Merged
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
3 changes: 2 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// This file has been automatically migrated to valid ESM format by Storybook.
import type { StorybookConfig } from '@storybook/react-vite';
import { mergeConfig } from 'vite';
import path from 'path';
import path, { dirname } from 'path';
import { fileURLToPath } from 'url';

const __filename = fileURLToPath(import.meta.url);
Expand Down
23 changes: 15 additions & 8 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Preview } from '@storybook/react';
import type { Preview } from '@storybook/react-vite';
import '../src/styles/globals.css';

const preview: Preview = {
Expand All @@ -10,23 +10,30 @@ const preview: Preview = {
},
},
backgrounds: {
default: 'light',
values: [
{
options: {
light: {
name: 'light',
value: '#ffffff',
},
{

dark: {
name: 'dark',
value: '#020618',
},
{

muted: {
name: 'muted',
value: '#f1f5f9',
},
],
}
}
},
},

initialGlobals: {
backgrounds: {
value: 'light'
}
}
};

export default preview;
64 changes: 32 additions & 32 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,44 +1,44 @@
// For more info, see https://github.com/storybookjs/eslint-plugin-storybook#configuration-flat-config-format
import storybook from "eslint-plugin-storybook";

import js from '@eslint/js';
import typescript from '@typescript-eslint/eslint-plugin';
import typescriptParser from '@typescript-eslint/parser';
import react from 'eslint-plugin-react';
import reactHooks from 'eslint-plugin-react-hooks';
import globals from 'globals';

export default [
js.configs.recommended,
{
files: ['**/*.{ts,tsx}'],
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
globals: {
...globals.browser,
...globals.es2021,
export default [js.configs.recommended, {
files: ['**/*.{ts,tsx}'],
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
plugins: {
'@typescript-eslint': typescript,
'react': react,
'react-hooks': reactHooks,
globals: {
...globals.browser,
...globals.es2021,
},
rules: {
...typescript.configs.recommended.rules,
...react.configs.recommended.rules,
...reactHooks.configs.recommended.rules,
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
settings: {
react: {
version: 'detect',
},
},
plugins: {
'@typescript-eslint': typescript,
'react': react,
'react-hooks': reactHooks,
},
rules: {
...typescript.configs.recommended.rules,
...react.configs.recommended.rules,
...reactHooks.configs.recommended.rules,
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
},
settings: {
react: {
version: 'detect',
},
},
];
}, ...storybook.configs["flat/recommended"]];
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,16 @@
"homepage": "https://github.com/atxp-dev/design-system#readme",
"sideEffects": false,
"peerDependencies": {
"lucide-react": "^0.562.0",
"react": "^18.0.0 || ^19.0.0",
"react-dom": "^18.0.0 || ^19.0.0",
"lucide-react": "^0.562.0",
"sonner": "^2.0.7"
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@storybook/addon-designs": "^11.1.0",
"@storybook/addon-links": "^10.1.10",
"@storybook/react": "^10.1.10",
"@storybook/react-vite": "^10.1.10",
"@storybook/addon-designs": "^11.1.1",
"@storybook/addon-links": "^10.2.0",
"@storybook/react-vite": "^10.2.0",
"@tailwindcss/cli": "^4.1.18",
"@tailwindcss/postcss": "^4.1.18",
"@types/react": "^19.2.7",
Expand All @@ -71,11 +70,12 @@
"eslint": "^9.39.2",
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-storybook": "10.2.0",
"globals": "^16.5.0",
"postcss": "^8.5.6",
"react": "^19.2.3",
"react-dom": "^19.2.3",
"storybook": "^10.1.10",
"storybook": "^10.2.0",
"tailwindcss": "^4.1.18",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
Expand All @@ -90,7 +90,8 @@
"@radix-ui/react-tabs": "^1.1.13",
"@radix-ui/react-toggle": "^1.1.10",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1"
"clsx": "^2.1.1",
"tailwind-merge": "^3.4.0"
},
"packageManager": "pnpm@10.26.0+sha512.3b3f6c725ebe712506c0ab1ad4133cf86b1f4b687effce62a9b38b4d72e3954242e643190fc51fa1642949c735f403debd44f5cb0edd657abe63a8b6a7e1e402"
}
}
Loading