oa-componentbook 0.17.78 → 0.17.80
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.
|
@@ -130,13 +130,14 @@ function CustomAutoComplete(_ref) {
|
|
|
130
130
|
}
|
|
131
131
|
}, /*#__PURE__*/_react.default.createElement(_antd.AutoComplete, _extends({
|
|
132
132
|
"data-test": dataTest,
|
|
133
|
-
options: actualOptions,
|
|
133
|
+
options: (actualOptions === null || actualOptions === void 0 ? void 0 : actualOptions.length) > 0 ? actualOptions : undefined,
|
|
134
134
|
dropdownStyle: {
|
|
135
135
|
padding: '0px'
|
|
136
136
|
},
|
|
137
137
|
filterOption: true
|
|
138
138
|
}, props)));
|
|
139
139
|
}
|
|
140
|
+
CustomAutoComplete.Option = _antd.AutoComplete.Option;
|
|
140
141
|
CustomAutoComplete.propTypes = {
|
|
141
142
|
'data-test': _propTypes.default.string,
|
|
142
143
|
size: _propTypes.default.oneOf(['small', 'middle']),
|
|
@@ -31,7 +31,7 @@ function CustomSelect(_ref) {
|
|
|
31
31
|
options
|
|
32
32
|
} = _ref,
|
|
33
33
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
34
|
-
const actualOptions = options.map(option => {
|
|
34
|
+
const actualOptions = options === null || options === void 0 ? void 0 : options.map(option => {
|
|
35
35
|
const {
|
|
36
36
|
label,
|
|
37
37
|
disabled
|
|
@@ -120,20 +120,21 @@ function CustomSelect(_ref) {
|
|
|
120
120
|
}
|
|
121
121
|
}, /*#__PURE__*/_react.default.createElement(_antd.Select, _extends({
|
|
122
122
|
"data-test": dataTest,
|
|
123
|
-
options: actualOptions,
|
|
123
|
+
options: (actualOptions === null || actualOptions === void 0 ? void 0 : actualOptions.length) > 0 ? actualOptions : undefined,
|
|
124
124
|
dropdownStyle: {
|
|
125
125
|
padding: '0px'
|
|
126
126
|
},
|
|
127
127
|
maxTagCount: "responsive"
|
|
128
128
|
}, props)));
|
|
129
129
|
}
|
|
130
|
+
CustomSelect.Option = _antd.Select.Option;
|
|
130
131
|
CustomSelect.propTypes = {
|
|
131
132
|
'data-test': _propTypes.default.string,
|
|
132
133
|
size: _propTypes.default.oneOf(['small', 'middle']),
|
|
133
134
|
options: _propTypes.default.arrayOf(
|
|
134
135
|
// Checked from antd's github
|
|
135
136
|
_propTypes.default.shape({
|
|
136
|
-
label: _propTypes.default.node
|
|
137
|
+
label: _propTypes.default.node,
|
|
137
138
|
value: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]).isRequired
|
|
138
139
|
}))
|
|
139
140
|
};
|
|
@@ -17,7 +17,7 @@ exports.CollapsibleStage = CollapsibleStage;
|
|
|
17
17
|
const DotIcon = _styledComponents.default.span(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: 12px;\n height: 12px;\n \n \n border-radius: 50px;\n\n display: flex;\n\n background: ", ";\n"])), props => {
|
|
18
18
|
switch (props.className) {
|
|
19
19
|
case 'inprogress--active':
|
|
20
|
-
return '
|
|
20
|
+
return 'blue';
|
|
21
21
|
case 'inprogress':
|
|
22
22
|
return 'var(--color-disabled-button)';
|
|
23
23
|
case 'notstarted':
|