oolib 2.229.0 → 2.229.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.
|
@@ -69,7 +69,7 @@ var List = function (_a) {
|
|
|
69
69
|
// const theme = useTheme();
|
|
70
70
|
var id = _a.id, _b = _a.options, options = _b === void 0 ? [] : _b, value = _a.value, focussedOp = _a.focussedOp, scrollFocussedOpIntoView = _a.scrollFocussedOpIntoView, parentOnChange = _a.onChange, optionsClassName = _a.optionsClassName, invert = _a.invert, S = _a.S, observerRef = _a.observerRef, _c = _a.isMulti, isMulti = _c === void 0 ? false : _c, isTagsStyle = _a.isTagsStyle, setFocusSelectTagsInput = _a.setFocusSelectTagsInput, disableShadow = _a.disableShadow, isSearchable = _a.isSearchable, searchbarPlaceholder = _a.searchbarPlaceholder, searchBarFocus = _a.searchBarFocus, searchString = _a.searchString, setSearchString = _a.setSearchString, setSearchBarFocus = _a.setSearchBarFocus, children = _a.children, enableBorder = _a.enableBorder, style = _a.style, groupHeaderStickyTop = _a.groupHeaderStickyTop, showListInParent = _a.showList, usedIn = _a.usedIn, alignCheckbox = _a.alignCheckbox, iconAfter = _a.iconAfter;
|
|
71
71
|
var renderListItems = function () {
|
|
72
|
-
if (options.length === 0) {
|
|
72
|
+
if (options.length === 0 && searchString) {
|
|
73
73
|
return react_1.default.createElement(NoOptionResultsComp_1.NoOptionResultsComp, { S: S });
|
|
74
74
|
}
|
|
75
75
|
if ((0, exports.isGroupedData)(options)) {
|
|
@@ -150,13 +150,13 @@ exports.TabBarTabStyled = styled_components_1.default.button(templateObject_17 |
|
|
|
150
150
|
return exports.tabStyles.style2;
|
|
151
151
|
}
|
|
152
152
|
});
|
|
153
|
-
exports.StyledDirectionButtons = styled_components_1.default.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n position: absolute;\n ", "\n
|
|
153
|
+
exports.StyledDirectionButtons = styled_components_1.default.div(templateObject_20 || (templateObject_20 = __makeTemplateObject(["\n position: absolute;\n ", "\n height: 100%;\n z-index: 10;\n display: flex;\n align-items: center;\n"], ["\n position: absolute;\n ", "\n height: 100%;\n z-index: 10;\n display: flex;\n align-items: center;\n"])), function (_a) {
|
|
154
154
|
var left = _a.left, right = _a.right;
|
|
155
155
|
if (left)
|
|
156
|
-
return (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject([" left: 0
|
|
156
|
+
return (0, styled_components_1.css)(templateObject_18 || (templateObject_18 = __makeTemplateObject(["\n left: 0;\n background: linear-gradient(to left, transparent, ", ");\n padding-right: 0.5rem;\n "], ["\n left: 0;\n background: linear-gradient(to left, transparent, ", ");\n padding-right: 0.5rem;\n "])), white);
|
|
157
157
|
else if (right)
|
|
158
|
-
return (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject([" right: 0
|
|
159
|
-
}
|
|
158
|
+
return (0, styled_components_1.css)(templateObject_19 || (templateObject_19 = __makeTemplateObject(["\n right: 0;\n background: linear-gradient(to right, transparent, ", ");\n padding-left: 0.5rem;\n "], ["\n right: 0;\n background: linear-gradient(to right, transparent, ", ");\n padding-left: 0.5rem;\n "])), white);
|
|
159
|
+
});
|
|
160
160
|
exports.StyledDot = styled_components_1.default.div(templateObject_21 || (templateObject_21 = __makeTemplateObject(["\n background: ", ";\n height: 5px;\n width: 5px;\n border-radius: 50%;\n margin-left: 10px;\n"], ["\n background: ", ";\n height: 5px;\n width: 5px;\n border-radius: 50%;\n margin-left: 10px;\n"])), function (_a) {
|
|
161
161
|
var active = _a.active, error = _a.error, tabBarStyle = _a.tabBarStyle;
|
|
162
162
|
return tabBarStyle === "2" && active ? errorColor : !active && error ? errorColor : errorColor;
|