@keycloak/keycloak-ui-shared 26.5.7 → 26.6.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/context/KeycloakContext.d.ts +2 -1
- package/dist/controls/HelpItem.d.ts +2 -1
- package/dist/controls/OrganizationTable.d.ts +3 -2
- package/dist/controls/select-control/SelectControl.d.ts +2 -0
- package/dist/controls/select-control/SingleSelectControl.d.ts +1 -1
- package/dist/controls/select-control/TypeaheadSelectControl.d.ts +1 -1
- package/dist/keycloak-ui-shared.js +1056 -1027
- package/dist/keycloak-ui-shared.js.map +1 -0
- package/package.json +4 -4
|
@@ -7,6 +7,7 @@ export type KeycloakContext<T extends BaseEnvironment = BaseEnvironment> = Keycl
|
|
|
7
7
|
export declare const useEnvironment: <T extends BaseEnvironment = BaseEnvironment>() => KeycloakContext<T>;
|
|
8
8
|
interface KeycloakContextProps<T extends BaseEnvironment> {
|
|
9
9
|
environment: T;
|
|
10
|
+
keycloak?: Keycloak;
|
|
10
11
|
}
|
|
11
|
-
export declare const KeycloakProvider: <T extends BaseEnvironment>({ environment, children, }: PropsWithChildren<KeycloakContextProps<T>>) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const KeycloakProvider: <T extends BaseEnvironment>({ environment, keycloak: externalKeycloak, children, }: PropsWithChildren<KeycloakContextProps<T>>) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export {};
|
|
@@ -4,6 +4,7 @@ type HelpItemProps = {
|
|
|
4
4
|
fieldLabelId: string;
|
|
5
5
|
noVerticalAlign?: boolean;
|
|
6
6
|
unWrap?: boolean;
|
|
7
|
+
isRecommendation?: boolean;
|
|
7
8
|
};
|
|
8
|
-
export declare const HelpItem: ({ helpText, fieldLabelId, noVerticalAlign, unWrap, }: HelpItemProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
export declare const HelpItem: ({ helpText, fieldLabelId, noVerticalAlign, unWrap, isRecommendation, }: HelpItemProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
10
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as OrganizationRepresentation } from '@keycloak/keycloak-admin-client/lib/defs/organizationRepresentation';
|
|
2
2
|
import { FunctionComponent, PropsWithChildren, ReactNode } from 'react';
|
|
3
|
-
import { LoaderFunction } from './table/KeycloakDataTable';
|
|
3
|
+
import { Action, LoaderFunction } from './table/KeycloakDataTable';
|
|
4
4
|
export type OrganizationTableProps = PropsWithChildren & {
|
|
5
5
|
loader: LoaderFunction<OrganizationRepresentation> | OrganizationRepresentation[];
|
|
6
6
|
link: FunctionComponent<PropsWithChildren<{
|
|
@@ -13,5 +13,6 @@ export type OrganizationTableProps = PropsWithChildren & {
|
|
|
13
13
|
onSelect?: (orgs: OrganizationRepresentation[]) => void;
|
|
14
14
|
onDelete?: (org: OrganizationRepresentation) => void;
|
|
15
15
|
deleteLabel?: string;
|
|
16
|
+
actions?: Action<OrganizationRepresentation>[];
|
|
16
17
|
};
|
|
17
|
-
export declare const OrganizationTable: ({ loader, toolbarItem, isPaginated, isSearching, searchPlaceholderKey, onSelect, onDelete, deleteLabel, link, children, }: OrganizationTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const OrganizationTable: ({ loader, toolbarItem, isPaginated, isSearching, searchPlaceholderKey, onSelect, onDelete, deleteLabel, link, children, actions, }: OrganizationTableProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -9,6 +9,7 @@ export declare enum SelectVariant {
|
|
|
9
9
|
export type SelectControlOption = {
|
|
10
10
|
key: string;
|
|
11
11
|
value: string;
|
|
12
|
+
description?: string;
|
|
12
13
|
};
|
|
13
14
|
export type OptionType = string[] | SelectControlOption[];
|
|
14
15
|
export type SelectControlProps<T extends FieldValues, P extends FieldPath<T> = FieldPath<T>> = Omit<SelectProps, "name" | "toggle" | "selections" | "onSelect" | "onClear" | "isOpen" | "onFilter" | "variant"> & UseControllerProps<T, P> & {
|
|
@@ -21,6 +22,7 @@ export type SelectControlProps<T extends FieldValues, P extends FieldPath<T> = F
|
|
|
21
22
|
onFilter?: (value: string) => void;
|
|
22
23
|
variant?: Variant;
|
|
23
24
|
isDisabled?: boolean;
|
|
25
|
+
isFullWidth?: boolean;
|
|
24
26
|
menuAppendTo?: string;
|
|
25
27
|
placeholderText?: string;
|
|
26
28
|
chipGroupProps?: ChipGroupProps;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
2
2
|
import { SelectControlProps } from './SelectControl';
|
|
3
|
-
export declare const SingleSelectControl: <T extends FieldValues, P extends FieldPath<T> = FieldPath<T>>({ id, name, label, options, selectedOptions, controller, labelIcon, isDisabled, onSelect, ...rest }: SelectControlProps<T, P>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const SingleSelectControl: <T extends FieldValues, P extends FieldPath<T> = FieldPath<T>>({ id, name, label, options, selectedOptions, controller, labelIcon, isDisabled, isFullWidth, onSelect, ...rest }: SelectControlProps<T, P>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { FieldPath, FieldValues } from 'react-hook-form';
|
|
2
2
|
import { SelectControlProps } from './SelectControl';
|
|
3
|
-
export declare const TypeaheadSelectControl: <T extends FieldValues, P extends FieldPath<T> = FieldPath<T>>({ id, name, label, options, selectedOptions, controller, labelIcon, placeholderText, onFilter, variant, ...rest }: SelectControlProps<T, P>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export declare const TypeaheadSelectControl: <T extends FieldValues, P extends FieldPath<T> = FieldPath<T>>({ id, name, label, options, selectedOptions, controller, labelIcon, placeholderText, onFilter, variant, isFullWidth, ...rest }: SelectControlProps<T, P>) => import("react/jsx-runtime").JSX.Element;
|