@rolster/react-components 18.26.3 → 18.26.4

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.
@@ -154,8 +154,8 @@
154
154
  color: inherit;
155
155
  line-height: inherit;
156
156
  font-weight: var(--pvt-label-font-weight);
157
- font-size: var(--pvt-label--font-size);
158
- letter-spacing: var(--pvt-label--letter-spacing);
157
+ font-size: var(--pvt-label-font-size);
158
+ letter-spacing: var(--pvt-label-letter-spacing);
159
159
  }
160
160
  .rls-breadcrumb__label:first-child::before {
161
161
  display: none;
package/dist/cjs/index.js CHANGED
@@ -1723,10 +1723,11 @@ function RlsContent({ children, identifier, rlsTheme }) {
1723
1723
  return (jsxRuntimeExports.jsx("div", { id: identifier, className: "rls-app__page__content", "rls-theme": rlsTheme, children: children }));
1724
1724
  }
1725
1725
 
1726
- const errorsDictionary = {
1726
+ const errors = {
1727
1727
  es: {
1728
1728
  alphabetic: 'Campo solo permite caracteres',
1729
1729
  alphanumber: 'Campo solo permite caracteres y número',
1730
+ checked: 'Campo debe ser seleccionado',
1730
1731
  decimal: 'Campo debe ser número decimal',
1731
1732
  defined: 'Campo debe estar definido',
1732
1733
  email: 'Campo debe ser correo electrónico',
@@ -1737,18 +1738,19 @@ const errorsDictionary = {
1737
1738
  maxValue: 'Campo debe tener un valor máximo de {thanValue}',
1738
1739
  minValue: 'Campo debe tener un valor mínimo de {thanValue}',
1739
1740
  nickname: 'Campo inválido para nombre de usuario',
1740
- onlynumber: 'Campo debe ser númerico',
1741
+ onlyNumber: 'Campo debe ser númerico',
1741
1742
  password: 'Campo no permitido para password',
1742
- reqlength: 'Campo debe tener {length} caracter(es)',
1743
1743
  required: 'Campo es requerido',
1744
1744
  strMinlength: 'Campo debe tener mínimo {length} caracter(es)',
1745
1745
  strMaxlength: 'Campo debe tener máximo {length} caracter(es)',
1746
+ strReqLength: 'Campo debe tener {length} caracter(es)',
1746
1747
  textonly: 'Campo solo permite caracteres (sin espacio)',
1747
1748
  _unknown: 'Campo inválido {error}'
1748
1749
  },
1749
1750
  en: {
1750
1751
  alphabetic: 'Field only allows characters',
1751
1752
  alphanumber: 'Field only allows characters and number',
1753
+ checked: 'Field must be selected',
1752
1754
  decimal: 'Field must be decimal number',
1753
1755
  defined: 'Field must be defined',
1754
1756
  email: 'Field must be email',
@@ -1759,9 +1761,9 @@ const errorsDictionary = {
1759
1761
  minValue: 'Field must have a minimum value of {thanValue}',
1760
1762
  maxValue: 'Field must have a maximum value of {thanValue}',
1761
1763
  nickname: 'Invalid field for username',
1762
- onlynumber: 'Field must be numeric',
1764
+ onlyNumber: 'Field must be numeric',
1763
1765
  password: 'Field not allowed for password',
1764
- reqlength: 'Field must be {length} characters',
1766
+ strReqLength: 'Field must be {length} characters',
1765
1767
  required: 'Field is required',
1766
1768
  strMinlength: 'Field must have minimum {length} characters',
1767
1769
  strMaxlength: 'Field must have maximum {length} characters',
@@ -1771,6 +1773,7 @@ const errorsDictionary = {
1771
1773
  fr: {
1772
1774
  alphabetic: 'Field only allows characters',
1773
1775
  alphanumber: 'Field only allows characters and number',
1776
+ checked: 'Field must be selected',
1774
1777
  decimal: 'Field must be decimal number',
1775
1778
  defined: 'Field must be defined',
1776
1779
  email: 'Field must be email',
@@ -1781,9 +1784,9 @@ const errorsDictionary = {
1781
1784
  minValue: 'Field must have a minimum value of {thanValue}',
1782
1785
  maxValue: 'Field must have a maximum value of {thanValue}',
1783
1786
  nickname: 'Invalid field for username',
1784
- onlynumber: 'Field must be numeric',
1787
+ onlyNumber: 'Field must be numeric',
1785
1788
  password: 'Field not allowed for password',
1786
- reqlength: 'Field must be {length} characters',
1789
+ strReqLength: 'Field must be {length} characters',
1787
1790
  required: 'Field is required',
1788
1791
  strMinlength: 'Field must have minimum {length} characters',
1789
1792
  strMaxlength: 'Field must have maximum {length} characters',
@@ -1793,6 +1796,7 @@ const errorsDictionary = {
1793
1796
  pt: {
1794
1797
  alphabetic: 'Field only allows characters',
1795
1798
  alphanumber: 'Field only allows characters and number',
1799
+ checked: 'Field must be selected',
1796
1800
  decimal: 'Field must be decimal number',
1797
1801
  defined: 'Field must be defined',
1798
1802
  email: 'Field must be email',
@@ -1803,21 +1807,25 @@ const errorsDictionary = {
1803
1807
  minValue: 'Field must have a minimum value of {thanValue}',
1804
1808
  maxValue: 'Field must have a maximum value of {thanValue}',
1805
1809
  nickname: 'Invalid field for username',
1806
- onlynumber: 'Field must be numeric',
1810
+ onlyNumber: 'Field must be numeric',
1807
1811
  password: 'Field not allowed for password',
1808
- reqlength: 'Field must be {thanValue} characters',
1812
+ strReqLength: 'Field must be {length} characters',
1809
1813
  required: 'Field is required',
1810
- strMinlength: 'Field must have minimum {thanValue} characters',
1811
- strMaxlength: 'Field must have maximum {thanValue} characters',
1814
+ strMinlength: 'Field must have minimum {length} characters',
1815
+ strMaxlength: 'Field must have maximum {length} characters',
1812
1816
  textonly: 'Field only allows characters (no space)',
1813
1817
  _unknown: 'Invalid field {error}'
1814
1818
  }
1815
1819
  };
1816
- let _msgErrorsI18n = i18n.i18n(errorsDictionary);
1820
+ let _msgErrorsI18n = i18n.i18n(errors);
1817
1821
  function setErrorsI18n(dictionary) {
1818
- _msgErrorsI18n = i18n.i18n(Object.entries(errorsDictionary).reduce((_dictionary, [key, value]) => {
1819
- _dictionary[key] = { ...value, ...dictionary[key] };
1820
- return _dictionary;
1822
+ _msgErrorsI18n = i18n.i18n(Object.entries(errors).reduce((errors, [key, value]) => {
1823
+ // Merge keys from dictionary in errors i18n
1824
+ errors[key] = {
1825
+ ...value,
1826
+ ...dictionary[key]
1827
+ };
1828
+ return errors;
1821
1829
  }, {}));
1822
1830
  }
1823
1831
  function msgErrorsI18n(key, language, interpolators) {