oolib 2.75.4 → 2.76.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.
@@ -1,8 +1,9 @@
1
- export function OKELink({ to: _to, link, onClick, icon, iconAfter, text, children, invertUnderline, color, invert, disabled, className, style, avatar, iconSize, }: {
1
+ export function OKELink({ to: _to, link, onClick, icon, iconWeight, iconAfter, text, children, invertUnderline, color, invert, disabled, className, style, avatar, iconSize, }: {
2
2
  to: any;
3
3
  link: any;
4
4
  onClick: any;
5
5
  icon: any;
6
+ iconWeight: any;
6
7
  iconAfter: any;
7
8
  text: any;
8
9
  children: any;
@@ -45,7 +45,7 @@ var styled_1 = require("./styled");
45
45
  var ProfileImageInput_1 = require("../ImageInput/derivedComps/ProfileImageInput");
46
46
  var OKELink = function (_a) {
47
47
  var _to = _a.to, link = _a.link, //link is deprecated. use to instead
48
- onClick = _a.onClick, icon = _a.icon, iconAfter = _a.iconAfter, text = _a.text, children = _a.children, invertUnderline = _a.invertUnderline, color = _a.color, invert = _a.invert, disabled = _a.disabled, className = _a.className, style = _a.style, avatar = _a.avatar, // imageData // [ {...} ] OR {...}
48
+ onClick = _a.onClick, icon = _a.icon, iconWeight = _a.iconWeight, iconAfter = _a.iconAfter, text = _a.text, children = _a.children, invertUnderline = _a.invertUnderline, color = _a.color, invert = _a.invert, disabled = _a.disabled, className = _a.className, style = _a.style, avatar = _a.avatar, // imageData // [ {...} ] OR {...}
49
49
  //imageSize ??
50
50
  iconSize = _a.iconSize;
51
51
  var to = link || _to;
@@ -76,7 +76,7 @@ var OKELink = function (_a) {
76
76
  var genIcon = function (icon) {
77
77
  return react_1.default.createElement(DisplayIcon_1.DisplayIcon, __assign({}, {
78
78
  icon: icon,
79
- weight: "regular",
79
+ weight: iconWeight || "regular",
80
80
  size: iconSize || 15,
81
81
  color: (0, styled_1.genColor)({ color: color, theme: theme, invert: invert, disabled: disabled })
82
82
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.75.4",
3
+ "version": "2.76.0",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",