@connectif/ui-components 5.1.1 → 5.2.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 +21 -0
- package/dist/components/chip/ChipContainer.d.ts +2 -2
- package/dist/components/chip/ChipHiddenCounter.d.ts +18 -0
- package/dist/components/input/autocomplete/Autocomplete.d.ts +6 -1
- package/dist/components/input/autocomplete/AutocompleteInput.d.ts +8 -3
- package/dist/components/input/autocomplete/AutocompleteInputSelection.d.ts +6 -1
- package/dist/index.js +1219 -1129
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [5.2.1] - 2026-02-02
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Fixed a bug in the `ColorPicker` component when setting values.
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- Replaced tooltip with popper in `ChipViewer` component.
|
|
12
|
+
- Changed `Autocomplete` simple mode selection to display the selected value as text instead of a chip.
|
|
13
|
+
|
|
14
|
+
## 5.2.0
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Fixed `Autocomplete` component error when `allowFreeText` option was enabled and clicking outside the dropdown after typing.
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- New `startIconId` prop in `Autocomplete` component
|
|
23
|
+
|
|
3
24
|
## [5.1.1] - 2026-01-26
|
|
4
25
|
|
|
5
26
|
### Fixed
|
|
@@ -11,10 +11,10 @@ type ChipContainerProps = {
|
|
|
11
11
|
gap: string;
|
|
12
12
|
height: string;
|
|
13
13
|
typographyVariant?: ThemeTypography.TypographyVariant;
|
|
14
|
-
reserveHeight?:
|
|
14
|
+
reserveHeight?: boolean;
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
clickable?: boolean;
|
|
17
|
-
preventHiddenChipsTooltip?:
|
|
17
|
+
preventHiddenChipsTooltip?: boolean;
|
|
18
18
|
isDeletable?: boolean;
|
|
19
19
|
dataTestId?: string;
|
|
20
20
|
renderChip: (data: {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
export declare const DEFAULT_DATA_TEST_ID = "chip-container";
|
|
3
|
+
export declare const TOOLTIP_DATA_TEST_ID = "chip-container-tooltip";
|
|
4
|
+
export declare const COUNTER_LABEL_DATA_TEST_ID = "chip-counter-label";
|
|
5
|
+
export declare const PLACEHOLDER_DATA_TEST_ID = "chip-container-placeholder";
|
|
6
|
+
type ChipHiddenCounterProps = {
|
|
7
|
+
hiddenChips: string[];
|
|
8
|
+
preventHiddenChipsTooltip: boolean;
|
|
9
|
+
isDeletable: boolean;
|
|
10
|
+
renderChip: (data: {
|
|
11
|
+
chipName: string;
|
|
12
|
+
index?: number;
|
|
13
|
+
maxWidth?: string;
|
|
14
|
+
isCounterLabel?: boolean;
|
|
15
|
+
}) => React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
declare const ChipHiddenCounter: ({ hiddenChips, isDeletable, preventHiddenChipsTooltip, renderChip }: ChipHiddenCounterProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default ChipHiddenCounter;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AutocompleteOption, AutocompleteValue, TextFieldFilteredProps } from '../../../models/Autocomplete';
|
|
3
|
+
import { IconId } from '../../icon';
|
|
3
4
|
export type AutocompleteProps<T extends string, Multiple extends boolean | undefined, Value = AutocompleteValue<T, Multiple>, Option = AutocompleteOption<T>> = {
|
|
4
5
|
/**
|
|
5
6
|
* The variant of the Autocomplete
|
|
@@ -100,6 +101,10 @@ export type AutocompleteProps<T extends string, Multiple extends boolean | undef
|
|
|
100
101
|
* Disables clear button at the end of the component when field is dirty.
|
|
101
102
|
*/
|
|
102
103
|
disableClear?: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* start icon in autocomplete
|
|
106
|
+
*/
|
|
107
|
+
startIconId?: IconId;
|
|
103
108
|
/**
|
|
104
109
|
* Ref to the inner HTMLInputElement
|
|
105
110
|
*/
|
|
@@ -108,5 +113,5 @@ export type AutocompleteProps<T extends string, Multiple extends boolean | undef
|
|
|
108
113
|
/**
|
|
109
114
|
* Powered TextField with the ability to select from a predefined list of options, allowing to select one or multiple values.
|
|
110
115
|
*/
|
|
111
|
-
declare const Autocomplete: <T extends string, Multiple extends boolean | undefined = undefined, Value = AutocompleteValue<T, Multiple>>({ variant, value, multiple, textFieldProps, options, disabled, mode, isCaseSensitive, isDiacriticSensitive, onChange, renderLabel, isLoading, onSearch, loadingText, noOptionsText, allowFreeText, addNewValueText, closeOnSelect, maxValueLength, maxValues, maxValuesText, onClose, onOpen, disableClear }: AutocompleteProps<T, Multiple, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
116
|
+
declare const Autocomplete: <T extends string, Multiple extends boolean | undefined = undefined, Value = AutocompleteValue<T, Multiple>>({ variant, value, multiple, textFieldProps, options, disabled, mode, isCaseSensitive, isDiacriticSensitive, onChange, renderLabel, isLoading, onSearch, loadingText, noOptionsText, allowFreeText, addNewValueText, closeOnSelect, maxValueLength, maxValues, maxValuesText, startIconId, onClose, onOpen, disableClear }: AutocompleteProps<T, Multiple, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
112
117
|
export default Autocomplete;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AutocompleteValue, TextFieldFilteredProps } from '../../../models/Autocomplete';
|
|
3
|
+
import { IconId } from '../../icon';
|
|
3
4
|
export type AutocompleteInputProps<T extends string, Multiple extends boolean | undefined, Value = AutocompleteValue<T, Multiple>> = {
|
|
4
5
|
/**
|
|
5
6
|
* The variant of the Autocomplete
|
|
@@ -48,11 +49,15 @@ export type AutocompleteInputProps<T extends string, Multiple extends boolean |
|
|
|
48
49
|
*/
|
|
49
50
|
disableClear?: boolean;
|
|
50
51
|
isOpenPopover: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* start icon in input
|
|
54
|
+
*/
|
|
55
|
+
startIconId?: IconId;
|
|
51
56
|
/**
|
|
52
57
|
* Ref to the outer HTMLDivElement
|
|
53
58
|
*/
|
|
54
|
-
containerRef
|
|
55
|
-
inputRef
|
|
59
|
+
containerRef?: React.RefObject<HTMLDivElement | null>;
|
|
60
|
+
inputRef?: React.RefObject<HTMLInputElement | null>;
|
|
56
61
|
inputValue: string;
|
|
57
62
|
setInputValue: (value: string) => void;
|
|
58
63
|
placeholder: string;
|
|
@@ -65,5 +70,5 @@ export type AutocompleteInputProps<T extends string, Multiple extends boolean |
|
|
|
65
70
|
/**
|
|
66
71
|
* Powered TextField Input.
|
|
67
72
|
*/
|
|
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;
|
|
73
|
+
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, startIconId, onSearchValueChange, onPressEnter, onRemoveValue }: AutocompleteInputProps<T, Multiple, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
69
74
|
export default AutocompleteInput;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AutocompleteValue } from '../../../models/Autocomplete';
|
|
3
|
+
import { IconId } from '../../icon';
|
|
3
4
|
export type AutocompleteInputSelectionProps<T extends string, Multiple extends boolean | undefined, Value = AutocompleteValue<T, Multiple>> = {
|
|
4
5
|
/**
|
|
5
6
|
* The value handled by this Autocomplete component. If multiple=true, it should be an array of ids.
|
|
@@ -14,6 +15,10 @@ export type AutocompleteInputSelectionProps<T extends string, Multiple extends b
|
|
|
14
15
|
* Whether the autocomplete is disabled or not.
|
|
15
16
|
*/
|
|
16
17
|
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* start icon in input
|
|
20
|
+
*/
|
|
21
|
+
startIconId?: IconId;
|
|
17
22
|
/**
|
|
18
23
|
* Use this function to render the desired text for each id. Leave it empty if the id is also the label.
|
|
19
24
|
*/
|
|
@@ -21,5 +26,5 @@ export type AutocompleteInputSelectionProps<T extends string, Multiple extends b
|
|
|
21
26
|
onOpenPopover: () => void;
|
|
22
27
|
onRemoveValue: (event: React.SyntheticEvent, value: Value) => void;
|
|
23
28
|
};
|
|
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;
|
|
29
|
+
declare const AutocompleteInputSelection: <T extends string, Multiple extends boolean | undefined = undefined, Value = AutocompleteValue<T, Multiple>>({ value, canAddValues, disabled, startIconId, renderLabel, onOpenPopover, onRemoveValue }: AutocompleteInputSelectionProps<T, Multiple, Value>) => import("react/jsx-runtime").JSX.Element;
|
|
25
30
|
export default AutocompleteInputSelection;
|