oolib 2.71.3 → 2.73.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.
@@ -43,13 +43,13 @@ var Typo_1 = require("../Typo");
43
43
  var icons_1 = require("../../icons");
44
44
  var themes_1 = require("../../themes");
45
45
  var DisplayIcon = function (_a) {
46
- var icon = _a.icon, size = _a.size, color = _a.color;
46
+ var icon = _a.icon, size = _a.size, color = _a.color, iconWeight = _a.iconWeight;
47
47
  var IconComp = icons_1.icons[icon];
48
- return react_1.default.createElement(react_1.default.Fragment, null, IconComp && react_1.default.createElement(IconComp, { size: size, color: color, weight: "bold" }));
48
+ return react_1.default.createElement(react_1.default.Fragment, null, IconComp && react_1.default.createElement(IconComp, { size: size, color: color, weight: iconWeight || 'bold' }));
49
49
  };
50
50
  var ButtonStyledWrapper = function (_a) {
51
51
  var props = _a.props, variant = _a.variant;
52
- var id = props.id, link = props.link, children = props.children, value = props.value, submit = props.submit, icon = props.icon, iconAfter = props.iconAfter, onClick = props.onClick, onMouseDown = props.onMouseDown, active = props.active, disabled = props.disabled, invert = props.invert, theme = props.theme, width = props.width, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, color = props.color, style = props.style, className = props.className, S = props.S, M = props.M, iconSize = props.iconSize, _iconColor = props.iconColor, stopPropagation = props.stopPropagation, preventDefault = props.preventDefault, forceHover = props.forceHover //used by multi-option button
52
+ var id = props.id, link = props.link, children = props.children, value = props.value, submit = props.submit, icon = props.icon, iconAfter = props.iconAfter, onClick = props.onClick, onMouseDown = props.onMouseDown, active = props.active, disabled = props.disabled, invert = props.invert, theme = props.theme, width = props.width, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave, color = props.color, style = props.style, className = props.className, S = props.S, M = props.M, iconSize = props.iconSize, _iconColor = props.iconColor, iconWeight = props.iconWeight, stopPropagation = props.stopPropagation, preventDefault = props.preventDefault, forceHover = props.forceHover //used by multi-option button
53
53
  ;
54
54
  /**
55
55
  * WHY WE ARE HAVING TO DO STOP PROPAGATION IN THIS TWISTED WAY:
@@ -101,9 +101,9 @@ var ButtonStyledWrapper = function (_a) {
101
101
  preventDefault && e.preventDefault();
102
102
  debouncedMouseDown && debouncedMouseDown(e);
103
103
  }, composition: composition, width: width, color: color, forceHover: forceHover },
104
- icon && react_1.default.createElement(DisplayIcon, { icon: icon, color: iconColor, size: calcIconSize() }),
104
+ icon && react_1.default.createElement(DisplayIcon, { icon: icon, color: iconColor, size: calcIconSize(), iconWeight: iconWeight }),
105
105
  displayText && react_1.default.createElement(Typo_1.SANS_3, { semibold: true }, displayText),
106
- iconAfter && react_1.default.createElement(DisplayIcon, { icon: iconAfter, color: iconColor, size: calcIconSize() })));
106
+ iconAfter && react_1.default.createElement(DisplayIcon, { icon: iconAfter, color: iconColor, size: calcIconSize(), iconWeight: iconWeight })));
107
107
  };
108
108
  var Button = function (_a) {
109
109
  var props = _a.props, variant = _a.variant;
@@ -102,6 +102,8 @@ export namespace icons {
102
102
  export { LightbulbFilament };
103
103
  export { Keyboard };
104
104
  export { TextAa };
105
+ export { ThumbsUp };
106
+ export { ChatText };
105
107
  export { OkeGoogleIcon };
106
108
  export { LetterH };
107
109
  export { IndexIcon };
@@ -257,6 +259,8 @@ import { Binoculars } from "phosphor-react";
257
259
  import { LightbulbFilament } from "phosphor-react";
258
260
  import { Keyboard } from "phosphor-react";
259
261
  import { TextAa } from "phosphor-react";
262
+ import { ThumbsUp } from "phosphor-react";
263
+ import { ChatText } from "phosphor-react";
260
264
  import { OkeGoogleIcon } from "./custom";
261
265
  import { LetterH } from "./custom";
262
266
  import { IndexIcon } from "./custom";
@@ -107,6 +107,8 @@ exports.icons = {
107
107
  LightbulbFilament: phosphor_react_1.LightbulbFilament,
108
108
  Keyboard: phosphor_react_1.Keyboard,
109
109
  TextAa: phosphor_react_1.TextAa,
110
+ ThumbsUp: phosphor_react_1.ThumbsUp,
111
+ ChatText: phosphor_react_1.ChatText,
110
112
  //custom
111
113
  OkeGoogleIcon: custom_1.OkeGoogleIcon,
112
114
  LetterH: custom_1.LetterH,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oolib",
3
- "version": "2.71.3",
3
+ "version": "2.73.0",
4
4
  "description": " OKE Component Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",