stratosphere-ui 1.8.1 → 1.8.3

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.
@@ -19,4 +19,4 @@ export interface SelectProps<DataItem extends GenericDataType, Values extends Fi
19
19
  options?: DataItem[];
20
20
  showDirty?: boolean;
21
21
  }
22
- export declare const Select: <DataItem extends GenericDataType, Values extends FieldValues>({ buttonColor, buttonProps: { className: buttonClassName, color: buttonPropsColor, ...buttonProps }, className, disabled, dropdownIcon, formValueMode, getItemText, hideDropdownIcon, isRequired, labelText, menuClassName, menuSize, multi, name, options: optionsArray, showDirty, }: SelectProps<DataItem, Values>) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const Select: <DataItem extends GenericDataType, Values extends FieldValues>({ buttonColor, buttonProps: { children: buttonChildren, className: buttonClassName, color: buttonPropsColor, ...buttonProps }, className, disabled, dropdownIcon, formValueMode, getItemText, hideDropdownIcon, isRequired, labelText, menuClassName, menuSize, multi, name, options: optionsArray, showDirty, }: SelectProps<DataItem, Values>) => import("react/jsx-runtime").JSX.Element;
@@ -1,10 +1,12 @@
1
- import { Row, TableOptions } from '@tanstack/react-table';
1
+ import { Column, Row, TableOptions } from '@tanstack/react-table';
2
+ import { Argument } from 'classnames';
2
3
  import { GenericDataType } from '../../common';
3
4
  import { PaginationMetadata } from '../Pagination/types';
4
5
  export declare const TABLE_SIZES: readonly ["lg", "md", "sm", "xs"];
5
6
  export type TableSize = (typeof TABLE_SIZES)[number];
6
7
  export interface TableProps<DataType extends GenericDataType> extends Omit<TableOptions<DataType>, 'getRowId'> {
7
8
  bodyClassName?: string;
9
+ cellClassName?: Argument | ((row: Row<DataType>, col: Column<DataType, unknown>) => Argument);
8
10
  cellClassNames?: Record<string, string>;
9
11
  className?: string;
10
12
  enableRowHover?: boolean | ((row: Row<DataType>) => boolean);
@@ -17,6 +19,7 @@ export interface TableProps<DataType extends GenericDataType> extends Omit<Table
17
19
  metadata?: PaginationMetadata;
18
20
  pinCols?: boolean;
19
21
  pinRows?: boolean;
22
+ rowClassName?: Argument | ((row: Row<DataType>) => Argument);
20
23
  size?: TableSize;
21
24
  }
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;
25
+ export declare const Table: <DataType extends GenericDataType>({ bodyClassName, cellClassName, cellClassNames, className, enableGlobalFilter, enableRowHover, enableRowSelection, enableSelectAll, enableZebra, headerClassName, hideHeader, highlightWhenSelected, initialState, isLoading, metadata, pinCols, pinRows, rowClassName, size, ...props }: TableProps<DataType>) => import("react/jsx-runtime").JSX.Element;