@indico-data/design-system 2.59.2 → 2.60.1
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/lib/components/tanstackTable/TankstackTable.types.d.ts +1 -0
- package/lib/components/tanstackTable/TanstackTable.d.ts +1 -1
- package/lib/index.css +93 -62
- package/lib/index.d.ts +2 -1
- package/lib/index.esm.css +93 -62
- package/lib/index.esm.js +2 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/badge/styles/Badge.scss +1 -1
- package/src/components/button/styles/_variables.scss +18 -18
- package/src/components/forms/form/styles/Form.scss +3 -3
- package/src/components/forms/select/styles/Select.scss +2 -2
- package/src/components/menu/styles/_variables.scss +2 -2
- package/src/components/skeleton/styles/Skeleton.scss +7 -7
- package/src/components/stepper/styles/Stepper.scss +30 -9
- package/src/components/table/Table.mdx +1 -1
- package/src/components/table/Table.stories.tsx +1 -1
- package/src/components/table/styles/Table.scss +0 -9
- package/src/components/tanstackTable/TankstackTable.types.ts +1 -0
- package/src/components/tanstackTable/TanstackTable.stories.tsx +54 -0
- package/src/components/tanstackTable/TanstackTable.tsx +3 -2
- package/src/components/tanstackTable/components/ActionBar/ActionBar.scss +1 -1
- package/src/components/tanstackTable/styles/_variables.scss +14 -9
- package/src/components/tanstackTable/styles/table.scss +23 -4
- package/src/components/toast/styles/Toast.scss +8 -6
- package/src/styles/globals.scss +2 -2
- package/src/styles/variables/_borders.scss +1 -1
package/lib/index.js
CHANGED
|
@@ -41337,7 +41337,7 @@ const TableBody = ({ table, onRowClick, isLoading, columnsLength, activeRows, })
|
|
|
41337
41337
|
};
|
|
41338
41338
|
|
|
41339
41339
|
function TanstackTable(_a) {
|
|
41340
|
-
var { columns: defaultColumns, data, className, currentPage, rowCount, rowsPerPage = 1000, onChangePage, totalEntriesText, TableActions, error, enableRowSelection = true, clearFilters, hasFilters, showPagination = true, isLoading = false, defaultPinnedColumns, onRowClick, activeRows = [], actionBarClassName } = _a, rest = __rest(_a, ["columns", "data", "className", "currentPage", "rowCount", "rowsPerPage", "onChangePage", "totalEntriesText", "TableActions", "error", "enableRowSelection", "clearFilters", "hasFilters", "showPagination", "isLoading", "defaultPinnedColumns", "onRowClick", "activeRows", "actionBarClassName"]);
|
|
41340
|
+
var { columns: defaultColumns, data, className, currentPage, rowCount, rowsPerPage = 1000, onChangePage, totalEntriesText, TableActions, error, enableRowSelection = true, clearFilters, hasFilters, showPagination = true, isLoading = false, defaultPinnedColumns, onRowClick, activeRows = [], isStriped = true, actionBarClassName } = _a, rest = __rest(_a, ["columns", "data", "className", "currentPage", "rowCount", "rowsPerPage", "onChangePage", "totalEntriesText", "TableActions", "error", "enableRowSelection", "clearFilters", "hasFilters", "showPagination", "isLoading", "defaultPinnedColumns", "onRowClick", "activeRows", "isStriped", "actionBarClassName"]);
|
|
41341
41341
|
const { columns, defaultData, windowWidth, rowSelection, // This refers to the checkboxes.
|
|
41342
41342
|
setRowSelection, formattedColumns, setFormattedColumns, } = useTanstackTable({
|
|
41343
41343
|
defaultColumns,
|
|
@@ -41381,6 +41381,7 @@ function TanstackTable(_a) {
|
|
|
41381
41381
|
};
|
|
41382
41382
|
return (jsxRuntime.jsxs("div", { className: "tanstack-table__outer-container", children: [jsxRuntime.jsxs("div", { className: "tanstack-table__container", children: [jsxRuntime.jsxs("table", { className: classNames('tanstack-table', className, {
|
|
41383
41383
|
'is-Loading': isLoading,
|
|
41384
|
+
'is-striped': isStriped,
|
|
41384
41385
|
}), children: [jsxRuntime.jsx("thead", { className: "tanstack-table__thead", children: jsxRuntime.jsx(TableHeader, { table: table, ref: thRefs }) }), jsxRuntime.jsx("tbody", { className: "tanstack-table__tbody", children: renderBody() })] }), hasSelectedRows && (jsxRuntime.jsx(ActionBar, { table: table, TableActions: TableActions, className: actionBarClassName }))] }), shouldRenderPagination ? (jsxRuntime.jsx(TablePagination, { currentPage: currentPage, rowCount: rowCount, onChangePage: onChangePage, rowsPerPage: rowsPerPage, totalEntriesText: totalEntriesText !== null && totalEntriesText !== void 0 ? totalEntriesText : `${totalRowsOnPage} of ${rowCount} entries` })) : null] }));
|
|
41385
41386
|
}
|
|
41386
41387
|
|