@up42/up-components 5.3.0 → 5.3.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.
@@ -1,6 +1,6 @@
1
1
  import { DataGridPremiumProps as MuiDataGridProps } from '@mui/x-data-grid-premium';
2
- export { GridRow, GridCell, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector, } from '@mui/x-data-grid-premium';
3
- export type { GridColDef, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from '@mui/x-data-grid-premium';
2
+ export { GridRow, GridCell, GridEditInputCell, GridCellModes, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector, } from '@mui/x-data-grid-premium';
3
+ export type { GridColDef, GridRenderEditCellParams, GridCellModesModel, GridCellParams, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from '@mui/x-data-grid-premium';
4
4
  import React from 'react';
5
5
  import { MUIGlobalOmit } from '@global/utils/types';
6
6
  export type DataGridProps = MUIGlobalOmit<MuiDataGridProps>;
@@ -5,7 +5,7 @@ export type IconAction = {
5
5
  name: IconProps['name'];
6
6
  tooltip?: string;
7
7
  isActive?: boolean;
8
- onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
8
+ onClick: (event: React.MouseEvent<HTMLElement>) => void;
9
9
  isDisabled?: boolean;
10
10
  sx?: SxProps;
11
11
  };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { ToggleButtonProps as MUIToggleButtonProps } from '@mui/material/ToggleButton';
3
+ import { IconProps } from 'components/Icon/Icon';
4
+ type ToggleButtonColor = 'primary' | 'info';
5
+ export type ToggleButtonProps = Omit<MUIToggleButtonProps, 'size' | 'color' | 'value'> & {
6
+ size?: 'medium' | 'slim';
7
+ color?: ToggleButtonColor;
8
+ iconName: IconProps['name'];
9
+ value?: string;
10
+ };
11
+ /**
12
+ * Documentation: https://up-components.up42.com/?path=/docs/data-entry-togglebutton--docs
13
+ */
14
+ export declare const ToggleButton: ({ size, color, value, iconName, ...props }: ToggleButtonProps) => React.JSX.Element;
15
+ export {};
@@ -56,8 +56,9 @@ export { DocumentationPopover, type DocumentationPopoverProps, } from './compone
56
56
  export { CodeInline, type CodeInlineProps } from './components/CodeInline/CodeInline';
57
57
  export { CodeSnippet, type CodeSnippetProps, type CodeSnippetItemProps } from './components/CodeSnippet/CodeSnippet';
58
58
  export { Table, TableBody, TableCell, TableHead, TableContainer, TableRow, TableFooter, TablePagination, TableSortLabel, type TableProps, type TableBodyProps, type TableCellProps, type TableHeadProps, type TableContainerProps, type TableRowProps, type TableFooterProps, type TablePaginationProps, type TableSortLabelProps, } from './components/Table/Table';
59
- export { DataGrid, GridRow, GridCell, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector, } from './components/DataGrid/DataGrid';
60
- export type { GridColDef, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from './components/DataGrid/DataGrid';
59
+ export { DataGrid, GridRow, GridCell, GridEditInputCell, GridCellModes, GridFooter, GridLoadingOverlay, GridNoRowsOverlay, GridPagination, GridRowCount, GridSelectedRowCount, gridColumnDefinitionsSelector, gridColumnVisibilityModelSelector, gridDetailPanelExpandedRowIdsSelector, gridDetailPanelExpandedRowsContentCacheSelector, gridRowsLookupSelector, GRID_DETAIL_PANEL_TOGGLE_COL_DEF, GRID_DETAIL_PANEL_TOGGLE_FIELD, useGridApiContext, useGridApiRef, useGridSelector, } from './components/DataGrid/DataGrid';
60
+ export type { GridColDef, GridRenderEditCellParams, GridCellModesModel, GridCellParams, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from './components/DataGrid/DataGrid';
61
+ export { ToggleButton, type ToggleButtonProps } from './components/ToggleButton/ToggleButton';
61
62
  export { capitalize } from './utils/helpers/capitalize';
62
63
  export { copyToClipboard } from './utils/helpers/copyToClipboard';
63
64
  export { formatNumber } from './utils/helpers/formatNumber';