@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 +7 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/dist/table/datatable.d.ts +2 -1
- package/dist/table/datatable.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -15174,8 +15174,6 @@ function useReactTable(options) {
|
|
|
15174
15174
|
return tableRef.current;
|
|
15175
15175
|
}
|
|
15176
15176
|
|
|
15177
|
-
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"};
|
|
15178
|
-
|
|
15179
15177
|
const TableContext = createContext$1(null);
|
|
15180
15178
|
|
|
15181
15179
|
const useTable = () => {
|
|
@@ -15194,6 +15192,8 @@ function DataTableClearFilter({ children, ...props }) {
|
|
|
15194
15192
|
}, 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" })] })) }));
|
|
15195
15193
|
}
|
|
15196
15194
|
|
|
15195
|
+
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"};
|
|
15196
|
+
|
|
15197
15197
|
function DataTableFilterOptions({ children, ...props }) {
|
|
15198
15198
|
const { table, filteredColumns, addFilterColumn } = useTable();
|
|
15199
15199
|
const availableColumns = table
|
|
@@ -15302,6 +15302,10 @@ function DataTableViewOptions({ children, ...props }) {
|
|
|
15302
15302
|
})] })] }));
|
|
15303
15303
|
}
|
|
15304
15304
|
|
|
15305
|
+
const TableDetailContainer = ({ children, }) => {
|
|
15306
|
+
return jsxRuntimeExports.jsx(Flex, { direction: "column", children: children });
|
|
15307
|
+
};
|
|
15308
|
+
|
|
15305
15309
|
const useTableColumn = () => {
|
|
15306
15310
|
const [columns, setColumns] = useState$1([]);
|
|
15307
15311
|
const addFilterColumn = useCallback((column) => {
|
|
@@ -15361,10 +15365,6 @@ const Table = Object.assign(TableRoot, {
|
|
|
15361
15365
|
Caption: TableCaption,
|
|
15362
15366
|
});
|
|
15363
15367
|
|
|
15364
|
-
const TableDetailContainer = ({ children, }) => {
|
|
15365
|
-
return jsxRuntimeExports.jsx(Flex, { children: children });
|
|
15366
|
-
};
|
|
15367
|
-
|
|
15368
15368
|
function DataTableRoot({ columns, data, emptyState, children, ...props }) {
|
|
15369
15369
|
const convertedChildren = Children.toArray(children);
|
|
15370
15370
|
const header = convertedChildren.find((child) => child.type === DataTableToolbar) || jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, {});
|
|
@@ -15426,6 +15426,7 @@ const DataTable = Object.assign(DataTableRoot, {
|
|
|
15426
15426
|
ClearFilter: DataTableClearFilter,
|
|
15427
15427
|
FilterChips: DataTableFilterChips,
|
|
15428
15428
|
Footer: DataTableFooter,
|
|
15429
|
+
DetailContainer: TableDetailContainer,
|
|
15429
15430
|
});
|
|
15430
15431
|
|
|
15431
15432
|
/* -------------------------------------------------------------------------------------------------
|