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