@raystack/apsara 0.10.4 → 0.10.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/index.js CHANGED
@@ -15302,8 +15302,8 @@ function DataTableViewOptions({ children, ...props }) {
15302
15302
  })] })] }));
15303
15303
  }
15304
15304
 
15305
- const TableDetailContainer = ({ children, }) => {
15306
- return jsxRuntimeExports.jsx(Flex, { direction: "column", children: children });
15305
+ const TableDetailContainer = ({ children, ...props }) => {
15306
+ return (jsxRuntimeExports.jsx(Flex, { direction: "column", ...props, children: children }));
15307
15307
  };
15308
15308
 
15309
15309
  const useTableColumn = () => {
@@ -15409,14 +15409,14 @@ function DataTableRoot({ columns, data, emptyState, children, ...props }) {
15409
15409
  resetColumns,
15410
15410
  onGlobalFilterChange: setGlobalFilter,
15411
15411
  onChange: () => ({}),
15412
- }, children: [jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$4.datatable, children: [header, jsxRuntimeExports.jsxs(Table, { ...props, children: [jsxRuntimeExports.jsx(Table.Header, { children: table.getHeaderGroups().map((headerGroup) => (jsxRuntimeExports.jsx(Table.Row, { children: headerGroup.headers.map((header) => {
15413
- return (jsxRuntimeExports.jsx(Table.Head, { children: jsxRuntimeExports.jsxs(Text, { className: styles$4.head, children: [header.isPlaceholder
15414
- ? null
15415
- : flexRender(header.column.columnDef.header, header.getContext()), {
15416
- asc: jsxRuntimeExports.jsx(ArrowUpIcon, {}),
15417
- desc: jsxRuntimeExports.jsx(ArrowDownIcon, {}),
15418
- }[header.column.getIsSorted()] ?? null] }) }, header.id));
15419
- }) }, headerGroup.id))) }), jsxRuntimeExports.jsx(Table.Body, { children: table.getRowModel().rows?.length ? (table.getRowModel().rows.map((row) => (jsxRuntimeExports.jsx(Table.Row, { "data-state": row.getIsSelected() && "selected", children: row.getVisibleCells().map((cell) => (jsxRuntimeExports.jsx(Table.Cell, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id)))) : (jsxRuntimeExports.jsx(Table.Row, { children: jsxRuntimeExports.jsx(Table.Cell, { colSpan: columns.length, children: emptyState || "No results." }) })) })] }), detail] }), footer] }) }));
15412
+ }, children: [jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$4.datatable, children: [header, jsxRuntimeExports.jsxs(Flex, { children: [jsxRuntimeExports.jsxs(Table, { ...props, children: [jsxRuntimeExports.jsx(Table.Header, { children: table.getHeaderGroups().map((headerGroup) => (jsxRuntimeExports.jsx(Table.Row, { children: headerGroup.headers.map((header) => {
15413
+ return (jsxRuntimeExports.jsx(Table.Head, { children: jsxRuntimeExports.jsxs(Text, { className: styles$4.head, children: [header.isPlaceholder
15414
+ ? null
15415
+ : flexRender(header.column.columnDef.header, header.getContext()), {
15416
+ asc: jsxRuntimeExports.jsx(ArrowUpIcon, {}),
15417
+ desc: jsxRuntimeExports.jsx(ArrowDownIcon, {}),
15418
+ }[header.column.getIsSorted()] ?? null] }) }, header.id));
15419
+ }) }, headerGroup.id))) }), jsxRuntimeExports.jsx(Table.Body, { children: table.getRowModel().rows?.length ? (table.getRowModel().rows.map((row) => (jsxRuntimeExports.jsx(Table.Row, { "data-state": row.getIsSelected() && "selected", children: row.getVisibleCells().map((cell) => (jsxRuntimeExports.jsx(Table.Cell, { children: flexRender(cell.column.columnDef.cell, cell.getContext()) }, cell.id))) }, row.id)))) : (jsxRuntimeExports.jsx(Table.Row, { children: jsxRuntimeExports.jsx(Table.Cell, { colSpan: columns.length, children: emptyState || "No results." }) })) })] }), detail] })] }), footer] }) }));
15420
15420
  }
15421
15421
  const DataTable = Object.assign(DataTableRoot, {
15422
15422
  Toolbar: DataTableToolbar,