@up42/up-components 8.1.0 → 8.2.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.
@@ -0,0 +1,49 @@
1
+ import { SxProps, Theme } from '@mui/material';
2
+ import React, { ReactNode } from 'react';
3
+ export type ActionToolbarProps = {
4
+ count: number;
5
+ singleLabel?: string;
6
+ multipleLabel?: string;
7
+ clearLabel?: string;
8
+ onClearSelection: () => void;
9
+ centerSlot?: ReactNode;
10
+ actionsSlot?: ReactNode;
11
+ color?: Color;
12
+ sx?: SxProps<Theme>;
13
+ /**
14
+ * This property defines the position where the component will be displayed.
15
+ * It is not part of the styling properties since this is taken as a configuration property.
16
+ */
17
+ position: 'bottom' | 'top';
18
+ /**
19
+ * This property defines the padding applied to the component in relation to the "position" property.
20
+ * It is not part of the styling properties since this is taken as a configuration property.
21
+ */
22
+ padding: string;
23
+ };
24
+ declare const COLORS: {
25
+ readonly primary: {
26
+ readonly bgColor: string;
27
+ readonly borderColor: string;
28
+ readonly textColor: string;
29
+ readonly badgeColor: string;
30
+ readonly badgeText: string;
31
+ };
32
+ readonly info: {
33
+ readonly bgColor: string;
34
+ readonly borderColor: string;
35
+ readonly textColor: string;
36
+ readonly badgeColor: string;
37
+ readonly badgeText: string;
38
+ };
39
+ readonly warning: {
40
+ readonly bgColor: string;
41
+ readonly borderColor: string;
42
+ readonly textColor: string;
43
+ readonly badgeColor: string;
44
+ readonly badgeText: string;
45
+ };
46
+ };
47
+ type Color = keyof typeof COLORS;
48
+ export declare const ActionToolbar: ({ count, singleLabel, multipleLabel, clearLabel, onClearSelection, centerSlot, actionsSlot, color, sx, position, padding, }: ActionToolbarProps) => React.JSX.Element;
49
+ export {};
@@ -63,6 +63,7 @@ export { DataGrid, GridRow, GridCell, GridEditInputCell, GridCellModes, GridFoot
63
63
  export type { GridColDef, GridRenderEditCellParams, GridCellModesModel, GridCellParams, GridRenderCellParams, GridRowId, GridRowParams, GridRowSelectionModel, GridRowsProp, GridSortModel, GridTreeNodeWithRender, GridColumnHeaderParams, GridEditCellProps, GridInitialState, GridPreProcessEditCellProps, } from './components/DataGrid/DataGrid';
64
64
  export { ToggleButton, type ToggleButtonProps } from './components/ToggleButton/ToggleButton';
65
65
  export { FindUsersButton, LearnMoreButton, RoleBanner, type FindUsersButtonProps, type LearnMoreButtonProps, type RoleBannerProps, } from './components/RoleBanner/RoleBanner';
66
+ export { ActionToolbar, type ActionToolbarProps } from './components/ActionToolbar/ActionToolbar';
66
67
  export { capitalize } from './utils/helpers/capitalize';
67
68
  export { copyToClipboard } from './utils/helpers/copyToClipboard';
68
69
  export { formatNumber } from './utils/helpers/formatNumber';