"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var React = require("react");
var next_1 = require("@fluentui/react-slider/lib-commonjs/next");
var Stack_1 = require("office-ui-fabric-react/lib-commonjs/Stack");
var stackStyles = { root: { maxWidth: 300 } };
var stackTokens = { childrenGap: 20 };
var sliderAriaValueText = function (value) { return value + " percent"; };
var sliderValueFormat = function (value) { return value + "%"; };
exports.SliderBasicExample = function () {
    var _a = React.useState(0), sliderValue = _a[0], setSliderValue = _a[1];
    var sliderOnChange = function (value) { return setSliderValue(value); };
    return (React.createElement(Stack_1.Stack, { tokens: stackTokens, styles: stackStyles },
        React.createElement(next_1.Slider, null),
        React.createElement(next_1.Slider, { label: "Snapping slider example", min: 0, max: 50, step: 10, defaultValue: 20, showValue: true, snapToStep: true }),
        React.createElement(next_1.Slider, { label: "Disabled example", min: 50, max: 500, step: 50, defaultValue: 300, showValue: true, disabled: true }),
        React.createElement(next_1.Slider, { label: "Controlled example", max: 10, value: sliderValue, showValue: true, 
            // eslint-disable-next-line react/jsx-no-bind
            onChange: sliderOnChange }),
        React.createElement(next_1.Slider, { label: "Example with formatted value", max: 100, ariaValueText: sliderAriaValueText, valueFormat: sliderValueFormat, showValue: true }),
        React.createElement(next_1.Slider, { label: "Origin from zero", min: -5, max: 5, step: 1, defaultValue: 2, showValue: true, originFromZero: true })));
};
//# sourceMappingURL=Slider.Basic.Example.js.map