math-main-components 0.0.38 → 0.0.39
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.
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
@@ -396,7 +396,7 @@ function PrimaryButton({ text, iconName, iconFill = "white", type = "blue", onCl
|
|
396
396
|
onClick(event);
|
397
397
|
}
|
398
398
|
return (React__default["default"].createElement("div", { className: styles$a.container },
|
399
|
-
React__default["default"].createElement("button", { className: [styles$a.button, styles$a[type], (text && !iconName)
|
399
|
+
React__default["default"].createElement("button", { className: [styles$a.button, styles$a[type], (text && !iconName) ? styles$a.onlyText : "", (!text && iconName) ? styles$a.onlyIcon : ""].join(" "), onClick: onClickButton },
|
400
400
|
text,
|
401
401
|
iconName && React__default["default"].createElement(SvgIcon, { iconName: iconName, fill: iconFill }))));
|
402
402
|
}
|
package/dist/index.esm.js
CHANGED
@@ -388,7 +388,7 @@ function PrimaryButton({ text, iconName, iconFill = "white", type = "blue", onCl
|
|
388
388
|
onClick(event);
|
389
389
|
}
|
390
390
|
return (React.createElement("div", { className: styles$a.container },
|
391
|
-
React.createElement("button", { className: [styles$a.button, styles$a[type], (text && !iconName)
|
391
|
+
React.createElement("button", { className: [styles$a.button, styles$a[type], (text && !iconName) ? styles$a.onlyText : "", (!text && iconName) ? styles$a.onlyIcon : ""].join(" "), onClick: onClickButton },
|
392
392
|
text,
|
393
393
|
iconName && React.createElement(SvgIcon, { iconName: iconName, fill: iconFill }))));
|
394
394
|
}
|