oolib 2.30.3 → 2.30.4
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.
|
@@ -33,7 +33,7 @@ var Base = function (_a) {
|
|
|
33
33
|
var tabIsActive = value && op.value === value.value;
|
|
34
34
|
return (react_1.default.createElement(index_styled_1.TabBarTabWrapper, { tabBarStyle: tabBarStyle, key: op.value, active: tabIsActive, error: tabHasError },
|
|
35
35
|
react_1.default.createElement(index_styled_1.TabBarTabStyled, { size: size, active: tabIsActive, error: tabHasError, tabBarStyle: tabBarStyle, onClick: function () { return handleClick(op); } },
|
|
36
|
-
react_1.default.createElement(
|
|
36
|
+
react_1.default.createElement(index_styled_1.STYLED_SANS_2, { semibold: tabBarStyle === "1" }, op.display))));
|
|
37
37
|
})))));
|
|
38
38
|
};
|
|
39
39
|
var TabBarStyle1 = function (props) { return react_1.default.createElement(Base, __assign({}, props, { tabBarStyle: "1" })); };
|
|
@@ -27,7 +27,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
27
27
|
return result;
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.TabBarTabStyled = exports.TabBarTabWrapper = exports.TabBarRowStyled = exports.TabBarContainerStyled = exports.TabBarStyled = void 0;
|
|
30
|
+
exports.STYLED_SANS_2 = exports.TabBarTabStyled = exports.TabBarTabWrapper = exports.TabBarRowStyled = exports.TabBarContainerStyled = exports.TabBarStyled = void 0;
|
|
31
31
|
var styled_components_1 = __importStar(require("styled-components"));
|
|
32
32
|
var themes_1 = require("../../themes");
|
|
33
33
|
var mixins_1 = require("../../themes/mixins");
|
|
@@ -79,7 +79,7 @@ exports.TabBarStyled = styled_components_1.default.div(templateObject_11 || (tem
|
|
|
79
79
|
});
|
|
80
80
|
exports.TabBarContainerStyled = styled_components_1.default.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n width: fit-content;\n height: 100%;\n"], ["\n width: fit-content;\n height: 100%;\n"])));
|
|
81
81
|
exports.TabBarRowStyled = styled_components_1.default.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: flex;\n height: 100%;\n"], ["\n display: flex;\n height: 100%;\n"])));
|
|
82
|
-
exports.TabBarTabWrapper = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n"], ["\n ", "\n display: flex;\n align-items: center;\n"])), function (_a) {
|
|
82
|
+
exports.TabBarTabWrapper = styled_components_1.default.div(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n ", "\n display: flex;\n align-items: center;\n min-width: 0; //so that ellipsis works on the text within\n"], ["\n ", "\n display: flex;\n align-items: center;\n min-width: 0; //so that ellipsis works on the text within\n"])), function (_a) {
|
|
83
83
|
var tabBarStyle = _a.tabBarStyle;
|
|
84
84
|
return tabBarStyle === "1"
|
|
85
85
|
? tabBarWrapperStyle1
|
|
@@ -91,4 +91,5 @@ exports.TabBarTabStyled = styled_components_1.default.button(templateObject_15 |
|
|
|
91
91
|
? tabBarTabStyle1
|
|
92
92
|
: tabBarStyle === "2" && tabBarTabStyle2;
|
|
93
93
|
});
|
|
94
|
-
|
|
94
|
+
exports.STYLED_SANS_2 = (0, styled_components_1.default)(SANS_2)(templateObject_16 || (templateObject_16 = __makeTemplateObject(["\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"], ["\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n"])));
|
|
95
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16;
|
|
@@ -54,7 +54,18 @@ var set_deleteVal = function (action, data, valuePath, value) {
|
|
|
54
54
|
return data;
|
|
55
55
|
}
|
|
56
56
|
else if (action === 'delete') {
|
|
57
|
-
|
|
57
|
+
/**
|
|
58
|
+
* very important that we handle Array situations by 'splicing'
|
|
59
|
+
* rather than deleting, cuz 'delete' leaves an 'empty slot' in the
|
|
60
|
+
* array rather than removing the item completely which causes all
|
|
61
|
+
* sorts of problems.
|
|
62
|
+
*/
|
|
63
|
+
if (Array.isArray(dataRef)) {
|
|
64
|
+
dataRef.splice(parseInt(keysArray[len - 1]), 1);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
delete dataRef[keysArray[len - 1]];
|
|
68
|
+
}
|
|
58
69
|
return data;
|
|
59
70
|
}
|
|
60
71
|
};
|