@rehagro/ui 0.1.4 → 1.0.1
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 +1 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -9
- package/dist/index.mjs.map +1 -1
- package/dist/native.d.mts +286 -0
- package/dist/native.d.ts +286 -0
- package/dist/native.js +565 -0
- package/dist/native.js.map +1 -0
- package/dist/native.mjs +555 -0
- package/dist/native.mjs.map +1 -0
- package/package.json +21 -7
package/dist/index.mjs
CHANGED
|
@@ -1695,15 +1695,7 @@ var variantClasses3 = {
|
|
|
1695
1695
|
circle: "rh-rounded-full",
|
|
1696
1696
|
square: "rh-rounded-sm"
|
|
1697
1697
|
};
|
|
1698
|
-
var Avatar = forwardRef(function Avatar2({
|
|
1699
|
-
src,
|
|
1700
|
-
alt = "",
|
|
1701
|
-
initials,
|
|
1702
|
-
size = "md",
|
|
1703
|
-
variant = "circle",
|
|
1704
|
-
className = "",
|
|
1705
|
-
...rest
|
|
1706
|
-
}, ref) {
|
|
1698
|
+
var Avatar = forwardRef(function Avatar2({ src, alt = "", initials, size = "md", variant = "circle", className = "", ...rest }, ref) {
|
|
1707
1699
|
const [imgError, setImgError] = useState(false);
|
|
1708
1700
|
const showImage = src && !imgError;
|
|
1709
1701
|
const fallbackLabel = initials ? initials.slice(0, 2).toUpperCase() : alt ? alt.split(" ").slice(0, 2).map((w) => w[0]).join("").toUpperCase() : "?";
|