@rolster/react-components 18.10.10 → 18.10.11
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 -5
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +7 -5
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/organisms/Datatable/Datatable.d.ts +3 -2
- package/dist/esm/components/organisms/Datatable/Datatable.js +7 -5
- package/dist/esm/components/organisms/Datatable/Datatable.js.map +1 -1
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -1525,14 +1525,16 @@ function RlsDatatableHeader({ children }) {
|
|
|
1525
1525
|
return jsxRuntime.jsx("tr", { className: "rls-datatable__header", children: children });
|
|
1526
1526
|
}
|
|
1527
1527
|
function RlsDatatableTitle({ children, className, control }) {
|
|
1528
|
-
return (jsxRuntime.jsx("th", { className:
|
|
1528
|
+
return (jsxRuntime.jsx("th", { className: (renderClassStatus('rls-datatable__title', { control }) +
|
|
1529
|
+
` ${className || ''}`).trim(), children: children }));
|
|
1529
1530
|
}
|
|
1530
|
-
function RlsDatatableData({ children, className }) {
|
|
1531
|
-
return jsxRuntime.jsx("tr", { className:
|
|
1531
|
+
function RlsDatatableData({ children, className, error }) {
|
|
1532
|
+
return (jsxRuntime.jsx("tr", { className: (renderClassStatus('rls-datatable__data', { error }) +
|
|
1533
|
+
` ${className || ''}`).trim(), children: children }));
|
|
1532
1534
|
}
|
|
1533
1535
|
function RlsDatatableCell({ children, className, control, overflow }) {
|
|
1534
|
-
return (jsxRuntime.jsx("th", { className:
|
|
1535
|
-
|
|
1536
|
+
return (jsxRuntime.jsx("th", { className: (renderClassStatus('rls-datatable__cell', { control, overflow }) +
|
|
1537
|
+
` ${className || ''}`).trim(), children: children }));
|
|
1536
1538
|
}
|
|
1537
1539
|
function RlsDatatable({ children, footer, header, rlsTheme }) {
|
|
1538
1540
|
return (jsxRuntime.jsxs("div", { className: "rls-datatable", "rls-theme": rlsTheme, children: [jsxRuntime.jsxs("table", { children: [header && jsxRuntime.jsx("thead", { className: "rls-datatable__thead", children: header }), jsxRuntime.jsx("tbody", { className: "rls-datatable__tbody", children: children })] }), footer && jsxRuntime.jsx("div", { className: "rls-datatable__tfooter", children: footer })] }));
|