@comicrelief/storybook 2.1.0 → 2.1.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.
- package/build/index.js +1 -1
- package/cypress/screenshots/components/BrowserSupportMessage_spec.js/Browser Support message -- should load default story (failed).png +0 -0
- package/cypress/screenshots/components/CheckboxField_spec.js/Checkbox Field -- should click checkbox (failed).png +0 -0
- package/cypress/screenshots/components/CheckboxField_spec.js/Checkbox Field -- should load default story (failed).png +0 -0
- package/cypress/screenshots/components/CookieConsentMessage_spec.js/Cookie Consent Message -- should load default story (failed).png +0 -0
- package/cypress/screenshots/components/FileUp_spec.js/File Upload -- should load default story (failed).png +0 -0
- package/cypress/screenshots/components/GrantsInfographics_spec.js/Grants Infographics -- should load default story (failed).png +0 -0
- package/cypress/screenshots/components/GrantsNearYou_spec.js/Grants Near You -- should load default story (failed).png +0 -0
- package/cypress/screenshots/components/InputField_spec.js/Input Field -- should load Number Field story (failed).png +0 -0
- package/cypress/screenshots/components/InputField_spec.js/Input Field -- should load Text Field story (failed).png +0 -0
- package/cypress/screenshots/components/_Footer_spec.js/Footer -- should load Sport Relief story (failed).png +0 -0
- package/cypress/snapshots/components/FileUp_spec.js/__diff_output__/File Upload -- should load default story.diff.png +0 -0
- package/cypress/videos/components/BrowserSupportMessage_spec.js.mp4 +0 -0
- package/cypress/videos/components/CheckboxField_spec.js.mp4 +0 -0
- package/cypress/videos/components/CookieConsentMessage_spec.js.mp4 +0 -0
- package/cypress/videos/components/FileUp_spec.js.mp4 +0 -0
- package/cypress/videos/components/GrantsInfographics_spec.js.mp4 +0 -0
- package/cypress/videos/components/GrantsNearYou_spec.js.mp4 +0 -0
- package/cypress/videos/components/InputField_spec.js.mp4 +0 -0
- package/cypress/videos/components/_Footer_spec.js.mp4 +0 -0
- package/package.json +1 -1
- package/src/components/InputField/validation.js +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ async function runYupValidation(type, value) {
|
|
|
24
24
|
if (type === 'email') {
|
|
25
25
|
fieldObj = { thisField: yup.string().email() };
|
|
26
26
|
} else if (type === 'tel') {
|
|
27
|
-
fieldObj = { thisField: yup.string().phone('GB', true).matches(/^[+]{0,1}[0-9]
|
|
27
|
+
fieldObj = { thisField: yup.string().phone('GB', true).matches(/^[+]{0,1}[0-9]{11,12}$/) };
|
|
28
28
|
} else {
|
|
29
29
|
fieldObj = { thisField: yup.string() }; // Fallback, just in case
|
|
30
30
|
}
|