@connectif/ui-components 4.0.1 → 4.0.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.
- package/CHANGELOG.md +13 -0
- package/dist/components/button/IconButton.d.ts +8 -0
- package/dist/components/button/MenuIconButton.d.ts +1 -0
- package/dist/components/chip/Chip.d.ts +8 -0
- package/dist/components/chip/ChipViewer.d.ts +3 -5
- package/dist/components/input/autocomplete/AutocompleteInput.d.ts +3 -3
- package/dist/components/input/autocomplete/AutocompleteInputSelection.d.ts +5 -8
- package/dist/index.js +280 -223
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [4.0.2] - 2026-01-13
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- `IconButton` component now supports an optional `disableInteractionEffects` prop to disable ripple effects.
|
|
8
|
+
- `Chip` component now supports an optional `disableDeleteRipple` prop to disable ripple effects on the delete button.
|
|
9
|
+
- `ChipViewer` component now supports an optional `forceRecalculate` prop to recalculate chip widths.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fixed visual bugs in the `Autocomplete` component.
|
|
14
|
+
- Fixed scrolling issues in the `Chat` component.
|
|
15
|
+
|
|
3
16
|
## [4.0.1] - 2026-01-13
|
|
4
17
|
|
|
5
18
|
### Fixed
|
|
@@ -52,6 +52,10 @@ export type IconButtonProps = Pick<MuiIconButtonProps, 'disabled' | 'onClick' |
|
|
|
52
52
|
* The shape of the button.
|
|
53
53
|
*/
|
|
54
54
|
shape?: 'default' | 'square';
|
|
55
|
+
/**
|
|
56
|
+
* Disable ripple effect
|
|
57
|
+
*/
|
|
58
|
+
disableInteractionEffects?: boolean;
|
|
55
59
|
};
|
|
56
60
|
declare const IconButton: React.ForwardRefExoticComponent<Pick<MuiIconButtonProps, "id" | "className" | "sx" | "disabled" | "onClick" | "onMouseDown"> & {
|
|
57
61
|
/**
|
|
@@ -74,5 +78,9 @@ declare const IconButton: React.ForwardRefExoticComponent<Pick<MuiIconButtonProp
|
|
|
74
78
|
* The shape of the button.
|
|
75
79
|
*/
|
|
76
80
|
shape?: "default" | "square";
|
|
81
|
+
/**
|
|
82
|
+
* Disable ripple effect
|
|
83
|
+
*/
|
|
84
|
+
disableInteractionEffects?: boolean;
|
|
77
85
|
} & React.RefAttributes<HTMLButtonElement>>;
|
|
78
86
|
export default IconButton;
|
|
@@ -43,6 +43,7 @@ declare const MenuIconButton: React.ForwardRefExoticComponent<Pick<import("@mui/
|
|
|
43
43
|
'data-test'?: string;
|
|
44
44
|
variant?: "contained" | "default" | "primary" | "outlined";
|
|
45
45
|
shape?: "default" | "square";
|
|
46
|
+
disableInteractionEffects?: boolean;
|
|
46
47
|
} & Pick<PopoverProps, "horizontalAlign" | "anchorHorizontalOrigin"> & {
|
|
47
48
|
/**
|
|
48
49
|
* The list of menu items to display.
|
|
@@ -902,6 +902,10 @@ export type ChipProps = Pick<MuiChipProps, 'id' | 'label' | 'sx' | 'onClick' | '
|
|
|
902
902
|
/**
|
|
903
903
|
* Function called when mouse hovers on/off the chip.
|
|
904
904
|
*/
|
|
905
|
+
/**
|
|
906
|
+
* Disabled ripple in delete button
|
|
907
|
+
*/
|
|
908
|
+
disableDeleteRipple?: boolean;
|
|
905
909
|
onHover?: (isHovered: boolean) => void;
|
|
906
910
|
href?: string;
|
|
907
911
|
tooltip?: string;
|
|
@@ -966,6 +970,10 @@ declare const Chip: React.ForwardRefExoticComponent<Pick<MuiChipProps, "label" |
|
|
|
966
970
|
/**
|
|
967
971
|
* Function called when mouse hovers on/off the chip.
|
|
968
972
|
*/
|
|
973
|
+
/**
|
|
974
|
+
* Disabled ripple in delete button
|
|
975
|
+
*/
|
|
976
|
+
disableDeleteRipple?: boolean;
|
|
969
977
|
onHover?: (isHovered: boolean) => void;
|
|
970
978
|
href?: string;
|
|
971
979
|
tooltip?: string;
|
|
@@ -3,6 +3,7 @@ import { ThemeTypography } from '../../theme';
|
|
|
3
3
|
import { ChipProps } from './Chip';
|
|
4
4
|
import { SxProps } from '@mui/material';
|
|
5
5
|
export declare const CHIP_DATA_TEST_ID = "chip-viewer-chip";
|
|
6
|
+
export declare const CHIP_VIEWER_ROOT_ID = "chip-viewer-root";
|
|
6
7
|
declare const chipViewerStyle: {
|
|
7
8
|
circle: {
|
|
8
9
|
borderRadius: string;
|
|
@@ -26,10 +27,7 @@ export type ChipViewerProps = {
|
|
|
26
27
|
variant?: keyof typeof chipViewerStyle;
|
|
27
28
|
typographyVariant?: ThemeTypography.TypographyVariant;
|
|
28
29
|
preventHiddenChipsTooltip?: true;
|
|
29
|
-
|
|
30
|
-
* Property to adjust maximum width. If property is null, maxWidth will be containerRef.current.offsetWidth
|
|
31
|
-
*/
|
|
32
|
-
maxWidth?: number;
|
|
30
|
+
forceRecalculate?: boolean;
|
|
33
31
|
/**
|
|
34
32
|
* Function to set custom chip name
|
|
35
33
|
* @param id
|
|
@@ -40,5 +38,5 @@ export type ChipViewerProps = {
|
|
|
40
38
|
onRemoveChip?: (event: React.SyntheticEvent, id: string) => void;
|
|
41
39
|
onHasHiddenChipsChange?: (hasHiddenChips: boolean) => void;
|
|
42
40
|
};
|
|
43
|
-
declare const ChipViewer: ({ values, chipSx, chipSize, chipVariant, placeholder, numberLines, reserveHeight, variant, preventHiddenChipsTooltip, typographyVariant,
|
|
41
|
+
declare const ChipViewer: ({ values, chipSx, chipSize, chipVariant, placeholder, numberLines, reserveHeight, variant, preventHiddenChipsTooltip, typographyVariant, forceRecalculate, renderChipLabel, onRemoveChip, onClickChip, onHasHiddenChipsChange }: ChipViewerProps) => import("react/jsx-runtime").JSX.Element;
|
|
44
42
|
export default ChipViewer;
|
|
@@ -36,9 +36,9 @@ export type AutocompleteInputProps<T extends string, Multiple extends boolean |
|
|
|
36
36
|
*/
|
|
37
37
|
maxValueLength?: number;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* If input can add more values.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
canAddValues: boolean;
|
|
42
42
|
/**
|
|
43
43
|
* Custom text to be shown when number of values reaches maxValues.
|
|
44
44
|
*/
|
|
@@ -65,5 +65,5 @@ export type AutocompleteInputProps<T extends string, Multiple extends boolean |
|
|
|
65
65
|
/**
|
|
66
66
|
* Powered TextField Input.
|
|
67
67
|
*/
|
|
68
|
-
declare const AutocompleteInput: <T extends string, Multiple extends boolean | undefined = undefined, Value = AutocompleteValue<T, Multiple>>({ variant, value, multiple, textFieldProps, hasFilteredOptions, disabled, renderLabel, maxValueLength,
|
|
68
|
+
declare const AutocompleteInput: <T extends string, Multiple extends boolean | undefined = undefined, Value = AutocompleteValue<T, Multiple>>({ variant, value, multiple, textFieldProps, hasFilteredOptions, disabled, renderLabel, maxValueLength, canAddValues, maxValuesText, disableClear, containerRef, inputRef, onClosePopover, onOpenPopover, isOpenPopover, inputValue, setInputValue, placeholder, onSearchValueChange, onPressEnter, onRemoveValue }: AutocompleteInputProps<T, Multiple, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
69
69
|
export default AutocompleteInput;
|
|
@@ -6,6 +6,10 @@ export type AutocompleteInputSelectionProps<T extends string, Multiple extends b
|
|
|
6
6
|
* If multiple=false (by default) it should be a string.
|
|
7
7
|
*/
|
|
8
8
|
value: Value;
|
|
9
|
+
/**
|
|
10
|
+
* If input can add more values.
|
|
11
|
+
*/
|
|
12
|
+
canAddValues: boolean;
|
|
9
13
|
/**
|
|
10
14
|
* Whether the autocomplete is disabled or not.
|
|
11
15
|
*/
|
|
@@ -14,15 +18,8 @@ export type AutocompleteInputSelectionProps<T extends string, Multiple extends b
|
|
|
14
18
|
* Use this function to render the desired text for each id. Leave it empty if the id is also the label.
|
|
15
19
|
*/
|
|
16
20
|
renderLabel: (id: T) => string;
|
|
17
|
-
/**
|
|
18
|
-
* Disables clear button at the end of the component when field is dirty.
|
|
19
|
-
*/
|
|
20
|
-
disableClear?: boolean;
|
|
21
|
-
isOpenPopover: boolean;
|
|
22
|
-
inputValue: string;
|
|
23
|
-
isHover: boolean;
|
|
24
21
|
onOpenPopover: () => void;
|
|
25
22
|
onRemoveValue: (event: React.SyntheticEvent, value: Value) => void;
|
|
26
23
|
};
|
|
27
|
-
declare const AutocompleteInputSelection: <T extends string, Multiple extends boolean | undefined = undefined, Value = AutocompleteValue<T, Multiple>>({ value, disabled, renderLabel,
|
|
24
|
+
declare const AutocompleteInputSelection: <T extends string, Multiple extends boolean | undefined = undefined, Value = AutocompleteValue<T, Multiple>>({ value, canAddValues, disabled, renderLabel, onOpenPopover, onRemoveValue }: AutocompleteInputSelectionProps<T, Multiple, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
28
25
|
export default AutocompleteInputSelection;
|