@rehagro/ui 0.1.4 → 1.0.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.
package/dist/index.js CHANGED
@@ -1701,15 +1701,7 @@ var variantClasses3 = {
1701
1701
  circle: "rh-rounded-full",
1702
1702
  square: "rh-rounded-sm"
1703
1703
  };
1704
- var Avatar = React8.forwardRef(function Avatar2({
1705
- src,
1706
- alt = "",
1707
- initials,
1708
- size = "md",
1709
- variant = "circle",
1710
- className = "",
1711
- ...rest
1712
- }, ref) {
1704
+ var Avatar = React8.forwardRef(function Avatar2({ src, alt = "", initials, size = "md", variant = "circle", className = "", ...rest }, ref) {
1713
1705
  const [imgError, setImgError] = React8.useState(false);
1714
1706
  const showImage = src && !imgError;
1715
1707
  const fallbackLabel = initials ? initials.slice(0, 2).toUpperCase() : alt ? alt.split(" ").slice(0, 2).map((w) => w[0]).join("").toUpperCase() : "?";