ywana-core8 0.1.17 → 0.1.19

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.umd.js CHANGED
@@ -1359,7 +1359,9 @@
1359
1359
  onEnter = props.onEnter,
1360
1360
  onClick = props.onClick,
1361
1361
  onFocus = props.onFocus,
1362
- onBlur = props.onBlur;
1362
+ onBlur = props.onBlur,
1363
+ _props$autoComplete = props.autoComplete,
1364
+ autoComplete = _props$autoComplete === void 0 ? "off" : _props$autoComplete;
1363
1365
  function onKeyPress(event) {
1364
1366
  var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
1365
1367
  if (key == 13) {
@@ -1415,7 +1417,8 @@
1415
1417
  onFocus: focus,
1416
1418
  onBlur: blur,
1417
1419
  readOnly: readOnly,
1418
- step: "any"
1420
+ step: "any",
1421
+ autocomplete: autoComplete
1419
1422
  }), readOnly === false && canClear && value && value.length > 0 ? /*#__PURE__*/React__default["default"].createElement(Icon, {
1420
1423
  icon: "close",
1421
1424
  clickable: true,
@@ -1754,6 +1757,7 @@
1754
1757
  onEnter: ok,
1755
1758
  outlined: true
1756
1759
  }), /*#__PURE__*/React__default["default"].createElement(TextField, {
1760
+ id: "loginbox-password",
1757
1761
  label: tx(passwordLabel),
1758
1762
  value: password,
1759
1763
  onChange: changePassword,
@@ -1785,37 +1789,37 @@
1785
1789
 
1786
1790
  // Verificar longitud mínima y máxima
1787
1791
  if (contraseña.length < 15 || contraseña.length > 50) {
1788
- error = 'La contraseña debe tener entre 15 y 50 caracteres.';
1792
+ error = 'The password must be between 15 and 50 characters.';
1789
1793
  return [false, error];
1790
1794
  }
1791
1795
 
1792
1796
  // Verificar al menos una letra (mayúscula o minúscula)
1793
1797
  if (!/[A-Za-z]/.test(contraseña)) {
1794
- error = 'La contraseña debe contener al menos una letra (A-Z o a-z).';
1798
+ error = 'The password must contain at least one letter (A-Z or a-z).';
1795
1799
  return [false, error];
1796
1800
  }
1797
1801
 
1798
1802
  // Verificar al menos un número
1799
1803
  if (!/[0-9]/.test(contraseña)) {
1800
- error = 'La contraseña debe contener al menos un número (0-9).';
1804
+ error = 'The password must contain at least one number (0-9).';
1801
1805
  return [false, error];
1802
1806
  }
1803
1807
 
1804
1808
  // Verificar al menos una minúscula
1805
1809
  if (!/[a-z]/.test(contraseña)) {
1806
- error = 'La contraseña debe contener al menos una letra en minúscula (a-z).';
1810
+ error = 'The password must contain at least one lowercase letter (a-z).';
1807
1811
  return [false, error];
1808
1812
  }
1809
1813
 
1810
1814
  // Verificar al menos una mayúscula
1811
1815
  if (!/[A-Z]/.test(contraseña)) {
1812
- error = 'La contraseña debe contener al menos una letra en mayúscula (A-Z).';
1816
+ error = 'The password must contain at least one uppercase letter (A-Z).';
1813
1817
  return [false, error];
1814
1818
  }
1815
1819
 
1816
1820
  // Verificar al menos un carácter especial
1817
1821
  if (!/[<>+&!?*\-_%\.:=]/.test(contraseña)) {
1818
- error = 'La contraseña debe contener al menos un carácter especial (< > + & ! ? * - _ % . : =).';
1822
+ error = 'The password must contain at least one special character (< > + & ! ? * - _ % . : =).';
1819
1823
  return [false, error];
1820
1824
  }
1821
1825
 
@@ -3995,6 +3999,8 @@
3995
3999
  return /*#__PURE__*/React__default["default"].createElement("div", {
3996
4000
  className: "file-searchbox"
3997
4001
  }, /*#__PURE__*/React__default["default"].createElement(TextField, {
4002
+ id: "files-search-box",
4003
+ type: "search",
3998
4004
  placeholder: "Search...",
3999
4005
  onChange: searchChanged,
4000
4006
  outlined: true