@mxenabled/connect-widget 0.4.0 → 0.4.1
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.es.js +4 -5
- package/dist/index.es.js.map +1 -1
- package/dist/lastBuild.txt +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -57596,7 +57596,7 @@ const Credentials = React__default.forwardRef(
|
|
|
57596
57596
|
onSubmit: (e) => e.preventDefault(),
|
|
57597
57597
|
style: styles.form,
|
|
57598
57598
|
children: [
|
|
57599
|
-
credentials.map((field
|
|
57599
|
+
credentials.map((field) => /* @__PURE__ */ jsxRuntimeExports.jsx(SlideDown, { delay: getNextDelay(), children: field.field_type === CREDENTIAL_FIELD_TYPES.PASSWORD ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: errors[field.field_name] ? styles.inputError : styles.input, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
57600
57600
|
ProtectedTextField,
|
|
57601
57601
|
{
|
|
57602
57602
|
InputProps: { endAdornment: /* @__PURE__ */ jsxRuntimeExports.jsx(PasswordShowButton, {}) },
|
|
@@ -57626,7 +57626,6 @@ const Credentials = React__default.forwardRef(
|
|
|
57626
57626
|
{
|
|
57627
57627
|
autoCapitalize: "none",
|
|
57628
57628
|
autoComplete: "new-password",
|
|
57629
|
-
autoFocus: i === 0,
|
|
57630
57629
|
disabled: isProcessingMember,
|
|
57631
57630
|
error: !!errors[field.field_name],
|
|
57632
57631
|
fullWidth: true,
|
|
@@ -64896,7 +64895,7 @@ const NON_CONECTED_REASONS = [
|
|
|
64896
64895
|
];
|
|
64897
64896
|
|
|
64898
64897
|
const ConnectNavigationHeader = (props) => {
|
|
64899
|
-
const
|
|
64898
|
+
const goBackButtonContainerRef = useRef();
|
|
64900
64899
|
const tokens = useTokens();
|
|
64901
64900
|
const styles = getStyles$2(tokens);
|
|
64902
64901
|
const step = useSelector(
|
|
@@ -64914,7 +64913,7 @@ const ConnectNavigationHeader = (props) => {
|
|
|
64914
64913
|
}, [props.stepComponentRef]);
|
|
64915
64914
|
useEffect(() => {
|
|
64916
64915
|
if (shouldShowGlobalBackButton) {
|
|
64917
|
-
|
|
64916
|
+
goBackButtonContainerRef.current.focus();
|
|
64918
64917
|
}
|
|
64919
64918
|
}, [shouldShowGlobalBackButton, step]);
|
|
64920
64919
|
const backButtonNavigationHandler = () => {
|
|
@@ -64924,7 +64923,7 @@ const ConnectNavigationHeader = (props) => {
|
|
|
64924
64923
|
props.connectGoBack();
|
|
64925
64924
|
}
|
|
64926
64925
|
};
|
|
64927
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test": "navigation-header", style: styles.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: styles.content, children: shouldShowGlobalBackButton && /* @__PURE__ */ jsxRuntimeExports.jsx(GoBackButton, { handleGoBack: backButtonNavigationHandler
|
|
64926
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { "data-test": "navigation-header", style: styles.container, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: goBackButtonContainerRef, style: styles.content, tabIndex: -1, children: shouldShowGlobalBackButton && /* @__PURE__ */ jsxRuntimeExports.jsx(GoBackButton, { handleGoBack: backButtonNavigationHandler }) }) });
|
|
64928
64927
|
};
|
|
64929
64928
|
ConnectNavigationHeader.propTypes = {
|
|
64930
64929
|
connectGoBack: PropTypes$1.func.isRequired,
|