@rolster/react-components 18.21.10 → 18.21.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 +14 -14
- package/dist/cjs/index.js.map +1 -1
- package/dist/es/index.js +14 -14
- package/dist/es/index.js.map +1 -1
- package/dist/esm/components/organisms/Datatable/Datatable.d.ts +7 -7
- package/dist/esm/components/organisms/Datatable/Datatable.js +14 -14
- package/dist/esm/components/organisms/Datatable/Datatable.js.map +1 -1
- package/package.json +1 -1
package/dist/es/index.js
CHANGED
|
@@ -2324,38 +2324,38 @@ function RlsDatatable({ children, datatable, footer, header, identifier, rlsThem
|
|
|
2324
2324
|
}, [datatable]);
|
|
2325
2325
|
return (jsxRuntimeExports.jsxs("div", { className: className, "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 })] }));
|
|
2326
2326
|
}
|
|
2327
|
-
function RlsDatatableHeader({ children, identifier }) {
|
|
2328
|
-
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: "rls-datatable__header", children: children }));
|
|
2327
|
+
function RlsDatatableHeader({ children, identifier, rlsTheme }) {
|
|
2328
|
+
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: "rls-datatable__header", "rls-theme": rlsTheme, children: children }));
|
|
2329
2329
|
}
|
|
2330
|
-
function RlsDatatableTitle({ children, className, control, identifier }) {
|
|
2330
|
+
function RlsDatatableTitle({ children, className, control, identifier, rlsTheme }) {
|
|
2331
2331
|
const classNameTitle = useMemo(() => {
|
|
2332
2332
|
return renderClassStatus('rls-datatable__title', { control }, className);
|
|
2333
2333
|
}, [className, control]);
|
|
2334
|
-
return (jsxRuntimeExports.jsx("th", { id: identifier, className: classNameTitle, children: children }));
|
|
2334
|
+
return (jsxRuntimeExports.jsx("th", { id: identifier, className: classNameTitle, "rls-theme": rlsTheme, children: children }));
|
|
2335
2335
|
}
|
|
2336
|
-
function RlsDatatableSubheader({ children, className, identifier }) {
|
|
2336
|
+
function RlsDatatableSubheader({ children, className, identifier, rlsTheme }) {
|
|
2337
2337
|
const classNameSubheader = useMemo(() => {
|
|
2338
2338
|
return renderClassStatus('rls-datatable__subheader', {}, className);
|
|
2339
2339
|
}, [className]);
|
|
2340
|
-
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameSubheader, children: children }));
|
|
2340
|
+
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameSubheader, "rls-theme": rlsTheme, children: children }));
|
|
2341
2341
|
}
|
|
2342
|
-
function RlsDatatableRecord({ children, className, error, identifier, info, overflow, successs, warning }) {
|
|
2342
|
+
function RlsDatatableRecord({ children, className, error, identifier, info, overflow, successs, warning, rlsTheme }) {
|
|
2343
2343
|
const classNameRecord = useMemo(() => {
|
|
2344
2344
|
return renderClassStatus('rls-datatable__record', { error, info, overflow, successs, warning }, className);
|
|
2345
2345
|
}, [className, error, info, overflow, successs, warning]);
|
|
2346
|
-
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameRecord, children: children }));
|
|
2346
|
+
return (jsxRuntimeExports.jsx("tr", { id: identifier, className: classNameRecord, "rls-theme": rlsTheme, children: children }));
|
|
2347
2347
|
}
|
|
2348
|
-
function RlsDatatableTotals({ children, className, error, identifier, info, overflow, successs, warning }) {
|
|
2348
|
+
function RlsDatatableTotals({ children, className, error, identifier, info, overflow, successs, warning, rlsTheme }) {
|
|
2349
2349
|
const classNameTotals = useMemo(() => {
|
|
2350
2350
|
return renderClassStatus('rls-datatable__totals', { error, info, overflow, successs, warning }, className);
|
|
2351
2351
|
}, [className, error, info, overflow, successs, warning]);
|
|
2352
|
-
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameTotals, children: children }));
|
|
2352
|
+
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameTotals, "rls-theme": rlsTheme, children: children }));
|
|
2353
2353
|
}
|
|
2354
|
-
function RlsDatatableCell({ children, className, control, identifier, overflow }) {
|
|
2354
|
+
function RlsDatatableCell({ children, className, control, identifier, overflow, rlsTheme }) {
|
|
2355
2355
|
const classNameCell = useMemo(() => {
|
|
2356
2356
|
return renderClassStatus('rls-datatable__cell', { control, overflow }, className);
|
|
2357
2357
|
}, [className, control, overflow]);
|
|
2358
|
-
return (jsxRuntimeExports.jsx("td", { id: identifier, className: classNameCell, children: children }));
|
|
2358
|
+
return (jsxRuntimeExports.jsx("td", { id: identifier, className: classNameCell, "rls-theme": rlsTheme, children: children }));
|
|
2359
2359
|
}
|
|
2360
2360
|
function RlsDatatableData({ children, className, control, identifier, overflow }) {
|
|
2361
2361
|
const classNameData = useMemo(() => {
|
|
@@ -2363,11 +2363,11 @@ function RlsDatatableData({ children, className, control, identifier, overflow }
|
|
|
2363
2363
|
}, [className, overflow, control]);
|
|
2364
2364
|
return (jsxRuntimeExports.jsx("div", { id: identifier, className: classNameData, children: children }));
|
|
2365
2365
|
}
|
|
2366
|
-
function RlsDatatableFloating({ children, className, identifier, invested }) {
|
|
2366
|
+
function RlsDatatableFloating({ children, className, identifier, invested, rlsTheme }) {
|
|
2367
2367
|
const classNameFloating = useMemo(() => {
|
|
2368
2368
|
return renderClassStatus('rls-datatable__floating', { invested }, className);
|
|
2369
2369
|
}, [className, invested]);
|
|
2370
|
-
return (jsxRuntimeExports.jsx("td", { id: identifier, className: classNameFloating, children: children }));
|
|
2370
|
+
return (jsxRuntimeExports.jsx("td", { id: identifier, className: classNameFloating, "rls-theme": rlsTheme, children: children }));
|
|
2371
2371
|
}
|
|
2372
2372
|
|
|
2373
2373
|
function createObserver(options) {
|