@synerise/ds-select 1.2.2 → 1.3.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
@@ -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
+ ## [1.3.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@1.3.0...@synerise/ds-select@1.3.1) (2025-11-28)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-select
9
+
10
+
11
+
12
+
13
+
14
+ # [1.3.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@1.2.2...@synerise/ds-select@1.3.0) (2025-11-06)
15
+
16
+
17
+ ### Features
18
+
19
+ * **dropdown:** dropdownMenu component ([f0ec827](https://github.com/synerise/synerise-design/commit/f0ec82792cdcb021fa9a454912f6e7a892e53895))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [1.2.2](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@1.2.1...@synerise/ds-select@1.2.2) (2025-10-22)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-select
package/dist/Select.d.ts CHANGED
@@ -1,10 +1,33 @@
1
1
  import React from 'react';
2
2
  import '@synerise/ds-core/dist/js/style';
3
- import { type Props } from './Select.types';
4
3
  import './style/index.less';
5
- export declare const Select: {
6
- ({ label, description, errorText, error, tooltip, tooltipConfig, clearTooltip, prefixel, suffixel, style, size, listHeight, className, getPopupContainer, grey, dropdownClassName, asFormElement, raw, readOnly, disabled, ...antdProps }: Props): React.JSX.Element;
4
+ export declare const Select: React.ForwardRefExoticComponent<Omit<import("antd/lib/select").SelectProps<import("antd/lib/select").SelectValue, import("rc-select/lib/Select").DefaultOptionType>, "listHeight"> & {
5
+ error?: boolean;
6
+ clearTooltip?: string;
7
+ prefixel?: React.ReactNode;
8
+ suffixel?: React.ReactNode;
9
+ listHeight?: React.ReactText;
10
+ grey?: boolean;
11
+ asFormElement?: boolean;
12
+ selectorStyle?: import("styled-components").CSSObject;
13
+ raw?: boolean;
14
+ readOnly?: boolean;
15
+ disabled?: boolean;
16
+ } & Omit<import("@synerise/ds-form-field").ContentAboveProps, "id" | "rightSide"> & import("@synerise/ds-form-field").ContentBelowProps & React.RefAttributes<HTMLDivElement>>;
17
+ declare const SelectWithComponents: React.ForwardRefExoticComponent<Omit<import("antd/lib/select").SelectProps<import("antd/lib/select").SelectValue, import("rc-select/lib/Select").DefaultOptionType>, "listHeight"> & {
18
+ error?: boolean;
19
+ clearTooltip?: string;
20
+ prefixel?: React.ReactNode;
21
+ suffixel?: React.ReactNode;
22
+ listHeight?: React.ReactText;
23
+ grey?: boolean;
24
+ asFormElement?: boolean;
25
+ selectorStyle?: import("styled-components").CSSObject;
26
+ raw?: boolean;
27
+ readOnly?: boolean;
28
+ disabled?: boolean;
29
+ } & Omit<import("@synerise/ds-form-field").ContentAboveProps, "id" | "rightSide"> & import("@synerise/ds-form-field").ContentBelowProps & React.RefAttributes<HTMLDivElement>> & {
7
30
  Option: import("styled-components").StyledComponent<import("rc-select/lib/Option").OptionFC, any, {}, never>;
8
31
  OptGroup: import("styled-components").StyledComponent<import("rc-select/lib/OptGroup").OptionGroupFC, any, {}, never>;
9
32
  };
10
- export default Select;
33
+ export default SelectWithComponents;
package/dist/Select.js CHANGED
@@ -2,7 +2,7 @@ var _excluded = ["label", "description", "errorText", "error", "tooltip", "toolt
2
2
  function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
3
3
  function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
4
4
  import classNames from 'classnames';
5
- import React from 'react';
5
+ import React, { forwardRef } from 'react';
6
6
  import '@synerise/ds-core/dist/js/style';
7
7
  import FormField from '@synerise/ds-form-field';
8
8
  import Icon, { Close3M, CloseS } from '@synerise/ds-icon';
@@ -10,7 +10,7 @@ import Tooltip from '@synerise/ds-tooltip';
10
10
  import { getPopupContainer as defaultGetPopupContainer } from '@synerise/ds-utils';
11
11
  import * as S from './Select.styles';
12
12
  import "./style/index.css";
13
- export var Select = function Select(_ref) {
13
+ export var Select = /*#__PURE__*/forwardRef(function (_ref, forwardedRef) {
14
14
  var _classNames;
15
15
  var label = _ref.label,
16
16
  description = _ref.description,
@@ -41,7 +41,8 @@ export var Select = function Select(_ref) {
41
41
  className: classNames('ds-select-wrapper', {
42
42
  error: errorText || error
43
43
  }, (_classNames = {}, _classNames[className] = !!className, _classNames)),
44
- style: style
44
+ style: style,
45
+ ref: raw ? forwardedRef : undefined
45
46
  }, !!prefixel && /*#__PURE__*/React.createElement(S.PrefixWrapper, null, prefixel), /*#__PURE__*/React.createElement(S.AntdSelect, _extends({
46
47
  dropdownAlign: {
47
48
  offset: [0, 8]
@@ -70,7 +71,8 @@ export var Select = function Select(_ref) {
70
71
  })), !!suffixel && /*#__PURE__*/React.createElement(S.SuffixWrapper, null, suffixel));
71
72
  return raw ? simpleSelect : /*#__PURE__*/React.createElement(S.SelectContainer, {
72
73
  className: "ds-select-container",
73
- hasBottomMargin: hasBottomMargin
74
+ hasBottomMargin: hasBottomMargin,
75
+ ref: forwardedRef
74
76
  }, /*#__PURE__*/React.createElement(FormField, {
75
77
  errorText: errorText,
76
78
  description: description,
@@ -78,7 +80,9 @@ export var Select = function Select(_ref) {
78
80
  tooltip: tooltip,
79
81
  tooltipConfig: tooltipConfig
80
82
  }, simpleSelect));
81
- };
82
- Select.Option = S.AntdSelectOption;
83
- Select.OptGroup = S.AntdSelectOptGroup;
84
- export default Select;
83
+ });
84
+ var SelectWithComponents = Object.assign(Select, {
85
+ Option: S.AntdSelectOption,
86
+ OptGroup: S.AntdSelectOptGroup
87
+ });
88
+ export default SelectWithComponents;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-select",
3
- "version": "1.2.2",
3
+ "version": "1.3.1",
4
4
  "description": "Select UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -35,9 +35,9 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-form-field": "^1.1.18",
39
- "@synerise/ds-icon": "^1.7.3",
40
- "@synerise/ds-tooltip": "^1.2.1",
38
+ "@synerise/ds-form-field": "^1.1.20",
39
+ "@synerise/ds-icon": "^1.9.0",
40
+ "@synerise/ds-tooltip": "^1.3.1",
41
41
  "@synerise/ds-utils": "^1.5.0",
42
42
  "classnames": "^2.5.1"
43
43
  },
@@ -47,5 +47,5 @@
47
47
  "react": ">=16.9.0 <= 18.3.1",
48
48
  "styled-components": "^5.3.3"
49
49
  },
50
- "gitHead": "a40fca2cc78eda64afa96d18dc4d177538a22404"
50
+ "gitHead": "d5bd7fbc9d840ac30e2b79b36c451b486e178445"
51
51
  }