Sha256: 93d8703040d33b450db8178327bc5821e5422cbb8d04e6cdff0fe34f29f79517

Contents?: true

Size: 636 Bytes

Versions: 14

Compression:

Stored size: 636 Bytes

Contents

import { keys } from 'lodash';

import { storiesOf } from '@storybook/react';

import * as basicComponents from "./basic";
import * as formComponents from "./form";
import * as complexComponents from "./complex";

const addStories = function(stories) {
  let newStories = storiesOf(stories.title, module);
  keys(stories.components).forEach(function (key) {
    stories.components[key](newStories)
  })
};

addStories({
  title: 'Form Components',
  components: formComponents
})

addStories({
  title: 'Basic Components',
  components: basicComponents
})

addStories({
  title: 'Complex Components',
  components: complexComponents
})

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
playbook_ui-2.9.0 stories/index.js
playbook_ui-2.8.9 stories/index.js
playbook_ui-2.8.8 stories/index.js
playbook_ui-2.8.7 stories/index.js
playbook_ui-2.8.6 stories/index.js
playbook_ui-2.8.5 stories/index.js
playbook_ui-2.8.4 stories/index.js
playbook_ui-2.8.3 stories/index.js
playbook_ui-2.8.1 stories/index.js
playbook_ui-2.7.2 stories/index.js
playbook_ui-2.7.1 stories/index.js
playbook_ui-2.7.0 stories/index.js
playbook_ui-2.6.0 stories/index.js
playbook_ui-2.5.0 stories/index.js