@financial-times/n-conversion-forms 44.5.0 → 44.5.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.
package/.toolkitstate/ci.json
CHANGED
|
@@ -9,7 +9,6 @@ exports[`PaymentTerm When using custom options renders when not using an option
|
|
|
9
9
|
<div class="ncf__payment-term__item o-forms-input--radio-round ncf__payment-term__item--discount">
|
|
10
10
|
<input type="radio"
|
|
11
11
|
id="270"
|
|
12
|
-
data-base-amount="270"
|
|
13
12
|
name="paymentTerm"
|
|
14
13
|
value="270"
|
|
15
14
|
class="o-forms-input__radio o-forms-input__radio--right ncf__payment-term__input"
|
|
@@ -39,7 +38,6 @@ exports[`PaymentTerm When using custom options renders when not using an option
|
|
|
39
38
|
<div class="ncf__payment-term__item o-forms-input--radio-round ncf__payment-term__item--discount">
|
|
40
39
|
<input type="radio"
|
|
41
40
|
id="300"
|
|
42
|
-
data-base-amount="300"
|
|
43
41
|
name="paymentTerm"
|
|
44
42
|
value="300"
|
|
45
43
|
class="o-forms-input__radio o-forms-input__radio--right ncf__payment-term__input"
|
|
@@ -266,7 +266,6 @@ describe('PaymentTerm', () => {
|
|
|
266
266
|
subTitle: '(Renews annually unless cancelled)',
|
|
267
267
|
price: '€ 270.00',
|
|
268
268
|
symbol: '€',
|
|
269
|
-
amount: 270.0,
|
|
270
269
|
value: 270.0,
|
|
271
270
|
isTrial: false,
|
|
272
271
|
discount: '33%',
|
|
@@ -278,7 +277,6 @@ describe('PaymentTerm', () => {
|
|
|
278
277
|
title: '12 Month Subscription',
|
|
279
278
|
price: '€ 300.00',
|
|
280
279
|
symbol: '€',
|
|
281
|
-
amount: 300.0,
|
|
282
280
|
value: 300.0,
|
|
283
281
|
isTrial: false,
|
|
284
282
|
discount: '10%',
|
package/dist/payment-term.jsx
CHANGED
|
@@ -205,7 +205,7 @@ function PaymentTerm(_ref) {
|
|
|
205
205
|
}, nameMap['custom'].price(option.price), nameMap['custom'].monthlyPrice(option.monthlyPrice && option.monthlyPrice !== '0' ? Number(option.monthlyPrice) : getMonthlyPriceFromPeriod(option.amount, option.currency, option.value)), nameMap['custom'].renewsText(getTimeFromPeriod(option.value))) : /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
206
206
|
className: largePrice ? 'ncf__payment-term__large-price' : ''
|
|
207
207
|
}, new _nPricing.Price({
|
|
208
|
-
value: option.
|
|
208
|
+
value: option.price,
|
|
209
209
|
symbol: option.symbol
|
|
210
210
|
}).getAmountFormatted()), option.chargeOnText && /*#__PURE__*/_react["default"].createElement("p", {
|
|
211
211
|
className: "ncf__payment-term__charge-on-text"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/n-conversion-forms",
|
|
3
|
-
"version": "44.5.
|
|
3
|
+
"version": "44.5.1",
|
|
4
4
|
"description": "Containing jsx components and styles for forms included on Accounts and Acquisition apps (next-signup, next-profile, next-retention, etc).",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|