revdev-components 0.131.0 → 0.133.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.
Files changed (2) hide show
  1. package/build/index.js +2 -18
  2. package/package.json +1 -1
package/build/index.js CHANGED
@@ -2021,30 +2021,14 @@ var SocialIcon = function (props) {
2021
2021
  var IconBoxContent = function (_a) {
2022
2022
  var _b;
2023
2023
  var flexRoot = _a.flexRoot, icon = _a.icon, rightIcon = _a.rightIcon, children = _a.children, className = _a.className, contentClassName = _a.contentClassName, onClick = _a.onClick, _c = _a.direction, direction = _c === void 0 ? "row" : _c, elementRev = _a.elementRev, style = _a.style;
2024
- var iconComponent = React.useMemo(function () {
2025
- if (isSocialIconName(icon)) {
2026
- return React.createElement(SocialIcon, { className: s$x.icon, name: icon });
2027
- }
2028
- else {
2029
- return React.createElement(RegularIcon, { className: s$x.icon, name: icon });
2030
- }
2031
- }, [icon]);
2032
- var rightIconComponent = React.useMemo(function () {
2033
- if (isSocialIconName(rightIcon)) {
2034
- return React.createElement(SocialIcon, { className: s$x.icon, name: rightIcon });
2035
- }
2036
- else {
2037
- return React.createElement(RegularIcon, { className: s$x.icon, name: rightIcon });
2038
- }
2039
- }, [rightIcon]);
2040
2024
  return (React.createElement("div", { ref: elementRev, style: style, className: classNames(s$x.root, (_b = {},
2041
2025
  _b[s$x.flex] = flexRoot,
2042
2026
  _b[s$x.button] = !!onClick,
2043
2027
  _b[s$x.column] = direction === "column",
2044
2028
  _b), className), onClick: onClick },
2045
- iconComponent,
2029
+ isSocialIconName(icon) ? React.createElement(SocialIcon, { className: s$x.icon, name: icon }) : React.createElement(RegularIcon, { className: s$x.icon, name: icon }),
2046
2030
  children ? React.createElement("div", { className: classNames(contentClassName, s$x.root__children) }, children) : null,
2047
- rightIconComponent));
2031
+ isSocialIconName(rightIcon) ? (React.createElement(SocialIcon, { className: s$x.icon, name: rightIcon })) : (React.createElement(RegularIcon, { className: s$x.icon, name: rightIcon }))));
2048
2032
  };
2049
2033
  var IconDivision = function (props) {
2050
2034
  var tooltip = props.tooltip, tooltipPlacement = props.tooltipPlacement, tooltipMouseEnterDelay = props.tooltipMouseEnterDelay;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.131.0",
3
+ "version": "0.133.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {