oolib 2.72.0 → 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:
|
|
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;
|