"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SwitchStories = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const FormConfiguration_1 = require("../../FormConfiguration");
const FormRuntime_1 = require("../../FormRuntime");
const SwitchFormControl_1 = require("../Web/SwitchFormControl");
const Containers_1 = require("../../Containers");
const StoryData_1 = require("../../../CommonUI/StoryBook/StoryData");
function getUI() {
    let ui = new FormConfiguration_1.FormConfiguration();
    let container = new Containers_1.XStackContainer();
    ui.add(container);
    let switchField = new SwitchFormControl_1.SwitchFormControl();
    switchField.label = "Switch Field Label";
    switchField.valueName = "value";
    switchField.requiredOnAllOutcomes = false;
    container.add(switchField);
    return { form: ui, control: switchField };
}
exports.SwitchStories = [
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form });
    }, "Form Designer", "Controls", "Switch", "Default"),
    new StoryData_1.StoryNode(() => {
        let ui = getUI();
        ui.control.label = "Default As True";
        ui.control.defaultValue = true;
        return (0, jsx_runtime_1.jsx)(FormRuntime_1.FormRuntime, { form: ui.form });
    }, "Form Designer", "Controls", "Switch", "Default Value As True"),
];
//# sourceMappingURL=XSwitch-stories.js.map