@landtrustinc/design-system 1.2.18 → 1.2.19
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 +1 -1
- package/dist/index.js +86 -42
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2181,7 +2181,7 @@ type StarRatingProps = {
|
|
|
2181
2181
|
};
|
|
2182
2182
|
declare const StarRating: FC<StarRatingProps>;
|
|
2183
2183
|
|
|
2184
|
-
type TagChipVariant = 'primary' | 'success' | 'warning' | 'error';
|
|
2184
|
+
type TagChipVariant = 'primary' | 'success' | 'warning' | 'error' | 'active' | 'default';
|
|
2185
2185
|
|
|
2186
2186
|
type TagChipProps = HTMLAttributes<HTMLSpanElement> & {
|
|
2187
2187
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1319,7 +1319,22 @@ var FacebookSquare_default = SvgFacebookSquare;
|
|
|
1319
1319
|
|
|
1320
1320
|
// src/Icon/components/Farm.tsx
|
|
1321
1321
|
var import_jsx_runtime63 = require("@emotion/react/jsx-runtime");
|
|
1322
|
-
var SvgFarm = (props) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
1322
|
+
var SvgFarm = (props) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
1323
|
+
"svg",
|
|
1324
|
+
{
|
|
1325
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1326
|
+
fill: "none",
|
|
1327
|
+
viewBox: "0 0 26 26",
|
|
1328
|
+
...props,
|
|
1329
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
|
|
1330
|
+
"path",
|
|
1331
|
+
{
|
|
1332
|
+
fill: "currentColor",
|
|
1333
|
+
d: "M5.5 19.5v-9h3.603l.731-1.569a2.25 2.25 0 0 1 1.104-1.093A3.5 3.5 0 0 0 7.5 5 3.5 3.5 0 0 0 4 8.5v11A1.5 1.5 0 0 0 5.5 21h3.128a2.74 2.74 0 0 1-.619-1.5zM9.5 9h-4v-.5c0-1.103.897-2 2-2s2 .897 2 2zm2.56 1.075 3.44-1.506 3.44 1.506 1.56 3.344v5.831a.25.25 0 0 1-.25.25H17.5v-1.75c0-.69-.56-1.25-1.25-1.25h-1.5c-.69 0-1.25.56-1.25 1.25v1.75h-2.75a.25.25 0 0 1-.25-.25v-5.834l1.56-3.344zM16 7.15a1.25 1.25 0 0 0-1.003 0l-3.625 1.588a1.25 1.25 0 0 0-.631.615l-1.622 3.478A1.24 1.24 0 0 0 9 13.36v5.891c0 .966.784 1.75 1.75 1.75h9.5c.966 0 1.75-.784 1.75-1.75v-5.89c0-.182-.04-.363-.119-.529L20.26 9.353a1.25 1.25 0 0 0-.63-.615zm-2 5.6v1.5c0 .416.334.75.75.75h1.5c.416 0 .75-.334.75-.75v-1.5a.75.75 0 0 0-.75-.75h-1.5a.75.75 0 0 0-.75.75"
|
|
1334
|
+
}
|
|
1335
|
+
)
|
|
1336
|
+
}
|
|
1337
|
+
);
|
|
1323
1338
|
var Farm_default = SvgFarm;
|
|
1324
1339
|
|
|
1325
1340
|
// src/Icon/components/FarmSolid.tsx
|
|
@@ -5161,6 +5176,16 @@ var MessageBubble_default = MessageBubble;
|
|
|
5161
5176
|
// src/TagChip/TagChip.styles.ts
|
|
5162
5177
|
var import_react24 = require("@emotion/react");
|
|
5163
5178
|
var tagChipVariantStyles = {
|
|
5179
|
+
default: import_react24.css`
|
|
5180
|
+
background-color: var(--surface-page);
|
|
5181
|
+
border: 1px solid var(--border-primary);
|
|
5182
|
+
color: var(--text-primary);
|
|
5183
|
+
`,
|
|
5184
|
+
active: import_react24.css`
|
|
5185
|
+
background-color: var(--text-primary);
|
|
5186
|
+
border: 1px solid var(--border-secondary);
|
|
5187
|
+
color: var(--color-base-white);
|
|
5188
|
+
`,
|
|
5164
5189
|
primary: import_react24.css`
|
|
5165
5190
|
background-color: var(--surface-disabled);
|
|
5166
5191
|
border: 1px solid var(--surface-disabled);
|
|
@@ -6842,7 +6867,6 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6842
6867
|
var InfoBox_default = InfoBox;
|
|
6843
6868
|
|
|
6844
6869
|
// src/StarRating/StarRating.tsx
|
|
6845
|
-
var import_react42 = require("@emotion/react");
|
|
6846
6870
|
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6847
6871
|
var starSize = {
|
|
6848
6872
|
sm: {
|
|
@@ -6867,10 +6891,7 @@ var StarRating = ({
|
|
|
6867
6891
|
{
|
|
6868
6892
|
variant: "StarSolid",
|
|
6869
6893
|
size: starSize[size].size,
|
|
6870
|
-
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)"
|
|
6871
|
-
css: import_react42.css`
|
|
6872
|
-
${size === "md" && "width: 40px; height: 40px;"}
|
|
6873
|
-
`
|
|
6894
|
+
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)"
|
|
6874
6895
|
},
|
|
6875
6896
|
i
|
|
6876
6897
|
)
|
|
@@ -6922,7 +6943,7 @@ var UserCard = ({
|
|
|
6922
6943
|
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
6923
6944
|
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
6924
6945
|
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }) : subtitle),
|
|
6925
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(StarRating_default, { rating
|
|
6946
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(StarRating_default, { rating })
|
|
6926
6947
|
] })
|
|
6927
6948
|
] }),
|
|
6928
6949
|
isVerified && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
@@ -6963,6 +6984,15 @@ var ProfileSubtitle = ({
|
|
|
6963
6984
|
};
|
|
6964
6985
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
6965
6986
|
|
|
6987
|
+
// src/LandownerProfile/LandownerProfile.helpers.ts
|
|
6988
|
+
var hasTextContent = (html) => {
|
|
6989
|
+
if (!html) {
|
|
6990
|
+
return false;
|
|
6991
|
+
}
|
|
6992
|
+
const strippedText = html.replace(/<[^>]*>/g, "").trim();
|
|
6993
|
+
return strippedText.length > 0;
|
|
6994
|
+
};
|
|
6995
|
+
|
|
6966
6996
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
6967
6997
|
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
6968
6998
|
var LandownerProfile = ({
|
|
@@ -7024,7 +7054,7 @@ var LandownerProfile = ({
|
|
|
7024
7054
|
isVerified
|
|
7025
7055
|
}
|
|
7026
7056
|
),
|
|
7027
|
-
bio && /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
7057
|
+
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
7028
7058
|
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
7029
7059
|
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7030
7060
|
Text_default,
|
|
@@ -7061,11 +7091,11 @@ var LandownerProfile = ({
|
|
|
7061
7091
|
var LandownerProfile_default = LandownerProfile;
|
|
7062
7092
|
|
|
7063
7093
|
// src/ListingChat/ListingChat.tsx
|
|
7064
|
-
var
|
|
7094
|
+
var import_react43 = require("react");
|
|
7065
7095
|
|
|
7066
7096
|
// src/ListingChat/ListingChat.styles.ts
|
|
7067
|
-
var
|
|
7068
|
-
var containerStyles2 =
|
|
7097
|
+
var import_react42 = require("@emotion/react");
|
|
7098
|
+
var containerStyles2 = import_react42.css`
|
|
7069
7099
|
display: flex;
|
|
7070
7100
|
flex-direction: column;
|
|
7071
7101
|
gap: var(--spacing-4);
|
|
@@ -7073,13 +7103,13 @@ var containerStyles2 = import_react43.css`
|
|
|
7073
7103
|
border-radius: var(--radius-lg);
|
|
7074
7104
|
background: var(--surface-success);
|
|
7075
7105
|
`;
|
|
7076
|
-
var headerStyles =
|
|
7106
|
+
var headerStyles = import_react42.css`
|
|
7077
7107
|
display: flex;
|
|
7078
7108
|
align-items: flex-start;
|
|
7079
7109
|
justify-content: space-between;
|
|
7080
7110
|
gap: var(--spacing-2);
|
|
7081
7111
|
`;
|
|
7082
|
-
var chipsContainerStyles =
|
|
7112
|
+
var chipsContainerStyles = import_react42.css`
|
|
7083
7113
|
display: flex;
|
|
7084
7114
|
flex-wrap: wrap;
|
|
7085
7115
|
gap: var(--spacing-4);
|
|
@@ -7092,10 +7122,10 @@ var chipsContainerStyles = import_react43.css`
|
|
|
7092
7122
|
cursor: pointer;
|
|
7093
7123
|
}
|
|
7094
7124
|
`;
|
|
7095
|
-
var textAreaStyles =
|
|
7125
|
+
var textAreaStyles = import_react42.css`
|
|
7096
7126
|
min-height: 62px;
|
|
7097
7127
|
`;
|
|
7098
|
-
var inputWrapperStyles2 =
|
|
7128
|
+
var inputWrapperStyles2 = import_react42.css`
|
|
7099
7129
|
position: relative;
|
|
7100
7130
|
`;
|
|
7101
7131
|
|
|
@@ -7110,15 +7140,15 @@ var ListingChat = ({
|
|
|
7110
7140
|
disabled = false,
|
|
7111
7141
|
...rest
|
|
7112
7142
|
}) => {
|
|
7113
|
-
const [value, setValue] = (0,
|
|
7114
|
-
const handleSubmit = (0,
|
|
7143
|
+
const [value, setValue] = (0, import_react43.useState)("");
|
|
7144
|
+
const handleSubmit = (0, import_react43.useCallback)(() => {
|
|
7115
7145
|
const trimmed = value.trim();
|
|
7116
7146
|
if (!trimmed)
|
|
7117
7147
|
return;
|
|
7118
7148
|
onSubmit(trimmed);
|
|
7119
7149
|
setValue("");
|
|
7120
7150
|
}, [onSubmit, value]);
|
|
7121
|
-
const handleTagClick = (0,
|
|
7151
|
+
const handleTagClick = (0, import_react43.useCallback)(
|
|
7122
7152
|
(tag) => () => {
|
|
7123
7153
|
const trimmed = tag.trim();
|
|
7124
7154
|
if (!trimmed)
|
|
@@ -7170,7 +7200,7 @@ var ListingChat = ({
|
|
|
7170
7200
|
var ListingChat_default = ListingChat;
|
|
7171
7201
|
|
|
7172
7202
|
// src/Logo/Logo.tsx
|
|
7173
|
-
var
|
|
7203
|
+
var import_react44 = require("@emotion/react");
|
|
7174
7204
|
|
|
7175
7205
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
7176
7206
|
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
@@ -7392,7 +7422,7 @@ var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
|
7392
7422
|
|
|
7393
7423
|
// src/Logo/Logo.tsx
|
|
7394
7424
|
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7395
|
-
var logoStyles = (size) =>
|
|
7425
|
+
var logoStyles = (size) => import_react44.css`
|
|
7396
7426
|
width: ${space[size]};
|
|
7397
7427
|
height: auto;
|
|
7398
7428
|
display: block;
|
|
@@ -7425,13 +7455,13 @@ var Logo = ({
|
|
|
7425
7455
|
var Logo_default = Logo;
|
|
7426
7456
|
|
|
7427
7457
|
// src/Navigation/Navigation.styles.ts
|
|
7428
|
-
var
|
|
7429
|
-
var navigationStyles =
|
|
7458
|
+
var import_react45 = require("@emotion/react");
|
|
7459
|
+
var navigationStyles = import_react45.css`
|
|
7430
7460
|
width: 100%;
|
|
7431
7461
|
background-color: white;
|
|
7432
7462
|
border-bottom: 1px solid #e5e5e5;
|
|
7433
7463
|
`;
|
|
7434
|
-
var hamburgerButtonStyles =
|
|
7464
|
+
var hamburgerButtonStyles = import_react45.css`
|
|
7435
7465
|
cursor: pointer;
|
|
7436
7466
|
&:focus {
|
|
7437
7467
|
outline: 2px solid #4f46e5;
|
|
@@ -7442,7 +7472,7 @@ var hamburgerButtonStyles = import_react46.css`
|
|
|
7442
7472
|
display: none;
|
|
7443
7473
|
}
|
|
7444
7474
|
`;
|
|
7445
|
-
var centeredLogoStyles =
|
|
7475
|
+
var centeredLogoStyles = import_react45.css`
|
|
7446
7476
|
transform: translate(-50%, -50%);
|
|
7447
7477
|
max-width: 150px;
|
|
7448
7478
|
|
|
@@ -7450,27 +7480,27 @@ var centeredLogoStyles = import_react46.css`
|
|
|
7450
7480
|
display: none;
|
|
7451
7481
|
}
|
|
7452
7482
|
`;
|
|
7453
|
-
var desktopLogoStyles =
|
|
7483
|
+
var desktopLogoStyles = import_react45.css`
|
|
7454
7484
|
display: none;
|
|
7455
7485
|
|
|
7456
7486
|
@media (min-width: 768px) {
|
|
7457
7487
|
display: block;
|
|
7458
7488
|
}
|
|
7459
7489
|
`;
|
|
7460
|
-
var containerStyles3 =
|
|
7490
|
+
var containerStyles3 = import_react45.css`
|
|
7461
7491
|
@media (min-width: 768px) {
|
|
7462
7492
|
justify-content: space-between;
|
|
7463
7493
|
position: static;
|
|
7464
7494
|
}
|
|
7465
7495
|
`;
|
|
7466
|
-
var logoStyles2 =
|
|
7496
|
+
var logoStyles2 = import_react45.css`
|
|
7467
7497
|
width: 100%;
|
|
7468
7498
|
|
|
7469
7499
|
@media (min-width: 768px) {
|
|
7470
7500
|
width: initial;
|
|
7471
7501
|
}
|
|
7472
7502
|
`;
|
|
7473
|
-
var desktopNavStyles =
|
|
7503
|
+
var desktopNavStyles = import_react45.css`
|
|
7474
7504
|
display: none;
|
|
7475
7505
|
|
|
7476
7506
|
@media (min-width: 768px) {
|
|
@@ -7479,7 +7509,7 @@ var desktopNavStyles = import_react46.css`
|
|
|
7479
7509
|
gap: 32px;
|
|
7480
7510
|
}
|
|
7481
7511
|
`;
|
|
7482
|
-
var navLinksStyles =
|
|
7512
|
+
var navLinksStyles = import_react45.css`
|
|
7483
7513
|
display: flex;
|
|
7484
7514
|
align-items: center;
|
|
7485
7515
|
gap: 24px;
|
|
@@ -7487,7 +7517,7 @@ var navLinksStyles = import_react46.css`
|
|
|
7487
7517
|
margin: 0;
|
|
7488
7518
|
padding: 0;
|
|
7489
7519
|
`;
|
|
7490
|
-
var navLinkStyles =
|
|
7520
|
+
var navLinkStyles = import_react45.css`
|
|
7491
7521
|
text-decoration: none;
|
|
7492
7522
|
color: #374151;
|
|
7493
7523
|
font-weight: 500;
|
|
@@ -7503,7 +7533,7 @@ var navLinkStyles = import_react46.css`
|
|
|
7503
7533
|
outline-offset: 2px;
|
|
7504
7534
|
}
|
|
7505
7535
|
`;
|
|
7506
|
-
var avatarPlaceholderStyles =
|
|
7536
|
+
var avatarPlaceholderStyles = import_react45.css`
|
|
7507
7537
|
width: 32px;
|
|
7508
7538
|
height: 32px;
|
|
7509
7539
|
border-radius: 50%;
|
|
@@ -7605,8 +7635,8 @@ var Navigation = ({
|
|
|
7605
7635
|
var Navigation_default = Navigation;
|
|
7606
7636
|
|
|
7607
7637
|
// src/PackageCard/PackageCard.styles.ts
|
|
7608
|
-
var
|
|
7609
|
-
var cardContainerStyles3 =
|
|
7638
|
+
var import_react46 = require("@emotion/react");
|
|
7639
|
+
var cardContainerStyles3 = import_react46.css`
|
|
7610
7640
|
color: var(--text-primary);
|
|
7611
7641
|
position: relative;
|
|
7612
7642
|
width: 100%;
|
|
@@ -7623,14 +7653,14 @@ var cardContainerStyles3 = import_react47.css`
|
|
|
7623
7653
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
7624
7654
|
}
|
|
7625
7655
|
`;
|
|
7626
|
-
var imageContainerStyles =
|
|
7656
|
+
var imageContainerStyles = import_react46.css`
|
|
7627
7657
|
position: relative;
|
|
7628
7658
|
width: 100%;
|
|
7629
7659
|
height: 200px;
|
|
7630
7660
|
overflow: hidden;
|
|
7631
7661
|
border-radius: var(--spacing-4);
|
|
7632
7662
|
`;
|
|
7633
|
-
var imageStyles2 =
|
|
7663
|
+
var imageStyles2 = import_react46.css`
|
|
7634
7664
|
width: 100%;
|
|
7635
7665
|
height: 100%;
|
|
7636
7666
|
background-size: cover;
|
|
@@ -7638,13 +7668,13 @@ var imageStyles2 = import_react47.css`
|
|
|
7638
7668
|
background-repeat: no-repeat;
|
|
7639
7669
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
7640
7670
|
`;
|
|
7641
|
-
var badgeStyles2 =
|
|
7671
|
+
var badgeStyles2 = import_react46.css`
|
|
7642
7672
|
position: absolute;
|
|
7643
7673
|
top: var(--spacing-3);
|
|
7644
7674
|
left: var(--spacing-3);
|
|
7645
7675
|
z-index: 2;
|
|
7646
7676
|
`;
|
|
7647
|
-
var heartIconStyles =
|
|
7677
|
+
var heartIconStyles = import_react46.css`
|
|
7648
7678
|
position: absolute;
|
|
7649
7679
|
top: var(--spacing-3);
|
|
7650
7680
|
right: var(--spacing-3);
|
|
@@ -7666,7 +7696,7 @@ var heartIconStyles = import_react47.css`
|
|
|
7666
7696
|
transform: scale(1.1);
|
|
7667
7697
|
}
|
|
7668
7698
|
`;
|
|
7669
|
-
var contentStyles2 =
|
|
7699
|
+
var contentStyles2 = import_react46.css`
|
|
7670
7700
|
padding: var(--spacing-3);
|
|
7671
7701
|
`;
|
|
7672
7702
|
|
|
@@ -7781,8 +7811,8 @@ var PackageHeader = ({
|
|
|
7781
7811
|
var PackageHeader_default = PackageHeader;
|
|
7782
7812
|
|
|
7783
7813
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
7784
|
-
var
|
|
7785
|
-
var imageStyles3 =
|
|
7814
|
+
var import_react47 = require("@emotion/react");
|
|
7815
|
+
var imageStyles3 = import_react47.css`
|
|
7786
7816
|
flex: 1;
|
|
7787
7817
|
min-width: 0;
|
|
7788
7818
|
max-width: 100%;
|
|
@@ -7877,7 +7907,7 @@ var ReviewCard = ({
|
|
|
7877
7907
|
{
|
|
7878
7908
|
backgroundColor: "white",
|
|
7879
7909
|
borderRadius: "var(--spacing-4) 0",
|
|
7880
|
-
p: "var(--spacing-4)",
|
|
7910
|
+
p: "var(--spacing-4) 0",
|
|
7881
7911
|
display: "flex",
|
|
7882
7912
|
flexDirection: "column",
|
|
7883
7913
|
gap: "var(--spacing-4)",
|
|
@@ -7913,6 +7943,9 @@ var ReviewCard = ({
|
|
|
7913
7943
|
};
|
|
7914
7944
|
var ReviewCard_default = ReviewCard;
|
|
7915
7945
|
|
|
7946
|
+
// src/Reviews/Reviews.tsx
|
|
7947
|
+
var import_react48 = require("@emotion/react");
|
|
7948
|
+
|
|
7916
7949
|
// src/Reviews/components/ReviewItem.tsx
|
|
7917
7950
|
var import_jsx_runtime247 = require("@emotion/react/jsx-runtime");
|
|
7918
7951
|
var ReviewItem = ({ label, rating }) => {
|
|
@@ -7968,7 +8001,18 @@ var Reviews = ({
|
|
|
7968
8001
|
gap: "var(--spacing-2)",
|
|
7969
8002
|
children: [
|
|
7970
8003
|
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
7971
|
-
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
8004
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
8005
|
+
StarRating_default,
|
|
8006
|
+
{
|
|
8007
|
+
rating: Math.floor(averageRating),
|
|
8008
|
+
css: import_react48.css`
|
|
8009
|
+
> svg {
|
|
8010
|
+
height: 40px;
|
|
8011
|
+
width: 40px;
|
|
8012
|
+
}
|
|
8013
|
+
`
|
|
8014
|
+
}
|
|
8015
|
+
),
|
|
7972
8016
|
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
7973
8017
|
"Overall Rating \u2022 ",
|
|
7974
8018
|
totalReviews,
|