@nodeblocks/frontend-list-organization-block 0.4.0 → 0.4.2
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/README.md +42 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +12 -12
- package/dist/index.esm.js +1 -1
- package/package.json +3 -3
- package/readme.md +0 -64
package/dist/index.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ declare const defaultHeaderBlocks: {
|
|
|
135
135
|
/**
|
|
136
136
|
* Composes the header title and action blocks at the top of the table layout.
|
|
137
137
|
*/
|
|
138
|
-
declare const BaseTableHeader: <TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> =
|
|
138
|
+
declare const BaseTableHeader: <TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> = Record<string, ReactNode>>(props: Partial<Omit<StackProps, "children">> & {
|
|
139
139
|
children?: BlocksOverride<typeof defaultHeaderBlocks, CustomBlocks>;
|
|
140
140
|
}) => react_jsx_runtime.JSX.Element | null;
|
|
141
141
|
/**
|
|
@@ -218,7 +218,7 @@ declare const defaultContentGridHeadRowBlocks: {
|
|
|
218
218
|
pinMeta?: BaseTableColumnPinMeta;
|
|
219
219
|
}, (props: BaseTableContentGridHeadActionCellProps) => react_jsx_runtime.JSX.Element>;
|
|
220
220
|
};
|
|
221
|
-
type BaseTableContentGridHeadRowProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> =
|
|
221
|
+
type BaseTableContentGridHeadRowProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> = Record<string, ReactNode>> = Partial<Omit<TableRowProps, 'children'>> & {
|
|
222
222
|
columns: BaseTableContextValue<TRow>['columns'];
|
|
223
223
|
rowActions?: ((row: TRow) => BaseTableRowAction<TRow>[]) | undefined;
|
|
224
224
|
headCell?: ReactNode | ((args: BaseTableContentGridHeadCellRenderArgs<TRow>) => ReactNode);
|
|
@@ -247,7 +247,7 @@ declare const defaultBodyRowBlocks: {
|
|
|
247
247
|
onOpenRowMenu?: RowMenuOpenHandler<Record<string, unknown>> | undefined;
|
|
248
248
|
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyActionCellProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
249
249
|
};
|
|
250
|
-
type BaseTableContentGridBodyRowProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> =
|
|
250
|
+
type BaseTableContentGridBodyRowProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> = Record<string, ReactNode>> = {
|
|
251
251
|
row: TRow;
|
|
252
252
|
rowIndex: number;
|
|
253
253
|
columns: BaseTableContextValue<TRow>['columns'];
|
|
@@ -282,11 +282,11 @@ declare const defaultContentGridHeadBlocks: {
|
|
|
282
282
|
actionCell: ReactElement<Partial<TableCellProps> & {
|
|
283
283
|
pinMeta?: BaseTableColumnPinMeta;
|
|
284
284
|
}, (props: BaseTableContentGridHeadActionCellProps) => react_jsx_runtime.JSX.Element>;
|
|
285
|
-
},
|
|
285
|
+
}, Record<string, ReactNode>>;
|
|
286
286
|
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridHeadRowProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
287
287
|
};
|
|
288
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> =
|
|
289
|
+
type BaseTableContentGridHeadProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> = Record<string, ReactNode>> = Partial<Omit<TableHeadProps, 'children'>> & {
|
|
290
290
|
columns: BaseTableContextValue<TRow>['columns'];
|
|
291
291
|
rowActions?: ((row: TRow) => BaseTableRowAction<TRow>[]) | undefined;
|
|
292
292
|
headRow?: ReactNode | ((args: BaseTableContentGridHeadRowRenderArgs<TRow>) => ReactNode);
|
|
@@ -327,11 +327,11 @@ declare const defaultGridBodyBlocks: {
|
|
|
327
327
|
icon?: ReactNode;
|
|
328
328
|
onOpenRowMenu?: RowMenuOpenHandler<Record<string, unknown>> | undefined;
|
|
329
329
|
}, <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyActionCellProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
330
|
-
},
|
|
330
|
+
}, Record<string, ReactNode>>;
|
|
331
331
|
} & Partial<Omit<TableRowProps, "children">>, <TRow extends Record<string, unknown>>(props: BaseTableContentGridBodyRowProps<TRow>) => react_jsx_runtime.JSX.Element>;
|
|
332
332
|
};
|
|
333
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> =
|
|
334
|
+
type BaseTableContentGridBodyProps<TRow extends Record<string, unknown>, CustomBlocks extends Record<string, ReactNode> = Record<string, ReactNode>> = Partial<Omit<TableBodyProps, 'children'>> & {
|
|
335
335
|
columns: BaseTableContextValue<TRow>['columns'];
|
|
336
336
|
rows: TRow[];
|
|
337
337
|
rowActions?: ((row: TRow) => BaseTableRowAction<TRow>[]) | undefined;
|
|
@@ -382,7 +382,7 @@ declare const defaultGridBlocks: {
|
|
|
382
382
|
rowMenu: ReactElement<ComponentProps<typeof BaseTableContentGridRowMenu>>;
|
|
383
383
|
emptyState: ReactElement<ComponentProps<typeof BaseTableContentEmptyState>>;
|
|
384
384
|
};
|
|
385
|
-
type BaseTableContentGridProps<TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> =
|
|
385
|
+
type BaseTableContentGridProps<TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> = Record<string, ReactNode>> = Partial<Omit<ComponentProps<typeof Stack>, 'children'> & Pick<BaseTableContextValue<TRow, TTabValue>, 'columns' | 'rows' | 'actionColumn' | 'rowActions' | 'noRowsOverlay' | 'onRowClick' | 'getRowId'> & {
|
|
386
386
|
emptyState?: ReactNode;
|
|
387
387
|
head?: ReactNode | ((args: Omit<ComponentProps<typeof BaseTable.Content.Grid.Head<TRow>>, 'children'>) => ReactNode);
|
|
388
388
|
body?: ReactNode | ((args: Omit<SetRequired<ComponentProps<typeof BaseTable.Content.Grid.Body<TRow>>, 'onOpenRowMenu'>, 'children'>) => ReactNode);
|
|
@@ -407,7 +407,7 @@ declare const defaultContentBlocks: {
|
|
|
407
407
|
/**
|
|
408
408
|
* Chooses between the loader, empty-state, and grid branches for the content area.
|
|
409
409
|
*/
|
|
410
|
-
declare const BaseTableContent: <TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> =
|
|
410
|
+
declare const BaseTableContent: <TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> = Record<string, ReactNode>>(props: Partial<Omit<ComponentProps<typeof Box>, "children"> & Pick<BaseTableContextValue<TRow, TTabValue>, "isLoading" | "rows"> & {
|
|
411
411
|
children?: BlocksOverride<typeof defaultContentBlocks, CustomBlocks>;
|
|
412
412
|
}>) => react_jsx_runtime.JSX.Element;
|
|
413
413
|
/**
|
|
@@ -425,7 +425,7 @@ type BaseTableWithChildrenProps<TRow extends Record<string, unknown>, TTabValue
|
|
|
425
425
|
children?: BlocksOverride<typeof defaultBlocks, CustomBlocks>;
|
|
426
426
|
};
|
|
427
427
|
type BaseTableComponent = {
|
|
428
|
-
<TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> =
|
|
428
|
+
<TRow extends Record<string, unknown>, TTabValue extends string | number = string, CustomBlocks extends Record<string, ReactNode> = Record<string, ReactNode>>(props: BaseTableWithChildrenProps<TRow, TTabValue, CustomBlocks>): ReactNode;
|
|
429
429
|
Header: typeof BaseTableHeader & {
|
|
430
430
|
Title: typeof BaseTableHeaderTitle;
|
|
431
431
|
Actions: typeof BaseTableHeaderActions;
|
|
@@ -539,7 +539,7 @@ type ListOrganizationsDefaultBlocks = {
|
|
|
539
539
|
pagination: ReactNode;
|
|
540
540
|
};
|
|
541
541
|
type ListOrganizationsRootPassthroughProps = Omit<StackProps, 'children'>;
|
|
542
|
-
type ListOrganizationsProps<TTabs extends TabData[] = TabData[], CustomBlocks extends Record<string, ReactNode> =
|
|
542
|
+
type ListOrganizationsProps<TTabs extends TabData[] = TabData[], CustomBlocks extends Record<string, ReactNode> = 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
543
|
children?: BlocksOverride<ListOrganizationsDefaultBlocks, CustomBlocks>;
|
|
544
544
|
};
|
|
545
545
|
type ListOrganizationsTitleProps = ComponentProps<typeof BaseTable.Header.Title> & {
|
|
@@ -561,7 +561,7 @@ type ListOrganizationsTableProps = Omit<ListOrganizationsBaseTableGridProps, 'ro
|
|
|
561
561
|
type ListOrganizationsPaginationProps = Partial<Omit<ComponentProps<typeof BaseTable.Pagination>, 'pagination' | 'rows' | 'isLoading'>> & Partial<Pick<ListOrganizationsValue, 'pagination' | 'data' | 'isLoading'>>;
|
|
562
562
|
type ListOrganizationsSearchChipsProps = Partial<ComponentProps<typeof BaseTable.SearchChips>>;
|
|
563
563
|
type ListOrganizationsComponent = {
|
|
564
|
-
<TTabs extends TabData[] = TabData[], CustomBlocks extends Record<string, ReactNode> =
|
|
564
|
+
<TTabs extends TabData[] = TabData[], CustomBlocks extends Record<string, ReactNode> = Record<string, ReactNode>>(props: ListOrganizationsProps<TTabs, CustomBlocks>): ReactNode;
|
|
565
565
|
Title: (props: ListOrganizationsTitleProps) => ReactNode;
|
|
566
566
|
Action: (props: ListOrganizationsActionProps) => ReactNode;
|
|
567
567
|
Header: (props: ListOrganizationsHeaderProps) => ReactNode;
|