@synerise/ds-collector 1.4.45 → 1.4.47

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
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.4.47](https://github.com/Synerise/synerise-design/compare/@synerise/ds-collector@1.4.46...@synerise/ds-collector@1.4.47) (2026-07-08)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-collector
9
+
10
+ ## [1.4.46](https://github.com/Synerise/synerise-design/compare/@synerise/ds-collector@1.4.45...@synerise/ds-collector@1.4.46) (2026-06-17)
11
+
12
+ ### Bug Fixes
13
+
14
+ - **collector:** fix listHeader visibility on no data ([6a9ad87](https://github.com/Synerise/synerise-design/commit/6a9ad87ee3802b91ce12d80592ca40bcae42f70c))
15
+
6
16
  ## [1.4.45](https://github.com/Synerise/synerise-design/compare/@synerise/ds-collector@1.4.44...@synerise/ds-collector@1.4.45) (2026-06-11)
7
17
 
8
18
  **Note:** Version bump only for package @synerise/ds-collector
package/dist/Collector.js CHANGED
@@ -270,6 +270,7 @@ const Collector = ({
270
270
  hideDropdownOnClickOutside && setFocused(false);
271
271
  });
272
272
  const showError = error || !!errorText;
273
+ const isDropdownVisible = isFocused && !disabled && (filteredSuggestions.length > 0 || !!listHeader || !!value && allowMultipleValues && allowCustomValue);
273
274
  const renderCountLabel = () => {
274
275
  const total = selectedValues.length;
275
276
  const counterLabel = total === 1 ? /* @__PURE__ */ jsx(FormattedMessage, { id: "DS.COLLECTOR.ITEM", defaultMessage: "Item" }) : /* @__PURE__ */ jsx(FormattedMessage, { id: "DS.COLLECTOR.ITEMS", defaultMessage: "Items" });
@@ -310,7 +311,7 @@ const Collector = ({
310
311
  ...addButtonProps
311
312
  }, cancelButtonProps, buttonPanelPrefix }) })
312
313
  ] }),
313
- /* @__PURE__ */ jsx(OptionsDropdown, { options: filteredSuggestions, onItemAdd: addItem, lookupKey: displayLookupKey, dropdownItemHeight, value, visible: isFocused && !disabled && (filteredSuggestions.length > 0 || !!value && allowMultipleValues && allowCustomValue), onSelect: handleDropdownSelect, onClick: handleDropdownClick, renderItem, showAddButton: allowCustomValue && allowMultipleValues, showNavigationHints, width: getContainerWidth(), customContent: dropdownContent, texts, listHeader }),
314
+ /* @__PURE__ */ jsx(OptionsDropdown, { options: filteredSuggestions, onItemAdd: addItem, lookupKey: displayLookupKey, dropdownItemHeight, value, visible: isDropdownVisible, onSelect: handleDropdownSelect, onClick: handleDropdownClick, renderItem, showAddButton: allowCustomValue && allowMultipleValues, showNavigationHints, width: getContainerWidth(), customContent: dropdownContent, texts, listHeader }),
314
315
  (showError || description) && /* @__PURE__ */ jsxs(ContentBelow, { children: [
315
316
  showError && /* @__PURE__ */ jsx(ErrorText, { children: errorText }),
316
317
  description && /* @__PURE__ */ jsx(Description, { children: description })
@@ -39,7 +39,7 @@ const OptionsDropdown = ({
39
39
  return renderItem ? renderItem(itemValue) : /* @__PURE__ */ jsx(ListItem, { tabIndex: -1, size: dropdownItemHeight, children: itemValue[lookupKey] }, `${itemValue}`);
40
40
  }, [lookupKey, renderItem, dropdownItemHeight]);
41
41
  const shouldRenderList = !!options?.length;
42
- return /* @__PURE__ */ jsx(DropdownWrapper, { onClick, "data-testid": "ds-collector-dropdown", children: visible && (customContent ? /* @__PURE__ */ jsx(CustomContentWrapper, { children: customContent }) : /* @__PURE__ */ jsxs(DropdownContent, { children: [
42
+ return /* @__PURE__ */ jsx(DropdownWrapper, { onClick, "data-testid": "ds-collector-dropdown", children: visible && (customContent ? /* @__PURE__ */ jsx(CustomContentWrapper, { children: customContent }) : /* @__PURE__ */ jsxs(DropdownContent, { "data-testid": "ds-collector-dropdown-content", children: [
43
43
  listHeader,
44
44
  /* @__PURE__ */ jsxs(DSScrollbar, { absolute: true, onScroll: ({
45
45
  currentTarget
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-collector",
3
- "version": "1.4.45",
3
+ "version": "1.4.47",
4
4
  "description": "Collector UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -41,14 +41,14 @@
41
41
  ],
42
42
  "types": "dist/index.d.ts",
43
43
  "dependencies": {
44
- "@synerise/ds-button": "^1.5.32",
45
- "@synerise/ds-divider": "^1.3.14",
46
- "@synerise/ds-icon": "^1.18.3",
47
- "@synerise/ds-input": "^1.7.10",
48
- "@synerise/ds-list-item": "^1.5.0",
49
- "@synerise/ds-scrollbar": "^1.5.0",
50
- "@synerise/ds-search": "^1.5.28",
51
- "@synerise/ds-utils": "^1.10.0",
44
+ "@synerise/ds-button": "^1.5.33",
45
+ "@synerise/ds-divider": "^1.3.15",
46
+ "@synerise/ds-icon": "^1.18.4",
47
+ "@synerise/ds-input": "^1.7.11",
48
+ "@synerise/ds-list-item": "^1.5.1",
49
+ "@synerise/ds-scrollbar": "^1.5.1",
50
+ "@synerise/ds-search": "^1.5.30",
51
+ "@synerise/ds-utils": "^1.10.1",
52
52
  "classnames": "^2.5.1",
53
53
  "lodash.isequal": "^4.5.0"
54
54
  },
@@ -63,5 +63,5 @@
63
63
  "@types/lodash.isequal": "^4.5.8",
64
64
  "vitest": "4"
65
65
  },
66
- "gitHead": "fe3379f50afdce6d8c61a2222ebbf03324107c95"
66
+ "gitHead": "5452c886c6a70cc2847fdb50ccf376dfb93916e5"
67
67
  }