From 181cfdebdf483f1cb3241e0243bc8c91bf88db43 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Tue, 19 May 2026 18:50:45 +0300 Subject: [PATCH] fix: old palette purged from stories and stories purged from production build --- .../ExperienceCard/ExperienceCard.stories.tsx | 1 + src/shared/ui/Card/ui/Card.stories.tsx | 25 +++++++------------ src/shared/ui/Link/index.ts | 1 + src/shared/ui/Section/ui/Section.stories.tsx | 19 ++++---------- tsconfig.json | 2 +- 5 files changed, 17 insertions(+), 31 deletions(-) diff --git a/src/entities/experience/ui/ExperienceCard/ExperienceCard.stories.tsx b/src/entities/experience/ui/ExperienceCard/ExperienceCard.stories.tsx index 8eb08f7..94b4ff4 100644 --- a/src/entities/experience/ui/ExperienceCard/ExperienceCard.stories.tsx +++ b/src/entities/experience/ui/ExperienceCard/ExperienceCard.stories.tsx @@ -23,6 +23,7 @@ const baseArgs = { period: '2021 – 2024', description: 'Led frontend development for the core product, established design system practices, and mentored junior engineers across two distributed teams.', + stack: ['React', 'TypeScript', 'Next.js'], }; export const Default: Story = { diff --git a/src/shared/ui/Card/ui/Card.stories.tsx b/src/shared/ui/Card/ui/Card.stories.tsx index a5e62d3..0efc166 100644 --- a/src/shared/ui/Card/ui/Card.stories.tsx +++ b/src/shared/ui/Card/ui/Card.stories.tsx @@ -13,24 +13,17 @@ type Story = StoryObj; export const AllBackgrounds: Story = { render: () => (
- + - Ochre Card - Background ochre-clay variant + Cream Card + Default cream background variant Footer content - + - Slate Card - Background slate-indigo variant - - Footer content - - - - White Card - Background white variant + Blue Card + Blue background variant Footer content @@ -40,9 +33,9 @@ export const AllBackgrounds: Story = { export const NoPadding: Story = { render: () => ( -
+
-
Image placeholder
+
Image placeholder
), @@ -51,7 +44,7 @@ export const NoPadding: Story = { export const FullComposition: Story = { render: () => (
- + Full Composition A card using all available slot components diff --git a/src/shared/ui/Link/index.ts b/src/shared/ui/Link/index.ts index a2e27cb..dc1229d 100644 --- a/src/shared/ui/Link/index.ts +++ b/src/shared/ui/Link/index.ts @@ -1 +1,2 @@ +export type { LinkVariant } from './ui/Link/Link'; export { Link } from './ui/Link/Link'; diff --git a/src/shared/ui/Section/ui/Section.stories.tsx b/src/shared/ui/Section/ui/Section.stories.tsx index 7601dad..a3515e0 100644 --- a/src/shared/ui/Section/ui/Section.stories.tsx +++ b/src/shared/ui/Section/ui/Section.stories.tsx @@ -13,27 +13,18 @@ type Story = StoryObj; export const AllBackgrounds: Story = { render: () => (
-
+
-

Ochre Section

+

Cream Section

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

-
+
-

Slate Section

-

- Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et - dolore magna aliqua. -

-
-
-
- -

White Section

+

Blue Section

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. @@ -46,7 +37,7 @@ export const AllBackgrounds: Story = { export const Bordered: Story = { render: () => ( -

+

Bordered Section

diff --git a/tsconfig.json b/tsconfig.json index de58819..e9915e3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -43,5 +43,5 @@ ".next/dev/types/**/*.ts", "**/*.mts" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", "**/*.stories.ts", "**/*.stories.tsx"] }