@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 +10 -15
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +10 -15
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/.DS_Store +0 -0
- package/src/components/atoms/form-layouts/FormInput.js +9 -16
- package/src/components/molecules/email-form/EmailForm.js +1 -2
- package/src/components/molecules/email-form/EmailForm.stories.js +0 -210
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(
|
|
25939
|
-
variant:
|
|
25940
|
-
|
|
25941
|
-
|
|
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
|
-
"
|
|
25950
|
-
|
|
25951
|
-
|
|
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, "
|
|
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",
|