@thecb/components 11.9.2-beta.2 → 11.9.3-beta.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/dist/index.cjs.js CHANGED
@@ -25935,7 +25935,8 @@ var FormInput = function FormInput(_ref15) {
25935
25935
  minWidth: "100%"
25936
25936
  }, /*#__PURE__*/React__default.createElement(Cluster, {
25937
25937
  justify: "space-between",
25938
- align: "center"
25938
+ align: "center",
25939
+ overflow: true
25939
25940
  }, labelDisplayOverride ? labelDisplayOverride : /*#__PURE__*/React__default.createElement(Text$1, {
25940
25941
  as: "label",
25941
25942
  color: themeValues.labelColor,
@@ -25943,22 +25944,16 @@ var FormInput = function FormInput(_ref15) {
25943
25944
  fontWeight: themeValues.fontWeight,
25944
25945
  extraStyles: "word-break: break-word;\n font-family: Public Sans;\n &::first-letter {\n text-transform: uppercase;\n }",
25945
25946
  id: createIdFromString(labelTextWhenNoError)
25946
- }, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(Text$1, {
25947
- variant: labelTextVariant,
25948
- color: themeValues.linkColor,
25949
- weight: themeValues.fontWeight,
25950
- hoverStyles: themeValues.hoverFocusStyles,
25951
- extraStyles: "text-decoration: underline; cursor: pointer; &:focus { outline-offset: -2px; }",
25952
- onClick: function onClick() {
25947
+ }, labelTextWhenNoError), type === "password" && /*#__PURE__*/React__default.createElement(ButtonWithAction, {
25948
+ variant: "smallGhost",
25949
+ text: showPassword ? "Hide" : "Show",
25950
+ action: function action() {
25953
25951
  return setShowPassword(!showPassword);
25954
25952
  },
25955
- tabIndex: "0",
25956
25953
  "aria-label": showPassword ? "Hide Password" : "Show password",
25957
- "aria-live": "polite",
25958
- onKeyPress: function onKeyPress(e) {
25959
- return e.key === "Enter" && setShowPassword(!showPassword);
25960
- }
25961
- }, showPassword ? "Hide" : "Show"), isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
25954
+ extraStyles: "margin: 0; min-width: auto;",
25955
+ textExtraStyles: "color: ".concat(themeValues.linkColor, ";")
25956
+ }), isMobile && decorator && /*#__PURE__*/React__default.createElement(Box, {
25962
25957
  padding: "0 0 0 auto"
25963
25958
  }, decorator)))), /*#__PURE__*/React__default.createElement(Box, {
25964
25959
  padding: "0"
@@ -41157,7 +41152,7 @@ var EmailForm = function EmailForm(_ref) {
41157
41152
  }, []);
41158
41153
  }
41159
41154
  useConditionallyAddValidator(isRequired, required, actions.fields.email.addValidator, actions.fields.email.removeValidator);
41160
- var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Please enter a valid email address in the format user@example.com");
41155
+ var emailFieldErrorMessages = _defineProperty(_defineProperty({}, required.error, "Email address is required"), isProbablyEmail.error, "Invalid email address");
41161
41156
  return /*#__PURE__*/React__default.createElement(FormContainer$1, {
41162
41157
  variant: variant,
41163
41158
  role: "form",