"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SliderRangedExample = void 0;
var React = require("react");
var react_1 = require("@fluentui/react");
var stackStyles = { root: { maxWidth: 300 } };
var stackTokens = { childrenGap: 20 };
var sliderAriaValueText = function (value) { return value + " percent"; };
var sliderValueFormat = function (value) { return value + "%"; };
var SliderRangedExample = function () {
    var _a = React.useState(0), sliderValue = _a[0], setSliderValue = _a[1];
    var _b = React.useState(0), sliderLowerValue = _b[0], setSliderLowerValue = _b[1];
    var onChange = function (_, range) {
        setSliderLowerValue(range[0]);
        setSliderValue(range[1]);
    };
    return (React.createElement(React.Fragment, null,
        React.createElement(react_1.Stack, { tokens: stackTokens, styles: stackStyles },
            React.createElement(react_1.Slider, { ranged: true, label: "Range slider", min: 0, max: 10, defaultValue: 8, defaultLowerValue: 2 }),
            React.createElement(react_1.Slider, { label: "Disabled example", min: 50, max: 500, step: 50, defaultValue: 300, showValue: true, disabled: true, ranged: true }),
            React.createElement(react_1.Slider, { label: "Controlled example", max: 10, ranged: true, value: sliderValue, lowerValue: sliderLowerValue, showValue: true, 
                // eslint-disable-next-line react/jsx-no-bind
                onChange: onChange }),
            React.createElement(react_1.Slider, { label: "Example with formatted value", max: 100, ariaValueText: sliderAriaValueText, valueFormat: sliderValueFormat, ranged: true, showValue: true }),
            React.createElement(react_1.Slider, { label: "Origin from zero", min: -5, max: 5, step: 1, defaultValue: 2, showValue: true, originFromZero: true, ranged: true })),
        React.createElement(react_1.Stack, { horizontal: true, tokens: stackTokens, styles: { root: { height: 200 } } },
            React.createElement(react_1.Slider // prettier-ignore
            , { label: "Range slider vertical", ranged: true, min: 1, max: 5, step: 1, defaultValue: 2, showValue: true, vertical: true }))));
};
exports.SliderRangedExample = SliderRangedExample;
//# sourceMappingURL=Slider.Ranged.Example.js.map