text: import { configure } from '@storybook/react';
  import { setOptions } from '@storybook/addon-options';
  import './stories.scss';
  import { version } from '../../package.json';
  
  function loadStories() {
    if (global.self === global.top) {
      require('./e2e-styles.scss');
    }
  
    const req = require.context('../../src', true, /\.e2eStory\.js$/);
    req.keys().forEach(filename => req(filename));
  }
  
  configure(loadStories, module);
  
  setOptions({
    showAddonPanel: false,
    name: `wix-style-react v${version}`,
    url: 'https://github.com/wix/wix-style-react',
    sidebarAnimations: false,
    showDownPanel: false,
  });
  