@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
62 lines (61 loc) • 1.72 kB
JavaScript
import React from 'react';
import { storiesOf } from '@storybook/react';
import { ALERT } from '../../../utilities/constants';
import Info from '../__examples__/info';
import Warning from '../__examples__/warning';
import ErrorAlert from '../__examples__/error';
import Offline from '../__examples__/offline';
import Dismissable from '../__examples__/dismissable';
import CloseAlert from '../__examples__/close-alert';
import CustomClassNames from '../__examples__/custom-class-name';
import CustomStyles from '../__examples__/custom-style';
/* eslint-disable react/display-name */
storiesOf(ALERT, module).addDecorator(function (getStory) {
return (
/*#__PURE__*/
React.createElement("div", {
className: "slds-p-around_medium slds-p-top_xx-large"
}, getStory())
);
}).add('Info', function () {
return (
/*#__PURE__*/
React.createElement(Info, null)
);
}).add('Warning', function () {
return (
/*#__PURE__*/
React.createElement(Warning, null)
);
}).add('Error', function () {
return (
/*#__PURE__*/
React.createElement(ErrorAlert, null)
);
}).add('Offline', function () {
return (
/*#__PURE__*/
React.createElement(Offline, null)
);
}).add('Dismissable', function () {
return (
/*#__PURE__*/
React.createElement(Dismissable, null)
);
}).add('Close alert', function () {
return (
/*#__PURE__*/
React.createElement(CloseAlert, null)
);
}).add('Custom Class Names', function () {
return (
/*#__PURE__*/
React.createElement(CustomClassNames, null)
);
}).add('Custom Styles', function () {
return (
/*#__PURE__*/
React.createElement(CustomStyles, null)
);
});
//# sourceMappingURL=storybook-stories.js.map