Skip to content

Commit

Permalink
refactor(storybook): ♻️ easier access to stories - removing sub folders
Browse files Browse the repository at this point in the history
  • Loading branch information
navin-moorthy committed Oct 16, 2020
1 parent 84614cb commit d1336d6
Show file tree
Hide file tree
Showing 22 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/accordion/stories/Accordion.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from "../index";

export default {
title: "Component/Accordion",
title: "Accordion",
} as Meta;

const AccordionComponent: React.FC<AccordionInitialState> = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/breadcrumbs/stories/Breadcrumbs.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Breadcrumbs } from "../Breadcrumbs";
import { BreadcrumbLink } from "../BreadcrumbLink";

export default {
title: "Component/Breadcrumb",
title: "Breadcrumb",
} as Meta;

export const Default = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/calendar/stories/Calendar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "./index.css";
import { CalendarComponent } from "./CalendarComponent";

export default {
title: "Component/Calendar",
title: "Calendar",
} as Meta;

export const Default = () => <CalendarComponent />;
Expand Down
2 changes: 1 addition & 1 deletion src/calendar/stories/RangeCalendar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
} from "../RangeCalendarState";

export default {
title: "Component/RangeCalendar",
title: "RangeCalendar",
} as Meta;

const RangeCalendarComp: React.FC<RangeCalendarInitialState> = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/datepicker/stories/DatePicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
import { CalendarComp } from "../../calendar/stories/CalendarComponent";

export default {
title: "Component/DatePicker",
title: "DatePicker",
} as Meta;

const DatePickerComp: React.FC<DatePickerInitialState> = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/datepicker/stories/DateRangePicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
import { stringifyDate } from "../../utils";

export default {
title: "Component/DateRangePicker",
title: "DateRangePicker",
} as Meta;

const RangeCalendarComp: React.FC<RangeCalendarStateReturn> = state => {
Expand Down
2 changes: 1 addition & 1 deletion src/drawer/stories/Drawer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from "../";

export default {
title: "Component/Drawer",
title: "Drawer",
} as Meta;

const backdropStyles = css`
Expand Down
2 changes: 1 addition & 1 deletion src/link/stories/Link.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Meta } from "@storybook/react";
import { Link } from "../Link";

export default {
title: "Component/Link/Reakit",
title: "Link",
} as Meta;

export const Default = () => {
Expand Down
2 changes: 1 addition & 1 deletion src/meter/__examples__/stories/CircularMeter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "../../../progress/stories/storybook-progress-utils";

export default {
title: "Component/Meter/Circular",
title: "Meter Circular",
} as Meta;

const CircularMeter = createCircularExample({
Expand Down
2 changes: 1 addition & 1 deletion src/meter/__examples__/stories/LinearMeter.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { IStyledMeter, StyledMeter as Meter } from "../index";

export default {
component: Meter,
title: "Component/Meter/Linear",
title: "Meter Linear",
} as Meta;

const Base: Story<IStyledMeter> = args => <Meter {...args} />;
Expand Down
2 changes: 1 addition & 1 deletion src/number-input/stories/NumberInput.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const NumberInputComp = (props: UseNumberInputProps) => {
};

export default {
title: "Component/NumberInput",
title: "NumberInput",
component: NumberInput,
} as Meta;

Expand Down
2 changes: 1 addition & 1 deletion src/pagination/stories/Pagination.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { PaginationButton, TGoto } from "../PaginationButton";
import { UsePaginationProps, usePaginationState } from "../PaginationState";

export default {
title: "Component/Pagination",
title: "Pagination",
} as Meta;

const PaginationComp: React.FC<UsePaginationProps> = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/picker-base/stories/BasePicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PickerBase, PickerBaseContent, PickerBaseTrigger } from "../index";
import { PickerBaseInitialState, usePickerBaseState } from "../PickerBaseState";

export default {
title: "Component/PickerBase",
title: "PickerBase",
} as Meta;

const PickerBaseComp: React.FC<PickerBaseInitialState> = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/progress/stories/CircularProgress.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
} from "./storybook-progress-utils";

export default {
title: "Component/Progress/Circular",
title: "Progress Circular",
} as Meta;

const CircularProgress = createCircularExample({
Expand Down
2 changes: 1 addition & 1 deletion src/progress/stories/LinearProgress.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
} from "./storybook-progress-utils";

export default {
title: "Component/Progress/Linear",
title: "Progress Linear",
} as Meta;

const examples = createLinearExamples({
Expand Down
2 changes: 1 addition & 1 deletion src/segment/stories/Segment.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { SegmentField } from "../SegmentField";
import { useSegmentState, SegmentStateProps } from "../SegmentState";

export default {
title: "Component/Segment",
title: "Segment",
} as Meta;

const SegmentSpinnerComp: React.FC<SegmentStateProps> = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/select/stories/Combobox.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import "./style.css";

export default {
title: "Component/Select-Combobox",
title: "Select-Combobox",
} as Meta;

interface Country {
Expand Down
2 changes: 1 addition & 1 deletion src/select/stories/Select.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
import "./style.css";

export default {
title: "Component/Select",
title: "Select",
} as Meta;

const countries = [
Expand Down
2 changes: 1 addition & 1 deletion src/slider/stories/Slider.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
} from "./styles";

export default {
title: "Component/Slider",
title: "Slider",
} as Meta;

const SliderComp: React.FC<any> = props => {
Expand Down
2 changes: 1 addition & 1 deletion src/timepicker/stories/TimePicker.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
} from "../index";

export default {
title: "Component/TimePicker",
title: "TimePicker",
} as Meta;

const CalendarIcon = () => (
Expand Down
2 changes: 1 addition & 1 deletion src/toast/stories/AnimatedToast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Demo, { getTransform } from "./Demo";
import { ToastProvider, TToastWrapper } from "../index";

export default {
title: "Component/Toast/Animated",
title: "Toast Animated",
} as Meta;

const CSSTransitionAnimationWrapper: TToastWrapper = ({
Expand Down
2 changes: 1 addition & 1 deletion src/toast/stories/BasicToast.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Demo from "./Demo";
import { ToastProvider } from "../index";

export default {
title: "Component/Toast/Base",
title: "Toast Base",
} as Meta;

export const Default: React.FC = () => {
Expand Down

0 comments on commit d1336d6

Please sign in to comment.