@rolster/react-components 18.21.40 → 18.21.42
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 +11 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +11 -9
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/atoms/Input/Input.d.ts +1 -1
- package/dist/esm/components/atoms/Input/Input.js +5 -3
- package/dist/esm/components/atoms/Input/Input.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/dist/esm/components/types.d.ts +2 -0
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1554,7 +1554,7 @@ function RlsCheckBoxControl({ formControl, disabled, identifier, rlsTheme }) {
|
|
|
1554
1554
|
return (jsxRuntimeExports.jsx(RlsCheckBox, { identifier: identifier, checked: !!formControl.value, disabled: disabled, onClick: onClick, rlsTheme: rlsTheme }));
|
|
1555
1555
|
}
|
|
1556
1556
|
|
|
1557
|
-
function RlsInput({ children, decimals, disabled, formControl, identifier, onEnter, onKeyDown, onKeyUp, onValue, placeholder, readOnly, type, value }) {
|
|
1557
|
+
function RlsInput({ children, decimals, disabled, formControl, identifier, onBlur, onEnter, onFocus, onKeyDown, onKeyUp, onValue, placeholder, readOnly, type, value }) {
|
|
1558
1558
|
const valueInitial = formControl?.value ?? value ? String(value) : '';
|
|
1559
1559
|
const [valueInput, setValueInput] = require$$0.useState(valueInitial);
|
|
1560
1560
|
const [focused, setFocused] = require$$0.useState(false);
|
|
@@ -1586,11 +1586,13 @@ function RlsInput({ children, decimals, disabled, formControl, identifier, onEnt
|
|
|
1586
1586
|
const _onFocus = require$$0.useCallback(() => {
|
|
1587
1587
|
formControl?.focus();
|
|
1588
1588
|
setFocused(() => true);
|
|
1589
|
-
|
|
1589
|
+
onFocus && onFocus();
|
|
1590
|
+
}, [formControl, onFocus]);
|
|
1590
1591
|
const _onBlur = require$$0.useCallback(() => {
|
|
1591
1592
|
formControl?.blur();
|
|
1592
1593
|
setFocused(() => false);
|
|
1593
|
-
|
|
1594
|
+
onBlur && onBlur();
|
|
1595
|
+
}, [formControl, onBlur]);
|
|
1594
1596
|
const className = require$$0.useMemo(() => {
|
|
1595
1597
|
return renderClassStatus('rls-input', {
|
|
1596
1598
|
disabled: formControl?.disabled || disabled,
|
|
@@ -2389,16 +2391,16 @@ function RlsDatatableSubheader({ children, className, identifier, rlsTheme }) {
|
|
|
2389
2391
|
}, [className]);
|
|
2390
2392
|
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameSubheader, "rls-theme": rlsTheme, children: children }));
|
|
2391
2393
|
}
|
|
2392
|
-
function RlsDatatableRecord({ children, className, error, identifier, info, overflow,
|
|
2394
|
+
function RlsDatatableRecord({ children, className, error, identifier, info, overflow, success, warning, rlsTheme }) {
|
|
2393
2395
|
const classNameRecord = require$$0.useMemo(() => {
|
|
2394
|
-
return renderClassStatus('rls-datatable__record', { error, info, overflow,
|
|
2395
|
-
}, [className, error, info, overflow,
|
|
2396
|
+
return renderClassStatus('rls-datatable__record', { error, info, overflow, success, warning }, className);
|
|
2397
|
+
}, [className, error, info, overflow, success, warning]);
|
|
2396
2398
|
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameRecord, "rls-theme": rlsTheme, children: children }));
|
|
2397
2399
|
}
|
|
2398
|
-
function RlsDatatableTotals({ children, className, error, identifier, info, overflow,
|
|
2400
|
+
function RlsDatatableTotals({ children, className, error, identifier, info, overflow, success, warning, rlsTheme }) {
|
|
2399
2401
|
const classNameTotals = require$$0.useMemo(() => {
|
|
2400
|
-
return renderClassStatus('rls-datatable__totals', { error, info, overflow,
|
|
2401
|
-
}, [className, error, info, overflow,
|
|
2402
|
+
return renderClassStatus('rls-datatable__totals', { error, info, overflow, success, warning }, className);
|
|
2403
|
+
}, [className, error, info, overflow, success, warning]);
|
|
2402
2404
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameTotals, "rls-theme": rlsTheme, children: children }));
|
|
2403
2405
|
}
|
|
2404
2406
|
function RlsDatatableCell({ children, className, control, identifier, overflow, rlsTheme }) {
|