Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
4a2f4bf
fix typo
Antonio112009 Jan 11, 2026
2310c72
refactor: remove webpack, simplify build to use SWC directly
Antonio112009 Jan 11, 2026
c3e5404
Merge branch 'upgrade/webpack-removal'
Antonio112009 Jan 11, 2026
315b26d
removing unused
Antonio112009 Jan 11, 2026
4152679
removing unused
Antonio112009 Jan 11, 2026
8665296
fixed dependencies
Antonio112009 Jan 11, 2026
ad0f6ea
upgrade to ESLint 9 with flat config ESM
Antonio112009 Jan 11, 2026
3bbbefa
upgrade to ESLint 9 with flat config ESM
Antonio112009 Jan 11, 2026
4c31ffc
fix: convert empty interfaces to type aliases and extract hooks from …
Antonio112009 Jan 11, 2026
5c6971d
fix: extract more hooks from Storybook render functions, fix empty in…
Antonio112009 Jan 11, 2026
bf93682
fix: extract hooks from all Storybook render functions, rename render…
Antonio112009 Jan 11, 2026
a5003e5
fix: add missing type imports, fix conditional React Hooks, auto-fix …
Antonio112009 Jan 11, 2026
97d0f1d
Fix remaining ESLint errors and warnings
Antonio112009 Jan 11, 2026
3f4fed2
Merge fix/eslint-errors: Complete ESLint 9 compliance
Antonio112009 Jan 11, 2026
2145f21
Migrate from Jest to Vitest
Antonio112009 Jan 12, 2026
d653ebe
Exclude test files from ESLint
Antonio112009 Jan 12, 2026
30b1fab
Merge feat/migrate-to-vitest: Migrate from Jest to Vitest
Antonio112009 Jan 12, 2026
9fe46fc
fix(swc): Remove incompatible plugins and unify path aliases
Antonio112009 Jan 12, 2026
abb519c
chore: Remove unused SWC plugin dependencies
Antonio112009 Jan 12, 2026
04f6bc2
fix(scripts): Separate test from build process
Antonio112009 Jan 12, 2026
c4c18d1
fix(scripts): Make test run once by default, include in build
Antonio112009 Jan 12, 2026
9aaa34f
chore: Upgrade SWC to latest versions
Antonio112009 Jan 12, 2026
1910db9
fix: Move eslint-import-resolver-typescript to devDependencies
Antonio112009 Jan 12, 2026
56cb963
chore: Upgrade ESLint core packages
Antonio112009 Jan 12, 2026
c026180
chore: Upgrade TypeScript ecosystem
Antonio112009 Jan 12, 2026
2b32b26
chore: Upgrade ESLint ecosystem
Antonio112009 Jan 12, 2026
5bac8d5
chore: Upgrade build tools
Antonio112009 Jan 12, 2026
7d32f06
chore: Upgrade Prettier and fix formatting
Antonio112009 Jan 12, 2026
85181f5
chore: Upgrade Telegram types
Antonio112009 Jan 12, 2026
bdefe4a
chore: Upgrade Floating UI
Antonio112009 Jan 12, 2026
a68132e
feat: upgrade Storybook 7.6.17 → 10.1.11 with Vite
Antonio112009 Jan 12, 2026
a617f58
Upgrade to React 19
Antonio112009 Jan 12, 2026
1d94bd6
Replace @xelene/vaul-with-scroll-fix with official vaul package
Antonio112009 Jan 12, 2026
4d7bd3e
Merge feat/upgrade-react-19: Complete React 19 upgrade
Antonio112009 Jan 12, 2026
728415a
Fix Storybook module resolution for TypeScript
Antonio112009 Jan 12, 2026
8433d10
Merge fix/storybook-module-resolution: Fix TypeScript module resolution
Antonio112009 Jan 12, 2026
622e2a7
chore: Upgrade Vite 6.4.1 → 7.3.1
Antonio112009 Jan 12, 2026
54225ed
Merge chore/upgrade-vite: Upgrade to Vite 7.3.1
Antonio112009 Jan 12, 2026
88766a2
Update TypeScript configuration and Storybook setup
Antonio112009 Jan 12, 2026
4ead5b0
Update Snackbar.stories.tsx import path for Icon28Archive
Antonio112009 Jan 12, 2026
2d76ad4
Update Node.js engine requirement to >=20.0.0
Antonio112009 Jan 12, 2026
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
111 changes: 0 additions & 111 deletions .eslintrc.js

This file was deleted.

14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Dependencies
node_modules

# Build outputs
dist
dist-cjs
storybook-static

# Logs
*.log
npm-debug.log*

# Lock files
package-lock.json
File renamed without changes.
76 changes: 31 additions & 45 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
@@ -1,39 +1,23 @@
import type { StorybookConfig } from '@storybook/react-webpack5';
import path from 'path';
import { fileURLToPath } from "node:url";
import type { StorybookConfig } from '@storybook/react-vite';
import { dirname, join } from 'path';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const config: StorybookConfig = {
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
addons: [
'@storybook/addon-links',
{
name: '@storybook/addon-essentials',
options: {
actions: false,
},
},
],
addons: ['@storybook/addon-links', '@storybook/addon-docs'],

framework: {
name: '@storybook/react-webpack5',
options: {
fastRefresh: true,
builder: {
useSWC: true,
},
},
name: '@storybook/react-vite',
options: {},
},
swc: () => ({
jsc: {
transform: {
react: {
runtime: 'automatic',
},
},
},
}),

docs: {
autodocs: true,
defaultName: 'Documentation',
defaultName: 'Documentation'
},

typescript: {
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
Expand All @@ -52,27 +36,29 @@ const config: StorybookConfig = {
},
},
},
webpackFinal: async (config) => {
if (!config.resolve) {
config.resolve = {};
}

if (!config.module) {
config.module = {};
}

if (!config.module.rules) {
config.module.rules = [];
}

config.resolve.modules = [
...(config.resolve.modules || []),
path.resolve(__dirname, '../src'),
];
async viteFinal(config) {
// Add path aliases for imports
config.resolve = config.resolve || {};
config.resolve.alias = {
...config.resolve.alias,
'components': join(__dirname, '../src/components'),
'helpers': join(__dirname, '../src/helpers'),
'hooks': join(__dirname, '../src/hooks'),
'icons': join(__dirname, '../src/icons'),
'types': join(__dirname, '../src/types'),
// Only alias our local storybook/controls, not all storybook/* imports
'storybook/controls': join(__dirname, '../src/storybook/controls'),
};

return config;
},

staticDirs: ['./media'],

core: {
disableTelemetry: true,
},
};

export default config;
15 changes: 1 addition & 14 deletions .storybook/manager.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
import { create } from '@storybook/theming';
import logo from './media/logo.png';

import { addons } from '@storybook/manager-api';

const favicon = document.querySelector('link[rel="icon"]');
const favicon = document.querySelector<HTMLLinkElement>('link[rel="icon"]');
if (favicon) {
favicon.type = 'image/png';
favicon.href = logo;
}

addons.setConfig({
theme: create({
base: 'light',
brandTitle: `<img alt="Logo" src="${logo}" width="32px" height="32px"/>`
}),
toolbar: {
zoom: { hidden: true },
},
});
17 changes: 5 additions & 12 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Preview } from '@storybook/react';
import { AppearanceDecorator } from './decorators/appearance';
import { AppRootDecorator } from './decorators/root';
import { StrictDecorator } from './decorators/strict';
import { Controls, Description, Primary, Stories, Subtitle, Title } from '@storybook/blocks';

const preview: Preview = {
parameters: {
Expand All @@ -11,16 +10,6 @@ const preview: Preview = {
source: {
state: 'open',
},
page: () => (
<>
<Title />
<Subtitle />
<Description />
<Primary />
<Controls />
<Stories includePrimary={false} />
</>
),
},
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
Expand All @@ -30,9 +19,10 @@ const preview: Preview = {
date: /Date$/i,
},
},
backgrounds: { disable: true },
backgrounds: { disabled: true },
centered: true,
},

globalTypes: {
platform: {
name: 'Platform',
Expand All @@ -56,11 +46,14 @@ const preview: Preview = {
},
},
},

decorators: [
StrictDecorator,
AppRootDecorator,
AppearanceDecorator,
],

tags: ['autodocs']
};

export default preview;
Loading