@prosistemas/sca-web-kit 2.1.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
export default function NewsletterStrip({ buttonLabel, onButtonClick, onFormSubmit, buttonLoading, buttonDisabled, }: {
|
|
1
|
+
export default function NewsletterStrip({ buttonLabel, onButtonClick, onFormSubmit, buttonLoading, buttonDisabled, emailValue, emailOnChange, nameValue, nameOnChange, }: {
|
|
2
2
|
buttonLabel?: string;
|
|
3
3
|
onButtonClick?: () => void;
|
|
4
4
|
onFormSubmit?: (e: React.FormEvent<HTMLFormElement>) => void;
|
|
5
5
|
buttonLoading?: boolean;
|
|
6
6
|
buttonDisabled?: boolean;
|
|
7
|
+
emailValue?: string;
|
|
8
|
+
emailOnChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
9
|
+
nameValue?: string;
|
|
10
|
+
nameOnChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
7
11
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -5,6 +5,11 @@ import scaGradientLogo from '@prosistemas/sca-web-kit/assets/logos/sca/sca-s-gra
|
|
|
5
5
|
import InfoHeader from '../info-header/info-header';
|
|
6
6
|
import Button from '../../ui/button/button';
|
|
7
7
|
import { EnvelopeIcon } from '@phosphor-icons/react/dist/ssr';
|
|
8
|
-
export default function NewsletterStrip({ buttonLabel, onButtonClick, onFormSubmit, buttonLoading = false, buttonDisabled = false,
|
|
9
|
-
|
|
8
|
+
export default function NewsletterStrip({ buttonLabel, onButtonClick, onFormSubmit, buttonLoading = false, buttonDisabled = false, emailValue, emailOnChange, nameValue, nameOnChange,
|
|
9
|
+
// email,
|
|
10
|
+
// setEmailAction,
|
|
11
|
+
// name,
|
|
12
|
+
// setNameAction,
|
|
13
|
+
}) {
|
|
14
|
+
return (_jsxs("div", { className: styles['newsletter-strip'], children: [_jsxs("div", { className: styles['left'], children: [_jsx(EnvelopeIcon, { color: 'white', weight: 'light', size: 48, className: styles['icon'] }), _jsx(InfoHeader, { title: 'Os melhores conte\u00FAdos de tecnologia e fitness', subtitle: 'Assine e receba novidades toda semana em sua caixa de entrada.', className: styles['feature-card'], titleClassName: styles['feature-card-title'], dark: true })] }), _jsxs("form", { className: styles['right'], onSubmit: onFormSubmit, children: [_jsx("input", { className: `${styles['name']} ${inter.className}`, id: "name", type: "text", name: "text", placeholder: "Insira seu nome", value: nameValue, onChange: nameOnChange, required: true }), _jsx("input", { className: `${styles['email']} ${inter.className}`, id: "email", type: "email", name: "email", placeholder: "Insira seu e-mail", value: emailValue, onChange: emailOnChange, required: true }), _jsx(Button, { className: styles['button'], onClick: onButtonClick, label: buttonLabel ?? "Assinar", loading: buttonLoading, disabled: buttonDisabled, type: 'submit' }), _jsx("div", { className: styles['blue-hue'] }), _jsx("img", { src: scaGradientLogo, alt: 'Logo do SCA', width: 243, height: 318, className: styles['background-logo'] })] })] }));
|
|
10
15
|
}
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
flex-direction: column;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
-
.email
|
|
61
|
-
|
|
60
|
+
.email,
|
|
61
|
+
.name {
|
|
62
62
|
height: 55.5px;
|
|
63
63
|
|
|
64
64
|
padding: 16px 24px;
|
|
@@ -76,6 +76,14 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
.email {
|
|
80
|
+
width: 335px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.name {
|
|
84
|
+
width: 200px;
|
|
85
|
+
}
|
|
86
|
+
|
|
79
87
|
.button {
|
|
80
88
|
width: 145px;
|
|
81
89
|
height: 55.5px;
|
|
@@ -123,6 +131,4 @@
|
|
|
123
131
|
z-index: 0;
|
|
124
132
|
}
|
|
125
133
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
134
|
}
|