@smart-factor/gem-ui-components 0.0.45 → 0.0.47

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,9 +1,6 @@
1
1
  import { TextFieldProps } from '@mui/material';
2
- import { SelectInputProps } from '@mui/material/Select/SelectInput';
3
2
 
4
- export type SimpleInputProps<T extends SelectInputProps['value']> = {
5
- value: T;
6
- onChange(newValue: T): void;
3
+ export type SimpleInputProps = {
7
4
  errorMessage?: string | null;
8
5
  } & TextFieldProps;
9
- export declare const SimpleInput: <T extends unknown>({ onChange, sx, errorMessage, ...props }: SimpleInputProps<T>) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const SimpleInput: ({ sx, errorMessage, ...props }: SimpleInputProps) => import("react/jsx-runtime").JSX.Element;
@@ -3,5 +3,5 @@ import { Meta, StoryObj } from '@storybook/react';
3
3
 
4
4
  declare const meta: Meta<typeof SimpleInput>;
5
5
  export default meta;
6
- type Story = StoryObj<SimpleInputProps<string>>;
6
+ type Story = StoryObj<SimpleInputProps>;
7
7
  export declare const Docs: Story;
@@ -1,4 +1,4 @@
1
1
  import { GridValidRowModel } from '@mui/x-data-grid-pro';
2
2
  import { TableWithPaginationProps } from './types';
3
3
 
4
- export declare const TableWithPagination: <T extends GridValidRowModel>({ rowsData, paginationAndSortState, setPaginationAndSortState, isLoading, columns, offset, tableKey, filterModel, onFilterModelChange, pinnedColumns, exportDataAsExcel, showPaginationFirstAndLastButtons, }: TableWithPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const TableWithPagination: <T extends GridValidRowModel>({ rowsData, paginationAndSortState, setPaginationAndSortState, isLoading, columns, offset, tableKey, filterModel, onFilterModelChange, pinnedColumns, exportDataAsExcel, showPaginationFirstAndLastButtons, autosizeOptions }: TableWithPaginationProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
- import { GridApiPro, GridCallbackDetails, GridColDef, GridColumnPinningState, GridFilterModel, GridValidRowModel } from '@mui/x-data-grid-pro';
2
+ import { GridApiPro, GridAutosizeOptions, GridCallbackDetails, GridColDef, GridColumnPinningState, GridFilterModel, GridValidRowModel } from '@mui/x-data-grid-pro';
3
3
 
4
4
  interface SortState {
5
5
  field: string;
@@ -49,5 +49,6 @@ export interface TableWithPaginationProps<T extends GridValidRowModel> {
49
49
  onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails<'filter'>) => void;
50
50
  exportDataAsExcel?: (gridApiRef: React.MutableRefObject<GridApiPro>) => void;
51
51
  showPaginationFirstAndLastButtons?: boolean;
52
+ autosizeOptions?: GridAutosizeOptions;
52
53
  }
53
54
  export {};