@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.cjs CHANGED
@@ -15322,8 +15322,8 @@ function DataTableViewOptions({ children, ...props }) {
15322
15322
  })] })] }));
15323
15323
  }
15324
15324
 
15325
- const TableDetailContainer = ({ children, }) => {
15326
- return jsxRuntimeExports.jsx(Flex, { direction: "column", children: children });
15325
+ const TableDetailContainer = ({ children, ...props }) => {
15326
+ return (jsxRuntimeExports.jsx(Flex, { direction: "column", ...props, children: children }));
15327
15327
  };
15328
15328
 
15329
15329
  const useTableColumn = () => {
@@ -15429,14 +15429,14 @@ function DataTableRoot({ columns, data, emptyState, children, ...props }) {
15429
15429
  resetColumns,
15430
15430
  onGlobalFilterChange: setGlobalFilter,
15431
15431
  onChange: () => ({}),
15432
- }, 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) => {
15433
- return (jsxRuntimeExports.jsx(Table.Head, { children: jsxRuntimeExports.jsxs(Text, { className: styles$4.head, children: [header.isPlaceholder
15434
- ? null
15435
- : flexRender(header.column.columnDef.header, header.getContext()), {
15436
- asc: jsxRuntimeExports.jsx(ArrowUpIcon, {}),
15437
- desc: jsxRuntimeExports.jsx(ArrowDownIcon, {}),
15438
- }[header.column.getIsSorted()] ?? null] }) }, header.id));
15439
- }) }, 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] }) }));
15432
+ }, 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) => {
15433
+ return (jsxRuntimeExports.jsx(Table.Head, { children: jsxRuntimeExports.jsxs(Text, { className: styles$4.head, children: [header.isPlaceholder
15434
+ ? null
15435
+ : flexRender(header.column.columnDef.header, header.getContext()), {
15436
+ asc: jsxRuntimeExports.jsx(ArrowUpIcon, {}),
15437
+ desc: jsxRuntimeExports.jsx(ArrowDownIcon, {}),
15438
+ }[header.column.getIsSorted()] ?? null] }) }, header.id));
15439
+ }) }, 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] }) }));
15440
15440
  }
15441
15441
  const DataTable = Object.assign(DataTableRoot, {
15442
15442
  Toolbar: DataTableToolbar,