@up42/up-components 5.3.1 → 5.4.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.
@@ -11,10 +11,6 @@ export type FeatureCardProps = CardProps & {
11
11
  info?: ReactNode;
12
12
  actions?: ReactNode;
13
13
  };
14
- /**
15
- * Whether the card is selectable.
16
- */
17
- isSelectable?: boolean;
18
14
  /**
19
15
  * Applies the selected state to the card from the parent.
20
16
  */
@@ -45,10 +41,6 @@ export declare const FeatureCard: React.ForwardRefExoticComponent<Omit<import("@
45
41
  info?: ReactNode;
46
42
  actions?: ReactNode;
47
43
  } | undefined;
48
- /**
49
- * Whether the card is selectable.
50
- */
51
- isSelectable?: boolean | undefined;
52
44
  /**
53
45
  * Applies the selected state to the card from the parent.
54
46
  */
@@ -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 {};
@@ -58,6 +58,7 @@ export { CodeSnippet, type CodeSnippetProps, type CodeSnippetItemProps } from '.
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
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
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';