@financial-times/n-conversion-forms 27.3.0 → 27.3.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.
@@ -20,8 +20,11 @@ export function DeliveryCity ({
20
20
  GBR: 'e.g. Bath',
21
21
  USA: 'e.g. Los Angeles',
22
22
  CAN: 'e.g. Montreal',
23
+ ARE: 'e.g. Dubai'
23
24
  };
24
25
 
26
+ const inputLabel = country === 'ARE'? 'Emirate or City':'City';
27
+
25
28
  return (
26
29
  <label
27
30
  id="deliveryCityField"
@@ -30,7 +33,7 @@ export function DeliveryCity ({
30
33
  htmlFor="deliveryCity"
31
34
  >
32
35
  <span className="o-forms-title">
33
- <span className="o-forms-title__main">City</span>
36
+ <span className="o-forms-title__main">{inputLabel}</span>
34
37
  </span>
35
38
  <span className={inputWrapperClassName}>
36
39
  <input
@@ -30,8 +30,10 @@ function DeliveryCity(_ref) {
30
30
  var inputPlaceholder = {
31
31
  GBR: 'e.g. Bath',
32
32
  USA: 'e.g. Los Angeles',
33
- CAN: 'e.g. Montreal'
33
+ CAN: 'e.g. Montreal',
34
+ ARE: 'e.g. Dubai'
34
35
  };
36
+ var inputLabel = country === 'ARE' ? 'Emirate or City' : 'City';
35
37
  return /*#__PURE__*/_react["default"].createElement("label", {
36
38
  id: "deliveryCityField",
37
39
  className: "o-forms-field ncf__validation-error",
@@ -41,7 +43,7 @@ function DeliveryCity(_ref) {
41
43
  className: "o-forms-title"
42
44
  }, /*#__PURE__*/_react["default"].createElement("span", {
43
45
  className: "o-forms-title__main"
44
- }, "City")), /*#__PURE__*/_react["default"].createElement("span", {
46
+ }, inputLabel)), /*#__PURE__*/_react["default"].createElement("span", {
45
47
  className: inputWrapperClassName
46
48
  }, /*#__PURE__*/_react["default"].createElement("input", {
47
49
  type: "text",
@@ -4,7 +4,6 @@ const { printRegions } = require('./constants');
4
4
  const supportedCountriesMasterList = {
5
5
  cemeaV1: {
6
6
  AUT: 'Austria',
7
- ARE: 'United Arab Emirates',
8
7
  BEL: 'Belgium',
9
8
  BGR: 'Bulgaria',
10
9
  HRV: 'Croatia',
@@ -49,7 +48,8 @@ const supportedCountriesMasterList = {
49
48
  other: {
50
49
  GBR: 'United Kingdom',
51
50
  USA: 'United States',
52
- CAN: 'Canada'
51
+ CAN: 'Canada',
52
+ ARE: 'United Arab Emirates'
53
53
  }
54
54
  };
55
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-conversion-forms",
3
- "version": "27.3.0",
3
+ "version": "27.3.1",
4
4
  "description": "Containing jsx components and styles for forms included on Accounts and Acqusition apps (next-signup, next-profile, next-retention, etc).",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {