Skip to content

Commit

Permalink
chore(web-components): Remove define imports from story modules (#31622)
Browse files Browse the repository at this point in the history
  • Loading branch information
radium-v authored Jun 24, 2024
1 parent 1c0ba2f commit 54f5ccc
Show file tree
Hide file tree
Showing 27 changed files with 0 additions and 48 deletions.
2 changes: 0 additions & 2 deletions packages/web-components/src/accordion/accordion.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import { AccordionItemExpandIconPosition, AccordionItemSize } from '../accordion-item/accordion-item.options.js';
import type { Accordion as FluentAccordion } from './accordion.js';
import './define';
import '../accordion-item/define';

type AccordionStoryArgs = Args & FluentAccordion;
type AccordionStoryMeta = Meta<AccordionStoryArgs>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { AnchorButton as FluentAnchorButton } from './anchor-button.js';
import { AnchorButtonAppearance, AnchorButtonShape, AnchorButtonSize } from './anchor-button.options.js';
import './define.js';

type AnchorButtonStoryArgs = Args & FluentAnchorButton;
type AnchorButtonStoryMeta = Meta<AnchorButtonStoryArgs>;
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/avatar/avatar.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Avatar as FluentAvatar } from './avatar.js';
import { AvatarActive, AvatarAppearance, AvatarColor, AvatarShape, AvatarSize } from './avatar.options.js';
import './define.js';

type AvatarStoryArgs = Args & FluentAvatar;
type AvatarStoryMeta = Meta<AvatarStoryArgs>;
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/badge/badge.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Badge as FluentBadge } from './badge.js';
import { BadgeAppearance, BadgeColor, BadgeShape, BadgeSize } from './badge.options.js';
import './define.js';

type BadgeStoryArgs = Args & FluentBadge;
type BadgeStoryMeta = Meta<BadgeStoryArgs>;
Expand Down
2 changes: 0 additions & 2 deletions packages/web-components/src/button/button.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import { renderComponent } from '../helpers.stories.js';
import type { Button as FluentButton } from './button.js';
import { ButtonAppearance, ButtonShape, ButtonSize } from './button.options.js';

import './define.js';

const storyTemplate = html<StoryArgs<FluentButton>>`
<fluent-button
appearance="${x => x.appearance}"
Expand Down
4 changes: 0 additions & 4 deletions packages/web-components/src/checkbox/checkbox.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ import { Meta, renderComponent, Story, StoryArgs } from '../helpers.stories.js';
import { Checkbox as FluentCheckbox } from './checkbox.js';
import { CheckboxShape, CheckboxSize } from './checkbox.options.js';

import './define.js';
import '../button/define.js';
import '../field/define.js';

const storyTemplate = html<StoryArgs<FluentCheckbox>>`
<fluent-checkbox
?checked="${x => x.checked}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { CompoundButton as FluentCompoundButton } from './compound-button.js';
import { CompoundButtonAppearance, CompoundButtonShape, CompoundButtonSize } from './compound-button.options.js';
import './define.js';

type CompoundButtonStoryArgs = Args & FluentCompoundButton;
type CompoundButtonStoryMeta = Meta<CompoundButtonStoryArgs>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
CounterBadgeShape,
CounterBadgeSize,
} from './counter-badge.options.js';
import './define.js';

type CounterBadgeStoryArgs = Args & FluentCounterBadge;
type CounterBadgeStoryMeta = Meta<CounterBadgeStoryArgs>;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { html } from '@microsoft/fast-element';
import type { Args } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import { Dialog as FluentDialog } from '../dialog/dialog.js';
import type { DialogBody as FluentDialogBody } from './dialog-body.js';
import './define.js';
import '../button/define.js';
import '../text/define.js';

type DialogStoryArgs = Args & FluentDialogBody;

Expand Down
3 changes: 0 additions & 3 deletions packages/web-components/src/dialog/dialog.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import { html } from '@microsoft/fast-element';
import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Dialog as FluentDialog } from './dialog.js';
import './define.js';
import '../button/define.js';
import '../text/define.js';
import { DialogType } from './dialog.options.js';

type DialogStoryArgs = Args & FluentDialog;
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/divider/divider.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Divider as FluentDivider } from './divider.js';
import { DividerAlignContent, DividerAppearance, DividerOrientation, DividerRole } from './divider.options.js';
import './define.js';

type DividerStoryArgs = Args & FluentDivider;
type DividerStoryMeta = Meta<DividerStoryArgs>;
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/image/image.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Image as FluentImage } from './image.js';
import { ImageFit, ImageShape } from './image.options.js';
import './define.js';

type ImageStoryArgs = Args & FluentImage;
type ImageStoryMeta = Meta<ImageStoryArgs>;
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/label/label.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { html } from '@microsoft/fast-element';
import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Label as FluentLabel } from './label.js';
import './define.js';
import { LabelSize, LabelWeight } from './label.options.js';

type LabelStoryArgs = Args & FluentLabel;
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/link/link.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Link as FluentLink } from './link.js';
import { LinkAppearance } from './link.options.js';
import './define.js';

type LinkStoryArgs = Args & FluentLink;
type LinkStoryMeta = Meta<LinkStoryArgs>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { MenuButton as FluentMenuButton } from './menu-button.js';
import { MenuButtonAppearance, MenuButtonShape, MenuButtonSize } from './menu-button.options.js';
import './define.js';

type MenuButtonStoryArgs = Args & FluentMenuButton;
type MenuButtonStoryMeta = Meta<MenuButtonStoryArgs>;
Expand Down
3 changes: 0 additions & 3 deletions packages/web-components/src/menu-list/menu-list.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import { html } from '@microsoft/fast-element';
import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { MenuList as FluentMenuList } from './menu-list.js';
import './define.js';
import '../menu-item/define.js';
import '../divider/define.js';

type MenuListStoryArgs = Args & FluentMenuList;
type MenuListStoryMeta = Meta<MenuListStoryArgs>;
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/menu/menu.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { html } from '@microsoft/fast-element';
import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Menu as FluentMenu } from './menu.js';
import './define.js';

type MenuStoryArgs = Args & FluentMenu;
type MenuStoryMeta = Meta<MenuStoryArgs>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { ProgressBar as FluentProgressBar } from './progress-bar.js';
import { ProgressBarShape, ProgressBarThickness, ProgressBarValidationState } from './progress-bar.options.js';
import './define.js';

type ProgressStoryArgs = Args & FluentProgressBar;
type ProgressStoryMeta = Meta<ProgressStoryArgs>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { html } from '@microsoft/fast-element';
import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import { RadioGroup as FluentRadioGroup } from './radio-group.js';
import './define.js';
import '../radio/define.js';
import { RadioGroupOrientation } from './radio-group.options.js';

type RadioGroupStoryArgs = Args & FluentRadioGroup;
Expand Down
2 changes: 0 additions & 2 deletions packages/web-components/src/radio/radio.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { html } from '@microsoft/fast-element';
import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Radio as FluentRadio } from './radio.js';
import './define.js';
import '../radio-group/define.js';

type RadioStoryArgs = Args & FluentRadio;
type RadioStoryMeta = Meta<RadioStoryArgs>;
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/slider/slider.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import { SliderSize as SliderSetSize } from './slider.options.js';
import type { Slider as FluentSlider } from './slider.js';
import './define.js';

type SliderStoryArgs = Args & FluentSlider;
type SliderStoryMeta = Meta<SliderStoryArgs>;
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/spinner/spinner.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { html } from '@microsoft/fast-element';
import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import { SpinnerAppearance, SpinnerSize } from './spinner.options.js';
import './define.js';

type SpinnerStoryArgs = Args;
type SpinnerStoryMeta = Meta<SpinnerStoryArgs>;
Expand Down
4 changes: 0 additions & 4 deletions packages/web-components/src/switch/switch.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import { LabelPosition, ValidationFlags } from '../field/field.options.js';
import { Meta, renderComponent, Story, StoryArgs } from '../helpers.stories.js';
import type { Switch as FluentSwitch } from './switch.js';

import './define.js';
import '../button/define.js';
import '../field/define.js';

const storyTemplate = html<StoryArgs<FluentSwitch>>`
<fluent-switch
?checked="${x => x.checked}"
Expand Down
3 changes: 0 additions & 3 deletions packages/web-components/src/tabs/tabs.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import { html } from '@microsoft/fast-element';
import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { Tabs as FluentTabs } from './tabs.js';
import './define.js';
import '../tab/define.js';
import '../tab-panel/define.js';
import { TabsAppearance as TabsAppearanceValues, TabsOrientation, TabsSize } from './tabs.options.js';

type TabsStoryArgs = Args & FluentTabs;
Expand Down
3 changes: 0 additions & 3 deletions packages/web-components/src/text-input/text-input.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ import { colorNeutralBackgroundInverted, colorNeutralForegroundInverted2 } from
import type { TextInput as FluentTextInput } from './text-input.js';
import { TextInputAppearance, TextInputControlSize, TextInputType } from './text-input.options.js';

import '../text/define.js';
import './define.js';

const Person20Regular = html<StoryArgs<FluentTextInput>>`
<svg
fill="currentColor"
Expand Down
1 change: 0 additions & 1 deletion packages/web-components/src/text/text.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import { colorNeutralBackground6 } from '../theme/design-tokens.js';
import type { Text as FluentText } from './text.js';
import './define.js';
import { TextAlign, TextFont, TextSize, TextWeight } from './text.options.js';

type TextStoryArgs = Args & FluentText;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Args, Meta } from '@storybook/html';
import { renderComponent } from '../helpers.stories.js';
import type { ToggleButton as FluentToggleButton } from './toggle-button.js';
import { ToggleButtonAppearance, ToggleButtonShape, ToggleButtonSize } from './toggle-button.options.js';
import './define.js';

type ToggleButtonStoryArgs = Args & FluentToggleButton;
type ToggleButtonStoryMeta = Meta<ToggleButtonStoryArgs>;
Expand Down

0 comments on commit 54f5ccc

Please sign in to comment.