stratosphere-ui 1.7.1 → 1.8.1
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,7 @@
|
|
|
1
1
|
import { ButtonProps } from '../Button';
|
|
2
|
-
export interface FormRadioGroupOptionProps extends ButtonProps {
|
|
2
|
+
export interface FormRadioGroupOptionProps extends Omit<ButtonProps, 'color'> {
|
|
3
|
+
activeColor?: ButtonProps['color'];
|
|
4
|
+
inactiveColor?: ButtonProps['color'];
|
|
3
5
|
value: string;
|
|
4
6
|
}
|
|
5
|
-
export declare const FormRadioGroupOption: ({ children, className, disabled, value, ...props }: FormRadioGroupOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export declare const FormRadioGroupOption: ({ activeColor, children, className, disabled, inactiveColor, value, ...props }: FormRadioGroupOptionProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -4,11 +4,13 @@ import { PaginationMetadata } from '../Pagination/types';
|
|
|
4
4
|
export declare const TABLE_SIZES: readonly ["lg", "md", "sm", "xs"];
|
|
5
5
|
export type TableSize = (typeof TABLE_SIZES)[number];
|
|
6
6
|
export interface TableProps<DataType extends GenericDataType> extends Omit<TableOptions<DataType>, 'getRowId'> {
|
|
7
|
+
bodyClassName?: string;
|
|
7
8
|
cellClassNames?: Record<string, string>;
|
|
8
9
|
className?: string;
|
|
9
10
|
enableRowHover?: boolean | ((row: Row<DataType>) => boolean);
|
|
10
11
|
enableSelectAll?: boolean;
|
|
11
12
|
enableZebra?: boolean;
|
|
13
|
+
headerClassName?: string;
|
|
12
14
|
hideHeader?: boolean;
|
|
13
15
|
highlightWhenSelected?: boolean;
|
|
14
16
|
isLoading?: boolean;
|
|
@@ -17,4 +19,4 @@ export interface TableProps<DataType extends GenericDataType> extends Omit<Table
|
|
|
17
19
|
pinRows?: boolean;
|
|
18
20
|
size?: TableSize;
|
|
19
21
|
}
|
|
20
|
-
export declare const Table: <DataType extends GenericDataType>({ cellClassNames, className, enableGlobalFilter, enableRowHover, enableRowSelection, enableSelectAll, enableZebra, hideHeader, highlightWhenSelected, initialState, isLoading, metadata, pinCols, pinRows, size, ...props }: TableProps<DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export declare const Table: <DataType extends GenericDataType>({ bodyClassName, cellClassNames, className, enableGlobalFilter, enableRowHover, enableRowSelection, enableSelectAll, enableZebra, headerClassName, hideHeader, highlightWhenSelected, initialState, isLoading, metadata, pinCols, pinRows, size, ...props }: TableProps<DataType>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
import { NavigateOptions } from 'react-router-dom';
|
|
1
2
|
import { DefaultValues, FieldPath, FieldPathValues, FieldValues, UseFormProps, UseFormReturn } from 'react-hook-form';
|
|
2
3
|
export type QueryParamValues<FormValues extends FieldValues> = Partial<Record<keyof FormValues, string | null>>;
|
|
3
|
-
export type URLSearchParamsOptions = string | string[][] | Record<string, string> | URLSearchParams | undefined;
|
|
4
4
|
export interface UseFormWithQueryParamsOptions<FormValues extends FieldValues = FieldValues, FieldNames extends readonly FieldPath<FormValues>[] = readonly FieldPath<FormValues>[], FormContext = any> extends Omit<UseFormProps<FormValues, FormContext>, 'defaultValues'> {
|
|
5
5
|
getDefaultValues: (searchParamValues: QueryParamValues<FormValues>) => DefaultValues<FormValues>;
|
|
6
|
-
getSearchParams: (formValues: FieldPathValues<FormValues, FieldNames>) =>
|
|
6
|
+
getSearchParams: (formValues: FieldPathValues<FormValues, FieldNames>) => Record<string, string> | ((prev: URLSearchParams) => Record<string, string>);
|
|
7
7
|
includeKeys: readonly [...FieldNames];
|
|
8
|
+
navigateOptions?: NavigateOptions;
|
|
8
9
|
}
|
|
9
|
-
export declare const useFormWithQueryParams: <FormValues extends FieldValues = FieldValues, FieldNames extends readonly FieldPath<FormValues>[] = readonly FieldPath<FormValues>[], FormContext = any, TransformedValues extends FieldValues | undefined = undefined>({ getDefaultValues, getSearchParams, includeKeys, ...useFormOptions }: UseFormWithQueryParamsOptions<FormValues, FieldNames, FormContext>) => UseFormReturn<FormValues, FormContext, TransformedValues>;
|
|
10
|
+
export declare const useFormWithQueryParams: <FormValues extends FieldValues = FieldValues, FieldNames extends readonly FieldPath<FormValues>[] = readonly FieldPath<FormValues>[], FormContext = any, TransformedValues extends FieldValues | undefined = undefined>({ getDefaultValues, getSearchParams, includeKeys, navigateOptions, ...useFormOptions }: UseFormWithQueryParamsOptions<FormValues, FieldNames, FormContext>) => UseFormReturn<FormValues, FormContext, TransformedValues>;
|