@synerise/ds-select 2.1.0 → 2.1.2
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 +19 -0
- package/dist/Select.js +2 -2
- package/dist/components/SelectorContent.js +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/utils/areOptionChildrenEqual.js +4 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
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
|
+
## [2.1.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@2.1.1...@synerise/ds-select@2.1.2) (2026-09-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **core:** move test helpers to a ./testing subpath export ([b38cd82](https://github.com/synerise/synerise-design/commit/b38cd82c956111d2331d5c1e0efd1935366f1139))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [2.1.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@2.1.0...@synerise/ds-select@2.1.1) (2026-09-18)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-select
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
# [2.1.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@2.0.4...@synerise/ds-select@2.1.0) (2026-09-16)
|
|
7
26
|
|
|
8
27
|
### Features
|
package/dist/Select.js
CHANGED
|
@@ -5,11 +5,11 @@ import FormField from "@synerise/ds-form-field";
|
|
|
5
5
|
import Icon, { AngleDownS, Close3M } from "@synerise/ds-icon";
|
|
6
6
|
import Tooltip from "@synerise/ds-tooltip";
|
|
7
7
|
import { getPopupContainer } from "@synerise/ds-utils";
|
|
8
|
-
import { Option } from "./Option.js";
|
|
9
|
-
import { SelectWrapper, PrefixWrapper, Selector, Arrow, ClearWrapper, SuffixWrapper, SelectContainer } from "./Select.styles.js";
|
|
10
8
|
import { OptionList } from "./components/OptionList.js";
|
|
11
9
|
import { SelectorContent } from "./components/SelectorContent.js";
|
|
12
10
|
import { useSelectOptions } from "./hooks/useSelectOptions.js";
|
|
11
|
+
import { Option } from "./Option.js";
|
|
12
|
+
import { SelectWrapper, PrefixWrapper, Selector, Arrow, ClearWrapper, SuffixWrapper, SelectContainer } from "./Select.styles.js";
|
|
13
13
|
import { findOption } from "./utils/getOptionsFromChildren.js";
|
|
14
14
|
import { DEFAULT_LIST_HEIGHT, toArray, cx } from "./utils/helpers.js";
|
|
15
15
|
const SelectInner = forwardRef((props, ref) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import Icon, { CloseS } from "@synerise/ds-icon";
|
|
3
|
-
import { SearchInputEl, MultiValueArea, TagMeasureRow, Chip, ChipLabel, ChipRemove, SelectionItem, Placeholder } from "../Select.styles.js";
|
|
4
3
|
import { useResponsiveTagCount } from "../hooks/useResponsiveTagCount.js";
|
|
4
|
+
import { SearchInputEl, MultiValueArea, TagMeasureRow, Chip, ChipLabel, ChipRemove, SelectionItem, Placeholder } from "../Select.styles.js";
|
|
5
5
|
const SelectorContent = ({
|
|
6
6
|
isMultiple,
|
|
7
7
|
showSearch,
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default } from './Select';
|
|
2
1
|
export { Option, type OptionProps } from './Option';
|
|
3
|
-
export
|
|
2
|
+
export { default } from './Select';
|
|
4
3
|
export * as SelectStyles from './Select.styles';
|
|
5
|
-
export {
|
|
4
|
+
export type { FilterOptionFn, Props, RawValueType, SelectHandler, SelectMode, SelectOption, SelectProps, SelectValue, } from './Select.types';
|
|
5
|
+
export { findOption, getOptionsFromChildren, } from './utils/getOptionsFromChildren';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { default as default2 } from "./Select.js";
|
|
2
1
|
import { Option } from "./Option.js";
|
|
2
|
+
import { default as default2 } from "./Select.js";
|
|
3
3
|
import * as Select_styles from "./Select.styles.js";
|
|
4
4
|
import { findOption, getOptionsFromChildren } from "./utils/getOptionsFromChildren.js";
|
|
5
5
|
export {
|
|
@@ -17,7 +17,10 @@ const isEqualValue = (a, b, depth) => {
|
|
|
17
17
|
if (isPlainObject(a) && isPlainObject(b)) {
|
|
18
18
|
const keysA = Object.keys(a);
|
|
19
19
|
const keysB = Object.keys(b);
|
|
20
|
-
return keysA.length === keysB.length && keysA.every((key) =>
|
|
20
|
+
return keysA.length === keysB.length && keysA.every((key) => (
|
|
21
|
+
// biome-ignore lint/suspicious/noPrototypeBuiltins: Object.hasOwn is ES2022 (Safari 15.4+); the DS uses no other ES2022 runtime API, so keep the ES2021 floor
|
|
22
|
+
Object.prototype.hasOwnProperty.call(b, key) && isEqualValue(a[key], b[key], depth + 1)
|
|
23
|
+
));
|
|
21
24
|
}
|
|
22
25
|
return false;
|
|
23
26
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-select",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"description": "Select UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
],
|
|
43
43
|
"types": "dist/index.d.ts",
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@synerise/ds-dropdown": "^2.1.
|
|
46
|
-
"@synerise/ds-form-field": "^2.0.
|
|
47
|
-
"@synerise/ds-icon": "^2.1.
|
|
48
|
-
"@synerise/ds-list-item": "^2.1.
|
|
49
|
-
"@synerise/ds-loader": "^2.0.
|
|
50
|
-
"@synerise/ds-scrollbar": "^2.0.
|
|
51
|
-
"@synerise/ds-tooltip": "^2.0.
|
|
52
|
-
"@synerise/ds-utils": "^2.
|
|
45
|
+
"@synerise/ds-dropdown": "^2.1.2",
|
|
46
|
+
"@synerise/ds-form-field": "^2.0.5",
|
|
47
|
+
"@synerise/ds-icon": "^2.1.3",
|
|
48
|
+
"@synerise/ds-list-item": "^2.1.2",
|
|
49
|
+
"@synerise/ds-loader": "^2.0.2",
|
|
50
|
+
"@synerise/ds-scrollbar": "^2.0.4",
|
|
51
|
+
"@synerise/ds-tooltip": "^2.0.5",
|
|
52
|
+
"@synerise/ds-utils": "^2.2.0",
|
|
53
53
|
"classnames": "^2.5.1",
|
|
54
54
|
"react-window": "^1.8.11"
|
|
55
55
|
},
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"styled-components": "^5.3.3",
|
|
60
60
|
"vitest": "4"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "5e795fa4fd23f6b07277edb517a84bb9b5b6d256"
|
|
63
63
|
}
|