import { AnimatableProps, BlockBaseProps, BlockHeaderProps, } from "../../gravity-blocks/schema/validators/common.js";
import { filteredArray } from "../../gravity-blocks/schema/validators/utils.js";
import { Media } from "../Media/schema.js";
export const PromoFeaturesItem = {
    additionalProperties: false,
    required: ['title', 'text'],
    properties: {
        title: {
            type: 'string',
            contentType: 'text',
        },
        text: {
            type: 'string',
            contentType: 'yfm',
            inputType: 'textarea',
        },
        theme: {
            enum: ['accent', 'accent-light', 'primary'],
        },
        media: Media,
    },
};
export const PromoFeaturesBlock = {
    'promo-features-block': {
        additionalProperties: false,
        required: ['items'],
        properties: {
            ...BlockBaseProps,
            ...AnimatableProps,
            ...BlockHeaderProps,
            theme: {
                enum: ['grey', 'default'],
            },
            items: filteredArray(PromoFeaturesItem),
        },
    },
};
//# sourceMappingURL=schema.js.map
