stratosphere-ui 1.6.3 → 1.7.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.
@@ -9,6 +9,7 @@ export interface TableProps<DataType extends GenericDataType> extends Omit<Table
9
9
  enableRowHover?: boolean | ((row: Row<DataType>) => boolean);
10
10
  enableSelectAll?: boolean;
11
11
  enableZebra?: boolean;
12
+ hideHeader?: boolean;
12
13
  highlightWhenSelected?: boolean;
13
14
  isLoading?: boolean;
14
15
  metadata?: PaginationMetadata;
@@ -16,4 +17,4 @@ export interface TableProps<DataType extends GenericDataType> extends Omit<Table
16
17
  pinRows?: boolean;
17
18
  size?: TableSize;
18
19
  }
19
- export declare const Table: <DataType extends GenericDataType>({ cellClassNames, className, enableGlobalFilter, enableRowHover, enableRowSelection, enableSelectAll, enableZebra, highlightWhenSelected, initialState, isLoading, metadata, pinCols, pinRows, size, ...props }: TableProps<DataType>) => import("react/jsx-runtime").JSX.Element;
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;
@@ -1,9 +1,9 @@
1
- import { URLSearchParamsInit } from 'react-router-dom';
2
1
  import { DefaultValues, FieldPath, FieldPathValues, FieldValues, UseFormProps, UseFormReturn } from 'react-hook-form';
3
2
  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>) => URLSearchParamsInit | ((prev: URLSearchParams) => URLSearchParamsInit);
6
+ getSearchParams: (formValues: FieldPathValues<FormValues, FieldNames>) => URLSearchParamsOptions | ((prev: URLSearchParams) => URLSearchParamsOptions);
7
7
  includeKeys: readonly [...FieldNames];
8
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>;