"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SliderStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const FormConfiguration_1 = require("../../FormConfiguration");
const FormRuntime_1 = require("../../FormRuntime");
const Containers_1 = require("../../Containers");
const SliderFormControl_1 = require("../Web/SliderFormControl");
const StoryData_1 = require("../../../CommonUI/StoryBook/StoryData");
function getUI() {
    let ui = new FormConfiguration_1.FormConfiguration();
    const container = new Containers_1.XStackContainer();
    const slider = new SliderFormControl_1.SliderFormControl();
    container.add(slider);
    ui.add(container);
    return { form: ui, control: slider };
}
exports.SliderStories = [
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form });
    }, "Form Designer", "Controls", "Slider", "Default"),
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        ui.control.label = "With Label";
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form });
    }, "Form Designer", "Controls", "Slider", "With Label"),
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        ui.control.label = "Show Min Max Marks";
        ui.control.showMinMaxValues = true;
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form });
    }, "Form Designer", "Controls", "Slider", "Show Min Max Marks"),
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        ui.control.max = 100;
        ui.control.step = 20;
        ui.control.label = "Step: 20";
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form });
    }, "Form Designer", "Controls", "Slider", "With Step"),
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        ui.control.max = 100;
        ui.control.step = 20;
        ui.control.defaultValue = 20;
        ui.control.label = "Default Value: 20";
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form });
    }, "Form Designer", "Controls", "Slider", "With Default"),
];
//# sourceMappingURL=XSlider-stories.js.map