@rolster/react-components 18.20.4 → 18.20.5

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 CHANGED
@@ -2172,6 +2172,9 @@ function RlsDatatableHeader({ children, identifier }) {
2172
2172
  function RlsDatatableTitle({ children, className, control, identifier }) {
2173
2173
  return (jsxRuntimeExports.jsx("th", { id: identifier, className: useRenderClassStatus('rls-datatable__title', { control }, className).trim(), children: children }));
2174
2174
  }
2175
+ function RlsDatatableSubheader({ children, className, identifier }) {
2176
+ return (jsxRuntimeExports.jsx("tr", { id: identifier, className: useRenderClassStatus('rls-datatable__subheader', {}, className).trim(), children: children }));
2177
+ }
2175
2178
  function RlsDatatableRecord({ children, className, error, identifier, info, successs, warning }) {
2176
2179
  return (jsxRuntimeExports.jsx("tr", { id: identifier, className: useRenderClassStatus('rls-datatable__record', { error, info, successs, warning }, className).trim(), children: children }));
2177
2180
  }
@@ -2184,10 +2187,10 @@ function RlsDatatableCell({ children, className, control, identifier, overflow }
2184
2187
  function RlsDatatableData({ children, className, control, identifier, overflow }) {
2185
2188
  return (jsxRuntimeExports.jsx("div", { id: identifier, className: useRenderClassStatus('rls-datatable__data', { control, overflow }, className).trim(), children: children }));
2186
2189
  }
2187
- function RlsDatatable({ children, datatable, footer, header, identifier, rlsTheme, summary }) {
2190
+ function RlsDatatable({ children, datatable, footer, header, identifier, rlsTheme, summary, toolbar }) {
2188
2191
  return (jsxRuntimeExports.jsxs("div", { className: useRenderClassStatus('rls-datatable', {
2189
2192
  scrolleable: datatable?.scrolleable
2190
- }), "rls-theme": rlsTheme, children: [jsxRuntimeExports.jsxs("table", { id: identifier, children: [header && jsxRuntimeExports.jsx("thead", { className: "rls-datatable__thead", children: header }), jsxRuntimeExports.jsx("tbody", { ref: datatable?.tableRef, className: "rls-datatable__tbody", children: children })] }), summary && jsxRuntimeExports.jsx("div", { className: "rls-datatable__tsummary", children: summary }), footer && jsxRuntimeExports.jsx("div", { className: "rls-datatable__tfooter", children: footer })] }));
2193
+ }), "rls-theme": rlsTheme, children: [toolbar && jsxRuntimeExports.jsx("div", { className: "rls-datatable__toolbar", children: toolbar }), jsxRuntimeExports.jsxs("table", { id: identifier, children: [header && jsxRuntimeExports.jsx("thead", { className: "rls-datatable__head", children: header }), jsxRuntimeExports.jsx("tbody", { ref: datatable?.tableRef, className: "rls-datatable__body", children: children })] }), summary && jsxRuntimeExports.jsx("div", { className: "rls-datatable__summary", children: summary }), footer && jsxRuntimeExports.jsx("div", { className: "rls-datatable__footer", children: footer })] }));
2191
2194
  }
2192
2195
 
2193
2196
  const DURATION_ANIMATION$1 = 240;
@@ -2693,6 +2696,7 @@ exports.RlsDatatableCell = RlsDatatableCell;
2693
2696
  exports.RlsDatatableData = RlsDatatableData;
2694
2697
  exports.RlsDatatableHeader = RlsDatatableHeader;
2695
2698
  exports.RlsDatatableRecord = RlsDatatableRecord;
2699
+ exports.RlsDatatableSubheader = RlsDatatableSubheader;
2696
2700
  exports.RlsDatatableTitle = RlsDatatableTitle;
2697
2701
  exports.RlsDatatableTotals = RlsDatatableTotals;
2698
2702
  exports.RlsFieldAutocomplete = RlsFieldAutocomplete;