@connectif/ui-components 5.7.1 → 6.0.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 CHANGED
@@ -1,5 +1,28 @@
1
1
  # Changelog
2
2
 
3
+ ## [6.0.0] - 2026-03-20
4
+
5
+ ### Added
6
+
7
+ - Added `iconTooltip` prop to the `Chip` component to display a tooltip on the chip icon.
8
+ - Added `getWarningTooltip` prop to the `ChipViewer` component to display a warning on a chip.
9
+
10
+ ### Fixed
11
+
12
+ - Fixed an issue with dates in `input` variant on `DateIntervalPicker` component.
13
+ - Fixed an issue where the select was not disabled when disabling the `PhoneField` component.
14
+ - Updated `ItemSelector` to render chips using the `ChipViewer` component.
15
+
16
+ ### Deprecated
17
+
18
+ - Deprecated `limitItemChips` and `itemChipWidth` props in the `ItemSelector` component.
19
+
20
+ ## [5.7.2] - 2026-03-17
21
+
22
+ ### Added
23
+
24
+ - Added new 'gamepad-circle-outlined' icon to our icon collection.
25
+
3
26
  ## [5.7.1] - 2026-03-13
4
27
 
5
28
  ### Fixed
@@ -897,6 +897,10 @@ export type ChipProps = Pick<MuiChipProps, 'id' | 'label' | 'sx' | 'onClick' | '
897
897
  * The size of the icon
898
898
  */
899
899
  iconSize?: IconProps['size'];
900
+ /**
901
+ * Tooltip for icon
902
+ */
903
+ iconTooltip?: string;
900
904
  /**
901
905
  * Properties for avatar showed within the chip. Avatar will not be displayed if this prop is not defined.
902
906
  */
@@ -965,6 +969,10 @@ declare const Chip: React.ForwardRefExoticComponent<Pick<MuiChipProps, "label" |
965
969
  * The size of the icon
966
970
  */
967
971
  iconSize?: IconProps["size"];
972
+ /**
973
+ * Tooltip for icon
974
+ */
975
+ iconTooltip?: string;
968
976
  /**
969
977
  * Properties for avatar showed within the chip. Avatar will not be displayed if this prop is not defined.
970
978
  */
@@ -23,6 +23,7 @@ type ChipContainerProps = {
23
23
  maxWidth?: string;
24
24
  isCounterLabel?: boolean;
25
25
  }) => React.ReactNode;
26
+ getWarningTooltip?: (chipName: string) => string;
26
27
  };
27
- declare const ChipContainer: ({ containerRef, gap, visibleChips, hiddenChips, placeholder, isDeletable, height, typographyVariant, reserveHeight, clickable, preventHiddenChipsTooltip, dataTestId, renderChip }: ChipContainerProps) => import("react/jsx-runtime").JSX.Element;
28
+ declare const ChipContainer: ({ containerRef, gap, visibleChips, hiddenChips, placeholder, isDeletable, height, typographyVariant, reserveHeight, clickable, preventHiddenChipsTooltip, dataTestId, renderChip, getWarningTooltip }: ChipContainerProps) => import("react/jsx-runtime").JSX.Element;
28
29
  export default ChipContainer;
@@ -13,6 +13,7 @@ type ChipHiddenCounterProps = {
13
13
  maxWidth?: string;
14
14
  isCounterLabel?: boolean;
15
15
  }) => React.ReactNode;
16
+ getWarningTooltip?: (chipName: string) => string;
16
17
  };
17
- declare const ChipHiddenCounter: ({ hiddenChips, isDeletable, preventHiddenChipsTooltip, renderChip }: ChipHiddenCounterProps) => import("react/jsx-runtime").JSX.Element;
18
+ declare const ChipHiddenCounter: ({ hiddenChips, isDeletable, preventHiddenChipsTooltip, renderChip, getWarningTooltip }: ChipHiddenCounterProps) => import("react/jsx-runtime").JSX.Element;
18
19
  export default ChipHiddenCounter;
@@ -34,9 +34,13 @@ export type ChipViewerProps = {
34
34
  * @returns
35
35
  */
36
36
  renderChipLabel?: (chipName: string) => string;
37
+ /**
38
+ * method to get a tooltip to set a warning inside the chip
39
+ */
40
+ getWarningTooltip?: (chipName: string) => string;
37
41
  onClickChip?: (chip: string) => void;
38
42
  onRemoveChip?: (event: React.SyntheticEvent, id: string) => void;
39
43
  onHasHiddenChipsChange?: (hasHiddenChips: boolean) => void;
40
44
  };
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;
45
+ declare const ChipViewer: ({ values, chipSx, chipSize, chipVariant, placeholder, numberLines, reserveHeight, variant, preventHiddenChipsTooltip, typographyVariant, forceRecalculate, renderChipLabel, onRemoveChip, onClickChip, onHasHiddenChipsChange, getWarningTooltip }: ChipViewerProps) => import("react/jsx-runtime").JSX.Element;
42
46
  export default ChipViewer;
@@ -864,6 +864,7 @@ export declare const icons: {
864
864
  'fullscreen-exit': string;
865
865
  function: string;
866
866
  gamepad: string;
867
+ 'gamepad-circle-outline': string;
867
868
  'gamepad-variant': string;
868
869
  garage: string;
869
870
  'garage-open': string;
@@ -11,10 +11,8 @@ export type ItemSelectorProps<T extends ItemSelectorItem> = {
11
11
  disabled?: boolean;
12
12
  helperText?: string;
13
13
  isError?: boolean;
14
- limitItemChips?: number;
15
- itemChipWidth?: number;
16
14
  renderChipLabel?: (item: T) => string;
17
- renderItem?: (item: T) => {
15
+ renderItem?: (item: T) => T & {
18
16
  title: string;
19
17
  subtitle1: string;
20
18
  subtitle2: string;
@@ -22,6 +20,7 @@ export type ItemSelectorProps<T extends ItemSelectorItem> = {
22
20
  onChange: (value: T[]) => void;
23
21
  onClose?: () => void;
24
22
  onLoadMore?: (searchText: string) => void;
23
+ getWarningTooltip?: (chipName: T) => string;
25
24
  } & Pick<SelectPopoverProps<SelectableItem>, 'applyButtonText' | 'emptyListPlaceholder' | 'hasMore' | 'isLoading' | 'isLoadingSubtitle2' | 'maxSelectedItems' | 'onSearch' | 'requiredSelectedItemsToApply' | 'disableApplyWithoutChanges' | 'popoverWidth' | 'itemsPerRow' | 'itemsTitle' | 'paddingContent' | 'selectableItemComponent'>;
26
- declare const ItemSelector: <T extends ItemSelectorItem>({ items, selectedItems, maxSelectedItems, variant, placeholder, disabled, helperText, isError, limitItemChips, itemChipWidth, isLoading, isLoadingSubtitle2, hasMore, applyButtonText, emptyListPlaceholder, requiredSelectedItemsToApply, disableApplyWithoutChanges, popoverWidth, itemsPerRow, itemsTitle, paddingContent, selectableItemComponent, renderChipLabel, renderItem, onChange, onLoadMore, onSearch, onClose }: ItemSelectorProps<T>) => import("react/jsx-runtime").JSX.Element;
25
+ declare const ItemSelector: <T extends ItemSelectorItem>({ items, selectedItems, maxSelectedItems, variant, placeholder, disabled, helperText, isError, isLoading, isLoadingSubtitle2, hasMore, applyButtonText, emptyListPlaceholder, requiredSelectedItemsToApply, disableApplyWithoutChanges, popoverWidth, itemsPerRow, itemsTitle, paddingContent, selectableItemComponent, renderChipLabel, renderItem, onChange, onLoadMore, onSearch, onClose, getWarningTooltip }: ItemSelectorProps<T>) => import("react/jsx-runtime").JSX.Element;
27
26
  export default ItemSelector;