/**
 * @license
 * Copyright 2022-2026 Matter.js Authors
 * SPDX-License-Identifier: Apache-2.0
 */
import { ElementTag } from "../common/index.js";
import { ValueElement } from "./ValueElement.js";
function FieldElement(definition, ...children) {
  if (definition.title === void 0 && definition.description && definition.name.match(/^[A-Z_]+$/)) {
    definition.title = definition.description;
    delete definition.description;
  }
  return ValueElement(FieldElement.Tag, definition, children);
}
((FieldElement2) => {
  FieldElement2.Tag = ElementTag.Field;
})(FieldElement || (FieldElement = {}));
export {
  FieldElement
};
//# sourceMappingURL=FieldElement.js.map
