@financial-times/n-conversion-forms 37.1.0 → 37.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.
- package/.toolkitstate/ci.json +2 -2
- package/components/__snapshots__/delivery-start-date.spec.js.snap +9 -9
- package/components/delivery-start-date.jsx +1 -1
- package/dist/delivery-start-date.jsx +1 -1
- package/package.json +1 -1
- package/utils/delivery-option-messages.js +1 -1
- package/utils/delivery-option-messages.spec.js +1 -1
package/.toolkitstate/ci.json
CHANGED
|
@@ -10,7 +10,7 @@ exports[`DeliveryStartDate renders with a custom date 1`] = `
|
|
|
10
10
|
<span class="o-forms-title__main"
|
|
11
11
|
id="start-date-picker-title-span"
|
|
12
12
|
>
|
|
13
|
-
|
|
13
|
+
Start date
|
|
14
14
|
</span>
|
|
15
15
|
<span class="o-forms-title__prompt">
|
|
16
16
|
Earliest available delivery date: 5th November 2019
|
|
@@ -48,7 +48,7 @@ exports[`DeliveryStartDate renders with a custom input max value 1`] = `
|
|
|
48
48
|
<span class="o-forms-title__main"
|
|
49
49
|
id="start-date-picker-title-span"
|
|
50
50
|
>
|
|
51
|
-
|
|
51
|
+
Start date
|
|
52
52
|
</span>
|
|
53
53
|
<span class="o-forms-title__prompt">
|
|
54
54
|
Earliest available delivery date: 2
|
|
@@ -86,7 +86,7 @@ exports[`DeliveryStartDate renders with a custom input min value 1`] = `
|
|
|
86
86
|
<span class="o-forms-title__main"
|
|
87
87
|
id="start-date-picker-title-span"
|
|
88
88
|
>
|
|
89
|
-
|
|
89
|
+
Start date
|
|
90
90
|
</span>
|
|
91
91
|
<span class="o-forms-title__prompt">
|
|
92
92
|
Earliest available delivery date:
|
|
@@ -124,7 +124,7 @@ exports[`DeliveryStartDate renders with a custom input value 1`] = `
|
|
|
124
124
|
<span class="o-forms-title__main"
|
|
125
125
|
id="start-date-picker-title-span"
|
|
126
126
|
>
|
|
127
|
-
|
|
127
|
+
Start date
|
|
128
128
|
</span>
|
|
129
129
|
<span class="o-forms-title__prompt">
|
|
130
130
|
Earliest available delivery date:
|
|
@@ -161,7 +161,7 @@ exports[`DeliveryStartDate renders with a disabled input 1`] = `
|
|
|
161
161
|
<span class="o-forms-title__main"
|
|
162
162
|
id="start-date-picker-title-span"
|
|
163
163
|
>
|
|
164
|
-
|
|
164
|
+
Start date
|
|
165
165
|
</span>
|
|
166
166
|
<span class="o-forms-title__prompt">
|
|
167
167
|
Earliest available delivery date:
|
|
@@ -199,7 +199,7 @@ exports[`DeliveryStartDate renders with an error 1`] = `
|
|
|
199
199
|
<span class="o-forms-title__main"
|
|
200
200
|
id="start-date-picker-title-span"
|
|
201
201
|
>
|
|
202
|
-
|
|
202
|
+
Start date
|
|
203
203
|
</span>
|
|
204
204
|
<span class="o-forms-title__prompt">
|
|
205
205
|
Earliest available delivery date:
|
|
@@ -236,7 +236,7 @@ exports[`DeliveryStartDate renders with appropriate start message when isAddress
|
|
|
236
236
|
<span class="o-forms-title__main"
|
|
237
237
|
id="start-date-picker-title-span"
|
|
238
238
|
>
|
|
239
|
-
|
|
239
|
+
Start date
|
|
240
240
|
</span>
|
|
241
241
|
<span class="o-forms-title__prompt">
|
|
242
242
|
Earliest available delivery date:
|
|
@@ -273,7 +273,7 @@ exports[`DeliveryStartDate renders with country different than default 1`] = `
|
|
|
273
273
|
<span class="o-forms-title__main"
|
|
274
274
|
id="start-date-picker-title-span"
|
|
275
275
|
>
|
|
276
|
-
|
|
276
|
+
Start date
|
|
277
277
|
</span>
|
|
278
278
|
<span class="o-forms-title__prompt">
|
|
279
279
|
Earliest available delivery date:
|
|
@@ -310,7 +310,7 @@ exports[`DeliveryStartDate renders with default props 1`] = `
|
|
|
310
310
|
<span class="o-forms-title__main"
|
|
311
311
|
id="start-date-picker-title-span"
|
|
312
312
|
>
|
|
313
|
-
|
|
313
|
+
Start date
|
|
314
314
|
</span>
|
|
315
315
|
<span class="o-forms-title__prompt">
|
|
316
316
|
Earliest available delivery date:
|
|
@@ -43,7 +43,7 @@ export function DeliveryStartDate({
|
|
|
43
43
|
>
|
|
44
44
|
<span className="o-forms-title">
|
|
45
45
|
<span className="o-forms-title__main" id="start-date-picker-title-span">
|
|
46
|
-
|
|
46
|
+
Start date
|
|
47
47
|
</span>
|
|
48
48
|
<span className="o-forms-title__prompt">
|
|
49
49
|
Earliest available delivery date: {date}
|
|
@@ -55,7 +55,7 @@ function DeliveryStartDate(_ref) {
|
|
|
55
55
|
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
56
56
|
className: "o-forms-title__main",
|
|
57
57
|
id: "start-date-picker-title-span"
|
|
58
|
-
}, "
|
|
58
|
+
}, "Start date"), /*#__PURE__*/_react["default"].createElement("span", {
|
|
59
59
|
className: "o-forms-title__prompt"
|
|
60
60
|
}, "Earliest available delivery date: ", date)), /*#__PURE__*/_react["default"].createElement("span", {
|
|
61
61
|
className: inputWrapperClassNames
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/n-conversion-forms",
|
|
3
|
-
"version": "37.1
|
|
3
|
+
"version": "37.2.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": {
|
|
@@ -171,7 +171,7 @@ const deliveryOptionMessages = [
|
|
|
171
171
|
customId: 'ML',
|
|
172
172
|
flightMarket: true,
|
|
173
173
|
description:
|
|
174
|
-
'Enjoy delivery of the newspaper to your home or office address. Note this is a postal delivery - expect delivery after the day of publication. If you would prefer to read the newspaper on the day of publication, purchase an FT ePaper subscription, our digital replica of
|
|
174
|
+
'Enjoy delivery of the newspaper to your home or office address. Note this is a postal delivery - expect delivery after the day of publication. If you would prefer to read the newspaper on the day of publication, purchase an FT ePaper subscription, our digital replica of each daily edition.',
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
177
|
deliveryFrequency: [
|
|
@@ -185,7 +185,7 @@ describe('Find Custom Delivery Option', () => {
|
|
|
185
185
|
title: 'Mail Delivery',
|
|
186
186
|
customId: 'ML',
|
|
187
187
|
description:
|
|
188
|
-
'Enjoy delivery of the newspaper to your home or office address. Note this is a postal delivery - expect delivery after the day of publication. If you would prefer to read the newspaper on the day of publication, purchase an FT ePaper subscription, our digital replica of
|
|
188
|
+
'Enjoy delivery of the newspaper to your home or office address. Note this is a postal delivery - expect delivery after the day of publication. If you would prefer to read the newspaper on the day of publication, purchase an FT ePaper subscription, our digital replica of each daily edition.',
|
|
189
189
|
};
|
|
190
190
|
|
|
191
191
|
const deliveryOption = getDeliveryOption(
|