@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.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(
|
|
25947
|
-
variant:
|
|
25948
|
-
|
|
25949
|
-
|
|
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
|
-
"
|
|
25958
|
-
|
|
25959
|
-
|
|
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, "
|
|
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",
|