@agregio-solutions/design-system 1.37.0 → 1.38.0
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/design-system.cjs
CHANGED
|
@@ -981,7 +981,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pa]+=1);const be={color:{cont
|
|
|
981
981
|
text-align: center;
|
|
982
982
|
color: var(--color-content-message-warning);
|
|
983
983
|
background-color: var(--color-content-neutral-primary-reversed);
|
|
984
|
-
`;function E$({withFilters:e}){const t=rt(w$);return m.jsxs(D$,{children:[t.noData,e&&m.jsxs("b",{children:[" ",t.withFilters]}),"."]})}const w$={en:{noData:"Sorry, there is currently no data to display",withFilters:"with the active filters"},fr:{noData:"Désolé, il n'y a actuellement aucune donnée à afficher",withFilters:"avec les filtres actifs"}};function B$({table:e,pagination:t,...n}){var a;const r=e.getState().columnFilters.length>0||((a=e.getState().globalFilter)==null?void 0:a.length)>0;return m.jsxs("div",{...n,children:[m.jsxs(R7,{children:[m.jsx("thead",{children:e.getHeaderGroups().map(u=>m.jsx("tr",{children:u.headers.map(o=>m.jsx(l.Fragment,{children:uc(o.column.columnDef.header,o.getContext())},o.id))},u.id))}),m.jsx("tbody",{children:e.getRowModel().rows.map(u=>m.jsx(A7,{children:u.getVisibleCells().map(o=>m.jsx(l.Fragment,{children:uc(o.column.columnDef.cell,o.getContext())},o.id))},u.id))})]}),e.getRowCount()===0&&m.jsx(E$,{withFilters:r})
|
|
984
|
+
`;function E$({withFilters:e}){const t=rt(w$);return m.jsxs(D$,{children:[t.noData,e&&m.jsxs("b",{children:[" ",t.withFilters]}),"."]})}const w$={en:{noData:"Sorry, there is currently no data to display",withFilters:"with the active filters"},fr:{noData:"Désolé, il n'y a actuellement aucune donnée à afficher",withFilters:"avec les filtres actifs"}};function B$({table:e,pagination:t,...n}){var a;const r=e.getState().columnFilters.length>0||((a=e.getState().globalFilter)==null?void 0:a.length)>0;return m.jsxs("div",{...n,children:[m.jsxs(R7,{children:[m.jsx("thead",{children:e.getHeaderGroups().map(u=>m.jsx("tr",{children:u.headers.map(o=>m.jsx(l.Fragment,{children:uc(o.column.columnDef.header,o.getContext())},o.id))},u.id))}),m.jsx("tbody",{children:e.getRowModel().rows.map(u=>m.jsx(A7,{children:u.getVisibleCells().map(o=>m.jsx(l.Fragment,{children:uc(o.column.columnDef.cell,o.getContext())},o.id))},u.id))})]}),e.getRowCount()===0&&m.jsx(E$,{withFilters:r}),!!t&&m.jsx(T7,{count:e.getRowCount(),onPageChange:e.setPageIndex,pageIndex:t.pageIndex,onItemsPerPageChange:e.setPageSize,itemsPerPage:t.pageSize,style:{marginTop:"16px"}})]})}const S$=I.td`
|
|
985
985
|
padding: 0;
|
|
986
986
|
|
|
987
987
|
&[data-border="left"],
|
package/dist/design-system.js
CHANGED
|
@@ -22199,7 +22199,7 @@ function vw({
|
|
|
22199
22199
|
/* @__PURE__ */ m("tbody", { children: e.getRowModel().rows.map((u) => /* @__PURE__ */ m(hC, { children: u.getVisibleCells().map((o) => /* @__PURE__ */ m($.Fragment, { children: pc(o.column.columnDef.cell, o.getContext()) }, o.id)) }, u.id)) })
|
|
22200
22200
|
] }),
|
|
22201
22201
|
e.getRowCount() === 0 && /* @__PURE__ */ m(TC, { withFilters: r }),
|
|
22202
|
-
/* @__PURE__ */ m(
|
|
22202
|
+
!!t && /* @__PURE__ */ m(
|
|
22203
22203
|
PC,
|
|
22204
22204
|
{
|
|
22205
22205
|
count: e.getRowCount(),
|
|
@@ -16,7 +16,7 @@ type Props<TData> = {
|
|
|
16
16
|
/**
|
|
17
17
|
* The pagination state given by `react-table`.
|
|
18
18
|
*/
|
|
19
|
-
pagination
|
|
19
|
+
pagination?: PaginationState;
|
|
20
20
|
};
|
|
21
21
|
export default function DataTable<TData>({ table, pagination, ...divProps }: Props<TData>): React.ReactElement;
|
|
22
22
|
export {};
|
package/package.json
CHANGED