erp-pos-ecommerce-shared 0.2.16 → 0.2.18
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/components.js +3 -2
- package/dist/components.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6140,7 +6140,7 @@ var TableHeader = ({
|
|
|
6140
6140
|
const sortState = header.column.getIsSorted();
|
|
6141
6141
|
const Icon = canSort ? getSortIcon(sortState) : null;
|
|
6142
6142
|
const isHovered = hoveredHeaderId === header.id;
|
|
6143
|
-
return /* @__PURE__ */ jsx(Table.Th, { bg: bgColor,
|
|
6143
|
+
return /* @__PURE__ */ jsx(Table.Th, { bg: bgColor, style: header.column.columnDef.size ? { width: header.column.columnDef.size, minWidth: header.column.columnDef.size } : void 0, children: /* @__PURE__ */ jsxs(
|
|
6144
6144
|
UnstyledButton,
|
|
6145
6145
|
{
|
|
6146
6146
|
style: {
|
|
@@ -6217,7 +6217,7 @@ var TableBody = ({
|
|
|
6217
6217
|
row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx(
|
|
6218
6218
|
Table.Td,
|
|
6219
6219
|
{
|
|
6220
|
-
|
|
6220
|
+
style: cell.column.columnDef.size ? { width: cell.column.columnDef.size, minWidth: cell.column.columnDef.size } : void 0,
|
|
6221
6221
|
onClick: () => onRowClick?.(row.original),
|
|
6222
6222
|
children: /* @__PURE__ */ jsx(
|
|
6223
6223
|
Text,
|
|
@@ -6383,6 +6383,7 @@ var SimpleDataTable = ({
|
|
|
6383
6383
|
return /* @__PURE__ */ jsx(Paper, { withBorder, radius: borderRadius, children: /* @__PURE__ */ jsx(ScrollArea, { h: tableHeight, type: "scroll", scrollbarSize: 8, children: /* @__PURE__ */ jsxs(
|
|
6384
6384
|
Table,
|
|
6385
6385
|
{
|
|
6386
|
+
style: { width: "100%", tableLayout: "fixed" },
|
|
6386
6387
|
styles: {
|
|
6387
6388
|
thead: {
|
|
6388
6389
|
position: "sticky",
|