intelicoreact 0.1.13 → 0.1.14
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.
|
@@ -34,7 +34,7 @@ var Button = function Button(_ref) {
|
|
|
34
34
|
var noRenderIcon = noIcon || variant === "ellipse-apply" || variant === "ellipse-cancel";
|
|
35
35
|
return /*#__PURE__*/_react.default.createElement("button", {
|
|
36
36
|
style: style,
|
|
37
|
-
className: (0, _classnames.default)(className, RC, (_cn = {}, (0, _defineProperty2.default)(_cn, "".concat(RC, "_").concat(variant), variant), (0, _defineProperty2.default)(_cn, 'button_icon-right', isIconRight), _cn)),
|
|
37
|
+
className: (0, _classnames.default)(className, RC, (_cn = {}, (0, _defineProperty2.default)(_cn, "".concat(RC, "_").concat(variant), variant), (0, _defineProperty2.default)(_cn, 'button_icon-left', icon && !isIconRight), (0, _defineProperty2.default)(_cn, 'button_icon-right', icon && isIconRight), _cn)),
|
|
38
38
|
onClick: onClick,
|
|
39
39
|
disabled: disabled
|
|
40
40
|
}, !noRenderIcon && icon, label && /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -92,7 +92,6 @@
|
|
|
92
92
|
|
|
93
93
|
&__text {
|
|
94
94
|
width: 100%;
|
|
95
|
-
margin-left: 5px;
|
|
96
95
|
display: flex;
|
|
97
96
|
justify-content: center;
|
|
98
97
|
align-items: center;
|
|
@@ -108,6 +107,12 @@
|
|
|
108
107
|
min-width: 15px;
|
|
109
108
|
}
|
|
110
109
|
|
|
110
|
+
&_icon-left {
|
|
111
|
+
.button__text {
|
|
112
|
+
margin-left: 5px;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
|
|
111
116
|
&_icon-right {
|
|
112
117
|
.button__text {
|
|
113
118
|
order: 1;
|
package/package.json
CHANGED