@hoddy-ui/core 2.5.46 → 2.5.47
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/next/dist/index.d.mts +1 -0
- package/next/dist/index.d.ts +1 -0
- package/next/dist/index.js +3 -2
- package/next/dist/index.js.map +1 -1
- package/next/dist/index.mjs +18 -17
- package/next/dist/index.mjs.map +1 -1
- package/next/package.json +1 -1
- package/package.json +1 -1
- package/src/Components/Typography.tsx +1 -1
package/next/dist/index.d.mts
CHANGED
package/next/dist/index.d.ts
CHANGED
package/next/dist/index.js
CHANGED
|
@@ -703,7 +703,8 @@ var Avatar = ({
|
|
|
703
703
|
variant = "contained",
|
|
704
704
|
source,
|
|
705
705
|
size = 48,
|
|
706
|
-
style = {}
|
|
706
|
+
style = {},
|
|
707
|
+
icon
|
|
707
708
|
}) => {
|
|
708
709
|
const colors2 = useColors();
|
|
709
710
|
const [imageError, setImageError] = (0, import_react7.useState)(false);
|
|
@@ -733,7 +734,7 @@ var Avatar = ({
|
|
|
733
734
|
source,
|
|
734
735
|
onError: () => setImageError(true)
|
|
735
736
|
}
|
|
736
|
-
) : label ? /* @__PURE__ */ import_react7.default.createElement(Typography_default, { style: { color: colors2[color].text } }, label[0]) : /* @__PURE__ */ import_react7.default.createElement(import_vector_icons2.
|
|
737
|
+
) : label ? /* @__PURE__ */ import_react7.default.createElement(Typography_default, { style: { color: colors2[color].text } }, label[0]) : icon ? icon : /* @__PURE__ */ import_react7.default.createElement(import_vector_icons2.Ionicons, { name: "person", color: "#fff", size: Math.round(size / 1.5) }));
|
|
737
738
|
};
|
|
738
739
|
var Avatar_default = Avatar;
|
|
739
740
|
|