fontdue-js 0.1.0-alpha12 → 0.1.0-alpha13
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.
|
@@ -25,6 +25,7 @@ const updateCustomerMutation = _NewsletterSignupUpdateCustomerMutation !== void
|
|
|
25
25
|
|
|
26
26
|
const NewsletterSignup = ({
|
|
27
27
|
optInLabel,
|
|
28
|
+
buttonLabel = 'Subscribe',
|
|
28
29
|
optInCheckboxChecked = false,
|
|
29
30
|
title,
|
|
30
31
|
intro
|
|
@@ -124,7 +125,7 @@ const NewsletterSignup = ({
|
|
|
124
125
|
}, /*#__PURE__*/_react.default.createElement("button", {
|
|
125
126
|
className: "submit-button",
|
|
126
127
|
disabled: submitting || !newsletterOptIn
|
|
127
|
-
}, submitting ? 'Submitting' :
|
|
128
|
+
}, submitting ? 'Submitting...' : buttonLabel, /*#__PURE__*/_react.default.createElement("span", {
|
|
128
129
|
className: "submit-button__arrow"
|
|
129
130
|
}, ' →')))));
|
|
130
131
|
};
|
|
@@ -152,8 +152,11 @@ const TestFontsFormBase = ({
|
|
|
152
152
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
153
153
|
className: "checkbox__icon"
|
|
154
154
|
}, /*#__PURE__*/_react.default.createElement(_Icons.Check, null))), /*#__PURE__*/_react.default.createElement("label", {
|
|
155
|
-
htmlFor: "newsletter-opt-in"
|
|
156
|
-
|
|
155
|
+
htmlFor: "newsletter-opt-in",
|
|
156
|
+
dangerouslySetInnerHTML: {
|
|
157
|
+
__html: newsletterOptInLabel
|
|
158
|
+
}
|
|
159
|
+
})), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("button", {
|
|
157
160
|
className: "submit-button",
|
|
158
161
|
type: "submit",
|
|
159
162
|
disabled: submitting || disabled
|
|
@@ -166,7 +169,7 @@ const TestFontsFormBase = ({
|
|
|
166
169
|
};
|
|
167
170
|
|
|
168
171
|
const TestFontsForm = (0, _reactRelay.createFragmentContainer)(TestFontsFormBase, {
|
|
169
|
-
viewer: _TestFontsForm_viewer !== void 0 ? _TestFontsForm_viewer : (_TestFontsForm_viewer = require("../../__generated__/TestFontsForm_viewer.graphql"), _TestFontsForm_viewer.hash && _TestFontsForm_viewer.hash !== "
|
|
172
|
+
viewer: _TestFontsForm_viewer !== void 0 ? _TestFontsForm_viewer : (_TestFontsForm_viewer = require("../../__generated__/TestFontsForm_viewer.graphql"), _TestFontsForm_viewer.hash && _TestFontsForm_viewer.hash !== "4b3632aa1b6b2a5525ec749ab67f1cde" && console.error("The definition of 'TestFontsForm_viewer' appears to have changed. Run `relay-compiler` to update the generated files to receive the expected data."), _TestFontsForm_viewer)
|
|
170
173
|
});
|
|
171
174
|
|
|
172
175
|
const TestFontsFormFetcher = params => {
|