@app-studio/web 0.8.38 → 0.8.40

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.
@@ -1796,7 +1796,8 @@
1796
1796
  fallback = 'IM',
1797
1797
  styles,
1798
1798
  imageError,
1799
- setImageError
1799
+ setImageError,
1800
+ onClick = () => {}
1800
1801
  } = _ref;
1801
1802
  // Determines the size of the avatar by mapping the size prop to the predefined AvatarSizeMap.
1802
1803
  var avatarSize = AvatarSizeMap[size];
@@ -1814,7 +1815,8 @@
1814
1815
  borderWidth: "1px",
1815
1816
  borderStyle: "solid",
1816
1817
  borderColor: imageError ? 'black' : 'transparent',
1817
- boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)"
1818
+ boxShadow: "0px 2px 4px rgba(0, 0, 0, 0.25)",
1819
+ onClick: onClick
1818
1820
  }, styles == null ? void 0 : styles.container), !imageError ? (/*#__PURE__*/React__default.createElement(appStudio.Image, {
1819
1821
  alt: "IM",
1820
1822
  src: src,
@@ -1833,7 +1835,8 @@
1833
1835
  src,
1834
1836
  size,
1835
1837
  styles,
1836
- fallback
1838
+ fallback,
1839
+ onClick
1837
1840
  } = _ref;
1838
1841
  // Uses custom hook useAvatarState to manage the avatar image loading error state.
1839
1842
  var {
@@ -1847,7 +1850,8 @@
1847
1850
  styles: styles,
1848
1851
  fallback: fallback,
1849
1852
  imageError: imageError,
1850
- setImageError: setImageError
1853
+ setImageError: setImageError,
1854
+ onClick: onClick
1851
1855
  });
1852
1856
  // AvatarComponent is a functional component that wraps the AvatarView with added state logic.
1853
1857
  };
@@ -3906,7 +3910,6 @@
3906
3910
  container: Object.assign({
3907
3911
  gap: 10,
3908
3912
  display: 'flex',
3909
- alignItems: 'center',
3910
3913
  height: 'fit-content',
3911
3914
  flexDirection: 'column',
3912
3915
  width: 'fit-content',