@synerise/ds-select 0.15.49 → 0.16.0
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 +5 -2
- package/dist/Select.styles.d.ts +3 -1
- package/dist/Select.styles.js +3 -1
- package/dist/Select.types.d.ts +1 -0
- package/package.json +6 -6
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
|
+
# [0.16.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@0.15.50...@synerise/ds-select@0.16.0) (2024-05-16)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **select:** fixed layout regression ([f75ac75](https://github.com/synerise/synerise-design/commit/f75ac75d35905259acd30b2e9f626ec5e3c7b4e3))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.15.50](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@0.15.49...@synerise/ds-select@0.15.50) (2024-05-10)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-select
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.15.49](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@0.15.48...@synerise/ds-select@0.15.49) (2024-05-08)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-select
|
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"];
|
|
1
|
+
var _excluded = ["label", "description", "errorText", "error", "tooltip", "tooltipConfig", "clearTooltip", "prefixel", "suffixel", "style", "listHeight", "className", "getPopupContainer", "grey", "dropdownClassName", "asFormElement"];
|
|
2
2
|
|
|
3
3
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
4
4
|
|
|
@@ -47,11 +47,14 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
47
47
|
getPopupContainer = _this$props$getPopupC === void 0 ? defaultGetPopupContainer : _this$props$getPopupC,
|
|
48
48
|
grey = _this$props.grey,
|
|
49
49
|
dropdownClassName = _this$props.dropdownClassName,
|
|
50
|
+
asFormElement = _this$props.asFormElement,
|
|
50
51
|
antdProps = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
51
52
|
|
|
52
53
|
var size = antdProps.size;
|
|
54
|
+
var hasBottomMargin = asFormElement || Boolean(errorText || description);
|
|
53
55
|
return /*#__PURE__*/React.createElement(S.SelectContainer, {
|
|
54
|
-
className: "ds-select-container"
|
|
56
|
+
className: "ds-select-container",
|
|
57
|
+
hasBottomMargin: hasBottomMargin
|
|
55
58
|
}, /*#__PURE__*/React.createElement(S.Label, {
|
|
56
59
|
label: label,
|
|
57
60
|
tooltip: tooltip,
|
package/dist/Select.styles.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Props } from './Select.types';
|
|
3
|
-
export declare const SelectContainer: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
export declare const SelectContainer: import("styled-components").StyledComponent<"div", any, {
|
|
4
|
+
hasBottomMargin?: boolean | undefined;
|
|
5
|
+
}, never>;
|
|
4
6
|
export declare const AntdSelect: import("styled-components").StyledComponent<React.ComponentType<Props<import("antd/lib/select").SelectValue>>, any, {
|
|
5
7
|
size?: string | undefined;
|
|
6
8
|
prefixel?: boolean | undefined;
|
package/dist/Select.styles.js
CHANGED
|
@@ -29,7 +29,9 @@ var addonStyles = function addonStyles(props) {
|
|
|
29
29
|
export var SelectContainer = styled.div.withConfig({
|
|
30
30
|
displayName: "Selectstyles__SelectContainer",
|
|
31
31
|
componentId: "n9lk0v-0"
|
|
32
|
-
})(["display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;margin:0 0
|
|
32
|
+
})(["display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;margin:0 0 ", "px;"], function (props) {
|
|
33
|
+
return props.hasBottomMargin ? 16 : 0;
|
|
34
|
+
});
|
|
33
35
|
export var AntdSelect = styled(Select).withConfig({
|
|
34
36
|
displayName: "Selectstyles__AntdSelect",
|
|
35
37
|
componentId: "n9lk0v-1"
|
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": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Select UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
],
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@synerise/ds-icon": "^0.
|
|
37
|
-
"@synerise/ds-input": "^0.21.
|
|
38
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
36
|
+
"@synerise/ds-icon": "^0.61.0",
|
|
37
|
+
"@synerise/ds-input": "^0.21.3",
|
|
38
|
+
"@synerise/ds-tooltip": "^0.14.28",
|
|
39
39
|
"@synerise/ds-typography": "^0.15.0",
|
|
40
40
|
"classnames": "2.3.2"
|
|
41
41
|
},
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"styled-components": "5.0.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@synerise/ds-utils": "^0.26.
|
|
49
|
+
"@synerise/ds-utils": "^0.26.6",
|
|
50
50
|
"@testing-library/react": "10.0.1"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "fc089bbf34c691a313b3fa648851d7831a23e3d0"
|
|
53
53
|
}
|