@thecb/components 10.4.2-beta.2 → 10.4.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/dist/index.cjs.js +13 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +13 -23
- package/dist/index.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/molecules/account-and-routing-modal/AccountAndRoutingModal.js +50 -50
- package/src/components/molecules/registration-form/RegistrationForm.js +3 -6
- package/src/components/molecules/registration-form/RegistrationForm.state.js +3 -4
- package/dist/src/apps/checkout/pages/payment/sub-pages/payment-amount/PaymentAmount_old.js +0 -49322
- package/src/.DS_Store +0 -0
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/.DS_Store +0 -0
- package/src/components/atoms/icons/.DS_Store +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -39818,14 +39818,6 @@ validatorFns[IS_PROBABLY_EMAIL] = (value, args, form) => {
|
|
|
39818
39818
|
return new RegExp(/^\S+@\S+\.\S+$/).test(value);
|
|
39819
39819
|
};
|
|
39820
39820
|
|
|
39821
|
-
const VALID_NAME = 'validator/VALID_NAME';
|
|
39822
|
-
const VALID_NAME_ERROR = 'validator/VALID_NAME_ERROR';
|
|
39823
|
-
const validName = createValidator(VALID_NAME, VALID_NAME_ERROR);
|
|
39824
|
-
validatorFns[VALID_NAME] = (value, args, form) =>
|
|
39825
|
-
value === ''
|
|
39826
|
-
? false
|
|
39827
|
-
: new RegExp(/[A-zÀ-ÿ\-,'\S]+(\s?[A-zÀ-ÿ\-,'\S])*/).test(value);
|
|
39828
|
-
|
|
39829
39821
|
const runValidatorErrorMessage = (type) =>
|
|
39830
39822
|
`${type} was passed to runValidator, but that validator type does not exist.
|
|
39831
39823
|
Please check that you are only calling validator creator functions exported from
|
|
@@ -48265,23 +48257,21 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
|
|
|
48265
48257
|
toggleOpen(false);
|
|
48266
48258
|
},
|
|
48267
48259
|
initialFocusSelector: "[name='Close']"
|
|
48268
|
-
}, /*#__PURE__*/React.createElement(
|
|
48269
|
-
variant: "
|
|
48260
|
+
}, /*#__PURE__*/React.createElement(ButtonWithAction, {
|
|
48261
|
+
variant: "ghost",
|
|
48262
|
+
tabIndex: "0",
|
|
48270
48263
|
onClick: function onClick() {
|
|
48271
48264
|
return toggleOpen(true);
|
|
48272
48265
|
},
|
|
48273
48266
|
onKeyPress: function onKeyPress(e) {
|
|
48274
48267
|
return e.key === "Enter" && toggleOpen(true);
|
|
48275
48268
|
},
|
|
48276
|
-
|
|
48277
|
-
|
|
48278
|
-
|
|
48279
|
-
|
|
48280
|
-
|
|
48281
|
-
|
|
48282
|
-
role: "button",
|
|
48283
|
-
className: "modal-trigger"
|
|
48284
|
-
}, link));
|
|
48269
|
+
extraStyles: "min-width: 0; min-height: 0;margin: 0; padding: 0; text-transform: none;",
|
|
48270
|
+
text: /*#__PURE__*/React.createElement(Text$1, {
|
|
48271
|
+
variant: "pS",
|
|
48272
|
+
color: "inherit"
|
|
48273
|
+
}, link)
|
|
48274
|
+
}));
|
|
48285
48275
|
};
|
|
48286
48276
|
var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$O, "default");
|
|
48287
48277
|
|
|
@@ -49472,8 +49462,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49472
49462
|
};
|
|
49473
49463
|
}, []);
|
|
49474
49464
|
}
|
|
49475
|
-
var firstNameErrorMessages = _defineProperty(
|
|
49476
|
-
var lastNameErrorMessages = _defineProperty(
|
|
49465
|
+
var firstNameErrorMessages = _defineProperty({}, required.error, "First name is required");
|
|
49466
|
+
var lastNameErrorMessages = _defineProperty({}, required.error, "Last name is required");
|
|
49477
49467
|
var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Invalid email address");
|
|
49478
49468
|
var passwordErrorMessages = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, required.error, "Password is required"), hasLength.error, "Password must have at least 8 characters"), hasNumber.error, "Password must contain at least one number"), hasLowercaseLetter.error, "Password must contain at least one lowercase letter"), hasUppercaseLetter.error, "Password must contain at least one uppercase letter"), hasSpecialCharacter.error, "Password must contain at least one special character (!@#$%^&*.?)");
|
|
49479
49469
|
var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
|
|
@@ -49549,10 +49539,10 @@ var RegistrationForm = function RegistrationForm(_ref) {
|
|
|
49549
49539
|
|
|
49550
49540
|
var formConfig$9 = {
|
|
49551
49541
|
firstName: {
|
|
49552
|
-
validators: [required()
|
|
49542
|
+
validators: [required()]
|
|
49553
49543
|
},
|
|
49554
49544
|
lastName: {
|
|
49555
|
-
validators: [required()
|
|
49545
|
+
validators: [required()]
|
|
49556
49546
|
},
|
|
49557
49547
|
email: {
|
|
49558
49548
|
validators: [required(), isProbablyEmail()]
|