/* do not change this file, it is auto generated by storybook. */

import {
  configure,
  addDecorator,
  addParameters,
  addArgsEnhancer,
} from "@storybook/react-native";

import "@storybook/addon-ondevice-notes/register";
import "@storybook/addon-ondevice-controls/register";
import "@storybook/addon-ondevice-backgrounds/register";
import "@storybook/addon-ondevice-actions/register";

import { argsEnhancers } from "@storybook/addon-actions/dist/modern/preset/addArgs";

import { decorators, parameters } from "./preview";

if (decorators) {
  decorators.forEach((decorator) => addDecorator(decorator));
}

if (parameters) {
  addParameters(parameters);
}

// temporary fix for https://github.com/storybookjs/react-native/issues/327 whilst the issue is investigated
try {
  argsEnhancers.forEach((enhancer) => addArgsEnhancer(enhancer));
} catch {}

const getStories = () => {
  return [
    require("../src/stories/native/atoms/Buttons/ButtonBack.stories.tsx"),
    require("../src/stories/native/atoms/Buttons/ButtonDefault.stories.tsx"),
    require("../src/stories/native/atoms/Buttons/ButtonGhost.stories.tsx"),
    require("../src/stories/native/atoms/Buttons/ButtonIcon.stories.tsx"),
    require("../src/stories/native/atoms/Buttons/ButtonOutline.stories.tsx"),
    require("../src/stories/native/atoms/CardContainer/CardContainerHorizontal.stories.tsx"),
    require("../src/stories/native/atoms/Checkbox/Checkbox.stories.tsx"),
    require("../src/stories/native/atoms/CountDown/CountDown.stories.tsx"),
    require("../src/stories/native/atoms/CountryPicker/CountryPicker.stories.tsx"),
    require("../src/stories/native/atoms/Divider/Divider.stories.tsx"),
    require("../src/stories/native/atoms/Icon/Icon.stories.tsx"),
    require("../src/stories/native/atoms/Image/Image.stories.tsx"),
    require("../src/stories/native/atoms/Input/InputDate.stories.tsx"),
    require("../src/stories/native/atoms/Input/InputEmail.stories.tsx"),
    require("../src/stories/native/atoms/Input/inputNumber.stories.tsx"),
    require("../src/stories/native/atoms/Input/InputPassword.stories.tsx"),
    require("../src/stories/native/atoms/Input/inputPhone.stories.tsx"),
    require("../src/stories/native/atoms/Input/InputText.stories.tsx"),
    require("../src/stories/native/atoms/Link/Link.stories.tsx"),
    require("../src/stories/native/atoms/Loading/Loading.stories.tsx"),
    require("../src/stories/native/atoms/Logo/Logo.stories.tsx"),
    require("../src/stories/native/atoms/ProgressBar/ProgressBar.stories.tsx"),
    require("../src/stories/native/atoms/Radio/Radio.stories.tsx"),
    require("../src/stories/native/atoms/Select/Select.stories.tsx"),
    require("../src/stories/native/atoms/Tag/Tag.stories.tsx"),
    require("../src/stories/native/atoms/Toggle/Toggle.stories.tsx"),
    require("../src/stories/native/atoms/Tooltip/Tooltip.stories.tsx"),
    require("../src/stories/native/atoms/Tooltip/TooltipCustomIcon.stories.tsx"),
    require("../src/stories/native/atoms/Tooltip/TooltipCustomIconText.stories.tsx"),
    require("../src/stories/native/atoms/Typography/Body/Body.stories.tsx"),
    require("../src/stories/native/atoms/Typography/Caption/Caption.stories.tsx"),
    require("../src/stories/native/atoms/Typography/Display/Display.stories.tsx"),
    require("../src/stories/native/atoms/Typography/Headline/Headline.stories.tsx"),
    require("../src/stories/native/atoms/Typography/Overline/Overline.stories.tsx"),
    require("../src/stories/native/atoms/Typography/Subtitle/Subtitle.stories.tsx"),
    require("../src/stories/native/atoms/Typography/Truncate/Truncate.stories.tsx"),
    require("../src/stories/native/atoms/WebView/WebView.stories.tsx"),
    require("../src/stories/native/molecules/Accordion/Accordion.stories.tsx"),
    require("../src/stories/native/molecules/Banner/Banner.stories.tsx"),
    require("../src/stories/native/molecules/BannerBackground/BannerBackground.stories.tsx"),
    require("../src/stories/native/molecules/ButtonBadge/ButtonBadge.stories.tsx"),
    require("../src/stories/native/molecules/ButtonGroup/ButtonGroup.stories.tsx"),
    require("../src/stories/native/molecules/EmptyData/EmptyData.stories.tsx"),
    require("../src/stories/native/molecules/HistoryCard/HistoryCard.stories.tsx"),
    require("../src/stories/native/molecules/ImageWithText/ImageWithText.stories.tsx"),
    require("../src/stories/native/molecules/Input/Input.stories.tsx"),
    require("../src/stories/native/molecules/InputCopy/InputCopy.stories.tsx"),
    require("../src/stories/native/molecules/PreviewFile/PreviewFile.stories.tsx"),
    require("../src/stories/native/molecules/QuantityPick/QuantityPick.stories.tsx"),
    require("../src/stories/native/molecules/Select/Select.stories.tsx"),
    require("../src/stories/native/molecules/TabMenu/TabMenu.stories.tsx"),
    require("../src/stories/native/organisms/AgeGate/AgeGate.stories.tsx"),
    require("../src/stories/native/organisms/AlertMessage/AlertMessage.stories.tsx"),
    require("../src/stories/native/organisms/BadgesCard/BadgesCard.stories.tsx"),
    require("../src/stories/native/organisms/CardButton/CardButton.stories.tsx"),
    require("../src/stories/native/organisms/CardChallenge/CardChallenge.stories.tsx"),
    require("../src/stories/native/organisms/CardClickable/CardClickable.stories.tsx"),
    require("../src/stories/native/organisms/ChallengeProgress/ChallengeProgress.stories.tsx"),
    require("../src/stories/native/organisms/FilterAccordion.stories.tsx"),
    require("../src/stories/native/organisms/Footer.stories.tsx"),
    require("../src/stories/native/organisms/GlobalHeader.stories.tsx"),
    require("../src/stories/native/organisms/HamburguerMenu.stories.tsx"),
    require("../src/stories/native/organisms/InviteFriend/InviteFriend.stories.tsx"),
    require("../src/stories/native/organisms/List/ListBadgesCard.stories.tsx"),
    require("../src/stories/native/organisms/List/ListBanner.stories.tsx"),
    require("../src/stories/native/organisms/List/ListButton.stories.tsx"),
    require("../src/stories/native/organisms/List/ListClickeableCard.stories.tsx"),
    require("../src/stories/native/organisms/List/ListFilterCategory.stories.tsx"),
    require("../src/stories/native/organisms/List/ListEmpty.stories.tsx"),
    require("../src/stories/native/organisms/List/ListHistoryCard.stories.tsx"),
    require("../src/stories/native/organisms/List/ListImage.stories.tsx"),
    require("../src/stories/native/organisms/Promocode/PromoCode.stories.tsx"),
    require("../src/stories/native/organisms/PromoQR/PromoQR.stories.tsx"),
    require("../src/stories/native/organisms/ReadReferralCode/ReadReferralCode.stories.tsx"),
    require("../src/stories/native/organisms/ScanTicket.stories.tsx"),
    require("../src/stories/native/organisms/Slideshow/Slideshow.stories.tsx"),
    require("../src/stories/native/organisms/Slideshow/SlideshowNoArrows.stories.tsx"),
    require("../src/stories/native/organisms/Slideshow/SlideshowNoAutoplay.stories.tsx"),
    require("../src/stories/native/organisms/Slideshow/SlideshowNoDots.stories.tsx"),
    require("../src/stories/native/organisms/TierLevel.stories.tsx"),
  ];
};

configure(getStories, module, false);
