@uifabric/experiments
Version:
Experimental React components for building experiences for Office 365.
32 lines • 2.59 kB
JavaScript
define(["require", "exports", "tslib", "react", "@uifabric/example-app-base", "./examples/FluentTheme.Basic.Example"], function (require, exports, tslib_1, React, example_app_base_1, FluentTheme_Basic_Example_1) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var FluentThemeBasicExampleCode = require('!raw-loader!./examples/FluentTheme.Basic.Example.tsx');
var FluentThemePage = /** @class */ (function (_super) {
tslib_1.__extends(FluentThemePage, _super);
function FluentThemePage() {
return _super !== null && _super.apply(this, arguments) || this;
}
FluentThemePage.prototype.render = function () {
return (React.createElement(example_app_base_1.ComponentPage, { title: "Fluent Color Theme", componentName: "FluentTheme", overview: React.createElement("div", null,
React.createElement("p", null,
"We're updating Fabric to use new colors from the ",
React.createElement("a", { href: "https://fluent.microsoft.com/" }, "Fluent Design System"),
". Before these colors become the defaults, this theme is provided as a way to preview how the color changes will affect your app."),
React.createElement("p", null,
"For components that have been converted to",
' ',
React.createElement("a", { href: "https://github.com/OfficeDev/office-ui-fabric-react/wiki/mergeStyles" }, "mergeStyles"),
", the Customizer component can be used to apply the theme. See the examples below. For all other components (including your app's custom components), use the",
' ',
React.createElement("a", { href: "https://github.com/OfficeDev/office-ui-fabric-react/blob/master/packages/styling/src/styles/theme.ts#L80" }, "loadTheme()"),
' ',
"function.")), isHeaderVisible: this.props.isHeaderVisible, exampleCards: React.createElement("div", null,
React.createElement(example_app_base_1.ExampleCard, { title: "Using Customizer to theme components", code: FluentThemeBasicExampleCode },
React.createElement(FluentTheme_Basic_Example_1.FluentThemeBasicExample, null))) }));
};
return FluentThemePage;
}(React.Component));
exports.FluentThemePage = FluentThemePage;
});
//# sourceMappingURL=FluentThemePage.js.map