revdev-components 0.130.0 → 0.131.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.
@@ -1,3 +1,3 @@
1
1
  export declare const SocialIconNameList: ("facebook" | "google" | "instagram" | "telegram" | "viber" | "whatsapp" | "youtube")[];
2
2
  export type SocialIconName = (typeof SocialIconNameList)[number];
3
- export declare const isSocialIconName: (name: string) => name is "facebook" | "google" | "instagram" | "telegram" | "viber" | "whatsapp" | "youtube";
3
+ export declare const isSocialIconName: (name?: string) => name is "facebook" | "google" | "instagram" | "telegram" | "viber" | "whatsapp" | "youtube";
package/build/index.js CHANGED
@@ -2022,8 +2022,6 @@ 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
2024
  var iconComponent = React.useMemo(function () {
2025
- if (!icon)
2026
- return null;
2027
2025
  if (isSocialIconName(icon)) {
2028
2026
  return React.createElement(SocialIcon, { className: s$x.icon, name: icon });
2029
2027
  }
@@ -2032,8 +2030,6 @@ var IconBoxContent = function (_a) {
2032
2030
  }
2033
2031
  }, [icon]);
2034
2032
  var rightIconComponent = React.useMemo(function () {
2035
- if (!rightIcon)
2036
- return null;
2037
2033
  if (isSocialIconName(rightIcon)) {
2038
2034
  return React.createElement(SocialIcon, { className: s$x.icon, name: rightIcon });
2039
2035
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revdev-components",
3
- "version": "0.130.0",
3
+ "version": "0.131.0",
4
4
  "main": "build/index.js",
5
5
  "module": "build/index.esm.js",
6
6
  "scripts": {