"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var experiments_1 = require("@uifabric/experiments");
var office_ui_fabric_react_1 = require("office-ui-fabric-react");
var stackTokens = { childrenGap: 30 };
/* eslint-disable react/jsx-no-bind */
var SliderExample = /** @class */ (function (_super) {
    tslib_1.__extends(SliderExample, _super);
    function SliderExample() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.state = { value: 0 };
        return _this;
    }
    SliderExample.prototype.render = function () {
        var _this = this;
        var marks = [
            {
                value: 0,
                label: '0°C',
            },
            {
                value: 30,
                label: '30°C',
            },
            {
                value: 80,
                label: '80°C',
            },
            {
                value: 100,
                label: '100°C',
            },
        ];
        return (React.createElement(office_ui_fabric_react_1.Stack, { tokens: stackTokens, styles: { root: { maxWidth: 300 } } },
            React.createElement(experiments_1.Slider, { label: "Basic example", min: 1, max: 5, step: 1, defaultValue: 2, showValue: true, onChange: function (value) { return console.log(value); } }),
            React.createElement(experiments_1.Slider, { label: "Snapping slider example", min: 0, max: 50, step: 10, defaultValue: 20, showValue: true, onChange: function (value) { return console.log(value); }, snapToStep: true }),
            React.createElement(experiments_1.Slider, { label: "Marks example", min: 0, max: 100, step: 10, defaultValue: 20, showValue: true, onChange: function (value) { return console.log(value); }, showThumbTooltip: true, marks: marks }),
            React.createElement(experiments_1.Slider, { label: "Disabled example", min: 50, max: 500, step: 50, defaultValue: 300, showValue: true, disabled: true }),
            React.createElement(experiments_1.Slider, { label: "Controlled example", max: 10, value: this.state.value, onChange: function (value) { return _this.setState({ value: value }); }, showValue: true }),
            React.createElement(experiments_1.Slider, { label: "Example with formatted value", max: 100, valueFormat: function (value) { return value + "%"; }, showValue: true }),
            React.createElement(experiments_1.Slider, { label: "Origin from zero", min: -5, max: 5, step: 1, defaultValue: 2, showValue: true, originFromZero: true })));
    };
    return SliderExample;
}(React.Component));
exports.SliderExample = SliderExample;
//# sourceMappingURL=Slider.Example.js.map