@connectif/ui-components 7.0.0 → 7.0.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 CHANGED
@@ -1,10 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [7.0.1] - 2026-04-24
4
+
5
+ ### Added
6
+
7
+ - Added picker to select base or custom theme in storybook.
8
+ - Added optional `disableCloseOnClickAway` prop to the `Autocomplete` component.
9
+
3
10
  ## [7.0.0] - 2026-04-10
4
11
 
5
- ### Deprecated
12
+ ### Removed
6
13
 
7
- - Deprecated `minimizeIconId` and `onMinimize` props in the `MinimizableWindow` component.
14
+ - Removed `minimizeIconId` and `onMinimize` props in the `MinimizableWindow` component.
8
15
 
9
16
  ## [6.0.7] - 2026-04-09
10
17
 
@@ -101,6 +101,11 @@ export type AutocompleteProps<T extends string, Multiple extends boolean | undef
101
101
  * Disables clear button at the end of the component when field is dirty.
102
102
  */
103
103
  disableClear?: boolean;
104
+ /**
105
+ * Prevents the popover from closing when clicking outside of the autocomplete.
106
+ * @default false
107
+ */
108
+ disableCloseOnClickAway?: boolean;
104
109
  /**
105
110
  * start icon in autocomplete
106
111
  */
@@ -117,5 +122,5 @@ export type AutocompleteProps<T extends string, Multiple extends boolean | undef
117
122
  /**
118
123
  * Powered TextField with the ability to select from a predefined list of options, allowing to select one or multiple values.
119
124
  */
120
- 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, size }: AutocompleteProps<T, Multiple, Value>) => import("react/jsx-runtime").JSX.Element;
125
+ 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, disableCloseOnClickAway, size }: AutocompleteProps<T, Multiple, Value>) => import("react/jsx-runtime").JSX.Element;
121
126
  export default Autocomplete;
package/dist/index.js CHANGED
@@ -24315,6 +24315,7 @@ var Autocomplete = function Autocomplete2({
24315
24315
  onClose = () => ({}),
24316
24316
  onOpen = () => ({}),
24317
24317
  disableClear,
24318
+ disableCloseOnClickAway = false,
24318
24319
  size = "S"
24319
24320
  }) {
24320
24321
  const anchorRef = React75.useRef(null);
@@ -24589,6 +24590,9 @@ var Autocomplete = function Autocomplete2({
24589
24590
  onSelectValue(option, event);
24590
24591
  };
24591
24592
  const onClickAwayPopover = (event) => {
24593
+ if (disableCloseOnClickAway) {
24594
+ return;
24595
+ }
24592
24596
  if (!elementIsDescendantOrEqual(
24593
24597
  anchorRef.current,
24594
24598
  event.target