@rolster/react-components 18.21.39 → 18.21.41
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/index.js +7 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +8 -8
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/Input/Input.js +1 -2
- package/dist/esm/components/atoms/Input/Input.js.map +1 -1
- package/dist/esm/components/molecules/FieldNumber/FieldNumber.d.ts +5 -1
- package/dist/esm/components/molecules/FieldNumber/FieldNumber.js.map +1 -1
- package/dist/esm/components/organisms/Datatable/Datatable.d.ts +3 -3
- package/dist/esm/components/organisms/Datatable/Datatable.js +6 -6
- package/dist/esm/components/organisms/Datatable/Datatable.js.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1569,7 +1569,7 @@ function RlsInput({ children, decimals, disabled, formControl, identifier, onEnt
|
|
|
1569
1569
|
const _onChange = require$$0.useCallback((event) => {
|
|
1570
1570
|
const valueInput = event.target.value;
|
|
1571
1571
|
const value = type === 'number'
|
|
1572
|
-
?
|
|
1572
|
+
? parseFloat((+valueInput).toFixed(decimals))
|
|
1573
1573
|
: valueInput;
|
|
1574
1574
|
isChangeInternal.current = true;
|
|
1575
1575
|
onValue && onValue(value);
|
|
@@ -2389,16 +2389,16 @@ function RlsDatatableSubheader({ children, className, identifier, rlsTheme }) {
|
|
|
2389
2389
|
}, [className]);
|
|
2390
2390
|
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameSubheader, "rls-theme": rlsTheme, children: children }));
|
|
2391
2391
|
}
|
|
2392
|
-
function RlsDatatableRecord({ children, className, error, identifier, info, overflow,
|
|
2392
|
+
function RlsDatatableRecord({ children, className, error, identifier, info, overflow, success, warning, rlsTheme }) {
|
|
2393
2393
|
const classNameRecord = require$$0.useMemo(() => {
|
|
2394
|
-
return renderClassStatus('rls-datatable__record', { error, info, overflow,
|
|
2395
|
-
}, [className, error, info, overflow,
|
|
2394
|
+
return renderClassStatus('rls-datatable__record', { error, info, overflow, success, warning }, className);
|
|
2395
|
+
}, [className, error, info, overflow, success, warning]);
|
|
2396
2396
|
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameRecord, "rls-theme": rlsTheme, children: children }));
|
|
2397
2397
|
}
|
|
2398
|
-
function RlsDatatableTotals({ children, className, error, identifier, info, overflow,
|
|
2398
|
+
function RlsDatatableTotals({ children, className, error, identifier, info, overflow, success, warning, rlsTheme }) {
|
|
2399
2399
|
const classNameTotals = require$$0.useMemo(() => {
|
|
2400
|
-
return renderClassStatus('rls-datatable__totals', { error, info, overflow,
|
|
2401
|
-
}, [className, error, info, overflow,
|
|
2400
|
+
return renderClassStatus('rls-datatable__totals', { error, info, overflow, success, warning }, className);
|
|
2401
|
+
}, [className, error, info, overflow, success, warning]);
|
|
2402
2402
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameTotals, "rls-theme": rlsTheme, children: children }));
|
|
2403
2403
|
}
|
|
2404
2404
|
function RlsDatatableCell({ children, className, control, identifier, overflow, rlsTheme }) {
|