From 3393f5a9523474b14e868fd1174900bac2c333d7 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Fri, 11 Feb 2022 15:38:16 +0300 Subject: [PATCH 01/13] fix netlify component --- src/NetlifyForm/NetlifyForm.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NetlifyForm/NetlifyForm.js b/src/NetlifyForm/NetlifyForm.js index 197ced2a..f71bb0c7 100644 --- a/src/NetlifyForm/NetlifyForm.js +++ b/src/NetlifyForm/NetlifyForm.js @@ -4,6 +4,8 @@ import { Box, Text, Input } from '@quarkly/widgets'; import { useOverrides } from '@quarkly/components'; import { overrides, propInfo, defaultProps } from './props'; import { useForm, withForm } from '../Form/context'; +import ComponentNotice from '../ComponentNotice'; +import { isEmptyChildren } from '../utils'; const Form = atomize.form(); @@ -66,6 +68,9 @@ const NetlifyForm = ({ formName, successMessage, errorMessage, ...props }) => { defaultValue={formName} /> {children} + {isEmptyChildren(children) && ( + + )} {error && ( {errorMessage} From 5f318a82d67ce60f40560b966856084ce84b27d5 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Fri, 11 Feb 2022 15:45:11 +0300 Subject: [PATCH 02/13] fix MailChimp component --- src/MailChimp/MailChimp.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/MailChimp/MailChimp.js b/src/MailChimp/MailChimp.js index e4115728..6de01b34 100644 --- a/src/MailChimp/MailChimp.js +++ b/src/MailChimp/MailChimp.js @@ -57,7 +57,7 @@ const MailChimp = ({ url, ...props }) => { ); return ( - + {!url ? ( ) : ( @@ -70,7 +70,10 @@ const MailChimp = ({ url, ...props }) => { > {children} {isEmptyChildren(children) && ( - + )} )} From f09ad525a60a2e2ac62b0c92aa94ae78026eb18d Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Fri, 11 Feb 2022 16:39:41 +0300 Subject: [PATCH 03/13] fix BgImageParallax --- src/BgImageParallax.js | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/BgImageParallax.js b/src/BgImageParallax.js index aee53e25..969a697b 100644 --- a/src/BgImageParallax.js +++ b/src/BgImageParallax.js @@ -3,6 +3,7 @@ import React, { useCallback, useMemo, useEffect, useRef } from 'react'; import atomize from '@quarkly/atomize'; import { useOverrides } from '@quarkly/components'; import { Box } from '@quarkly/widgets'; +import ComponentNotice from './ComponentNotice'; const overrides = { Bground: { @@ -132,13 +133,24 @@ const BgImageParallax = ({ }); return ( - + - {children} + + {children} + {!imageURL && ( + + )} + ); }; From 0c8bbd948b269b529917fbaf135324a0d4f1be7f Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Fri, 11 Feb 2022 16:55:59 +0300 Subject: [PATCH 04/13] fix BeforeAfterImage --- src/BeforeAfterImage.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/BeforeAfterImage.js b/src/BeforeAfterImage.js index 0baf825c..ddd46b6f 100644 --- a/src/BeforeAfterImage.js +++ b/src/BeforeAfterImage.js @@ -210,7 +210,11 @@ const BeforeAfterImage = ({ }} > - + - + Date: Fri, 11 Feb 2022 18:03:45 +0300 Subject: [PATCH 05/13] fix Vimeo component --- preview/docs/Vimeo.md | 6 ++++++ src/Vimeo.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/preview/docs/Vimeo.md b/preview/docs/Vimeo.md index db998bfa..5c2bb196 100644 --- a/preview/docs/Vimeo.md +++ b/preview/docs/Vimeo.md @@ -8,6 +8,12 @@ Use this component to add the Vimeo video player. 2. Specify the `Video link or ID` on the Props panel 3. See how it works in the preview mode +### Setting up the video player + +Some video player settings are supported for Plus or PRO accounts. + +Learn more: [Supported Player Parameters](https://help.vimeo.com/hc/en-us/articles/360001494447-Using-Player-Parameters#h_01FNYA7F7GKWE17XDQJPMBC058) + ### Playing in the background If the `Play in the background` prop is enabled, the video will be played in the background. In this case, all the controls are hidden, automatic playback is enabled, and the video loops. diff --git a/src/Vimeo.js b/src/Vimeo.js index 174e47c1..ff69082b 100644 --- a/src/Vimeo.js +++ b/src/Vimeo.js @@ -58,7 +58,7 @@ const VimeoComponent = ({ const dStart = useDebounce(parseFloat(start), 1000); - const key = `vimeo-${video}${muted}${controls}${playBackground}${showByline}${dStart}${autoplay}${showTitle}${responsive}`; + const key = `vimeo-${video}${muted}${controls}${playBackground}${showByline}${dStart}${autoplay}${showPortrait}${showTitle}${responsive}`; return ( Date: Fri, 11 Feb 2022 18:20:07 +0300 Subject: [PATCH 06/13] fix formspree component --- src/Formspree.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Formspree.js b/src/Formspree.js index 62c0e257..da016fbb 100644 --- a/src/Formspree.js +++ b/src/Formspree.js @@ -1,8 +1,10 @@ import React, { useState, useEffect, useCallback } from 'react'; import atomize from '@quarkly/atomize'; -import { Text, Link, Strong } from '@quarkly/widgets'; +import { Text, Strong } from '@quarkly/widgets'; import { useForm, withForm } from './Form/context'; +const AbsoluteLink = atomize.a(); + const NoEndPoint = atomize.div` padding: 16px 32px; border: 2px solid; @@ -86,7 +88,7 @@ const Formspree = (props) => { Create a form on{' '} - { href="https://formspree.io/" > formspree.io - {' '} + {' '} and fill in the endpoint field on the{' '} props panel From 655dd79fd4c30960f81cad8e734a491625adb458 Mon Sep 17 00:00:00 2001 From: Maxim Slipenko Date: Tue, 29 Mar 2022 20:45:40 +0300 Subject: [PATCH 07/13] add Button override --- src/Collapse/Collapse.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Collapse/Collapse.js b/src/Collapse/Collapse.js index f3503196..2b6f5f05 100644 --- a/src/Collapse/Collapse.js +++ b/src/Collapse/Collapse.js @@ -96,6 +96,10 @@ const Collapse = ({ ref.current.addEventListener('transitionend', handle); }, [animFunction, collapsedHeight, destination, duration, handle, mode]); + const buttonOveride = `Button ${ + isOpen !== isCollapsing ? ':open' : ':close' + }`; + return ( -