@landtrustinc/design-system 1.2.8 → 1.2.9

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.d.ts CHANGED
@@ -2026,7 +2026,7 @@ type PackageHeaderProps = {
2026
2026
  declare const PackageHeader: FC<PackageHeaderProps>;
2027
2027
 
2028
2028
  type ReviewReplyProps = {
2029
- avatarSrc: string;
2029
+ avatarSrc?: string;
2030
2030
  name: string;
2031
2031
  date: string;
2032
2032
  content: string;
@@ -2131,7 +2131,7 @@ type TagChipProps = HTMLAttributes<HTMLSpanElement> & {
2131
2131
  declare const TagChip: FC<PropsWithChildren<TagChipProps>>;
2132
2132
 
2133
2133
  type UserCardProps = {
2134
- avatarSrc: string;
2134
+ avatarSrc?: string;
2135
2135
  title: string;
2136
2136
  subtitle?: string;
2137
2137
  rating?: number;
package/dist/index.js CHANGED
@@ -7570,7 +7570,15 @@ var UserCard = ({
7570
7570
  gap: "var(--spacing-4)",
7571
7571
  className,
7572
7572
  children: [
7573
- /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Avatar_default, { type: "image", src: avatarSrc, alt: `${title}'s avatar` }),
7573
+ /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
7574
+ Avatar_default,
7575
+ {
7576
+ type: avatarSrc ? "image" : "text",
7577
+ src: avatarSrc,
7578
+ text: title,
7579
+ alt: `${title}'s avatar`
7580
+ }
7581
+ ),
7574
7582
  /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
7575
7583
  /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
7576
7584
  subtitle && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }),
@@ -7587,6 +7595,7 @@ var import_react48 = require("@emotion/react");
7587
7595
  var imageStyles3 = import_react48.css`
7588
7596
  flex: 1;
7589
7597
  min-width: 0;
7598
+ max-width: 100%;
7590
7599
  aspect-ratio: 1;
7591
7600
  border-radius: var(--spacing-2);
7592
7601
  object-fit: cover;