@nodeblocks/frontend-list-organization-block 0.2.3 → 0.4.0
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.js +1 -1
- package/dist/index.d.ts +578 -2
- package/dist/index.esm.js +1 -1
- package/package.json +17 -4
- package/dist/context.d.ts +0 -51
- package/dist/context.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/lib.d.ts +0 -103
- package/dist/lib.d.ts.map +0 -1
- package/dist/list-organizations.d.ts +0 -51
- package/dist/list-organizations.d.ts.map +0 -1
- package/dist/types.d.ts +0 -16
- package/dist/types.d.ts.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,578 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { TableCellProps, Stack, StackProps, TypographyProps, TabsProps, TabProps, Box, MenuProps, TableHeadProps, TableRowProps, TableBodyProps, IconButtonProps, TableContainer, TableProps } from '@mui/material';
|
|
2
|
+
import { ReactNode, ComponentProps, SyntheticEvent, ReactElement, MouseEvent } from 'react';
|
|
3
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
|
+
import { SetRequired } from 'type-fest';
|
|
5
|
+
import { Breakpoint } from '@mui/material/styles';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The function to be passed into a block component as `children` to selectively override default blocks, or just a `ReactNode`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <Block>
|
|
12
|
+
* {({ defaultBlocks: { header, ...defaultBlocks }, defaultBlockOrder }) => ({
|
|
13
|
+
* blocks: {
|
|
14
|
+
* ...defaultBlocks,
|
|
15
|
+
* header: {
|
|
16
|
+
* ...header,
|
|
17
|
+
* props: {
|
|
18
|
+
* ...header.props,
|
|
19
|
+
* label: "Custom Label"
|
|
20
|
+
* }
|
|
21
|
+
* },
|
|
22
|
+
* subheader: <CustomComponent />
|
|
23
|
+
* },
|
|
24
|
+
* blockOrder: ["header", "subheader", "body", "footer"]
|
|
25
|
+
* })}
|
|
26
|
+
* </Block>
|
|
27
|
+
*/
|
|
28
|
+
type BlocksOverride<DefaultBlocks, CustomBlocks> = (({ defaultBlocks, defaultBlockOrder, }: {
|
|
29
|
+
defaultBlocks: DefaultBlocks;
|
|
30
|
+
defaultBlockOrder: readonly (keyof DefaultBlocks)[];
|
|
31
|
+
}) => {
|
|
32
|
+
blocks: Partial<DefaultBlocks> & CustomBlocks;
|
|
33
|
+
blockOrder: readonly (keyof DefaultBlocks)[] | readonly (keyof CustomBlocks)[];
|
|
34
|
+
}) | ReactNode;
|
|
35
|
+
|
|
36
|
+
interface BaseTableTab<TValue extends string | number = string> {
|
|
37
|
+
label: ReactNode;
|
|
38
|
+
value: TValue;
|
|
39
|
+
disabled?: boolean;
|
|
40
|
+
}
|
|
41
|
+
type BaseTableColumnContext<TRow, K extends keyof TRow> = {
|
|
42
|
+
row: TRow;
|
|
43
|
+
rowIndex: number;
|
|
44
|
+
column: BaseTableColumnByField<TRow, K>;
|
|
45
|
+
};
|
|
46
|
+
type ResponsivePin<T extends 'left' | 'right' = 'left' | 'right'> = T | Partial<Record<Breakpoint, T | null>>;
|
|
47
|
+
type BaseTableColumnByField<TRow, K extends keyof TRow> = {
|
|
48
|
+
field: K;
|
|
49
|
+
headLabel: ReactNode;
|
|
50
|
+
align?: TableCellProps['align'];
|
|
51
|
+
width?: number;
|
|
52
|
+
pin?: ResponsivePin;
|
|
53
|
+
valueFormatter?: (value: TRow[K], context: BaseTableColumnContext<TRow, K>) => unknown;
|
|
54
|
+
renderCell?: (value: TRow[K], context: BaseTableColumnContext<TRow, K>) => ReactNode;
|
|
55
|
+
};
|
|
56
|
+
type BaseTableColumn<TRow> = {
|
|
57
|
+
[K in keyof TRow]-?: BaseTableColumnByField<TRow, K>;
|
|
58
|
+
}[keyof TRow];
|
|
59
|
+
interface BaseTableRowAction<TRow> {
|
|
60
|
+
label: ReactNode;
|
|
61
|
+
icon?: ReactNode;
|
|
62
|
+
onClick: (row: TRow) => void;
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
}
|
|
65
|
+
interface BaseTablePaginationProps {
|
|
66
|
+
page: number;
|
|
67
|
+
pageSize: number;
|
|
68
|
+
total: number;
|
|
69
|
+
onPageChange: (page: number) => void;
|
|
70
|
+
}
|
|
71
|
+
interface BaseTableNoRowsOverlay {
|
|
72
|
+
icon?: ReactNode;
|
|
73
|
+
title: ReactNode;
|
|
74
|
+
description?: ReactNode;
|
|
75
|
+
action?: {
|
|
76
|
+
icon?: ReactNode;
|
|
77
|
+
label: ReactNode;
|
|
78
|
+
onClick: () => void;
|
|
79
|
+
disabled?: boolean;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
interface BaseTableActionColumn {
|
|
83
|
+
pin?: ResponsivePin<'right'>;
|
|
84
|
+
}
|
|
85
|
+
interface BaseTableSearchChip {
|
|
86
|
+
key: string;
|
|
87
|
+
label: ReactNode;
|
|
88
|
+
}
|
|
89
|
+
type BaseTableContextValue<TRow extends Record<string, unknown> = Record<string, unknown>, TTabValue extends string | number = string, TBaseTableColumn extends BaseTableColumn<TRow> = BaseTableColumn<TRow>> = {
|
|
90
|
+
isLoading?: boolean;
|
|
91
|
+
headerTitle?: ReactNode;
|
|
92
|
+
headerActions?: ReactNode;
|
|
93
|
+
searchChipsTitle?: ReactNode;
|
|
94
|
+
searchChips?: BaseTableSearchChip[];
|
|
95
|
+
onSearchChipDelete?: (chip: BaseTableSearchChip, index: number, event: SyntheticEvent) => void;
|
|
96
|
+
tabs?: BaseTableTab<TTabValue>[];
|
|
97
|
+
activeTab?: TTabValue;
|
|
98
|
+
onTabChange?: (tab: TTabValue) => void;
|
|
99
|
+
columns: TBaseTableColumn[];
|
|
100
|
+
rows: TRow[];
|
|
101
|
+
actionColumn?: BaseTableActionColumn;
|
|
102
|
+
rowActions?: (row: TRow) => BaseTableRowAction<TRow>[];
|
|
103
|
+
pagination?: BaseTablePaginationProps;
|
|
104
|
+
noRowsOverlay?: BaseTableNoRowsOverlay;
|
|
105
|
+
onRowClick?: (row: TRow) => void;
|
|
106
|
+
getRowId?: (row: TRow, rowIndex: number) => string | number;
|
|
107
|
+
};
|
|
108
|
+
type BaseTableProps<TRow extends Record<string, unknown>, TTabValue extends string | number = string> = Omit<ComponentProps<typeof Stack>, 'children'> & BaseTableContextValue<TRow, TTabValue>;
|
|
109
|
+
|
|
110
|
+
type RowMenuOpenHandler<TRow> = (event: MouseEvent<HTMLElement>, row: TRow) => void;
|
|
111
|
+
type BaseTablePinnedShadowState = {
|
|
112
|
+
left: boolean;
|
|
113
|
+
right: boolean;
|
|
114
|
+
};
|
|
115
|
+
type BaseTableColumnPinMeta = {
|
|
116
|
+
pin?: 'left' | 'right';
|
|
117
|
+
left?: number;
|
|
118
|
+
right?: number;
|
|
119
|
+
isLeftBoundary?: boolean;
|
|
120
|
+
isRightBoundary?: boolean;
|
|
121
|
+
showBoundaryShadow?: boolean;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Renders the table title area from explicit children or root context.
|
|
125
|
+
*/
|
|
126
|
+
declare const BaseTableHeaderTitle: <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: Partial<TypographyProps>) => react_jsx_runtime.JSX.Element | null;
|
|
127
|
+
/**
|
|
128
|
+
* Renders the right-aligned header action slot from explicit children or root context.
|
|
129
|
+
*/
|
|
130
|
+
declare const BaseTableHeaderActions: <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: Partial<Omit<StackProps, "direction">>) => react_jsx_runtime.JSX.Element | null;
|
|
131
|
+
declare const defaultHeaderBlocks: {
|
|
132
|
+
title: ReactElement<Partial<TypographyProps>, <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: Partial<TypographyProps>) => react_jsx_runtime.JSX.Element | null>;
|
|
133
|
+
actions: ReactElement<Partial<Omit<StackProps, "direction">>, <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: Partial<Omit<StackProps, "direction">>) => react_jsx_runtime.JSX.Element | null>;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Composes the header title and action blocks at the top of the table layout.
|
|
137
|
+
*/
|
|
138
|
+
declare const BaseTableHeader: <TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> = {}>(props: Partial<Omit<StackProps, "children">> & {
|
|
139
|
+
children?: BlocksOverride<typeof defaultHeaderBlocks, CustomBlocks>;
|
|
140
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
141
|
+
/**
|
|
142
|
+
* Renders the loading placeholder shown while table data is pending.
|
|
143
|
+
*/
|
|
144
|
+
declare const BaseTableContentLoader: <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: Partial<StackProps>) => react_jsx_runtime.JSX.Element;
|
|
145
|
+
/**
|
|
146
|
+
* Renders the tab strip and forwards tab changes through root context when needed.
|
|
147
|
+
*/
|
|
148
|
+
declare const BaseTableTabs: <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: Partial<TabsProps> & {
|
|
149
|
+
tabProps?: Partial<Omit<TabProps, "label" | "value" | "disabled">>;
|
|
150
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
151
|
+
/**
|
|
152
|
+
* Renders the selected search chips section from explicit props or root context.
|
|
153
|
+
*/
|
|
154
|
+
declare const BaseTableSearchChips: <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: Partial<Omit<ComponentProps<typeof Stack>, "children"> & Pick<BaseTableContextValue<TRow, TTabValue>, "searchChipsTitle" | "searchChips" | "onSearchChipDelete"> & {
|
|
155
|
+
children?: ReactNode;
|
|
156
|
+
}>) => react_jsx_runtime.JSX.Element | null;
|
|
157
|
+
type BaseTableContentGridHeadCellProps<TRow extends Record<string, unknown>> = Partial<TableCellProps> & {
|
|
158
|
+
column: BaseTableColumnByField<TRow, keyof TRow>;
|
|
159
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
160
|
+
labelProps?: Partial<TypographyProps> | undefined;
|
|
161
|
+
children?: ReactNode;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Renders one head cell, including pinned-column styling and label fallback.
|
|
165
|
+
*/
|
|
166
|
+
declare const BaseTableContentGridHeadCell: <TRow extends Record<string, unknown>>(props: BaseTableContentGridHeadCellProps<TRow>) => react_jsx_runtime.JSX.Element;
|
|
167
|
+
type BaseTableContentGridBodyCellProps<TRow extends Record<string, unknown>> = Partial<TableCellProps> & {
|
|
168
|
+
column: BaseTableColumnByField<TRow, keyof TRow>;
|
|
169
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
170
|
+
row: TRow;
|
|
171
|
+
rowIndex: number;
|
|
172
|
+
};
|
|
173
|
+
/**
|
|
174
|
+
* Renders one body cell from row data, formatter output, and pinned-column styles.
|
|
175
|
+
*/
|
|
176
|
+
declare const BaseTableContentGridBodyCell: <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyCellProps<TRow>) => react_jsx_runtime.JSX.Element;
|
|
177
|
+
type BaseTableContentGridHeadActionCellProps = Partial<TableCellProps> & {
|
|
178
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Renders the head-side action column cell shell.
|
|
182
|
+
*/
|
|
183
|
+
declare const BaseTableContentGridHeadActionCell: (props: BaseTableContentGridHeadActionCellProps) => react_jsx_runtime.JSX.Element;
|
|
184
|
+
type BaseTableContentGridBodyActionCellProps<TRow extends Record<string, unknown>> = Partial<TableCellProps> & {
|
|
185
|
+
row: TRow;
|
|
186
|
+
showActionMenu: boolean;
|
|
187
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
188
|
+
iconButtonProps?: Partial<IconButtonProps> | undefined;
|
|
189
|
+
icon?: ReactNode;
|
|
190
|
+
onOpenRowMenu?: RowMenuOpenHandler<TRow> | undefined;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Renders the body-side action trigger cell and opens the row menu when enabled.
|
|
194
|
+
*/
|
|
195
|
+
declare const BaseTableContentGridBodyActionCell: <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyActionCellProps<TRow>) => react_jsx_runtime.JSX.Element;
|
|
196
|
+
type BaseTableContentGridHeadCellRenderArgs<TRow extends Record<string, unknown>> = Pick<ComponentProps<typeof BaseTableContentGridHeadCell<TRow>>, 'column' | 'pinMeta'> & {
|
|
197
|
+
columnIndex: number;
|
|
198
|
+
};
|
|
199
|
+
type BaseTableContentGridHeadActionCellRenderArgs<TRow extends Record<string, unknown>> = {
|
|
200
|
+
rowActions?: BaseTableContextValue<TRow>['rowActions'];
|
|
201
|
+
actionColumnPinMeta?: BaseTableContentGridHeadActionCellProps['pinMeta'];
|
|
202
|
+
};
|
|
203
|
+
type BaseTableContentGridBodyCellRenderArgs<TRow extends Record<string, unknown>> = Pick<ComponentProps<typeof BaseTableContentGridBodyCell<TRow>>, 'column' | 'pinMeta' | 'row' | 'rowIndex'> & {
|
|
204
|
+
columnIndex: number;
|
|
205
|
+
};
|
|
206
|
+
type BaseTableContentGridBodyActionCellRenderArgs<TRow extends Record<string, unknown>> = Pick<ComponentProps<typeof BaseTableContentGridBodyActionCell<TRow>>, 'row' | 'showActionMenu' | 'onOpenRowMenu'> & {
|
|
207
|
+
rowIndex: number;
|
|
208
|
+
actionColumnPinMeta?: BaseTableContentGridBodyActionCellProps<TRow>['pinMeta'];
|
|
209
|
+
};
|
|
210
|
+
declare const defaultContentGridHeadRowBlocks: {
|
|
211
|
+
cell: ReactElement<Partial<TableCellProps> & {
|
|
212
|
+
column: BaseTableColumnByField<Record<string, unknown>, string>;
|
|
213
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
214
|
+
labelProps?: Partial<TypographyProps> | undefined;
|
|
215
|
+
children?: ReactNode;
|
|
216
|
+
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridHeadCellProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
217
|
+
actionCell: ReactElement<Partial<TableCellProps> & {
|
|
218
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
219
|
+
}, (props: BaseTableContentGridHeadActionCellProps) => react_jsx_runtime.JSX.Element>;
|
|
220
|
+
};
|
|
221
|
+
type BaseTableContentGridHeadRowProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> = {}> = Partial<Omit<TableRowProps, 'children'>> & {
|
|
222
|
+
columns: BaseTableContextValue<TRow>['columns'];
|
|
223
|
+
rowActions?: ((row: TRow) => BaseTableRowAction<TRow>[]) | undefined;
|
|
224
|
+
headCell?: ReactNode | ((args: BaseTableContentGridHeadCellRenderArgs<TRow>) => ReactNode);
|
|
225
|
+
actionHeadCell?: ReactNode | ((args: BaseTableContentGridHeadActionCellRenderArgs<TRow>) => ReactNode);
|
|
226
|
+
columnPinMeta?: BaseTableColumnPinMeta[];
|
|
227
|
+
actionColumnPinMeta?: BaseTableColumnPinMeta;
|
|
228
|
+
children?: BlocksOverride<typeof defaultContentGridHeadRowBlocks, CustomBlocks>;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Renders the head row and resolves head cell overrides for each column.
|
|
232
|
+
*/
|
|
233
|
+
declare const BaseTableContentGridHeadRow: <TRow extends Record<string, unknown>>(props: BaseTableContentGridHeadRowProps<TRow>) => react_jsx_runtime.JSX.Element;
|
|
234
|
+
declare const defaultBodyRowBlocks: {
|
|
235
|
+
cell: ReactElement<Partial<TableCellProps> & {
|
|
236
|
+
column: BaseTableColumnByField<Record<string, unknown>, string>;
|
|
237
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
238
|
+
row: Record<string, unknown>;
|
|
239
|
+
rowIndex: number;
|
|
240
|
+
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyCellProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
241
|
+
actionCell: ReactElement<Partial<TableCellProps> & {
|
|
242
|
+
row: Record<string, unknown>;
|
|
243
|
+
showActionMenu: boolean;
|
|
244
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
245
|
+
iconButtonProps?: Partial<IconButtonProps> | undefined;
|
|
246
|
+
icon?: ReactNode;
|
|
247
|
+
onOpenRowMenu?: RowMenuOpenHandler<Record<string, unknown>> | undefined;
|
|
248
|
+
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyActionCellProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
249
|
+
};
|
|
250
|
+
type BaseTableContentGridBodyRowProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> = {}> = {
|
|
251
|
+
row: TRow;
|
|
252
|
+
rowIndex: number;
|
|
253
|
+
columns: BaseTableContextValue<TRow>['columns'];
|
|
254
|
+
rowActions?: ((row: TRow) => BaseTableRowAction<TRow>[]) | undefined;
|
|
255
|
+
onRowClick?: ((row: TRow) => void) | undefined;
|
|
256
|
+
onOpenRowMenu?: RowMenuOpenHandler<TRow> | undefined;
|
|
257
|
+
bodyCell?: ReactNode | ((args: BaseTableContentGridBodyCellRenderArgs<TRow>) => ReactNode);
|
|
258
|
+
actionBodyCell?: ReactNode | ((args: BaseTableContentGridBodyActionCellRenderArgs<TRow>) => ReactNode);
|
|
259
|
+
columnPinMeta?: BaseTableColumnPinMeta[];
|
|
260
|
+
actionColumnPinMeta?: BaseTableColumnPinMeta;
|
|
261
|
+
children?: BlocksOverride<typeof defaultBodyRowBlocks, CustomBlocks>;
|
|
262
|
+
} & Partial<Omit<TableRowProps, 'children'>>;
|
|
263
|
+
/**
|
|
264
|
+
* Renders one body row, including hover behavior and per-row action visibility.
|
|
265
|
+
*/
|
|
266
|
+
declare const BaseTableContentGridBodyRow: <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyRowProps<TRow>) => react_jsx_runtime.JSX.Element;
|
|
267
|
+
declare const defaultContentGridHeadBlocks: {
|
|
268
|
+
row: ReactElement<Partial<Omit<TableRowProps, "children">> & {
|
|
269
|
+
columns: BaseTableColumnByField<Record<string, unknown>, string>[];
|
|
270
|
+
rowActions?: ((row: Record<string, unknown>) => BaseTableRowAction<Record<string, unknown>>[]) | undefined;
|
|
271
|
+
headCell?: ReactNode | ((args: BaseTableContentGridHeadCellRenderArgs<Record<string, unknown>>) => ReactNode);
|
|
272
|
+
actionHeadCell?: ReactNode | ((args: BaseTableContentGridHeadActionCellRenderArgs<Record<string, unknown>>) => ReactNode);
|
|
273
|
+
columnPinMeta?: BaseTableColumnPinMeta[];
|
|
274
|
+
actionColumnPinMeta?: BaseTableColumnPinMeta;
|
|
275
|
+
children?: BlocksOverride<{
|
|
276
|
+
cell: ReactElement<Partial<TableCellProps> & {
|
|
277
|
+
column: BaseTableColumnByField<Record<string, unknown>, string>;
|
|
278
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
279
|
+
labelProps?: Partial<TypographyProps> | undefined;
|
|
280
|
+
children?: ReactNode;
|
|
281
|
+
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridHeadCellProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
282
|
+
actionCell: ReactElement<Partial<TableCellProps> & {
|
|
283
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
284
|
+
}, (props: BaseTableContentGridHeadActionCellProps) => react_jsx_runtime.JSX.Element>;
|
|
285
|
+
}, {}>;
|
|
286
|
+
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridHeadRowProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
287
|
+
};
|
|
288
|
+
type BaseTableContentGridHeadRowRenderArgs<TRow extends Record<string, unknown>> = Pick<ComponentProps<typeof BaseTableContentGridHeadRow<TRow>>, 'columns' | 'rowActions' | 'columnPinMeta' | 'actionColumnPinMeta'>;
|
|
289
|
+
type BaseTableContentGridHeadProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> = {}> = Partial<Omit<TableHeadProps, 'children'>> & {
|
|
290
|
+
columns: BaseTableContextValue<TRow>['columns'];
|
|
291
|
+
rowActions?: ((row: TRow) => BaseTableRowAction<TRow>[]) | undefined;
|
|
292
|
+
headRow?: ReactNode | ((args: BaseTableContentGridHeadRowRenderArgs<TRow>) => ReactNode);
|
|
293
|
+
headCell?: BaseTableContentGridHeadRowProps<TRow>['headCell'];
|
|
294
|
+
actionHeadCell?: BaseTableContentGridHeadRowProps<TRow>['actionHeadCell'];
|
|
295
|
+
columnPinMeta?: BaseTableColumnPinMeta[];
|
|
296
|
+
actionColumnPinMeta?: BaseTableColumnPinMeta;
|
|
297
|
+
children?: BlocksOverride<typeof defaultContentGridHeadBlocks, CustomBlocks>;
|
|
298
|
+
};
|
|
299
|
+
/**
|
|
300
|
+
* Renders the table head section and delegates row composition to the head row block.
|
|
301
|
+
*/
|
|
302
|
+
declare const BaseTableContentGridHead: <TRow extends Record<string, unknown>>(props: BaseTableContentGridHeadProps<TRow>) => react_jsx_runtime.JSX.Element;
|
|
303
|
+
declare const defaultGridBodyBlocks: {
|
|
304
|
+
row: ReactElement<{
|
|
305
|
+
row: Record<string, unknown>;
|
|
306
|
+
rowIndex: number;
|
|
307
|
+
columns: BaseTableColumnByField<Record<string, unknown>, string>[];
|
|
308
|
+
rowActions?: ((row: Record<string, unknown>) => BaseTableRowAction<Record<string, unknown>>[]) | undefined;
|
|
309
|
+
onRowClick?: ((row: Record<string, unknown>) => void) | undefined;
|
|
310
|
+
onOpenRowMenu?: RowMenuOpenHandler<Record<string, unknown>> | undefined;
|
|
311
|
+
bodyCell?: ReactNode | ((args: BaseTableContentGridBodyCellRenderArgs<Record<string, unknown>>) => ReactNode);
|
|
312
|
+
actionBodyCell?: ReactNode | ((args: BaseTableContentGridBodyActionCellRenderArgs<Record<string, unknown>>) => ReactNode);
|
|
313
|
+
columnPinMeta?: BaseTableColumnPinMeta[];
|
|
314
|
+
actionColumnPinMeta?: BaseTableColumnPinMeta;
|
|
315
|
+
children?: BlocksOverride<{
|
|
316
|
+
cell: ReactElement<Partial<TableCellProps> & {
|
|
317
|
+
column: BaseTableColumnByField<Record<string, unknown>, string>;
|
|
318
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
319
|
+
row: Record<string, unknown>;
|
|
320
|
+
rowIndex: number;
|
|
321
|
+
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyCellProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
322
|
+
actionCell: ReactElement<Partial<TableCellProps> & {
|
|
323
|
+
row: Record<string, unknown>;
|
|
324
|
+
showActionMenu: boolean;
|
|
325
|
+
pinMeta?: BaseTableColumnPinMeta;
|
|
326
|
+
iconButtonProps?: Partial<IconButtonProps> | undefined;
|
|
327
|
+
icon?: ReactNode;
|
|
328
|
+
onOpenRowMenu?: RowMenuOpenHandler<Record<string, unknown>> | undefined;
|
|
329
|
+
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyActionCellProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
330
|
+
}, {}>;
|
|
331
|
+
} & Partial<Omit<TableRowProps, "children">>, <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyRowProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
332
|
+
};
|
|
333
|
+
type BaseTableContentGridBodyRowRenderArgs<TRow extends Record<string, unknown>> = Pick<ComponentProps<typeof BaseTableContentGridBodyRow<TRow>>, 'row' | 'rowIndex' | 'columns' | 'rowActions' | 'onRowClick' | 'onOpenRowMenu' | 'columnPinMeta' | 'actionColumnPinMeta'>;
|
|
334
|
+
type BaseTableContentGridBodyProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> = {}> = Partial<Omit<TableBodyProps, 'children'>> & {
|
|
335
|
+
columns: BaseTableContextValue<TRow>['columns'];
|
|
336
|
+
rows: TRow[];
|
|
337
|
+
rowActions?: ((row: TRow) => BaseTableRowAction<TRow>[]) | undefined;
|
|
338
|
+
onRowClick?: ((row: TRow) => void) | undefined;
|
|
339
|
+
getRowId?: ((row: TRow, rowIndex: number) => string | number) | undefined;
|
|
340
|
+
onOpenRowMenu?: RowMenuOpenHandler<TRow> | undefined;
|
|
341
|
+
bodyRow?: ReactNode | ((args: BaseTableContentGridBodyRowRenderArgs<TRow>) => ReactNode);
|
|
342
|
+
bodyCell?: BaseTableContentGridBodyRowProps<TRow>['bodyCell'];
|
|
343
|
+
actionBodyCell?: BaseTableContentGridBodyRowProps<TRow>['actionBodyCell'];
|
|
344
|
+
columnPinMeta?: BaseTableColumnPinMeta[];
|
|
345
|
+
actionColumnPinMeta?: BaseTableColumnPinMeta;
|
|
346
|
+
children?: BlocksOverride<typeof defaultGridBodyBlocks, CustomBlocks>;
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* Renders the table body section and resolves row-level overrides for each record.
|
|
350
|
+
*/
|
|
351
|
+
declare const BaseTableContentGridBody: <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyProps<TRow>) => react_jsx_runtime.JSX.Element;
|
|
352
|
+
type BaseTableContentGridRowMenuProps<TRow extends Record<string, unknown>> = Partial<Omit<MenuProps, 'anchorEl' | 'open' | 'onClose'>> & {
|
|
353
|
+
menuAnchorEl: HTMLElement | null;
|
|
354
|
+
menuRow: TRow | null;
|
|
355
|
+
menuActions: BaseTableRowAction<TRow>[];
|
|
356
|
+
onClose: () => void;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Renders the contextual row action menu anchored to the current trigger element.
|
|
360
|
+
*/
|
|
361
|
+
declare const BaseTableContentGridRowMenu: <TRow extends Record<string, unknown>>(props: BaseTableContentGridRowMenuProps<TRow>) => react_jsx_runtime.JSX.Element;
|
|
362
|
+
/**
|
|
363
|
+
* Renders the no-results fallback panel when the table has no rows to show.
|
|
364
|
+
*/
|
|
365
|
+
declare const BaseTableContentEmptyState: <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: Partial<ComponentProps<typeof Box> & Pick<BaseTableContextValue<TRow, TTabValue>, "noRowsOverlay">>) => react_jsx_runtime.JSX.Element;
|
|
366
|
+
type BaseTableContentGridTableProps = Partial<Omit<ComponentProps<typeof TableContainer>, 'children'>> & {
|
|
367
|
+
children?: ReactNode;
|
|
368
|
+
tableProps?: Partial<TableProps>;
|
|
369
|
+
onPinnedShadowChange?: (state: BaseTablePinnedShadowState) => void;
|
|
370
|
+
onHorizontalOverflowChange?: (overflow: boolean) => void;
|
|
371
|
+
showLeftPinnedShadow?: boolean;
|
|
372
|
+
showRightPinnedShadow?: boolean;
|
|
373
|
+
};
|
|
374
|
+
/**
|
|
375
|
+
* Wraps the scrollable table container and reports pinned shadow visibility state.
|
|
376
|
+
*/
|
|
377
|
+
declare const BaseTableContentGridTable: (props: BaseTableContentGridTableProps) => react_jsx_runtime.JSX.Element;
|
|
378
|
+
declare const defaultGridBlocks: {
|
|
379
|
+
table: ReactElement<ComponentProps<typeof BaseTableContentGridTable>>;
|
|
380
|
+
head: ReactElement<ComponentProps<typeof BaseTableContentGridHead>>;
|
|
381
|
+
body: ReactElement<ComponentProps<typeof BaseTableContentGridBody>>;
|
|
382
|
+
rowMenu: ReactElement<ComponentProps<typeof BaseTableContentGridRowMenu>>;
|
|
383
|
+
emptyState: ReactElement<ComponentProps<typeof BaseTableContentEmptyState>>;
|
|
384
|
+
};
|
|
385
|
+
type BaseTableContentGridProps<TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> = {}> = Partial<Omit<ComponentProps<typeof Stack>, 'children'> & Pick<BaseTableContextValue<TRow, TTabValue>, 'columns' | 'rows' | 'actionColumn' | 'rowActions' | 'noRowsOverlay' | 'onRowClick' | 'getRowId'> & {
|
|
386
|
+
emptyState?: ReactNode;
|
|
387
|
+
head?: ReactNode | ((args: Omit<ComponentProps<typeof BaseTable.Content.Grid.Head<TRow>>, 'children'>) => ReactNode);
|
|
388
|
+
body?: ReactNode | ((args: Omit<SetRequired<ComponentProps<typeof BaseTable.Content.Grid.Body<TRow>>, 'onOpenRowMenu'>, 'children'>) => ReactNode);
|
|
389
|
+
rowMenu?: ReactNode | ((args: Omit<ComponentProps<typeof BaseTableContentGridRowMenu<TRow>>, 'children'>) => ReactNode);
|
|
390
|
+
headRow?: BaseTableContentGridHeadProps<TRow>['headRow'];
|
|
391
|
+
headCell?: BaseTableContentGridHeadProps<TRow>['headCell'];
|
|
392
|
+
actionHeadCell?: BaseTableContentGridHeadProps<TRow>['actionHeadCell'];
|
|
393
|
+
bodyRow?: BaseTableContentGridBodyProps<TRow>['bodyRow'];
|
|
394
|
+
bodyCell?: BaseTableContentGridBodyProps<TRow>['bodyCell'];
|
|
395
|
+
actionBodyCell?: BaseTableContentGridBodyProps<TRow>['actionBodyCell'];
|
|
396
|
+
children?: BlocksOverride<typeof defaultGridBlocks, CustomBlocks>;
|
|
397
|
+
}>;
|
|
398
|
+
/**
|
|
399
|
+
* Coordinates the grid table, head, body, row menu, and empty-state blocks.
|
|
400
|
+
*/
|
|
401
|
+
declare const BaseTableContentGrid: <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: BaseTableContentGridProps<TRow, TTabValue>) => react_jsx_runtime.JSX.Element;
|
|
402
|
+
declare const defaultContentBlocks: {
|
|
403
|
+
loader: ReactElement<ComponentProps<typeof BaseTableContentLoader>>;
|
|
404
|
+
emptyState: ReactElement<ComponentProps<typeof BaseTableContentEmptyState>>;
|
|
405
|
+
grid: ReactElement<ComponentProps<typeof BaseTableContentGrid>>;
|
|
406
|
+
};
|
|
407
|
+
/**
|
|
408
|
+
* Chooses between the loader, empty-state, and grid branches for the content area.
|
|
409
|
+
*/
|
|
410
|
+
declare const BaseTableContent: <TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> = {}>(props: Partial<Omit<ComponentProps<typeof Box>, "children"> & Pick<BaseTableContextValue<TRow, TTabValue>, "isLoading" | "rows"> & {
|
|
411
|
+
children?: BlocksOverride<typeof defaultContentBlocks, CustomBlocks>;
|
|
412
|
+
}>) => react_jsx_runtime.JSX.Element;
|
|
413
|
+
/**
|
|
414
|
+
* Renders pagination controls only when rows exist and loading is complete.
|
|
415
|
+
*/
|
|
416
|
+
declare const BaseTablePagination: <TRow extends Record<string, unknown>, TTabValue extends string | number = string>(props: Partial<ComponentProps<typeof Stack> & Pick<BaseTableContextValue<TRow, TTabValue>, "pagination" | "rows" | "isLoading">>) => react_jsx_runtime.JSX.Element | null;
|
|
417
|
+
declare const defaultBlocks: {
|
|
418
|
+
header: ReactElement<ComponentProps<typeof BaseTableHeader>>;
|
|
419
|
+
tabs: ReactElement<ComponentProps<typeof BaseTableTabs>>;
|
|
420
|
+
searchChips: ReactElement<ComponentProps<typeof BaseTableSearchChips>>;
|
|
421
|
+
content: ReactElement<ComponentProps<typeof BaseTableContent>>;
|
|
422
|
+
pagination: ReactElement<ComponentProps<typeof BaseTablePagination>>;
|
|
423
|
+
};
|
|
424
|
+
type BaseTableWithChildrenProps<TRow extends Record<string, unknown>, TTabValue extends string | number, CustomBlocks extends Record<string, ReactNode>> = BaseTableProps<TRow, TTabValue> & {
|
|
425
|
+
children?: BlocksOverride<typeof defaultBlocks, CustomBlocks>;
|
|
426
|
+
};
|
|
427
|
+
type BaseTableComponent = {
|
|
428
|
+
<TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> = {}>(props: BaseTableWithChildrenProps<TRow, TTabValue, CustomBlocks>): ReactNode;
|
|
429
|
+
Header: typeof BaseTableHeader & {
|
|
430
|
+
Title: typeof BaseTableHeaderTitle;
|
|
431
|
+
Actions: typeof BaseTableHeaderActions;
|
|
432
|
+
};
|
|
433
|
+
Tabs: typeof BaseTableTabs;
|
|
434
|
+
SearchChips: typeof BaseTableSearchChips;
|
|
435
|
+
Content: typeof BaseTableContent & {
|
|
436
|
+
Loader: typeof BaseTableContentLoader;
|
|
437
|
+
EmptyState: typeof BaseTableContentEmptyState;
|
|
438
|
+
Grid: typeof BaseTableContentGrid & {
|
|
439
|
+
Table: typeof BaseTableContentGridTable;
|
|
440
|
+
Head: typeof BaseTableContentGridHead & {
|
|
441
|
+
Row: typeof BaseTableContentGridHeadRow;
|
|
442
|
+
Cell: typeof BaseTableContentGridHeadCell;
|
|
443
|
+
ActionCell: typeof BaseTableContentGridHeadActionCell;
|
|
444
|
+
};
|
|
445
|
+
Body: typeof BaseTableContentGridBody & {
|
|
446
|
+
Row: typeof BaseTableContentGridBodyRow;
|
|
447
|
+
Cell: typeof BaseTableContentGridBodyCell;
|
|
448
|
+
ActionCell: typeof BaseTableContentGridBodyActionCell;
|
|
449
|
+
};
|
|
450
|
+
RowMenu: typeof BaseTableContentGridRowMenu;
|
|
451
|
+
};
|
|
452
|
+
};
|
|
453
|
+
Pagination: typeof BaseTablePagination;
|
|
454
|
+
};
|
|
455
|
+
declare const BaseTable: BaseTableComponent;
|
|
456
|
+
|
|
457
|
+
interface ListOrganizationsRowData extends Record<string, unknown> {
|
|
458
|
+
id: string;
|
|
459
|
+
createdAt: string;
|
|
460
|
+
name: string;
|
|
461
|
+
joinDate: string;
|
|
462
|
+
status: string;
|
|
463
|
+
}
|
|
464
|
+
type ListOrganizationsRowActionType = 'activate' | 'deactivate';
|
|
465
|
+
type ListOrganizationsStatusMatch = {
|
|
466
|
+
active: string;
|
|
467
|
+
inactive: string;
|
|
468
|
+
};
|
|
469
|
+
type TabData = {
|
|
470
|
+
key: string;
|
|
471
|
+
label: string;
|
|
472
|
+
isDisabled?: boolean;
|
|
473
|
+
subtitle?: string;
|
|
474
|
+
};
|
|
475
|
+
interface PaginationProps {
|
|
476
|
+
/** Custom class to give the html component */
|
|
477
|
+
className?: string;
|
|
478
|
+
/** Currently selected page in the pagination. Pages are counted from 1. */
|
|
479
|
+
currentPage: number;
|
|
480
|
+
/** Callback when the page is changed */
|
|
481
|
+
onPageChange: (page: number) => void;
|
|
482
|
+
/** Total number of pages in the pagination. */
|
|
483
|
+
totalPages: number;
|
|
484
|
+
}
|
|
485
|
+
type ListOrganizationsLabels = {
|
|
486
|
+
emptyStateMessage: string;
|
|
487
|
+
searchFieldPlaceholder: string;
|
|
488
|
+
rowActions?: {
|
|
489
|
+
activate: string;
|
|
490
|
+
deactivate: string;
|
|
491
|
+
};
|
|
492
|
+
headerRow: {
|
|
493
|
+
createdAt: string;
|
|
494
|
+
name: string;
|
|
495
|
+
joinDate: string;
|
|
496
|
+
status: string;
|
|
497
|
+
};
|
|
498
|
+
cellData: {
|
|
499
|
+
statusActive: string;
|
|
500
|
+
statusInactive: string;
|
|
501
|
+
};
|
|
502
|
+
};
|
|
503
|
+
type ListOrganizationsValue<TTabs extends TabData[] = TabData[]> = {
|
|
504
|
+
isLoading?: boolean;
|
|
505
|
+
labels: ListOrganizationsLabels;
|
|
506
|
+
searchValue?: string;
|
|
507
|
+
onSearchFieldChange?: (value: string) => void;
|
|
508
|
+
onSearchSubmit?: () => void;
|
|
509
|
+
onNavigate?: (to: string) => void;
|
|
510
|
+
onItemActivate?: (rowId: ListOrganizationsRowData['id']) => void;
|
|
511
|
+
onItemDeactivate?: (rowId: ListOrganizationsRowData['id']) => void;
|
|
512
|
+
shouldShowDropdownMenu?: (row: ListOrganizationsRowData) => boolean;
|
|
513
|
+
resolveRowAction?: (row: ListOrganizationsRowData) => ListOrganizationsRowActionType[] | undefined;
|
|
514
|
+
statusMatch?: ListOrganizationsStatusMatch;
|
|
515
|
+
pagination?: PaginationProps;
|
|
516
|
+
data: ListOrganizationsRowData[];
|
|
517
|
+
rowHref?: (row: ListOrganizationsRowData) => string;
|
|
518
|
+
tabs?: TTabs;
|
|
519
|
+
currentTab?: TTabs[number]['key'];
|
|
520
|
+
onTabChange?: (tab: TTabs[number]['key']) => void;
|
|
521
|
+
searchChipsTitle?: ReactNode;
|
|
522
|
+
searchChips?: BaseTableSearchChip[];
|
|
523
|
+
onSearchChipDelete?: (chip: BaseTableSearchChip, index: number, event: SyntheticEvent) => void;
|
|
524
|
+
listOrganizationsTitle: ReactNode;
|
|
525
|
+
columns?: BaseTableColumn<ListOrganizationsRowData>[];
|
|
526
|
+
rowActions?: (row: ListOrganizationsRowData) => BaseTableRowAction<ListOrganizationsRowData>[];
|
|
527
|
+
actionColumn?: BaseTableActionColumn;
|
|
528
|
+
onRowClick?: (row: ListOrganizationsRowData) => void;
|
|
529
|
+
};
|
|
530
|
+
type ListOrganizationsDefaultBlocks = {
|
|
531
|
+
title: ReactNode;
|
|
532
|
+
action: ReactNode;
|
|
533
|
+
header: ReactNode;
|
|
534
|
+
loader: ReactNode;
|
|
535
|
+
content: ReactNode;
|
|
536
|
+
tabs: ReactNode;
|
|
537
|
+
searchChips: ReactNode;
|
|
538
|
+
table: ReactNode;
|
|
539
|
+
pagination: ReactNode;
|
|
540
|
+
};
|
|
541
|
+
type ListOrganizationsRootPassthroughProps = Omit<StackProps, 'children'>;
|
|
542
|
+
type ListOrganizationsProps<TTabs extends TabData[] = TabData[], CustomBlocks extends Record<string, ReactNode> = {}> = ListOrganizationsRootPassthroughProps & Required<Pick<ListOrganizationsValue<TTabs>, 'labels' | 'data' | 'listOrganizationsTitle'>> & Partial<Pick<ListOrganizationsValue<TTabs>, 'isLoading' | 'searchValue' | 'onSearchFieldChange' | 'onSearchSubmit' | 'onNavigate' | 'onItemActivate' | 'onItemDeactivate' | 'shouldShowDropdownMenu' | 'resolveRowAction' | 'statusMatch' | 'pagination' | 'rowHref' | 'tabs' | 'currentTab' | 'onTabChange' | 'searchChipsTitle' | 'searchChips' | 'onSearchChipDelete'>> & {
|
|
543
|
+
children?: BlocksOverride<ListOrganizationsDefaultBlocks, CustomBlocks>;
|
|
544
|
+
};
|
|
545
|
+
type ListOrganizationsTitleProps = ComponentProps<typeof BaseTable.Header.Title> & {
|
|
546
|
+
listOrganizationsTitle?: ReactNode;
|
|
547
|
+
};
|
|
548
|
+
type ListOrganizationsHeaderProps = ComponentProps<typeof BaseTable.Header>;
|
|
549
|
+
type ListOrganizationsActionProps = ComponentProps<typeof BaseTable.Header.Actions> & Partial<Pick<ListOrganizationsValue, 'labels' | 'searchValue' | 'onSearchFieldChange' | 'onSearchSubmit'>>;
|
|
550
|
+
type ListOrganizationsLoaderProps = ComponentProps<typeof BaseTable.Content.Loader>;
|
|
551
|
+
type ListOrganizationsContentProps = ComponentProps<typeof BaseTable.Content>;
|
|
552
|
+
type ListOrganizationsTabsProps = ComponentProps<typeof BaseTable.Tabs<ListOrganizationsRowData>>;
|
|
553
|
+
type ListOrganizationsBaseTableGridProps = ComponentProps<typeof BaseTable.Content.Grid<ListOrganizationsRowData>>;
|
|
554
|
+
/**
|
|
555
|
+
* Props for `ListOrganizations.Table`. `rows` and `noRowsOverlay` are managed internally;
|
|
556
|
+
* pass `columns`, `rowActions`, `actionColumn`, or `onRowClick` to override the defaults
|
|
557
|
+
* derived from `labels`. When those props are omitted the component falls back to the
|
|
558
|
+
* `labels`-based auto-generated values.
|
|
559
|
+
*/
|
|
560
|
+
type ListOrganizationsTableProps = Omit<ListOrganizationsBaseTableGridProps, 'rows' | 'noRowsOverlay'> & Partial<Pick<ListOrganizationsValue, 'labels' | 'data' | 'onItemActivate' | 'onItemDeactivate' | 'shouldShowDropdownMenu' | 'resolveRowAction' | 'statusMatch' | 'rowHref' | 'onNavigate' | 'columns' | 'rowActions' | 'actionColumn' | 'onRowClick'>>;
|
|
561
|
+
type ListOrganizationsPaginationProps = Partial<Omit<ComponentProps<typeof BaseTable.Pagination>, 'pagination' | 'rows' | 'isLoading'>> & Partial<Pick<ListOrganizationsValue, 'pagination' | 'data' | 'isLoading'>>;
|
|
562
|
+
type ListOrganizationsSearchChipsProps = Partial<ComponentProps<typeof BaseTable.SearchChips>>;
|
|
563
|
+
type ListOrganizationsComponent = {
|
|
564
|
+
<TTabs extends TabData[] = TabData[], CustomBlocks extends Record<string, ReactNode> = {}>(props: ListOrganizationsProps<TTabs, CustomBlocks>): ReactNode;
|
|
565
|
+
Title: (props: ListOrganizationsTitleProps) => ReactNode;
|
|
566
|
+
Action: (props: ListOrganizationsActionProps) => ReactNode;
|
|
567
|
+
Header: (props: ListOrganizationsHeaderProps) => ReactNode;
|
|
568
|
+
Loader: (props: ListOrganizationsLoaderProps) => ReactNode;
|
|
569
|
+
Content: (props: ListOrganizationsContentProps) => ReactNode;
|
|
570
|
+
Tabs: (props: ListOrganizationsTabsProps) => ReactNode;
|
|
571
|
+
SearchChips: (props: ListOrganizationsSearchChipsProps) => ReactNode;
|
|
572
|
+
Table: (props: ListOrganizationsTableProps) => ReactNode;
|
|
573
|
+
Pagination: (props: ListOrganizationsPaginationProps) => ReactNode;
|
|
574
|
+
};
|
|
575
|
+
declare const ListOrganizations: ListOrganizationsComponent;
|
|
576
|
+
|
|
577
|
+
export { ListOrganizations };
|
|
578
|
+
export type { BaseTableSearchChip, ListOrganizationsRowData };
|