@synerise/ds-collector 1.4.25 → 1.4.27

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +9 -7
  3. package/dist/Collector.d.ts +6 -6
  4. package/dist/Collector.js +185 -261
  5. package/dist/Collector.styles.d.ts +17 -17
  6. package/dist/Collector.styles.js +63 -79
  7. package/dist/Collector.types.d.ts +4 -4
  8. package/dist/Collector.types.js +1 -1
  9. package/dist/Elements/ButtonPanel/ButtonPanel.d.ts +2 -2
  10. package/dist/Elements/ButtonPanel/ButtonPanel.js +21 -33
  11. package/dist/Elements/ButtonPanel/ButtonPanel.styles.d.ts +1 -1
  12. package/dist/Elements/ButtonPanel/ButtonPanel.styles.js +6 -3
  13. package/dist/Elements/ButtonPanel/ButtonPanel.types.d.ts +2 -2
  14. package/dist/Elements/ButtonPanel/ButtonPanel.types.js +1 -1
  15. package/dist/Elements/NavigationHint/NavigationHint.d.ts +2 -2
  16. package/dist/Elements/NavigationHint/NavigationHint.js +15 -11
  17. package/dist/Elements/NavigationHint/NavigationHint.types.d.ts +1 -1
  18. package/dist/Elements/NavigationHint/NavigationHint.types.js +1 -1
  19. package/dist/Elements/OptionsDropdown/OptionsDropdown.d.ts +2 -2
  20. package/dist/Elements/OptionsDropdown/OptionsDropdown.js +59 -73
  21. package/dist/Elements/OptionsDropdown/OptionsDropdown.types.d.ts +3 -3
  22. package/dist/Elements/OptionsDropdown/OptionsDropdown.types.js +1 -1
  23. package/dist/Elements/Values/Values.d.ts +2 -2
  24. package/dist/Elements/Values/Values.js +15 -21
  25. package/dist/Elements/Values/Values.types.d.ts +1 -1
  26. package/dist/Elements/Values/Values.types.js +1 -1
  27. package/dist/hooks/useTranslations.d.ts +1 -1
  28. package/dist/hooks/useTranslations.js +17 -26
  29. package/dist/index.js +4 -1
  30. package/dist/modules.d.js +1 -1
  31. package/dist/modules.d.ts +0 -0
  32. package/dist/utils.d.ts +2 -2
  33. package/dist/utils.js +27 -29
  34. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
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.27](https://github.com/Synerise/synerise-design/compare/@synerise/ds-collector@1.4.26...@synerise/ds-collector@1.4.27) (2026-03-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-collector
9
+
10
+ ## [1.4.26](https://github.com/Synerise/synerise-design/compare/@synerise/ds-collector@1.4.25...@synerise/ds-collector@1.4.26) (2026-03-20)
11
+
12
+ **Note:** Version bump only for package @synerise/ds-collector
13
+
6
14
  ## [1.4.25](https://github.com/Synerise/synerise-design/compare/@synerise/ds-collector@1.4.24...@synerise/ds-collector@1.4.25) (2026-03-09)
7
15
 
8
16
  **Note:** Version bump only for package @synerise/ds-collector
package/README.md CHANGED
@@ -50,7 +50,7 @@ import Collector from '@synerise/ds-collector'
50
50
  | dropdownContent | Custom content of the dropdown displayed when component is focused | React.ReactNode | `false` |
51
51
  | dropdownItemHeight | Enable setting size in dropdown items | 'large' | --- |
52
52
  | enableCustomFilteringSuggestions | Disable filtering suggestions inside component | boolean | false |
53
- | errorText | error message, if provided input will be set in error state | string | --- |
53
+ | errorText | error message, if provided input will be set in error state | ReactNode | --- |
54
54
  | error | If provided an input will be set in error state, without error message | boolean | --- |
55
55
  | fixedHeight | If provided, an input will preserve the constant height value | boolean | `false` |
56
56
  | label | Label rendered above the input | string / React.ReactNode | --- |
@@ -65,15 +65,17 @@ import Collector from '@synerise/ds-collector'
65
65
  | onSearchValueChange | Callback executed when user changes the value of the input | (value: string) => void | --- |
66
66
  | renderItem | Custom function for rendering a custom item inside dropdown | (value: CollectorValue) => JSX.Element | --- |
67
67
  | showNavigationHints | Renders navigation hint panel at the bottom of the dropdown | boolean | `false` |
68
- | searchValue | Value of the input | string | [] |
69
- | selected | Array of items which are already selected | CollectorValue[] | [] |
70
- | suggestions | Array of items which are displayed when showing suggestions dropdown | CollectorValue[] | [] |
71
- | texts | Texts object for the component | CollectorTexts | {} |
68
+ | searchValue | Value of the input | string | - |
69
+ | selected | Array of items which are already selected | CollectorValue[] | - |
70
+ | suggestions | Array of items which are displayed when showing suggestions dropdown | CollectorValue[] | - |
71
+ | texts | Texts object for the component | Partial<CollectorTexts> | - |
72
72
  | scrollbarProps | Object with scrollbar configturaion | ScrollbarAdditionalProps | - |
73
- | allowPaste | Object with scrollbar configturaion | boolean | - |
73
+ | allowPaste | Enables paste-splitting when pasting delimited values | boolean | - |
74
74
  | showCount | Display item counter above collector | boolean | - |
75
- | valuesSeparator | Multi-value paste delimiter (separator) | CollectorValuesSeparator `;`, `/` or `,` | `;` |
75
+ | valuesSeparator | Multi-value paste delimiter (separator) | CollectorValuesSeparator `;`, `|` or `,` | `;` |
76
76
  | listHeader | Custom header displayed at the top of the dropdown list | React.ReactNode | - |
77
+ | valuesEscapeOpenTag | Opening escape tag to prevent separator-splitting in paste/type | string | ` ``` ` |
78
+ | valuesEscapeCloseTag | Closing escape tag | string | ` ``` ` |
77
79
  | hideDropdownOnClickOutside | Specify whether dropdown should be closed on click outside | boolean | `true` |
78
80
 
79
81
  `CollectorValue = {[key:string]: any}`
@@ -1,10 +1,10 @@
1
- import React from 'react';
2
- import { type CollectorProps } from './Collector.types';
1
+ import { default as React } from 'react';
2
+ import { CollectorProps } from './Collector.types';
3
3
  declare const Collector: {
4
4
  ({ allowCustomValue, allowMultipleValues, addButtonProps, buttonPanelPrefix, cancelButtonProps, keepSearchQueryOnSelect, error, className, description, enableCustomFilteringSuggestions, selected, suggestions, showNavigationHints, onConfirm, onCancel, label, errorText, disabled, fixedHeight, texts: defaultTexts, lookupConfig, onItemAdd, onItemDeselect, onItemSelect, onMultipleItemsSelect, dropdownContent, disableButtonPanel, disableSearch, dropdownItemHeight, searchValue, renderItem, onSearchValueChange, allowPaste, showCount, listHeader, hideDropdownOnClickOutside, valuesSeparator, valuesEscapeOpenTag, valuesEscapeCloseTag, }: CollectorProps): React.JSX.Element;
5
- Values: ({ values, onDeselect, disabled, focused, displayLookupKey, }: import("./Elements/Values/Values.types").ValuesProps) => React.JSX.Element;
6
- ButtonPanel: ({ onConfirm, onCancel, disabled, showCancel, texts, addButtonProps, cancelButtonProps, buttonPanelPrefix, }: import("./Elements/ButtonPanel/ButtonPanel.types").ButtonPanelProps) => React.JSX.Element;
7
- OptionsDropdown: ({ showAddButton, options, visible, value, onSelect, onClick, width, onItemAdd, showNavigationHints, lookupKey, texts, customContent, renderItem, dropdownItemHeight, scrollbarProps, listHeader, }: import("./Elements/OptionsDropdown/OptionsDropdown.types").OptionsDropdownProps) => React.JSX.Element;
8
- NavigationHint: React.FC<import("./Elements/NavigationHint/NavigationHint.types").NavigationHintProps>;
5
+ Values: ({ values, onDeselect, disabled, focused, displayLookupKey, }: import('./Elements/Values/Values.types').ValuesProps) => React.JSX.Element;
6
+ ButtonPanel: ({ onConfirm, onCancel, disabled, showCancel, texts, addButtonProps, cancelButtonProps, buttonPanelPrefix, }: import('./Elements/ButtonPanel/ButtonPanel.types').ButtonPanelProps) => React.JSX.Element;
7
+ OptionsDropdown: ({ showAddButton, options, visible, value, onSelect, onClick, width, onItemAdd, showNavigationHints, lookupKey, texts, customContent, renderItem, dropdownItemHeight, scrollbarProps, listHeader, }: import('./Elements/OptionsDropdown/OptionsDropdown.types').OptionsDropdownProps) => React.JSX.Element;
8
+ NavigationHint: React.FC<import('./Elements/NavigationHint/NavigationHint.types').NavigationHintProps>;
9
9
  };
10
10
  export default Collector;