@landtrustinc/design-system 1.2.47 → 1.2.49
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 +42 -1
- package/dist/index.js +558 -492
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42,6 +42,7 @@ __export(src_exports, {
|
|
|
42
42
|
Column: () => Column_default,
|
|
43
43
|
ContactLandownerButton: () => ContactLandownerButton,
|
|
44
44
|
Container: () => Container_default,
|
|
45
|
+
CtaCard: () => CtaCard_default,
|
|
45
46
|
Divider: () => Divider_default,
|
|
46
47
|
FeatureList: () => FeatureList_default,
|
|
47
48
|
FeatureListItem: () => FeatureListItem_default,
|
|
@@ -6131,19 +6132,21 @@ var MessageBubble = ({
|
|
|
6131
6132
|
className,
|
|
6132
6133
|
children
|
|
6133
6134
|
}) => {
|
|
6134
|
-
const hasAvatar = !!avatarSrc;
|
|
6135
|
+
const hasAvatar = !!avatarSrc || !!author;
|
|
6136
|
+
const firstName = author == null ? void 0 : author.split(" ")[0];
|
|
6135
6137
|
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { className, css: getRootStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { css: getOuterWrapperStyles(variant), children: [
|
|
6136
6138
|
hasAvatar && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { css: avatarWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6137
6139
|
Avatar_default,
|
|
6138
6140
|
{
|
|
6139
|
-
type: "image",
|
|
6141
|
+
type: avatarSrc ? "image" : "text",
|
|
6140
6142
|
src: avatarSrc,
|
|
6143
|
+
text: author,
|
|
6141
6144
|
alt: author || "Avatar",
|
|
6142
6145
|
size: "md"
|
|
6143
6146
|
}
|
|
6144
6147
|
) }),
|
|
6145
6148
|
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { css: contentWrapperStyles, children: [
|
|
6146
|
-
|
|
6149
|
+
firstName && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { css: getHeaderStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Text_default, { size: "sm", fontWeight: "semibold", color: "var(--text-primary)", children: firstName }) }),
|
|
6147
6150
|
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)("div", { css: getBubbleStyles(variant), children: [
|
|
6148
6151
|
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { css: contentStyles, children }),
|
|
6149
6152
|
timestamp && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
@@ -6643,6 +6646,7 @@ var ChatWidget = ({
|
|
|
6643
6646
|
const scrollRef = (0, import_react35.useRef)(null);
|
|
6644
6647
|
const savedScrollPosition = (0, import_react35.useRef)(0);
|
|
6645
6648
|
const previousMessagesLength = (0, import_react35.useRef)(messages.length);
|
|
6649
|
+
const previousMessagesRef = (0, import_react35.useRef)(messages);
|
|
6646
6650
|
const isControlled = typeof expanded === "boolean";
|
|
6647
6651
|
const [internalExpanded, setInternalExpanded] = (0, import_react35.useState)(defaultExpanded);
|
|
6648
6652
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
@@ -6671,9 +6675,11 @@ var ChatWidget = ({
|
|
|
6671
6675
|
const el = scrollRef.current;
|
|
6672
6676
|
if (!el || !isExpanded)
|
|
6673
6677
|
return;
|
|
6674
|
-
const
|
|
6678
|
+
const messagesLengthChanged = messages.length !== previousMessagesLength.current;
|
|
6679
|
+
const messagesContentChanged = messages !== previousMessagesRef.current;
|
|
6675
6680
|
previousMessagesLength.current = messages.length;
|
|
6676
|
-
|
|
6681
|
+
previousMessagesRef.current = messages;
|
|
6682
|
+
if (messagesLengthChanged || messagesContentChanged || isThinking) {
|
|
6677
6683
|
requestAnimationFrame(() => {
|
|
6678
6684
|
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
6679
6685
|
savedScrollPosition.current = el.scrollHeight;
|
|
@@ -6831,10 +6837,69 @@ var ChatWidget = ({
|
|
|
6831
6837
|
};
|
|
6832
6838
|
var ChatWidget_default = ChatWidget;
|
|
6833
6839
|
|
|
6834
|
-
// src/
|
|
6840
|
+
// src/CtaCard/CtaCard.tsx
|
|
6841
|
+
var import_react37 = require("react");
|
|
6842
|
+
|
|
6843
|
+
// src/CtaCard/CtaCard.styles.ts
|
|
6835
6844
|
var import_react36 = require("@emotion/react");
|
|
6836
|
-
var
|
|
6845
|
+
var containerStyles2 = import_react36.css`
|
|
6846
|
+
display: flex;
|
|
6847
|
+
flex-direction: column;
|
|
6848
|
+
gap: var(--spacing-3);
|
|
6849
|
+
padding: var(--spacing-4);
|
|
6850
|
+
border-radius: var(--radius-lg);
|
|
6851
|
+
background-color: var(--surface-success);
|
|
6852
|
+
text-align: center;
|
|
6853
|
+
`;
|
|
6854
|
+
var titleStyles = import_react36.css`
|
|
6855
|
+
color: var(--color-primary-500);
|
|
6856
|
+
`;
|
|
6857
|
+
var descriptionStyles = import_react36.css`
|
|
6858
|
+
color: var(--color-primary-400);
|
|
6859
|
+
`;
|
|
6860
|
+
var buttonWrapperStyles = import_react36.css`
|
|
6861
|
+
display: flex;
|
|
6862
|
+
justify-content: center;
|
|
6863
|
+
margin-top: var(--spacing-2);
|
|
6864
|
+
`;
|
|
6865
|
+
|
|
6866
|
+
// src/CtaCard/CtaCard.tsx
|
|
6837
6867
|
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6868
|
+
var CtaCard = ({
|
|
6869
|
+
title,
|
|
6870
|
+
description,
|
|
6871
|
+
ctaLabel,
|
|
6872
|
+
ctaUrl,
|
|
6873
|
+
onDisplay,
|
|
6874
|
+
onCtaClick,
|
|
6875
|
+
className
|
|
6876
|
+
}) => {
|
|
6877
|
+
(0, import_react37.useEffect)(() => {
|
|
6878
|
+
onDisplay == null ? void 0 : onDisplay();
|
|
6879
|
+
}, [onDisplay]);
|
|
6880
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(Box_default, { css: containerStyles2, className, children: [
|
|
6881
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Text_default, { size: "sm", fontWeight: "bold", css: titleStyles, children: title }),
|
|
6882
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Text_default, { size: "xs", fontWeight: "semibold", css: descriptionStyles, children: description }),
|
|
6883
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { css: buttonWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6884
|
+
Button_default,
|
|
6885
|
+
{
|
|
6886
|
+
as: "a",
|
|
6887
|
+
href: ctaUrl,
|
|
6888
|
+
variant: "primary",
|
|
6889
|
+
size: "base",
|
|
6890
|
+
onClick: onCtaClick,
|
|
6891
|
+
children: ctaLabel
|
|
6892
|
+
}
|
|
6893
|
+
) })
|
|
6894
|
+
] });
|
|
6895
|
+
};
|
|
6896
|
+
CtaCard.displayName = "CtaCard";
|
|
6897
|
+
var CtaCard_default = CtaCard;
|
|
6898
|
+
|
|
6899
|
+
// src/FeatureList/components/FeatureListItem.tsx
|
|
6900
|
+
var import_react38 = require("@emotion/react");
|
|
6901
|
+
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
6902
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6838
6903
|
var FeatureListItem = ({
|
|
6839
6904
|
iconVariant,
|
|
6840
6905
|
label,
|
|
@@ -6849,8 +6914,8 @@ var FeatureListItem = ({
|
|
|
6849
6914
|
}) => {
|
|
6850
6915
|
const iconDimensions = IconSizeMap[iconSize];
|
|
6851
6916
|
if (isLoading) {
|
|
6852
|
-
return /* @__PURE__ */ (0,
|
|
6853
|
-
/* @__PURE__ */ (0,
|
|
6917
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
6918
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6854
6919
|
Box_default,
|
|
6855
6920
|
{
|
|
6856
6921
|
display: "flex",
|
|
@@ -6860,7 +6925,7 @@ var FeatureListItem = ({
|
|
|
6860
6925
|
className,
|
|
6861
6926
|
...rest,
|
|
6862
6927
|
children: [
|
|
6863
|
-
/* @__PURE__ */ (0,
|
|
6928
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6864
6929
|
import_react_loading_skeleton.default,
|
|
6865
6930
|
{
|
|
6866
6931
|
circle: true,
|
|
@@ -6869,24 +6934,24 @@ var FeatureListItem = ({
|
|
|
6869
6934
|
borderRadius: 4
|
|
6870
6935
|
}
|
|
6871
6936
|
),
|
|
6872
|
-
/* @__PURE__ */ (0,
|
|
6937
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
6873
6938
|
]
|
|
6874
6939
|
}
|
|
6875
6940
|
),
|
|
6876
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6877
|
-
/* @__PURE__ */ (0,
|
|
6878
|
-
/* @__PURE__ */ (0,
|
|
6941
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
6942
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
6943
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(import_react_loading_skeleton.default, { width: 150, height: 14, borderRadius: 4 })
|
|
6879
6944
|
] })
|
|
6880
6945
|
] });
|
|
6881
6946
|
}
|
|
6882
|
-
return /* @__PURE__ */ (0,
|
|
6883
|
-
/* @__PURE__ */ (0,
|
|
6947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: isInline ? /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { as: "span", children: [
|
|
6948
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { as: "span", fontWeight: "bold", children: [
|
|
6884
6949
|
label,
|
|
6885
6950
|
" "
|
|
6886
6951
|
] }),
|
|
6887
6952
|
subtitle
|
|
6888
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
6889
|
-
/* @__PURE__ */ (0,
|
|
6953
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(import_jsx_runtime232.Fragment, { children: [
|
|
6954
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6890
6955
|
Box_default,
|
|
6891
6956
|
{
|
|
6892
6957
|
display: "flex",
|
|
@@ -6895,33 +6960,33 @@ var FeatureListItem = ({
|
|
|
6895
6960
|
className,
|
|
6896
6961
|
...rest,
|
|
6897
6962
|
children: [
|
|
6898
|
-
iconVariant && /* @__PURE__ */ (0,
|
|
6963
|
+
iconVariant && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6899
6964
|
Icon_default,
|
|
6900
6965
|
{
|
|
6901
6966
|
variant: iconVariant,
|
|
6902
6967
|
size: iconSize,
|
|
6903
6968
|
fill: iconColor,
|
|
6904
|
-
css:
|
|
6969
|
+
css: import_react38.css`
|
|
6905
6970
|
flex-shrink: 0;
|
|
6906
6971
|
`
|
|
6907
6972
|
}
|
|
6908
6973
|
),
|
|
6909
|
-
/* @__PURE__ */ (0,
|
|
6974
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { fontWeight: "semibold", size: labelSize, children: label })
|
|
6910
6975
|
]
|
|
6911
6976
|
}
|
|
6912
6977
|
),
|
|
6913
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6914
|
-
/* @__PURE__ */ (0,
|
|
6915
|
-
/* @__PURE__ */ (0,
|
|
6978
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
6979
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
6980
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
6916
6981
|
] })
|
|
6917
6982
|
] }) });
|
|
6918
6983
|
};
|
|
6919
6984
|
var FeatureListItem_default = FeatureListItem;
|
|
6920
6985
|
|
|
6921
6986
|
// src/FeatureList/FeatureList.tsx
|
|
6922
|
-
var
|
|
6987
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
6923
6988
|
var FeatureList = ({ heading, items, className }) => {
|
|
6924
|
-
return /* @__PURE__ */ (0,
|
|
6989
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6925
6990
|
Box_default,
|
|
6926
6991
|
{
|
|
6927
6992
|
display: "flex",
|
|
@@ -6929,8 +6994,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6929
6994
|
gap: "var(--spacing-2)",
|
|
6930
6995
|
className,
|
|
6931
6996
|
children: [
|
|
6932
|
-
heading && /* @__PURE__ */ (0,
|
|
6933
|
-
/* @__PURE__ */ (0,
|
|
6997
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
6998
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(FeatureListItem_default, { ...item }, `${item.iconVariant}-${index}`)) })
|
|
6934
6999
|
]
|
|
6935
7000
|
}
|
|
6936
7001
|
);
|
|
@@ -6938,8 +7003,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6938
7003
|
var FeatureList_default = FeatureList;
|
|
6939
7004
|
|
|
6940
7005
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
6941
|
-
var
|
|
6942
|
-
var cardContainerStyles =
|
|
7006
|
+
var import_react39 = require("@emotion/react");
|
|
7007
|
+
var cardContainerStyles = import_react39.css`
|
|
6943
7008
|
position: relative;
|
|
6944
7009
|
height: 335px;
|
|
6945
7010
|
|
|
@@ -6947,12 +7012,12 @@ var cardContainerStyles = import_react37.css`
|
|
|
6947
7012
|
height: 480px;
|
|
6948
7013
|
}
|
|
6949
7014
|
`;
|
|
6950
|
-
var cardContentStyles =
|
|
7015
|
+
var cardContentStyles = import_react39.css`
|
|
6951
7016
|
position: relative;
|
|
6952
7017
|
border-radius: var(--spacing-4);
|
|
6953
7018
|
overflow: hidden;
|
|
6954
7019
|
`;
|
|
6955
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
7020
|
+
var getBackgroundWithGradient = (imageUrl) => import_react39.css`
|
|
6956
7021
|
background-image: linear-gradient(
|
|
6957
7022
|
180deg,
|
|
6958
7023
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -6966,7 +7031,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react37.css`
|
|
|
6966
7031
|
`;
|
|
6967
7032
|
|
|
6968
7033
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
6969
|
-
var
|
|
7034
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
6970
7035
|
var FieldNoteCard = ({
|
|
6971
7036
|
backgroundImage,
|
|
6972
7037
|
title,
|
|
@@ -6975,14 +7040,14 @@ var FieldNoteCard = ({
|
|
|
6975
7040
|
className,
|
|
6976
7041
|
...rest
|
|
6977
7042
|
}) => {
|
|
6978
|
-
return /* @__PURE__ */ (0,
|
|
7043
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6979
7044
|
Box_default,
|
|
6980
7045
|
{
|
|
6981
7046
|
display: "flex",
|
|
6982
7047
|
css: cardContainerStyles,
|
|
6983
7048
|
className,
|
|
6984
7049
|
...rest,
|
|
6985
|
-
children: /* @__PURE__ */ (0,
|
|
7050
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6986
7051
|
Box_default,
|
|
6987
7052
|
{
|
|
6988
7053
|
display: "flex",
|
|
@@ -6990,9 +7055,9 @@ var FieldNoteCard = ({
|
|
|
6990
7055
|
justifyContent: "flex-end",
|
|
6991
7056
|
p: 6,
|
|
6992
7057
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
6993
|
-
children: /* @__PURE__ */ (0,
|
|
6994
|
-
/* @__PURE__ */ (0,
|
|
6995
|
-
/* @__PURE__ */ (0,
|
|
7058
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
7059
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
7060
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
6996
7061
|
] })
|
|
6997
7062
|
}
|
|
6998
7063
|
)
|
|
@@ -7002,14 +7067,14 @@ var FieldNoteCard = ({
|
|
|
7002
7067
|
var FieldNoteCard_default = FieldNoteCard;
|
|
7003
7068
|
|
|
7004
7069
|
// src/Form/FormField.tsx
|
|
7005
|
-
var
|
|
7006
|
-
var
|
|
7007
|
-
var fieldContainerStyles =
|
|
7070
|
+
var import_react40 = require("@emotion/react");
|
|
7071
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
7072
|
+
var fieldContainerStyles = import_react40.css`
|
|
7008
7073
|
display: flex;
|
|
7009
7074
|
flex-direction: column;
|
|
7010
7075
|
gap: ${space["2"]};
|
|
7011
7076
|
`;
|
|
7012
|
-
var labelStyles2 =
|
|
7077
|
+
var labelStyles2 = import_react40.css`
|
|
7013
7078
|
font-family: ${fonts.base};
|
|
7014
7079
|
font-size: ${fontSizes.sm};
|
|
7015
7080
|
font-weight: ${fontWeights.medium};
|
|
@@ -7017,17 +7082,17 @@ var labelStyles2 = import_react38.css`
|
|
|
7017
7082
|
color: ${colors.gray["900"]};
|
|
7018
7083
|
margin-bottom: ${space["1"]};
|
|
7019
7084
|
`;
|
|
7020
|
-
var requiredIndicatorStyles =
|
|
7085
|
+
var requiredIndicatorStyles = import_react40.css`
|
|
7021
7086
|
color: ${colors.red["500"]};
|
|
7022
7087
|
margin-left: ${space["1"]};
|
|
7023
7088
|
`;
|
|
7024
|
-
var helpTextStyles =
|
|
7089
|
+
var helpTextStyles = import_react40.css`
|
|
7025
7090
|
font-family: ${fonts.base};
|
|
7026
7091
|
font-size: ${fontSizes.sm};
|
|
7027
7092
|
line-height: ${lineHeights.tight};
|
|
7028
7093
|
color: ${colors.gray["600"]};
|
|
7029
7094
|
`;
|
|
7030
|
-
var errorTextStyles =
|
|
7095
|
+
var errorTextStyles = import_react40.css`
|
|
7031
7096
|
font-family: ${fonts.base};
|
|
7032
7097
|
font-size: ${fontSizes.sm};
|
|
7033
7098
|
line-height: ${lineHeights.tight};
|
|
@@ -7036,7 +7101,7 @@ var errorTextStyles = import_react38.css`
|
|
|
7036
7101
|
align-items: center;
|
|
7037
7102
|
gap: ${space["1"]};
|
|
7038
7103
|
`;
|
|
7039
|
-
var successTextStyles =
|
|
7104
|
+
var successTextStyles = import_react40.css`
|
|
7040
7105
|
font-family: ${fonts.base};
|
|
7041
7106
|
font-size: ${fontSizes.sm};
|
|
7042
7107
|
line-height: ${lineHeights.tight};
|
|
@@ -7045,7 +7110,7 @@ var successTextStyles = import_react38.css`
|
|
|
7045
7110
|
align-items: center;
|
|
7046
7111
|
gap: ${space["1"]};
|
|
7047
7112
|
`;
|
|
7048
|
-
var visuallyHiddenStyles =
|
|
7113
|
+
var visuallyHiddenStyles = import_react40.css`
|
|
7049
7114
|
position: absolute;
|
|
7050
7115
|
width: 1px;
|
|
7051
7116
|
height: 1px;
|
|
@@ -7070,21 +7135,21 @@ var FormField = ({
|
|
|
7070
7135
|
const hasError = !!error;
|
|
7071
7136
|
const hasSuccess = !!success && !hasError;
|
|
7072
7137
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
7073
|
-
return /* @__PURE__ */ (0,
|
|
7074
|
-
label && /* @__PURE__ */ (0,
|
|
7138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
7139
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
7075
7140
|
"label",
|
|
7076
7141
|
{
|
|
7077
7142
|
htmlFor,
|
|
7078
7143
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
7079
7144
|
children: [
|
|
7080
7145
|
label,
|
|
7081
|
-
required && /* @__PURE__ */ (0,
|
|
7146
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
7082
7147
|
]
|
|
7083
7148
|
}
|
|
7084
7149
|
),
|
|
7085
7150
|
children,
|
|
7086
|
-
hasError && /* @__PURE__ */ (0,
|
|
7087
|
-
/* @__PURE__ */ (0,
|
|
7151
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
7152
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7088
7153
|
"path",
|
|
7089
7154
|
{
|
|
7090
7155
|
fillRule: "evenodd",
|
|
@@ -7094,8 +7159,8 @@ var FormField = ({
|
|
|
7094
7159
|
) }),
|
|
7095
7160
|
error
|
|
7096
7161
|
] }),
|
|
7097
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
7098
|
-
/* @__PURE__ */ (0,
|
|
7162
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)("div", { css: successTextStyles, children: [
|
|
7163
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7099
7164
|
"path",
|
|
7100
7165
|
{
|
|
7101
7166
|
fillRule: "evenodd",
|
|
@@ -7105,15 +7170,15 @@ var FormField = ({
|
|
|
7105
7170
|
) }),
|
|
7106
7171
|
success
|
|
7107
7172
|
] }),
|
|
7108
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
7173
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
7109
7174
|
] });
|
|
7110
7175
|
};
|
|
7111
7176
|
|
|
7112
7177
|
// src/Form/Input.tsx
|
|
7113
|
-
var
|
|
7114
|
-
var
|
|
7115
|
-
var
|
|
7116
|
-
var inputStyles =
|
|
7178
|
+
var import_react41 = require("@emotion/react");
|
|
7179
|
+
var import_react42 = require("react");
|
|
7180
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7181
|
+
var inputStyles = import_react41.css`
|
|
7117
7182
|
position: relative;
|
|
7118
7183
|
width: 100%;
|
|
7119
7184
|
font-family: ${fonts.base};
|
|
@@ -7150,19 +7215,19 @@ var inputStyles = import_react39.css`
|
|
|
7150
7215
|
}
|
|
7151
7216
|
`;
|
|
7152
7217
|
var sizeStyles = {
|
|
7153
|
-
sm:
|
|
7218
|
+
sm: import_react41.css`
|
|
7154
7219
|
padding: ${space["2"]} ${space["3"]};
|
|
7155
7220
|
font-size: ${fontSizes.sm};
|
|
7156
7221
|
line-height: ${lineHeights.tight};
|
|
7157
7222
|
height: ${space["8"]};
|
|
7158
7223
|
`,
|
|
7159
|
-
md:
|
|
7224
|
+
md: import_react41.css`
|
|
7160
7225
|
padding: ${space["3"]} ${space["4"]};
|
|
7161
7226
|
font-size: ${fontSizes.base};
|
|
7162
7227
|
line-height: ${lineHeights.normal};
|
|
7163
7228
|
height: ${space["10"]};
|
|
7164
7229
|
`,
|
|
7165
|
-
lg:
|
|
7230
|
+
lg: import_react41.css`
|
|
7166
7231
|
padding: ${space["4"]} ${space["5"]};
|
|
7167
7232
|
font-size: ${fontSizes.lg};
|
|
7168
7233
|
line-height: ${lineHeights.normal};
|
|
@@ -7170,8 +7235,8 @@ var sizeStyles = {
|
|
|
7170
7235
|
`
|
|
7171
7236
|
};
|
|
7172
7237
|
var variantStyles = {
|
|
7173
|
-
default:
|
|
7174
|
-
error:
|
|
7238
|
+
default: import_react41.css``,
|
|
7239
|
+
error: import_react41.css`
|
|
7175
7240
|
border-color: ${colors.red["500"]};
|
|
7176
7241
|
|
|
7177
7242
|
&:focus {
|
|
@@ -7179,7 +7244,7 @@ var variantStyles = {
|
|
|
7179
7244
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
7180
7245
|
}
|
|
7181
7246
|
`,
|
|
7182
|
-
success:
|
|
7247
|
+
success: import_react41.css`
|
|
7183
7248
|
border-color: ${colors.accent.green};
|
|
7184
7249
|
|
|
7185
7250
|
&:focus {
|
|
@@ -7188,7 +7253,7 @@ var variantStyles = {
|
|
|
7188
7253
|
}
|
|
7189
7254
|
`
|
|
7190
7255
|
};
|
|
7191
|
-
var inputWithIconStyles =
|
|
7256
|
+
var inputWithIconStyles = import_react41.css`
|
|
7192
7257
|
padding-left: ${space["10"]};
|
|
7193
7258
|
|
|
7194
7259
|
&.has-end-icon {
|
|
@@ -7199,7 +7264,7 @@ var inputWithIconStyles = import_react39.css`
|
|
|
7199
7264
|
padding-left: ${space["10"]};
|
|
7200
7265
|
}
|
|
7201
7266
|
`;
|
|
7202
|
-
var iconContainerStyles =
|
|
7267
|
+
var iconContainerStyles = import_react41.css`
|
|
7203
7268
|
position: absolute;
|
|
7204
7269
|
top: 50%;
|
|
7205
7270
|
transform: translateY(-50%);
|
|
@@ -7210,20 +7275,20 @@ var iconContainerStyles = import_react39.css`
|
|
|
7210
7275
|
pointer-events: none;
|
|
7211
7276
|
z-index: 1;
|
|
7212
7277
|
`;
|
|
7213
|
-
var startIconStyles =
|
|
7278
|
+
var startIconStyles = import_react41.css`
|
|
7214
7279
|
${iconContainerStyles}
|
|
7215
7280
|
left: ${space["3"]};
|
|
7216
7281
|
`;
|
|
7217
|
-
var endIconStyles =
|
|
7282
|
+
var endIconStyles = import_react41.css`
|
|
7218
7283
|
${iconContainerStyles}
|
|
7219
7284
|
right: ${space["3"]};
|
|
7220
7285
|
`;
|
|
7221
|
-
var inputWrapperStyles =
|
|
7286
|
+
var inputWrapperStyles = import_react41.css`
|
|
7222
7287
|
position: relative;
|
|
7223
7288
|
display: inline-block;
|
|
7224
7289
|
width: 100%;
|
|
7225
7290
|
`;
|
|
7226
|
-
var Input = (0,
|
|
7291
|
+
var Input = (0, import_react42.forwardRef)(
|
|
7227
7292
|
({
|
|
7228
7293
|
size = "md",
|
|
7229
7294
|
variant = "default",
|
|
@@ -7242,9 +7307,9 @@ var Input = (0, import_react40.forwardRef)(
|
|
|
7242
7307
|
hasEndIcon && "has-end-icon",
|
|
7243
7308
|
className
|
|
7244
7309
|
].filter(Boolean).join(" ");
|
|
7245
|
-
return /* @__PURE__ */ (0,
|
|
7246
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
7247
|
-
/* @__PURE__ */ (0,
|
|
7310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
7311
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
7312
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
7248
7313
|
"input",
|
|
7249
7314
|
{
|
|
7250
7315
|
ref,
|
|
@@ -7261,17 +7326,17 @@ var Input = (0, import_react40.forwardRef)(
|
|
|
7261
7326
|
...props
|
|
7262
7327
|
}
|
|
7263
7328
|
),
|
|
7264
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
7329
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
7265
7330
|
] });
|
|
7266
7331
|
}
|
|
7267
7332
|
);
|
|
7268
7333
|
Input.displayName = "Input";
|
|
7269
7334
|
|
|
7270
7335
|
// src/Form/Select.tsx
|
|
7271
|
-
var
|
|
7272
|
-
var
|
|
7273
|
-
var
|
|
7274
|
-
var selectStyles =
|
|
7336
|
+
var import_react43 = require("@emotion/react");
|
|
7337
|
+
var import_react44 = require("react");
|
|
7338
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
7339
|
+
var selectStyles = import_react43.css`
|
|
7275
7340
|
position: relative;
|
|
7276
7341
|
width: 100%;
|
|
7277
7342
|
font-family: ${fonts.base};
|
|
@@ -7310,19 +7375,19 @@ var selectStyles = import_react41.css`
|
|
|
7310
7375
|
}
|
|
7311
7376
|
`;
|
|
7312
7377
|
var sizeStyles2 = {
|
|
7313
|
-
sm:
|
|
7378
|
+
sm: import_react43.css`
|
|
7314
7379
|
padding: ${space["2"]} ${space["3"]};
|
|
7315
7380
|
font-size: ${fontSizes.sm};
|
|
7316
7381
|
line-height: ${lineHeights.tight};
|
|
7317
7382
|
height: ${space["8"]};
|
|
7318
7383
|
`,
|
|
7319
|
-
md:
|
|
7384
|
+
md: import_react43.css`
|
|
7320
7385
|
padding: ${space["3"]} ${space["4"]};
|
|
7321
7386
|
font-size: ${fontSizes.base};
|
|
7322
7387
|
line-height: ${lineHeights.normal};
|
|
7323
7388
|
height: ${space["10"]};
|
|
7324
7389
|
`,
|
|
7325
|
-
lg:
|
|
7390
|
+
lg: import_react43.css`
|
|
7326
7391
|
padding: ${space["4"]} ${space["5"]};
|
|
7327
7392
|
font-size: ${fontSizes.lg};
|
|
7328
7393
|
line-height: ${lineHeights.normal};
|
|
@@ -7330,8 +7395,8 @@ var sizeStyles2 = {
|
|
|
7330
7395
|
`
|
|
7331
7396
|
};
|
|
7332
7397
|
var variantStyles2 = {
|
|
7333
|
-
default:
|
|
7334
|
-
error:
|
|
7398
|
+
default: import_react43.css``,
|
|
7399
|
+
error: import_react43.css`
|
|
7335
7400
|
border-color: ${colors.red["500"]};
|
|
7336
7401
|
|
|
7337
7402
|
&:focus {
|
|
@@ -7339,7 +7404,7 @@ var variantStyles2 = {
|
|
|
7339
7404
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
7340
7405
|
}
|
|
7341
7406
|
`,
|
|
7342
|
-
success:
|
|
7407
|
+
success: import_react43.css`
|
|
7343
7408
|
border-color: ${colors.accent.green};
|
|
7344
7409
|
|
|
7345
7410
|
&:focus {
|
|
@@ -7348,7 +7413,7 @@ var variantStyles2 = {
|
|
|
7348
7413
|
}
|
|
7349
7414
|
`
|
|
7350
7415
|
};
|
|
7351
|
-
var optionStyles =
|
|
7416
|
+
var optionStyles = import_react43.css`
|
|
7352
7417
|
background-color: ${colors.light["100"]};
|
|
7353
7418
|
color: ${colors.gray["900"]};
|
|
7354
7419
|
|
|
@@ -7357,7 +7422,7 @@ var optionStyles = import_react41.css`
|
|
|
7357
7422
|
background-color: ${colors.gray["100"]};
|
|
7358
7423
|
}
|
|
7359
7424
|
`;
|
|
7360
|
-
var Select = (0,
|
|
7425
|
+
var Select = (0, import_react44.forwardRef)(
|
|
7361
7426
|
({
|
|
7362
7427
|
size = "md",
|
|
7363
7428
|
variant = "default",
|
|
@@ -7367,7 +7432,7 @@ var Select = (0, import_react42.forwardRef)(
|
|
|
7367
7432
|
className = "",
|
|
7368
7433
|
...props
|
|
7369
7434
|
}, ref) => {
|
|
7370
|
-
return /* @__PURE__ */ (0,
|
|
7435
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
7371
7436
|
"select",
|
|
7372
7437
|
{
|
|
7373
7438
|
ref,
|
|
@@ -7376,8 +7441,8 @@ var Select = (0, import_react42.forwardRef)(
|
|
|
7376
7441
|
className,
|
|
7377
7442
|
...props,
|
|
7378
7443
|
children: [
|
|
7379
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
7380
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
7444
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime237.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
7445
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
7381
7446
|
"option",
|
|
7382
7447
|
{
|
|
7383
7448
|
value: option.value,
|
|
@@ -7395,10 +7460,10 @@ var Select = (0, import_react42.forwardRef)(
|
|
|
7395
7460
|
Select.displayName = "Select";
|
|
7396
7461
|
|
|
7397
7462
|
// src/Grid/Column.tsx
|
|
7398
|
-
var
|
|
7463
|
+
var import_react46 = require("@emotion/react");
|
|
7399
7464
|
|
|
7400
7465
|
// src/Grid/utils.ts
|
|
7401
|
-
var
|
|
7466
|
+
var import_react45 = require("@emotion/react");
|
|
7402
7467
|
var LayoutTokens = {
|
|
7403
7468
|
containers: {
|
|
7404
7469
|
sm: screens.sm,
|
|
@@ -7438,11 +7503,11 @@ var getResponsiveValue = (value) => {
|
|
|
7438
7503
|
var generateGridColumns = (columns) => {
|
|
7439
7504
|
const baseColumns = getResponsiveValue(columns);
|
|
7440
7505
|
if (typeof columns === "number") {
|
|
7441
|
-
return
|
|
7506
|
+
return import_react45.css`
|
|
7442
7507
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
7443
7508
|
`;
|
|
7444
7509
|
}
|
|
7445
|
-
return
|
|
7510
|
+
return import_react45.css`
|
|
7446
7511
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
7447
7512
|
|
|
7448
7513
|
${media.sm} {
|
|
@@ -7474,11 +7539,11 @@ var generateGridColumns = (columns) => {
|
|
|
7474
7539
|
var generateGapStyles = (gap2) => {
|
|
7475
7540
|
const baseGap = getResponsiveValue(gap2);
|
|
7476
7541
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
7477
|
-
return
|
|
7542
|
+
return import_react45.css`
|
|
7478
7543
|
gap: ${space[gap2]};
|
|
7479
7544
|
`;
|
|
7480
7545
|
}
|
|
7481
|
-
return
|
|
7546
|
+
return import_react45.css`
|
|
7482
7547
|
gap: ${space[baseGap]};
|
|
7483
7548
|
|
|
7484
7549
|
${media.sm} {
|
|
@@ -7501,11 +7566,11 @@ var generateGapStyles = (gap2) => {
|
|
|
7501
7566
|
var generateRowGapStyles = (rowGap) => {
|
|
7502
7567
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
7503
7568
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
7504
|
-
return
|
|
7569
|
+
return import_react45.css`
|
|
7505
7570
|
row-gap: ${space[rowGap]};
|
|
7506
7571
|
`;
|
|
7507
7572
|
}
|
|
7508
|
-
return
|
|
7573
|
+
return import_react45.css`
|
|
7509
7574
|
row-gap: ${space[baseRowGap]};
|
|
7510
7575
|
|
|
7511
7576
|
${media.sm} {
|
|
@@ -7528,11 +7593,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
7528
7593
|
var generateColumnGapStyles = (columnGap) => {
|
|
7529
7594
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
7530
7595
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
7531
|
-
return
|
|
7596
|
+
return import_react45.css`
|
|
7532
7597
|
column-gap: ${space[columnGap]};
|
|
7533
7598
|
`;
|
|
7534
7599
|
}
|
|
7535
|
-
return
|
|
7600
|
+
return import_react45.css`
|
|
7536
7601
|
column-gap: ${space[baseColumnGap]};
|
|
7537
7602
|
|
|
7538
7603
|
${media.sm} {
|
|
@@ -7555,11 +7620,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
7555
7620
|
var generateColumnSpan = (span) => {
|
|
7556
7621
|
const baseSpan = getResponsiveValue(span);
|
|
7557
7622
|
if (typeof span === "string" || typeof span === "number") {
|
|
7558
|
-
return
|
|
7623
|
+
return import_react45.css`
|
|
7559
7624
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
7560
7625
|
`;
|
|
7561
7626
|
}
|
|
7562
|
-
return
|
|
7627
|
+
return import_react45.css`
|
|
7563
7628
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
7564
7629
|
|
|
7565
7630
|
${media.sm} {
|
|
@@ -7582,11 +7647,11 @@ var generateColumnSpan = (span) => {
|
|
|
7582
7647
|
var generateAlignItems = (alignItems) => {
|
|
7583
7648
|
const baseAlign = getResponsiveValue(alignItems);
|
|
7584
7649
|
if (typeof alignItems === "string") {
|
|
7585
|
-
return
|
|
7650
|
+
return import_react45.css`
|
|
7586
7651
|
align-items: ${alignItems};
|
|
7587
7652
|
`;
|
|
7588
7653
|
}
|
|
7589
|
-
return
|
|
7654
|
+
return import_react45.css`
|
|
7590
7655
|
align-items: ${baseAlign};
|
|
7591
7656
|
|
|
7592
7657
|
${media.sm} {
|
|
@@ -7609,11 +7674,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
7609
7674
|
var generateJustifyItems = (justifyItems) => {
|
|
7610
7675
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
7611
7676
|
if (typeof justifyItems === "string") {
|
|
7612
|
-
return
|
|
7677
|
+
return import_react45.css`
|
|
7613
7678
|
justify-items: ${justifyItems};
|
|
7614
7679
|
`;
|
|
7615
7680
|
}
|
|
7616
|
-
return
|
|
7681
|
+
return import_react45.css`
|
|
7617
7682
|
justify-items: ${baseJustify};
|
|
7618
7683
|
|
|
7619
7684
|
${media.sm} {
|
|
@@ -7635,7 +7700,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
7635
7700
|
};
|
|
7636
7701
|
|
|
7637
7702
|
// src/Grid/Column.tsx
|
|
7638
|
-
var
|
|
7703
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7639
7704
|
var Column = ({
|
|
7640
7705
|
span,
|
|
7641
7706
|
start,
|
|
@@ -7648,30 +7713,30 @@ var Column = ({
|
|
|
7648
7713
|
}) => {
|
|
7649
7714
|
const columnStyles = [
|
|
7650
7715
|
span && generateColumnSpan(span),
|
|
7651
|
-
start &&
|
|
7716
|
+
start && import_react46.css`
|
|
7652
7717
|
grid-column-start: ${start};
|
|
7653
7718
|
`,
|
|
7654
|
-
end &&
|
|
7719
|
+
end && import_react46.css`
|
|
7655
7720
|
grid-column-end: ${end};
|
|
7656
7721
|
`,
|
|
7657
|
-
row &&
|
|
7722
|
+
row && import_react46.css`
|
|
7658
7723
|
grid-row: ${row};
|
|
7659
7724
|
`,
|
|
7660
|
-
rowSpan &&
|
|
7725
|
+
rowSpan && import_react46.css`
|
|
7661
7726
|
grid-row: span ${rowSpan};
|
|
7662
7727
|
`,
|
|
7663
|
-
area &&
|
|
7728
|
+
area && import_react46.css`
|
|
7664
7729
|
grid-area: ${area};
|
|
7665
7730
|
`
|
|
7666
7731
|
].filter(Boolean);
|
|
7667
|
-
return /* @__PURE__ */ (0,
|
|
7732
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
7668
7733
|
};
|
|
7669
7734
|
var Column_default = Column;
|
|
7670
7735
|
|
|
7671
7736
|
// src/Grid/Grid.tsx
|
|
7672
|
-
var
|
|
7673
|
-
var
|
|
7674
|
-
var baseGridStyles =
|
|
7737
|
+
var import_react47 = require("@emotion/react");
|
|
7738
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
7739
|
+
var baseGridStyles = import_react47.css`
|
|
7675
7740
|
display: grid;
|
|
7676
7741
|
`;
|
|
7677
7742
|
var Grid = ({
|
|
@@ -7696,27 +7761,27 @@ var Grid = ({
|
|
|
7696
7761
|
columnGap && generateColumnGapStyles(columnGap),
|
|
7697
7762
|
alignItems && generateAlignItems(alignItems),
|
|
7698
7763
|
justifyItems && generateJustifyItems(justifyItems),
|
|
7699
|
-
autoRows &&
|
|
7764
|
+
autoRows && import_react47.css`
|
|
7700
7765
|
grid-auto-rows: ${autoRows};
|
|
7701
7766
|
`,
|
|
7702
|
-
autoColumns &&
|
|
7767
|
+
autoColumns && import_react47.css`
|
|
7703
7768
|
grid-auto-columns: ${autoColumns};
|
|
7704
7769
|
`,
|
|
7705
|
-
templateAreas &&
|
|
7770
|
+
templateAreas && import_react47.css`
|
|
7706
7771
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
7707
7772
|
`,
|
|
7708
|
-
justifyContent &&
|
|
7773
|
+
justifyContent && import_react47.css`
|
|
7709
7774
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
7710
7775
|
`
|
|
7711
7776
|
].filter(Boolean);
|
|
7712
|
-
return /* @__PURE__ */ (0,
|
|
7777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
7713
7778
|
};
|
|
7714
7779
|
var Grid_default = Grid;
|
|
7715
7780
|
|
|
7716
7781
|
// src/Grid/GridContainer.tsx
|
|
7717
|
-
var
|
|
7718
|
-
var
|
|
7719
|
-
var baseContainerStyles =
|
|
7782
|
+
var import_react48 = require("@emotion/react");
|
|
7783
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7784
|
+
var baseContainerStyles = import_react48.css`
|
|
7720
7785
|
width: 100%;
|
|
7721
7786
|
margin: 0 auto;
|
|
7722
7787
|
padding-left: 1rem;
|
|
@@ -7724,14 +7789,14 @@ var baseContainerStyles = import_react46.css`
|
|
|
7724
7789
|
`;
|
|
7725
7790
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
7726
7791
|
if (maxWidth === "full") {
|
|
7727
|
-
return
|
|
7792
|
+
return import_react48.css`
|
|
7728
7793
|
max-width: 100%;
|
|
7729
7794
|
padding-left: 0;
|
|
7730
7795
|
padding-right: 0;
|
|
7731
7796
|
`;
|
|
7732
7797
|
}
|
|
7733
7798
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
7734
|
-
return
|
|
7799
|
+
return import_react48.css`
|
|
7735
7800
|
max-width: ${width2};
|
|
7736
7801
|
|
|
7737
7802
|
${media.sm} {
|
|
@@ -7756,17 +7821,17 @@ var GridContainer = ({
|
|
|
7756
7821
|
className,
|
|
7757
7822
|
...props
|
|
7758
7823
|
}) => {
|
|
7759
|
-
const
|
|
7824
|
+
const containerStyles6 = [
|
|
7760
7825
|
baseContainerStyles,
|
|
7761
7826
|
generateMaxWidthStyles(maxWidth)
|
|
7762
7827
|
];
|
|
7763
|
-
return /* @__PURE__ */ (0,
|
|
7828
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Box_default, { css: containerStyles6, className, ...props, children });
|
|
7764
7829
|
};
|
|
7765
7830
|
var GridContainer_default = GridContainer;
|
|
7766
7831
|
|
|
7767
7832
|
// src/HuntCard/HuntCard.styles.ts
|
|
7768
|
-
var
|
|
7769
|
-
var cardContainerStyles2 =
|
|
7833
|
+
var import_react49 = require("@emotion/react");
|
|
7834
|
+
var cardContainerStyles2 = import_react49.css`
|
|
7770
7835
|
position: relative;
|
|
7771
7836
|
height: 335px;
|
|
7772
7837
|
|
|
@@ -7774,12 +7839,12 @@ var cardContainerStyles2 = import_react47.css`
|
|
|
7774
7839
|
height: 480px;
|
|
7775
7840
|
}
|
|
7776
7841
|
`;
|
|
7777
|
-
var cardContentStyles2 =
|
|
7842
|
+
var cardContentStyles2 = import_react49.css`
|
|
7778
7843
|
position: relative;
|
|
7779
7844
|
border-radius: var(--spacing-4);
|
|
7780
7845
|
overflow: hidden;
|
|
7781
7846
|
`;
|
|
7782
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
7847
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react49.css`
|
|
7783
7848
|
background-image: linear-gradient(
|
|
7784
7849
|
180deg,
|
|
7785
7850
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -7793,7 +7858,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react47.css`
|
|
|
7793
7858
|
`;
|
|
7794
7859
|
|
|
7795
7860
|
// src/HuntCard/HuntCard.tsx
|
|
7796
|
-
var
|
|
7861
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7797
7862
|
var HuntCard = ({
|
|
7798
7863
|
backgroundImage,
|
|
7799
7864
|
title,
|
|
@@ -7802,14 +7867,14 @@ var HuntCard = ({
|
|
|
7802
7867
|
className,
|
|
7803
7868
|
...rest
|
|
7804
7869
|
}) => {
|
|
7805
|
-
return /* @__PURE__ */ (0,
|
|
7870
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7806
7871
|
Box_default,
|
|
7807
7872
|
{
|
|
7808
7873
|
display: "flex",
|
|
7809
7874
|
css: cardContainerStyles2,
|
|
7810
7875
|
className,
|
|
7811
7876
|
...rest,
|
|
7812
|
-
children: /* @__PURE__ */ (0,
|
|
7877
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7813
7878
|
Box_default,
|
|
7814
7879
|
{
|
|
7815
7880
|
display: "flex",
|
|
@@ -7817,9 +7882,9 @@ var HuntCard = ({
|
|
|
7817
7882
|
justifyContent: "flex-end",
|
|
7818
7883
|
p: 6,
|
|
7819
7884
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
7820
|
-
children: /* @__PURE__ */ (0,
|
|
7821
|
-
/* @__PURE__ */ (0,
|
|
7822
|
-
/* @__PURE__ */ (0,
|
|
7885
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
7886
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
7887
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
7823
7888
|
] })
|
|
7824
7889
|
}
|
|
7825
7890
|
)
|
|
@@ -7829,15 +7894,15 @@ var HuntCard = ({
|
|
|
7829
7894
|
var HuntCard_default = HuntCard;
|
|
7830
7895
|
|
|
7831
7896
|
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
7832
|
-
var
|
|
7897
|
+
var import_react53 = require("react");
|
|
7833
7898
|
|
|
7834
7899
|
// src/Modal/Modal.tsx
|
|
7835
|
-
var
|
|
7900
|
+
var import_react51 = require("react");
|
|
7836
7901
|
var import_react_dom3 = __toESM(require("react-dom"));
|
|
7837
7902
|
|
|
7838
7903
|
// src/Modal/Modal.styles.ts
|
|
7839
|
-
var
|
|
7840
|
-
var fadeIn =
|
|
7904
|
+
var import_react50 = require("@emotion/react");
|
|
7905
|
+
var fadeIn = import_react50.keyframes`
|
|
7841
7906
|
from {
|
|
7842
7907
|
opacity: 0;
|
|
7843
7908
|
}
|
|
@@ -7845,7 +7910,7 @@ var fadeIn = import_react48.keyframes`
|
|
|
7845
7910
|
opacity: 1;
|
|
7846
7911
|
}
|
|
7847
7912
|
`;
|
|
7848
|
-
var fadeInScale =
|
|
7913
|
+
var fadeInScale = import_react50.keyframes`
|
|
7849
7914
|
from {
|
|
7850
7915
|
opacity: 0;
|
|
7851
7916
|
transform: scale(0.95);
|
|
@@ -7855,7 +7920,7 @@ var fadeInScale = import_react48.keyframes`
|
|
|
7855
7920
|
transform: scale(1);
|
|
7856
7921
|
}
|
|
7857
7922
|
`;
|
|
7858
|
-
var scrollLayerStyles =
|
|
7923
|
+
var scrollLayerStyles = import_react50.css`
|
|
7859
7924
|
background-color: rgba(0, 0, 0, 0.6);
|
|
7860
7925
|
backdrop-filter: blur(4px);
|
|
7861
7926
|
animation: ${fadeIn} 0.15s ease-out forwards;
|
|
@@ -7864,7 +7929,7 @@ var scrollLayerStyles = import_react48.css`
|
|
|
7864
7929
|
animation: none;
|
|
7865
7930
|
}
|
|
7866
7931
|
`;
|
|
7867
|
-
var
|
|
7932
|
+
var containerStyles3 = import_react50.css`
|
|
7868
7933
|
background-color: var(--surface-primary, #ffffff);
|
|
7869
7934
|
border-radius: var(--radius-lg, 12px);
|
|
7870
7935
|
max-height: calc(100dvh - var(--spacing-8));
|
|
@@ -7876,17 +7941,17 @@ var containerStyles2 = import_react48.css`
|
|
|
7876
7941
|
}
|
|
7877
7942
|
`;
|
|
7878
7943
|
var sizeStyles3 = {
|
|
7879
|
-
sm:
|
|
7944
|
+
sm: import_react50.css`
|
|
7880
7945
|
width: 100%;
|
|
7881
7946
|
max-width: 24rem; /* 384px */
|
|
7882
7947
|
padding: var(--spacing-5);
|
|
7883
7948
|
`,
|
|
7884
|
-
md:
|
|
7949
|
+
md: import_react50.css`
|
|
7885
7950
|
width: 100%;
|
|
7886
7951
|
max-width: 32rem; /* 512px */
|
|
7887
7952
|
padding: var(--spacing-6);
|
|
7888
7953
|
`,
|
|
7889
|
-
lg:
|
|
7954
|
+
lg: import_react50.css`
|
|
7890
7955
|
width: 100%;
|
|
7891
7956
|
max-width: 48rem; /* 768px */
|
|
7892
7957
|
padding: var(--spacing-6);
|
|
@@ -7895,7 +7960,7 @@ var sizeStyles3 = {
|
|
|
7895
7960
|
padding: var(--spacing-8);
|
|
7896
7961
|
}
|
|
7897
7962
|
`,
|
|
7898
|
-
xl:
|
|
7963
|
+
xl: import_react50.css`
|
|
7899
7964
|
width: 100%;
|
|
7900
7965
|
max-width: 64rem; /* 1024px */
|
|
7901
7966
|
padding: var(--spacing-6);
|
|
@@ -7904,7 +7969,7 @@ var sizeStyles3 = {
|
|
|
7904
7969
|
padding: var(--spacing-8);
|
|
7905
7970
|
}
|
|
7906
7971
|
`,
|
|
7907
|
-
full:
|
|
7972
|
+
full: import_react50.css`
|
|
7908
7973
|
width: calc(100vw - var(--spacing-8));
|
|
7909
7974
|
height: calc(100dvh - var(--spacing-8));
|
|
7910
7975
|
max-width: none;
|
|
@@ -7913,13 +7978,13 @@ var sizeStyles3 = {
|
|
|
7913
7978
|
border-radius: var(--radius-md, 8px);
|
|
7914
7979
|
`
|
|
7915
7980
|
};
|
|
7916
|
-
var closeButtonStyles =
|
|
7981
|
+
var closeButtonStyles = import_react50.css`
|
|
7917
7982
|
position: absolute;
|
|
7918
7983
|
top: var(--spacing-4);
|
|
7919
7984
|
right: var(--spacing-4);
|
|
7920
7985
|
z-index: 1;
|
|
7921
7986
|
`;
|
|
7922
|
-
var closeButtonFullStyles =
|
|
7987
|
+
var closeButtonFullStyles = import_react50.css`
|
|
7923
7988
|
top: var(--spacing-3);
|
|
7924
7989
|
right: var(--spacing-3);
|
|
7925
7990
|
background-color: rgba(255, 255, 255, 0.9);
|
|
@@ -7932,7 +7997,7 @@ var closeButtonFullStyles = import_react48.css`
|
|
|
7932
7997
|
`;
|
|
7933
7998
|
|
|
7934
7999
|
// src/Modal/Modal.tsx
|
|
7935
|
-
var
|
|
8000
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7936
8001
|
var Modal = ({
|
|
7937
8002
|
id,
|
|
7938
8003
|
isOpen,
|
|
@@ -7951,10 +8016,10 @@ var Modal = ({
|
|
|
7951
8016
|
ariaLabel,
|
|
7952
8017
|
ariaDescribedBy
|
|
7953
8018
|
}) => {
|
|
7954
|
-
const containerRef = (0,
|
|
7955
|
-
const previousScrollY = (0,
|
|
7956
|
-
const previousActiveElement = (0,
|
|
7957
|
-
const handleKeyDown = (0,
|
|
8019
|
+
const containerRef = (0, import_react51.useRef)(null);
|
|
8020
|
+
const previousScrollY = (0, import_react51.useRef)(0);
|
|
8021
|
+
const previousActiveElement = (0, import_react51.useRef)(null);
|
|
8022
|
+
const handleKeyDown = (0, import_react51.useCallback)(
|
|
7958
8023
|
(event) => {
|
|
7959
8024
|
if (closeOnEscape && event.key === "Escape" && onClose) {
|
|
7960
8025
|
onClose(event);
|
|
@@ -7962,7 +8027,7 @@ var Modal = ({
|
|
|
7962
8027
|
},
|
|
7963
8028
|
[closeOnEscape, onClose]
|
|
7964
8029
|
);
|
|
7965
|
-
(0,
|
|
8030
|
+
(0, import_react51.useEffect)(() => {
|
|
7966
8031
|
if (isOpen) {
|
|
7967
8032
|
previousScrollY.current = window.scrollY;
|
|
7968
8033
|
previousActiveElement.current = document.activeElement;
|
|
@@ -7992,7 +8057,7 @@ var Modal = ({
|
|
|
7992
8057
|
document.body.style.top = "";
|
|
7993
8058
|
};
|
|
7994
8059
|
}, [isOpen, handleKeyDown]);
|
|
7995
|
-
const handleClose = (0,
|
|
8060
|
+
const handleClose = (0, import_react51.useCallback)(
|
|
7996
8061
|
(event) => {
|
|
7997
8062
|
if (onClose) {
|
|
7998
8063
|
onClose(event);
|
|
@@ -8000,7 +8065,7 @@ var Modal = ({
|
|
|
8000
8065
|
},
|
|
8001
8066
|
[onClose]
|
|
8002
8067
|
);
|
|
8003
|
-
const handleBackdropClick = (0,
|
|
8068
|
+
const handleBackdropClick = (0, import_react51.useCallback)(
|
|
8004
8069
|
(event) => {
|
|
8005
8070
|
if (!closeOnOutsideClick || !containerRef.current || containerRef.current.contains(event.target)) {
|
|
8006
8071
|
return;
|
|
@@ -8015,7 +8080,7 @@ var Modal = ({
|
|
|
8015
8080
|
if (typeof document === "undefined") {
|
|
8016
8081
|
return null;
|
|
8017
8082
|
}
|
|
8018
|
-
const closeButton = showCloseButton && /* @__PURE__ */ (0,
|
|
8083
|
+
const closeButton = showCloseButton && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8019
8084
|
Button_default,
|
|
8020
8085
|
{
|
|
8021
8086
|
onClick: handleClose,
|
|
@@ -8028,7 +8093,7 @@ var Modal = ({
|
|
|
8028
8093
|
"aria-label": "Close modal",
|
|
8029
8094
|
variant: "text",
|
|
8030
8095
|
size: "xs",
|
|
8031
|
-
children: /* @__PURE__ */ (0,
|
|
8096
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
8032
8097
|
Box_default,
|
|
8033
8098
|
{
|
|
8034
8099
|
as: "span",
|
|
@@ -8036,15 +8101,15 @@ var Modal = ({
|
|
|
8036
8101
|
alignItems: "center",
|
|
8037
8102
|
gap: "var(--spacing-2)",
|
|
8038
8103
|
children: [
|
|
8039
|
-
/* @__PURE__ */ (0,
|
|
8040
|
-
/* @__PURE__ */ (0,
|
|
8104
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon_default, { variant: closeButtonIcon, size: "medium" }),
|
|
8105
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)("span", { children: "Close" })
|
|
8041
8106
|
]
|
|
8042
8107
|
}
|
|
8043
8108
|
)
|
|
8044
8109
|
}
|
|
8045
8110
|
);
|
|
8046
8111
|
return import_react_dom3.default.createPortal(
|
|
8047
|
-
/* @__PURE__ */ (0,
|
|
8112
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8048
8113
|
Box_default,
|
|
8049
8114
|
{
|
|
8050
8115
|
display: "flex",
|
|
@@ -8059,7 +8124,7 @@ var Modal = ({
|
|
|
8059
8124
|
className,
|
|
8060
8125
|
role: "presentation",
|
|
8061
8126
|
"data-testid": `modal-${id}`,
|
|
8062
|
-
children: /* @__PURE__ */ (0,
|
|
8127
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
8063
8128
|
Box_default,
|
|
8064
8129
|
{
|
|
8065
8130
|
display: "flex",
|
|
@@ -8073,7 +8138,7 @@ var Modal = ({
|
|
|
8073
8138
|
onKeyDown: (e) => e.key === "Escape" && handleClose(e),
|
|
8074
8139
|
role: "presentation",
|
|
8075
8140
|
"data-testid": `modal-backdrop-${id}`,
|
|
8076
|
-
children: /* @__PURE__ */ (0,
|
|
8141
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
8077
8142
|
Box_default,
|
|
8078
8143
|
{
|
|
8079
8144
|
ref: containerRef,
|
|
@@ -8082,7 +8147,7 @@ var Modal = ({
|
|
|
8082
8147
|
position: "relative",
|
|
8083
8148
|
overflow: "hidden",
|
|
8084
8149
|
css: [
|
|
8085
|
-
|
|
8150
|
+
containerStyles3,
|
|
8086
8151
|
sizeStyles3[size],
|
|
8087
8152
|
customContainerStyles
|
|
8088
8153
|
],
|
|
@@ -8093,7 +8158,7 @@ var Modal = ({
|
|
|
8093
8158
|
tabIndex: -1,
|
|
8094
8159
|
children: [
|
|
8095
8160
|
closeButton,
|
|
8096
|
-
/* @__PURE__ */ (0,
|
|
8161
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Box_default, { flex: "1", overflow: "auto", css: customContentStyles, children })
|
|
8097
8162
|
]
|
|
8098
8163
|
}
|
|
8099
8164
|
)
|
|
@@ -8108,11 +8173,11 @@ Modal.displayName = "Modal";
|
|
|
8108
8173
|
var Modal_default = Modal;
|
|
8109
8174
|
|
|
8110
8175
|
// src/ImageGalleryModal/ImageGalleryModal.styles.ts
|
|
8111
|
-
var
|
|
8112
|
-
var galleryBackgroundStyles =
|
|
8176
|
+
var import_react52 = require("@emotion/react");
|
|
8177
|
+
var galleryBackgroundStyles = import_react52.css`
|
|
8113
8178
|
background-color: var(--color-base-black, #000000);
|
|
8114
8179
|
`;
|
|
8115
|
-
var imageStyles2 =
|
|
8180
|
+
var imageStyles2 = import_react52.css`
|
|
8116
8181
|
max-width: 100%;
|
|
8117
8182
|
max-height: 100%;
|
|
8118
8183
|
width: auto;
|
|
@@ -8124,14 +8189,14 @@ var imageStyles2 = import_react50.css`
|
|
|
8124
8189
|
max-height: calc(100vh - var(--spacing-32));
|
|
8125
8190
|
}
|
|
8126
8191
|
`;
|
|
8127
|
-
var counterStyles =
|
|
8192
|
+
var counterStyles = import_react52.css`
|
|
8128
8193
|
transform: translateX(-50%);
|
|
8129
8194
|
color: var(--color-base-white, #ffffff);
|
|
8130
8195
|
background-color: rgba(0, 0, 0, 0.5);
|
|
8131
8196
|
padding: var(--spacing-2) var(--spacing-4);
|
|
8132
8197
|
border-radius: var(--radius-full, 9999px);
|
|
8133
8198
|
`;
|
|
8134
|
-
var captionStyles =
|
|
8199
|
+
var captionStyles = import_react52.css`
|
|
8135
8200
|
transform: translateX(-50%);
|
|
8136
8201
|
color: var(--color-base-white, #ffffff);
|
|
8137
8202
|
text-align: center;
|
|
@@ -8140,7 +8205,7 @@ var captionStyles = import_react50.css`
|
|
|
8140
8205
|
border-radius: var(--radius-md, 8px);
|
|
8141
8206
|
max-width: 80%;
|
|
8142
8207
|
`;
|
|
8143
|
-
var navigationButtonStyles =
|
|
8208
|
+
var navigationButtonStyles = import_react52.css`
|
|
8144
8209
|
position: absolute;
|
|
8145
8210
|
top: 50%;
|
|
8146
8211
|
transform: translateY(-50%);
|
|
@@ -8171,18 +8236,18 @@ var navigationButtonStyles = import_react50.css`
|
|
|
8171
8236
|
outline-offset: 2px;
|
|
8172
8237
|
}
|
|
8173
8238
|
`;
|
|
8174
|
-
var prevButtonStyles =
|
|
8239
|
+
var prevButtonStyles = import_react52.css`
|
|
8175
8240
|
${navigationButtonStyles}
|
|
8176
8241
|
left: var(--spacing-4);
|
|
8177
8242
|
`;
|
|
8178
|
-
var nextButtonStyles =
|
|
8243
|
+
var nextButtonStyles = import_react52.css`
|
|
8179
8244
|
${navigationButtonStyles}
|
|
8180
8245
|
right: var(--spacing-4);
|
|
8181
8246
|
`;
|
|
8182
|
-
var dotsContainerPositionStyles =
|
|
8247
|
+
var dotsContainerPositionStyles = import_react52.css`
|
|
8183
8248
|
transform: translateX(-50%);
|
|
8184
8249
|
`;
|
|
8185
|
-
var dotStyles =
|
|
8250
|
+
var dotStyles = import_react52.css`
|
|
8186
8251
|
width: var(--spacing-2);
|
|
8187
8252
|
height: var(--spacing-2);
|
|
8188
8253
|
border-radius: var(--radius-round, 50%);
|
|
@@ -8197,11 +8262,11 @@ var dotStyles = import_react50.css`
|
|
|
8197
8262
|
transform: scale(1.2);
|
|
8198
8263
|
}
|
|
8199
8264
|
`;
|
|
8200
|
-
var dotActiveStyles =
|
|
8265
|
+
var dotActiveStyles = import_react52.css`
|
|
8201
8266
|
background-color: var(--color-base-white, #ffffff);
|
|
8202
8267
|
transform: scale(1.2);
|
|
8203
8268
|
`;
|
|
8204
|
-
var closeButtonOverrideStyles =
|
|
8269
|
+
var closeButtonOverrideStyles = import_react52.css`
|
|
8205
8270
|
top: var(--spacing-4);
|
|
8206
8271
|
right: var(--spacing-4);
|
|
8207
8272
|
z-index: 20;
|
|
@@ -8213,23 +8278,23 @@ var closeButtonOverrideStyles = import_react50.css`
|
|
|
8213
8278
|
background-color: var(--color-base-white, #ffffff);
|
|
8214
8279
|
}
|
|
8215
8280
|
`;
|
|
8216
|
-
var scrollLayerOverrideStyles =
|
|
8281
|
+
var scrollLayerOverrideStyles = import_react52.css`
|
|
8217
8282
|
padding: 0;
|
|
8218
8283
|
background-color: rgba(0, 0, 0, 0.95);
|
|
8219
8284
|
`;
|
|
8220
|
-
var containerOverrideStyles =
|
|
8285
|
+
var containerOverrideStyles = import_react52.css`
|
|
8221
8286
|
background-color: transparent;
|
|
8222
8287
|
box-shadow: none;
|
|
8223
8288
|
border-radius: 0;
|
|
8224
8289
|
max-height: 100dvh;
|
|
8225
8290
|
`;
|
|
8226
|
-
var contentOverrideStyles =
|
|
8291
|
+
var contentOverrideStyles = import_react52.css`
|
|
8227
8292
|
height: 100%;
|
|
8228
8293
|
padding: 0;
|
|
8229
8294
|
`;
|
|
8230
8295
|
|
|
8231
8296
|
// src/ImageGalleryModal/ImageGalleryModal.tsx
|
|
8232
|
-
var
|
|
8297
|
+
var import_jsx_runtime243 = require("@emotion/react/jsx-runtime");
|
|
8233
8298
|
var ImageGalleryModal = ({
|
|
8234
8299
|
id,
|
|
8235
8300
|
isOpen,
|
|
@@ -8242,30 +8307,30 @@ var ImageGalleryModal = ({
|
|
|
8242
8307
|
className,
|
|
8243
8308
|
ariaLabel = "Image gallery"
|
|
8244
8309
|
}) => {
|
|
8245
|
-
const [currentIndex, setCurrentIndex] = (0,
|
|
8246
|
-
(0,
|
|
8310
|
+
const [currentIndex, setCurrentIndex] = (0, import_react53.useState)(initialIndex);
|
|
8311
|
+
(0, import_react53.useEffect)(() => {
|
|
8247
8312
|
if (isOpen) {
|
|
8248
8313
|
setCurrentIndex(initialIndex);
|
|
8249
8314
|
}
|
|
8250
8315
|
}, [isOpen, initialIndex]);
|
|
8251
|
-
const handlePrev = (0,
|
|
8316
|
+
const handlePrev = (0, import_react53.useCallback)(
|
|
8252
8317
|
(e) => {
|
|
8253
8318
|
e == null ? void 0 : e.stopPropagation();
|
|
8254
8319
|
setCurrentIndex((prev) => prev > 0 ? prev - 1 : images.length - 1);
|
|
8255
8320
|
},
|
|
8256
8321
|
[images.length]
|
|
8257
8322
|
);
|
|
8258
|
-
const handleNext = (0,
|
|
8323
|
+
const handleNext = (0, import_react53.useCallback)(
|
|
8259
8324
|
(e) => {
|
|
8260
8325
|
e == null ? void 0 : e.stopPropagation();
|
|
8261
8326
|
setCurrentIndex((prev) => prev < images.length - 1 ? prev + 1 : 0);
|
|
8262
8327
|
},
|
|
8263
8328
|
[images.length]
|
|
8264
8329
|
);
|
|
8265
|
-
const handleGoTo = (0,
|
|
8330
|
+
const handleGoTo = (0, import_react53.useCallback)((index) => {
|
|
8266
8331
|
setCurrentIndex(index);
|
|
8267
8332
|
}, []);
|
|
8268
|
-
(0,
|
|
8333
|
+
(0, import_react53.useEffect)(() => {
|
|
8269
8334
|
if (!isOpen)
|
|
8270
8335
|
return;
|
|
8271
8336
|
const handleKeyDown = (e) => {
|
|
@@ -8282,7 +8347,7 @@ var ImageGalleryModal = ({
|
|
|
8282
8347
|
}, [isOpen, handlePrev, handleNext]);
|
|
8283
8348
|
const currentImage = images[currentIndex];
|
|
8284
8349
|
const hasMultipleImages = images.length > 1;
|
|
8285
|
-
return /* @__PURE__ */ (0,
|
|
8350
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8286
8351
|
Modal_default,
|
|
8287
8352
|
{
|
|
8288
8353
|
id: `image-gallery-${id}`,
|
|
@@ -8298,7 +8363,7 @@ var ImageGalleryModal = ({
|
|
|
8298
8363
|
contentStyles: contentOverrideStyles,
|
|
8299
8364
|
className,
|
|
8300
8365
|
ariaLabel,
|
|
8301
|
-
children: /* @__PURE__ */ (0,
|
|
8366
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
8302
8367
|
Box_default,
|
|
8303
8368
|
{
|
|
8304
8369
|
display: "flex",
|
|
@@ -8308,7 +8373,7 @@ var ImageGalleryModal = ({
|
|
|
8308
8373
|
position: "relative",
|
|
8309
8374
|
css: galleryBackgroundStyles,
|
|
8310
8375
|
children: [
|
|
8311
|
-
showCounter && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8376
|
+
showCounter && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8312
8377
|
Box_default,
|
|
8313
8378
|
{
|
|
8314
8379
|
position: "absolute",
|
|
@@ -8316,14 +8381,14 @@ var ImageGalleryModal = ({
|
|
|
8316
8381
|
left: "50%",
|
|
8317
8382
|
zIndex: 10,
|
|
8318
8383
|
css: counterStyles,
|
|
8319
|
-
children: /* @__PURE__ */ (0,
|
|
8384
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Text_default, { size: "sm", color: "inherit", children: [
|
|
8320
8385
|
currentIndex + 1,
|
|
8321
8386
|
" / ",
|
|
8322
8387
|
images.length
|
|
8323
8388
|
] })
|
|
8324
8389
|
}
|
|
8325
8390
|
),
|
|
8326
|
-
/* @__PURE__ */ (0,
|
|
8391
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
8327
8392
|
Box_default,
|
|
8328
8393
|
{
|
|
8329
8394
|
display: "flex",
|
|
@@ -8333,17 +8398,17 @@ var ImageGalleryModal = ({
|
|
|
8333
8398
|
overflow: "hidden",
|
|
8334
8399
|
position: "relative",
|
|
8335
8400
|
children: [
|
|
8336
|
-
showArrows && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8401
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8337
8402
|
"button",
|
|
8338
8403
|
{
|
|
8339
8404
|
type: "button",
|
|
8340
8405
|
onClick: handlePrev,
|
|
8341
8406
|
css: prevButtonStyles,
|
|
8342
8407
|
"aria-label": "Previous image",
|
|
8343
|
-
children: /* @__PURE__ */ (0,
|
|
8408
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Icon_default, { variant: "AngleLeft", size: "medium" })
|
|
8344
8409
|
}
|
|
8345
8410
|
),
|
|
8346
|
-
/* @__PURE__ */ (0,
|
|
8411
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8347
8412
|
Box_default,
|
|
8348
8413
|
{
|
|
8349
8414
|
display: "flex",
|
|
@@ -8352,7 +8417,7 @@ var ImageGalleryModal = ({
|
|
|
8352
8417
|
width: "100%",
|
|
8353
8418
|
height: "100%",
|
|
8354
8419
|
p: "var(--spacing-4)",
|
|
8355
|
-
children: currentImage && /* @__PURE__ */ (0,
|
|
8420
|
+
children: currentImage && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8356
8421
|
"img",
|
|
8357
8422
|
{
|
|
8358
8423
|
src: currentImage.src,
|
|
@@ -8362,20 +8427,20 @@ var ImageGalleryModal = ({
|
|
|
8362
8427
|
)
|
|
8363
8428
|
}
|
|
8364
8429
|
),
|
|
8365
|
-
showArrows && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8430
|
+
showArrows && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8366
8431
|
"button",
|
|
8367
8432
|
{
|
|
8368
8433
|
type: "button",
|
|
8369
8434
|
onClick: handleNext,
|
|
8370
8435
|
css: nextButtonStyles,
|
|
8371
8436
|
"aria-label": "Next image",
|
|
8372
|
-
children: /* @__PURE__ */ (0,
|
|
8437
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Icon_default, { variant: "AngleRight", size: "medium" })
|
|
8373
8438
|
}
|
|
8374
8439
|
)
|
|
8375
8440
|
]
|
|
8376
8441
|
}
|
|
8377
8442
|
),
|
|
8378
|
-
(currentImage == null ? void 0 : currentImage.caption) && /* @__PURE__ */ (0,
|
|
8443
|
+
(currentImage == null ? void 0 : currentImage.caption) && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8379
8444
|
Box_default,
|
|
8380
8445
|
{
|
|
8381
8446
|
position: "absolute",
|
|
@@ -8383,10 +8448,10 @@ var ImageGalleryModal = ({
|
|
|
8383
8448
|
left: "50%",
|
|
8384
8449
|
zIndex: 10,
|
|
8385
8450
|
css: captionStyles,
|
|
8386
|
-
children: /* @__PURE__ */ (0,
|
|
8451
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Text_default, { size: "sm", color: "inherit", children: currentImage.caption })
|
|
8387
8452
|
}
|
|
8388
8453
|
),
|
|
8389
|
-
showDots && hasMultipleImages && /* @__PURE__ */ (0,
|
|
8454
|
+
showDots && hasMultipleImages && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8390
8455
|
Box_default,
|
|
8391
8456
|
{
|
|
8392
8457
|
display: "flex",
|
|
@@ -8396,7 +8461,7 @@ var ImageGalleryModal = ({
|
|
|
8396
8461
|
gap: "var(--spacing-2)",
|
|
8397
8462
|
zIndex: 10,
|
|
8398
8463
|
css: dotsContainerPositionStyles,
|
|
8399
|
-
children: images.map((_, index) => /* @__PURE__ */ (0,
|
|
8464
|
+
children: images.map((_, index) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
8400
8465
|
"button",
|
|
8401
8466
|
{
|
|
8402
8467
|
type: "button",
|
|
@@ -8422,9 +8487,9 @@ ImageGalleryModal.displayName = "ImageGalleryModal";
|
|
|
8422
8487
|
var ImageGalleryModal_default = ImageGalleryModal;
|
|
8423
8488
|
|
|
8424
8489
|
// src/InfoBox/InfoBox.tsx
|
|
8425
|
-
var
|
|
8490
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
8426
8491
|
var InfoBox = ({ heading, features, className }) => {
|
|
8427
|
-
return /* @__PURE__ */ (0,
|
|
8492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
|
|
8428
8493
|
Box_default,
|
|
8429
8494
|
{
|
|
8430
8495
|
display: "flex",
|
|
@@ -8433,8 +8498,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8433
8498
|
className,
|
|
8434
8499
|
color: "var(--text-primary)",
|
|
8435
8500
|
children: [
|
|
8436
|
-
/* @__PURE__ */ (0,
|
|
8437
|
-
/* @__PURE__ */ (0,
|
|
8501
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
8502
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
8438
8503
|
Box_default,
|
|
8439
8504
|
{
|
|
8440
8505
|
display: "flex",
|
|
@@ -8444,7 +8509,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8444
8509
|
borderRadius: "var(--radius-lg)",
|
|
8445
8510
|
bg: "var(--surface-neutral)",
|
|
8446
8511
|
className,
|
|
8447
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
8512
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
8448
8513
|
FeatureList_default,
|
|
8449
8514
|
{
|
|
8450
8515
|
heading: section.heading,
|
|
@@ -8461,16 +8526,16 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
8461
8526
|
var InfoBox_default = InfoBox;
|
|
8462
8527
|
|
|
8463
8528
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
8464
|
-
var
|
|
8529
|
+
var import_react57 = require("react");
|
|
8465
8530
|
|
|
8466
8531
|
// src/ProgressBar/ProgressBar.styles.ts
|
|
8467
|
-
var
|
|
8468
|
-
var progressStyles =
|
|
8532
|
+
var import_react54 = require("@emotion/react");
|
|
8533
|
+
var progressStyles = import_react54.css`
|
|
8469
8534
|
transition: width 0.3s ease-in-out;
|
|
8470
8535
|
`;
|
|
8471
8536
|
|
|
8472
8537
|
// src/ProgressBar/ProgressBar.tsx
|
|
8473
|
-
var
|
|
8538
|
+
var import_jsx_runtime245 = require("@emotion/react/jsx-runtime");
|
|
8474
8539
|
var ProgressBar = ({
|
|
8475
8540
|
progress,
|
|
8476
8541
|
className,
|
|
@@ -8478,7 +8543,7 @@ var ProgressBar = ({
|
|
|
8478
8543
|
height = "10px"
|
|
8479
8544
|
}) => {
|
|
8480
8545
|
const clampedProgress = Math.min(100, Math.max(0, progress));
|
|
8481
|
-
return /* @__PURE__ */ (0,
|
|
8546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
8482
8547
|
Box_default,
|
|
8483
8548
|
{
|
|
8484
8549
|
width: "100%",
|
|
@@ -8488,7 +8553,7 @@ var ProgressBar = ({
|
|
|
8488
8553
|
overflow: "hidden",
|
|
8489
8554
|
position: "relative",
|
|
8490
8555
|
className,
|
|
8491
|
-
children: /* @__PURE__ */ (0,
|
|
8556
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
8492
8557
|
Box_default,
|
|
8493
8558
|
{
|
|
8494
8559
|
height: "100%",
|
|
@@ -8509,17 +8574,17 @@ ProgressBar.displayName = "ProgressBar";
|
|
|
8509
8574
|
var ProgressBar_default = ProgressBar;
|
|
8510
8575
|
|
|
8511
8576
|
// src/Timer/Timer.tsx
|
|
8512
|
-
var
|
|
8577
|
+
var import_react56 = require("react");
|
|
8513
8578
|
|
|
8514
8579
|
// src/Timer/Timer.styles.ts
|
|
8515
|
-
var
|
|
8516
|
-
var rootStyles2 =
|
|
8580
|
+
var import_react55 = require("@emotion/react");
|
|
8581
|
+
var rootStyles2 = import_react55.css`
|
|
8517
8582
|
display: inline-flex;
|
|
8518
8583
|
font-variant-numeric: tabular-nums;
|
|
8519
8584
|
`;
|
|
8520
8585
|
|
|
8521
8586
|
// src/Timer/Timer.tsx
|
|
8522
|
-
var
|
|
8587
|
+
var import_jsx_runtime246 = require("@emotion/react/jsx-runtime");
|
|
8523
8588
|
var calculateTimeLeft = (expirationTimestamp) => {
|
|
8524
8589
|
const now = Math.floor(Date.now() / 1e3);
|
|
8525
8590
|
const diff = expirationTimestamp - now;
|
|
@@ -8547,10 +8612,10 @@ var Timer = ({
|
|
|
8547
8612
|
fontWeight = "bold",
|
|
8548
8613
|
showSeconds = false
|
|
8549
8614
|
}) => {
|
|
8550
|
-
const [timeLeft, setTimeLeft] = (0,
|
|
8615
|
+
const [timeLeft, setTimeLeft] = (0, import_react56.useState)(
|
|
8551
8616
|
() => calculateTimeLeft(expirationTimestamp)
|
|
8552
8617
|
);
|
|
8553
|
-
const updateTime = (0,
|
|
8618
|
+
const updateTime = (0, import_react56.useCallback)(() => {
|
|
8554
8619
|
const newTimeLeft = calculateTimeLeft(expirationTimestamp);
|
|
8555
8620
|
setTimeLeft(newTimeLeft);
|
|
8556
8621
|
if (newTimeLeft) {
|
|
@@ -8560,7 +8625,7 @@ var Timer = ({
|
|
|
8560
8625
|
}
|
|
8561
8626
|
return newTimeLeft;
|
|
8562
8627
|
}, [expirationTimestamp, onTimeUpdate, onExpire]);
|
|
8563
|
-
(0,
|
|
8628
|
+
(0, import_react56.useEffect)(() => {
|
|
8564
8629
|
const initialTime = updateTime();
|
|
8565
8630
|
if (!initialTime)
|
|
8566
8631
|
return;
|
|
@@ -8575,8 +8640,8 @@ var Timer = ({
|
|
|
8575
8640
|
if (!timeLeft) {
|
|
8576
8641
|
return null;
|
|
8577
8642
|
}
|
|
8578
|
-
return /* @__PURE__ */ (0,
|
|
8579
|
-
/* @__PURE__ */ (0,
|
|
8643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Box_default, { css: rootStyles2, className, children: [
|
|
8644
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
8580
8645
|
timeLeft.days,
|
|
8581
8646
|
"d : ",
|
|
8582
8647
|
timeLeft.hours,
|
|
@@ -8584,7 +8649,7 @@ var Timer = ({
|
|
|
8584
8649
|
timeLeft.minutes,
|
|
8585
8650
|
"m"
|
|
8586
8651
|
] }),
|
|
8587
|
-
showSeconds && /* @__PURE__ */ (0,
|
|
8652
|
+
showSeconds && /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(Text_default, { as: "span", fontWeight, size: fontSize, children: [
|
|
8588
8653
|
"\xA0: ",
|
|
8589
8654
|
timeLeft.seconds,
|
|
8590
8655
|
"s"
|
|
@@ -8595,7 +8660,7 @@ Timer.displayName = "Timer";
|
|
|
8595
8660
|
var Timer_default = Timer;
|
|
8596
8661
|
|
|
8597
8662
|
// src/StarRating/StarRating.tsx
|
|
8598
|
-
var
|
|
8663
|
+
var import_jsx_runtime247 = require("@emotion/react/jsx-runtime");
|
|
8599
8664
|
var starSize = {
|
|
8600
8665
|
sm: {
|
|
8601
8666
|
size: "medium",
|
|
@@ -8643,10 +8708,10 @@ var StarRating = ({
|
|
|
8643
8708
|
fill = "var(--color-neutral-100)";
|
|
8644
8709
|
}
|
|
8645
8710
|
stars.push(
|
|
8646
|
-
/* @__PURE__ */ (0,
|
|
8711
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(Icon_default, { variant, size: starSize[size].size, fill }, i)
|
|
8647
8712
|
);
|
|
8648
8713
|
}
|
|
8649
|
-
return /* @__PURE__ */ (0,
|
|
8714
|
+
return /* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
8650
8715
|
Box_default,
|
|
8651
8716
|
{
|
|
8652
8717
|
className,
|
|
@@ -8660,7 +8725,7 @@ var StarRating = ({
|
|
|
8660
8725
|
var StarRating_default = StarRating;
|
|
8661
8726
|
|
|
8662
8727
|
// src/UserCard/UserCard.tsx
|
|
8663
|
-
var
|
|
8728
|
+
var import_jsx_runtime248 = require("@emotion/react/jsx-runtime");
|
|
8664
8729
|
var UserCard = ({
|
|
8665
8730
|
avatarSrc,
|
|
8666
8731
|
title,
|
|
@@ -8670,7 +8735,7 @@ var UserCard = ({
|
|
|
8670
8735
|
isVerified = false,
|
|
8671
8736
|
className
|
|
8672
8737
|
}) => {
|
|
8673
|
-
return /* @__PURE__ */ (0,
|
|
8738
|
+
return /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
|
|
8674
8739
|
Box_default,
|
|
8675
8740
|
{
|
|
8676
8741
|
display: "flex",
|
|
@@ -8679,8 +8744,8 @@ var UserCard = ({
|
|
|
8679
8744
|
gap: "var(--spacing-4)",
|
|
8680
8745
|
className,
|
|
8681
8746
|
children: [
|
|
8682
|
-
/* @__PURE__ */ (0,
|
|
8683
|
-
/* @__PURE__ */ (0,
|
|
8747
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { display: "flex", alignItems: "flex-start", gap: "var(--spacing-4)", children: [
|
|
8748
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
8684
8749
|
Avatar_default,
|
|
8685
8750
|
{
|
|
8686
8751
|
type: avatarSrc ? "image" : "text",
|
|
@@ -8690,13 +8755,13 @@ var UserCard = ({
|
|
|
8690
8755
|
alt: `${title}'s avatar`
|
|
8691
8756
|
}
|
|
8692
8757
|
),
|
|
8693
|
-
/* @__PURE__ */ (0,
|
|
8694
|
-
/* @__PURE__ */ (0,
|
|
8695
|
-
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0,
|
|
8696
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
8758
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8759
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
8760
|
+
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }) : subtitle),
|
|
8761
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime248.jsx)(StarRating_default, { rating })
|
|
8697
8762
|
] })
|
|
8698
8763
|
] }),
|
|
8699
|
-
isVerified && /* @__PURE__ */ (0,
|
|
8764
|
+
isVerified && /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
|
|
8700
8765
|
Box_default,
|
|
8701
8766
|
{
|
|
8702
8767
|
display: "flex",
|
|
@@ -8705,8 +8770,8 @@ var UserCard = ({
|
|
|
8705
8770
|
gap: "var(--spacing-1)",
|
|
8706
8771
|
flexShrink: 0,
|
|
8707
8772
|
children: [
|
|
8708
|
-
/* @__PURE__ */ (0,
|
|
8709
|
-
/* @__PURE__ */ (0,
|
|
8773
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Icon_default, { variant: "ShieldCheckSolid", fill: "var(--icon-success)" }),
|
|
8774
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(Text_default, { size: "xs", fontWeight: "bold", color: "text-primary", children: "Verified" })
|
|
8710
8775
|
]
|
|
8711
8776
|
}
|
|
8712
8777
|
)
|
|
@@ -8717,19 +8782,19 @@ var UserCard = ({
|
|
|
8717
8782
|
var UserCard_default = UserCard;
|
|
8718
8783
|
|
|
8719
8784
|
// src/LandownerProfile/components/ProfileSubtitle.tsx
|
|
8720
|
-
var
|
|
8785
|
+
var import_jsx_runtime249 = require("@emotion/react/jsx-runtime");
|
|
8721
8786
|
var ProfileSubtitle = ({
|
|
8722
8787
|
yearsHosting = 1,
|
|
8723
8788
|
featureReviewItem
|
|
8724
8789
|
}) => {
|
|
8725
|
-
return /* @__PURE__ */ (0,
|
|
8726
|
-
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0,
|
|
8790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
8791
|
+
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0, import_jsx_runtime249.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
8727
8792
|
yearsHosting,
|
|
8728
8793
|
" ",
|
|
8729
8794
|
yearsHosting === 1 ? "Year" : "Years",
|
|
8730
8795
|
" Hosting"
|
|
8731
8796
|
] }),
|
|
8732
|
-
featureReviewItem && /* @__PURE__ */ (0,
|
|
8797
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
8733
8798
|
] });
|
|
8734
8799
|
};
|
|
8735
8800
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -8744,7 +8809,7 @@ var hasTextContent = (html) => {
|
|
|
8744
8809
|
};
|
|
8745
8810
|
|
|
8746
8811
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
8747
|
-
var
|
|
8812
|
+
var import_jsx_runtime250 = require("@emotion/react/jsx-runtime");
|
|
8748
8813
|
var LandownerProfile = ({
|
|
8749
8814
|
heading,
|
|
8750
8815
|
avatarSrc,
|
|
@@ -8772,7 +8837,7 @@ var LandownerProfile = ({
|
|
|
8772
8837
|
const progressPercentage = (totalDuration - timeLeft.totalSeconds) / totalDuration * 100;
|
|
8773
8838
|
return Math.min(100, Math.max(0, progressPercentage));
|
|
8774
8839
|
};
|
|
8775
|
-
const [progress, setProgress] = (0,
|
|
8840
|
+
const [progress, setProgress] = (0, import_react57.useState)(0);
|
|
8776
8841
|
const handleTimeUpdate = (timeLeft) => {
|
|
8777
8842
|
setProgress(calculateProgress(timeLeft));
|
|
8778
8843
|
onEarlyAccessTimeUpdate == null ? void 0 : onEarlyAccessTimeUpdate(timeLeft);
|
|
@@ -8785,7 +8850,7 @@ var LandownerProfile = ({
|
|
|
8785
8850
|
iconVariant: "Bolt",
|
|
8786
8851
|
label: `Response Time: ${responseTime}`
|
|
8787
8852
|
} : void 0;
|
|
8788
|
-
return /* @__PURE__ */ (0,
|
|
8853
|
+
return /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8789
8854
|
Box_default,
|
|
8790
8855
|
{
|
|
8791
8856
|
display: "flex",
|
|
@@ -8794,8 +8859,8 @@ var LandownerProfile = ({
|
|
|
8794
8859
|
color: "var(--text-primary)",
|
|
8795
8860
|
className,
|
|
8796
8861
|
children: [
|
|
8797
|
-
heading && /* @__PURE__ */ (0,
|
|
8798
|
-
/* @__PURE__ */ (0,
|
|
8862
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
8863
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8799
8864
|
Box_default,
|
|
8800
8865
|
{
|
|
8801
8866
|
display: "flex",
|
|
@@ -8805,12 +8870,12 @@ var LandownerProfile = ({
|
|
|
8805
8870
|
p: "var(--spacing-4)",
|
|
8806
8871
|
borderRadius: "var(--radius-lg)",
|
|
8807
8872
|
children: [
|
|
8808
|
-
/* @__PURE__ */ (0,
|
|
8873
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8809
8874
|
UserCard_default,
|
|
8810
8875
|
{
|
|
8811
8876
|
avatarSrc,
|
|
8812
8877
|
title: name,
|
|
8813
|
-
subtitle: /* @__PURE__ */ (0,
|
|
8878
|
+
subtitle: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8814
8879
|
ProfileSubtitle_default,
|
|
8815
8880
|
{
|
|
8816
8881
|
yearsHosting,
|
|
@@ -8821,9 +8886,9 @@ var LandownerProfile = ({
|
|
|
8821
8886
|
isVerified
|
|
8822
8887
|
}
|
|
8823
8888
|
),
|
|
8824
|
-
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0,
|
|
8825
|
-
/* @__PURE__ */ (0,
|
|
8826
|
-
/* @__PURE__ */ (0,
|
|
8889
|
+
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8890
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
8891
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8827
8892
|
Text_default,
|
|
8828
8893
|
{
|
|
8829
8894
|
dangerouslySetInnerHTML: {
|
|
@@ -8832,14 +8897,14 @@ var LandownerProfile = ({
|
|
|
8832
8897
|
}
|
|
8833
8898
|
)
|
|
8834
8899
|
] }),
|
|
8835
|
-
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0,
|
|
8836
|
-
/* @__PURE__ */ (0,
|
|
8837
|
-
/* @__PURE__ */ (0,
|
|
8838
|
-
!!responseRateFeature && /* @__PURE__ */ (0,
|
|
8839
|
-
!!responseTimeFeature && /* @__PURE__ */ (0,
|
|
8900
|
+
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8901
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { fontWeight: "bold", children: "Landowner Details" }),
|
|
8902
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
8903
|
+
!!responseRateFeature && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(FeatureListItem_default, { ...responseRateFeature }),
|
|
8904
|
+
!!responseTimeFeature && /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(FeatureListItem_default, { ...responseTimeFeature })
|
|
8840
8905
|
] })
|
|
8841
8906
|
] }),
|
|
8842
|
-
/* @__PURE__ */ (0,
|
|
8907
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8843
8908
|
Button_default,
|
|
8844
8909
|
{
|
|
8845
8910
|
variant: "secondary",
|
|
@@ -8848,9 +8913,9 @@ var LandownerProfile = ({
|
|
|
8848
8913
|
children: messageButtonText
|
|
8849
8914
|
}
|
|
8850
8915
|
) }),
|
|
8851
|
-
earlyAccessTimer && /* @__PURE__ */ (0,
|
|
8852
|
-
/* @__PURE__ */ (0,
|
|
8853
|
-
/* @__PURE__ */ (0,
|
|
8916
|
+
earlyAccessTimer && /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: [
|
|
8917
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(ProgressBar_default, { progress }),
|
|
8918
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
8854
8919
|
Box_default,
|
|
8855
8920
|
{
|
|
8856
8921
|
display: "flex",
|
|
@@ -8858,9 +8923,9 @@ var LandownerProfile = ({
|
|
|
8858
8923
|
gap: "var(--spacing-1)",
|
|
8859
8924
|
textAlign: "center",
|
|
8860
8925
|
children: [
|
|
8861
|
-
/* @__PURE__ */ (0,
|
|
8862
|
-
/* @__PURE__ */ (0,
|
|
8863
|
-
/* @__PURE__ */ (0,
|
|
8926
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { size: "xs", textAlign: "center", children: earlyAccessTimer.labelText }),
|
|
8927
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Text_default, { size: "sm", textAlign: "center", children: earlyAccessTimer.descriptionText }),
|
|
8928
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { display: "flex", justifyContent: "center", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
8864
8929
|
Timer_default,
|
|
8865
8930
|
{
|
|
8866
8931
|
expirationTimestamp: earlyAccessTimer.expirationTimestamp,
|
|
@@ -8882,11 +8947,11 @@ var LandownerProfile = ({
|
|
|
8882
8947
|
var LandownerProfile_default = LandownerProfile;
|
|
8883
8948
|
|
|
8884
8949
|
// src/ListingChat/ListingChat.tsx
|
|
8885
|
-
var
|
|
8950
|
+
var import_react59 = require("react");
|
|
8886
8951
|
|
|
8887
8952
|
// src/ListingChat/ListingChat.styles.ts
|
|
8888
|
-
var
|
|
8889
|
-
var
|
|
8953
|
+
var import_react58 = require("@emotion/react");
|
|
8954
|
+
var containerStyles4 = import_react58.css`
|
|
8890
8955
|
display: flex;
|
|
8891
8956
|
flex-direction: column;
|
|
8892
8957
|
gap: var(--spacing-4);
|
|
@@ -8894,13 +8959,13 @@ var containerStyles3 = import_react56.css`
|
|
|
8894
8959
|
border-radius: var(--radius-lg);
|
|
8895
8960
|
background: var(--surface-success);
|
|
8896
8961
|
`;
|
|
8897
|
-
var headerStyles =
|
|
8962
|
+
var headerStyles = import_react58.css`
|
|
8898
8963
|
display: flex;
|
|
8899
8964
|
align-items: flex-start;
|
|
8900
8965
|
justify-content: space-between;
|
|
8901
8966
|
gap: var(--spacing-2);
|
|
8902
8967
|
`;
|
|
8903
|
-
var chipsContainerStyles =
|
|
8968
|
+
var chipsContainerStyles = import_react58.css`
|
|
8904
8969
|
display: flex;
|
|
8905
8970
|
flex-wrap: wrap;
|
|
8906
8971
|
gap: var(--spacing-4);
|
|
@@ -8913,15 +8978,15 @@ var chipsContainerStyles = import_react56.css`
|
|
|
8913
8978
|
cursor: pointer;
|
|
8914
8979
|
}
|
|
8915
8980
|
`;
|
|
8916
|
-
var textAreaStyles =
|
|
8981
|
+
var textAreaStyles = import_react58.css`
|
|
8917
8982
|
min-height: 62px;
|
|
8918
8983
|
`;
|
|
8919
|
-
var inputWrapperStyles2 =
|
|
8984
|
+
var inputWrapperStyles2 = import_react58.css`
|
|
8920
8985
|
position: relative;
|
|
8921
8986
|
`;
|
|
8922
8987
|
|
|
8923
8988
|
// src/ListingChat/ListingChat.tsx
|
|
8924
|
-
var
|
|
8989
|
+
var import_jsx_runtime251 = require("@emotion/react/jsx-runtime");
|
|
8925
8990
|
var ListingChat = ({
|
|
8926
8991
|
onSubmit,
|
|
8927
8992
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -8931,15 +8996,15 @@ var ListingChat = ({
|
|
|
8931
8996
|
disabled = false,
|
|
8932
8997
|
...rest
|
|
8933
8998
|
}) => {
|
|
8934
|
-
const [value, setValue] = (0,
|
|
8935
|
-
const handleSubmit = (0,
|
|
8999
|
+
const [value, setValue] = (0, import_react59.useState)("");
|
|
9000
|
+
const handleSubmit = (0, import_react59.useCallback)(() => {
|
|
8936
9001
|
const trimmed = value.trim();
|
|
8937
9002
|
if (!trimmed)
|
|
8938
9003
|
return;
|
|
8939
9004
|
onSubmit(trimmed);
|
|
8940
9005
|
setValue("");
|
|
8941
9006
|
}, [onSubmit, value]);
|
|
8942
|
-
const handleTagClick = (0,
|
|
9007
|
+
const handleTagClick = (0, import_react59.useCallback)(
|
|
8943
9008
|
(tag) => () => {
|
|
8944
9009
|
const trimmed = tag.trim();
|
|
8945
9010
|
if (!trimmed)
|
|
@@ -8948,18 +9013,18 @@ var ListingChat = ({
|
|
|
8948
9013
|
},
|
|
8949
9014
|
[onSubmit]
|
|
8950
9015
|
);
|
|
8951
|
-
return /* @__PURE__ */ (0,
|
|
8952
|
-
/* @__PURE__ */ (0,
|
|
8953
|
-
/* @__PURE__ */ (0,
|
|
8954
|
-
/* @__PURE__ */ (0,
|
|
8955
|
-
/* @__PURE__ */ (0,
|
|
9016
|
+
return /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { css: containerStyles4, className, ...rest, children: [
|
|
9017
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { css: headerStyles, children: [
|
|
9018
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { children: [
|
|
9019
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
9020
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
8956
9021
|
] }),
|
|
8957
|
-
/* @__PURE__ */ (0,
|
|
8958
|
-
/* @__PURE__ */ (0,
|
|
8959
|
-
/* @__PURE__ */ (0,
|
|
9022
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
9023
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
9024
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
8960
9025
|
] })
|
|
8961
9026
|
] }),
|
|
8962
|
-
/* @__PURE__ */ (0,
|
|
9027
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8963
9028
|
TextArea,
|
|
8964
9029
|
{
|
|
8965
9030
|
rows: 1,
|
|
@@ -8974,14 +9039,14 @@ var ListingChat = ({
|
|
|
8974
9039
|
css: textAreaStyles
|
|
8975
9040
|
}
|
|
8976
9041
|
) }),
|
|
8977
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
8978
|
-
/* @__PURE__ */ (0,
|
|
8979
|
-
/* @__PURE__ */ (0,
|
|
9042
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime251.jsxs)(import_jsx_runtime251.Fragment, { children: [
|
|
9043
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
9044
|
+
/* @__PURE__ */ (0, import_jsx_runtime251.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8980
9045
|
"button",
|
|
8981
9046
|
{
|
|
8982
9047
|
onClick: handleTagClick(tag),
|
|
8983
9048
|
disabled,
|
|
8984
|
-
children: /* @__PURE__ */ (0,
|
|
9049
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(TagChip_default, { children: tag })
|
|
8985
9050
|
},
|
|
8986
9051
|
tag
|
|
8987
9052
|
)) })
|
|
@@ -8991,11 +9056,11 @@ var ListingChat = ({
|
|
|
8991
9056
|
var ListingChat_default = ListingChat;
|
|
8992
9057
|
|
|
8993
9058
|
// src/Logo/Logo.tsx
|
|
8994
|
-
var
|
|
9059
|
+
var import_react60 = require("@emotion/react");
|
|
8995
9060
|
|
|
8996
9061
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
8997
|
-
var
|
|
8998
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
9062
|
+
var import_jsx_runtime252 = require("@emotion/react/jsx-runtime");
|
|
9063
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
8999
9064
|
"svg",
|
|
9000
9065
|
{
|
|
9001
9066
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9003,14 +9068,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9003
9068
|
fill: "none",
|
|
9004
9069
|
...props,
|
|
9005
9070
|
children: [
|
|
9006
|
-
/* @__PURE__ */ (0,
|
|
9071
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9007
9072
|
"path",
|
|
9008
9073
|
{
|
|
9009
9074
|
fill: "#000",
|
|
9010
9075
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
9011
9076
|
}
|
|
9012
9077
|
) }),
|
|
9013
|
-
/* @__PURE__ */ (0,
|
|
9078
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9014
9079
|
"path",
|
|
9015
9080
|
{
|
|
9016
9081
|
fill: "#FAD44E",
|
|
@@ -9019,14 +9084,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9019
9084
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
9020
9085
|
}
|
|
9021
9086
|
),
|
|
9022
|
-
/* @__PURE__ */ (0,
|
|
9087
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9023
9088
|
"path",
|
|
9024
9089
|
{
|
|
9025
9090
|
fill: "#fff",
|
|
9026
9091
|
d: "M376.053 15.765h-9.487V49.36h-11.149V15.876h-9.56V6.608h30.196zM204.29 15.782h-9.487v33.6h-11.149V15.895h-9.56V6.633h30.196zM93.047 6.652l12.637 23.357V6.608h10.179v42.775h-10.488L92.982 25.96v23.402H82.878V6.651zM242.366 35.996l5.154 13.364h-10.781a8334 8334 0 0 0-5.254-13.389h-4.683v13.398h-10.921V6.64h4.836c7.307 0 14.616-.037 21.922.017 2.864.02 4.677 1.613 4.742 4.448q.225 10.12 0 20.244c-.052 2.927-2.075 4.29-5.015 4.648m-15.525-20.1v11.248h8.609a.912.912 0 0 0 .909-.911v-9.428a.905.905 0 0 0-.909-.91zM71.772 49.392H61.244l-1.831-9.098H48.34c-.628 2.995-1.262 6.004-1.91 9.09H36.147c3.07-14.297 6.11-28.505 9.179-42.774h17.268c3.047 14.207 6.101 28.436 9.179 42.782M57.939 30.786 55 15.744h-2.134c-1.012 4.987-2.02 9.974-3.054 15.042zM10.818 40.21H24.46v9.173H0V6.608h10.818zM282.264 6.608v32.466a.92.92 0 0 1-.268.648.9.9 0 0 1-.645.267h-7.445a.9.9 0 0 1-.645-.267.92.92 0 0 1-.267-.648V6.608h-11.025V44.94c0 2.443 1.971 4.424 4.403 4.424h22.506c2.432 0 4.404-1.982 4.404-4.426V6.608zM131.337 49.383V6.657h22.522c5.154 0 8.955 3.645 8.989 8.81q.088 12.542 0 25.086c-.046 5.18-3.85 8.824-8.999 8.824h-22.512zm11.036-33.503v24.2c2.346 0 4.623.092 6.889-.031 1.554-.084 2.589-1.274 2.6-2.912q.067-9.16 0-18.32c-.013-1.644-1.046-2.828-2.596-2.912-2.27-.123-4.549-.03-6.893-.03zM306.214 36.48c0 1.9-.115 3.747.022 5.577.31 4.136 3.799 7.47 7.924 7.539q7.022.116 14.047 0c3.879-.06 7.534-3.112 7.826-6.906.268-3.905.275-7.825.02-11.731-.176-3.002-2.574-5.277-5.55-5.806a766 766 0 0 0-13.834-2.343c-.901-.142-1.186-.527-1.176-1.342.017-1.404 0-2.807.013-4.21 0-.96.462-1.414 1.457-1.405 2.875.027 5.752.021 8.627 0 .992 0 1.425.466 1.412 1.433v2.183h9.117c0-2.078.17-4.067-.036-6.017-.406-3.818-3.896-6.992-7.718-7.057a423 423 0 0 0-14.416 0c-3.784.07-7.434 3.38-7.651 7.124a108 108 0 0 0-.01 11.375c.147 3.103 2.539 5.547 5.567 6.082q6.97 1.233 13.954 2.367c.775.127 1.058.435 1.041 1.195-.031 1.485-.01 2.971-.01 4.458 0 .857-.414 1.298-1.283 1.298h-8.875c-.859 0-1.286-.458-1.304-1.3-.017-.842 0-1.63 0-2.509z"
|
|
9027
9092
|
}
|
|
9028
9093
|
),
|
|
9029
|
-
/* @__PURE__ */ (0,
|
|
9094
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
9030
9095
|
"filter",
|
|
9031
9096
|
{
|
|
9032
9097
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -9037,8 +9102,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9037
9102
|
colorInterpolationFilters: "sRGB",
|
|
9038
9103
|
filterUnits: "userSpaceOnUse",
|
|
9039
9104
|
children: [
|
|
9040
|
-
/* @__PURE__ */ (0,
|
|
9041
|
-
/* @__PURE__ */ (0,
|
|
9105
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9106
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9042
9107
|
"feColorMatrix",
|
|
9043
9108
|
{
|
|
9044
9109
|
in: "SourceAlpha",
|
|
@@ -9046,18 +9111,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9046
9111
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
9047
9112
|
}
|
|
9048
9113
|
),
|
|
9049
|
-
/* @__PURE__ */ (0,
|
|
9050
|
-
/* @__PURE__ */ (0,
|
|
9051
|
-
/* @__PURE__ */ (0,
|
|
9052
|
-
/* @__PURE__ */ (0,
|
|
9053
|
-
/* @__PURE__ */ (0,
|
|
9114
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feOffset", { dy: 1 }),
|
|
9115
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
9116
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
9117
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
9118
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9054
9119
|
"feBlend",
|
|
9055
9120
|
{
|
|
9056
9121
|
in2: "BackgroundImageFix",
|
|
9057
9122
|
result: "effect1_dropShadow_257_2540"
|
|
9058
9123
|
}
|
|
9059
9124
|
),
|
|
9060
|
-
/* @__PURE__ */ (0,
|
|
9125
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
9061
9126
|
"feBlend",
|
|
9062
9127
|
{
|
|
9063
9128
|
in: "SourceGraphic",
|
|
@@ -9074,8 +9139,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime251.
|
|
|
9074
9139
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
9075
9140
|
|
|
9076
9141
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
9077
|
-
var
|
|
9078
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
9142
|
+
var import_jsx_runtime253 = require("@emotion/react/jsx-runtime");
|
|
9143
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
9079
9144
|
"svg",
|
|
9080
9145
|
{
|
|
9081
9146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9083,14 +9148,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9083
9148
|
fill: "none",
|
|
9084
9149
|
...props,
|
|
9085
9150
|
children: [
|
|
9086
|
-
/* @__PURE__ */ (0,
|
|
9151
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9087
9152
|
"path",
|
|
9088
9153
|
{
|
|
9089
9154
|
fill: "#000",
|
|
9090
9155
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
9091
9156
|
}
|
|
9092
9157
|
) }),
|
|
9093
|
-
/* @__PURE__ */ (0,
|
|
9158
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9094
9159
|
"path",
|
|
9095
9160
|
{
|
|
9096
9161
|
fill: "#FAD44E",
|
|
@@ -9099,14 +9164,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9099
9164
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
9100
9165
|
}
|
|
9101
9166
|
),
|
|
9102
|
-
/* @__PURE__ */ (0,
|
|
9167
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9103
9168
|
"path",
|
|
9104
9169
|
{
|
|
9105
9170
|
fill: "#1A202C",
|
|
9106
9171
|
d: "M376.053 15.765h-9.487V49.36h-11.149V15.876h-9.56V6.608h30.196zM204.29 15.782h-9.487v33.6h-11.149V15.895h-9.56V6.633h30.196zM93.047 6.652l12.637 23.357V6.608h10.179v42.775h-10.488L92.982 25.96v23.402H82.878V6.651zM242.366 35.996l5.154 13.364h-10.781a8334 8334 0 0 0-5.254-13.389h-4.683v13.398h-10.921V6.64h4.836c7.307 0 14.616-.037 21.922.017 2.864.02 4.677 1.613 4.742 4.448q.225 10.12 0 20.244c-.052 2.927-2.075 4.29-5.015 4.648m-15.525-20.1v11.248h8.609a.912.912 0 0 0 .909-.911v-9.428a.905.905 0 0 0-.909-.91zM71.772 49.392H61.244l-1.831-9.098H48.34c-.628 2.995-1.262 6.004-1.91 9.09H36.147c3.07-14.297 6.11-28.505 9.179-42.774h17.268c3.047 14.207 6.101 28.436 9.179 42.782M57.939 30.786 55 15.744h-2.134c-1.012 4.987-2.02 9.974-3.054 15.042zM10.818 40.21H24.46v9.173H0V6.608h10.818zM282.264 6.608v32.466a.92.92 0 0 1-.268.648.9.9 0 0 1-.645.267h-7.445a.9.9 0 0 1-.645-.267.92.92 0 0 1-.267-.648V6.608h-11.025V44.94c0 2.443 1.971 4.424 4.403 4.424h22.506c2.432 0 4.404-1.982 4.404-4.426V6.608zM131.337 49.383V6.657h22.522c5.154 0 8.955 3.645 8.989 8.81q.088 12.542 0 25.086c-.046 5.18-3.85 8.824-8.999 8.824h-22.512zm11.036-33.503v24.2c2.346 0 4.623.092 6.889-.031 1.554-.084 2.589-1.274 2.6-2.912q.067-9.16 0-18.32c-.013-1.644-1.046-2.828-2.596-2.912-2.27-.123-4.549-.03-6.893-.03zM306.214 36.48c0 1.9-.115 3.747.022 5.577.31 4.136 3.799 7.47 7.924 7.539q7.022.116 14.047 0c3.879-.06 7.534-3.112 7.826-6.906.268-3.905.275-7.825.02-11.731-.176-3.002-2.574-5.277-5.55-5.806a766 766 0 0 0-13.834-2.343c-.901-.142-1.186-.527-1.176-1.342.017-1.404 0-2.807.013-4.21 0-.96.462-1.414 1.457-1.405 2.875.027 5.752.021 8.627 0 .992 0 1.425.466 1.412 1.433v2.183h9.117c0-2.078.17-4.067-.036-6.017-.406-3.818-3.896-6.992-7.718-7.057a423 423 0 0 0-14.416 0c-3.784.07-7.434 3.38-7.651 7.124a108 108 0 0 0-.01 11.375c.147 3.103 2.539 5.547 5.567 6.082q6.97 1.233 13.954 2.367c.775.127 1.058.435 1.041 1.195-.031 1.485-.01 2.971-.01 4.458 0 .857-.414 1.298-1.283 1.298h-8.875c-.859 0-1.286-.458-1.304-1.3-.017-.842 0-1.63 0-2.509z"
|
|
9107
9172
|
}
|
|
9108
9173
|
),
|
|
9109
|
-
/* @__PURE__ */ (0,
|
|
9174
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
9110
9175
|
"filter",
|
|
9111
9176
|
{
|
|
9112
9177
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -9117,8 +9182,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9117
9182
|
colorInterpolationFilters: "sRGB",
|
|
9118
9183
|
filterUnits: "userSpaceOnUse",
|
|
9119
9184
|
children: [
|
|
9120
|
-
/* @__PURE__ */ (0,
|
|
9121
|
-
/* @__PURE__ */ (0,
|
|
9185
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
9186
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9122
9187
|
"feColorMatrix",
|
|
9123
9188
|
{
|
|
9124
9189
|
in: "SourceAlpha",
|
|
@@ -9126,18 +9191,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9126
9191
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
9127
9192
|
}
|
|
9128
9193
|
),
|
|
9129
|
-
/* @__PURE__ */ (0,
|
|
9130
|
-
/* @__PURE__ */ (0,
|
|
9131
|
-
/* @__PURE__ */ (0,
|
|
9132
|
-
/* @__PURE__ */ (0,
|
|
9133
|
-
/* @__PURE__ */ (0,
|
|
9194
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feOffset", { dy: 1 }),
|
|
9195
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
9196
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
9197
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
9198
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9134
9199
|
"feBlend",
|
|
9135
9200
|
{
|
|
9136
9201
|
in2: "BackgroundImageFix",
|
|
9137
9202
|
result: "effect1_dropShadow_257_2538"
|
|
9138
9203
|
}
|
|
9139
9204
|
),
|
|
9140
|
-
/* @__PURE__ */ (0,
|
|
9205
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
9141
9206
|
"feBlend",
|
|
9142
9207
|
{
|
|
9143
9208
|
in: "SourceGraphic",
|
|
@@ -9154,8 +9219,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime252
|
|
|
9154
9219
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
9155
9220
|
|
|
9156
9221
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
9157
|
-
var
|
|
9158
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
9222
|
+
var import_jsx_runtime254 = require("@emotion/react/jsx-runtime");
|
|
9223
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
9159
9224
|
"svg",
|
|
9160
9225
|
{
|
|
9161
9226
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9163,14 +9228,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
9163
9228
|
fill: "none",
|
|
9164
9229
|
...props,
|
|
9165
9230
|
children: [
|
|
9166
|
-
/* @__PURE__ */ (0,
|
|
9231
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9167
9232
|
"path",
|
|
9168
9233
|
{
|
|
9169
9234
|
fill: "#E2430C",
|
|
9170
9235
|
d: "m0 0 .037 47.582q-.003 1.401.186 2.79a15.6 15.6 0 0 0 1.223 4.315c1.787 3.934 3.9 6.263 5.914 8.25 4.047 4 8.07 6.023 10.83 7.383A50 50 0 0 0 28.29 74a50 50 0 0 0 10.103-3.68c2.76-1.36 6.783-3.384 10.83-7.383 2.014-1.987 4.126-4.316 5.921-8.25a15.7 15.7 0 0 0 1.223-4.316q.189-1.387.186-2.79L56.59 0zm51.397 5.141-.01 14.061H5.197l-.011-14.06zm-.023 31.322a30 30 0 0 0-3.911-.876c-.822-.126-4.159-.603-8.867-.05-2.086.248-3.97.712-7.736 1.64a197 197 0 0 0-6.62 1.774c-3.427 1.195-9.065 2.541-15.502 1.125a26 26 0 0 1-3.526-1.051L5.2 24.337h46.183zM36.542 65.57a41 41 0 0 1-8.252 3.009 41 41 0 0 1-8.249-3.009 69 69 0 0 1-1.53-.773l9.768-5.588 9.778 5.608c-.55.277-1.054.525-1.515.753m14.823-18.4q.001.736-.072 1.467a13.2 13.2 0 0 1-1.076 4.17c-1.46 3.213-3.182 5.114-4.83 6.739a28 28 0 0 1-2.348 2.074l-.235-.133-14.525-8.327-14.544 8.324-.203.115a28 28 0 0 1-2.328-2.057c-1.642-1.624-3.369-3.526-4.829-6.74A13.2 13.2 0 0 1 5.3 48.636a15 15 0 0 1-.073-1.467v-2.774q1.9.561 3.86.86c.82.127 4.16.603 8.87.05 2.083-.246 3.967-.712 7.732-1.639a184 184 0 0 0 6.62-1.766c3.428-1.197 9.064-2.541 15.503-1.125q1.823.399 3.569 1.051z"
|
|
9171
9236
|
}
|
|
9172
9237
|
),
|
|
9173
|
-
/* @__PURE__ */ (0,
|
|
9238
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(
|
|
9174
9239
|
"path",
|
|
9175
9240
|
{
|
|
9176
9241
|
fill: "#fff",
|
|
@@ -9183,8 +9248,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
9183
9248
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
9184
9249
|
|
|
9185
9250
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
9186
|
-
var
|
|
9187
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
9251
|
+
var import_jsx_runtime255 = require("@emotion/react/jsx-runtime");
|
|
9252
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime255.jsxs)(
|
|
9188
9253
|
"svg",
|
|
9189
9254
|
{
|
|
9190
9255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9192,14 +9257,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
9192
9257
|
fill: "none",
|
|
9193
9258
|
...props,
|
|
9194
9259
|
children: [
|
|
9195
|
-
/* @__PURE__ */ (0,
|
|
9260
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
9196
9261
|
"path",
|
|
9197
9262
|
{
|
|
9198
9263
|
fill: "#E2430C",
|
|
9199
9264
|
d: "m0 0 .037 47.582q-.003 1.401.186 2.79a15.6 15.6 0 0 0 1.223 4.315c1.787 3.934 3.9 6.263 5.914 8.25 4.047 4 8.07 6.023 10.83 7.383A50 50 0 0 0 28.29 74a50 50 0 0 0 10.103-3.68c2.76-1.36 6.783-3.384 10.83-7.383 2.014-1.987 4.126-4.316 5.921-8.25a15.7 15.7 0 0 0 1.223-4.316q.189-1.387.186-2.79L56.59 0zm51.397 5.141-.01 14.061H5.197l-.011-14.06zm-.023 31.322a30 30 0 0 0-3.911-.876c-.822-.126-4.159-.603-8.867-.05-2.086.248-3.97.712-7.736 1.64a197 197 0 0 0-6.62 1.774c-3.427 1.195-9.065 2.541-15.502 1.125a26 26 0 0 1-3.526-1.051L5.2 24.337h46.183zM36.542 65.57a41 41 0 0 1-8.252 3.009 41 41 0 0 1-8.249-3.009 69 69 0 0 1-1.53-.773l9.768-5.588 9.778 5.608c-.55.277-1.054.525-1.515.753m14.823-18.4q.001.736-.072 1.467a13.2 13.2 0 0 1-1.076 4.17c-1.46 3.213-3.182 5.114-4.83 6.739a28 28 0 0 1-2.348 2.074l-.235-.133-14.525-8.327-14.544 8.324-.203.115a28 28 0 0 1-2.328-2.057c-1.642-1.624-3.369-3.526-4.829-6.74A13.2 13.2 0 0 1 5.3 48.636a15 15 0 0 1-.073-1.467v-2.774q1.9.561 3.86.86c.82.127 4.16.603 8.87.05 2.083-.246 3.967-.712 7.732-1.639a184 184 0 0 0 6.62-1.766c3.428-1.197 9.064-2.541 15.503-1.125q1.823.399 3.569 1.051z"
|
|
9200
9265
|
}
|
|
9201
9266
|
),
|
|
9202
|
-
/* @__PURE__ */ (0,
|
|
9267
|
+
/* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
9203
9268
|
"path",
|
|
9204
9269
|
{
|
|
9205
9270
|
fill: "#000",
|
|
@@ -9212,8 +9277,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
9212
9277
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
9213
9278
|
|
|
9214
9279
|
// src/Logo/Logo.tsx
|
|
9215
|
-
var
|
|
9216
|
-
var logoStyles = (size) =>
|
|
9280
|
+
var import_jsx_runtime256 = require("@emotion/react/jsx-runtime");
|
|
9281
|
+
var logoStyles = (size) => import_react60.css`
|
|
9217
9282
|
width: ${space[size]};
|
|
9218
9283
|
height: auto;
|
|
9219
9284
|
display: block;
|
|
@@ -9241,18 +9306,18 @@ var Logo = ({
|
|
|
9241
9306
|
return LandtrustStandardLight_default;
|
|
9242
9307
|
};
|
|
9243
9308
|
const LogoComponent = getLogoComponent();
|
|
9244
|
-
return /* @__PURE__ */ (0,
|
|
9309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
9245
9310
|
};
|
|
9246
9311
|
var Logo_default = Logo;
|
|
9247
9312
|
|
|
9248
9313
|
// src/Navigation/Navigation.styles.ts
|
|
9249
|
-
var
|
|
9250
|
-
var navigationStyles =
|
|
9314
|
+
var import_react61 = require("@emotion/react");
|
|
9315
|
+
var navigationStyles = import_react61.css`
|
|
9251
9316
|
width: 100%;
|
|
9252
9317
|
background-color: white;
|
|
9253
9318
|
border-bottom: 1px solid #e5e5e5;
|
|
9254
9319
|
`;
|
|
9255
|
-
var hamburgerButtonStyles =
|
|
9320
|
+
var hamburgerButtonStyles = import_react61.css`
|
|
9256
9321
|
cursor: pointer;
|
|
9257
9322
|
&:focus {
|
|
9258
9323
|
outline: 2px solid #4f46e5;
|
|
@@ -9263,7 +9328,7 @@ var hamburgerButtonStyles = import_react59.css`
|
|
|
9263
9328
|
display: none;
|
|
9264
9329
|
}
|
|
9265
9330
|
`;
|
|
9266
|
-
var centeredLogoStyles =
|
|
9331
|
+
var centeredLogoStyles = import_react61.css`
|
|
9267
9332
|
transform: translate(-50%, -50%);
|
|
9268
9333
|
max-width: 150px;
|
|
9269
9334
|
|
|
@@ -9271,27 +9336,27 @@ var centeredLogoStyles = import_react59.css`
|
|
|
9271
9336
|
display: none;
|
|
9272
9337
|
}
|
|
9273
9338
|
`;
|
|
9274
|
-
var desktopLogoStyles =
|
|
9339
|
+
var desktopLogoStyles = import_react61.css`
|
|
9275
9340
|
display: none;
|
|
9276
9341
|
|
|
9277
9342
|
@media (min-width: 768px) {
|
|
9278
9343
|
display: block;
|
|
9279
9344
|
}
|
|
9280
9345
|
`;
|
|
9281
|
-
var
|
|
9346
|
+
var containerStyles5 = import_react61.css`
|
|
9282
9347
|
@media (min-width: 768px) {
|
|
9283
9348
|
justify-content: space-between;
|
|
9284
9349
|
position: static;
|
|
9285
9350
|
}
|
|
9286
9351
|
`;
|
|
9287
|
-
var logoStyles2 =
|
|
9352
|
+
var logoStyles2 = import_react61.css`
|
|
9288
9353
|
width: 100%;
|
|
9289
9354
|
|
|
9290
9355
|
@media (min-width: 768px) {
|
|
9291
9356
|
width: initial;
|
|
9292
9357
|
}
|
|
9293
9358
|
`;
|
|
9294
|
-
var desktopNavStyles =
|
|
9359
|
+
var desktopNavStyles = import_react61.css`
|
|
9295
9360
|
display: none;
|
|
9296
9361
|
|
|
9297
9362
|
@media (min-width: 768px) {
|
|
@@ -9300,7 +9365,7 @@ var desktopNavStyles = import_react59.css`
|
|
|
9300
9365
|
gap: 32px;
|
|
9301
9366
|
}
|
|
9302
9367
|
`;
|
|
9303
|
-
var navLinksStyles =
|
|
9368
|
+
var navLinksStyles = import_react61.css`
|
|
9304
9369
|
display: flex;
|
|
9305
9370
|
align-items: center;
|
|
9306
9371
|
gap: 24px;
|
|
@@ -9308,7 +9373,7 @@ var navLinksStyles = import_react59.css`
|
|
|
9308
9373
|
margin: 0;
|
|
9309
9374
|
padding: 0;
|
|
9310
9375
|
`;
|
|
9311
|
-
var navLinkStyles =
|
|
9376
|
+
var navLinkStyles = import_react61.css`
|
|
9312
9377
|
text-decoration: none;
|
|
9313
9378
|
color: #374151;
|
|
9314
9379
|
font-weight: 500;
|
|
@@ -9324,7 +9389,7 @@ var navLinkStyles = import_react59.css`
|
|
|
9324
9389
|
outline-offset: 2px;
|
|
9325
9390
|
}
|
|
9326
9391
|
`;
|
|
9327
|
-
var avatarPlaceholderStyles =
|
|
9392
|
+
var avatarPlaceholderStyles = import_react61.css`
|
|
9328
9393
|
width: 32px;
|
|
9329
9394
|
height: 32px;
|
|
9330
9395
|
border-radius: 50%;
|
|
@@ -9349,7 +9414,7 @@ var avatarPlaceholderStyles = import_react59.css`
|
|
|
9349
9414
|
`;
|
|
9350
9415
|
|
|
9351
9416
|
// src/Navigation/Navigation.tsx
|
|
9352
|
-
var
|
|
9417
|
+
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
9353
9418
|
var Navigation = ({
|
|
9354
9419
|
onMenuToggle,
|
|
9355
9420
|
className,
|
|
@@ -9363,16 +9428,16 @@ var Navigation = ({
|
|
|
9363
9428
|
onAvatarClick,
|
|
9364
9429
|
...rest
|
|
9365
9430
|
}) => {
|
|
9366
|
-
return /* @__PURE__ */ (0,
|
|
9431
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
9367
9432
|
Box_default,
|
|
9368
9433
|
{
|
|
9369
9434
|
display: "flex",
|
|
9370
9435
|
alignItems: "center",
|
|
9371
9436
|
padding: space[4],
|
|
9372
9437
|
position: "relative",
|
|
9373
|
-
css:
|
|
9438
|
+
css: containerStyles5,
|
|
9374
9439
|
children: [
|
|
9375
|
-
/* @__PURE__ */ (0,
|
|
9440
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9376
9441
|
Box_default,
|
|
9377
9442
|
{
|
|
9378
9443
|
as: "button",
|
|
@@ -9384,11 +9449,11 @@ var Navigation = ({
|
|
|
9384
9449
|
border: "none",
|
|
9385
9450
|
padding: space[2],
|
|
9386
9451
|
css: hamburgerButtonStyles,
|
|
9387
|
-
children: /* @__PURE__ */ (0,
|
|
9452
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
9388
9453
|
}
|
|
9389
9454
|
),
|
|
9390
|
-
/* @__PURE__ */ (0,
|
|
9391
|
-
/* @__PURE__ */ (0,
|
|
9455
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
9456
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9392
9457
|
Logo_default,
|
|
9393
9458
|
{
|
|
9394
9459
|
variant: logoVariant,
|
|
@@ -9397,8 +9462,8 @@ var Navigation = ({
|
|
|
9397
9462
|
css: logoStyles2
|
|
9398
9463
|
}
|
|
9399
9464
|
) }),
|
|
9400
|
-
/* @__PURE__ */ (0,
|
|
9401
|
-
/* @__PURE__ */ (0,
|
|
9465
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
9466
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9402
9467
|
"a",
|
|
9403
9468
|
{
|
|
9404
9469
|
href: link.href,
|
|
@@ -9407,7 +9472,7 @@ var Navigation = ({
|
|
|
9407
9472
|
children: link.label
|
|
9408
9473
|
}
|
|
9409
9474
|
) }, link.href)) }) }),
|
|
9410
|
-
/* @__PURE__ */ (0,
|
|
9475
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
9411
9476
|
Box_default,
|
|
9412
9477
|
{
|
|
9413
9478
|
as: "button",
|
|
@@ -9426,21 +9491,21 @@ var Navigation = ({
|
|
|
9426
9491
|
var Navigation_default = Navigation;
|
|
9427
9492
|
|
|
9428
9493
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
9429
|
-
var
|
|
9494
|
+
var import_react64 = require("react");
|
|
9430
9495
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
9431
9496
|
|
|
9432
9497
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
9433
|
-
var
|
|
9434
|
-
var CarouselContext =
|
|
9498
|
+
var import_react62 = __toESM(require("react"));
|
|
9499
|
+
var CarouselContext = import_react62.default.createContext(
|
|
9435
9500
|
null
|
|
9436
9501
|
);
|
|
9437
9502
|
|
|
9438
9503
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
9439
|
-
var
|
|
9440
|
-
var carouselRoot =
|
|
9504
|
+
var import_react63 = require("@emotion/react");
|
|
9505
|
+
var carouselRoot = import_react63.css`
|
|
9441
9506
|
position: relative;
|
|
9442
9507
|
`;
|
|
9443
|
-
var carousel =
|
|
9508
|
+
var carousel = import_react63.css`
|
|
9444
9509
|
display: flex;
|
|
9445
9510
|
overflow-y: hidden;
|
|
9446
9511
|
overflow-x: scroll;
|
|
@@ -9452,7 +9517,7 @@ var carousel = import_react61.css`
|
|
|
9452
9517
|
display: none;
|
|
9453
9518
|
}
|
|
9454
9519
|
`;
|
|
9455
|
-
var step =
|
|
9520
|
+
var step = import_react63.css`
|
|
9456
9521
|
scroll-snap-align: center;
|
|
9457
9522
|
flex-basis: 100%;
|
|
9458
9523
|
flex-shrink: 0;
|
|
@@ -9465,7 +9530,7 @@ var step = import_react61.css`
|
|
|
9465
9530
|
flex-basis: 100%;
|
|
9466
9531
|
}
|
|
9467
9532
|
`;
|
|
9468
|
-
var controls = (position2) =>
|
|
9533
|
+
var controls = (position2) => import_react63.css`
|
|
9469
9534
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
9470
9535
|
display: none;
|
|
9471
9536
|
|
|
@@ -9474,7 +9539,7 @@ var controls = (position2) => import_react61.css`
|
|
|
9474
9539
|
}
|
|
9475
9540
|
`}
|
|
9476
9541
|
`;
|
|
9477
|
-
var iconWrapper =
|
|
9542
|
+
var iconWrapper = import_react63.css`
|
|
9478
9543
|
display: flex;
|
|
9479
9544
|
width: var(--spacing-7);
|
|
9480
9545
|
height: var(--spacing-7);
|
|
@@ -9484,7 +9549,7 @@ var iconWrapper = import_react61.css`
|
|
|
9484
9549
|
justify-content: center;
|
|
9485
9550
|
box-shadow: var(--shadow-md);
|
|
9486
9551
|
`;
|
|
9487
|
-
var button = (position2) =>
|
|
9552
|
+
var button = (position2) => import_react63.css`
|
|
9488
9553
|
background: transparent;
|
|
9489
9554
|
border-color: transparent;
|
|
9490
9555
|
outline: none;
|
|
@@ -9516,7 +9581,7 @@ var button = (position2) => import_react61.css`
|
|
|
9516
9581
|
bottom: calc(-1 * var(--spacing-1));
|
|
9517
9582
|
`}
|
|
9518
9583
|
`;
|
|
9519
|
-
var buttonLeft = (position2) =>
|
|
9584
|
+
var buttonLeft = (position2) => import_react63.css`
|
|
9520
9585
|
${button(position2)}
|
|
9521
9586
|
|
|
9522
9587
|
${position2 === "left-right" && `
|
|
@@ -9536,7 +9601,7 @@ var buttonLeft = (position2) => import_react61.css`
|
|
|
9536
9601
|
left: calc(50% - var(--spacing-16));
|
|
9537
9602
|
`}
|
|
9538
9603
|
`;
|
|
9539
|
-
var customButtonLeft = (position2) =>
|
|
9604
|
+
var customButtonLeft = (position2) => import_react63.css`
|
|
9540
9605
|
${button(position2)}
|
|
9541
9606
|
|
|
9542
9607
|
${position2 === "left-right" && `
|
|
@@ -9556,7 +9621,7 @@ var customButtonLeft = (position2) => import_react61.css`
|
|
|
9556
9621
|
left: calc(50% - var(--spacing-16));
|
|
9557
9622
|
`}
|
|
9558
9623
|
`;
|
|
9559
|
-
var buttonRight = (position2) =>
|
|
9624
|
+
var buttonRight = (position2) => import_react63.css`
|
|
9560
9625
|
${button(position2)}
|
|
9561
9626
|
|
|
9562
9627
|
${position2 === "left-right" && `
|
|
@@ -9576,12 +9641,12 @@ var buttonRight = (position2) => import_react61.css`
|
|
|
9576
9641
|
right: calc(50% - var(--spacing-16));
|
|
9577
9642
|
`}
|
|
9578
9643
|
`;
|
|
9579
|
-
var icon =
|
|
9644
|
+
var icon = import_react63.css`
|
|
9580
9645
|
width: var(--spacing-3);
|
|
9581
9646
|
height: var(--spacing-3);
|
|
9582
9647
|
color: var(--color-base-black);
|
|
9583
9648
|
`;
|
|
9584
|
-
var dots =
|
|
9649
|
+
var dots = import_react63.css`
|
|
9585
9650
|
position: absolute;
|
|
9586
9651
|
bottom: var(--spacing-2);
|
|
9587
9652
|
left: 0;
|
|
@@ -9591,11 +9656,11 @@ var dots = import_react61.css`
|
|
|
9591
9656
|
align-items: center;
|
|
9592
9657
|
justify-content: center;
|
|
9593
9658
|
`;
|
|
9594
|
-
var dotsInner =
|
|
9659
|
+
var dotsInner = import_react63.css`
|
|
9595
9660
|
display: flex;
|
|
9596
9661
|
overflow: hidden;
|
|
9597
9662
|
`;
|
|
9598
|
-
var dot = (dotsColor) =>
|
|
9663
|
+
var dot = (dotsColor) => import_react63.css`
|
|
9599
9664
|
position: relative;
|
|
9600
9665
|
flex-shrink: 0;
|
|
9601
9666
|
flex-grow: 0;
|
|
@@ -9634,22 +9699,22 @@ var dot = (dotsColor) => import_react61.css`
|
|
|
9634
9699
|
`}
|
|
9635
9700
|
}
|
|
9636
9701
|
`;
|
|
9637
|
-
var dotDistance2 =
|
|
9702
|
+
var dotDistance2 = import_react63.css`
|
|
9638
9703
|
&::after {
|
|
9639
9704
|
transform: translate(-50%, -50%) scale(0.9);
|
|
9640
9705
|
}
|
|
9641
9706
|
`;
|
|
9642
|
-
var dotDistance3 =
|
|
9707
|
+
var dotDistance3 = import_react63.css`
|
|
9643
9708
|
&::after {
|
|
9644
9709
|
transform: translate(-50%, -50%) scale(0.8);
|
|
9645
9710
|
}
|
|
9646
9711
|
`;
|
|
9647
|
-
var dotDistanceGreaterThan3 =
|
|
9712
|
+
var dotDistanceGreaterThan3 = import_react63.css`
|
|
9648
9713
|
&::after {
|
|
9649
9714
|
transform: translate(-50%, -50%) scale(0.7);
|
|
9650
9715
|
}
|
|
9651
9716
|
`;
|
|
9652
|
-
var dotVisible =
|
|
9717
|
+
var dotVisible = import_react63.css`
|
|
9653
9718
|
&::after {
|
|
9654
9719
|
opacity: 1;
|
|
9655
9720
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -9657,7 +9722,7 @@ var dotVisible = import_react61.css`
|
|
|
9657
9722
|
`;
|
|
9658
9723
|
|
|
9659
9724
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
9660
|
-
var
|
|
9725
|
+
var import_jsx_runtime258 = require("@emotion/react/jsx-runtime");
|
|
9661
9726
|
var ScrollingCarouselStep = ({
|
|
9662
9727
|
children,
|
|
9663
9728
|
index,
|
|
@@ -9665,7 +9730,7 @@ var ScrollingCarouselStep = ({
|
|
|
9665
9730
|
parentId,
|
|
9666
9731
|
onClick
|
|
9667
9732
|
}) => {
|
|
9668
|
-
const context = (0,
|
|
9733
|
+
const context = (0, import_react64.useContext)(CarouselContext);
|
|
9669
9734
|
if (!context) {
|
|
9670
9735
|
throw new Error(
|
|
9671
9736
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -9676,7 +9741,7 @@ var ScrollingCarouselStep = ({
|
|
|
9676
9741
|
threshold: 0.75,
|
|
9677
9742
|
root: carousel2.current
|
|
9678
9743
|
});
|
|
9679
|
-
(0,
|
|
9744
|
+
(0, import_react64.useEffect)(() => {
|
|
9680
9745
|
if (typeof index !== "undefined") {
|
|
9681
9746
|
dispatch({
|
|
9682
9747
|
type: "set_child_visibility",
|
|
@@ -9684,7 +9749,7 @@ var ScrollingCarouselStep = ({
|
|
|
9684
9749
|
});
|
|
9685
9750
|
}
|
|
9686
9751
|
}, [inView, index, dispatch]);
|
|
9687
|
-
return /* @__PURE__ */ (0,
|
|
9752
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsx)(
|
|
9688
9753
|
"div",
|
|
9689
9754
|
{
|
|
9690
9755
|
ref,
|
|
@@ -9702,10 +9767,10 @@ var ScrollingCarouselStep = ({
|
|
|
9702
9767
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
9703
9768
|
|
|
9704
9769
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9705
|
-
var
|
|
9770
|
+
var import_react68 = __toESM(require("react"));
|
|
9706
9771
|
|
|
9707
9772
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
9708
|
-
var
|
|
9773
|
+
var import_react65 = require("react");
|
|
9709
9774
|
|
|
9710
9775
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
9711
9776
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -9736,7 +9801,7 @@ var useCarouselDots = ({
|
|
|
9736
9801
|
anyItemsVisible,
|
|
9737
9802
|
numberOfDots
|
|
9738
9803
|
}) => {
|
|
9739
|
-
const dotOffset = (0,
|
|
9804
|
+
const dotOffset = (0, import_react65.useRef)(0);
|
|
9740
9805
|
const dotWidth = 12;
|
|
9741
9806
|
const totalDots = childVisibility.length;
|
|
9742
9807
|
const dotToCenterIndex = Math.round(
|
|
@@ -9768,7 +9833,7 @@ var useCarouselDots = ({
|
|
|
9768
9833
|
};
|
|
9769
9834
|
|
|
9770
9835
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
9771
|
-
var
|
|
9836
|
+
var import_react66 = require("react");
|
|
9772
9837
|
|
|
9773
9838
|
// src/shared/helpers.ts
|
|
9774
9839
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -9802,7 +9867,7 @@ var useCarouselNavigation = ({
|
|
|
9802
9867
|
infiniteScroll,
|
|
9803
9868
|
childVisibilityLength
|
|
9804
9869
|
}) => {
|
|
9805
|
-
const getStepEl = (0,
|
|
9870
|
+
const getStepEl = (0, import_react66.useCallback)(
|
|
9806
9871
|
(index) => {
|
|
9807
9872
|
if (carousel2.current) {
|
|
9808
9873
|
const selector = `[data-carousel-id="${id}"][data-carousel-index="${index}"]`;
|
|
@@ -9812,7 +9877,7 @@ var useCarouselNavigation = ({
|
|
|
9812
9877
|
},
|
|
9813
9878
|
[carousel2, id]
|
|
9814
9879
|
);
|
|
9815
|
-
const next = (0,
|
|
9880
|
+
const next = (0, import_react66.useCallback)(
|
|
9816
9881
|
(e) => {
|
|
9817
9882
|
e.preventDefault();
|
|
9818
9883
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -9840,7 +9905,7 @@ var useCarouselNavigation = ({
|
|
|
9840
9905
|
carousel2
|
|
9841
9906
|
]
|
|
9842
9907
|
);
|
|
9843
|
-
const back = (0,
|
|
9908
|
+
const back = (0, import_react66.useCallback)(
|
|
9844
9909
|
(e) => {
|
|
9845
9910
|
e.preventDefault();
|
|
9846
9911
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -9868,7 +9933,7 @@ var useCarouselNavigation = ({
|
|
|
9868
9933
|
carousel2
|
|
9869
9934
|
]
|
|
9870
9935
|
);
|
|
9871
|
-
const goTo = (0,
|
|
9936
|
+
const goTo = (0, import_react66.useCallback)(
|
|
9872
9937
|
(e, i) => {
|
|
9873
9938
|
e.preventDefault();
|
|
9874
9939
|
const el = getStepEl(i);
|
|
@@ -9886,12 +9951,12 @@ var useCarouselNavigation = ({
|
|
|
9886
9951
|
};
|
|
9887
9952
|
|
|
9888
9953
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
9889
|
-
var
|
|
9954
|
+
var import_react67 = require("react");
|
|
9890
9955
|
var useCarouselVisibility = (carousel2) => {
|
|
9891
|
-
const [state, dispatch] = (0,
|
|
9956
|
+
const [state, dispatch] = (0, import_react67.useReducer)(childVisibilityReducer, {
|
|
9892
9957
|
childVisibility: []
|
|
9893
9958
|
});
|
|
9894
|
-
const carouselContextApi = (0,
|
|
9959
|
+
const carouselContextApi = (0, import_react67.useMemo)(
|
|
9895
9960
|
() => ({ carousel: carousel2, dispatch }),
|
|
9896
9961
|
[carousel2]
|
|
9897
9962
|
);
|
|
@@ -9912,7 +9977,7 @@ var useCarouselVisibility = (carousel2) => {
|
|
|
9912
9977
|
};
|
|
9913
9978
|
|
|
9914
9979
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
9915
|
-
var
|
|
9980
|
+
var import_jsx_runtime259 = require("@emotion/react/jsx-runtime");
|
|
9916
9981
|
var ScrollingCarousel = ({
|
|
9917
9982
|
className,
|
|
9918
9983
|
children,
|
|
@@ -9929,8 +9994,8 @@ var ScrollingCarousel = ({
|
|
|
9929
9994
|
id,
|
|
9930
9995
|
current
|
|
9931
9996
|
}) => {
|
|
9932
|
-
const carousel2 = (0,
|
|
9933
|
-
const [isHovering, setIsHovering] = (0,
|
|
9997
|
+
const carousel2 = (0, import_react68.useRef)(null);
|
|
9998
|
+
const [isHovering, setIsHovering] = (0, import_react68.useState)(false);
|
|
9934
9999
|
const {
|
|
9935
10000
|
state,
|
|
9936
10001
|
carouselContextApi,
|
|
@@ -9950,7 +10015,7 @@ var ScrollingCarousel = ({
|
|
|
9950
10015
|
infiniteScroll,
|
|
9951
10016
|
childVisibilityLength: state.childVisibility.length
|
|
9952
10017
|
});
|
|
9953
|
-
(0,
|
|
10018
|
+
(0, import_react68.useEffect)(() => {
|
|
9954
10019
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
9955
10020
|
const childrenArray = Array.from(carousel2.current.children);
|
|
9956
10021
|
const selectedItem = childrenArray[current];
|
|
@@ -9965,9 +10030,9 @@ var ScrollingCarousel = ({
|
|
|
9965
10030
|
}
|
|
9966
10031
|
}
|
|
9967
10032
|
}, [current]);
|
|
9968
|
-
const childrenWithIndex =
|
|
10033
|
+
const childrenWithIndex = import_react68.default.Children.map(
|
|
9969
10034
|
children,
|
|
9970
|
-
(child, index) =>
|
|
10035
|
+
(child, index) => import_react68.default.cloneElement(child, { index })
|
|
9971
10036
|
);
|
|
9972
10037
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
9973
10038
|
childVisibility: state.childVisibility,
|
|
@@ -9978,7 +10043,7 @@ var ScrollingCarousel = ({
|
|
|
9978
10043
|
});
|
|
9979
10044
|
const hasMultipleChildren = state.childVisibility.length > 1;
|
|
9980
10045
|
const shouldShowNavigation = showNavigationOnHover ? isHovering : true;
|
|
9981
|
-
return /* @__PURE__ */ (0,
|
|
10046
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9982
10047
|
"div",
|
|
9983
10048
|
{
|
|
9984
10049
|
css: carouselRoot,
|
|
@@ -9986,7 +10051,7 @@ var ScrollingCarousel = ({
|
|
|
9986
10051
|
onMouseEnter: () => setIsHovering(true),
|
|
9987
10052
|
onMouseLeave: () => setIsHovering(false),
|
|
9988
10053
|
children: [
|
|
9989
|
-
/* @__PURE__ */ (0,
|
|
10054
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9990
10055
|
"div",
|
|
9991
10056
|
{
|
|
9992
10057
|
css: carousel,
|
|
@@ -9995,11 +10060,11 @@ var ScrollingCarousel = ({
|
|
|
9995
10060
|
role: "region",
|
|
9996
10061
|
"aria-roledescription": "carousel",
|
|
9997
10062
|
"aria-label": "Scrolling carousel",
|
|
9998
|
-
children: /* @__PURE__ */ (0,
|
|
10063
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(CarouselContext.Provider, { value: carouselContextApi, children: childrenWithIndex })
|
|
9999
10064
|
}
|
|
10000
10065
|
),
|
|
10001
|
-
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0,
|
|
10002
|
-
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
10066
|
+
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)("div", { css: controls(buttonsPosition), children: [
|
|
10067
|
+
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10003
10068
|
"button",
|
|
10004
10069
|
{
|
|
10005
10070
|
"aria-label": "Previous",
|
|
@@ -10011,10 +10076,10 @@ var ScrollingCarousel = ({
|
|
|
10011
10076
|
},
|
|
10012
10077
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
10013
10078
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
10014
|
-
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0,
|
|
10079
|
+
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Icon_default, { variant: "AngleLeft", css: icon }) })
|
|
10015
10080
|
}
|
|
10016
10081
|
),
|
|
10017
|
-
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
10082
|
+
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10018
10083
|
"button",
|
|
10019
10084
|
{
|
|
10020
10085
|
"aria-label": "Next",
|
|
@@ -10026,11 +10091,11 @@ var ScrollingCarousel = ({
|
|
|
10026
10091
|
},
|
|
10027
10092
|
css: buttonRight(buttonsPosition),
|
|
10028
10093
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
10029
|
-
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0,
|
|
10094
|
+
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Icon_default, { variant: "AngleRight", css: icon }) })
|
|
10030
10095
|
}
|
|
10031
10096
|
)
|
|
10032
10097
|
] }),
|
|
10033
|
-
showDots && /* @__PURE__ */ (0,
|
|
10098
|
+
showDots && /* @__PURE__ */ (0, import_jsx_runtime259.jsx)("div", { css: dots, children: /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10034
10099
|
"div",
|
|
10035
10100
|
{
|
|
10036
10101
|
css: dotsInner,
|
|
@@ -10038,7 +10103,7 @@ var ScrollingCarousel = ({
|
|
|
10038
10103
|
children: state.childVisibility.map((childVisibility, i) => {
|
|
10039
10104
|
var _a;
|
|
10040
10105
|
const distance = (_a = dotDistances[i]) != null ? _a : 0;
|
|
10041
|
-
return /* @__PURE__ */ (0,
|
|
10106
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
10042
10107
|
"button",
|
|
10043
10108
|
{
|
|
10044
10109
|
type: "button",
|
|
@@ -10069,8 +10134,8 @@ var ScrollingCarousel = ({
|
|
|
10069
10134
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
10070
10135
|
|
|
10071
10136
|
// src/PackageCard/PackageCard.styles.ts
|
|
10072
|
-
var
|
|
10073
|
-
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) =>
|
|
10137
|
+
var import_react69 = require("@emotion/react");
|
|
10138
|
+
var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler) => import_react69.css`
|
|
10074
10139
|
${hasClickHandler && `
|
|
10075
10140
|
cursor: pointer;
|
|
10076
10141
|
`}
|
|
@@ -10088,7 +10153,7 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
10088
10153
|
flex-direction: column;
|
|
10089
10154
|
gap: var(--spacing-2);
|
|
10090
10155
|
|
|
10091
|
-
${orientation === "horizontal" &&
|
|
10156
|
+
${orientation === "horizontal" && import_react69.css`
|
|
10092
10157
|
/* Apply horizontal layout only on tablet and up */
|
|
10093
10158
|
${media.md} {
|
|
10094
10159
|
flex-direction: row;
|
|
@@ -10116,60 +10181,60 @@ var cardContainerStyles3 = (orientation, hasContentBackground, hasClickHandler)
|
|
|
10116
10181
|
}
|
|
10117
10182
|
`}
|
|
10118
10183
|
`;
|
|
10119
|
-
var imageContainerStyles = (orientation) =>
|
|
10184
|
+
var imageContainerStyles = (orientation) => import_react69.css`
|
|
10120
10185
|
width: 100%;
|
|
10121
10186
|
height: 260px;
|
|
10122
10187
|
|
|
10123
|
-
${orientation === "horizontal" &&
|
|
10188
|
+
${orientation === "horizontal" && import_react69.css`
|
|
10124
10189
|
${media.md} {
|
|
10125
10190
|
width: 40%;
|
|
10126
10191
|
height: 200px;
|
|
10127
10192
|
}
|
|
10128
10193
|
`}
|
|
10129
10194
|
`;
|
|
10130
|
-
var imageBoxStyles = (orientation) =>
|
|
10195
|
+
var imageBoxStyles = (orientation) => import_react69.css`
|
|
10131
10196
|
height: 260px;
|
|
10132
10197
|
|
|
10133
|
-
${orientation === "horizontal" &&
|
|
10198
|
+
${orientation === "horizontal" && import_react69.css`
|
|
10134
10199
|
${media.md} {
|
|
10135
10200
|
height: 200px;
|
|
10136
10201
|
}
|
|
10137
10202
|
`}
|
|
10138
10203
|
`;
|
|
10139
|
-
var contentContainerStyles = (orientation, hasContentBackground) =>
|
|
10204
|
+
var contentContainerStyles = (orientation, hasContentBackground) => import_react69.css`
|
|
10140
10205
|
${hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles}
|
|
10141
10206
|
width: 100%;
|
|
10142
10207
|
display: flex;
|
|
10143
10208
|
flex-direction: column;
|
|
10144
10209
|
justify-content: flex-start;
|
|
10145
10210
|
|
|
10146
|
-
${orientation === "horizontal" &&
|
|
10211
|
+
${orientation === "horizontal" && import_react69.css`
|
|
10147
10212
|
${media.md} {
|
|
10148
10213
|
width: 60%;
|
|
10149
10214
|
justify-content: center;
|
|
10150
10215
|
}
|
|
10151
10216
|
`}
|
|
10152
10217
|
`;
|
|
10153
|
-
var imageStyles3 =
|
|
10218
|
+
var imageStyles3 = import_react69.css`
|
|
10154
10219
|
background-size: cover;
|
|
10155
10220
|
background-position: center;
|
|
10156
10221
|
background-repeat: no-repeat;
|
|
10157
10222
|
position: relative;
|
|
10158
10223
|
background-color: lightgray;
|
|
10159
10224
|
`;
|
|
10160
|
-
var badgeTopLeftStyles =
|
|
10225
|
+
var badgeTopLeftStyles = import_react69.css`
|
|
10161
10226
|
position: absolute;
|
|
10162
10227
|
top: var(--spacing-3);
|
|
10163
10228
|
left: var(--spacing-3);
|
|
10164
10229
|
z-index: 2;
|
|
10165
10230
|
`;
|
|
10166
|
-
var badgeBottomRightStyles =
|
|
10231
|
+
var badgeBottomRightStyles = import_react69.css`
|
|
10167
10232
|
position: absolute;
|
|
10168
10233
|
bottom: var(--spacing-3);
|
|
10169
10234
|
right: var(--spacing-3);
|
|
10170
10235
|
z-index: 2;
|
|
10171
10236
|
`;
|
|
10172
|
-
var heartIconStyles =
|
|
10237
|
+
var heartIconStyles = import_react69.css`
|
|
10173
10238
|
position: absolute;
|
|
10174
10239
|
top: var(--spacing-3);
|
|
10175
10240
|
right: var(--spacing-3);
|
|
@@ -10191,20 +10256,20 @@ var heartIconStyles = import_react67.css`
|
|
|
10191
10256
|
transform: scale(1.1);
|
|
10192
10257
|
}
|
|
10193
10258
|
`;
|
|
10194
|
-
var actionMenuStyles =
|
|
10259
|
+
var actionMenuStyles = import_react69.css`
|
|
10195
10260
|
position: absolute;
|
|
10196
10261
|
top: var(--spacing-3);
|
|
10197
10262
|
right: var(--spacing-3);
|
|
10198
10263
|
z-index: 3;
|
|
10199
10264
|
`;
|
|
10200
|
-
var contentWithBackgroundStyles =
|
|
10265
|
+
var contentWithBackgroundStyles = import_react69.css`
|
|
10201
10266
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
10202
10267
|
background-color: var(--surface-page);
|
|
10203
10268
|
`;
|
|
10204
|
-
var contentWithoutBackgroundStyles =
|
|
10269
|
+
var contentWithoutBackgroundStyles = import_react69.css`
|
|
10205
10270
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
10206
10271
|
`;
|
|
10207
|
-
var overlayStyles =
|
|
10272
|
+
var overlayStyles = import_react69.css`
|
|
10208
10273
|
position: absolute;
|
|
10209
10274
|
top: 0;
|
|
10210
10275
|
left: 0;
|
|
@@ -10218,7 +10283,7 @@ var overlayStyles = import_react67.css`
|
|
|
10218
10283
|
`;
|
|
10219
10284
|
|
|
10220
10285
|
// src/PackageCard/PackageCard.tsx
|
|
10221
|
-
var
|
|
10286
|
+
var import_jsx_runtime260 = require("@emotion/react/jsx-runtime");
|
|
10222
10287
|
var PackageCard = ({
|
|
10223
10288
|
images,
|
|
10224
10289
|
title,
|
|
@@ -10240,7 +10305,7 @@ var PackageCard = ({
|
|
|
10240
10305
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
10241
10306
|
(badge2) => badge2.showOverlay
|
|
10242
10307
|
);
|
|
10243
|
-
return /* @__PURE__ */ (0,
|
|
10308
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10244
10309
|
Box_default,
|
|
10245
10310
|
{
|
|
10246
10311
|
position: "relative",
|
|
@@ -10249,7 +10314,7 @@ var PackageCard = ({
|
|
|
10249
10314
|
onClick,
|
|
10250
10315
|
...rest,
|
|
10251
10316
|
children: [
|
|
10252
|
-
/* @__PURE__ */ (0,
|
|
10317
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10253
10318
|
Box_default,
|
|
10254
10319
|
{
|
|
10255
10320
|
position: "relative",
|
|
@@ -10257,7 +10322,7 @@ var PackageCard = ({
|
|
|
10257
10322
|
borderRadius: "var(--spacing-4)",
|
|
10258
10323
|
css: imageContainerStyles(orientation),
|
|
10259
10324
|
children: [
|
|
10260
|
-
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
10325
|
+
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10261
10326
|
AvailabilityBadge_default,
|
|
10262
10327
|
{
|
|
10263
10328
|
variant: badge2.variant,
|
|
@@ -10266,18 +10331,18 @@ var PackageCard = ({
|
|
|
10266
10331
|
},
|
|
10267
10332
|
`availability-${index}`
|
|
10268
10333
|
)),
|
|
10269
|
-
shouldShowOverlay && /* @__PURE__ */ (0,
|
|
10270
|
-
/* @__PURE__ */ (0,
|
|
10334
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { css: overlayStyles }),
|
|
10335
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10271
10336
|
ScrollingCarousel,
|
|
10272
10337
|
{
|
|
10273
10338
|
showDots: images.length > 1,
|
|
10274
10339
|
showNavigationOnHover: true,
|
|
10275
10340
|
id: carouselId,
|
|
10276
|
-
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0,
|
|
10341
|
+
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10277
10342
|
ScrollingCarouselStep,
|
|
10278
10343
|
{
|
|
10279
10344
|
parentId: carouselId,
|
|
10280
|
-
children: /* @__PURE__ */ (0,
|
|
10345
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10281
10346
|
Box_default,
|
|
10282
10347
|
{
|
|
10283
10348
|
width: "100%",
|
|
@@ -10295,7 +10360,7 @@ var PackageCard = ({
|
|
|
10295
10360
|
))
|
|
10296
10361
|
}
|
|
10297
10362
|
),
|
|
10298
|
-
onFavoriteClick && /* @__PURE__ */ (0,
|
|
10363
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10299
10364
|
Box_default,
|
|
10300
10365
|
{
|
|
10301
10366
|
css: heartIconStyles,
|
|
@@ -10304,14 +10369,14 @@ var PackageCard = ({
|
|
|
10304
10369
|
e.stopPropagation();
|
|
10305
10370
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
10306
10371
|
},
|
|
10307
|
-
children: isFavorited ? /* @__PURE__ */ (0,
|
|
10372
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10308
10373
|
Icon_default,
|
|
10309
10374
|
{
|
|
10310
10375
|
variant: "HeartSolid",
|
|
10311
10376
|
size: "small",
|
|
10312
10377
|
fill: "var(--color-error-500)"
|
|
10313
10378
|
}
|
|
10314
|
-
) : /* @__PURE__ */ (0,
|
|
10379
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10315
10380
|
Icon_default,
|
|
10316
10381
|
{
|
|
10317
10382
|
variant: "Heart",
|
|
@@ -10321,13 +10386,13 @@ var PackageCard = ({
|
|
|
10321
10386
|
)
|
|
10322
10387
|
}
|
|
10323
10388
|
),
|
|
10324
|
-
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0,
|
|
10389
|
+
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(ActionMenu_default, { actions }) })
|
|
10325
10390
|
]
|
|
10326
10391
|
}
|
|
10327
10392
|
),
|
|
10328
|
-
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0,
|
|
10329
|
-
/* @__PURE__ */ (0,
|
|
10330
|
-
/* @__PURE__ */ (0,
|
|
10393
|
+
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(ActionMenu_default, { actions }) }),
|
|
10394
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box_default, { css: contentContainerStyles(orientation, hasContentBackground), children: [
|
|
10395
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
10331
10396
|
Box_default,
|
|
10332
10397
|
{
|
|
10333
10398
|
display: "flex",
|
|
@@ -10335,9 +10400,9 @@ var PackageCard = ({
|
|
|
10335
10400
|
gap: "var(--spacing-1)",
|
|
10336
10401
|
mb: "var(--spacing-1)",
|
|
10337
10402
|
children: [
|
|
10338
|
-
/* @__PURE__ */ (0,
|
|
10339
|
-
/* @__PURE__ */ (0,
|
|
10340
|
-
startingPrice && /* @__PURE__ */ (0,
|
|
10403
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
10404
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: subtitle }) }),
|
|
10405
|
+
startingPrice && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Text_default, { size: "sm", fontWeight: "normal", children: [
|
|
10341
10406
|
"Starting Price ",
|
|
10342
10407
|
startingPrice,
|
|
10343
10408
|
" / Guest"
|
|
@@ -10345,14 +10410,14 @@ var PackageCard = ({
|
|
|
10345
10410
|
]
|
|
10346
10411
|
}
|
|
10347
10412
|
),
|
|
10348
|
-
badges && badges.length > 0 && /* @__PURE__ */ (0,
|
|
10413
|
+
badges && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10349
10414
|
Box_default,
|
|
10350
10415
|
{
|
|
10351
10416
|
display: "flex",
|
|
10352
10417
|
gap: "var(--spacing-2) var(--spacing-4)",
|
|
10353
10418
|
alignItems: "center",
|
|
10354
10419
|
flexWrap: "wrap",
|
|
10355
|
-
children: badges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
10420
|
+
children: badges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
10356
10421
|
IconLabel_default,
|
|
10357
10422
|
{
|
|
10358
10423
|
iconSize: badge2.iconSize || "medium",
|
|
@@ -10371,14 +10436,14 @@ var PackageCard = ({
|
|
|
10371
10436
|
var PackageCard_default = PackageCard;
|
|
10372
10437
|
|
|
10373
10438
|
// src/PackageHeader/PackageHeader.tsx
|
|
10374
|
-
var
|
|
10439
|
+
var import_jsx_runtime261 = require("@emotion/react/jsx-runtime");
|
|
10375
10440
|
var PackageHeader = ({
|
|
10376
10441
|
header,
|
|
10377
10442
|
subheader,
|
|
10378
10443
|
features,
|
|
10379
10444
|
className
|
|
10380
10445
|
}) => {
|
|
10381
|
-
return /* @__PURE__ */ (0,
|
|
10446
|
+
return /* @__PURE__ */ (0, import_jsx_runtime261.jsxs)(
|
|
10382
10447
|
Box_default,
|
|
10383
10448
|
{
|
|
10384
10449
|
display: "flex",
|
|
@@ -10387,9 +10452,9 @@ var PackageHeader = ({
|
|
|
10387
10452
|
color: "var(--text-primary)",
|
|
10388
10453
|
className,
|
|
10389
10454
|
children: [
|
|
10390
|
-
/* @__PURE__ */ (0,
|
|
10391
|
-
subheader && /* @__PURE__ */ (0,
|
|
10392
|
-
features && /* @__PURE__ */ (0,
|
|
10455
|
+
/* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
10456
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(Text_default, { children: subheader }),
|
|
10457
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime261.jsx)(FeatureList_default, { items: features })
|
|
10393
10458
|
]
|
|
10394
10459
|
}
|
|
10395
10460
|
);
|
|
@@ -10397,8 +10462,8 @@ var PackageHeader = ({
|
|
|
10397
10462
|
var PackageHeader_default = PackageHeader;
|
|
10398
10463
|
|
|
10399
10464
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
10400
|
-
var
|
|
10401
|
-
var imageStyles4 =
|
|
10465
|
+
var import_react70 = require("@emotion/react");
|
|
10466
|
+
var imageStyles4 = import_react70.css`
|
|
10402
10467
|
flex: 1;
|
|
10403
10468
|
min-width: 0;
|
|
10404
10469
|
max-width: 100%;
|
|
@@ -10409,13 +10474,13 @@ var imageStyles4 = import_react68.css`
|
|
|
10409
10474
|
`;
|
|
10410
10475
|
|
|
10411
10476
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
10412
|
-
var
|
|
10477
|
+
var import_jsx_runtime262 = require("@emotion/react/jsx-runtime");
|
|
10413
10478
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
10414
10479
|
const displayImages = images.slice(0, maxImages);
|
|
10415
10480
|
if (displayImages.length === 0) {
|
|
10416
10481
|
return null;
|
|
10417
10482
|
}
|
|
10418
|
-
return /* @__PURE__ */ (0,
|
|
10483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime262.jsx)(
|
|
10419
10484
|
"img",
|
|
10420
10485
|
{
|
|
10421
10486
|
src: image,
|
|
@@ -10428,7 +10493,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
10428
10493
|
var ReviewImages_default = ReviewImages;
|
|
10429
10494
|
|
|
10430
10495
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
10431
|
-
var
|
|
10496
|
+
var import_jsx_runtime263 = require("@emotion/react/jsx-runtime");
|
|
10432
10497
|
var ReviewReply = ({
|
|
10433
10498
|
avatarSrc,
|
|
10434
10499
|
name,
|
|
@@ -10437,7 +10502,7 @@ var ReviewReply = ({
|
|
|
10437
10502
|
label,
|
|
10438
10503
|
rating
|
|
10439
10504
|
}) => {
|
|
10440
|
-
return /* @__PURE__ */ (0,
|
|
10505
|
+
return /* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
10441
10506
|
Box_default,
|
|
10442
10507
|
{
|
|
10443
10508
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -10447,7 +10512,7 @@ var ReviewReply = ({
|
|
|
10447
10512
|
flexDirection: "column",
|
|
10448
10513
|
gap: "var(--spacing-3)",
|
|
10449
10514
|
children: [
|
|
10450
|
-
/* @__PURE__ */ (0,
|
|
10515
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsxs)(
|
|
10451
10516
|
Box_default,
|
|
10452
10517
|
{
|
|
10453
10518
|
display: "flex",
|
|
@@ -10455,7 +10520,7 @@ var ReviewReply = ({
|
|
|
10455
10520
|
justifyContent: "space-between",
|
|
10456
10521
|
gap: "var(--spacing-2)",
|
|
10457
10522
|
children: [
|
|
10458
|
-
/* @__PURE__ */ (0,
|
|
10523
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(
|
|
10459
10524
|
UserCard_default,
|
|
10460
10525
|
{
|
|
10461
10526
|
avatarSrc,
|
|
@@ -10464,11 +10529,11 @@ var ReviewReply = ({
|
|
|
10464
10529
|
rating
|
|
10465
10530
|
}
|
|
10466
10531
|
),
|
|
10467
|
-
/* @__PURE__ */ (0,
|
|
10532
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
10468
10533
|
]
|
|
10469
10534
|
}
|
|
10470
10535
|
),
|
|
10471
|
-
/* @__PURE__ */ (0,
|
|
10536
|
+
/* @__PURE__ */ (0, import_jsx_runtime263.jsx)(Text_default, { children: content })
|
|
10472
10537
|
]
|
|
10473
10538
|
}
|
|
10474
10539
|
);
|
|
@@ -10476,7 +10541,7 @@ var ReviewReply = ({
|
|
|
10476
10541
|
var ReviewReply_default = ReviewReply;
|
|
10477
10542
|
|
|
10478
10543
|
// src/ReviewCard/ReviewCard.tsx
|
|
10479
|
-
var
|
|
10544
|
+
var import_jsx_runtime264 = require("@emotion/react/jsx-runtime");
|
|
10480
10545
|
var ReviewCard = ({
|
|
10481
10546
|
avatarSrc,
|
|
10482
10547
|
name,
|
|
@@ -10488,7 +10553,7 @@ var ReviewCard = ({
|
|
|
10488
10553
|
replies = [],
|
|
10489
10554
|
className
|
|
10490
10555
|
}) => {
|
|
10491
|
-
return /* @__PURE__ */ (0,
|
|
10556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime264.jsxs)(
|
|
10492
10557
|
Box_default,
|
|
10493
10558
|
{
|
|
10494
10559
|
backgroundColor: "white",
|
|
@@ -10499,7 +10564,7 @@ var ReviewCard = ({
|
|
|
10499
10564
|
gap: "var(--spacing-4)",
|
|
10500
10565
|
className,
|
|
10501
10566
|
children: [
|
|
10502
|
-
/* @__PURE__ */ (0,
|
|
10567
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10503
10568
|
UserCard_default,
|
|
10504
10569
|
{
|
|
10505
10570
|
avatarSrc,
|
|
@@ -10508,10 +10573,10 @@ var ReviewCard = ({
|
|
|
10508
10573
|
rating
|
|
10509
10574
|
}
|
|
10510
10575
|
),
|
|
10511
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
10512
|
-
/* @__PURE__ */ (0,
|
|
10513
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
10514
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
10576
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
10577
|
+
/* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Text_default, { size: "md", children: content }),
|
|
10578
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(ReviewImages_default, { images }),
|
|
10579
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime264.jsx)(
|
|
10515
10580
|
ReviewReply_default,
|
|
10516
10581
|
{
|
|
10517
10582
|
avatarSrc: reply.avatarSrc,
|
|
@@ -10530,12 +10595,12 @@ var ReviewCard = ({
|
|
|
10530
10595
|
var ReviewCard_default = ReviewCard;
|
|
10531
10596
|
|
|
10532
10597
|
// src/Reviews/Reviews.tsx
|
|
10533
|
-
var
|
|
10598
|
+
var import_react71 = require("@emotion/react");
|
|
10534
10599
|
|
|
10535
10600
|
// src/Reviews/components/ReviewItem.tsx
|
|
10536
|
-
var
|
|
10601
|
+
var import_jsx_runtime265 = require("@emotion/react/jsx-runtime");
|
|
10537
10602
|
var ReviewItem = ({ label, rating }) => {
|
|
10538
|
-
return /* @__PURE__ */ (0,
|
|
10603
|
+
return /* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(
|
|
10539
10604
|
Box_default,
|
|
10540
10605
|
{
|
|
10541
10606
|
display: "flex",
|
|
@@ -10543,10 +10608,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
10543
10608
|
alignItems: "center",
|
|
10544
10609
|
width: "100%",
|
|
10545
10610
|
children: [
|
|
10546
|
-
/* @__PURE__ */ (0,
|
|
10547
|
-
/* @__PURE__ */ (0,
|
|
10548
|
-
/* @__PURE__ */ (0,
|
|
10549
|
-
/* @__PURE__ */ (0,
|
|
10611
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
10612
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
10613
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
10614
|
+
/* @__PURE__ */ (0, import_jsx_runtime265.jsx)(Text_default, { fontWeight: "semibold", children: rating.toFixed(1) })
|
|
10550
10615
|
] })
|
|
10551
10616
|
]
|
|
10552
10617
|
}
|
|
@@ -10555,14 +10620,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
10555
10620
|
var ReviewItem_default = ReviewItem;
|
|
10556
10621
|
|
|
10557
10622
|
// src/Reviews/Reviews.tsx
|
|
10558
|
-
var
|
|
10623
|
+
var import_jsx_runtime266 = require("@emotion/react/jsx-runtime");
|
|
10559
10624
|
var Reviews = ({
|
|
10560
10625
|
averageRating,
|
|
10561
10626
|
totalReviews,
|
|
10562
10627
|
items,
|
|
10563
10628
|
className
|
|
10564
10629
|
}) => {
|
|
10565
|
-
return /* @__PURE__ */ (0,
|
|
10630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
|
|
10566
10631
|
Box_default,
|
|
10567
10632
|
{
|
|
10568
10633
|
width: "100%",
|
|
@@ -10575,7 +10640,7 @@ var Reviews = ({
|
|
|
10575
10640
|
p: "var(--spacing-4)",
|
|
10576
10641
|
className,
|
|
10577
10642
|
children: [
|
|
10578
|
-
/* @__PURE__ */ (0,
|
|
10643
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(
|
|
10579
10644
|
Box_default,
|
|
10580
10645
|
{
|
|
10581
10646
|
display: "flex",
|
|
@@ -10583,12 +10648,12 @@ var Reviews = ({
|
|
|
10583
10648
|
alignItems: "center",
|
|
10584
10649
|
gap: "var(--spacing-2)",
|
|
10585
10650
|
children: [
|
|
10586
|
-
/* @__PURE__ */ (0,
|
|
10587
|
-
/* @__PURE__ */ (0,
|
|
10651
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
10652
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
|
|
10588
10653
|
StarRating_default,
|
|
10589
10654
|
{
|
|
10590
10655
|
rating: averageRating,
|
|
10591
|
-
css:
|
|
10656
|
+
css: import_react71.css`
|
|
10592
10657
|
> svg {
|
|
10593
10658
|
height: 40px;
|
|
10594
10659
|
width: 40px;
|
|
@@ -10596,7 +10661,7 @@ var Reviews = ({
|
|
|
10596
10661
|
`
|
|
10597
10662
|
}
|
|
10598
10663
|
),
|
|
10599
|
-
/* @__PURE__ */ (0,
|
|
10664
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
10600
10665
|
"Overall Rating \u2022 ",
|
|
10601
10666
|
totalReviews,
|
|
10602
10667
|
" Review",
|
|
@@ -10605,14 +10670,14 @@ var Reviews = ({
|
|
|
10605
10670
|
]
|
|
10606
10671
|
}
|
|
10607
10672
|
),
|
|
10608
|
-
/* @__PURE__ */ (0,
|
|
10673
|
+
/* @__PURE__ */ (0, import_jsx_runtime266.jsx)(
|
|
10609
10674
|
Box_default,
|
|
10610
10675
|
{
|
|
10611
10676
|
display: "flex",
|
|
10612
10677
|
flexDirection: "column",
|
|
10613
10678
|
gap: "var(--spacing-2)",
|
|
10614
10679
|
width: "100%",
|
|
10615
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
10680
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime266.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
10616
10681
|
}
|
|
10617
10682
|
)
|
|
10618
10683
|
]
|
|
@@ -10622,7 +10687,7 @@ var Reviews = ({
|
|
|
10622
10687
|
var Reviews_default = Reviews;
|
|
10623
10688
|
|
|
10624
10689
|
// src/Reviews/ReviewsShowcase.tsx
|
|
10625
|
-
var
|
|
10690
|
+
var import_jsx_runtime267 = require("@emotion/react/jsx-runtime");
|
|
10626
10691
|
var ReviewsShowcase = () => {
|
|
10627
10692
|
const sampleData = {
|
|
10628
10693
|
averageRating: 4,
|
|
@@ -10644,7 +10709,7 @@ var ReviewsShowcase = () => {
|
|
|
10644
10709
|
{ label: "Game Abundance", rating: 5 }
|
|
10645
10710
|
]
|
|
10646
10711
|
};
|
|
10647
|
-
return /* @__PURE__ */ (0,
|
|
10712
|
+
return /* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(
|
|
10648
10713
|
Box_default,
|
|
10649
10714
|
{
|
|
10650
10715
|
display: "flex",
|
|
@@ -10652,24 +10717,24 @@ var ReviewsShowcase = () => {
|
|
|
10652
10717
|
gap: "var(--spacing-8)",
|
|
10653
10718
|
p: "var(--spacing-6)",
|
|
10654
10719
|
children: [
|
|
10655
|
-
/* @__PURE__ */ (0,
|
|
10656
|
-
/* @__PURE__ */ (0,
|
|
10657
|
-
/* @__PURE__ */ (0,
|
|
10658
|
-
/* @__PURE__ */ (0,
|
|
10720
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
10721
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10722
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
10723
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Reviews_default, { ...sampleData }) })
|
|
10659
10724
|
] }),
|
|
10660
|
-
/* @__PURE__ */ (0,
|
|
10661
|
-
/* @__PURE__ */ (0,
|
|
10662
|
-
/* @__PURE__ */ (0,
|
|
10725
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10726
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
10727
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Reviews_default, { ...highRatingData }) })
|
|
10663
10728
|
] }),
|
|
10664
|
-
/* @__PURE__ */ (0,
|
|
10665
|
-
/* @__PURE__ */ (0,
|
|
10666
|
-
/* @__PURE__ */ (0,
|
|
10729
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
10730
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
10731
|
+
/* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
10667
10732
|
Box_default,
|
|
10668
10733
|
{
|
|
10669
10734
|
maxWidth: "320px",
|
|
10670
10735
|
border: "1px solid var(--color-neutral-200)",
|
|
10671
10736
|
p: "var(--spacing-4)",
|
|
10672
|
-
children: /* @__PURE__ */ (0,
|
|
10737
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(Reviews_default, { ...sampleData })
|
|
10673
10738
|
}
|
|
10674
10739
|
)
|
|
10675
10740
|
] })
|
|
@@ -10692,6 +10757,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
10692
10757
|
Column,
|
|
10693
10758
|
ContactLandownerButton,
|
|
10694
10759
|
Container,
|
|
10760
|
+
CtaCard,
|
|
10695
10761
|
Divider,
|
|
10696
10762
|
FeatureList,
|
|
10697
10763
|
FeatureListItem,
|