@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
40 lines • 1.12 kB
JavaScript
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { PILL } from '../../../utilities/constants';
import IconSettings from '../../icon-settings';
import BaseExample from '../__examples__/base';
import IconExample from '../__examples__/icon';
import Snapshot from '../__examples__/snapshot';
storiesOf(PILL, module).addDecorator(function (getStory) {
return (
/*#__PURE__*/
React.createElement("div", {
className: "slds-p-around_medium"
},
/*#__PURE__*/
React.createElement(IconSettings, {
iconPath: "/assets/icons"
}, getStory()))
);
}).add('Linked, Unlinked, Truncated', function () {
return (
/*#__PURE__*/
React.createElement(BaseExample, {
action: action
})
);
}).add('Icon, Avatar, Error', function () {
return (
/*#__PURE__*/
React.createElement(IconExample, {
action: action
})
);
}).add('Docs site Snapshot', function () {
return (
/*#__PURE__*/
React.createElement(Snapshot, null)
);
});
//# sourceMappingURL=storybook-stories.js.map