@keycloak/keycloak-ui-shared 26.7.5 → 26.8.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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as OrganizationRepresentation } from '@keycloak/keycloak-admin-client/lib/defs/organizationRepresentation';
|
|
2
|
-
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { FunctionComponent, PropsWithChildren, ReactElement, ReactNode } from 'react';
|
|
3
3
|
import { Action, LoaderFunction } from './table/KeycloakDataTable';
|
|
4
4
|
export type OrganizationTableProps = PropsWithChildren & {
|
|
5
5
|
loader: LoaderFunction<OrganizationRepresentation> | OrganizationRepresentation[];
|
|
@@ -14,5 +14,9 @@ export type OrganizationTableProps = PropsWithChildren & {
|
|
|
14
14
|
onDelete?: (org: OrganizationRepresentation) => void;
|
|
15
15
|
deleteLabel?: string;
|
|
16
16
|
actions?: Action<OrganizationRepresentation>[];
|
|
17
|
+
/** Renders the membership type cell, plain text when not given. */
|
|
18
|
+
membershipTypeRenderer?: (org: OrganizationRepresentation & {
|
|
19
|
+
membershipType?: string;
|
|
20
|
+
}) => ReactElement | string;
|
|
17
21
|
};
|
|
18
|
-
export declare const OrganizationTable: ({ loader, toolbarItem, isPaginated, isSearching, searchPlaceholderKey, onSelect, onDelete, deleteLabel, link, children, actions, }: OrganizationTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const OrganizationTable: ({ loader, toolbarItem, isPaginated, isSearching, searchPlaceholderKey, onSelect, onDelete, deleteLabel, link, children, actions, membershipTypeRenderer, }: OrganizationTableProps) => import("react/jsx-runtime").JSX.Element;
|