@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
32 lines • 2.57 kB
JavaScript
define(["require", "exports", "tslib", "react", "office-ui-fabric-react", "@uifabric/experiments/lib/common/TestImages", "../Persona"], function (require, exports, tslib_1, React, office_ui_fabric_react_1, TestImages_1, Persona_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var sectionGap = 32;
var headingGap = 16;
var personaCoinGap = 12;
var PersonaExample = /** @class */ (function (_super) {
tslib_1.__extends(PersonaExample, _super);
function PersonaExample() {
return _super !== null && _super.apply(this, arguments) || this;
}
PersonaExample.prototype.render = function () {
return (React.createElement(office_ui_fabric_react_1.Stack, { gap: sectionGap },
React.createElement(office_ui_fabric_react_1.Stack, { gap: headingGap, padding: 8 },
React.createElement(office_ui_fabric_react_1.Stack, { gap: personaCoinGap },
React.createElement(office_ui_fabric_react_1.Text, null, "Basic Usage"),
React.createElement(office_ui_fabric_react_1.Stack, { gap: personaCoinGap },
React.createElement(Persona_1.Persona, { text: "Sukhnam Chander", secondaryText: "Principal Program manager" }),
React.createElement(Persona_1.Persona, { text: "Kevin Jameson", secondaryText: "Professional traveller" }),
React.createElement(Persona_1.Persona, { text: "\u738B\u529B", secondaryText: "Principal Program manager" }))),
React.createElement(office_ui_fabric_react_1.Stack, { gap: personaCoinGap },
React.createElement(office_ui_fabric_react_1.Text, null, "When passing coinProps"),
React.createElement(office_ui_fabric_react_1.Stack, { gap: personaCoinGap },
React.createElement(Persona_1.Persona, { text: "Eline Page", secondaryText: "eSports commentator", coin: { presence: 4 } }),
React.createElement(Persona_1.Persona, { text: "\u8D75\u4E3D\u9896", coin: { imageUrl: TestImages_1.PersonaTestImages.personFemale } }),
React.createElement(Persona_1.Persona, { text: "Kevin Jameson", coin: { imageUrl: TestImages_1.PersonaTestImages.personMale } }))))));
};
return PersonaExample;
}(React.Component));
exports.PersonaExample = PersonaExample;
});
//# sourceMappingURL=Persona.Example.js.map