@connectif/ui-components 8.0.0 → 8.1.1
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.
- package/CHANGELOG.md +25 -0
- package/dist/components/alert/Alert.d.ts +6 -4
- package/dist/components/avatar/Avatar.d.ts +8 -4
- package/dist/components/button/Button.d.ts +20 -11
- package/dist/components/button/ButtonGroup.d.ts +3 -1
- package/dist/components/button/ButtonWithActions.d.ts +7 -5
- package/dist/components/button/IconButton.d.ts +12 -6
- package/dist/components/button/IconToggleButton.d.ts +40 -5
- package/dist/components/button/MenuButton.d.ts +6 -4
- package/dist/components/button/MenuIconButton.d.ts +7 -5
- package/dist/components/button/ToggleButton.d.ts +1 -0
- package/dist/components/button/ToggleButton.theme.d.ts +3 -2
- package/dist/components/card/Card.d.ts +9 -1
- package/dist/components/card/CardImage.d.ts +3 -1
- package/dist/components/card/EnhancedCard.d.ts +5 -2
- package/dist/components/chart/IncrementLabel.d.ts +6 -3
- package/dist/components/chart/LineChart.d.ts +3 -1
- package/dist/components/chat/ChatMessage.d.ts +3 -1
- package/dist/components/chip/Chip.d.ts +21 -862
- package/dist/components/chip/ChipViewer.d.ts +5 -11
- package/dist/components/chip/MenuChip.d.ts +4 -2
- package/dist/components/dialog/ConfirmationDialog.d.ts +2 -1
- package/dist/components/dialog/Dialog.d.ts +3 -1
- package/dist/components/divider/Divider.d.ts +4 -1
- package/dist/components/formatter/CurrencyFormatter.d.ts +3 -1
- package/dist/components/formatter/PercentageFormatter.d.ts +3 -1
- package/dist/components/icon/Icon.d.ts +4 -2
- package/dist/components/info/InfoBox.d.ts +2 -1
- package/dist/components/input/Checkbox.d.ts +3 -1
- package/dist/components/input/ColorPicker.d.ts +3 -1
- package/dist/components/input/InputHelperText.d.ts +4 -2
- package/dist/components/input/InputLabel.d.ts +4 -2
- package/dist/components/input/ItemSelector.d.ts +3 -1
- package/dist/components/input/NumberField.d.ts +4 -2
- package/dist/components/input/PageSelector.d.ts +6 -0
- package/dist/components/input/Radio.d.ts +6 -2
- package/dist/components/input/Select.d.ts +4 -2
- package/dist/components/input/TextEditor.d.ts +3 -1
- package/dist/components/input/TextField.d.ts +9 -3
- package/dist/components/input/TextFieldContainer.d.ts +4 -2
- package/dist/components/input/autocomplete/Autocomplete.d.ts +9 -3
- package/dist/components/input/date-interval-picker/DateIntervalPicker.d.ts +1 -0
- package/dist/components/input/date-interval-picker/DateIntervalPickerPopover.d.ts +3 -4
- package/dist/components/input/date-range-picker/DateRangePicker.d.ts +40 -0
- package/dist/components/input/date-range-picker/DateRangePickerPopover.d.ts +16 -0
- package/dist/components/input/index.d.ts +2 -0
- package/dist/components/layout/CollapsiblePanel.d.ts +3 -1
- package/dist/components/layout/CollapsiblePanelSwitcher.d.ts +6 -2
- package/dist/components/layout/Container.d.ts +1 -0
- package/dist/components/layout/Stepper.d.ts +3 -2
- package/dist/components/layout/ToolBox.d.ts +2 -1
- package/dist/components/list/BaseListItem.d.ts +9 -4
- package/dist/components/list/ListItemButton.d.ts +2 -2
- package/dist/components/loader/Loader.d.ts +2 -2
- package/dist/components/overlay/DonutFocusOverlay.d.ts +3 -1
- package/dist/components/popover/Popover.d.ts +8 -4
- package/dist/components/progress/CircularProgress.d.ts +6 -9
- package/dist/components/progress/DonutProgress.d.ts +3 -1
- package/dist/components/progress/LinearProgress.d.ts +3 -1
- package/dist/components/scrollable/Carousel.d.ts +3 -1
- package/dist/components/skeleton/Skeleton.d.ts +4 -1
- package/dist/components/snackbar/Snackbar.d.ts +4 -2
- package/dist/components/tab/TabButton.d.ts +3 -1
- package/dist/components/tab/Tabs.d.ts +6 -2
- package/dist/components/toolbar/ToolbarTitle.d.ts +3 -1
- package/dist/components/tooltip/Tooltip.d.ts +6 -3
- package/dist/components/typography/TextMarker.d.ts +3 -1
- package/dist/components/widget/WidgetLegendItem.d.ts +6 -2
- package/dist/components/window/MinimizableWindow.d.ts +4 -2
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/es.d.ts +3 -0
- package/dist/i18n/fr.d.ts +3 -0
- package/dist/i18n/it.d.ts +3 -0
- package/dist/i18n/pt.d.ts +3 -0
- package/dist/index.js +1128 -802
- package/dist/models/ComparisonInterval.d.ts +2 -1
- package/dist/models/DateInterval.d.ts +2 -1
- package/dist/theme/CustomTheme.d.ts +1 -0
- package/dist/theme/Typography.d.ts +186 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/utils/DateUtils.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [8.1.1] - 2026-05-11
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Fixed `PageSelector` default text translations
|
|
8
|
+
|
|
9
|
+
## [8.1.0] - 2026-05-08
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Added `onMouseMove` prop to `ListItemButton` component
|
|
14
|
+
- Added theme support to `ToggleButton` and `ToggleButtonGroup`
|
|
15
|
+
- Added theme support to `LinearProgress`
|
|
16
|
+
- Added `hideText` prop to `PageSelector` component to hide the text label
|
|
17
|
+
- Added `DateRangePicker` component, extracted from the `input` variant of `DateIntervalPicker`
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Changed the `Select` component dropdown menu to automatically limit its width to match the select box width
|
|
22
|
+
- `PageSelector` now shows a default internationalized text ("Showing **X-Y** of Z") when no `text` prop is provided, with translations in English, Spanish, French, Italian, and Portuguese
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Fixed some minor issues with padding, scrolling and keyboard events of `Select` component when virtualization is enabled
|
|
27
|
+
|
|
3
28
|
## [8.0.0] - 2026-04-29
|
|
4
29
|
|
|
5
30
|
### Added
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AlertProps as MuiAlertProps } from '@mui/material';
|
|
2
2
|
import { IconId } from '../icon/Icon';
|
|
3
|
-
|
|
4
|
-
type
|
|
3
|
+
export declare const alertSeverities: readonly ["success", "info", "error", "warning"];
|
|
4
|
+
export type AlertSeverity = (typeof alertSeverities)[number];
|
|
5
|
+
export declare const alertVariants: readonly ["transparent", "filled"];
|
|
6
|
+
export type AlertVariant = (typeof alertVariants)[number];
|
|
5
7
|
export type AlertProps = Pick<MuiAlertProps, 'children' | 'sx'> & {
|
|
6
8
|
/**
|
|
7
9
|
* Optional title of this alert
|
|
@@ -10,11 +12,11 @@ export type AlertProps = Pick<MuiAlertProps, 'children' | 'sx'> & {
|
|
|
10
12
|
/**
|
|
11
13
|
* Severity of this alert
|
|
12
14
|
*/
|
|
13
|
-
severity?:
|
|
15
|
+
severity?: AlertSeverity;
|
|
14
16
|
/**
|
|
15
17
|
* Variant of this alert
|
|
16
18
|
*/
|
|
17
|
-
variant?:
|
|
19
|
+
variant?: AlertVariant;
|
|
18
20
|
/**
|
|
19
21
|
* Id of icon to display inside the component. Not used if severity is set.
|
|
20
22
|
*/
|
|
@@ -38,11 +38,15 @@ export declare const sizes: {
|
|
|
38
38
|
readonly iconSize: "XXL";
|
|
39
39
|
};
|
|
40
40
|
};
|
|
41
|
+
export declare const avatarSizes: (keyof typeof sizes)[];
|
|
42
|
+
export type AvatarSize = (typeof avatarSizes)[number];
|
|
43
|
+
export declare const avatarVariants: readonly ["circular", "rounded", "squared"];
|
|
44
|
+
export type AvatarVariant = (typeof avatarVariants)[number];
|
|
41
45
|
export type AvatarProps = Pick<MuiAvatarProps, 'src' | 'sx'> & {
|
|
42
46
|
/**
|
|
43
47
|
* Size of the button.
|
|
44
48
|
*/
|
|
45
|
-
size?:
|
|
49
|
+
size?: AvatarSize;
|
|
46
50
|
/**
|
|
47
51
|
* Avatar letters when src is undefined. Max length two characters.
|
|
48
52
|
*/
|
|
@@ -54,7 +58,7 @@ export type AvatarProps = Pick<MuiAvatarProps, 'src' | 'sx'> & {
|
|
|
54
58
|
/**
|
|
55
59
|
* The style of this Avatar. It controls how round-corned it is.
|
|
56
60
|
*/
|
|
57
|
-
variant?:
|
|
61
|
+
variant?: AvatarVariant;
|
|
58
62
|
/**
|
|
59
63
|
* Classes of this avatar
|
|
60
64
|
*/
|
|
@@ -70,7 +74,7 @@ declare const Avatar: React.ForwardRefExoticComponent<Pick<MuiAvatarProps, "sx"
|
|
|
70
74
|
/**
|
|
71
75
|
* Size of the button.
|
|
72
76
|
*/
|
|
73
|
-
size?:
|
|
77
|
+
size?: AvatarSize;
|
|
74
78
|
/**
|
|
75
79
|
* Avatar letters when src is undefined. Max length two characters.
|
|
76
80
|
*/
|
|
@@ -82,7 +86,7 @@ declare const Avatar: React.ForwardRefExoticComponent<Pick<MuiAvatarProps, "sx"
|
|
|
82
86
|
/**
|
|
83
87
|
* The style of this Avatar. It controls how round-corned it is.
|
|
84
88
|
*/
|
|
85
|
-
variant?:
|
|
89
|
+
variant?: AvatarVariant;
|
|
86
90
|
/**
|
|
87
91
|
* Classes of this avatar
|
|
88
92
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonProps as MuiButtonProps } from '@mui/material/Button';
|
|
3
|
-
import { IconId,
|
|
3
|
+
import { IconId, IconSize } from '../icon/Icon';
|
|
4
4
|
import { SxProps } from '@mui/material';
|
|
5
5
|
import { CustomTheme } from '../../theme/CustomTheme';
|
|
6
6
|
export declare const colorStyles: (theme: CustomTheme) => {
|
|
@@ -61,23 +61,32 @@ export declare const colorStyles: (theme: CustomTheme) => {
|
|
|
61
61
|
readonly warning: SxProps;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
+
export declare const buttonVariants: readonly ["contained", "outlined", "text"];
|
|
65
|
+
type ButtonVariant = (typeof buttonVariants)[number];
|
|
66
|
+
export declare const buttonColors: readonly ["primary", "inherit", "white", "warning"];
|
|
67
|
+
type ButtonColor = (typeof buttonColors)[number];
|
|
68
|
+
export declare const buttonSizes: readonly ["M", "L", "XL"];
|
|
69
|
+
type ButtonSize = (typeof buttonSizes)[number];
|
|
70
|
+
export declare const buttonComponents: readonly ["button", "label"];
|
|
71
|
+
type ButtonComponent = (typeof buttonComponents)[number];
|
|
72
|
+
export declare const buttonTypes: readonly ["button", "submit", "reset"];
|
|
64
73
|
export type ButtonProps = Pick<MuiButtonProps, 'id' | 'disabled' | 'onClick' | 'aria-controls' | 'aria-haspopup' | 'aria-expanded' | 'sx' | 'type' | 'className' | 'onMouseEnter' | 'onMouseLeave'> & {
|
|
65
74
|
/**
|
|
66
75
|
* The variant of the button.
|
|
67
76
|
*/
|
|
68
|
-
variant?:
|
|
77
|
+
variant?: ButtonVariant;
|
|
69
78
|
/**
|
|
70
79
|
* The color of the button.
|
|
71
80
|
*/
|
|
72
|
-
color?:
|
|
81
|
+
color?: ButtonColor;
|
|
73
82
|
/**
|
|
74
83
|
* Size of the button.
|
|
75
84
|
*/
|
|
76
|
-
size?:
|
|
85
|
+
size?: ButtonSize;
|
|
77
86
|
/**
|
|
78
87
|
* Raw HTML component used to render this Button;
|
|
79
88
|
*/
|
|
80
|
-
component?:
|
|
89
|
+
component?: ButtonComponent;
|
|
81
90
|
/**
|
|
82
91
|
* The text to display in the button.
|
|
83
92
|
*/
|
|
@@ -93,7 +102,7 @@ export type ButtonProps = Pick<MuiButtonProps, 'id' | 'disabled' | 'onClick' | '
|
|
|
93
102
|
/**
|
|
94
103
|
* The identifier of the icon size to display in the button.
|
|
95
104
|
*/
|
|
96
|
-
iconSize?:
|
|
105
|
+
iconSize?: IconSize;
|
|
97
106
|
/**
|
|
98
107
|
* Whether the button must have the icon at the end.
|
|
99
108
|
*/
|
|
@@ -128,19 +137,19 @@ declare const Button: React.ForwardRefExoticComponent<Pick<MuiButtonProps, "id"
|
|
|
128
137
|
/**
|
|
129
138
|
* The variant of the button.
|
|
130
139
|
*/
|
|
131
|
-
variant?:
|
|
140
|
+
variant?: ButtonVariant;
|
|
132
141
|
/**
|
|
133
142
|
* The color of the button.
|
|
134
143
|
*/
|
|
135
|
-
color?:
|
|
144
|
+
color?: ButtonColor;
|
|
136
145
|
/**
|
|
137
146
|
* Size of the button.
|
|
138
147
|
*/
|
|
139
|
-
size?:
|
|
148
|
+
size?: ButtonSize;
|
|
140
149
|
/**
|
|
141
150
|
* Raw HTML component used to render this Button;
|
|
142
151
|
*/
|
|
143
|
-
component?:
|
|
152
|
+
component?: ButtonComponent;
|
|
144
153
|
/**
|
|
145
154
|
* The text to display in the button.
|
|
146
155
|
*/
|
|
@@ -156,7 +165,7 @@ declare const Button: React.ForwardRefExoticComponent<Pick<MuiButtonProps, "id"
|
|
|
156
165
|
/**
|
|
157
166
|
* The identifier of the icon size to display in the button.
|
|
158
167
|
*/
|
|
159
|
-
iconSize?:
|
|
168
|
+
iconSize?: IconSize;
|
|
160
169
|
/**
|
|
161
170
|
* Whether the button must have the icon at the end.
|
|
162
171
|
*/
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export declare const buttonGroupVariants: readonly ["default", "transparent"];
|
|
3
|
+
type ButtonGroupVariant = (typeof buttonGroupVariants)[number];
|
|
2
4
|
export type ButtonGroupProps = {
|
|
3
5
|
/**
|
|
4
6
|
* The buttons to show in the group. It should be `Button`, `IconButton`, `MenuButton` or `MenuIconButton`.
|
|
@@ -8,7 +10,7 @@ export type ButtonGroupProps = {
|
|
|
8
10
|
* Variant to show button group.
|
|
9
11
|
* @default default
|
|
10
12
|
*/
|
|
11
|
-
variant?:
|
|
13
|
+
variant?: ButtonGroupVariant;
|
|
12
14
|
/**
|
|
13
15
|
* Determines if the button group is full width or not.
|
|
14
16
|
*/
|
|
@@ -3,6 +3,8 @@ import { ButtonProps as MuiButtonProps } from '@mui/material/Button';
|
|
|
3
3
|
import { ButtonProps } from './Button';
|
|
4
4
|
import { PopoverProps } from '../popover';
|
|
5
5
|
import { ListItemButtonProps } from '../list';
|
|
6
|
+
export declare const buttonWithActionsOptionsPlacements: readonly ["top", "bottom"];
|
|
7
|
+
type ButtonWithActionsOptionsPlacement = (typeof buttonWithActionsOptionsPlacements)[number];
|
|
6
8
|
export type ButtonWithActionsProps = ButtonProps & Pick<PopoverProps, 'anchorHorizontalOrigin' | 'horizontalAlign'> & {
|
|
7
9
|
/**
|
|
8
10
|
* The options to show in button submenu
|
|
@@ -15,7 +17,7 @@ export type ButtonWithActionsProps = ButtonProps & Pick<PopoverProps, 'anchorHor
|
|
|
15
17
|
/**
|
|
16
18
|
* Placement of options popover
|
|
17
19
|
*/
|
|
18
|
-
optionsPlacement?:
|
|
20
|
+
optionsPlacement?: ButtonWithActionsOptionsPlacement;
|
|
19
21
|
/**
|
|
20
22
|
* Called when the options popover is closed by Escape key, Tab key or click outside.
|
|
21
23
|
*/
|
|
@@ -30,14 +32,14 @@ export type ButtonWithActionsProps = ButtonProps & Pick<PopoverProps, 'anchorHor
|
|
|
30
32
|
* All supported children types of this component are: Button, IconButton, MenuButton or MenuIconButton.
|
|
31
33
|
*/
|
|
32
34
|
declare const ButtonWithActions: React.ForwardRefExoticComponent<Pick<MuiButtonProps, "id" | "className" | "aria-controls" | "aria-expanded" | "aria-haspopup" | "sx" | "disabled" | "type" | "onClick" | "onMouseEnter" | "onMouseLeave"> & {
|
|
33
|
-
variant?: "
|
|
34
|
-
color?: "
|
|
35
|
+
variant?: "text" | "outlined" | "contained";
|
|
36
|
+
color?: "inherit" | "white" | "primary" | "warning";
|
|
35
37
|
size?: "M" | "L" | "XL";
|
|
36
38
|
component?: "label" | "button";
|
|
37
39
|
text: string;
|
|
38
40
|
iconId?: import("../icon").IconId;
|
|
39
41
|
icon?: React.ReactNode;
|
|
40
|
-
iconSize?:
|
|
42
|
+
iconSize?: import("../icon/Icon").IconSize;
|
|
41
43
|
iconEnd?: boolean;
|
|
42
44
|
badgeText?: string;
|
|
43
45
|
badgeLeft?: boolean;
|
|
@@ -56,7 +58,7 @@ declare const ButtonWithActions: React.ForwardRefExoticComponent<Pick<MuiButtonP
|
|
|
56
58
|
/**
|
|
57
59
|
* Placement of options popover
|
|
58
60
|
*/
|
|
59
|
-
optionsPlacement?:
|
|
61
|
+
optionsPlacement?: ButtonWithActionsOptionsPlacement;
|
|
60
62
|
/**
|
|
61
63
|
* Called when the options popover is closed by Escape key, Tab key or click outside.
|
|
62
64
|
*/
|
|
@@ -31,6 +31,12 @@ declare const sizes: {
|
|
|
31
31
|
readonly iconSize: "M";
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
|
+
export declare const iconButtonSizes: (keyof typeof sizes)[];
|
|
35
|
+
type IconButtonSize = (typeof iconButtonSizes)[number];
|
|
36
|
+
export declare const iconButtonVariants: readonly ["contained", "default", "primary", "outlined"];
|
|
37
|
+
type IconButtonVariant = (typeof iconButtonVariants)[number];
|
|
38
|
+
export declare const iconButtonShapes: readonly ["default", "square"];
|
|
39
|
+
type IconButtonShape = (typeof iconButtonShapes)[number];
|
|
34
40
|
export type IconButtonProps = Pick<MuiIconButtonProps, 'disabled' | 'onClick' | 'sx' | 'id' | 'onMouseDown' | 'className'> & {
|
|
35
41
|
/**
|
|
36
42
|
* The identifier of the icon to display.
|
|
@@ -39,7 +45,7 @@ export type IconButtonProps = Pick<MuiIconButtonProps, 'disabled' | 'onClick' |
|
|
|
39
45
|
/**
|
|
40
46
|
* Size of the button.
|
|
41
47
|
*/
|
|
42
|
-
size?:
|
|
48
|
+
size?: IconButtonSize;
|
|
43
49
|
/**
|
|
44
50
|
* Settled directly in DOM element, for testing easy location purposes.
|
|
45
51
|
*/
|
|
@@ -47,11 +53,11 @@ export type IconButtonProps = Pick<MuiIconButtonProps, 'disabled' | 'onClick' |
|
|
|
47
53
|
/**
|
|
48
54
|
* The variant of the button.
|
|
49
55
|
*/
|
|
50
|
-
variant?:
|
|
56
|
+
variant?: IconButtonVariant;
|
|
51
57
|
/**
|
|
52
58
|
* The shape of the button.
|
|
53
59
|
*/
|
|
54
|
-
shape?:
|
|
60
|
+
shape?: IconButtonShape;
|
|
55
61
|
/**
|
|
56
62
|
* Disable ripple effect
|
|
57
63
|
*/
|
|
@@ -65,7 +71,7 @@ declare const IconButton: React.ForwardRefExoticComponent<Pick<MuiIconButtonProp
|
|
|
65
71
|
/**
|
|
66
72
|
* Size of the button.
|
|
67
73
|
*/
|
|
68
|
-
size?:
|
|
74
|
+
size?: IconButtonSize;
|
|
69
75
|
/**
|
|
70
76
|
* Settled directly in DOM element, for testing easy location purposes.
|
|
71
77
|
*/
|
|
@@ -73,11 +79,11 @@ declare const IconButton: React.ForwardRefExoticComponent<Pick<MuiIconButtonProp
|
|
|
73
79
|
/**
|
|
74
80
|
* The variant of the button.
|
|
75
81
|
*/
|
|
76
|
-
variant?:
|
|
82
|
+
variant?: IconButtonVariant;
|
|
77
83
|
/**
|
|
78
84
|
* The shape of the button.
|
|
79
85
|
*/
|
|
80
|
-
shape?:
|
|
86
|
+
shape?: IconButtonShape;
|
|
81
87
|
/**
|
|
82
88
|
* Disable ripple effect
|
|
83
89
|
*/
|
|
@@ -1,8 +1,36 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ToggleButtonProps as MuiToggleButtonProps } from '@mui/material/ToggleButton';
|
|
3
3
|
import { IconId } from '../icon/Icon';
|
|
4
|
-
|
|
4
|
+
declare const sizes: {
|
|
5
|
+
readonly XS: {
|
|
6
|
+
readonly side: 20;
|
|
7
|
+
readonly iconSize: "XS";
|
|
8
|
+
};
|
|
9
|
+
readonly S: {
|
|
10
|
+
readonly side: 24;
|
|
11
|
+
readonly iconSize: "S";
|
|
12
|
+
};
|
|
13
|
+
readonly M: {
|
|
14
|
+
readonly side: 32;
|
|
15
|
+
readonly iconSize: "M";
|
|
16
|
+
};
|
|
17
|
+
readonly L: {
|
|
18
|
+
readonly side: 40;
|
|
19
|
+
readonly iconSize: "M";
|
|
20
|
+
};
|
|
21
|
+
readonly XL: {
|
|
22
|
+
readonly side: 48;
|
|
23
|
+
readonly iconSize: "M";
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export declare const iconToggleButtonSizes: (keyof typeof sizes)[];
|
|
27
|
+
type IconToggleButtonSize = (typeof iconToggleButtonSizes)[number];
|
|
28
|
+
export declare const iconToggleButtonVariants: readonly ["default", "square", "square-outlined"];
|
|
29
|
+
type IconToggleButtonVariant = (typeof iconToggleButtonVariants)[number];
|
|
5
30
|
export type IconToggleButtonProps = Pick<MuiToggleButtonProps, 'disabled' | 'onClick' | 'sx' | 'selected'> & {
|
|
31
|
+
/**
|
|
32
|
+
* Variant to show the IconToggleButton.
|
|
33
|
+
*/
|
|
6
34
|
variant?: IconToggleButtonVariant;
|
|
7
35
|
/**
|
|
8
36
|
* The identifier of the icon to display at the start of the button.
|
|
@@ -11,13 +39,20 @@ export type IconToggleButtonProps = Pick<MuiToggleButtonProps, 'disabled' | 'onC
|
|
|
11
39
|
/**
|
|
12
40
|
* Size of the button.
|
|
13
41
|
*/
|
|
14
|
-
size?:
|
|
42
|
+
size?: IconToggleButtonSize;
|
|
15
43
|
/**
|
|
16
44
|
* The value to associate with the button when selected.
|
|
17
45
|
*/
|
|
18
46
|
value?: string;
|
|
19
47
|
};
|
|
20
|
-
|
|
48
|
+
/**
|
|
49
|
+
* A component that displays an IconToggleButton whit an icon inside.
|
|
50
|
+
* It can be disabled.
|
|
51
|
+
*/
|
|
52
|
+
declare const IconToggleButton: React.ForwardRefExoticComponent<Pick<MuiToggleButtonProps, "sx" | "disabled" | "onClick" | "selected"> & {
|
|
53
|
+
/**
|
|
54
|
+
* Variant to show the IconToggleButton.
|
|
55
|
+
*/
|
|
21
56
|
variant?: IconToggleButtonVariant;
|
|
22
57
|
/**
|
|
23
58
|
* The identifier of the icon to display at the start of the button.
|
|
@@ -26,10 +61,10 @@ declare const _default: React.ForwardRefExoticComponent<Pick<MuiToggleButtonProp
|
|
|
26
61
|
/**
|
|
27
62
|
* Size of the button.
|
|
28
63
|
*/
|
|
29
|
-
size?:
|
|
64
|
+
size?: IconToggleButtonSize;
|
|
30
65
|
/**
|
|
31
66
|
* The value to associate with the button when selected.
|
|
32
67
|
*/
|
|
33
68
|
value?: string;
|
|
34
69
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
35
|
-
export default
|
|
70
|
+
export default IconToggleButton;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ButtonProps } from './Button';
|
|
3
3
|
import { PopoverProps } from '../popover';
|
|
4
|
+
export declare const menuButtonPlacements: readonly ["top", "bottom"];
|
|
5
|
+
type MenuButtonPlacement = (typeof menuButtonPlacements)[number];
|
|
4
6
|
export type MenuButtonProps = Omit<ButtonProps, 'children' | 'component'> & Pick<PopoverProps, 'anchorHorizontalOrigin' | 'horizontalAlign'> & {
|
|
5
7
|
/**
|
|
6
8
|
* The list of menu items to display.
|
|
@@ -16,10 +18,10 @@ export type MenuButtonProps = Omit<ButtonProps, 'children' | 'component'> & Pick
|
|
|
16
18
|
*/
|
|
17
19
|
removeIcon?: boolean;
|
|
18
20
|
/**
|
|
19
|
-
* To show menu on the top of
|
|
21
|
+
* To show menu on the top of the button.
|
|
20
22
|
* @default bottom
|
|
21
23
|
*/
|
|
22
|
-
placement?:
|
|
24
|
+
placement?: MenuButtonPlacement;
|
|
23
25
|
/**
|
|
24
26
|
* Called when the menuIconButton is closed by Escape key, Tab key or click outside.
|
|
25
27
|
*/
|
|
@@ -44,10 +46,10 @@ declare const MenuButton: React.ForwardRefExoticComponent<Omit<ButtonProps, "chi
|
|
|
44
46
|
*/
|
|
45
47
|
removeIcon?: boolean;
|
|
46
48
|
/**
|
|
47
|
-
* To show menu on the top of
|
|
49
|
+
* To show menu on the top of the button.
|
|
48
50
|
* @default bottom
|
|
49
51
|
*/
|
|
50
|
-
placement?:
|
|
52
|
+
placement?: MenuButtonPlacement;
|
|
51
53
|
/**
|
|
52
54
|
* Called when the menuIconButton is closed by Escape key, Tab key or click outside.
|
|
53
55
|
*/
|
|
@@ -2,6 +2,8 @@ import * as React from 'react';
|
|
|
2
2
|
import { IconButtonProps } from './IconButton';
|
|
3
3
|
import { PopoverProps } from '../popover/Popover';
|
|
4
4
|
import { SxProps } from '@mui/material';
|
|
5
|
+
export declare const menuIconButtonPlacements: readonly ["top", "bottom"];
|
|
6
|
+
type MenuIconButtonPlacement = (typeof menuIconButtonPlacements)[number];
|
|
5
7
|
export type MenuIconButtonProps = IconButtonProps & Pick<PopoverProps, 'anchorHorizontalOrigin' | 'horizontalAlign'> & {
|
|
6
8
|
/**
|
|
7
9
|
* The list of menu items to display.
|
|
@@ -12,10 +14,10 @@ export type MenuIconButtonProps = IconButtonProps & Pick<PopoverProps, 'anchorHo
|
|
|
12
14
|
*/
|
|
13
15
|
isOpen?: boolean;
|
|
14
16
|
/**
|
|
15
|
-
* To show menu on the top of
|
|
17
|
+
* To show menu on the top of the button.
|
|
16
18
|
* @default bottom
|
|
17
19
|
*/
|
|
18
|
-
placement?:
|
|
20
|
+
placement?: MenuIconButtonPlacement;
|
|
19
21
|
/**
|
|
20
22
|
* Called when the menuIconButton is closed by Escape key, Tab key or click outside.
|
|
21
23
|
*/
|
|
@@ -41,7 +43,7 @@ declare const MenuIconButton: React.ForwardRefExoticComponent<Pick<import("@mui/
|
|
|
41
43
|
iconId: import("..").IconId;
|
|
42
44
|
size?: "XXS" | "XS" | "S" | "M" | "L" | "XL" | "ML";
|
|
43
45
|
'data-test'?: string;
|
|
44
|
-
variant?: "
|
|
46
|
+
variant?: "default" | "outlined" | "contained" | "primary";
|
|
45
47
|
shape?: "default" | "square";
|
|
46
48
|
disableInteractionEffects?: boolean;
|
|
47
49
|
} & Pick<PopoverProps, "horizontalAlign" | "anchorHorizontalOrigin"> & {
|
|
@@ -54,10 +56,10 @@ declare const MenuIconButton: React.ForwardRefExoticComponent<Pick<import("@mui/
|
|
|
54
56
|
*/
|
|
55
57
|
isOpen?: boolean;
|
|
56
58
|
/**
|
|
57
|
-
* To show menu on the top of
|
|
59
|
+
* To show menu on the top of the button.
|
|
58
60
|
* @default bottom
|
|
59
61
|
*/
|
|
60
|
-
placement?:
|
|
62
|
+
placement?: MenuIconButtonPlacement;
|
|
61
63
|
/**
|
|
62
64
|
* Called when the menuIconButton is closed by Escape key, Tab key or click outside.
|
|
63
65
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ToggleButtonProps as MuiToggleButtonProps } from '@mui/material/ToggleButton';
|
|
3
3
|
import { IconId } from '../icon/Icon';
|
|
4
|
+
export declare const toggleButtonTypes: readonly ["button", "submit", "reset"];
|
|
4
5
|
export type ToggleButtonProps = Pick<MuiToggleButtonProps, 'children' | 'id' | 'disabled' | 'onClick' | 'aria-controls' | 'aria-haspopup' | 'aria-expanded' | 'sx' | 'type' | 'selected' | 'onChange'> & {
|
|
5
6
|
/**
|
|
6
7
|
* The identifier of the icon to display at the start of the button.
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { Components
|
|
2
|
-
|
|
1
|
+
import { Components } from '@mui/material';
|
|
2
|
+
import { CustomTheme } from '../../theme/CustomTheme';
|
|
3
|
+
export declare const toggleButtonTheme: Components<CustomTheme>['MuiToggleButton'];
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CardProps as MuiCardProps } from '@mui/material/Card';
|
|
3
3
|
import { SxProps } from '@mui/material';
|
|
4
|
+
declare const sizeWidths: {
|
|
5
|
+
readonly sm: "170px";
|
|
6
|
+
readonly md: "270px";
|
|
7
|
+
readonly lg: "330px";
|
|
8
|
+
readonly xl: "400px";
|
|
9
|
+
};
|
|
10
|
+
export declare const cardSizes: (keyof typeof sizeWidths)[];
|
|
11
|
+
type CardSize = (typeof cardSizes)[number];
|
|
4
12
|
export type CardProps = React.PropsWithChildren<{
|
|
5
13
|
/**
|
|
6
14
|
* The size of the card.
|
|
7
15
|
*/
|
|
8
|
-
size?:
|
|
16
|
+
size?: CardSize;
|
|
9
17
|
/**
|
|
10
18
|
* Whether the card is selected.
|
|
11
19
|
*/
|
|
@@ -2,6 +2,8 @@ declare const imageHeights: {
|
|
|
2
2
|
readonly sm: "104px";
|
|
3
3
|
readonly md: "130px";
|
|
4
4
|
};
|
|
5
|
+
export declare const cardImageSizes: (keyof typeof imageHeights)[];
|
|
6
|
+
type CardImageSize = (typeof cardImageSizes)[number];
|
|
5
7
|
export type CardImageProps = {
|
|
6
8
|
/**
|
|
7
9
|
* The URL of the image to display.
|
|
@@ -10,7 +12,7 @@ export type CardImageProps = {
|
|
|
10
12
|
/**
|
|
11
13
|
* The size of the image.
|
|
12
14
|
*/
|
|
13
|
-
size?:
|
|
15
|
+
size?: CardImageSize;
|
|
14
16
|
};
|
|
15
17
|
/**
|
|
16
18
|
* A component that displays an image within a Card.
|
|
@@ -11,7 +11,10 @@ export interface EnhancedCardCompound extends React.ForwardRefExoticComponent<En
|
|
|
11
11
|
Subtitle: React.FC<EnhancedCardSubtitleProps>;
|
|
12
12
|
Row: React.FC<EnhancedCardRowProps>;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export declare const enhancedCardVariants: readonly ["default", "selectable"];
|
|
15
|
+
type EnhancedCardVariant = (typeof enhancedCardVariants)[number];
|
|
16
|
+
export declare const enhancedCardSizes: readonly ["S", "M", "L", "XL", "XXL"];
|
|
17
|
+
export type EnhancedCardSize = (typeof enhancedCardSizes)[number];
|
|
15
18
|
type Action = {
|
|
16
19
|
iconId: IconId;
|
|
17
20
|
text?: string;
|
|
@@ -24,7 +27,7 @@ export type EnhancedCardProps = React.PropsWithChildren<{
|
|
|
24
27
|
/**
|
|
25
28
|
* Variant of the card.'
|
|
26
29
|
*/
|
|
27
|
-
variant?:
|
|
30
|
+
variant?: EnhancedCardVariant;
|
|
28
31
|
/**
|
|
29
32
|
* Tooltip of the card
|
|
30
33
|
*/
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
2
|
import { IconId } from '../icon/Icon';
|
|
3
|
-
|
|
3
|
+
export declare const incrementLabelTypographyVariants: readonly ["h5", "caption", "body2", "overline"];
|
|
4
|
+
type IncrementLabelTypographyVariant = (typeof incrementLabelTypographyVariants)[number];
|
|
5
|
+
export declare const incrementLabelIconSizes: readonly ["XS", "S", "M"];
|
|
6
|
+
type IncrementLabelIconSize = (typeof incrementLabelIconSizes)[number];
|
|
4
7
|
export type IncrementLabelProps = {
|
|
5
8
|
label: string;
|
|
6
|
-
typographyVariant:
|
|
9
|
+
typographyVariant: IncrementLabelTypographyVariant;
|
|
7
10
|
color?: string;
|
|
8
11
|
backgroundColor?: string;
|
|
9
12
|
iconId?: IconId;
|
|
10
|
-
iconSize?:
|
|
13
|
+
iconSize?: IncrementLabelIconSize;
|
|
11
14
|
/**
|
|
12
15
|
* The `SxProps` can be either object or function
|
|
13
16
|
*/
|
|
@@ -4,6 +4,8 @@ import ReactEChartsCore from 'echarts-for-react/lib/core';
|
|
|
4
4
|
import { CategorizedChartProps } from './CategorizedChartProps';
|
|
5
5
|
import { IconId } from '../icon/Icon';
|
|
6
6
|
import { IncrementLabelType } from '../../propTypes/IncrementLabel';
|
|
7
|
+
export declare const lineChartYAxisPositions: readonly ["left", "right"];
|
|
8
|
+
type LineChartYAxisPosition = (typeof lineChartYAxisPositions)[number];
|
|
7
9
|
export type LineChartProps = CategorizedChartProps & {
|
|
8
10
|
/**
|
|
9
11
|
* The series to display in the chart.
|
|
@@ -103,7 +105,7 @@ export type LineChartProps = CategorizedChartProps & {
|
|
|
103
105
|
/**
|
|
104
106
|
* Option to set the position of the Y axis when there is only one.
|
|
105
107
|
*/
|
|
106
|
-
yAxisPosition?:
|
|
108
|
+
yAxisPosition?: LineChartYAxisPosition;
|
|
107
109
|
/**
|
|
108
110
|
* Rotation angle in degrees for X-axis labels to prevent overlapping.
|
|
109
111
|
* Positive values rotate to the right, negative values rotate to the left.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TypographyProps } from '../typography/Typography';
|
|
3
|
+
export declare const chatMessageTypes: readonly ["incoming", "outgoing"];
|
|
4
|
+
type ChatMessageType = (typeof chatMessageTypes)[number];
|
|
3
5
|
export type ChatMessageProps = {
|
|
4
6
|
/**
|
|
5
7
|
* Message type, messages send by user will be outgoing and responses will be incoming.
|
|
6
8
|
*
|
|
7
9
|
*/
|
|
8
|
-
messageType:
|
|
10
|
+
messageType: ChatMessageType;
|
|
9
11
|
/**
|
|
10
12
|
* Chat message children.
|
|
11
13
|
*/
|