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 (ev) {
97
- action.onClick && action.onClick(ev);
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 &&
@@ -13,7 +13,8 @@ var getBlockLabelProps = function (props) {
13
13
  'error',
14
14
  'isRequired',
15
15
  'invert',
16
- 'hints' // dummy commit for this
16
+ 'hints',
17
+ 'hideOptionalLabel'
17
18
  ];
18
19
  var labelProps = {};
19
20
  Object.keys(props).map(function (key) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.27.14",
3
+ "version": "2.27.16",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",