oolib 2.1.4 → 2.1.8

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.
@@ -1,5 +1,4 @@
1
- export default Breadcrumbs;
2
- declare function Breadcrumbs({ links, invert }: {
1
+ export function Breadcrumbs({ links, invert }: {
3
2
  links: any;
4
3
  invert: any;
5
4
  }): JSX.Element;
@@ -28,6 +28,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
28
28
  return to.concat(ar || Array.prototype.slice.call(from));
29
29
  };
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.Breadcrumbs = void 0;
31
32
  var react_1 = __importStar(require("react"));
32
33
  var index_styled_1 = require("./index.styled");
33
34
  var Typo_1 = require("../Typo");
@@ -66,4 +67,4 @@ var Breadcrumbs = function (_a) {
66
67
  react_1.default.createElement(Typo_1.SANS_2, { invert: invert, style: { whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' } }, link.display)));
67
68
  })));
68
69
  };
69
- exports.default = Breadcrumbs;
70
+ exports.Breadcrumbs = Breadcrumbs;
@@ -52,11 +52,11 @@ var ButtonStyledWrapper = function (_a) {
52
52
  };
53
53
  var Button = function (_a) {
54
54
  var props = _a.props, variant = _a.variant;
55
- var link = props.link, onClick = props.onClick;
55
+ var link = props.link, onClick = props.onClick, submit = props.submit;
56
56
  var handleOpenLink = function () {
57
57
  window.open(link === null || link === void 0 ? void 0 : link.val);
58
58
  };
59
- var buttonAction = onClick || handleOpenLink;
59
+ var buttonAction = submit ? null : onClick || handleOpenLink;
60
60
  return (react_1.default.createElement(ButtonStyledWrapper, { props: __assign(__assign({}, props), { onClick: buttonAction }), variant: variant }));
61
61
  };
62
62
  var ButtonPrimary = function (props) { return (react_1.default.createElement(Button, { props: props, variant: 'primary' })); };
@@ -27,6 +27,7 @@ var black_opacity50 = 'rgba(0, 0, 0, 0.5)';
27
27
  var greyColor100 = '#383838';
28
28
  var greyColor80 = '#606060';
29
29
  var greyColor70 = '#747474';
30
+ var greyColor50 = '#9B9B9B';
30
31
  var greyColor40 = '#afafaf';
31
32
  var greyColor15 = '#e1e1e1';
32
33
  var greyColor10 = '#EBEBEB';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.1.4",
3
+ "version": "2.1.8",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",