oolib 2.27.14 → 2.27.16
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.
|
@@ -93,8 +93,10 @@ var ActionMenu = function (_a) {
|
|
|
93
93
|
fixPos: fixPos
|
|
94
94
|
}),
|
|
95
95
|
react_1.default.createElement(styled_1.StyledOptionsWrapper, { invert: invert, align: align, ref: optionsWrapperRef }, actions.map(function (action) {
|
|
96
|
-
return (react_1.default.createElement(styled_1.StyledOption, __assign({}, action, { onClick: function (
|
|
97
|
-
|
|
96
|
+
return (react_1.default.createElement(styled_1.StyledOption, __assign({}, action, { onClick: function (e) {
|
|
97
|
+
e.preventDefault();
|
|
98
|
+
e.stopPropagation();
|
|
99
|
+
action.onClick && action.onClick(e);
|
|
98
100
|
setShowActions(false);
|
|
99
101
|
}, key: action.display, invert: invert }),
|
|
100
102
|
action.icon && genOptionIcon(action.icon),
|
|
@@ -13,7 +13,7 @@ var toArray_1 = require("../../utils/toArray");
|
|
|
13
13
|
var Hints_1 = __importDefault(require("../Hints"));
|
|
14
14
|
var greyColor40 = colors_1.colors.greyColor40, greyColor80 = colors_1.colors.greyColor80;
|
|
15
15
|
var BlockLabel = function (props) {
|
|
16
|
-
var label = props.label, sublabel = props.sublabel, inputOnlyLabel = props.inputOnlyLabel, invert = props.invert, isRequired = props.isRequired, readOnly = props.readOnly, className = props.className, style = props.style, errorMsgs = props.errorMsgs, hints = props.hints, id = props.id, _a = props.hintsTitle, hintsTitle = _a === void 0 ? "Hints" : _a, hintsSubtitle = props.hintsSubtitle;
|
|
16
|
+
var label = props.label, sublabel = props.sublabel, inputOnlyLabel = props.inputOnlyLabel, invert = props.invert, isRequired = props.isRequired, readOnly = props.readOnly, className = props.className, style = props.style, errorMsgs = props.errorMsgs, hints = props.hints, id = props.id, _a = props.hintsTitle, hintsTitle = _a === void 0 ? "Hints" : _a, hintsSubtitle = props.hintsSubtitle, hideOptionalLabel = props.hideOptionalLabel;
|
|
17
17
|
var shouldCompRender = label ||
|
|
18
18
|
(!readOnly &&
|
|
19
19
|
(sublabel ||
|
|
@@ -31,7 +31,7 @@ var BlockLabel = function (props) {
|
|
|
31
31
|
react_1.default.createElement("div", { style: { display: "flex", gap: "1rem", alignItems: "center" } },
|
|
32
32
|
(label || inputOnlyLabel) && (react_1.default.createElement(Typo_1.SANS_3, { invert: invert, semibold: true, capitalize: true }, label || inputOnlyLabel)),
|
|
33
33
|
!readOnly && hints ? (react_1.default.createElement(Hints_1.default, { id: id, title: hintsTitle, subtitle: hintsSubtitle, hints: hints })) : null,
|
|
34
|
-
optional && (react_1.default.createElement(Typo_1.SANS_3, { color: invert ? greyColor40 : greyColor80 }, "(optional)")),
|
|
34
|
+
optional && !hideOptionalLabel && (react_1.default.createElement(Typo_1.SANS_3, { color: invert ? greyColor40 : greyColor80 }, "(optional)")),
|
|
35
35
|
!readOnly && (errorMsgs === null || errorMsgs === void 0 ? void 0 : errorMsgs.length) > 0 ? (react_1.default.createElement(InlineAlert_1.InlineAlert, { text: errText, type: errType, link: errLink, invert: invert })) : null),
|
|
36
36
|
!readOnly &&
|
|
37
37
|
sublabel &&
|