@landtrustinc/design-system 1.2.12 → 1.2.13
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 +3 -15
- package/dist/index.js +6 -58
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1852,21 +1852,9 @@ type LandownerProfileProps = {
|
|
|
1852
1852
|
*/
|
|
1853
1853
|
yearsHosting?: number;
|
|
1854
1854
|
/**
|
|
1855
|
-
*
|
|
1856
|
-
*/
|
|
1857
|
-
rating?: number;
|
|
1858
|
-
/**
|
|
1859
|
-
* Number of reviews
|
|
1860
|
-
*/
|
|
1861
|
-
reviewCount?: number;
|
|
1862
|
-
/**
|
|
1863
|
-
* Link to reviews (optional)
|
|
1864
|
-
*/
|
|
1865
|
-
reviewsLink?: string;
|
|
1866
|
-
/**
|
|
1867
|
-
* Whether the reviews are loading
|
|
1855
|
+
* Optional feature item for reviews display
|
|
1868
1856
|
*/
|
|
1869
|
-
|
|
1857
|
+
featureReviewItem?: FeatureItem;
|
|
1870
1858
|
/**
|
|
1871
1859
|
* Whether the landowner is verified
|
|
1872
1860
|
*/
|
|
@@ -1874,7 +1862,7 @@ type LandownerProfileProps = {
|
|
|
1874
1862
|
/**
|
|
1875
1863
|
* Bio text content
|
|
1876
1864
|
*/
|
|
1877
|
-
bio
|
|
1865
|
+
bio?: string;
|
|
1878
1866
|
/**
|
|
1879
1867
|
* Response rate percentage (e.g., "100%")
|
|
1880
1868
|
*/
|
package/dist/index.js
CHANGED
|
@@ -6915,60 +6915,14 @@ var UserCard_default = UserCard;
|
|
|
6915
6915
|
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6916
6916
|
var ProfileSubtitle = ({
|
|
6917
6917
|
yearsHosting,
|
|
6918
|
-
|
|
6919
|
-
reviewCount,
|
|
6920
|
-
reviewsLink,
|
|
6921
|
-
isReviewsLoading = false,
|
|
6922
|
-
onReviewsClick
|
|
6918
|
+
featureReviewItem
|
|
6923
6919
|
}) => {
|
|
6924
|
-
let reviewFeatureItem;
|
|
6925
|
-
if (isReviewsLoading) {
|
|
6926
|
-
reviewFeatureItem = {
|
|
6927
|
-
iconVariant: "StarSolid",
|
|
6928
|
-
label: "",
|
|
6929
|
-
isLoading: true
|
|
6930
|
-
};
|
|
6931
|
-
} else if (rating && reviewCount) {
|
|
6932
|
-
reviewFeatureItem = {
|
|
6933
|
-
iconVariant: "StarSolid",
|
|
6934
|
-
iconColor: "var(--icon-warning)",
|
|
6935
|
-
label: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
6936
|
-
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: rating == null ? void 0 : rating.toFixed(1) }),
|
|
6937
|
-
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: "\u2022" }),
|
|
6938
|
-
reviewsLink ? /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6939
|
-
"a",
|
|
6940
|
-
{
|
|
6941
|
-
href: reviewsLink,
|
|
6942
|
-
css: {
|
|
6943
|
-
color: "var(--text-primary)",
|
|
6944
|
-
textDecoration: "underline",
|
|
6945
|
-
"&:hover": {
|
|
6946
|
-
color: "var(--text-secondary)"
|
|
6947
|
-
}
|
|
6948
|
-
},
|
|
6949
|
-
onClick: onReviewsClick,
|
|
6950
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { size: "sm", fontWeight: "bold", children: [
|
|
6951
|
-
reviewCount,
|
|
6952
|
-
" ",
|
|
6953
|
-
reviewCount === 1 ? "Review" : "Reviews"
|
|
6954
|
-
] })
|
|
6955
|
-
}
|
|
6956
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { size: "md", fontWeight: "bold", children: [
|
|
6957
|
-
reviewCount,
|
|
6958
|
-
" ",
|
|
6959
|
-
reviewCount === 1 ? "Review" : "Reviews"
|
|
6960
|
-
] })
|
|
6961
|
-
] })
|
|
6962
|
-
};
|
|
6963
|
-
} else {
|
|
6964
|
-
reviewFeatureItem = void 0;
|
|
6965
|
-
}
|
|
6966
6920
|
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
6967
|
-
yearsHosting && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
6921
|
+
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
6968
6922
|
yearsHosting,
|
|
6969
6923
|
" Years Hosting"
|
|
6970
6924
|
] }),
|
|
6971
|
-
|
|
6925
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
6972
6926
|
] });
|
|
6973
6927
|
};
|
|
6974
6928
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -6980,10 +6934,7 @@ var LandownerProfile = ({
|
|
|
6980
6934
|
avatarSrc,
|
|
6981
6935
|
name,
|
|
6982
6936
|
yearsHosting,
|
|
6983
|
-
|
|
6984
|
-
reviewCount,
|
|
6985
|
-
reviewsLink,
|
|
6986
|
-
isReviewsLoading = false,
|
|
6937
|
+
featureReviewItem,
|
|
6987
6938
|
isVerified = false,
|
|
6988
6939
|
bio,
|
|
6989
6940
|
responseRate,
|
|
@@ -7029,17 +6980,14 @@ var LandownerProfile = ({
|
|
|
7029
6980
|
ProfileSubtitle_default,
|
|
7030
6981
|
{
|
|
7031
6982
|
yearsHosting,
|
|
7032
|
-
|
|
7033
|
-
reviewCount,
|
|
7034
|
-
reviewsLink,
|
|
7035
|
-
isReviewsLoading
|
|
6983
|
+
featureReviewItem
|
|
7036
6984
|
}
|
|
7037
6985
|
),
|
|
7038
6986
|
showRating: false,
|
|
7039
6987
|
isVerified
|
|
7040
6988
|
}
|
|
7041
6989
|
),
|
|
7042
|
-
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
6990
|
+
bio && /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
7043
6991
|
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
7044
6992
|
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { children: bio })
|
|
7045
6993
|
] }),
|