@financial-times/n-conversion-forms 40.0.0 → 40.0.2

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,7 @@
1
1
  {
2
2
  "branch": "",
3
3
  "repo": "n-conversion-forms",
4
- "version": "a76e5c3b384d8042f6e9da316addc1a799d74df9",
5
- "tag": "v40.0.0",
6
- "buildNumber": "14974"
4
+ "version": "851ad665946f79ea01a1d6152a42c7a2debb3ceb",
5
+ "tag": "v40.0.2",
6
+ "buildNumber": "15060"
7
7
  }
@@ -180,7 +180,7 @@ exports[`Debug renders with showHelpers 1`] = `
180
180
  >
181
181
  Fill & Submit
182
182
  </button>
183
- <select class="ncf__button ncf__button--debug ncf__button--inverse ncf__button--max-with"
183
+ <select class="ncf__button ncf__button--debug ncf__button--inverse ncf__button--max-width"
184
184
  id="ncf-country"
185
185
  onchange="reloadWithSelectedCountry();"
186
186
  >
@@ -57,7 +57,7 @@ export function Debug({
57
57
  ''
58
58
  );
59
59
  const countriesDropDown = `
60
- <select class="ncf__button ncf__button--debug ncf__button--inverse ncf__button--max-with" id="ncf-country" onchange="reloadWithSelectedCountry();">
60
+ <select class="ncf__button ncf__button--debug ncf__button--inverse ncf__button--max-width" id="ncf-country" onchange="reloadWithSelectedCountry();">
61
61
  <option value="">Change country</option>
62
62
  <hr />
63
63
  ${optionsToRender}
package/dist/debug.jsx CHANGED
@@ -46,7 +46,7 @@ function Debug(_ref) {
46
46
  var optionsToRender = filteredCountries.reduce(function (options, country) {
47
47
  return "".concat(options, " ").concat(country.label ? createOptGroup(country) : createOption(country));
48
48
  }, '');
49
- var countriesDropDown = "\n\t\t<select class=\"ncf__button ncf__button--debug ncf__button--inverse ncf__button--max-with\" id=\"ncf-country\" onchange=\"reloadWithSelectedCountry();\">\n\t\t\t<option value=\"\">Change country</option>\n\t\t\t<hr />\n\t\t\t".concat(optionsToRender, "\n\t\t</select>\n\t");
49
+ var countriesDropDown = "\n\t\t<select class=\"ncf__button ncf__button--debug ncf__button--inverse ncf__button--max-width\" id=\"ncf-country\" onchange=\"reloadWithSelectedCountry();\">\n\t\t\t<option value=\"\">Change country</option>\n\t\t\t<hr />\n\t\t\t".concat(optionsToRender, "\n\t\t</select>\n\t");
50
50
  var helpers = "\n\t\t<span class=\"ncf__debug-helpers\">\n\t\t\t<button class=\"ncf__button ncf__button--debug ncf__button--inverse\" onclick=\"logout();\" title=\"Logout and refresh\">Logout</button>\n\t\t\t<button class=\"ncf__button ncf__button--debug ncf__button--inverse\" onclick=\"fillForm();\" title=\"Fill form with debug data\">Fill</button>\n\t\t\t<button class=\"ncf__button ncf__button--debug ncf__button--inverse\" onclick=\"fillForm(); submitForm();\" title=\"Fill form with debug data and submit\">Fill &amp; Submit</button>\n\t\t\t".concat(countriesDropDown, "\n\t\t\t").concat(isTest ? testCards : '', "\n\t\t\t").concat(links.length ? linksString : '', "\n\t\t</span>\n\t");
51
51
  var html = {
52
52
  __html: "".concat(isTest ? testEnvironment : productionEnvironment).concat(showHelpers ? helpers : '')
package/main.scss CHANGED
@@ -309,9 +309,16 @@
309
309
  margin: 20px 0;
310
310
  }
311
311
 
312
- &--max-with {
312
+ &--max-width {
313
313
  max-width: 120px;
314
314
  }
315
+
316
+ &--debug {
317
+ option,
318
+ optgroup {
319
+ background-color: #262a33;
320
+ }
321
+ }
315
322
  }
316
323
 
317
324
  &__center {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-conversion-forms",
3
- "version": "40.0.0",
3
+ "version": "40.0.2",
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": {