@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/es/index.js CHANGED
@@ -1523,14 +1523,16 @@ function RlsDatatableHeader({ children }) {
1523
1523
  return jsx("tr", { className: "rls-datatable__header", children: children });
1524
1524
  }
1525
1525
  function RlsDatatableTitle({ children, className, control }) {
1526
- return (jsx("th", { className: `${className} ` + renderClassStatus('rls-datatable__title', { control }), children: children }));
1526
+ return (jsx("th", { className: (renderClassStatus('rls-datatable__title', { control }) +
1527
+ ` ${className || ''}`).trim(), children: children }));
1527
1528
  }
1528
- function RlsDatatableData({ children, className }) {
1529
- return jsx("tr", { className: `rls-datatable__data ${className}`, children: children });
1529
+ function RlsDatatableData({ children, className, error }) {
1530
+ return (jsx("tr", { className: (renderClassStatus('rls-datatable__data', { error }) +
1531
+ ` ${className || ''}`).trim(), children: children }));
1530
1532
  }
1531
1533
  function RlsDatatableCell({ children, className, control, overflow }) {
1532
- return (jsx("th", { className: `${className} ` +
1533
- renderClassStatus('rls-datatable__cell', { control, overflow }), children: children }));
1534
+ return (jsx("th", { className: (renderClassStatus('rls-datatable__cell', { control, overflow }) +
1535
+ ` ${className || ''}`).trim(), children: children }));
1534
1536
  }
1535
1537
  function RlsDatatable({ children, footer, header, rlsTheme }) {
1536
1538
  return (jsxs("div", { className: "rls-datatable", "rls-theme": rlsTheme, children: [jsxs("table", { children: [header && jsx("thead", { className: "rls-datatable__thead", children: header }), jsx("tbody", { className: "rls-datatable__tbody", children: children })] }), footer && jsx("div", { className: "rls-datatable__tfooter", children: footer })] }));