UNPKG

@wordpress/block-library

Version:
58 lines (57 loc) 1.6 kB
// packages/block-library/src/form-submission-notification/variations.js import { __ } from "@wordpress/i18n"; var variations = [ { name: "form-submission-success", title: __("Form Submission Success"), description: __("Success message for form submissions."), attributes: { type: "success" }, isDefault: true, innerBlocks: [ [ "core/paragraph", { content: __("Your form has been submitted successfully."), backgroundColor: "#00D084", textColor: "#000000", style: { elements: { link: { color: { text: "#000000" } } } } } ] ], scope: ["inserter", "transform"], isActive: (blockAttributes) => !blockAttributes?.type || blockAttributes?.type === "success" }, { name: "form-submission-error", title: __("Form Submission Error"), description: __("Error/failure message for form submissions."), attributes: { type: "error" }, isDefault: false, innerBlocks: [ [ "core/paragraph", { content: __("There was an error submitting your form."), backgroundColor: "#CF2E2E", textColor: "#FFFFFF", style: { elements: { link: { color: { text: "#FFFFFF" } } } } } ] ], scope: ["inserter", "transform"], isActive: (blockAttributes) => !blockAttributes?.type || blockAttributes?.type === "error" } ]; var variations_default = variations; export { variations_default as default }; //# sourceMappingURL=variations.js.map