"use strict";

exports.__esModule = true;
exports.CaptionType = void 0;

var _base = require("@sentecacommerce-theme/base");

var schema = {
  title: _base.FieldTypeFactory.text(),
  subtitle: _base.FieldTypeFactory.html(),
  align: _base.FieldTypeFactory.text({
    required: false,
    defaultValue: 'center'
  }),
  withGreyBox: _base.FieldTypeFactory["boolean"]({
    required: false,
    defaultValue: false
  }),
  subtitleBottom: _base.FieldTypeFactory["boolean"]({
    required: false,
    defaultValue: false
  }),
  small: _base.FieldTypeFactory["boolean"]({
    required: false,
    defaultValue: false
  }),
  ctas: _base.FieldTypeFactory.list({
    required: false,
    of: {
      link: _base.FieldTypeFactory.text(),
      label: _base.FieldTypeFactory.text(),
      variant: _base.FieldTypeFactory.text({
        required: false
      }),
      target: _base.FieldTypeFactory.text({
        required: false
      })
    }
  })
};

var CaptionType = _base.ComponentTypeFactory.create('Caption', schema);

exports.CaptionType = CaptionType;
//# sourceMappingURL=caption.type.js.map