"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TilesListPage = void 0;
var tslib_1 = require("tslib");
var React = require("react");
var Link_1 = require("@fluentui/react/lib-commonjs/Link");
var Checkbox_1 = require("@fluentui/react/lib-commonjs/Checkbox");
var react_docsite_components_1 = require("@fluentui/react-docsite-components");
var TilesList_Basic_Example_1 = require("./TilesList.Basic.Example");
var TilesListBasicExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-experiments/TilesList/TilesList.Basic.Example.tsx');
var TilesList_Document_Example_1 = require("./TilesList.Document.Example");
var TilesListDocumentExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-experiments/TilesList/TilesList.Document.Example.tsx');
var TilesList_Media_Example_1 = require("./TilesList.Media.Example");
var TilesListMediaExampleCode = require('!raw-loader?esModule=false!@fluentui/react-examples/src/react-experiments/TilesList/TilesList.Media.Example.tsx');
var TilesListPage = /** @class */ (function (_super) {
    tslib_1.__extends(TilesListPage, _super);
    function TilesListPage(props) {
        var _this = _super.call(this, props) || this;
        _this._onIsLargeChanged = function (event, checked) {
            _this.setState({
                size: checked ? 'large' : 'small',
            });
        };
        _this.state = {
            size: 'large',
        };
        return _this;
    }
    TilesListPage.prototype.render = function () {
        var size = this.state.size;
        return (React.createElement(react_docsite_components_1.ComponentPage, { title: "TilesList", componentName: "TilesListExample", exampleCards: React.createElement("div", null,
                React.createElement(react_docsite_components_1.ExampleCard, { title: "TilesList with basic tiles", isOptIn: true, code: TilesListBasicExampleCode },
                    React.createElement(TilesList_Basic_Example_1.TilesListBasicExample, null)),
                React.createElement(react_docsite_components_1.ExampleCard, { title: "TilesList with document tiles and placeholders when data is missing", isOptIn: true, code: TilesListDocumentExampleCode },
                    React.createElement(Checkbox_1.Checkbox, { label: "Use large tiles", checked: size === 'large', onChange: this._onIsLargeChanged }),
                    React.createElement(TilesList_Document_Example_1.TilesListDocumentExample, { tileSize: size })),
                React.createElement(react_docsite_components_1.ExampleCard, { title: "TilesList with media tiles", isOptIn: true, code: TilesListMediaExampleCode },
                    React.createElement(TilesList_Media_Example_1.TilesListMediaExample, null))), propertiesTables: React.createElement(react_docsite_components_1.PropertiesTableSet, { sources: [
                    require('!raw-loader?esModule=false!@fluentui/react-experiments/src/components/TilesList/TilesList.types.ts'),
                ] }), overview: React.createElement("div", null,
                React.createElement("p", null,
                    React.createElement("code", null, "TilesList"),
                    " is a specialization of the",
                    ' ',
                    React.createElement(Link_1.Link, { href: "#/examples/List", underline: true },
                        React.createElement("code", null, "List")),
                    ' ',
                    "component. It is intended to represent items visually using one or more content-focused flowing grids."),
                React.createElement("p", null,
                    React.createElement("code", null, "TilesList"),
                    " is designed to be used in conjunction with the ",
                    React.createElement("code", null, "Tile"),
                    " component.",
                    ' ',
                    React.createElement("code", null, "Tile"),
                    " provides a standardized form for a focusable and selectable content item.")), dos: React.createElement("div", null,
                React.createElement("ul", null,
                    React.createElement("li", null, "Use them to represent a large collection of items visually."))), donts: React.createElement("div", null,
                React.createElement("ul", null,
                    React.createElement("li", null, "Use them for general layout of components that are not part of the same set."))), isHeaderVisible: this.props.isHeaderVisible }));
    };
    return TilesListPage;
}(React.Component));
exports.TilesListPage = TilesListPage;
//# sourceMappingURL=TilesListPage.js.map