@financial-times/n-conversion-forms 28.2.0 → 28.3.0
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/components/__snapshots__/billing-country.spec.js.snap +12 -18
- package/components/__snapshots__/country.spec.js.snap +3198 -18
- package/components/billing-country.jsx +13 -53
- package/components/billing-country.spec.js +1 -1
- package/components/country.jsx +17 -9
- package/components/country.spec.js +32 -0
- package/dist/billing-country.js +11 -53
- package/dist/country.js +22 -11
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
-
exports[`
|
|
3
|
+
exports[`BillingCountry renders with default props 1`] = `
|
|
4
4
|
<label id="billingCountryField"
|
|
5
|
-
class="o-forms-field"
|
|
5
|
+
class="o-forms-field ncf__validation-error"
|
|
6
6
|
data-validate="required"
|
|
7
7
|
for="billingCountry"
|
|
8
8
|
>
|
|
@@ -13,7 +13,6 @@ exports[`Country renders with default props 1`] = `
|
|
|
13
13
|
</span>
|
|
14
14
|
<span class="o-forms-input o-forms-input--select">
|
|
15
15
|
<select id="billingCountry"
|
|
16
|
-
class="js-field__input js-item__value"
|
|
17
16
|
aria-required="true"
|
|
18
17
|
required
|
|
19
18
|
name="billingCountry"
|
|
@@ -798,9 +797,9 @@ exports[`Country renders with default props 1`] = `
|
|
|
798
797
|
</label>
|
|
799
798
|
`;
|
|
800
799
|
|
|
801
|
-
exports[`
|
|
800
|
+
exports[`BillingCountry renders with hasError 1`] = `
|
|
802
801
|
<label id="billingCountryField"
|
|
803
|
-
class="o-forms-field"
|
|
802
|
+
class="o-forms-field ncf__validation-error"
|
|
804
803
|
data-validate="required"
|
|
805
804
|
for="billingCountry"
|
|
806
805
|
>
|
|
@@ -811,7 +810,6 @@ exports[`Country renders with hasError 1`] = `
|
|
|
811
810
|
</span>
|
|
812
811
|
<span class="o-forms-input o-forms-input--select o-forms-input--invalid">
|
|
813
812
|
<select id="billingCountry"
|
|
814
|
-
class="js-field__input js-item__value"
|
|
815
813
|
aria-required="true"
|
|
816
814
|
required
|
|
817
815
|
name="billingCountry"
|
|
@@ -1596,9 +1594,9 @@ exports[`Country renders with hasError 1`] = `
|
|
|
1596
1594
|
</label>
|
|
1597
1595
|
`;
|
|
1598
1596
|
|
|
1599
|
-
exports[`
|
|
1597
|
+
exports[`BillingCountry renders with isDisabled 1`] = `
|
|
1600
1598
|
<label id="billingCountryField"
|
|
1601
|
-
class="o-forms-field"
|
|
1599
|
+
class="o-forms-field ncf__validation-error"
|
|
1602
1600
|
data-validate="required"
|
|
1603
1601
|
for="billingCountry"
|
|
1604
1602
|
>
|
|
@@ -1609,7 +1607,6 @@ exports[`Country renders with isDisabled 1`] = `
|
|
|
1609
1607
|
</span>
|
|
1610
1608
|
<span class="o-forms-input o-forms-input--select">
|
|
1611
1609
|
<select id="billingCountry"
|
|
1612
|
-
class="js-field__input js-item__value"
|
|
1613
1610
|
aria-required="true"
|
|
1614
1611
|
required
|
|
1615
1612
|
name="billingCountry"
|
|
@@ -2395,9 +2392,9 @@ exports[`Country renders with isDisabled 1`] = `
|
|
|
2395
2392
|
</label>
|
|
2396
2393
|
`;
|
|
2397
2394
|
|
|
2398
|
-
exports[`
|
|
2395
|
+
exports[`BillingCountry renders with large filterList 1`] = `
|
|
2399
2396
|
<label id="billingCountryField"
|
|
2400
|
-
class="o-forms-field"
|
|
2397
|
+
class="o-forms-field ncf__validation-error"
|
|
2401
2398
|
data-validate="required"
|
|
2402
2399
|
for="billingCountry"
|
|
2403
2400
|
>
|
|
@@ -2408,7 +2405,6 @@ exports[`Country renders with large filterList 1`] = `
|
|
|
2408
2405
|
</span>
|
|
2409
2406
|
<span class="o-forms-input o-forms-input--select">
|
|
2410
2407
|
<select id="billingCountry"
|
|
2411
|
-
class="js-field__input js-item__value"
|
|
2412
2408
|
aria-required="true"
|
|
2413
2409
|
required
|
|
2414
2410
|
name="billingCountry"
|
|
@@ -2487,9 +2483,9 @@ exports[`Country renders with large filterList 1`] = `
|
|
|
2487
2483
|
</label>
|
|
2488
2484
|
`;
|
|
2489
2485
|
|
|
2490
|
-
exports[`
|
|
2486
|
+
exports[`BillingCountry renders with small filterList 1`] = `
|
|
2491
2487
|
<label id="billingCountryField"
|
|
2492
|
-
class="o-forms-field"
|
|
2488
|
+
class="o-forms-field ncf__validation-error"
|
|
2493
2489
|
data-validate="required"
|
|
2494
2490
|
for="billingCountry"
|
|
2495
2491
|
>
|
|
@@ -2500,7 +2496,6 @@ exports[`Country renders with small filterList 1`] = `
|
|
|
2500
2496
|
</span>
|
|
2501
2497
|
<span class="o-forms-input o-forms-input--select">
|
|
2502
2498
|
<select id="billingCountry"
|
|
2503
|
-
class="js-field__input js-item__value"
|
|
2504
2499
|
aria-required="true"
|
|
2505
2500
|
required
|
|
2506
2501
|
name="billingCountry"
|
|
@@ -2522,9 +2517,9 @@ exports[`Country renders with small filterList 1`] = `
|
|
|
2522
2517
|
</label>
|
|
2523
2518
|
`;
|
|
2524
2519
|
|
|
2525
|
-
exports[`
|
|
2520
|
+
exports[`BillingCountry renders with value 1`] = `
|
|
2526
2521
|
<label id="billingCountryField"
|
|
2527
|
-
class="o-forms-field"
|
|
2522
|
+
class="o-forms-field ncf__validation-error"
|
|
2528
2523
|
data-validate="required"
|
|
2529
2524
|
for="billingCountry"
|
|
2530
2525
|
>
|
|
@@ -2535,7 +2530,6 @@ exports[`Country renders with value 1`] = `
|
|
|
2535
2530
|
</span>
|
|
2536
2531
|
<span class="o-forms-input o-forms-input--select">
|
|
2537
2532
|
<select id="billingCountry"
|
|
2538
|
-
class="js-field__input js-item__value"
|
|
2539
2533
|
aria-required="true"
|
|
2540
2534
|
required
|
|
2541
2535
|
name="billingCountry"
|