@salesforce/design-system-react
Version:
Salesforce Lightning Design System for React
98 lines (97 loc) • 2.58 kB
JavaScript
import React from 'react';
import { storiesOf } from '@storybook/react';
import { AVATAR } from '../../../utilities/constants';
import Base from '../__examples__/base';
import InverseUserInitials from '../__examples__/inverse-user-initials.jsx';
import UserIcon from '../__examples__/user-icon.jsx';
import UserInitials from '../__examples__/user-initials.jsx';
import EntityIcon from '../__examples__/entity-icon.jsx';
import EntityInitials from '../__examples__/entity-initials.jsx';
/* eslint-disable react/display-name */
storiesOf(AVATAR, module).addDecorator(function (getStory) {
return (
/*#__PURE__*/
React.createElement("div", {
className: "slds-p-around_medium"
}, getStory())
);
}).add('Base', function () {
return (
/*#__PURE__*/
React.createElement("div", null,
/*#__PURE__*/
React.createElement("h1", {
style: {
marginBottom: '10px'
}
}, "Base Avatar"),
/*#__PURE__*/
React.createElement(Base, null))
);
}).add('Entity Icon', function () {
return (
/*#__PURE__*/
React.createElement("div", null,
/*#__PURE__*/
React.createElement("h1", {
style: {
marginBottom: '10px'
}
}, "Entity Icon Avatar"),
/*#__PURE__*/
React.createElement(EntityIcon, null))
);
}).add('Entity Initials', function () {
return (
/*#__PURE__*/
React.createElement("div", null,
/*#__PURE__*/
React.createElement("h1", {
style: {
marginBottom: '10px'
}
}, "Entity Initials Avatar"),
/*#__PURE__*/
React.createElement(EntityInitials, null))
);
}).add('User Icon', function () {
return (
/*#__PURE__*/
React.createElement("div", null,
/*#__PURE__*/
React.createElement("h1", {
style: {
marginBottom: '10px'
}
}, "User Icon Avatar"),
/*#__PURE__*/
React.createElement(UserIcon, null))
);
}).add('User Initials', function () {
return (
/*#__PURE__*/
React.createElement("div", null,
/*#__PURE__*/
React.createElement("h1", {
style: {
marginBottom: '10px'
}
}, "User Initials Avatar"),
/*#__PURE__*/
React.createElement(UserInitials, null))
);
}).add('Inverse User Initials', function () {
return (
/*#__PURE__*/
React.createElement("div", null,
/*#__PURE__*/
React.createElement("h1", {
style: {
marginBottom: '10px'
}
}, "Inversed User Initials Avatar"),
/*#__PURE__*/
React.createElement(InverseUserInitials, null))
);
});
//# sourceMappingURL=storybook-stories.js.map