oolib 2.6.1 → 2.7.0

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.
@@ -18,8 +18,8 @@ var BlockLabel = function (props) {
18
18
  - deployment._ShowOptionalTag configuration
19
19
  - localization (translation)
20
20
  */
21
- var label = props.label, sublabel = props.sublabel, inputOnlyLabel = props.inputOnlyLabel, invert = props.invert, error = props.error, //for storybook view purposes
22
- isRequired = props.isRequired, readOnly = props.readOnly, style = props.style, errorMsgs = props.errorMsgs;
21
+ 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, error = props.error, //for storybook view purposes
22
+ errorMsgs = props.errorMsgs;
23
23
  var shouldCompRender = (label ||
24
24
  !readOnly && (sublabel || inputOnlyLabel || isRequired === false || (errorMsgs === null || errorMsgs === void 0 ? void 0 : errorMsgs.length) > 0));
25
25
  var optional = readOnly ? false : !isRequired;
@@ -28,7 +28,7 @@ var BlockLabel = function (props) {
28
28
  var errLink = (errorMsgs === null || errorMsgs === void 0 ? void 0 : errorMsgs.length) !== 1 ? undefined : errorMsgs[0].link;
29
29
  var errType = ((errorMsgs === null || errorMsgs === void 0 ? void 0 : errorMsgs.length) !== 1) ? 'danger' : (errorMsgs[0].type || 'danger');
30
30
  return (shouldCompRender &&
31
- react_1.default.createElement(index_styled_1.StyledBlockLabel, { style: style },
31
+ react_1.default.createElement(index_styled_1.StyledBlockLabel, { style: style, className: className },
32
32
  react_1.default.createElement("div", { style: { display: 'flex', gap: '1rem' } },
33
33
  react_1.default.createElement(Typo_1.SANS_3, { invert: invert, bold: true, capitalize: true }, label || inputOnlyLabel),
34
34
  optional && react_1.default.createElement(Typo_1.SANS_3, { color: invert ? greyColor40 : greyColor80 }, "(optional)"),
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getBlockLabelProps = void 0;
4
4
  var blockLabelProps = [
5
+ 'className',
5
6
  'id',
6
7
  'srNo',
7
8
  'label',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.6.1",
3
+ "version": "2.7.0",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",