@raystack/apsara 0.10.2 → 0.10.4

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
@@ -15194,8 +15194,6 @@ function useReactTable(options) {
15194
15194
  return tableRef.current;
15195
15195
  }
15196
15196
 
15197
- var styles$4 = {"wrapper":"datatable-module_wrapper__Sxg2d","datatable":"datatable-module_datatable__z-Th2","head":"datatable-module_head__zCfCW","toolbar":"datatable-module_toolbar__lO-aI","chipWrapper":"datatable-module_chipWrapper__iz69x","chip":"datatable-module_chip__IiwTD"};
15198
-
15199
15197
  const TableContext = React.createContext(null);
15200
15198
 
15201
15199
  const useTable = () => {
@@ -15214,6 +15212,8 @@ function DataTableClearFilter({ children, ...props }) {
15214
15212
  }, style: { width: "100%" }, ...props, children: children || (jsxRuntimeExports.jsxs(Flex, { gap: "small", align: "center", justify: "center", children: ["Clear filters ", jsxRuntimeExports.jsx(Cross2Icon, { width: 12, height: "12" })] })) }));
15215
15213
  }
15216
15214
 
15215
+ var styles$4 = {"wrapper":"datatable-module_wrapper__Sxg2d","datatable":"datatable-module_datatable__z-Th2","head":"datatable-module_head__zCfCW","toolbar":"datatable-module_toolbar__lO-aI","chipWrapper":"datatable-module_chipWrapper__iz69x","chip":"datatable-module_chip__IiwTD"};
15216
+
15217
15217
  function DataTableFilterOptions({ children, ...props }) {
15218
15218
  const { table, filteredColumns, addFilterColumn } = useTable();
15219
15219
  const availableColumns = table
@@ -15322,6 +15322,10 @@ function DataTableViewOptions({ children, ...props }) {
15322
15322
  })] })] }));
15323
15323
  }
15324
15324
 
15325
+ const TableDetailContainer = ({ children, }) => {
15326
+ return jsxRuntimeExports.jsx(Flex, { direction: "column", children: children });
15327
+ };
15328
+
15325
15329
  const useTableColumn = () => {
15326
15330
  const [columns, setColumns] = React.useState([]);
15327
15331
  const addFilterColumn = React.useCallback((column) => {
@@ -15381,10 +15385,6 @@ const Table = Object.assign(TableRoot, {
15381
15385
  Caption: TableCaption,
15382
15386
  });
15383
15387
 
15384
- const TableDetailContainer = ({ children, }) => {
15385
- return jsxRuntimeExports.jsx(Flex, { children: children });
15386
- };
15387
-
15388
15388
  function DataTableRoot({ columns, data, emptyState, children, ...props }) {
15389
15389
  const convertedChildren = React.Children.toArray(children);
15390
15390
  const header = convertedChildren.find((child) => child.type === DataTableToolbar) || jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
@@ -15446,6 +15446,7 @@ const DataTable = Object.assign(DataTableRoot, {
15446
15446
  ClearFilter: DataTableClearFilter,
15447
15447
  FilterChips: DataTableFilterChips,
15448
15448
  Footer: DataTableFooter,
15449
+ DetailContainer: TableDetailContainer,
15449
15450
  });
15450
15451
 
15451
15452
  /* -------------------------------------------------------------------------------------------------