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