"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BooleanPropertyEditor = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const PropertyEditorBoolean_1 = require("./PropertyEditorBoolean");
const ObserveState_1 = require("../StateManagement/ObserveState");
const StateManager_1 = require("@appglue/common/dist/Common/StateManager");
const StoryData_1 = require("../StoryBook/StoryData");
class TextData {
    editObject = {};
    hint = "hint";
    label = "Boolean Editor";
    parentDefaultValue = null;
    propertyName = "textValue";
    requiredText = "required text";
    updateCallback = () => {
        StateManager_1.StateManager.changed(this);
    };
}
exports.BooleanPropertyEditor = [
    new StoryData_1.StoryNode(() => {
        let args = new TextData();
        return (0, jsx_runtime_1.jsx)(ObserveState_1.ObserveState, { listenTo: args, control: () => (0, jsx_runtime_1.jsx)(PropertyEditorBoolean_1.PropertyEditorBoolean, { ...args }) });
    }, "Shared", "Property Editors", "Boolean"),
];
//# sourceMappingURL=PropertyEditorBoolean-stories.js.map