@thecb/components 10.4.2-beta.3 → 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 CHANGED
@@ -39826,14 +39826,6 @@ validatorFns[IS_PROBABLY_EMAIL] = (value, args, form) => {
39826
39826
  return new RegExp(/^\S+@\S+\.\S+$/).test(value);
39827
39827
  };
39828
39828
 
39829
- const VALID_NAME = 'validator/VALID_NAME';
39830
- const VALID_NAME_ERROR = 'validator/VALID_NAME_ERROR';
39831
- const validName = createValidator(VALID_NAME, VALID_NAME_ERROR);
39832
- validatorFns[VALID_NAME] = (value, args, form) =>
39833
- value === ''
39834
- ? false
39835
- : new RegExp(/[A-zÀ-ÿ\-,'\S]+(\s?[A-zÀ-ÿ\-,'\S])*/).test(value);
39836
-
39837
39829
  const runValidatorErrorMessage = (type) =>
39838
39830
  `${type} was passed to runValidator, but that validator type does not exist.
39839
39831
  Please check that you are only calling validator creator functions exported from
@@ -48273,23 +48265,21 @@ var AccountAndRoutingModal = function AccountAndRoutingModal(_ref) {
48273
48265
  toggleOpen(false);
48274
48266
  },
48275
48267
  initialFocusSelector: "[name='Close']"
48276
- }, /*#__PURE__*/React__default.createElement(Text$1, {
48277
- variant: "pS",
48268
+ }, /*#__PURE__*/React__default.createElement(ButtonWithAction, {
48269
+ variant: "ghost",
48270
+ tabIndex: "0",
48278
48271
  onClick: function onClick() {
48279
48272
  return toggleOpen(true);
48280
48273
  },
48281
48274
  onKeyPress: function onKeyPress(e) {
48282
48275
  return e.key === "Enter" && toggleOpen(true);
48283
48276
  },
48284
- tabIndex: "0",
48285
- color: themeValues.linkColor,
48286
- weight: themeValues.fontWeight,
48287
- hoverStyles: themeValues.modalLinkHoverFocus,
48288
- textDecoration: themeValues.linkTextDecoration,
48289
- extraStyles: "cursor: pointer;",
48290
- role: "button",
48291
- className: "modal-trigger"
48292
- }, link));
48277
+ extraStyles: "min-width: 0; min-height: 0;margin: 0; padding: 0; text-transform: none;",
48278
+ text: /*#__PURE__*/React__default.createElement(Text$1, {
48279
+ variant: "pS",
48280
+ color: "inherit"
48281
+ }, link)
48282
+ }));
48293
48283
  };
48294
48284
  var AccountAndRoutingModal$1 = themeComponent(AccountAndRoutingModal, "AccountAndRoutingModal", fallbackValues$O, "default");
48295
48285
 
@@ -49480,8 +49470,8 @@ var RegistrationForm = function RegistrationForm(_ref) {
49480
49470
  };
49481
49471
  }, []);
49482
49472
  }
49483
- var firstNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "First name is required"), validName.error, "First name contains invalid characters");
49484
- var lastNameErrorMessages = _defineProperty(_defineProperty({}, required.error, "Last name is required"), validName.error, "Last name contains invalid characters");
49473
+ var firstNameErrorMessages = _defineProperty({}, required.error, "First name is required");
49474
+ var lastNameErrorMessages = _defineProperty({}, required.error, "Last name is required");
49485
49475
  var emailErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email is required"), isProbablyEmail.error, "Invalid email address");
49486
49476
  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 (!@#$%^&*.?)");
49487
49477
  var confirmPasswordErrorMessages = _defineProperty({}, matchesField.error, "Confirm password must match password");
@@ -49557,10 +49547,10 @@ var RegistrationForm = function RegistrationForm(_ref) {
49557
49547
 
49558
49548
  var formConfig$9 = {
49559
49549
  firstName: {
49560
- validators: [required(), validName()]
49550
+ validators: [required()]
49561
49551
  },
49562
49552
  lastName: {
49563
- validators: [required(), validName()]
49553
+ validators: [required()]
49564
49554
  },
49565
49555
  email: {
49566
49556
  validators: [required(), isProbablyEmail()]