From f5df12bdf270fe7d9d262d4d0645caf19b3e82bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malin=20Kytt=C3=A4?= Date: Thu, 4 Apr 2024 11:40:28 +0000 Subject: [PATCH] chore: hero typings --- source/php/Component/Hero/hero.json | 32 +++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/source/php/Component/Hero/hero.json b/source/php/Component/Hero/hero.json index b84ec3da..8424ac32 100644 --- a/source/php/Component/Hero/hero.json +++ b/source/php/Component/Hero/hero.json @@ -23,7 +23,8 @@ "contentApplyRoundedCorners": true, "contentApplyShadows": true, "buttonArgs": [], - "poster": false + "poster": false, + "overlay": "" }, "description": { "image": "Background image", @@ -48,7 +49,34 @@ "contentApplyRoundedCorners": "Apply rounded corners to content if contentBackgroundColor is set.", "contentApplyShadows": "Apply shadows to content if contentBackgroundColor is set.", "buttonArgs": "Add a @button by passing @button component arguments. If button is treated as a link, all te text elements in the content gets wrapped with this link.", - "poster": "Poster image for the video" + "poster": "Poster image for the video", + "overlay": "Add an overlay over an image to make text more legible" + }, + "types": { + "image": "string", + "imageFocus": "object", + "video": "string", + "size": "string", + "title": "string", + "byline": "string", + "paragraph": "string", + "stretch": "boolean", + "animation": "string", + "ariaLabel": "string", + "heroView": "string", + "customHeroData": "array", + "meta": "string", + "background": "string", + "textColor": "string", + "textAlignment": "string", + "contentBackgroundColor": "string", + "contentAlignmentVertical": "string", + "contentAlignmentHorizontal": "string", + "contentApplyRoundedCorners": "boolean", + "contentApplyShadows": "boolean", + "buttonArgs": "array", + "poster": "boolean", + "overlay": "string" }, "view": "hero.blade.php", "dependency": {