@financial-times/n-conversion-forms 27.4.0 → 27.4.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-conversion-forms",
3
- "version": "27.4.0",
3
+ "version": "27.4.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": {
@@ -115,6 +115,18 @@ class PaymentType {
115
115
  }
116
116
  }
117
117
  }
118
+ /**
119
+ * Hide the payment types panel
120
+ */
121
+ hidePanel () {
122
+ const content = this.$paymentType.querySelectorAll(
123
+ '.ncf__payment-type-panel'
124
+ );
125
+ for (let i = 0; i < content.length; i++) {
126
+ const element = content[i];
127
+ element.classList.add('ncf__hidden');
128
+ }
129
+ }
118
130
 
119
131
  static get CREDITCARD () {
120
132
  return 'creditcard';