@synerise/ds-select 1.1.8 → 1.1.9
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 +11 -0
- package/README.md +1 -0
- package/dist/Select.js +14 -12
- package/dist/Select.types.d.ts +1 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.1.9](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@1.1.8...@synerise/ds-select@1.1.9) (2025-07-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **select:** new prop raw ([3adc969](https://github.com/synerise/synerise-design/commit/3adc9690534060cde93ccbccd5147748c8ec80e6))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [1.1.8](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@1.1.7...@synerise/ds-select@1.1.8) (2025-07-01)
|
|
7
18
|
|
|
8
19
|
|
package/README.md
CHANGED
|
@@ -105,6 +105,7 @@ const { Option, OptGroup } = Select;
|
|
|
105
105
|
| tooltip | Tooltip content | React.ReactNode | - |
|
|
106
106
|
| tooltipConfig | Config of tooltip | [TooltipProps](https://design.synerise.com/docs/components/tooltip#api) | - |
|
|
107
107
|
| value | Current selected option. | `string` / `string[]` / `number` / `number[]` / `LabeledValue` / `LabeledValue[]` | - |
|
|
108
|
+
| raw | Simple select without label, description and margins | boolean | `false` |
|
|
108
109
|
|
|
109
110
|
### Option props
|
|
110
111
|
|
package/dist/Select.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var _excluded = ["label", "description", "errorText", "error", "tooltip", "tooltipConfig", "clearTooltip", "prefixel", "suffixel", "style", "listHeight", "className", "getPopupContainer", "grey", "dropdownClassName", "asFormElement"];
|
|
1
|
+
var _excluded = ["label", "description", "errorText", "error", "tooltip", "tooltipConfig", "clearTooltip", "prefixel", "suffixel", "style", "listHeight", "className", "getPopupContainer", "grey", "dropdownClassName", "asFormElement", "raw"];
|
|
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
|
function _inheritsLoose(t, o) { t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o); }
|
|
@@ -38,19 +38,11 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
38
38
|
grey = _this$props.grey,
|
|
39
39
|
dropdownClassName = _this$props.dropdownClassName,
|
|
40
40
|
asFormElement = _this$props.asFormElement,
|
|
41
|
+
raw = _this$props.raw,
|
|
41
42
|
antdProps = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
42
43
|
var size = antdProps.size;
|
|
43
44
|
var hasBottomMargin = asFormElement || Boolean(errorText || description);
|
|
44
|
-
|
|
45
|
-
className: "ds-select-container",
|
|
46
|
-
hasBottomMargin: hasBottomMargin
|
|
47
|
-
}, /*#__PURE__*/React.createElement(FormField, {
|
|
48
|
-
errorText: errorText,
|
|
49
|
-
description: description,
|
|
50
|
-
label: label,
|
|
51
|
-
tooltip: tooltip,
|
|
52
|
-
tooltipConfig: tooltipConfig
|
|
53
|
-
}, /*#__PURE__*/React.createElement(S.SelectWrapper, {
|
|
45
|
+
var simpleSelect = /*#__PURE__*/React.createElement(S.SelectWrapper, {
|
|
54
46
|
grey: grey,
|
|
55
47
|
error: Boolean(errorText),
|
|
56
48
|
className: classNames('ds-select-wrapper', {
|
|
@@ -80,7 +72,17 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
80
72
|
error: errorText || error
|
|
81
73
|
}),
|
|
82
74
|
dropdownClassName: classNames('ps__child--consume', dropdownClassName)
|
|
83
|
-
})), !!suffixel && /*#__PURE__*/React.createElement(S.SuffixWrapper, null, suffixel))
|
|
75
|
+
})), !!suffixel && /*#__PURE__*/React.createElement(S.SuffixWrapper, null, suffixel));
|
|
76
|
+
return raw ? simpleSelect : /*#__PURE__*/React.createElement(S.SelectContainer, {
|
|
77
|
+
className: "ds-select-container",
|
|
78
|
+
hasBottomMargin: hasBottomMargin
|
|
79
|
+
}, /*#__PURE__*/React.createElement(FormField, {
|
|
80
|
+
errorText: errorText,
|
|
81
|
+
description: description,
|
|
82
|
+
label: label,
|
|
83
|
+
tooltip: tooltip,
|
|
84
|
+
tooltipConfig: tooltipConfig
|
|
85
|
+
}, simpleSelect));
|
|
84
86
|
};
|
|
85
87
|
return Select;
|
|
86
88
|
}(Component);
|
package/dist/Select.types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-select",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.9",
|
|
4
4
|
"description": "Select UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": ">=16.9.0 <= 18.3.1",
|
|
47
47
|
"styled-components": "^5.3.3"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "2161bdb04f3db0f79b7d0465ce6b41121f1543ef"
|
|
50
50
|
}
|