Skip to content

Commit

Permalink
fix: DS
Browse files Browse the repository at this point in the history
  • Loading branch information
jmfrancois committed Oct 6, 2023
1 parent b06f511 commit 58f05ef
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 246 deletions.
3 changes: 3 additions & 0 deletions packages/design-system/src/components/Form/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { ToggleSwitch, UncontrolledToggleSwitch } from './ToggleSwitch';

Check warning on line 1 in packages/design-system/src/components/Form/index.ts

View workflow job for this annotation

GitHub Actions / ESLint Report Analysis

packages/design-system/src/components/Form/index.ts#L1

[@typescript-eslint/no-unused-vars] 'UncontrolledToggleSwitch' is defined but never used.
import Buttons from './Buttons';
import Datalist from './Field/Datalist';
import Input from './Field/Input';
Expand Down Expand Up @@ -34,6 +35,7 @@ export const FormComponent = Form as typeof Form & {
Week: typeof Input.Week;
Buttons: typeof Buttons;
Input: typeof Input;
ToggleSwitch: typeof ToggleSwitch;
};

FormComponent.Row = Row;
Expand Down Expand Up @@ -61,6 +63,7 @@ FormComponent.Time = Input.Time;
FormComponent.Url = Input.Url;
FormComponent.Week = Input.Week;
FormComponent.Input = Input;
FormComponent.ToggleSwitch = ToggleSwitch;

FormComponent.Buttons = Buttons;

Expand Down
1 change: 0 additions & 1 deletion packages/design-system/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,4 +181,3 @@ export type { PopoverProps, PopoverTriggerProps, TooltipPlacement };

export * from './components/Form/ToggleSwitch';
export * from './components/Form/Checkbox';
export * from './components/Form/ToggleSwitch';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Controls, Canvas, Meta, Story } from '@storybook/blocks';
import { FigmaImage, Use } from '@talend/storybook-docs';
import * as Stories from './Input.Checkbox.stories';
import { Status } from '../../../Status.block';
import * as Stories from './Checkbox.stories';
import { Status } from '../../Status.block';

<Meta of={Stories} />
<Status id="formFieldInputCheckbox" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { Controls, Canvas, Meta, Story } from '@storybook/blocks';
import { FigmaImage, Use } from '@talend/storybook-docs';
import * as Stories from './Input.Checkbox.stories';
import { Status } from '../../../Status.block';
import { Form } from '../../../';

<Meta of={Stories} />
<Status id="formFieldInputCheckbox" />
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Canvas, Meta, Story } from '@storybook/addon-docs';
import { FigmaImage, Use } from '~docs';
import { FigmaImage, Use } from '@talend/storybook-docs';
import { Form, ToggleSwitch } from '@talend/design-system';

import * as Stories from './ToggleSwitch.stories';
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/src/stories/messaging/Tooltip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { FigmaImage, Use } from '@talend/storybook-docs';
import { Tooltip } from '../../';
import { Status } from '../Status.block';

import * as Stories from '@talend/design-system/src/components/Tooltip/Tooltip.stories';
import * as Stories from './Tooltip.stories';

<Meta of={Stories} />
<Status id="tooltip" />
Expand Down
File renamed without changes.

0 comments on commit 58f05ef

Please sign in to comment.