@landtrustinc/design-system 1.2.11 → 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 +5 -13
- package/dist/index.js +13 -57
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1852,17 +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)
|
|
1855
|
+
* Optional feature item for reviews display
|
|
1864
1856
|
*/
|
|
1865
|
-
|
|
1857
|
+
featureReviewItem?: FeatureItem;
|
|
1866
1858
|
/**
|
|
1867
1859
|
* Whether the landowner is verified
|
|
1868
1860
|
*/
|
|
@@ -1870,15 +1862,15 @@ type LandownerProfileProps = {
|
|
|
1870
1862
|
/**
|
|
1871
1863
|
* Bio text content
|
|
1872
1864
|
*/
|
|
1873
|
-
bio
|
|
1865
|
+
bio?: string;
|
|
1874
1866
|
/**
|
|
1875
1867
|
* Response rate percentage (e.g., "100%")
|
|
1876
1868
|
*/
|
|
1877
|
-
responseRate
|
|
1869
|
+
responseRate?: string;
|
|
1878
1870
|
/**
|
|
1879
1871
|
* Response time text (e.g., "Within 6 Hours")
|
|
1880
1872
|
*/
|
|
1881
|
-
responseTime
|
|
1873
|
+
responseTime?: string;
|
|
1882
1874
|
/**
|
|
1883
1875
|
* Message button text
|
|
1884
1876
|
*/
|
package/dist/index.js
CHANGED
|
@@ -6915,53 +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
|
-
onReviewsClick
|
|
6918
|
+
featureReviewItem
|
|
6922
6919
|
}) => {
|
|
6923
6920
|
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
6924
|
-
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: [
|
|
6925
6922
|
yearsHosting,
|
|
6926
6923
|
" Years Hosting"
|
|
6927
6924
|
] }),
|
|
6928
|
-
|
|
6929
|
-
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6930
|
-
Icon_default,
|
|
6931
|
-
{
|
|
6932
|
-
variant: "StarSolid",
|
|
6933
|
-
size: "medium",
|
|
6934
|
-
fill: "var(--color-yellow-500)"
|
|
6935
|
-
}
|
|
6936
|
-
),
|
|
6937
|
-
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "md", fontWeight: "bold", children: rating.toFixed(1) }),
|
|
6938
|
-
reviewCount !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(import_jsx_runtime232.Fragment, { children: [
|
|
6939
|
-
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "md", children: "\u2022" }),
|
|
6940
|
-
reviewsLink ? /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6941
|
-
"a",
|
|
6942
|
-
{
|
|
6943
|
-
href: reviewsLink,
|
|
6944
|
-
css: {
|
|
6945
|
-
color: "var(--text-primary)",
|
|
6946
|
-
textDecoration: "underline",
|
|
6947
|
-
"&:hover": {
|
|
6948
|
-
color: "var(--text-secondary)"
|
|
6949
|
-
}
|
|
6950
|
-
},
|
|
6951
|
-
onClick: onReviewsClick,
|
|
6952
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { size: "md", fontWeight: "bold", children: [
|
|
6953
|
-
reviewCount,
|
|
6954
|
-
" ",
|
|
6955
|
-
reviewCount === 1 ? "Review" : "Reviews"
|
|
6956
|
-
] })
|
|
6957
|
-
}
|
|
6958
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { size: "md", fontWeight: "bold", children: [
|
|
6959
|
-
reviewCount,
|
|
6960
|
-
" ",
|
|
6961
|
-
reviewCount === 1 ? "Review" : "Reviews"
|
|
6962
|
-
] })
|
|
6963
|
-
] })
|
|
6964
|
-
] })
|
|
6925
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
6965
6926
|
] });
|
|
6966
6927
|
};
|
|
6967
6928
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -6973,9 +6934,7 @@ var LandownerProfile = ({
|
|
|
6973
6934
|
avatarSrc,
|
|
6974
6935
|
name,
|
|
6975
6936
|
yearsHosting,
|
|
6976
|
-
|
|
6977
|
-
reviewCount,
|
|
6978
|
-
reviewsLink,
|
|
6937
|
+
featureReviewItem,
|
|
6979
6938
|
isVerified = false,
|
|
6980
6939
|
bio,
|
|
6981
6940
|
responseRate,
|
|
@@ -6984,14 +6943,14 @@ var LandownerProfile = ({
|
|
|
6984
6943
|
onMessageClick,
|
|
6985
6944
|
className
|
|
6986
6945
|
}) => {
|
|
6987
|
-
const responseRateFeature = {
|
|
6946
|
+
const responseRateFeature = responseRate ? {
|
|
6988
6947
|
iconVariant: "IconComment",
|
|
6989
6948
|
label: `Response Rate: ${responseRate}`
|
|
6990
|
-
};
|
|
6991
|
-
const responseTimeFeature = {
|
|
6949
|
+
} : void 0;
|
|
6950
|
+
const responseTimeFeature = responseTime ? {
|
|
6992
6951
|
iconVariant: "Bolt",
|
|
6993
6952
|
label: `Response Time: ${responseTime}`
|
|
6994
|
-
};
|
|
6953
|
+
} : void 0;
|
|
6995
6954
|
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6996
6955
|
Box_default,
|
|
6997
6956
|
{
|
|
@@ -7021,24 +6980,22 @@ var LandownerProfile = ({
|
|
|
7021
6980
|
ProfileSubtitle_default,
|
|
7022
6981
|
{
|
|
7023
6982
|
yearsHosting,
|
|
7024
|
-
|
|
7025
|
-
reviewCount,
|
|
7026
|
-
reviewsLink
|
|
6983
|
+
featureReviewItem
|
|
7027
6984
|
}
|
|
7028
6985
|
),
|
|
7029
6986
|
showRating: false,
|
|
7030
6987
|
isVerified
|
|
7031
6988
|
}
|
|
7032
6989
|
),
|
|
7033
|
-
/* @__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: [
|
|
7034
6991
|
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
7035
6992
|
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { children: bio })
|
|
7036
6993
|
] }),
|
|
7037
|
-
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
6994
|
+
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
7038
6995
|
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { fontWeight: "bold", children: "Landowner Details" }),
|
|
7039
6996
|
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
7040
|
-
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(FeatureListItem_default, { ...responseRateFeature }),
|
|
7041
|
-
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(FeatureListItem_default, { ...responseTimeFeature })
|
|
6997
|
+
!!responseRateFeature && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(FeatureListItem_default, { ...responseRateFeature }),
|
|
6998
|
+
!!responseTimeFeature && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(FeatureListItem_default, { ...responseTimeFeature })
|
|
7042
6999
|
] })
|
|
7043
7000
|
] }),
|
|
7044
7001
|
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Button_default, { variant: "secondary", onClick: onMessageClick, children: messageButtonText }) })
|
|
@@ -7049,7 +7006,6 @@ var LandownerProfile = ({
|
|
|
7049
7006
|
}
|
|
7050
7007
|
);
|
|
7051
7008
|
};
|
|
7052
|
-
LandownerProfile.displayName = "LandownerProfile";
|
|
7053
7009
|
var LandownerProfile_default = LandownerProfile;
|
|
7054
7010
|
|
|
7055
7011
|
// src/ListingChat/ListingChat.tsx
|