"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ShimmerBasicExample = void 0;
var React = require("react");
var Shimmer_1 = require("@fluentui/react/lib-commonjs/Shimmer");
var Fabric_1 = require("@fluentui/react/lib-commonjs/Fabric");
var Styling_1 = require("@fluentui/react/lib-commonjs/Styling");
var wrapperClass = Styling_1.mergeStyles({
    padding: 2,
    selectors: {
        '& > .ms-Shimmer-container': {
            margin: '10px 0',
        },
    },
});
var shimmerWithElementFirstRow = [
    { type: Shimmer_1.ShimmerElementType.circle },
    { type: Shimmer_1.ShimmerElementType.gap, width: '2%' },
    { type: Shimmer_1.ShimmerElementType.line },
];
var shimmerWithElementSecondRow = [
    { type: Shimmer_1.ShimmerElementType.circle, height: 24 },
    { type: Shimmer_1.ShimmerElementType.gap, width: '2%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 16, width: '20%' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '5%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 16, width: '20%' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '10%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 16, width: '15%' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '10%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 16 },
];
var shimmerWithElementThirdRow = [
    { type: Shimmer_1.ShimmerElementType.circle, height: 24 },
    { type: Shimmer_1.ShimmerElementType.gap, width: '2%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 16, width: '20%' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '5%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 16, width: '20%' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '10%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 16, width: '15%' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '10%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 16 },
];
var shimmerVerticalElement = [
    { type: Shimmer_1.ShimmerElementType.circle },
    { type: Shimmer_1.ShimmerElementType.gap, width: '2%' },
    { type: Shimmer_1.ShimmerElementType.circle, height: 15, verticalAlign: 'top' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '2%' },
    { type: Shimmer_1.ShimmerElementType.line, verticalAlign: 'bottom', width: '20%' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '2%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 5, verticalAlign: 'top', width: '20%' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '2%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 16, width: '15%' },
    { type: Shimmer_1.ShimmerElementType.gap, width: '2%' },
    { type: Shimmer_1.ShimmerElementType.line, height: 10, verticalAlign: 'bottom' },
];
var ShimmerBasicExample = function () {
    return (React.createElement(Fabric_1.Fabric, { className: wrapperClass },
        "Basic Shimmer with no elements provided. It defaults to a line of 16px height.",
        React.createElement(Shimmer_1.Shimmer, null),
        React.createElement(Shimmer_1.Shimmer, { width: "75%" }),
        React.createElement(Shimmer_1.Shimmer, { width: "50%" }),
        "Basic Shimmer with elements provided.",
        React.createElement(Shimmer_1.Shimmer, { shimmerElements: shimmerWithElementFirstRow }),
        React.createElement(Shimmer_1.Shimmer, { shimmerElements: shimmerWithElementSecondRow }),
        React.createElement(Shimmer_1.Shimmer, { width: "70%", shimmerElements: shimmerWithElementThirdRow }),
        "Variations of vertical alignment for Circles and Lines.",
        React.createElement(Shimmer_1.Shimmer, { shimmerElements: shimmerVerticalElement })));
};
exports.ShimmerBasicExample = ShimmerBasicExample;
//# sourceMappingURL=Shimmer.Basic.Example.js.map