Skip to content

Commit eb24bde

Browse files
fix: Resolve identifier conflicts and import issues in Storybook stories
- Fixed duplicate identifier conflicts in ControlledSelect.stories.tsx: - Renamed component function ComplexFormIntegration to ComplexFormIntegrationComponent - Renamed story exports to avoid conflicts: RequiredValidation → SelectRequiredValidation, DisabledState → SelectDisabledState, ErrorState → SelectErrorState - Fixed duplicate identifier conflicts in ControlledCheckbox.stories.tsx: - Renamed component function CompleteFormExample to CompleteFormExampleComponent - Fixed incorrect import path in ControlledCheckbox.stories.tsx: - Changed from '@lambdacurry/medusa-forms/controlled' to '@lambdacurry/medusa-forms/controlled/ControlledCheckbox' These changes resolve the Storybook build failures caused by TypeScript identifier conflicts and import path issues.
1 parent 871b81d commit eb24bde

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

apps/docs/src/medusa-forms/ControlledCheckbox.stories.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ControlledCheckbox } from '@lambdacurry/medusa-forms/controlled';
1+
import { ControlledCheckbox } from '@lambdacurry/medusa-forms/controlled/ControlledCheckbox';
22
import type { Meta, StoryObj } from '@storybook/react-vite';
33
import React from 'react';
44
import { FormProvider, useForm } from 'react-hook-form';
@@ -306,7 +306,7 @@ export const MultipleCheckboxes: Story = {
306306
};
307307

308308
// Form Integration Example Story
309-
const CompleteFormExample = () => {
309+
const CompleteFormExampleComponent = () => {
310310
const form = useForm({
311311
defaultValues: {
312312
username: '',
@@ -392,5 +392,5 @@ const CompleteFormExample = () => {
392392
};
393393

394394
export const CompleteFormExample: Story = {
395-
render: () => <CompleteFormExample />,
395+
render: () => <CompleteFormExampleComponent />,
396396
};

apps/docs/src/medusa-forms/ControlledSelect.stories.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ const RequiredValidationForm = () => {
136136
);
137137
};
138138

139-
export const RequiredValidation: Story = {
139+
export const SelectRequiredValidation: Story = {
140140
render: () => <RequiredValidationForm />,
141141
};
142142

@@ -266,7 +266,7 @@ const DisabledStateForm = () => {
266266
);
267267
};
268268

269-
export const DisabledState: Story = {
269+
export const SelectDisabledState: Story = {
270270
render: () => <DisabledStateForm />,
271271
};
272272

@@ -306,7 +306,7 @@ const ErrorStateForm = () => {
306306
);
307307
};
308308

309-
export const ErrorState: Story = {
309+
export const SelectErrorState: Story = {
310310
render: () => <ErrorStateForm />,
311311
};
312312

@@ -341,7 +341,7 @@ export const SmallSize: Story = {
341341
};
342342

343343
// 9. Complex Form Integration
344-
const ComplexFormIntegration = () => {
344+
const ComplexFormIntegrationComponent = () => {
345345
const form = useForm({
346346
defaultValues: {
347347
country: '',
@@ -431,7 +431,7 @@ const ComplexFormIntegration = () => {
431431
};
432432

433433
export const ComplexFormIntegration: Story = {
434-
render: () => <ComplexFormIntegration />,
434+
render: () => <ComplexFormIntegrationComponent />,
435435
};
436436

437437
// 10. Interactive Demo with onChange Handler

0 commit comments

Comments
 (0)