@financial-times/n-conversion-forms 32.7.1 → 32.9.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/.eslintignore +6 -2
- package/.prettierignore +1 -0
- package/.toolkitrc.yml +9 -3
- package/.toolkitstate/ci.json +2 -2
- package/components/__snapshots__/confirmation.spec.js.snap +54 -0
- package/components/__snapshots__/graduation-date.spec.js.snap +3 -3
- package/components/__snapshots__/industry.spec.js.snap +364 -16
- package/components/__snapshots__/position.spec.js.snap +64 -64
- package/components/__snapshots__/responsibility.spec.js.snap +270 -150
- package/components/accept-terms-subscription.jsx +8 -6
- package/components/confirmation.jsx +8 -5
- package/components/confirmation.spec.js +6 -0
- package/components/confirmation.stories.js +18 -0
- package/components/industry.jsx +2 -0
- package/components/industry.stories.js +3 -0
- package/components/position.jsx +2 -0
- package/components/position.stories.js +3 -0
- package/components/responsibility.jsx +2 -0
- package/components/responsibility.stories.js +3 -0
- package/dist/confirmation.jsx +5 -2
- package/dist/industry.jsx +3 -0
- package/dist/position.jsx +3 -0
- package/dist/responsibility.jsx +3 -0
- package/package.json +12 -14
package/.eslintignore
CHANGED
package/.prettierignore
CHANGED
package/.toolkitrc.yml
CHANGED
|
@@ -4,9 +4,9 @@ plugins:
|
|
|
4
4
|
- "@dotcom-tool-kit/jest"
|
|
5
5
|
- "@dotcom-tool-kit/eslint"
|
|
6
6
|
- "@dotcom-tool-kit/prettier"
|
|
7
|
-
- "@dotcom-tool-kit/lint-staged"
|
|
7
|
+
- "@dotcom-tool-kit/lint-staged-npm"
|
|
8
8
|
- "@dotcom-tool-kit/husky-npm"
|
|
9
|
-
-
|
|
9
|
+
- "./toolkit/run-storybook"
|
|
10
10
|
hooks:
|
|
11
11
|
test:local:
|
|
12
12
|
- Eslint
|
|
@@ -15,10 +15,16 @@ hooks:
|
|
|
15
15
|
- Eslint
|
|
16
16
|
- JestCI
|
|
17
17
|
run:local:
|
|
18
|
-
|
|
18
|
+
- RunStorybook
|
|
19
19
|
options:
|
|
20
20
|
"@dotcom-tool-kit/circleci":
|
|
21
21
|
nodeVersion: 18.17-browsers
|
|
22
22
|
"@dotcom-tool-kit/babel":
|
|
23
23
|
files: "components/{*.jsx,index.js}"
|
|
24
24
|
outputPath: dist
|
|
25
|
+
"@dotcom-tool-kit/lint-staged-npm":
|
|
26
|
+
testGlob: "**/*.{js,jsx,json,scss}"
|
|
27
|
+
formatGlob: "**/*.{js,jsx,json,scss}"
|
|
28
|
+
"@dotcom-tool-kit/prettier":
|
|
29
|
+
files: ["**/*.{js,jsx,json,scss}"]
|
|
30
|
+
configFile: ".prettierrc.js"
|
package/.toolkitstate/ci.json
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
|
+
exports[`Confirmation renders appropriately if is 'Termed' subscription term type 1`] = `
|
|
4
|
+
<div class="ncf ncf__wrapper">
|
|
5
|
+
<div class="ncf__center">
|
|
6
|
+
<div class="ncf__icon ncf__icon--tick ncf__icon--large">
|
|
7
|
+
</div>
|
|
8
|
+
<p class="ncf__paragraph--reduced-padding ncf__paragraph--subscription-confirmation">
|
|
9
|
+
You are now subscribed to:
|
|
10
|
+
</p>
|
|
11
|
+
<h1 class="ncf__header ncf__header--confirmation">
|
|
12
|
+
</h1>
|
|
13
|
+
</div>
|
|
14
|
+
<p class="ncf__paragraph">
|
|
15
|
+
We’ve sent confirmation to your email. Make sure you check your spam folder if you don’t receive it.
|
|
16
|
+
</p>
|
|
17
|
+
<p class="ncf__paragraph">
|
|
18
|
+
Here’s a summary of your subscription:
|
|
19
|
+
</p>
|
|
20
|
+
<div class="ncf__headed-paragraph">
|
|
21
|
+
<h3 class="ncf__header">
|
|
22
|
+
Something not right?
|
|
23
|
+
</h3>
|
|
24
|
+
<p class="ncf__paragraph">
|
|
25
|
+
Go to your
|
|
26
|
+
<a class="ncf__link ncf__link--external"
|
|
27
|
+
href="https://www.ft.com/myaccount/personal-details"
|
|
28
|
+
target="_blank"
|
|
29
|
+
rel="noopener noreferrer"
|
|
30
|
+
data-trackable="yourAccount"
|
|
31
|
+
>
|
|
32
|
+
account settings
|
|
33
|
+
</a>
|
|
34
|
+
to view or edit your account. If you need to get in touch call us on
|
|
35
|
+
<a href="tel:+442077556248"
|
|
36
|
+
class="ncf__link ncf__link--external"
|
|
37
|
+
>
|
|
38
|
+
+44 (0) 207 755 6248
|
|
39
|
+
</a>
|
|
40
|
+
. Or contact us for additional support.
|
|
41
|
+
</p>
|
|
42
|
+
</div>
|
|
43
|
+
<p class="ncf__paragraph">
|
|
44
|
+
See our
|
|
45
|
+
<a class="ncf__link ncf__link--external"
|
|
46
|
+
href="http://help.ft.com/help/legal-privacy/terms-conditions/"
|
|
47
|
+
target="_top"
|
|
48
|
+
rel="noopener"
|
|
49
|
+
>
|
|
50
|
+
Terms & Conditions
|
|
51
|
+
</a>
|
|
52
|
+
for details on how to cancel.
|
|
53
|
+
</p>
|
|
54
|
+
</div>
|
|
55
|
+
`;
|
|
56
|
+
|
|
3
57
|
exports[`Confirmation renders appropriately if is B2C Partnership 1`] = `
|
|
4
58
|
<div class="ncf ncf__wrapper">
|
|
5
59
|
<div class="ncf__center">
|
|
@@ -71,9 +71,6 @@ exports[`GraduationDate renders with default props 1`] = `
|
|
|
71
71
|
name="graduationDateYear"
|
|
72
72
|
aria-required="false"
|
|
73
73
|
>
|
|
74
|
-
<option value="2019">
|
|
75
|
-
2019
|
|
76
|
-
</option>
|
|
77
74
|
<option value="2020">
|
|
78
75
|
2020
|
|
79
76
|
</option>
|
|
@@ -98,6 +95,9 @@ exports[`GraduationDate renders with default props 1`] = `
|
|
|
98
95
|
<option value="2027">
|
|
99
96
|
2027
|
|
100
97
|
</option>
|
|
98
|
+
<option value="2028">
|
|
99
|
+
2028
|
|
100
|
+
</option>
|
|
101
101
|
</select>
|
|
102
102
|
</span>
|
|
103
103
|
</div>
|