@myunisoft/design-system 1.1.4 → 1.2.0-myun36212.2

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.
Files changed (79) hide show
  1. package/dist/components/AccordionSection/index.d.ts +1 -1
  2. package/dist/components/Autocomplete/Autocomplete/AutocompleteTag/index.d.ts +14 -0
  3. package/dist/components/Autocomplete/Autocomplete/example-usage.d.ts +4 -0
  4. package/dist/components/Autocomplete/Autocomplete/index.d.ts +51 -0
  5. package/dist/components/Autocomplete/AutocompleteMultiple/Results/SuggestList/SuggestItem/styles.d.ts +1 -1
  6. package/dist/components/Autocomplete/AutocompleteMultiple/index.d.ts +3 -0
  7. package/dist/components/Autocomplete/AutocompleteMultiple/styles.d.ts +1 -1
  8. package/dist/components/Autocomplete/AutocompleteSingle/Mode/edit.d.ts +2 -3
  9. package/dist/components/Autocomplete/AutocompleteSingle/Mode/view.d.ts +1 -2
  10. package/dist/components/Autocomplete/AutocompleteSingle/index.d.ts +3 -0
  11. package/dist/components/BadgeAdd/index.d.ts +1 -1
  12. package/dist/components/DataGrid/DataGridDS.d.ts +2 -2
  13. package/dist/components/DataGrid/components/menu/RowMenu/index.d.ts +1 -1
  14. package/dist/components/DataGrid/components/panel/CustomGridColumnsPanel/ColumnsManagementTable.d.ts +1 -1
  15. package/dist/components/DataGrid/components/toolbar/ArrayButtons/index.d.ts +2 -2
  16. package/dist/components/DataGrid/components/toolbar/CustomGridToolbar.d.ts +2 -2
  17. package/dist/components/DataGrid/components/toolbar/ToolbarIconButton/index.d.ts +1 -1
  18. package/dist/components/DataGrid/components/toolbar/buttons/QuickFilterButton.d.ts +1 -1
  19. package/dist/components/DataGrid/contexts/EditContext.d.ts +1 -1
  20. package/dist/components/DataGrid/index.d.ts +1 -1
  21. package/dist/components/DataGrid/utils.d.ts +1 -1
  22. package/dist/components/DraggableList/index.d.ts +1 -1
  23. package/dist/components/Modal/components/ModalAction.d.ts +2 -2
  24. package/dist/components/Modal/components/ModalClose.d.ts +1 -1
  25. package/dist/components/Modal/components/ModalContent.d.ts +1 -1
  26. package/dist/components/Modal/components/ModalCustomAction.d.ts +1 -1
  27. package/dist/components/Modal/components/ModalPrimaryAction.d.ts +2 -2
  28. package/dist/components/Modal/components/ModalSecondaryAction.d.ts +2 -2
  29. package/dist/components/Modal/components/ModalTitle.d.ts +2 -2
  30. package/dist/components/Modal/index.d.ts +1 -1
  31. package/dist/components/SplitButton/index.d.ts +2 -2
  32. package/dist/components/VirtualTable/cells/AmountCell/index.d.ts +5 -1
  33. package/dist/components/VirtualTable/cells/AutocompleteCell/Mode/edit.d.ts +1 -1
  34. package/dist/components/VirtualTable/cells/AutocompleteCell/index.d.ts +5 -1
  35. package/dist/components/VirtualTable/cells/NumberCell/index.d.ts +5 -1
  36. package/dist/components/VirtualTable/cells/SelectCell/Mode/view.d.ts +1 -1
  37. package/dist/components/VirtualTable/cells/StringCell/index.d.ts +5 -1
  38. package/dist/components/VirtualTable/components/Body/Cell/styles.d.ts +1 -1
  39. package/dist/components/VirtualTable/components/Buttons/Button/index.d.ts +2 -2
  40. package/dist/components/VirtualTable/components/Buttons/index.d.ts +2 -2
  41. package/dist/components/VirtualTable/components/ColumnsSetting/ColumnsSetting.d.ts +5 -4
  42. package/dist/components/VirtualTable/components/ColumnsSetting/hooks/index.d.ts +1 -1
  43. package/dist/components/VirtualTable/components/ColumnsSetting/hooks/useColumnsSetting.d.ts +1 -1
  44. package/dist/components/VirtualTable/components/ContextMenu/index.d.ts +1 -1
  45. package/dist/components/VirtualTable/components/ErrorTooltip/index.d.ts +1 -1
  46. package/dist/components/VirtualTable/components/ExportDialog/index.d.ts +1 -0
  47. package/dist/components/VirtualTable/components/ExportDialog/styles.d.ts +1 -1
  48. package/dist/components/VirtualTable/components/Footer/Cell/styles.d.ts +1 -1
  49. package/dist/components/VirtualTable/components/Header/components/Sortable/index.d.ts +1 -1
  50. package/dist/components/VirtualTable/components/Icon/Font/index.d.ts +1 -1
  51. package/dist/components/VirtualTable/components/Icon/index.d.ts +1 -1
  52. package/dist/components/VirtualTable/components/SearchBar/component/FilterChip/styles.d.ts +1 -1
  53. package/dist/components/VirtualTable/components/SearchBar/styles.d.ts +1 -1
  54. package/dist/components/VirtualTable/components/Toolbar/SettingsIcon.d.ts +1 -1
  55. package/dist/components/VirtualTable/features/secured/utils.d.ts +1 -1
  56. package/dist/components/VirtualTable/features/selection/utils.d.ts +1 -0
  57. package/dist/components/VirtualTable/helpers/filter.d.ts +1 -1
  58. package/dist/components/VirtualTable/hooks/useColumns.d.ts +1 -1
  59. package/dist/components/VirtualTable/hooks/useNavigation.d.ts +3 -3
  60. package/dist/components/VirtualTable/hooks/useWindowState.d.ts +2 -9
  61. package/dist/components/VirtualTable/styles.d.ts +1 -1
  62. package/dist/components/VirtualTable/utils.d.ts +1 -1
  63. package/dist/components/basics/Badge/index.d.ts +1 -1
  64. package/dist/components/basics/Checkbox/index.d.ts +3 -1
  65. package/dist/components/basics/ExpandButton/index.d.ts +1 -1
  66. package/dist/components/basics/Icon/Icon.d.ts +1 -1
  67. package/dist/components/basics/Icon/Icons-material/index.d.ts +4 -4
  68. package/dist/components/basics/Icon/index.d.ts +15 -15
  69. package/dist/components/basics/Title/index.d.ts +1 -1
  70. package/dist/helpers/hooks/useWindowWidth.d.ts +2 -0
  71. package/dist/helpers/validation/validators.d.ts +1 -1
  72. package/dist/index.d.ts +4 -3
  73. package/dist/index.js +3 -3
  74. package/package.json +117 -115
  75. package/dist/components/DataGrid/DataGrid.d.ts +0 -3
  76. package/dist/components/DataGrid/hooks/useSizing.d.ts +0 -5
  77. package/dist/components/DataGrid/hooks/useSizing.test.d.ts +0 -1
  78. package/dist/components/Modal/components/ModalVariantIcon.d.ts +0 -6
  79. package/dist/components/basics/Icon/Icons-material/Crop32.d.ts +0 -4
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from 'react';
1
+ import { type FC, type ReactNode } from 'react';
2
2
  type AccordionSectionProps = {
3
3
  title: string;
4
4
  children: ReactNode;
@@ -0,0 +1,14 @@
1
+ import type React from 'react';
2
+ import { type SxProps, type Theme } from '@mui/material';
3
+ import type { OptionType } from '../index';
4
+ export type AutocompleteTagProps = {
5
+ option?: OptionType;
6
+ label?: string;
7
+ maxChipWidth?: number;
8
+ reserveForCounter?: number;
9
+ isDisabled?: boolean;
10
+ onDelete?: (event: MouseEvent) => void;
11
+ sx?: SxProps<Theme>;
12
+ };
13
+ declare const AutocompleteTag: React.FC<AutocompleteTagProps>;
14
+ export default AutocompleteTag;
@@ -0,0 +1,4 @@
1
+ declare const BasicExample: () => import("react/jsx-runtime").JSX.Element;
2
+ declare const CustomOptionExample: () => import("react/jsx-runtime").JSX.Element;
3
+ declare const ProductExample: () => import("react/jsx-runtime").JSX.Element;
4
+ export { BasicExample, CustomOptionExample, ProductExample };
@@ -0,0 +1,51 @@
1
+ import React, { type ReactNode } from 'react';
2
+ import { type ChipProps, type AutocompleteProps as MuiAutocompleteProps, type TextFieldVariants } from '@mui/material';
3
+ import type { InputProps as StandardInputProps } from '@mui/material/Input/Input';
4
+ export type OptionType = {
5
+ id: string | number;
6
+ label: string;
7
+ /**
8
+ * @deprecated Use value instead
9
+ */
10
+ selected?: boolean;
11
+ disabled?: boolean;
12
+ optionType?: 'default' | 'primary' | 'secondary' | 'error' | 'info' | 'success' | 'warning';
13
+ };
14
+ type SingleValueType<T> = T | null;
15
+ type MultiValueType<T> = T[];
16
+ type ValueType<T> = SingleValueType<T> | MultiValueType<T>;
17
+ export type AutocompleteBaseProps<T extends OptionType = OptionType> = {
18
+ label?: string;
19
+ options?: T[];
20
+ isError?: boolean;
21
+ isDisplayLabel?: boolean;
22
+ customSearch?: (inputValue: string, options: T[]) => T[];
23
+ selectAllHidden?: boolean;
24
+ selectAllLabel?: string;
25
+ allSelectedLabel?: string;
26
+ isDisabled?: boolean;
27
+ oneRowMode?: boolean;
28
+ InputProps?: StandardInputProps;
29
+ onIsSearchingChange?: (isOpen: boolean) => void;
30
+ getOptionLabel?: (option: T) => string;
31
+ onCreate?: (label: string, options: T[]) => void;
32
+ renderTag?: (tagProps: ChipProps, option: T) => ReactNode;
33
+ renderOptionLabel?: (labelChild: ReactNode, option: T) => ReactNode;
34
+ disableAllSelectedTag?: true;
35
+ disableSort?: true;
36
+ variant?: TextFieldVariants;
37
+ isOptionEqualToValue?: (option: T, value: T) => boolean;
38
+ };
39
+ export type AutocompleteMultipleProps<T extends OptionType = OptionType> = Omit<MuiAutocompleteProps<T, true, false, false>, 'renderInput' | 'renderOption' | 'value' | 'multiple'> & AutocompleteBaseProps<T> & {
40
+ multiple: true;
41
+ value?: MultiValueType<T>;
42
+ onChange?: (newValue: ValueType<T>) => void;
43
+ };
44
+ export type AutocompleteSingleProps<T extends OptionType = OptionType> = Omit<MuiAutocompleteProps<T, false, false, false>, 'renderInput' | 'renderOption' | 'value' | 'multiple'> & AutocompleteBaseProps<T> & {
45
+ multiple?: false;
46
+ value?: SingleValueType<T>;
47
+ onChange?: (newValue: ValueType<T>) => void;
48
+ };
49
+ export type AutocompleteProps<T extends OptionType = OptionType> = AutocompleteMultipleProps<T> | AutocompleteSingleProps<T>;
50
+ declare const Autocomplete: <T extends OptionType = OptionType>(inProps: AutocompleteProps<T>) => React.ReactElement;
51
+ export default Autocomplete;
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
2
  props: Record<string, unknown>;
3
3
  ownerState?: Record<string, unknown> | undefined;
4
4
  } | undefined) => {
5
- classes: Record<"label" | "line" | "disabled" | "checkboxContainer" | "tooltip", string>;
5
+ classes: Record<"label" | "line" | "disabled" | "tooltip" | "checkboxContainer", string>;
6
6
  theme: import("@mui/material/styles").Theme;
7
7
  css: import("tss-react/types").Css;
8
8
  cx: import("tss-react/types").Cx;
@@ -9,5 +9,8 @@ type AutocompleteMultipleProps = {
9
9
  isOptionsMutable?: boolean;
10
10
  onIsSearchingChange?: UnknownFunction;
11
11
  };
12
+ /**
13
+ * @deprecated Use <Autocomplete mutliple /> instead
14
+ */
12
15
  declare const AutocompleteMultiple: ({ options, customSearch, onChange, isError, label, isDisplayLabel, onIsSearchingChange, isDisabled, isOptionsMutable }: AutocompleteMultipleProps) => import("react/jsx-runtime").JSX.Element;
13
16
  export default AutocompleteMultiple;
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
2
  props: Record<string, unknown>;
3
3
  ownerState?: Record<string, unknown> | undefined;
4
4
  } | undefined) => {
5
- classes: Record<"label" | "search" | "border" | "clear" | "autoCompleteContainer" | "isError" | "selector" | "icons" | "dropDownIcon" | "rotated" | "isErrorBorder" | "open", string>;
5
+ classes: Record<"label" | "search" | "border" | "clear" | "open" | "isError" | "selector" | "autoCompleteContainer" | "icons" | "dropDownIcon" | "rotated" | "isErrorBorder", string>;
6
6
  theme: import("@mui/material/styles").Theme;
7
7
  css: import("tss-react/types").Css;
8
8
  cx: import("tss-react/types").Cx;
@@ -1,5 +1,4 @@
1
- import React from 'react';
2
- import { UnknownFunction } from 'reselect/es/types';
1
+ import type { UnknownFunction } from 'reselect/es/types';
3
2
  type AutocompleteEditProps = {
4
3
  data?: object;
5
4
  dataKey?: string;
@@ -7,5 +6,5 @@ type AutocompleteEditProps = {
7
6
  options: unknown[] | UnknownFunction;
8
7
  };
9
8
  };
10
- declare const AutocompleteEdit: React.NamedExoticComponent<AutocompleteEditProps>;
9
+ declare const AutocompleteEdit: import("react").NamedExoticComponent<AutocompleteEditProps>;
11
10
  export default AutocompleteEdit;
@@ -1,7 +1,6 @@
1
- import React from 'react';
2
1
  type AutocompleteViewProps = {
3
2
  data?: object;
4
3
  columnIndex?: number;
5
4
  };
6
- declare const AutocompleteView: React.NamedExoticComponent<AutocompleteViewProps>;
5
+ declare const AutocompleteView: import("react").NamedExoticComponent<AutocompleteViewProps>;
7
6
  export default AutocompleteView;
@@ -1,3 +1,6 @@
1
+ /**
2
+ * @deprecated Use <Autocomplete /> instead
3
+ */
1
4
  declare function AutocompleteSingle({ ...rest }: {
2
5
  [x: string]: any;
3
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  type BadgeAddProps = {
3
3
  counter?: number;
4
4
  children: React.ReactNode;
@@ -5,8 +5,8 @@
5
5
  *
6
6
  * Source (MUI v7.x): https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid-pro
7
7
  */
8
- import { DataGridProProps, GridValidRowModel } from '@mui/x-data-grid-pro';
9
- import { RowMenuAction } from './components/menu/RowMenu';
8
+ import { type DataGridProProps, type GridValidRowModel } from '@mui/x-data-grid-pro';
9
+ import { type RowMenuAction } from './components/menu/RowMenu';
10
10
  export interface DataGridDSProps extends DataGridProProps {
11
11
  rowContextMenu?: {
12
12
  actions: RowMenuAction[];
@@ -1,4 +1,4 @@
1
- import { GridValidRowModel } from '@mui/x-data-grid-pro';
1
+ import type { GridValidRowModel } from '@mui/x-data-grid-pro';
2
2
  export type RowMenuAction = {
3
3
  key: string;
4
4
  label: string;
@@ -1,4 +1,4 @@
1
- import { GridColumnVisibilityModel } from '@mui/x-data-grid-pro';
1
+ import { type GridColumnVisibilityModel } from '@mui/x-data-grid-pro';
2
2
  interface ColumnsManagementTableProps {
3
3
  visibilityModel: GridColumnVisibilityModel;
4
4
  setVisibilityModel: (model: GridColumnVisibilityModel) => void;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
- import { ButtonProps } from '@mui/material';
1
+ import type React from 'react';
2
+ import { type ButtonProps } from '@mui/material';
3
3
  export type ButtonKey = string | number;
4
4
  interface BaseButtonConfig {
5
5
  key: ButtonKey;
@@ -6,8 +6,8 @@
6
6
  *
7
7
  * Source (MUI v7.x): https://github.com/mui/mui-x/blob/v7.x/packages/x-data-grid/src/components/toolbar/GridToolbar.tsx
8
8
  */
9
- import { GridSlotsComponentsProps, GridRowSelectionModel, GridValidRowModel } from '@mui/x-data-grid-pro';
10
- import { IconButtonConfig, TextButtonConfig } from './ArrayButtons';
9
+ import { type GridRowSelectionModel, type GridSlotsComponentsProps, type GridValidRowModel } from '@mui/x-data-grid-pro';
10
+ import { type IconButtonConfig, type TextButtonConfig } from './ArrayButtons';
11
11
  interface DeleteAction {
12
12
  onDelete: (selectedRowIds: GridRowSelectionModel) => boolean | Promise<boolean>;
13
13
  disabled?: boolean;
@@ -1,3 +1,3 @@
1
- import { IconButtonProps } from '@mui/material';
1
+ import { type IconButtonProps } from '@mui/material';
2
2
  declare const ToolbarIconButton: ({ children, color, sx, ...props }: IconButtonProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ToolbarIconButton;
@@ -1,3 +1,3 @@
1
- import { GridToolbarQuickFilterProps } from '@mui/x-data-grid-pro';
1
+ import { type GridToolbarQuickFilterProps } from '@mui/x-data-grid-pro';
2
2
  declare const QuickFilterButton: (props: GridToolbarQuickFilterProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default QuickFilterButton;
@@ -1,4 +1,4 @@
1
- import { ReactNode, Dispatch, SetStateAction } from 'react';
1
+ import { type Dispatch, type ReactNode, type SetStateAction } from 'react';
2
2
  interface EditContextType {
3
3
  isBulkEditing: boolean;
4
4
  isEditSaving: boolean;
@@ -1,3 +1,3 @@
1
- import { DataGridDSProps } from './DataGridDS';
1
+ import { type DataGridDSProps } from './DataGridDS';
2
2
  declare const DataGridDSWrapper: (props: DataGridDSProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default DataGridDSWrapper;
@@ -1,4 +1,4 @@
1
1
  import type { RefObject } from 'react';
2
- import { type GridApiPro } from '@mui/x-data-grid-pro';
2
+ import type { GridApiPro } from '@mui/x-data-grid-pro';
3
3
  declare const getSelectedRows: (apiRef: RefObject<GridApiPro>) => import("@mui/x-data-grid-pro").GridValidRowModel[];
4
4
  export { getSelectedRows };
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  type Row = {
3
3
  id?: string | number;
4
4
  };
@@ -1,5 +1,5 @@
1
- import { FC, ReactNode, Ref } from 'react';
2
- import { ButtonProps } from '@mui/material';
1
+ import { type FC, type ReactNode, type Ref } from 'react';
2
+ import { type ButtonProps } from '@mui/material';
3
3
  type ModalActionProps = {
4
4
  color?: ButtonProps['color'];
5
5
  variant?: ButtonProps['variant'];
@@ -1,4 +1,4 @@
1
- import { FC } from 'react';
1
+ import { type FC } from 'react';
2
2
  type ModalCloseProps = {
3
3
  onClick: () => void;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from 'react';
1
+ import { type FC, type ReactNode } from 'react';
2
2
  type ModalContentProps = {
3
3
  children: ReactNode;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from 'react';
1
+ import { type FC, type ReactNode } from 'react';
2
2
  type ModalCustomActionProps = {
3
3
  children: ReactNode;
4
4
  };
@@ -1,5 +1,5 @@
1
- import { FC, ReactNode, Ref } from 'react';
2
- import { ModalVariant } from '../index';
1
+ import { type FC, type ReactNode, type Ref } from 'react';
2
+ import type { ModalVariant } from '../index';
3
3
  export type ModalPrimaryActionProps = {
4
4
  /**
5
5
  * @deprecated Use `<Modal variant="error">` instead
@@ -1,5 +1,5 @@
1
- import { FC, ReactNode } from 'react';
2
- import { ButtonProps } from '@mui/material';
1
+ import { type FC, type ReactNode } from 'react';
2
+ import type { ButtonProps } from '@mui/material';
3
3
  type ModalSecondaryActionProps = {
4
4
  color?: ButtonProps['color'];
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
- import { FC, ReactNode } from 'react';
2
- import { ModalVariant } from '../index';
1
+ import { type FC, type ReactNode } from 'react';
2
+ import type { ModalVariant } from '../index';
3
3
  export type ModalTitleProps = {
4
4
  children: ReactNode;
5
5
  /**
@@ -1,4 +1,4 @@
1
- import React, { FC, ReactNode } from 'react';
1
+ import React, { type FC, type ReactNode } from 'react';
2
2
  import ModalContent from './components/ModalContent';
3
3
  import ModalCustomAction from './components/ModalCustomAction';
4
4
  import ModalPrimaryAction from './components/ModalPrimaryAction';
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
- import { FC } from 'react';
1
+ import type * as React from 'react';
2
+ import { type FC } from 'react';
3
3
  import type { ButtonProps } from '@mui/material';
4
4
  export type SplitButtonOption = {
5
5
  label: string;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- declare const AmountCell: React.NamedExoticComponent<object>;
2
+ type AmountCellProps = {
3
+ isReadOnly: boolean;
4
+ [key: string]: any;
5
+ };
6
+ declare const AmountCell: React.NamedExoticComponent<AmountCellProps>;
3
7
  export default AmountCell;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { UnknownFunction } from 'reselect/es/types';
2
+ import type { UnknownFunction } from 'reselect/es/types';
3
3
  type AutocompleteEditProps = {
4
4
  data?: object;
5
5
  dataKey?: string;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- declare const AutocompleteCell: React.NamedExoticComponent<object>;
2
+ type AutocompleteCellProps = {
3
+ isReadOnly: boolean;
4
+ [key: string]: any;
5
+ };
6
+ declare const AutocompleteCell: React.NamedExoticComponent<AutocompleteCellProps>;
3
7
  export default AutocompleteCell;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- declare const NumberCell: React.NamedExoticComponent<object>;
2
+ type NumberCellProps = {
3
+ isReadOnly: boolean;
4
+ [key: string]: any;
5
+ };
6
+ declare const NumberCell: React.NamedExoticComponent<NumberCellProps>;
3
7
  export default NumberCell;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from 'react';
1
+ import React, { type ReactNode } from 'react';
2
2
  type ViewSelectCellProps = {
3
3
  data?: string | number;
4
4
  column: object;
@@ -1,3 +1,7 @@
1
1
  import React from 'react';
2
- declare const StringCell: React.NamedExoticComponent<object>;
2
+ type StringCellProps = {
3
+ isReadOnly: boolean;
4
+ [key: string]: any;
5
+ };
6
+ declare const StringCell: React.NamedExoticComponent<StringCellProps>;
3
7
  export default StringCell;
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
2
  props: Record<string, unknown>;
3
3
  ownerState?: Record<string, unknown> | undefined;
4
4
  } | undefined) => {
5
- classes: Record<"onError" | "expandIcon" | "align" | "pointer" | "cell" | "focused" | "odd" | "alignLeft" | "alignCenter" | "alignRight" | "thumbnail" | "groupRow" | "BodyGrid" | "defaultStyle" | "even" | "cbCell" | "expandCell" | "lockRow" | "withGrid" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop" | "iconButton", string>;
5
+ classes: Record<"onError" | "expandIcon" | "align" | "cell" | "pointer" | "focused" | "odd" | "alignLeft" | "alignCenter" | "alignRight" | "thumbnail" | "groupRow" | "cbCell" | "BodyGrid" | "defaultStyle" | "even" | "expandCell" | "lockRow" | "withGrid" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop" | "iconButton", string>;
6
6
  theme: import("@mui/material/styles").Theme;
7
7
  css: import("tss-react/types").Css;
8
8
  cx: import("tss-react/types").Cx;
@@ -1,5 +1,5 @@
1
- import React, { Ref } from 'react';
2
- import { ButtonOwnProps } from '@mui/material';
1
+ import React, { type Ref } from 'react';
2
+ import { type ButtonOwnProps } from '@mui/material';
3
3
  type ButtonProps = ButtonOwnProps & {
4
4
  className?: string;
5
5
  buttonRef?: Ref<HTMLButtonElement>;
@@ -1,4 +1,4 @@
1
- import InlineButton from './Inline';
2
1
  import DropdownBtn from './DropDown';
2
+ import InlineButton from './Inline';
3
3
  import { ButtonProps } from './types';
4
- export { InlineButton, ButtonProps, DropdownBtn, };
4
+ export { InlineButton, ButtonProps, DropdownBtn };
@@ -1,7 +1,8 @@
1
- declare const ColumnsSetting: ({ open, onClose, onChangeColumnsSetting, columnsConfig }: {
1
+ type ColumnsSettingProps = {
2
2
  open: any;
3
3
  onClose: any;
4
- onChangeColumnsSetting: any;
5
- columnsConfig: any;
6
- }) => import("react/jsx-runtime").JSX.Element;
4
+ onChangeColumnsSetting?: any;
5
+ columnsConfig?: any;
6
+ };
7
+ declare const ColumnsSetting: ({ open, onClose, onChangeColumnsSetting, columnsConfig }: ColumnsSettingProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export default ColumnsSetting;
@@ -1,2 +1,2 @@
1
- import useColumnsSetting from "./useColumnsSetting";
1
+ import useColumnsSetting from './useColumnsSetting';
2
2
  export { useColumnsSetting };
@@ -1,4 +1,4 @@
1
- declare const useColumnsSetting: (initialSavedColumns: any, editable: never[] | undefined, deleted: never[] | undefined, columnsConfig: any, storageColumns: never[] | undefined, setItem: any, defaultColumns: any) => {
1
+ declare const useColumnsSetting: (initialSavedColumns: any, editable: any, deleted: any, columnsConfig: any, storageColumns: any, setItem: any, defaultColumns: any) => {
2
2
  columns: never[];
3
3
  changes: {};
4
4
  reset: () => void;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  type ContextMenuProps = {
3
3
  children: React.ReactNode;
4
4
  listAction: unknown[];
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  type ErrorTooltipProps = {
3
3
  children: React.ReactNode;
4
4
  title: string;
@@ -2,6 +2,7 @@ type ExportDialogProps = {
2
2
  onClose: UnknownFunction;
3
3
  onCustomExportClick?: UnknownFunction;
4
4
  isExportAllPages?: boolean;
5
+ open?: boolean;
5
6
  };
6
7
  declare const ExportDialog: ({ onClose, onCustomExportClick, isExportAllPages }: ExportDialogProps) => import("react/jsx-runtime").JSX.Element;
7
8
  export default ExportDialog;
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
2
  props: Record<string, unknown>;
3
3
  ownerState?: Record<string, unknown> | undefined;
4
4
  } | undefined) => {
5
- classes: Record<"fieldset" | "title" | "checkbox" | "root" | "exportAllPage" | "checkboxLabel" | "switchButton" | "actions", string>;
5
+ classes: Record<"fieldset" | "title" | "checkbox" | "root" | "actions" | "exportAllPage" | "checkboxLabel" | "switchButton", string>;
6
6
  theme: import("@mui/material/styles").Theme;
7
7
  css: import("tss-react/types").Css;
8
8
  cx: import("tss-react/types").Cx;
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
2
  props: Record<string, unknown>;
3
3
  ownerState?: Record<string, unknown> | undefined;
4
4
  } | undefined) => {
5
- classes: Record<"footer" | "align" | "cell" | "alignLeft" | "alignCenter" | "alignRight" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop" | "footerCell", string>;
5
+ classes: Record<"footer" | "align" | "cell" | "footerCell" | "alignLeft" | "alignCenter" | "alignRight" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop", string>;
6
6
  theme: import("@mui/material/styles").Theme;
7
7
  css: import("tss-react/types").Css;
8
8
  cx: import("tss-react/types").Cx;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import type React from 'react';
2
2
  type HeaderSortableProps = {
3
3
  children: React.ReactNode;
4
4
  column: object;
@@ -1,4 +1,4 @@
1
- import { TooltipProps } from '@mui/material/Tooltip';
1
+ import { type TooltipProps } from '@mui/material/Tooltip';
2
2
  type FontIconProps = {
3
3
  name?: string;
4
4
  className?: string;
@@ -1,2 +1,2 @@
1
1
  import FontIcon from './Font';
2
- export { FontIcon, };
2
+ export { FontIcon };
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
2
  props: Record<string, unknown>;
3
3
  ownerState?: Record<string, unknown> | undefined;
4
4
  } | undefined) => {
5
- classes: Record<"input" | "select" | "closeIcon" | "root", string>;
5
+ classes: Record<"input" | "select" | "root" | "closeIcon", string>;
6
6
  theme: import("@mui/material/styles").Theme;
7
7
  css: import("tss-react/types").Css;
8
8
  cx: import("tss-react/types").Cx;
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
2
  props: Record<string, unknown>;
3
3
  ownerState?: Record<string, unknown> | undefined;
4
4
  } | undefined) => {
5
- classes: Record<"button" | "input" | "menu" | "closeIcon" | "root" | "termsWrapper" | "inputEmpty" | "mainInput" | "chipsGroup" | "inputWrapper", string>;
5
+ classes: Record<"button" | "input" | "menu" | "root" | "closeIcon" | "termsWrapper" | "inputEmpty" | "mainInput" | "chipsGroup" | "inputWrapper", string>;
6
6
  theme: import("@mui/material/styles").Theme;
7
7
  css: import("tss-react/types").Css;
8
8
  cx: import("tss-react/types").Cx;
@@ -1,3 +1,3 @@
1
- import React from "react";
1
+ import React from 'react';
2
2
  declare const SettingsIcon: React.NamedExoticComponent<object>;
3
3
  export default SettingsIcon;
@@ -14,4 +14,4 @@ export declare const isLockedRow: ({ unlockedRowsIds, row, selectableRowKey, has
14
14
  * @param {string} selectableRowKey
15
15
  * @returns
16
16
  */
17
- export declare const getUnlockedRowsIds: (unlockedRows: never[] | undefined, selectableRowKey: any) => any[];
17
+ export declare const getUnlockedRowsIds: (unlockedRows?: (any | number)[], selectableRowKey?: string) => any[];
@@ -1,3 +1,4 @@
1
+ export declare const isRowSelectableByConfig: (row: any, rowIndex: any, hideCheckboxFromConfig: any) => boolean;
1
2
  export declare function createSelection(rows?: never[]): never[];
2
3
  export declare function unselectRow(rows: any, id: any): any[];
3
4
  export declare function getSelectedHiddenRows(selectedRows?: never[], displayableRows?: never[], selectableRowKey?: string): never[];
@@ -21,5 +21,5 @@ export declare const isMatchingWallet: (search: any, _value: any, options?: {})
21
21
  * @param {object} row - The data to check
22
22
  * @param {array} filters - List of specific column filters
23
23
  */
24
- export declare const matchFilterList: (row: any, filters?: never[], columns?: never[]) => boolean;
24
+ export declare const matchFilterList: (row: any, filters?: any[], columns?: any[]) => boolean;
25
25
  export declare const getSearchableColumns: (columns: any) => any;
@@ -1,4 +1,4 @@
1
- declare const useColumns: (columns: any, tableKeyName: any, config: {} | undefined, onColumnsChange: any) => {
1
+ declare const useColumns: (columns: any, tableKeyName: any, _config: any, onColumnsChange: any) => {
2
2
  dispatch: import("react").ActionDispatch<[action: any]>;
3
3
  state: any;
4
4
  };
@@ -1,12 +1,12 @@
1
1
  declare const useNavigation: ({ hasCheckBox, onFocusChange, columns }: {
2
2
  hasCheckBox: any;
3
3
  onFocusChange?: (() => void) | undefined;
4
- columns?: never[] | undefined;
4
+ columns?: any[] | undefined;
5
5
  }) => {
6
6
  handleCellBlur: (previousRowIndex: any, previousColumnIndex: any) => void;
7
7
  handleCellFocus: (rowIndex: any, columnIndex: any) => void;
8
- focusedCell: unknown;
9
- currentCell: undefined;
8
+ focusedCell: any[] | undefined;
9
+ currentCell: any[] | undefined;
10
10
  setCurrentCell: (rowIndex: any, columnIndex: any) => void;
11
11
  };
12
12
  export default useNavigation;
@@ -1,14 +1,7 @@
1
- export declare const useWindowState: (props?: {}) => {
1
+ export declare const useWindowState: (props?: any) => {
2
2
  open: (message: any, focus?: boolean) => void;
3
3
  send: (message: any, focus?: boolean) => void;
4
4
  focus: () => void;
5
5
  close: () => void;
6
- props: {
7
- open: any;
8
- focusing: boolean;
9
- message: any;
10
- onOpen: () => void;
11
- onFocusChanged: () => void;
12
- onClose: () => void;
13
- };
6
+ props: any;
14
7
  };
@@ -2,7 +2,7 @@ declare const useStyles: (params: void, muiStyleOverridesParams?: {
2
2
  props: Record<string, unknown>;
3
3
  ownerState?: Record<string, unknown> | undefined;
4
4
  } | undefined) => {
5
- classes: Record<"center" | "container" | "disabled" | "onError" | "align" | "pointer" | "cell" | "checkbox" | "alignLeft" | "alignCenter" | "alignRight" | "thumbnail" | "groupRow" | "BodyGrid" | "defaultStyle" | "cbCell" | "lockRow" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop" | "checkmark" | "selectedRow" | "hasSelectAll" | "HeaderGrid" | "GridRow" | "GridColumn" | "LeftSideGridContainer" | "LeftSideGrid" | "mb32" | "hoverRow" | "displayNone", string>;
5
+ classes: Record<"center" | "container" | "disabled" | "onError" | "align" | "checkbox" | "cell" | "pointer" | "alignLeft" | "alignCenter" | "alignRight" | "thumbnail" | "groupRow" | "cbCell" | "checkmark" | "BodyGrid" | "defaultStyle" | "lockRow" | "alignVerticalCenter" | "alignVerticalBottom" | "alignVerticalTop" | "selectedRow" | "hasSelectAll" | "HeaderGrid" | "GridRow" | "GridColumn" | "LeftSideGridContainer" | "LeftSideGrid" | "mb32" | "hoverRow" | "displayNone", string>;
6
6
  theme: import("@mui/material/styles").Theme;
7
7
  css: import("tss-react/types").Css;
8
8
  cx: import("tss-react/types").Cx;
@@ -70,5 +70,5 @@ declare const matchFilter: (columns: any, row: any, filters?: never[], term?: st
70
70
  declare function isAsync(func: any): boolean;
71
71
  declare function calculateColumnsWidth(columns: any, width: any, minCellWidth?: number): any;
72
72
  declare function calculateColumnWidth(column: any, width: any, totalColumnsWidth: any, totalColumnsSize: any, minCellWidth: any): any;
73
- declare function sortColumns(order: string | undefined, col: any): any;
73
+ declare function sortColumns(order: any, col: any): any;
74
74
  export { ROW_TYPE, INSERT_POSITION, TABLE_STATE, SORTABLE_DIRECTIONS, addGroupIdToObj, processGroupItemData, createTitleRow, createAddRowGroup, isExportable, isSortable, isAsync, matchFilter, calculateColumnWidth, calculateColumnsWidth, sortColumns };