@synerise/ds-select 0.15.45 → 0.15.47
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 +22 -0
- package/dist/Select.js +5 -3
- package/dist/Select.styles.d.ts +1 -1
- package/dist/Select.styles.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,28 @@
|
|
|
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.15.47](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@0.15.46...@synerise/ds-select@0.15.47) (2024-04-29)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **input:** fixes styles for input / select / textarea labels ([51f9d6b](https://github.com/synerise/synerise-design/commit/51f9d6bdf190a82d6e3b5ddb7437bfa81135d048))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.15.46](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@0.15.45...@synerise/ds-select@0.15.46) (2024-04-26)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Bug Fixes
|
|
21
|
+
|
|
22
|
+
* **select:** add className to SelectContainer ([dcf78eb](https://github.com/synerise/synerise-design/commit/dcf78eb6b2d2fe01c91c659ca2447535357c3937))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
6
28
|
## [0.15.45](https://github.com/synerise/synerise-design/compare/@synerise/ds-select@0.15.44...@synerise/ds-select@0.15.45) (2024-04-15)
|
|
7
29
|
|
|
8
30
|
**Note:** Version bump only for package @synerise/ds-select
|
package/dist/Select.js
CHANGED
|
@@ -19,12 +19,12 @@ import classNames from 'classnames';
|
|
|
19
19
|
import * as S from './Select.styles';
|
|
20
20
|
|
|
21
21
|
var Select = /*#__PURE__*/function (_Component) {
|
|
22
|
-
_inheritsLoose(Select, _Component);
|
|
23
|
-
|
|
24
22
|
function Select() {
|
|
25
23
|
return _Component.apply(this, arguments) || this;
|
|
26
24
|
}
|
|
27
25
|
|
|
26
|
+
_inheritsLoose(Select, _Component);
|
|
27
|
+
|
|
28
28
|
var _proto = Select.prototype;
|
|
29
29
|
|
|
30
30
|
_proto.render = function render() {
|
|
@@ -50,7 +50,9 @@ var Select = /*#__PURE__*/function (_Component) {
|
|
|
50
50
|
antdProps = _objectWithoutPropertiesLoose(_this$props, _excluded);
|
|
51
51
|
|
|
52
52
|
var size = antdProps.size;
|
|
53
|
-
return /*#__PURE__*/React.createElement(S.SelectContainer,
|
|
53
|
+
return /*#__PURE__*/React.createElement(S.SelectContainer, {
|
|
54
|
+
className: "ds-select-container"
|
|
55
|
+
}, /*#__PURE__*/React.createElement(S.Label, {
|
|
54
56
|
label: label,
|
|
55
57
|
tooltip: tooltip,
|
|
56
58
|
tooltipConfig: tooltipConfig
|
package/dist/Select.styles.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export declare const AntdSelectOption: import("styled-components").StyledCompone
|
|
|
10
10
|
export declare const AntdSelectOptGroup: import("styled-components").StyledComponent<import("rc-select/lib/OptGroup").OptionGroupFC, any, {}, never>;
|
|
11
11
|
export declare const LabelWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
12
|
export declare const ContentBelow: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const Label: import("styled-components").StyledComponent<
|
|
13
|
+
export declare const Label: import("styled-components").StyledComponent<({ id, className, label, tooltip, tooltipConfig, style }: import("@synerise/ds-input/dist/Label/Label.types").LabelProps) => JSX.Element, any, {}, never>;
|
|
14
14
|
export declare const PrefixWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
15
|
export declare const SuffixWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
16
|
export declare const SelectWrapper: import("styled-components").StyledComponent<"div", any, {
|
package/dist/Select.styles.js
CHANGED
|
@@ -5,7 +5,7 @@ var OptGroup = Select.OptGroup,
|
|
|
5
5
|
Option = Select.Option;
|
|
6
6
|
|
|
7
7
|
var errorStyle = function errorStyle(props) {
|
|
8
|
-
return "\
|
|
8
|
+
return "\n border-color: " + props.theme.palette['red-600'] + ";\n box-shadow: inset 0 0 0 1px " + props.theme.palette['red-600'] + ";\n background: " + props.theme.palette['red-050'] + ";\n";
|
|
9
9
|
};
|
|
10
10
|
|
|
11
11
|
var searchIconWithCustomColor = function searchIconWithCustomColor(color) {
|
|
@@ -33,7 +33,7 @@ export var SelectContainer = styled.div.withConfig({
|
|
|
33
33
|
export var AntdSelect = styled(Select).withConfig({
|
|
34
34
|
displayName: "Selectstyles__AntdSelect",
|
|
35
35
|
componentId: "n9lk0v-1"
|
|
36
|
-
})(["", " &.ant-select-multiple{.ant-select-arrow{top:16px;}}&&{.ant-select-selector{", "}}&&&{width:100%;.ant-select-clear{height:18px;background-position:center;background-repeat:no-repeat;background-size:contain;top:50%;right:8px;transform-origin:50% 25%;display:flex;transform:translateY(-50%);align-items:center;justify-content:center;margin-top:0;}.ant-select-selector{", " ", "}span[aria-label='search']{svg{display:none;}width:24px;height:24px;background-color:rgba(0,0,0,0);background-image:", ";}}&.error{.ant-select-selector{", "}.ant-select-clear{background-color:", ";}}"], function (props) {
|
|
36
|
+
})(["", " &.ant-select-multiple{.ant-select-arrow{top:16px;}}&&{.ant-select-selector{", "}}&&&{width:100%;.ant-select-clear{height:18px;background-position:center;background-repeat:no-repeat;background-size:contain;top:50%;right:8px;transform-origin:50% 25%;display:flex;transform:translateY(-50%);align-items:center;justify-content:center;margin-top:0;}.ant-select-selector{", " ", "}span[aria-label='search']{svg{display:none;}width:24px;height:24px;background-color:rgba(0,0,0,0);background-image:", ";}}&.error{.ant-select-selector.ant-select-selector{", "}.ant-select-clear{background-color:", ";}}"], function (props) {
|
|
37
37
|
return props.size === 'large' && "\n\n &.ant-select-single .ant-select-selector, \n &.ant-select-single .ant-select-selection-search-input {\n height:48px;\n }\n\n &.ant-select-single .ant-select-selection-item, \n &.ant-select-single .ant-select-selection-placeholder {\n line-height:46px;\n }\n \n &.ant-select-multiple.ant-select-lg {\n .ant-select-arrow {\n top: 23px\n }\n .ant-select-selector {\n padding: 8px;\n }\n\n .ant-select-selector::after,\n .ant-select-selection-item,\n .ant-select-selection-search {\n height: 24px; \n line-height: 22px;\n }\n }\n\n ";
|
|
38
38
|
}, function (props) {
|
|
39
39
|
return !!props.selectorStyle && css(props.selectorStyle);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-select",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.47",
|
|
4
4
|
"description": "Select UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"types": "dist/index.d.ts",
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@synerise/ds-icon": "^0.60.7",
|
|
37
|
-
"@synerise/ds-input": "^0.20.
|
|
37
|
+
"@synerise/ds-input": "^0.20.7",
|
|
38
38
|
"@synerise/ds-tooltip": "^0.14.25",
|
|
39
|
-
"@synerise/ds-typography": "^0.
|
|
39
|
+
"@synerise/ds-typography": "^0.15.0",
|
|
40
40
|
"classnames": "2.3.2"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"@synerise/ds-utils": "^0.26.3",
|
|
50
50
|
"@testing-library/react": "10.0.1"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "6f0dc42ae79cea009e60fdb1f91ef72dcc82998e"
|
|
53
53
|
}
|