@movalib/movalib-commons 1.0.52 → 1.0.53

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.
@@ -148,7 +148,7 @@ var MovaLogin = function (_a) {
148
148
  */
149
149
  var dialogForgotPassword = function () {
150
150
  var defaultMessage = "Êtes-vous sûr de vouloir continuer ?";
151
- return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, __assign({ open: openForgotPassword, onClose: function () { return setOpenForgotPassword(false); }, "aria-labelledby": "forgot-password-dialog-title", "aria-describedby": "forgot-password-dialog-description" }, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, __assign({ id: "forgot-password-title" }, { children: "R\u00E9cup\u00E9ration du mot de passe" })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogContentText, __assign({ id: "forgot-password-dialog-description", sx: { mb: 2 } }, { children: "Saisissez votre email pour proc\u00E9der \u00E0 la r\u00E9initialisation de votre mot de passe." })), (0, jsx_runtime_1.jsx)(material_1.TextField, { margin: "normal", required: true, fullWidth: true, id: "email", label: "Adresse email", name: "email", autoComplete: "email", autoFocus: true, onChange: function (e) { return handleInputChange(e); }, value: form.email.value, error: !form.email.isValid, helperText: form.email.error, disabled: !(form.email.value && (0, Validator_1.validateEmail)(form.email.value)) })] }), (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, __assign({ onClick: function (e) { return handleSubmitForgotPassword(e); }, color: "inherit", autoFocus: true, sx: { ml: 1 } }, { children: "Envoyer ma demande" })) })] })));
151
+ return ((0, jsx_runtime_1.jsxs)(material_1.Dialog, __assign({ open: openForgotPassword, onClose: function () { return setOpenForgotPassword(false); }, "aria-labelledby": "forgot-password-dialog-title", "aria-describedby": "forgot-password-dialog-description" }, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogTitle, __assign({ id: "forgot-password-title" }, { children: "R\u00E9cup\u00E9ration du mot de passe" })), (0, jsx_runtime_1.jsxs)(material_1.DialogContent, { children: [(0, jsx_runtime_1.jsx)(material_1.DialogContentText, __assign({ id: "forgot-password-dialog-description", sx: { mb: 2 } }, { children: "Saisissez votre email pour proc\u00E9der \u00E0 la r\u00E9initialisation de votre mot de passe." })), (0, jsx_runtime_1.jsx)(material_1.TextField, { margin: "normal", autoFocus: true, required: true, fullWidth: true, id: "email", label: "Adresse email", name: "email", autoComplete: "email", onChange: function (e) { return handleInputChange(e); }, value: form.email.value, error: !form.email.isValid, helperText: form.email.error })] }), (0, jsx_runtime_1.jsx)(material_1.DialogActions, { children: (0, jsx_runtime_1.jsx)(material_1.Button, __assign({ onClick: function (e) { return handleSubmitForgotPassword(e); }, color: "primary", disabled: !(form.email.value && (0, Validator_1.validateEmail)(form.email.value)), sx: { ml: 1 } }, { children: "Envoyer ma demande" })) })] })));
152
152
  };
153
153
  return ((0, jsx_runtime_1.jsxs)("div", __assign({ style: styles }, { children: [(0, jsx_runtime_1.jsx)("img", { src: leaf_green_large_png_1.default, style: { position: 'fixed',
154
154
  float: 'left',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@movalib/movalib-commons",
3
- "version": "1.0.52",
3
+ "version": "1.0.53",
4
4
  "description": "Bibliothèque d'objets communs à l'ensemble des projets React de Movalib",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/MovaLogin.tsx CHANGED
@@ -147,23 +147,26 @@ const MovaLogin: FunctionComponent<MovaLoginProps> = ({ loading, movaAppType, on
147
147
  </DialogContentText>
148
148
  <TextField
149
149
  margin="normal"
150
+ autoFocus
150
151
  required
151
152
  fullWidth
152
153
  id="email"
153
154
  label="Adresse email"
154
155
  name="email"
155
156
  autoComplete="email"
156
- autoFocus
157
157
  onChange={e => handleInputChange(e)}
158
158
  value={form.email.value}
159
159
  error={!form.email.isValid}
160
160
  helperText={form.email.error}
161
- disabled={!(form.email.value && validateEmail(form.email.value))}
162
161
  />
163
162
  </DialogContent>
164
163
  <DialogActions>
165
- <Button onClick={(e) => handleSubmitForgotPassword(e)} color="inherit" autoFocus sx={{ ml: 1}}>
166
- Envoyer ma demande
164
+ <Button onClick={(e) => handleSubmitForgotPassword(e)}
165
+ color="primary"
166
+ disabled={!(form.email.value && validateEmail(form.email.value))}
167
+ sx={{ ml: 1}}>
168
+
169
+ Envoyer ma demande
167
170
  </Button>
168
171
  </DialogActions>
169
172
  </Dialog>