@connectif/ui-components 7.0.1 → 8.1.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.
- package/CHANGELOG.md +42 -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/CardChips.d.ts +2 -5
- 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/ChipList.d.ts +5 -0
- package/dist/components/chip/ChipViewer.d.ts +12 -21
- 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 +1356 -1018
- 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
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { ListItemButtonProps } from '../list/ListItemButton';
|
|
4
|
+
export declare const collapsiblePanelSwitcherVariants: readonly ["sortable-move", "sortable-arrow"];
|
|
5
|
+
type CollapsiblePanelSwitcherVariant = (typeof collapsiblePanelSwitcherVariants)[number];
|
|
6
|
+
export declare const collapsiblePanelSwitcherDirections: readonly ["down", "up"];
|
|
7
|
+
type CollapsiblePanelSwitcherDirection = (typeof collapsiblePanelSwitcherDirections)[number];
|
|
4
8
|
export type CollapsiblePanelSwitcherProps = React.PropsWithChildren<{
|
|
5
9
|
sx?: SxProps;
|
|
6
10
|
/**
|
|
7
11
|
* The variant of the CollapsiblePanel. Default 'sortable-move'
|
|
8
12
|
*/
|
|
9
|
-
variant?:
|
|
13
|
+
variant?: CollapsiblePanelSwitcherVariant;
|
|
10
14
|
/**
|
|
11
15
|
* Whether the panel is collapsed or not. If not supplied, the panel is not collapsed by default.
|
|
12
16
|
*/
|
|
@@ -49,7 +53,7 @@ export type CollapsiblePanelSwitcherProps = React.PropsWithChildren<{
|
|
|
49
53
|
/**
|
|
50
54
|
* Whether the collapse will be placed down or up from the header.
|
|
51
55
|
*/
|
|
52
|
-
collapseDirection?:
|
|
56
|
+
collapseDirection?: CollapsiblePanelSwitcherDirection;
|
|
53
57
|
/**
|
|
54
58
|
* Set border separator dashed between. Default false
|
|
55
59
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ContainerProps as MuiContainerProps } from '@mui/material/Container';
|
|
2
|
+
export declare const containerMaxWidths: readonly ["xs", "sm", "md", "lg", "xl", false];
|
|
2
3
|
export type ContainerProps = Pick<MuiContainerProps, 'sx' | 'children' | 'maxWidth'>;
|
|
3
4
|
declare const Container: ({ maxWidth, ...rest }: ContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
4
5
|
export default Container;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
2
|
+
export declare const stepperOrientations: readonly ["horizontal", "vertical"];
|
|
3
|
+
type StepperOrientation = (typeof stepperOrientations)[number];
|
|
3
4
|
export type StepperProps = {
|
|
4
5
|
/**
|
|
5
6
|
* Select active step
|
|
@@ -8,7 +9,7 @@ export type StepperProps = {
|
|
|
8
9
|
/**
|
|
9
10
|
* Select stepper orientation
|
|
10
11
|
*/
|
|
11
|
-
orientation?:
|
|
12
|
+
orientation?: StepperOrientation;
|
|
12
13
|
/**
|
|
13
14
|
* Steps info
|
|
14
15
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BoxProps } from '@mui/material';
|
|
3
|
-
|
|
3
|
+
export declare const toolBoxSizes: readonly ["L", "M"];
|
|
4
|
+
type ToolBoxSize = (typeof toolBoxSizes)[number];
|
|
4
5
|
export type ToolBoxProps = React.PropsWithChildren<{
|
|
5
6
|
className?: BoxProps['className'];
|
|
6
7
|
header?: React.ReactNode;
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import { TypographyVariant } from '../../theme/Typography';
|
|
4
3
|
import { IconId } from '../icon/Icon';
|
|
5
4
|
import { TypographyProps } from '../typography/Typography';
|
|
5
|
+
export declare const baseListItemColors: readonly ["default", "primary"];
|
|
6
|
+
type BaseListItemColor = (typeof baseListItemColors)[number];
|
|
7
|
+
export declare const baseListItemVariants: readonly ["default", "circular"];
|
|
8
|
+
type BaseListItemVariant = (typeof baseListItemVariants)[number];
|
|
9
|
+
export declare const baseListItemTypographyVariants: readonly ["body1", "body2", "body1-semibold"];
|
|
10
|
+
type BaseListItemTypographyVariant = (typeof baseListItemTypographyVariants)[number];
|
|
6
11
|
export type BaseListItemProps = {
|
|
7
12
|
/**
|
|
8
13
|
* The color variant of the list item.
|
|
9
14
|
*/
|
|
10
|
-
color?:
|
|
15
|
+
color?: BaseListItemColor;
|
|
11
16
|
/**
|
|
12
17
|
* Adornment components to be placed at the start of the input.
|
|
13
18
|
*/
|
|
@@ -30,7 +35,7 @@ export type BaseListItemProps = {
|
|
|
30
35
|
* The variant to be used for main `text` prop. If supplied prop `children`
|
|
31
36
|
* this text will be ignored.
|
|
32
37
|
*/
|
|
33
|
-
typographyVariant?:
|
|
38
|
+
typographyVariant?: BaseListItemTypographyVariant;
|
|
34
39
|
/**
|
|
35
40
|
* The text to be placed in main ListItem area. If supplied prop `children`
|
|
36
41
|
* this text will be ignored.
|
|
@@ -57,7 +62,7 @@ export type BaseListItemProps = {
|
|
|
57
62
|
/**
|
|
58
63
|
* The variant of the list item.
|
|
59
64
|
*/
|
|
60
|
-
variant?:
|
|
65
|
+
variant?: BaseListItemVariant;
|
|
61
66
|
/**
|
|
62
67
|
* Class to override .MuiTooltip-popper styles
|
|
63
68
|
*/
|
|
@@ -2,7 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import { ListItemButtonProps as MuiListItemButtonProps, SxProps } from '@mui/material';
|
|
3
3
|
import { BaseListItemProps } from './BaseListItem';
|
|
4
4
|
import { TypographyProps } from '../typography/Typography';
|
|
5
|
-
export type ListItemButtonProps = Pick<MuiListItemButtonProps, 'onClick' | 'tabIndex' | 'role' | 'onMouseDown' | 'onMouseUp' | 'onMouseEnter' | 'onMouseLeave' | 'className'> & {
|
|
5
|
+
export type ListItemButtonProps = Pick<MuiListItemButtonProps, 'onClick' | 'tabIndex' | 'role' | 'onMouseDown' | 'onMouseUp' | 'onMouseEnter' | 'onMouseLeave' | 'onMouseMove' | 'className'> & {
|
|
6
6
|
/**
|
|
7
7
|
* If `true`, the onClick callback will also be triggered on aux click. Default is `false`.
|
|
8
8
|
*/
|
|
@@ -27,7 +27,7 @@ export type ListItemButtonProps = Pick<MuiListItemButtonProps, 'onClick' | 'tabI
|
|
|
27
27
|
'data-testid'?: string;
|
|
28
28
|
buttonDataTestId?: string;
|
|
29
29
|
} & BaseListItemProps;
|
|
30
|
-
declare const ListItemButton: React.ForwardRefExoticComponent<Pick<MuiListItemButtonProps, "className" | "role" | "tabIndex" | "onClick" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseUp"> & {
|
|
30
|
+
declare const ListItemButton: React.ForwardRefExoticComponent<Pick<MuiListItemButtonProps, "className" | "role" | "tabIndex" | "onClick" | "onMouseDown" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseUp"> & {
|
|
31
31
|
/**
|
|
32
32
|
* If `true`, the onClick callback will also be triggered on aux click. Default is `false`.
|
|
33
33
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CircularProgressProps } from '../progress';
|
|
2
1
|
import { BoxProps } from '@mui/material/Box';
|
|
2
|
+
import { CircularProgressSize } from '../progress/CircularProgress';
|
|
3
3
|
export type LoaderProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Wheather the loader is visible or not
|
|
@@ -12,7 +12,7 @@ export type LoaderProps = {
|
|
|
12
12
|
/**
|
|
13
13
|
* The size of the circular progress.
|
|
14
14
|
*/
|
|
15
|
-
size?:
|
|
15
|
+
size?: CircularProgressSize;
|
|
16
16
|
/**
|
|
17
17
|
* Whether to hide the progress circle or not
|
|
18
18
|
* @default false
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export declare const donutFocusOverlayChipPositions: readonly ["left", "right"];
|
|
3
|
+
type DonutFocusOverlayChipPosition = (typeof donutFocusOverlayChipPositions)[number];
|
|
2
4
|
export type DonutFocusOverlayProps = {
|
|
3
5
|
isVisible: boolean;
|
|
4
6
|
elementRef?: React.RefObject<HTMLElement | null>;
|
|
5
7
|
padding?: number;
|
|
6
8
|
donutWidth?: number;
|
|
7
9
|
chipLabel?: string;
|
|
8
|
-
chipPosition?:
|
|
10
|
+
chipPosition?: DonutFocusOverlayChipPosition;
|
|
9
11
|
};
|
|
10
12
|
declare const DonutFocusOverlay: ({ isVisible, elementRef, padding, donutWidth, chipLabel, chipPosition }: DonutFocusOverlayProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
11
13
|
export default DonutFocusOverlay;
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { PopoverProps as MuiPopoverProps } from '@mui/material/Popover';
|
|
2
|
+
export declare const popoverHorizontalPositions: readonly ["left", "center", "right"];
|
|
3
|
+
type PopoverAnchorHorizontalPosition = (typeof popoverHorizontalPositions)[number];
|
|
4
|
+
export declare const popoverVerticalPositions: readonly ["top", "center", "bottom"];
|
|
5
|
+
type PopoverAnchorVerticalPosition = (typeof popoverVerticalPositions)[number];
|
|
2
6
|
export type PopoverProps = Pick<MuiPopoverProps, 'children' | 'anchorEl' | 'sx' | 'disableEscapeKeyDown' | 'onTransitionEnd' | 'onMouseUp'> & {
|
|
3
7
|
/**
|
|
4
8
|
* The event triggered when clicking on the backdrop or Escape key is pushed.
|
|
@@ -6,13 +10,13 @@ export type PopoverProps = Pick<MuiPopoverProps, 'children' | 'anchorEl' | 'sx'
|
|
|
6
10
|
*/
|
|
7
11
|
onClose: (event: object, reason: 'backdropClick' | 'escapeKeyDown') => void;
|
|
8
12
|
/** This prop is used to indicate the horizontal direction in which you want the popover to open having as reference point the origin of the popover. */
|
|
9
|
-
horizontalAlign?:
|
|
13
|
+
horizontalAlign?: PopoverAnchorHorizontalPosition;
|
|
10
14
|
/** This prop is used to indicate the horizontal origin position as reference point the origin of the popover. */
|
|
11
|
-
anchorHorizontalOrigin?:
|
|
15
|
+
anchorHorizontalOrigin?: PopoverAnchorHorizontalPosition;
|
|
12
16
|
/** This prop is used to indicate the vertical direction in which you want the popover to open having as reference point the origin of the popover. */
|
|
13
|
-
verticalAlign?:
|
|
17
|
+
verticalAlign?: PopoverAnchorVerticalPosition;
|
|
14
18
|
/** This prop is used to indicate the vertical origin position as reference point the origin of the popover. */
|
|
15
|
-
anchorVerticalAlign?:
|
|
19
|
+
anchorVerticalAlign?: PopoverAnchorVerticalPosition;
|
|
16
20
|
/** If `true`, the modal will not restore focus to previously focused element once modal is hidden or unmounted.*/
|
|
17
21
|
disableRestoreFocus?: boolean;
|
|
18
22
|
/** Popover will be centered in screen */
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { CircularProgressProps as MuiCircularProgressProps } from '@mui/material/CircularProgress';
|
|
3
3
|
import { TypographyVariant } from '../../theme/Typography';
|
|
4
|
-
declare const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly LG: "48px";
|
|
9
|
-
readonly XL: "64px";
|
|
10
|
-
};
|
|
4
|
+
export declare const circularProgressSizes: readonly ["XS", "SM", "MD", "LG", "XL"];
|
|
5
|
+
export type CircularProgressSize = (typeof circularProgressSizes)[number];
|
|
6
|
+
export declare const circularProgressVariants: readonly ["determinate", "indeterminate"];
|
|
7
|
+
type CircularProgressVariant = (typeof circularProgressVariants)[number];
|
|
11
8
|
export type CircularProgressProps = Pick<MuiCircularProgressProps, 'thickness'> & {
|
|
12
9
|
/**
|
|
13
10
|
* The value to fill the circular progress bar. Only applied with determinate variant
|
|
@@ -20,12 +17,12 @@ export type CircularProgressProps = Pick<MuiCircularProgressProps, 'thickness'>
|
|
|
20
17
|
/**
|
|
21
18
|
* The size of the circle.
|
|
22
19
|
*/
|
|
23
|
-
size?:
|
|
20
|
+
size?: CircularProgressSize;
|
|
24
21
|
/**
|
|
25
22
|
* Whether the progress is indeterminate or not.
|
|
26
23
|
* If indeterminate, the value prop is ignored.
|
|
27
24
|
*/
|
|
28
|
-
variant?:
|
|
25
|
+
variant?: CircularProgressVariant;
|
|
29
26
|
/**
|
|
30
27
|
* The color of the circular progress.
|
|
31
28
|
*/
|
|
@@ -25,6 +25,8 @@ declare const variants: {
|
|
|
25
25
|
readonly labelChipColor: "#B71C1C";
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
|
+
export declare const donutProgressVariants: (keyof typeof variants)[];
|
|
29
|
+
type DonutProgressVariant = (typeof donutProgressVariants)[number];
|
|
28
30
|
export type DonutProgressProps = Pick<CircularProgressProps, 'size'> & {
|
|
29
31
|
/**
|
|
30
32
|
* The percentage to fill the donut progress bar. Value is from 0 to 100.
|
|
@@ -33,7 +35,7 @@ export type DonutProgressProps = Pick<CircularProgressProps, 'size'> & {
|
|
|
33
35
|
/**
|
|
34
36
|
* The variant of the donut progress.
|
|
35
37
|
*/
|
|
36
|
-
variant:
|
|
38
|
+
variant: DonutProgressVariant;
|
|
37
39
|
/**
|
|
38
40
|
* The label to set on the donut progress.
|
|
39
41
|
*/
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { LinearProgressProps as MuiLinearProgressProps } from '@mui/material/LinearProgress';
|
|
2
|
+
export declare const linearProgressVariants: readonly ["determinate", "indeterminate"];
|
|
3
|
+
type LinearProgressVariant = (typeof linearProgressVariants)[number];
|
|
2
4
|
export type LinearProgressProps = Pick<MuiLinearProgressProps, 'value'> & {
|
|
3
5
|
/**
|
|
4
6
|
* Whether the progress is indeterminate or not.
|
|
5
7
|
* If indeterminate, the value prop is ignored.
|
|
6
8
|
*/
|
|
7
|
-
variant?:
|
|
9
|
+
variant?: LinearProgressVariant;
|
|
8
10
|
/**
|
|
9
11
|
* The color of the progress bar.
|
|
10
12
|
*/
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export declare const carouselAlignments: readonly ["left", "center"];
|
|
3
|
+
type CarouselAlignment = (typeof carouselAlignments)[number];
|
|
2
4
|
export type CarouselProps<T> = {
|
|
3
5
|
items: T[];
|
|
4
6
|
renderItem: (item: T, index: number) => React.ReactNode;
|
|
5
7
|
gap?: number;
|
|
6
8
|
padding?: number;
|
|
7
|
-
alignment?:
|
|
9
|
+
alignment?: CarouselAlignment;
|
|
8
10
|
};
|
|
9
11
|
declare function Carousel<T>({ items, renderItem, gap, padding, alignment }: CarouselProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export default Carousel;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SkeletonProps as MuiSkeletonProps } from '@mui/material/Skeleton';
|
|
3
|
-
|
|
3
|
+
export declare const skeletonColorVariants: readonly ["default", "primary"];
|
|
4
|
+
type SkeletonColorVariantId = (typeof skeletonColorVariants)[number];
|
|
5
|
+
export declare const skeletonVariants: readonly ["text", "rectangular", "circular", "rounded"];
|
|
6
|
+
export declare const skeletonAnimations: readonly ["pulse", "wave", false];
|
|
4
7
|
export type SkeletonProps = Pick<MuiSkeletonProps, 'variant' | 'width' | 'height' | 'sx' | 'animation'> & {
|
|
5
8
|
colorVariant?: SkeletonColorVariantId;
|
|
6
9
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SnackbarKey, SnackbarMessage } from 'notistack';
|
|
3
|
-
|
|
4
|
-
type
|
|
3
|
+
export declare const snackbarSizes: readonly ["M", "L"];
|
|
4
|
+
type SnackbarSize = (typeof snackbarSizes)[number];
|
|
5
|
+
export declare const snackbarSeverities: readonly ["success", "info", "error", "warning"];
|
|
6
|
+
type SnackbarSeverity = (typeof snackbarSeverities)[number];
|
|
5
7
|
export type SnackbarProps = {
|
|
6
8
|
/**
|
|
7
9
|
* Unique key associated to this snackbar. It will be used to close this
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export declare const tabButtonTextAligns: readonly ["left", "center"];
|
|
3
|
+
type TabButtonTextAlign = (typeof tabButtonTextAligns)[number];
|
|
2
4
|
export type TabButtonProps = React.PropsWithChildren<{
|
|
3
5
|
/**
|
|
4
6
|
* Whether the tab button is disabled.
|
|
@@ -9,7 +11,7 @@ export type TabButtonProps = React.PropsWithChildren<{
|
|
|
9
11
|
* @default left
|
|
10
12
|
*
|
|
11
13
|
*/
|
|
12
|
-
textAlign?:
|
|
14
|
+
textAlign?: TabButtonTextAlign;
|
|
13
15
|
/**
|
|
14
16
|
* Right margin of the tab
|
|
15
17
|
*/
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
export declare const tabsVariants: readonly ["scrollable", "fullWidth"];
|
|
3
|
+
type TabsVariant = (typeof tabsVariants)[number];
|
|
4
|
+
export declare const tabsScrollbarGutters: readonly ["stable", "auto"];
|
|
5
|
+
type TabsScrollbarGutter = (typeof tabsScrollbarGutters)[number];
|
|
2
6
|
export type TabsProps = {
|
|
3
7
|
/**
|
|
4
8
|
* An array with the tab buttons. Make sure it is the correlative order
|
|
@@ -23,7 +27,7 @@ export type TabsProps = {
|
|
|
23
27
|
* 'scrollable' is the default value, and it stacks the tabs horizontally to left.
|
|
24
28
|
* 'fullWith' distributes the tabs horizontally to fit the full width.
|
|
25
29
|
*/
|
|
26
|
-
variant?:
|
|
30
|
+
variant?: TabsVariant;
|
|
27
31
|
/**
|
|
28
32
|
* If true, it sets the main tabs container style to have height=100%, which will be adapted to the parent height
|
|
29
33
|
* according to general css rules (i.e. the parent height should be extablished to a fixed or relative value)
|
|
@@ -37,7 +41,7 @@ export type TabsProps = {
|
|
|
37
41
|
/**
|
|
38
42
|
* Set the scrollbarGutter property for each slide of the SwipeableViews component.
|
|
39
43
|
*/
|
|
40
|
-
scrollbarGutter?:
|
|
44
|
+
scrollbarGutter?: TabsScrollbarGutter;
|
|
41
45
|
/**
|
|
42
46
|
* Hide scroll in tab content
|
|
43
47
|
*/
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
export declare const toolbarTitleAligns: readonly ["left", "right"];
|
|
4
|
+
type ToolbarTitleAlign = (typeof toolbarTitleAligns)[number];
|
|
3
5
|
export type ToolbarTitleProps = {
|
|
4
6
|
/**
|
|
5
7
|
* The title to display.
|
|
@@ -8,7 +10,7 @@ export type ToolbarTitleProps = {
|
|
|
8
10
|
/**
|
|
9
11
|
* Title text alignment.
|
|
10
12
|
*/
|
|
11
|
-
align?:
|
|
13
|
+
align?: ToolbarTitleAlign;
|
|
12
14
|
className?: string;
|
|
13
15
|
/**
|
|
14
16
|
* Actions to show on hover.
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TooltipProps as MuiTooltipProps } from '@mui/material';
|
|
3
3
|
import { TypographyProps } from '../typography/Typography';
|
|
4
|
-
export
|
|
4
|
+
export declare const tooltipVariants: readonly ["default", "white", "error", "blue"];
|
|
5
|
+
type TooltipVariant = (typeof tooltipVariants)[number];
|
|
6
|
+
export declare const tooltipPlacements: readonly ["top", "bottom", "left", "right"];
|
|
7
|
+
type TooltipPlacement = (typeof tooltipPlacements)[number];
|
|
5
8
|
export type TooltipProps = Pick<MuiTooltipProps, 'children' | 'disableHoverListener' | 'open'> & {
|
|
6
9
|
/**
|
|
7
10
|
* The content to display in the tooltip.
|
|
@@ -10,7 +13,7 @@ export type TooltipProps = Pick<MuiTooltipProps, 'children' | 'disableHoverListe
|
|
|
10
13
|
/**
|
|
11
14
|
* The placement of the tooltip.
|
|
12
15
|
*/
|
|
13
|
-
placement?:
|
|
16
|
+
placement?: TooltipPlacement;
|
|
14
17
|
/**
|
|
15
18
|
* If set, it won't close when the user hovers over the tooltip
|
|
16
19
|
*/
|
|
@@ -63,7 +66,7 @@ declare const Tooltip: React.ForwardRefExoticComponent<Pick<MuiTooltipProps, "op
|
|
|
63
66
|
/**
|
|
64
67
|
* The placement of the tooltip.
|
|
65
68
|
*/
|
|
66
|
-
placement?:
|
|
69
|
+
placement?: TooltipPlacement;
|
|
67
70
|
/**
|
|
68
71
|
* If set, it won't close when the user hovers over the tooltip
|
|
69
72
|
*/
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare const textMarkerModes: readonly ["startsWith", "contains", "endsWith"];
|
|
2
|
+
type TextMarkerMode = (typeof textMarkerModes)[number];
|
|
1
3
|
export type TextMarkerProps = {
|
|
2
4
|
/**
|
|
3
5
|
* The background color to be used as marker color
|
|
@@ -18,7 +20,7 @@ export type TextMarkerProps = {
|
|
|
18
20
|
/**
|
|
19
21
|
* The mode to search within the children.
|
|
20
22
|
*/
|
|
21
|
-
mode?:
|
|
23
|
+
mode?: TextMarkerMode;
|
|
22
24
|
/**
|
|
23
25
|
* The separator to split the searchText in multiple tokens.
|
|
24
26
|
*/
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { SxProps } from '@mui/material';
|
|
2
2
|
import { IconId } from '../icon/Icon';
|
|
3
3
|
import { IncrementLabelType } from '../../propTypes/IncrementLabel';
|
|
4
|
+
export declare const legendDirections: readonly ["column", "row"];
|
|
5
|
+
type LegendDirection = (typeof legendDirections)[number];
|
|
6
|
+
export declare const widgetLegendIconSizes: readonly ["XS", "S", "M", "L", "XL"];
|
|
7
|
+
type WidgetLegendIconSize = (typeof widgetLegendIconSizes)[number];
|
|
4
8
|
export type WidgetLegendItemProps = {
|
|
5
9
|
/**
|
|
6
10
|
* The label to display at the top of the group of items
|
|
@@ -9,7 +13,7 @@ export type WidgetLegendItemProps = {
|
|
|
9
13
|
/**
|
|
10
14
|
* The direction to display the group of items
|
|
11
15
|
*/
|
|
12
|
-
legendDirection?:
|
|
16
|
+
legendDirection?: LegendDirection;
|
|
13
17
|
/**
|
|
14
18
|
* The items to display in this WidgetLegendItem. It could be more than one.
|
|
15
19
|
*/
|
|
@@ -34,7 +38,7 @@ export type WidgetLegendItemProps = {
|
|
|
34
38
|
/**
|
|
35
39
|
* The icon size
|
|
36
40
|
*/
|
|
37
|
-
iconSize?:
|
|
41
|
+
iconSize?: WidgetLegendIconSize;
|
|
38
42
|
/**
|
|
39
43
|
* The primary value as text for this item
|
|
40
44
|
*/
|
|
@@ -6,12 +6,14 @@ declare const sizes: {
|
|
|
6
6
|
L: number;
|
|
7
7
|
XL: number;
|
|
8
8
|
};
|
|
9
|
+
export declare const minimizableWindowSizes: (keyof typeof sizes)[];
|
|
10
|
+
type MinimizableWindowSize = (typeof minimizableWindowSizes)[number];
|
|
9
11
|
export type MinimizableWindowProps = React.PropsWithChildren<{
|
|
10
12
|
/**
|
|
11
13
|
* The title of the MinimizableWindow
|
|
12
14
|
*/
|
|
13
15
|
title: string | React.ReactNode;
|
|
14
|
-
size?:
|
|
16
|
+
size?: MinimizableWindowSize;
|
|
15
17
|
/**
|
|
16
18
|
* If true, the MinimizableWindow is open.
|
|
17
19
|
*/
|
|
@@ -73,7 +75,7 @@ declare const MinimizableWindow: React.ForwardRefExoticComponent<{
|
|
|
73
75
|
* The title of the MinimizableWindow
|
|
74
76
|
*/
|
|
75
77
|
title: string | React.ReactNode;
|
|
76
|
-
size?:
|
|
78
|
+
size?: MinimizableWindowSize;
|
|
77
79
|
/**
|
|
78
80
|
* If true, the MinimizableWindow is open.
|
|
79
81
|
*/
|
package/dist/i18n/en.d.ts
CHANGED
package/dist/i18n/es.d.ts
CHANGED
package/dist/i18n/fr.d.ts
CHANGED
package/dist/i18n/it.d.ts
CHANGED