@landtrustinc/design-system 1.1.5 → 1.1.6
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 +83 -1
- package/dist/index.js +699 -362
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var src_exports = {};
|
|
|
32
32
|
__export(src_exports, {
|
|
33
33
|
AIResponse: () => AIResponse_default,
|
|
34
34
|
AvailabilityChip: () => AvailabilityChip_default,
|
|
35
|
+
Avatar: () => Avatar_default,
|
|
35
36
|
Box: () => Box_default,
|
|
36
37
|
Button: () => Button_default,
|
|
37
38
|
ChatWidget: () => ChatWidget_default,
|
|
@@ -54,14 +55,17 @@ __export(src_exports, {
|
|
|
54
55
|
MessageBubble: () => MessageBubble_default,
|
|
55
56
|
Navigation: () => Navigation_default,
|
|
56
57
|
PackageCard: () => PackageCard_default,
|
|
58
|
+
ReviewCard: () => ReviewCard_default,
|
|
57
59
|
Reviews: () => Reviews_default,
|
|
58
60
|
ReviewsShowcase: () => ReviewsShowcase_default,
|
|
59
61
|
Select: () => Select,
|
|
60
62
|
Spinner: () => Spinner_default2,
|
|
63
|
+
StarRating: () => StarRating_default,
|
|
61
64
|
TagChip: () => TagChip_default,
|
|
62
65
|
Text: () => Text_default,
|
|
63
66
|
TextArea: () => TextArea,
|
|
64
67
|
ThemeTokens: () => ThemeTokens,
|
|
68
|
+
UserCard: () => UserCard_default,
|
|
65
69
|
Widget: () => Widget_default,
|
|
66
70
|
WidgetPanel: () => WidgetPanel,
|
|
67
71
|
WidgetTrigger: () => WidgetTrigger,
|
|
@@ -3825,16 +3829,159 @@ var AvailabilityChip = ({
|
|
|
3825
3829
|
};
|
|
3826
3830
|
var AvailabilityChip_default = AvailabilityChip;
|
|
3827
3831
|
|
|
3832
|
+
// src/Avatar/Avatar.tsx
|
|
3833
|
+
var import_react14 = require("react");
|
|
3834
|
+
|
|
3835
|
+
// src/Avatar/Avatar.styles.ts
|
|
3836
|
+
var import_react13 = require("@emotion/react");
|
|
3837
|
+
var avatarSizeStyles = {
|
|
3838
|
+
xs: import_react13.css`
|
|
3839
|
+
width: 24px;
|
|
3840
|
+
height: 24px;
|
|
3841
|
+
`,
|
|
3842
|
+
sm: import_react13.css`
|
|
3843
|
+
width: 32px;
|
|
3844
|
+
height: 32px;
|
|
3845
|
+
`,
|
|
3846
|
+
md: import_react13.css`
|
|
3847
|
+
width: 60px;
|
|
3848
|
+
height: 60px;
|
|
3849
|
+
`,
|
|
3850
|
+
lg: import_react13.css`
|
|
3851
|
+
width: 80px;
|
|
3852
|
+
height: 80px;
|
|
3853
|
+
`,
|
|
3854
|
+
xl: import_react13.css`
|
|
3855
|
+
width: 120px;
|
|
3856
|
+
height: 120px;
|
|
3857
|
+
`
|
|
3858
|
+
};
|
|
3859
|
+
var avatarBaseStyles = import_react13.css`
|
|
3860
|
+
border-radius: 50%;
|
|
3861
|
+
object-fit: cover;
|
|
3862
|
+
border: 1px solid var(--color-neutral-200);
|
|
3863
|
+
display: block;
|
|
3864
|
+
`;
|
|
3865
|
+
var avatarTextStyles = import_react13.css`
|
|
3866
|
+
border-radius: 50%;
|
|
3867
|
+
border: 1px solid var(--color-neutral-200);
|
|
3868
|
+
background-color: var(--surface-action);
|
|
3869
|
+
color: white;
|
|
3870
|
+
display: flex;
|
|
3871
|
+
align-items: center;
|
|
3872
|
+
justify-content: center;
|
|
3873
|
+
font-weight: bold;
|
|
3874
|
+
user-select: none;
|
|
3875
|
+
`;
|
|
3876
|
+
var avatarFallbackStyles = import_react13.css`
|
|
3877
|
+
border-radius: 50%;
|
|
3878
|
+
border: 1px solid var(--color-neutral-200);
|
|
3879
|
+
background-color: var(--color-neutral-100);
|
|
3880
|
+
color: var(--color-neutral-500);
|
|
3881
|
+
display: flex;
|
|
3882
|
+
align-items: center;
|
|
3883
|
+
justify-content: center;
|
|
3884
|
+
`;
|
|
3885
|
+
|
|
3886
|
+
// src/Avatar/Avatar.tsx
|
|
3887
|
+
var import_jsx_runtime204 = require("@emotion/react/jsx-runtime");
|
|
3888
|
+
var Avatar = ({
|
|
3889
|
+
type = "image",
|
|
3890
|
+
src,
|
|
3891
|
+
text,
|
|
3892
|
+
alt,
|
|
3893
|
+
size = "md",
|
|
3894
|
+
className
|
|
3895
|
+
}) => {
|
|
3896
|
+
const [hasImageError, setHasImageError] = (0, import_react14.useState)(false);
|
|
3897
|
+
const handleImageError = () => {
|
|
3898
|
+
setHasImageError(true);
|
|
3899
|
+
};
|
|
3900
|
+
const getInitials = (fullName) => {
|
|
3901
|
+
return fullName.split(" ").map((name) => name.charAt(0).toUpperCase()).slice(0, 2).join("");
|
|
3902
|
+
};
|
|
3903
|
+
const getFontSize = (size2) => {
|
|
3904
|
+
switch (size2) {
|
|
3905
|
+
case "xs":
|
|
3906
|
+
return "10px";
|
|
3907
|
+
case "sm":
|
|
3908
|
+
return "12px";
|
|
3909
|
+
case "md":
|
|
3910
|
+
return "20px";
|
|
3911
|
+
case "lg":
|
|
3912
|
+
return "28px";
|
|
3913
|
+
case "xl":
|
|
3914
|
+
return "40px";
|
|
3915
|
+
default:
|
|
3916
|
+
return "20px";
|
|
3917
|
+
}
|
|
3918
|
+
};
|
|
3919
|
+
const getIconSize = (size2) => {
|
|
3920
|
+
switch (size2) {
|
|
3921
|
+
case "xs":
|
|
3922
|
+
return 3;
|
|
3923
|
+
case "sm":
|
|
3924
|
+
return 4;
|
|
3925
|
+
case "md":
|
|
3926
|
+
return 8;
|
|
3927
|
+
case "lg":
|
|
3928
|
+
return 10;
|
|
3929
|
+
case "xl":
|
|
3930
|
+
return 16;
|
|
3931
|
+
default:
|
|
3932
|
+
return 8;
|
|
3933
|
+
}
|
|
3934
|
+
};
|
|
3935
|
+
if (type === "text" && text) {
|
|
3936
|
+
const initials = getInitials(text);
|
|
3937
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
3938
|
+
"div",
|
|
3939
|
+
{
|
|
3940
|
+
css: [
|
|
3941
|
+
avatarTextStyles,
|
|
3942
|
+
avatarSizeStyles[size],
|
|
3943
|
+
{ fontSize: getFontSize(size) }
|
|
3944
|
+
],
|
|
3945
|
+
className,
|
|
3946
|
+
title: alt,
|
|
3947
|
+
children: initials
|
|
3948
|
+
}
|
|
3949
|
+
);
|
|
3950
|
+
}
|
|
3951
|
+
if (type === "image" && src && !hasImageError) {
|
|
3952
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
3953
|
+
"img",
|
|
3954
|
+
{
|
|
3955
|
+
src,
|
|
3956
|
+
alt,
|
|
3957
|
+
css: [avatarBaseStyles, avatarSizeStyles[size]],
|
|
3958
|
+
className,
|
|
3959
|
+
onError: handleImageError
|
|
3960
|
+
}
|
|
3961
|
+
);
|
|
3962
|
+
}
|
|
3963
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
3964
|
+
"div",
|
|
3965
|
+
{
|
|
3966
|
+
css: [avatarFallbackStyles, avatarSizeStyles[size]],
|
|
3967
|
+
className,
|
|
3968
|
+
title: alt,
|
|
3969
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Icon_default, { variant: "User", size: getIconSize(size) })
|
|
3970
|
+
}
|
|
3971
|
+
);
|
|
3972
|
+
};
|
|
3973
|
+
var Avatar_default = Avatar;
|
|
3974
|
+
|
|
3828
3975
|
// src/ChatWidget/ChatWidget.tsx
|
|
3829
|
-
var
|
|
3976
|
+
var import_react23 = __toESM(require("react"));
|
|
3830
3977
|
|
|
3831
3978
|
// src/Divider/Divider.tsx
|
|
3832
3979
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
3833
3980
|
var import_styled_system2 = require("styled-system");
|
|
3834
3981
|
|
|
3835
3982
|
// src/Divider/Divider.styles.ts
|
|
3836
|
-
var
|
|
3837
|
-
var dividerStyles =
|
|
3983
|
+
var import_react15 = require("@emotion/react");
|
|
3984
|
+
var dividerStyles = import_react15.css`
|
|
3838
3985
|
width: 100%;
|
|
3839
3986
|
height: 1px;
|
|
3840
3987
|
border: 0;
|
|
@@ -3842,28 +3989,28 @@ var dividerStyles = import_react13.css`
|
|
|
3842
3989
|
`;
|
|
3843
3990
|
|
|
3844
3991
|
// src/Divider/Divider.tsx
|
|
3845
|
-
var
|
|
3992
|
+
var import_jsx_runtime205 = require("@emotion/react/jsx-runtime");
|
|
3846
3993
|
var StyledHr = import_styled4.default.hr`
|
|
3847
3994
|
${dividerStyles}
|
|
3848
3995
|
${import_styled_system2.space}
|
|
3849
3996
|
`;
|
|
3850
3997
|
var Divider = ({ className, ...rest }) => {
|
|
3851
|
-
return /* @__PURE__ */ (0,
|
|
3998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(StyledHr, { className, ...rest });
|
|
3852
3999
|
};
|
|
3853
4000
|
var Divider_default = Divider;
|
|
3854
4001
|
|
|
3855
4002
|
// src/Form/TextArea.tsx
|
|
3856
|
-
var
|
|
3857
|
-
var
|
|
4003
|
+
var import_react17 = require("@emotion/react");
|
|
4004
|
+
var import_react18 = require("react");
|
|
3858
4005
|
|
|
3859
4006
|
// src/Form/TextArea.styles.ts
|
|
3860
|
-
var
|
|
3861
|
-
var wrapperStyles =
|
|
4007
|
+
var import_react16 = require("@emotion/react");
|
|
4008
|
+
var wrapperStyles = import_react16.css`
|
|
3862
4009
|
position: relative;
|
|
3863
4010
|
display: inline-block;
|
|
3864
4011
|
width: 100%;
|
|
3865
4012
|
`;
|
|
3866
|
-
var textareaBase =
|
|
4013
|
+
var textareaBase = import_react16.css`
|
|
3867
4014
|
width: 100%;
|
|
3868
4015
|
box-sizing: border-box;
|
|
3869
4016
|
font: inherit;
|
|
@@ -3897,32 +4044,32 @@ var textareaBase = import_react14.css`
|
|
|
3897
4044
|
cursor: default;
|
|
3898
4045
|
}
|
|
3899
4046
|
`;
|
|
3900
|
-
var variantError =
|
|
4047
|
+
var variantError = import_react16.css`
|
|
3901
4048
|
border-color: var(--border-error);
|
|
3902
4049
|
&:focus {
|
|
3903
4050
|
border-color: var(--border-error);
|
|
3904
4051
|
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
3905
4052
|
}
|
|
3906
4053
|
`;
|
|
3907
|
-
var variantSuccess =
|
|
4054
|
+
var variantSuccess = import_react16.css`
|
|
3908
4055
|
border-color: var(--color-success-500);
|
|
3909
4056
|
&:focus {
|
|
3910
4057
|
border-color: var(--color-success-500);
|
|
3911
4058
|
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
3912
4059
|
}
|
|
3913
4060
|
`;
|
|
3914
|
-
var submitButtonContainer =
|
|
4061
|
+
var submitButtonContainer = import_react16.css`
|
|
3915
4062
|
position: absolute;
|
|
3916
4063
|
right: var(--spacing-4);
|
|
3917
4064
|
bottom: var(--spacing-4);
|
|
3918
4065
|
`;
|
|
3919
|
-
var textareaWithSubmit =
|
|
4066
|
+
var textareaWithSubmit = import_react16.css`
|
|
3920
4067
|
padding-right: var(--spacing-16);
|
|
3921
4068
|
`;
|
|
3922
4069
|
|
|
3923
4070
|
// src/Form/TextArea.tsx
|
|
3924
|
-
var
|
|
3925
|
-
var TextArea = (0,
|
|
4071
|
+
var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
|
|
4072
|
+
var TextArea = (0, import_react18.forwardRef)(
|
|
3926
4073
|
({
|
|
3927
4074
|
rows = 3,
|
|
3928
4075
|
variant = "default",
|
|
@@ -3942,8 +4089,8 @@ var TextArea = (0, import_react16.forwardRef)(
|
|
|
3942
4089
|
submitOnEnter = true,
|
|
3943
4090
|
...props
|
|
3944
4091
|
}, ref) => {
|
|
3945
|
-
const innerRef = (0,
|
|
3946
|
-
(0,
|
|
4092
|
+
const innerRef = (0, import_react18.useRef)(null);
|
|
4093
|
+
(0, import_react18.useEffect)(() => {
|
|
3947
4094
|
const el = innerRef.current;
|
|
3948
4095
|
if (!el || !autoExpand)
|
|
3949
4096
|
return;
|
|
@@ -3979,8 +4126,8 @@ var TextArea = (0, import_react16.forwardRef)(
|
|
|
3979
4126
|
onSubmit();
|
|
3980
4127
|
}
|
|
3981
4128
|
};
|
|
3982
|
-
return /* @__PURE__ */ (0,
|
|
3983
|
-
/* @__PURE__ */ (0,
|
|
4129
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { css: wrapperStyles, children: [
|
|
4130
|
+
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
3984
4131
|
"textarea",
|
|
3985
4132
|
{
|
|
3986
4133
|
ref: (node) => {
|
|
@@ -3997,7 +4144,7 @@ var TextArea = (0, import_react16.forwardRef)(
|
|
|
3997
4144
|
textareaBase,
|
|
3998
4145
|
variant === "error" && variantError,
|
|
3999
4146
|
variant === "success" && variantSuccess,
|
|
4000
|
-
|
|
4147
|
+
import_react17.css`
|
|
4001
4148
|
resize: ${resize};
|
|
4002
4149
|
`,
|
|
4003
4150
|
showSubmit && textareaWithSubmit
|
|
@@ -4010,14 +4157,14 @@ var TextArea = (0, import_react16.forwardRef)(
|
|
|
4010
4157
|
...props
|
|
4011
4158
|
}
|
|
4012
4159
|
),
|
|
4013
|
-
showSubmit && /* @__PURE__ */ (0,
|
|
4160
|
+
showSubmit && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { css: submitButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4014
4161
|
Button_default,
|
|
4015
4162
|
{
|
|
4016
4163
|
size: "xs",
|
|
4017
4164
|
"aria-label": submitAriaLabel,
|
|
4018
4165
|
onClick: onSubmit,
|
|
4019
4166
|
disabled: disabled || submitDisabled,
|
|
4020
|
-
icon: /* @__PURE__ */ (0,
|
|
4167
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4021
4168
|
Icon_default,
|
|
4022
4169
|
{
|
|
4023
4170
|
variant: "PaperPlane",
|
|
@@ -4034,14 +4181,14 @@ TextArea.displayName = "TextArea";
|
|
|
4034
4181
|
var TextArea_default = TextArea;
|
|
4035
4182
|
|
|
4036
4183
|
// src/MessageBubble/MessageBubble.styles.ts
|
|
4037
|
-
var
|
|
4038
|
-
var getRootStyles = (variant) =>
|
|
4184
|
+
var import_react19 = require("@emotion/react");
|
|
4185
|
+
var getRootStyles = (variant) => import_react19.css`
|
|
4039
4186
|
display: flex;
|
|
4040
4187
|
flex-direction: column;
|
|
4041
4188
|
gap: var(--spacing-1);
|
|
4042
4189
|
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
4043
4190
|
`;
|
|
4044
|
-
var getBubbleStyles = (variant) =>
|
|
4191
|
+
var getBubbleStyles = (variant) => import_react19.css`
|
|
4045
4192
|
max-width: 100%;
|
|
4046
4193
|
width: 100%;
|
|
4047
4194
|
box-sizing: border-box;
|
|
@@ -4058,22 +4205,22 @@ var getBubbleStyles = (variant) => import_react17.css`
|
|
|
4058
4205
|
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
4059
4206
|
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
4060
4207
|
`;
|
|
4061
|
-
var contentStyles =
|
|
4208
|
+
var contentStyles = import_react19.css`
|
|
4062
4209
|
flex: 1 1 auto;
|
|
4063
4210
|
min-width: 1px;
|
|
4064
4211
|
min-height: 1px;
|
|
4065
4212
|
`;
|
|
4066
4213
|
|
|
4067
4214
|
// src/MessageBubble/MessageBubble.tsx
|
|
4068
|
-
var
|
|
4215
|
+
var import_jsx_runtime207 = require("@emotion/react/jsx-runtime");
|
|
4069
4216
|
var MessageBubble = ({
|
|
4070
4217
|
variant = "sent",
|
|
4071
4218
|
timestamp,
|
|
4072
4219
|
className,
|
|
4073
4220
|
children
|
|
4074
4221
|
}) => {
|
|
4075
|
-
return /* @__PURE__ */ (0,
|
|
4076
|
-
timestamp && /* @__PURE__ */ (0,
|
|
4222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)("div", { className, css: getRootStyles(variant), children: [
|
|
4223
|
+
timestamp && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4077
4224
|
Text_default,
|
|
4078
4225
|
{
|
|
4079
4226
|
size: "xs",
|
|
@@ -4082,17 +4229,17 @@ var MessageBubble = ({
|
|
|
4082
4229
|
children: timestamp
|
|
4083
4230
|
}
|
|
4084
4231
|
),
|
|
4085
|
-
/* @__PURE__ */ (0,
|
|
4232
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { css: getBubbleStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("div", { css: contentStyles, children }) })
|
|
4086
4233
|
] });
|
|
4087
4234
|
};
|
|
4088
4235
|
var MessageBubble_default = MessageBubble;
|
|
4089
4236
|
|
|
4090
4237
|
// src/Widget/Widget.tsx
|
|
4091
|
-
var
|
|
4238
|
+
var import_react21 = require("react");
|
|
4092
4239
|
|
|
4093
4240
|
// src/Widget/Widget.styles.ts
|
|
4094
|
-
var
|
|
4095
|
-
var panelContainer =
|
|
4241
|
+
var import_react20 = require("@emotion/react");
|
|
4242
|
+
var panelContainer = import_react20.css`
|
|
4096
4243
|
position: absolute;
|
|
4097
4244
|
right: 0;
|
|
4098
4245
|
bottom: 0;
|
|
@@ -4108,7 +4255,7 @@ var panelContainer = import_react18.css`
|
|
|
4108
4255
|
justify-content: stretch;
|
|
4109
4256
|
}
|
|
4110
4257
|
`;
|
|
4111
|
-
var panelCard = (width2) =>
|
|
4258
|
+
var panelCard = (width2) => import_react20.css`
|
|
4112
4259
|
background: var(--surface-page);
|
|
4113
4260
|
color: var(--text-primary);
|
|
4114
4261
|
border: 1px solid var(--border-primary);
|
|
@@ -4129,16 +4276,16 @@ var panelCard = (width2) => import_react18.css`
|
|
|
4129
4276
|
overflow: auto;
|
|
4130
4277
|
}
|
|
4131
4278
|
`;
|
|
4132
|
-
var widgetTrigger =
|
|
4279
|
+
var widgetTrigger = import_react20.css`
|
|
4133
4280
|
margin: var(--spacing-1);
|
|
4134
4281
|
box-shadow: var(--shadow-2xl);
|
|
4135
4282
|
`;
|
|
4136
4283
|
|
|
4137
4284
|
// src/Widget/Widget.tsx
|
|
4138
|
-
var
|
|
4139
|
-
var WidgetContext = (0,
|
|
4285
|
+
var import_jsx_runtime208 = require("@emotion/react/jsx-runtime");
|
|
4286
|
+
var WidgetContext = (0, import_react21.createContext)(null);
|
|
4140
4287
|
var useWidgetContext = () => {
|
|
4141
|
-
const ctx = (0,
|
|
4288
|
+
const ctx = (0, import_react21.useContext)(WidgetContext);
|
|
4142
4289
|
if (!ctx)
|
|
4143
4290
|
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
4144
4291
|
return ctx;
|
|
@@ -4146,7 +4293,7 @@ var useWidgetContext = () => {
|
|
|
4146
4293
|
var WidgetTrigger = () => {
|
|
4147
4294
|
const { expanded, toggle, triggerRef, icon, expandedIcon } = useWidgetContext();
|
|
4148
4295
|
const currentIcon = expanded ? expandedIcon : icon;
|
|
4149
|
-
return /* @__PURE__ */ (0,
|
|
4296
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(import_jsx_runtime208.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4150
4297
|
Button_default,
|
|
4151
4298
|
{
|
|
4152
4299
|
ref: triggerRef,
|
|
@@ -4154,7 +4301,7 @@ var WidgetTrigger = () => {
|
|
|
4154
4301
|
"aria-haspopup": "dialog",
|
|
4155
4302
|
onClick: toggle,
|
|
4156
4303
|
size: "lg",
|
|
4157
|
-
icon: /* @__PURE__ */ (0,
|
|
4304
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: currentIcon, size: 12 }),
|
|
4158
4305
|
css: widgetTrigger
|
|
4159
4306
|
}
|
|
4160
4307
|
) });
|
|
@@ -4162,7 +4309,7 @@ var WidgetTrigger = () => {
|
|
|
4162
4309
|
var WidgetPanel = ({ className, style, children }) => {
|
|
4163
4310
|
var _a;
|
|
4164
4311
|
const { expanded, panelWidth } = useWidgetContext();
|
|
4165
|
-
return /* @__PURE__ */ (0,
|
|
4312
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4166
4313
|
"div",
|
|
4167
4314
|
{
|
|
4168
4315
|
css: panelContainer,
|
|
@@ -4171,7 +4318,7 @@ var WidgetPanel = ({ className, style, children }) => {
|
|
|
4171
4318
|
...style,
|
|
4172
4319
|
display: expanded ? (_a = style == null ? void 0 : style.display) != null ? _a : void 0 : "none"
|
|
4173
4320
|
},
|
|
4174
|
-
children: /* @__PURE__ */ (0,
|
|
4321
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4175
4322
|
Box_default,
|
|
4176
4323
|
{
|
|
4177
4324
|
css: panelCard(panelWidth),
|
|
@@ -4196,12 +4343,12 @@ var WidgetRoot = ({
|
|
|
4196
4343
|
children,
|
|
4197
4344
|
containerProps
|
|
4198
4345
|
}) => {
|
|
4199
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
4346
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react21.useState)(defaultExpanded);
|
|
4200
4347
|
const isControlled = typeof expanded === "boolean";
|
|
4201
4348
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4202
|
-
const triggerRef = (0,
|
|
4203
|
-
const containerRef = (0,
|
|
4204
|
-
const setExpanded = (0,
|
|
4349
|
+
const triggerRef = (0, import_react21.useRef)(null);
|
|
4350
|
+
const containerRef = (0, import_react21.useRef)(null);
|
|
4351
|
+
const setExpanded = (0, import_react21.useCallback)(
|
|
4205
4352
|
(next) => {
|
|
4206
4353
|
if (!isControlled)
|
|
4207
4354
|
setInternalExpanded(next);
|
|
@@ -4215,11 +4362,11 @@ var WidgetRoot = ({
|
|
|
4215
4362
|
},
|
|
4216
4363
|
[isControlled, onExpandedChange]
|
|
4217
4364
|
);
|
|
4218
|
-
const toggle = (0,
|
|
4365
|
+
const toggle = (0, import_react21.useCallback)(
|
|
4219
4366
|
() => setExpanded(!isExpanded),
|
|
4220
4367
|
[isExpanded, setExpanded]
|
|
4221
4368
|
);
|
|
4222
|
-
(0,
|
|
4369
|
+
(0, import_react21.useEffect)(() => {
|
|
4223
4370
|
if (!isExpanded)
|
|
4224
4371
|
return;
|
|
4225
4372
|
const onDocClick = (e) => {
|
|
@@ -4233,7 +4380,7 @@ var WidgetRoot = ({
|
|
|
4233
4380
|
document.addEventListener("mousedown", onDocClick);
|
|
4234
4381
|
return () => document.removeEventListener("mousedown", onDocClick);
|
|
4235
4382
|
}, [isExpanded, setExpanded]);
|
|
4236
|
-
(0,
|
|
4383
|
+
(0, import_react21.useEffect)(() => {
|
|
4237
4384
|
if (!isExpanded)
|
|
4238
4385
|
return;
|
|
4239
4386
|
const onKey = (e) => {
|
|
@@ -4243,7 +4390,7 @@ var WidgetRoot = ({
|
|
|
4243
4390
|
document.addEventListener("keydown", onKey);
|
|
4244
4391
|
return () => document.removeEventListener("keydown", onKey);
|
|
4245
4392
|
}, [isExpanded, setExpanded]);
|
|
4246
|
-
const value = (0,
|
|
4393
|
+
const value = (0, import_react21.useMemo)(
|
|
4247
4394
|
() => ({
|
|
4248
4395
|
expanded: isExpanded,
|
|
4249
4396
|
toggle,
|
|
@@ -4254,7 +4401,7 @@ var WidgetRoot = ({
|
|
|
4254
4401
|
}),
|
|
4255
4402
|
[expandedIcon, icon, isExpanded, panelWidth, toggle]
|
|
4256
4403
|
);
|
|
4257
|
-
return /* @__PURE__ */ (0,
|
|
4404
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4258
4405
|
Box_default,
|
|
4259
4406
|
{
|
|
4260
4407
|
ref: containerRef,
|
|
@@ -4265,7 +4412,7 @@ var WidgetRoot = ({
|
|
|
4265
4412
|
bottom: "var(--spacing-6)",
|
|
4266
4413
|
zIndex: 100,
|
|
4267
4414
|
...containerProps,
|
|
4268
|
-
children: /* @__PURE__ */ (0,
|
|
4415
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(WidgetContext.Provider, { value, children })
|
|
4269
4416
|
}
|
|
4270
4417
|
);
|
|
4271
4418
|
};
|
|
@@ -4276,8 +4423,8 @@ var Widget = Object.assign(WidgetRoot, {
|
|
|
4276
4423
|
var Widget_default = Widget;
|
|
4277
4424
|
|
|
4278
4425
|
// src/ChatWidget/ChatWidget.styles.ts
|
|
4279
|
-
var
|
|
4280
|
-
var sentWrapperStyles =
|
|
4426
|
+
var import_react22 = require("@emotion/react");
|
|
4427
|
+
var sentWrapperStyles = import_react22.css`
|
|
4281
4428
|
align-self: flex-end;
|
|
4282
4429
|
max-width: 90%;
|
|
4283
4430
|
width: 100%;
|
|
@@ -4285,14 +4432,14 @@ var sentWrapperStyles = import_react20.css`
|
|
|
4285
4432
|
overflow-wrap: anywhere;
|
|
4286
4433
|
padding-top: var(--spacing-4);
|
|
4287
4434
|
`;
|
|
4288
|
-
var receivedWrapperStyles =
|
|
4435
|
+
var receivedWrapperStyles = import_react22.css`
|
|
4289
4436
|
align-self: flex-start;
|
|
4290
4437
|
width: 100%;
|
|
4291
4438
|
min-width: 0;
|
|
4292
4439
|
overflow-wrap: anywhere;
|
|
4293
4440
|
padding-top: var(--spacing-4);
|
|
4294
4441
|
`;
|
|
4295
|
-
var containerStyles =
|
|
4442
|
+
var containerStyles = import_react22.css`
|
|
4296
4443
|
display: flex;
|
|
4297
4444
|
flex-direction: column;
|
|
4298
4445
|
min-height: 0;
|
|
@@ -4302,13 +4449,13 @@ var containerStyles = import_react20.css`
|
|
|
4302
4449
|
height: 100%;
|
|
4303
4450
|
}
|
|
4304
4451
|
`;
|
|
4305
|
-
var thinkingRowStyles =
|
|
4452
|
+
var thinkingRowStyles = import_react22.css`
|
|
4306
4453
|
display: flex;
|
|
4307
4454
|
align-items: center;
|
|
4308
4455
|
gap: var(--spacing-2);
|
|
4309
4456
|
color: var(--text-primary);
|
|
4310
4457
|
`;
|
|
4311
|
-
var thinkingTextStyles =
|
|
4458
|
+
var thinkingTextStyles = import_react22.css`
|
|
4312
4459
|
animation: ltchat-pulse 1.6s ease-in-out infinite;
|
|
4313
4460
|
|
|
4314
4461
|
@keyframes ltchat-pulse {
|
|
@@ -4321,7 +4468,7 @@ var thinkingTextStyles = import_react20.css`
|
|
|
4321
4468
|
}
|
|
4322
4469
|
}
|
|
4323
4470
|
`;
|
|
4324
|
-
var badge =
|
|
4471
|
+
var badge = import_react22.css`
|
|
4325
4472
|
width: var(--spacing-11);
|
|
4326
4473
|
height: var(--spacing-11);
|
|
4327
4474
|
border-radius: var(--radius-round);
|
|
@@ -4331,16 +4478,16 @@ var badge = import_react20.css`
|
|
|
4331
4478
|
background-color: var(--color-primary-500);
|
|
4332
4479
|
color: var(--color-base-white);
|
|
4333
4480
|
`;
|
|
4334
|
-
var closeButtonContent =
|
|
4481
|
+
var closeButtonContent = import_react22.css`
|
|
4335
4482
|
display: inline-flex;
|
|
4336
4483
|
align-items: center;
|
|
4337
4484
|
gap: var(--spacing-2);
|
|
4338
4485
|
`;
|
|
4339
4486
|
|
|
4340
4487
|
// src/ChatWidget/ChatWidget.tsx
|
|
4341
|
-
var
|
|
4488
|
+
var import_jsx_runtime209 = require("@emotion/react/jsx-runtime");
|
|
4342
4489
|
var DEFAULT_EMPTY_STATE = [
|
|
4343
|
-
/* @__PURE__ */ (0,
|
|
4490
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4344
4491
|
AIResponse_default,
|
|
4345
4492
|
{
|
|
4346
4493
|
showDisclaimer: false,
|
|
@@ -4367,12 +4514,12 @@ var ChatWidget = ({
|
|
|
4367
4514
|
emptyState = DEFAULT_EMPTY_STATE,
|
|
4368
4515
|
containerProps
|
|
4369
4516
|
}) => {
|
|
4370
|
-
const [value, setValue] = (0,
|
|
4371
|
-
const scrollRef = (0,
|
|
4517
|
+
const [value, setValue] = (0, import_react23.useState)("");
|
|
4518
|
+
const scrollRef = (0, import_react23.useRef)(null);
|
|
4372
4519
|
const isControlled = typeof expanded === "boolean";
|
|
4373
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
4520
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react23.useState)(defaultExpanded);
|
|
4374
4521
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4375
|
-
const setExpanded = (0,
|
|
4522
|
+
const setExpanded = (0, import_react23.useCallback)(
|
|
4376
4523
|
(next) => {
|
|
4377
4524
|
if (!isControlled)
|
|
4378
4525
|
setInternalExpanded(next);
|
|
@@ -4380,24 +4527,24 @@ var ChatWidget = ({
|
|
|
4380
4527
|
},
|
|
4381
4528
|
[isControlled, onExpandedChange]
|
|
4382
4529
|
);
|
|
4383
|
-
(0,
|
|
4530
|
+
(0, import_react23.useEffect)(() => {
|
|
4384
4531
|
const el = scrollRef.current;
|
|
4385
4532
|
if (!el)
|
|
4386
4533
|
return;
|
|
4387
4534
|
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
4388
4535
|
}, [messages, isThinking]);
|
|
4389
4536
|
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
4390
|
-
const renderedMessages = (0,
|
|
4537
|
+
const renderedMessages = (0, import_react23.useMemo)(
|
|
4391
4538
|
() => messagesToRender.map((element, index) => {
|
|
4392
4539
|
var _a;
|
|
4393
4540
|
const key = (_a = element.key) != null ? _a : index;
|
|
4394
4541
|
if (element.type === AIResponse_default) {
|
|
4395
|
-
return /* @__PURE__ */ (0,
|
|
4542
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { css: receivedWrapperStyles, children: element }, key);
|
|
4396
4543
|
}
|
|
4397
4544
|
if (element.type === MessageBubble_default) {
|
|
4398
|
-
return /* @__PURE__ */ (0,
|
|
4545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
4399
4546
|
}
|
|
4400
|
-
return /* @__PURE__ */ (0,
|
|
4547
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_react23.default.Fragment, { children: element }, key);
|
|
4401
4548
|
}),
|
|
4402
4549
|
[messagesToRender]
|
|
4403
4550
|
);
|
|
@@ -4408,7 +4555,7 @@ var ChatWidget = ({
|
|
|
4408
4555
|
onSubmit(trimmed);
|
|
4409
4556
|
setValue("");
|
|
4410
4557
|
};
|
|
4411
|
-
return /* @__PURE__ */ (0,
|
|
4558
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(
|
|
4412
4559
|
Widget_default,
|
|
4413
4560
|
{
|
|
4414
4561
|
ariaLabel,
|
|
@@ -4419,10 +4566,10 @@ var ChatWidget = ({
|
|
|
4419
4566
|
className,
|
|
4420
4567
|
containerProps,
|
|
4421
4568
|
children: [
|
|
4422
|
-
/* @__PURE__ */ (0,
|
|
4423
|
-
/* @__PURE__ */ (0,
|
|
4424
|
-
/* @__PURE__ */ (0,
|
|
4425
|
-
/* @__PURE__ */ (0,
|
|
4569
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Widget_default.Trigger, {}),
|
|
4570
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Widget_default.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(Box_default, { css: containerStyles, children: [
|
|
4571
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(Box_default, { position: "sticky", top: 0, zIndex: 1, children: [
|
|
4572
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(
|
|
4426
4573
|
Box_default,
|
|
4427
4574
|
{
|
|
4428
4575
|
display: "flex",
|
|
@@ -4430,9 +4577,9 @@ var ChatWidget = ({
|
|
|
4430
4577
|
justifyContent: "space-between",
|
|
4431
4578
|
gap: "var(--spacing-4)",
|
|
4432
4579
|
children: [
|
|
4433
|
-
/* @__PURE__ */ (0,
|
|
4434
|
-
/* @__PURE__ */ (0,
|
|
4435
|
-
/* @__PURE__ */ (0,
|
|
4580
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
|
|
4581
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: 6 }) }),
|
|
4582
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4436
4583
|
Heading_default,
|
|
4437
4584
|
{
|
|
4438
4585
|
size: "2xs",
|
|
@@ -4442,25 +4589,25 @@ var ChatWidget = ({
|
|
|
4442
4589
|
}
|
|
4443
4590
|
)
|
|
4444
4591
|
] }),
|
|
4445
|
-
/* @__PURE__ */ (0,
|
|
4592
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4446
4593
|
Button_default,
|
|
4447
4594
|
{
|
|
4448
4595
|
variant: "text",
|
|
4449
4596
|
size: "xs",
|
|
4450
4597
|
"aria-label": "Close widget",
|
|
4451
4598
|
onClick: () => setExpanded(false),
|
|
4452
|
-
children: /* @__PURE__ */ (0,
|
|
4453
|
-
/* @__PURE__ */ (0,
|
|
4454
|
-
/* @__PURE__ */ (0,
|
|
4599
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("span", { css: closeButtonContent, children: [
|
|
4600
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "Xmark", size: 5 }),
|
|
4601
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { children: "Close" })
|
|
4455
4602
|
] })
|
|
4456
4603
|
}
|
|
4457
4604
|
)
|
|
4458
4605
|
]
|
|
4459
4606
|
}
|
|
4460
4607
|
),
|
|
4461
|
-
/* @__PURE__ */ (0,
|
|
4608
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
4462
4609
|
] }),
|
|
4463
|
-
/* @__PURE__ */ (0,
|
|
4610
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(
|
|
4464
4611
|
Box_default,
|
|
4465
4612
|
{
|
|
4466
4613
|
ref: scrollRef,
|
|
@@ -4473,15 +4620,15 @@ var ChatWidget = ({
|
|
|
4473
4620
|
flexDirection: "column",
|
|
4474
4621
|
gap: "var(--spacing-2)",
|
|
4475
4622
|
children: [
|
|
4476
|
-
/* @__PURE__ */ (0,
|
|
4477
|
-
isThinking && /* @__PURE__ */ (0,
|
|
4478
|
-
/* @__PURE__ */ (0,
|
|
4479
|
-
/* @__PURE__ */ (0,
|
|
4623
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
4624
|
+
isThinking && /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
4625
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Spinner_default2, { size: 5 }),
|
|
4626
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { css: thinkingTextStyles, children: "Thinking..." })
|
|
4480
4627
|
] }) })
|
|
4481
4628
|
]
|
|
4482
4629
|
}
|
|
4483
4630
|
),
|
|
4484
|
-
/* @__PURE__ */ (0,
|
|
4631
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { position: "sticky", bottom: 0, zIndex: 1, p: 0, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4485
4632
|
TextArea_default,
|
|
4486
4633
|
{
|
|
4487
4634
|
rows: 3,
|
|
@@ -4504,8 +4651,8 @@ var ChatWidget = ({
|
|
|
4504
4651
|
var ChatWidget_default = ChatWidget;
|
|
4505
4652
|
|
|
4506
4653
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
4507
|
-
var
|
|
4508
|
-
var cardContainerStyles =
|
|
4654
|
+
var import_react24 = require("@emotion/react");
|
|
4655
|
+
var cardContainerStyles = import_react24.css`
|
|
4509
4656
|
position: relative;
|
|
4510
4657
|
height: 335px;
|
|
4511
4658
|
|
|
@@ -4513,12 +4660,12 @@ var cardContainerStyles = import_react22.css`
|
|
|
4513
4660
|
height: 480px;
|
|
4514
4661
|
}
|
|
4515
4662
|
`;
|
|
4516
|
-
var cardContentStyles =
|
|
4663
|
+
var cardContentStyles = import_react24.css`
|
|
4517
4664
|
position: relative;
|
|
4518
4665
|
border-radius: var(--spacing-4);
|
|
4519
4666
|
overflow: hidden;
|
|
4520
4667
|
`;
|
|
4521
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
4668
|
+
var getBackgroundWithGradient = (imageUrl) => import_react24.css`
|
|
4522
4669
|
background-image: linear-gradient(
|
|
4523
4670
|
180deg,
|
|
4524
4671
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -4532,7 +4679,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react22.css`
|
|
|
4532
4679
|
`;
|
|
4533
4680
|
|
|
4534
4681
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
4535
|
-
var
|
|
4682
|
+
var import_jsx_runtime210 = require("@emotion/react/jsx-runtime");
|
|
4536
4683
|
var FieldNoteCard = ({
|
|
4537
4684
|
backgroundImage,
|
|
4538
4685
|
title,
|
|
@@ -4541,14 +4688,14 @@ var FieldNoteCard = ({
|
|
|
4541
4688
|
className,
|
|
4542
4689
|
...rest
|
|
4543
4690
|
}) => {
|
|
4544
|
-
return /* @__PURE__ */ (0,
|
|
4691
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
4545
4692
|
Box_default,
|
|
4546
4693
|
{
|
|
4547
4694
|
display: "flex",
|
|
4548
4695
|
css: cardContainerStyles,
|
|
4549
4696
|
className,
|
|
4550
4697
|
...rest,
|
|
4551
|
-
children: /* @__PURE__ */ (0,
|
|
4698
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
4552
4699
|
Box_default,
|
|
4553
4700
|
{
|
|
4554
4701
|
display: "flex",
|
|
@@ -4556,9 +4703,9 @@ var FieldNoteCard = ({
|
|
|
4556
4703
|
justifyContent: "flex-end",
|
|
4557
4704
|
p: 6,
|
|
4558
4705
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
4559
|
-
children: /* @__PURE__ */ (0,
|
|
4560
|
-
/* @__PURE__ */ (0,
|
|
4561
|
-
/* @__PURE__ */ (0,
|
|
4706
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
4707
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
4708
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
4562
4709
|
] })
|
|
4563
4710
|
}
|
|
4564
4711
|
)
|
|
@@ -4568,14 +4715,14 @@ var FieldNoteCard = ({
|
|
|
4568
4715
|
var FieldNoteCard_default = FieldNoteCard;
|
|
4569
4716
|
|
|
4570
4717
|
// src/Form/FormField.tsx
|
|
4571
|
-
var
|
|
4572
|
-
var
|
|
4573
|
-
var fieldContainerStyles =
|
|
4718
|
+
var import_react25 = require("@emotion/react");
|
|
4719
|
+
var import_jsx_runtime211 = require("@emotion/react/jsx-runtime");
|
|
4720
|
+
var fieldContainerStyles = import_react25.css`
|
|
4574
4721
|
display: flex;
|
|
4575
4722
|
flex-direction: column;
|
|
4576
4723
|
gap: ${space["2"]};
|
|
4577
4724
|
`;
|
|
4578
|
-
var labelStyles2 =
|
|
4725
|
+
var labelStyles2 = import_react25.css`
|
|
4579
4726
|
font-family: ${fonts.base};
|
|
4580
4727
|
font-size: ${fontSizes.sm};
|
|
4581
4728
|
font-weight: ${fontWeights.medium};
|
|
@@ -4583,17 +4730,17 @@ var labelStyles2 = import_react23.css`
|
|
|
4583
4730
|
color: ${colors.gray["900"]};
|
|
4584
4731
|
margin-bottom: ${space["1"]};
|
|
4585
4732
|
`;
|
|
4586
|
-
var requiredIndicatorStyles =
|
|
4733
|
+
var requiredIndicatorStyles = import_react25.css`
|
|
4587
4734
|
color: ${colors.red["500"]};
|
|
4588
4735
|
margin-left: ${space["1"]};
|
|
4589
4736
|
`;
|
|
4590
|
-
var helpTextStyles =
|
|
4737
|
+
var helpTextStyles = import_react25.css`
|
|
4591
4738
|
font-family: ${fonts.base};
|
|
4592
4739
|
font-size: ${fontSizes.sm};
|
|
4593
4740
|
line-height: ${lineHeights.tight};
|
|
4594
4741
|
color: ${colors.gray["600"]};
|
|
4595
4742
|
`;
|
|
4596
|
-
var errorTextStyles =
|
|
4743
|
+
var errorTextStyles = import_react25.css`
|
|
4597
4744
|
font-family: ${fonts.base};
|
|
4598
4745
|
font-size: ${fontSizes.sm};
|
|
4599
4746
|
line-height: ${lineHeights.tight};
|
|
@@ -4602,7 +4749,7 @@ var errorTextStyles = import_react23.css`
|
|
|
4602
4749
|
align-items: center;
|
|
4603
4750
|
gap: ${space["1"]};
|
|
4604
4751
|
`;
|
|
4605
|
-
var successTextStyles =
|
|
4752
|
+
var successTextStyles = import_react25.css`
|
|
4606
4753
|
font-family: ${fonts.base};
|
|
4607
4754
|
font-size: ${fontSizes.sm};
|
|
4608
4755
|
line-height: ${lineHeights.tight};
|
|
@@ -4611,7 +4758,7 @@ var successTextStyles = import_react23.css`
|
|
|
4611
4758
|
align-items: center;
|
|
4612
4759
|
gap: ${space["1"]};
|
|
4613
4760
|
`;
|
|
4614
|
-
var visuallyHiddenStyles =
|
|
4761
|
+
var visuallyHiddenStyles = import_react25.css`
|
|
4615
4762
|
position: absolute;
|
|
4616
4763
|
width: 1px;
|
|
4617
4764
|
height: 1px;
|
|
@@ -4636,21 +4783,21 @@ var FormField = ({
|
|
|
4636
4783
|
const hasError = !!error;
|
|
4637
4784
|
const hasSuccess = !!success && !hasError;
|
|
4638
4785
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
4639
|
-
return /* @__PURE__ */ (0,
|
|
4640
|
-
label && /* @__PURE__ */ (0,
|
|
4786
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
4787
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(
|
|
4641
4788
|
"label",
|
|
4642
4789
|
{
|
|
4643
4790
|
htmlFor,
|
|
4644
4791
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
4645
4792
|
children: [
|
|
4646
4793
|
label,
|
|
4647
|
-
required && /* @__PURE__ */ (0,
|
|
4794
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
4648
4795
|
]
|
|
4649
4796
|
}
|
|
4650
4797
|
),
|
|
4651
4798
|
children,
|
|
4652
|
-
hasError && /* @__PURE__ */ (0,
|
|
4653
|
-
/* @__PURE__ */ (0,
|
|
4799
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
4800
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
4654
4801
|
"path",
|
|
4655
4802
|
{
|
|
4656
4803
|
fillRule: "evenodd",
|
|
@@ -4660,8 +4807,8 @@ var FormField = ({
|
|
|
4660
4807
|
) }),
|
|
4661
4808
|
error
|
|
4662
4809
|
] }),
|
|
4663
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
4664
|
-
/* @__PURE__ */ (0,
|
|
4810
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)("div", { css: successTextStyles, children: [
|
|
4811
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
4665
4812
|
"path",
|
|
4666
4813
|
{
|
|
4667
4814
|
fillRule: "evenodd",
|
|
@@ -4671,15 +4818,15 @@ var FormField = ({
|
|
|
4671
4818
|
) }),
|
|
4672
4819
|
success
|
|
4673
4820
|
] }),
|
|
4674
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
4821
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
4675
4822
|
] });
|
|
4676
4823
|
};
|
|
4677
4824
|
|
|
4678
4825
|
// src/Form/Input.tsx
|
|
4679
|
-
var
|
|
4680
|
-
var
|
|
4681
|
-
var
|
|
4682
|
-
var inputStyles =
|
|
4826
|
+
var import_react26 = require("@emotion/react");
|
|
4827
|
+
var import_react27 = require("react");
|
|
4828
|
+
var import_jsx_runtime212 = require("@emotion/react/jsx-runtime");
|
|
4829
|
+
var inputStyles = import_react26.css`
|
|
4683
4830
|
position: relative;
|
|
4684
4831
|
width: 100%;
|
|
4685
4832
|
font-family: ${fonts.base};
|
|
@@ -4716,19 +4863,19 @@ var inputStyles = import_react24.css`
|
|
|
4716
4863
|
}
|
|
4717
4864
|
`;
|
|
4718
4865
|
var sizeStyles = {
|
|
4719
|
-
sm:
|
|
4866
|
+
sm: import_react26.css`
|
|
4720
4867
|
padding: ${space["2"]} ${space["3"]};
|
|
4721
4868
|
font-size: ${fontSizes.sm};
|
|
4722
4869
|
line-height: ${lineHeights.tight};
|
|
4723
4870
|
height: ${space["8"]};
|
|
4724
4871
|
`,
|
|
4725
|
-
md:
|
|
4872
|
+
md: import_react26.css`
|
|
4726
4873
|
padding: ${space["3"]} ${space["4"]};
|
|
4727
4874
|
font-size: ${fontSizes.base};
|
|
4728
4875
|
line-height: ${lineHeights.normal};
|
|
4729
4876
|
height: ${space["10"]};
|
|
4730
4877
|
`,
|
|
4731
|
-
lg:
|
|
4878
|
+
lg: import_react26.css`
|
|
4732
4879
|
padding: ${space["4"]} ${space["5"]};
|
|
4733
4880
|
font-size: ${fontSizes.lg};
|
|
4734
4881
|
line-height: ${lineHeights.normal};
|
|
@@ -4736,8 +4883,8 @@ var sizeStyles = {
|
|
|
4736
4883
|
`
|
|
4737
4884
|
};
|
|
4738
4885
|
var variantStyles = {
|
|
4739
|
-
default:
|
|
4740
|
-
error:
|
|
4886
|
+
default: import_react26.css``,
|
|
4887
|
+
error: import_react26.css`
|
|
4741
4888
|
border-color: ${colors.red["500"]};
|
|
4742
4889
|
|
|
4743
4890
|
&:focus {
|
|
@@ -4745,7 +4892,7 @@ var variantStyles = {
|
|
|
4745
4892
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
4746
4893
|
}
|
|
4747
4894
|
`,
|
|
4748
|
-
success:
|
|
4895
|
+
success: import_react26.css`
|
|
4749
4896
|
border-color: ${colors.accent.green};
|
|
4750
4897
|
|
|
4751
4898
|
&:focus {
|
|
@@ -4754,7 +4901,7 @@ var variantStyles = {
|
|
|
4754
4901
|
}
|
|
4755
4902
|
`
|
|
4756
4903
|
};
|
|
4757
|
-
var inputWithIconStyles =
|
|
4904
|
+
var inputWithIconStyles = import_react26.css`
|
|
4758
4905
|
padding-left: ${space["10"]};
|
|
4759
4906
|
|
|
4760
4907
|
&.has-end-icon {
|
|
@@ -4765,7 +4912,7 @@ var inputWithIconStyles = import_react24.css`
|
|
|
4765
4912
|
padding-left: ${space["10"]};
|
|
4766
4913
|
}
|
|
4767
4914
|
`;
|
|
4768
|
-
var iconContainerStyles =
|
|
4915
|
+
var iconContainerStyles = import_react26.css`
|
|
4769
4916
|
position: absolute;
|
|
4770
4917
|
top: 50%;
|
|
4771
4918
|
transform: translateY(-50%);
|
|
@@ -4776,20 +4923,20 @@ var iconContainerStyles = import_react24.css`
|
|
|
4776
4923
|
pointer-events: none;
|
|
4777
4924
|
z-index: 1;
|
|
4778
4925
|
`;
|
|
4779
|
-
var startIconStyles =
|
|
4926
|
+
var startIconStyles = import_react26.css`
|
|
4780
4927
|
${iconContainerStyles}
|
|
4781
4928
|
left: ${space["3"]};
|
|
4782
4929
|
`;
|
|
4783
|
-
var endIconStyles =
|
|
4930
|
+
var endIconStyles = import_react26.css`
|
|
4784
4931
|
${iconContainerStyles}
|
|
4785
4932
|
right: ${space["3"]};
|
|
4786
4933
|
`;
|
|
4787
|
-
var inputWrapperStyles =
|
|
4934
|
+
var inputWrapperStyles = import_react26.css`
|
|
4788
4935
|
position: relative;
|
|
4789
4936
|
display: inline-block;
|
|
4790
4937
|
width: 100%;
|
|
4791
4938
|
`;
|
|
4792
|
-
var Input = (0,
|
|
4939
|
+
var Input = (0, import_react27.forwardRef)(
|
|
4793
4940
|
({
|
|
4794
4941
|
size = "md",
|
|
4795
4942
|
variant = "default",
|
|
@@ -4808,9 +4955,9 @@ var Input = (0, import_react25.forwardRef)(
|
|
|
4808
4955
|
hasEndIcon && "has-end-icon",
|
|
4809
4956
|
className
|
|
4810
4957
|
].filter(Boolean).join(" ");
|
|
4811
|
-
return /* @__PURE__ */ (0,
|
|
4812
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
4813
|
-
/* @__PURE__ */ (0,
|
|
4958
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
4959
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
4960
|
+
/* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
4814
4961
|
"input",
|
|
4815
4962
|
{
|
|
4816
4963
|
ref,
|
|
@@ -4827,17 +4974,17 @@ var Input = (0, import_react25.forwardRef)(
|
|
|
4827
4974
|
...props
|
|
4828
4975
|
}
|
|
4829
4976
|
),
|
|
4830
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
4977
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
4831
4978
|
] });
|
|
4832
4979
|
}
|
|
4833
4980
|
);
|
|
4834
4981
|
Input.displayName = "Input";
|
|
4835
4982
|
|
|
4836
4983
|
// src/Form/Select.tsx
|
|
4837
|
-
var
|
|
4838
|
-
var
|
|
4839
|
-
var
|
|
4840
|
-
var selectStyles =
|
|
4984
|
+
var import_react28 = require("@emotion/react");
|
|
4985
|
+
var import_react29 = require("react");
|
|
4986
|
+
var import_jsx_runtime213 = require("@emotion/react/jsx-runtime");
|
|
4987
|
+
var selectStyles = import_react28.css`
|
|
4841
4988
|
position: relative;
|
|
4842
4989
|
width: 100%;
|
|
4843
4990
|
font-family: ${fonts.base};
|
|
@@ -4876,19 +5023,19 @@ var selectStyles = import_react26.css`
|
|
|
4876
5023
|
}
|
|
4877
5024
|
`;
|
|
4878
5025
|
var sizeStyles2 = {
|
|
4879
|
-
sm:
|
|
5026
|
+
sm: import_react28.css`
|
|
4880
5027
|
padding: ${space["2"]} ${space["3"]};
|
|
4881
5028
|
font-size: ${fontSizes.sm};
|
|
4882
5029
|
line-height: ${lineHeights.tight};
|
|
4883
5030
|
height: ${space["8"]};
|
|
4884
5031
|
`,
|
|
4885
|
-
md:
|
|
5032
|
+
md: import_react28.css`
|
|
4886
5033
|
padding: ${space["3"]} ${space["4"]};
|
|
4887
5034
|
font-size: ${fontSizes.base};
|
|
4888
5035
|
line-height: ${lineHeights.normal};
|
|
4889
5036
|
height: ${space["10"]};
|
|
4890
5037
|
`,
|
|
4891
|
-
lg:
|
|
5038
|
+
lg: import_react28.css`
|
|
4892
5039
|
padding: ${space["4"]} ${space["5"]};
|
|
4893
5040
|
font-size: ${fontSizes.lg};
|
|
4894
5041
|
line-height: ${lineHeights.normal};
|
|
@@ -4896,8 +5043,8 @@ var sizeStyles2 = {
|
|
|
4896
5043
|
`
|
|
4897
5044
|
};
|
|
4898
5045
|
var variantStyles2 = {
|
|
4899
|
-
default:
|
|
4900
|
-
error:
|
|
5046
|
+
default: import_react28.css``,
|
|
5047
|
+
error: import_react28.css`
|
|
4901
5048
|
border-color: ${colors.red["500"]};
|
|
4902
5049
|
|
|
4903
5050
|
&:focus {
|
|
@@ -4905,7 +5052,7 @@ var variantStyles2 = {
|
|
|
4905
5052
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
4906
5053
|
}
|
|
4907
5054
|
`,
|
|
4908
|
-
success:
|
|
5055
|
+
success: import_react28.css`
|
|
4909
5056
|
border-color: ${colors.accent.green};
|
|
4910
5057
|
|
|
4911
5058
|
&:focus {
|
|
@@ -4914,7 +5061,7 @@ var variantStyles2 = {
|
|
|
4914
5061
|
}
|
|
4915
5062
|
`
|
|
4916
5063
|
};
|
|
4917
|
-
var optionStyles =
|
|
5064
|
+
var optionStyles = import_react28.css`
|
|
4918
5065
|
background-color: ${colors.light["100"]};
|
|
4919
5066
|
color: ${colors.gray["900"]};
|
|
4920
5067
|
|
|
@@ -4923,7 +5070,7 @@ var optionStyles = import_react26.css`
|
|
|
4923
5070
|
background-color: ${colors.gray["100"]};
|
|
4924
5071
|
}
|
|
4925
5072
|
`;
|
|
4926
|
-
var Select = (0,
|
|
5073
|
+
var Select = (0, import_react29.forwardRef)(
|
|
4927
5074
|
({
|
|
4928
5075
|
size = "md",
|
|
4929
5076
|
variant = "default",
|
|
@@ -4933,7 +5080,7 @@ var Select = (0, import_react27.forwardRef)(
|
|
|
4933
5080
|
className = "",
|
|
4934
5081
|
...props
|
|
4935
5082
|
}, ref) => {
|
|
4936
|
-
return /* @__PURE__ */ (0,
|
|
5083
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
|
|
4937
5084
|
"select",
|
|
4938
5085
|
{
|
|
4939
5086
|
ref,
|
|
@@ -4942,8 +5089,8 @@ var Select = (0, import_react27.forwardRef)(
|
|
|
4942
5089
|
className,
|
|
4943
5090
|
...props,
|
|
4944
5091
|
children: [
|
|
4945
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
4946
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
5092
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
5093
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
4947
5094
|
"option",
|
|
4948
5095
|
{
|
|
4949
5096
|
value: option.value,
|
|
@@ -4961,10 +5108,10 @@ var Select = (0, import_react27.forwardRef)(
|
|
|
4961
5108
|
Select.displayName = "Select";
|
|
4962
5109
|
|
|
4963
5110
|
// src/Grid/Column.tsx
|
|
4964
|
-
var
|
|
5111
|
+
var import_react31 = require("@emotion/react");
|
|
4965
5112
|
|
|
4966
5113
|
// src/Grid/utils.ts
|
|
4967
|
-
var
|
|
5114
|
+
var import_react30 = require("@emotion/react");
|
|
4968
5115
|
var LayoutTokens = {
|
|
4969
5116
|
containers: {
|
|
4970
5117
|
sm: screens.sm,
|
|
@@ -5004,11 +5151,11 @@ var getResponsiveValue = (value) => {
|
|
|
5004
5151
|
var generateGridColumns = (columns) => {
|
|
5005
5152
|
const baseColumns = getResponsiveValue(columns);
|
|
5006
5153
|
if (typeof columns === "number") {
|
|
5007
|
-
return
|
|
5154
|
+
return import_react30.css`
|
|
5008
5155
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
5009
5156
|
`;
|
|
5010
5157
|
}
|
|
5011
|
-
return
|
|
5158
|
+
return import_react30.css`
|
|
5012
5159
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
5013
5160
|
|
|
5014
5161
|
${media.sm} {
|
|
@@ -5040,11 +5187,11 @@ var generateGridColumns = (columns) => {
|
|
|
5040
5187
|
var generateGapStyles = (gap2) => {
|
|
5041
5188
|
const baseGap = getResponsiveValue(gap2);
|
|
5042
5189
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
5043
|
-
return
|
|
5190
|
+
return import_react30.css`
|
|
5044
5191
|
gap: ${space[gap2]};
|
|
5045
5192
|
`;
|
|
5046
5193
|
}
|
|
5047
|
-
return
|
|
5194
|
+
return import_react30.css`
|
|
5048
5195
|
gap: ${space[baseGap]};
|
|
5049
5196
|
|
|
5050
5197
|
${media.sm} {
|
|
@@ -5067,11 +5214,11 @@ var generateGapStyles = (gap2) => {
|
|
|
5067
5214
|
var generateRowGapStyles = (rowGap) => {
|
|
5068
5215
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
5069
5216
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
5070
|
-
return
|
|
5217
|
+
return import_react30.css`
|
|
5071
5218
|
row-gap: ${space[rowGap]};
|
|
5072
5219
|
`;
|
|
5073
5220
|
}
|
|
5074
|
-
return
|
|
5221
|
+
return import_react30.css`
|
|
5075
5222
|
row-gap: ${space[baseRowGap]};
|
|
5076
5223
|
|
|
5077
5224
|
${media.sm} {
|
|
@@ -5094,11 +5241,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
5094
5241
|
var generateColumnGapStyles = (columnGap) => {
|
|
5095
5242
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
5096
5243
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
5097
|
-
return
|
|
5244
|
+
return import_react30.css`
|
|
5098
5245
|
column-gap: ${space[columnGap]};
|
|
5099
5246
|
`;
|
|
5100
5247
|
}
|
|
5101
|
-
return
|
|
5248
|
+
return import_react30.css`
|
|
5102
5249
|
column-gap: ${space[baseColumnGap]};
|
|
5103
5250
|
|
|
5104
5251
|
${media.sm} {
|
|
@@ -5121,11 +5268,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
5121
5268
|
var generateColumnSpan = (span) => {
|
|
5122
5269
|
const baseSpan = getResponsiveValue(span);
|
|
5123
5270
|
if (typeof span === "string" || typeof span === "number") {
|
|
5124
|
-
return
|
|
5271
|
+
return import_react30.css`
|
|
5125
5272
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
5126
5273
|
`;
|
|
5127
5274
|
}
|
|
5128
|
-
return
|
|
5275
|
+
return import_react30.css`
|
|
5129
5276
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
5130
5277
|
|
|
5131
5278
|
${media.sm} {
|
|
@@ -5148,11 +5295,11 @@ var generateColumnSpan = (span) => {
|
|
|
5148
5295
|
var generateAlignItems = (alignItems) => {
|
|
5149
5296
|
const baseAlign = getResponsiveValue(alignItems);
|
|
5150
5297
|
if (typeof alignItems === "string") {
|
|
5151
|
-
return
|
|
5298
|
+
return import_react30.css`
|
|
5152
5299
|
align-items: ${alignItems};
|
|
5153
5300
|
`;
|
|
5154
5301
|
}
|
|
5155
|
-
return
|
|
5302
|
+
return import_react30.css`
|
|
5156
5303
|
align-items: ${baseAlign};
|
|
5157
5304
|
|
|
5158
5305
|
${media.sm} {
|
|
@@ -5175,11 +5322,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
5175
5322
|
var generateJustifyItems = (justifyItems) => {
|
|
5176
5323
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
5177
5324
|
if (typeof justifyItems === "string") {
|
|
5178
|
-
return
|
|
5325
|
+
return import_react30.css`
|
|
5179
5326
|
justify-items: ${justifyItems};
|
|
5180
5327
|
`;
|
|
5181
5328
|
}
|
|
5182
|
-
return
|
|
5329
|
+
return import_react30.css`
|
|
5183
5330
|
justify-items: ${baseJustify};
|
|
5184
5331
|
|
|
5185
5332
|
${media.sm} {
|
|
@@ -5201,7 +5348,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
5201
5348
|
};
|
|
5202
5349
|
|
|
5203
5350
|
// src/Grid/Column.tsx
|
|
5204
|
-
var
|
|
5351
|
+
var import_jsx_runtime214 = require("@emotion/react/jsx-runtime");
|
|
5205
5352
|
var Column = ({
|
|
5206
5353
|
span,
|
|
5207
5354
|
start,
|
|
@@ -5214,30 +5361,30 @@ var Column = ({
|
|
|
5214
5361
|
}) => {
|
|
5215
5362
|
const columnStyles = [
|
|
5216
5363
|
span && generateColumnSpan(span),
|
|
5217
|
-
start &&
|
|
5364
|
+
start && import_react31.css`
|
|
5218
5365
|
grid-column-start: ${start};
|
|
5219
5366
|
`,
|
|
5220
|
-
end &&
|
|
5367
|
+
end && import_react31.css`
|
|
5221
5368
|
grid-column-end: ${end};
|
|
5222
5369
|
`,
|
|
5223
|
-
row &&
|
|
5370
|
+
row && import_react31.css`
|
|
5224
5371
|
grid-row: ${row};
|
|
5225
5372
|
`,
|
|
5226
|
-
rowSpan &&
|
|
5373
|
+
rowSpan && import_react31.css`
|
|
5227
5374
|
grid-row: span ${rowSpan};
|
|
5228
5375
|
`,
|
|
5229
|
-
area &&
|
|
5376
|
+
area && import_react31.css`
|
|
5230
5377
|
grid-area: ${area};
|
|
5231
5378
|
`
|
|
5232
5379
|
].filter(Boolean);
|
|
5233
|
-
return /* @__PURE__ */ (0,
|
|
5380
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
5234
5381
|
};
|
|
5235
5382
|
var Column_default = Column;
|
|
5236
5383
|
|
|
5237
5384
|
// src/Grid/Grid.tsx
|
|
5238
|
-
var
|
|
5239
|
-
var
|
|
5240
|
-
var baseGridStyles =
|
|
5385
|
+
var import_react32 = require("@emotion/react");
|
|
5386
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
5387
|
+
var baseGridStyles = import_react32.css`
|
|
5241
5388
|
display: grid;
|
|
5242
5389
|
`;
|
|
5243
5390
|
var Grid = ({
|
|
@@ -5262,27 +5409,27 @@ var Grid = ({
|
|
|
5262
5409
|
columnGap && generateColumnGapStyles(columnGap),
|
|
5263
5410
|
alignItems && generateAlignItems(alignItems),
|
|
5264
5411
|
justifyItems && generateJustifyItems(justifyItems),
|
|
5265
|
-
autoRows &&
|
|
5412
|
+
autoRows && import_react32.css`
|
|
5266
5413
|
grid-auto-rows: ${autoRows};
|
|
5267
5414
|
`,
|
|
5268
|
-
autoColumns &&
|
|
5415
|
+
autoColumns && import_react32.css`
|
|
5269
5416
|
grid-auto-columns: ${autoColumns};
|
|
5270
5417
|
`,
|
|
5271
|
-
templateAreas &&
|
|
5418
|
+
templateAreas && import_react32.css`
|
|
5272
5419
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
5273
5420
|
`,
|
|
5274
|
-
justifyContent &&
|
|
5421
|
+
justifyContent && import_react32.css`
|
|
5275
5422
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
5276
5423
|
`
|
|
5277
5424
|
].filter(Boolean);
|
|
5278
|
-
return /* @__PURE__ */ (0,
|
|
5425
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
5279
5426
|
};
|
|
5280
5427
|
var Grid_default = Grid;
|
|
5281
5428
|
|
|
5282
5429
|
// src/Grid/GridContainer.tsx
|
|
5283
|
-
var
|
|
5284
|
-
var
|
|
5285
|
-
var baseContainerStyles =
|
|
5430
|
+
var import_react33 = require("@emotion/react");
|
|
5431
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
5432
|
+
var baseContainerStyles = import_react33.css`
|
|
5286
5433
|
width: 100%;
|
|
5287
5434
|
margin: 0 auto;
|
|
5288
5435
|
padding-left: 1rem;
|
|
@@ -5290,14 +5437,14 @@ var baseContainerStyles = import_react31.css`
|
|
|
5290
5437
|
`;
|
|
5291
5438
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
5292
5439
|
if (maxWidth === "full") {
|
|
5293
|
-
return
|
|
5440
|
+
return import_react33.css`
|
|
5294
5441
|
max-width: 100%;
|
|
5295
5442
|
padding-left: 0;
|
|
5296
5443
|
padding-right: 0;
|
|
5297
5444
|
`;
|
|
5298
5445
|
}
|
|
5299
5446
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
5300
|
-
return
|
|
5447
|
+
return import_react33.css`
|
|
5301
5448
|
max-width: ${width2};
|
|
5302
5449
|
|
|
5303
5450
|
${media.sm} {
|
|
@@ -5326,13 +5473,13 @@ var GridContainer = ({
|
|
|
5326
5473
|
baseContainerStyles,
|
|
5327
5474
|
generateMaxWidthStyles(maxWidth)
|
|
5328
5475
|
];
|
|
5329
|
-
return /* @__PURE__ */ (0,
|
|
5476
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
5330
5477
|
};
|
|
5331
5478
|
var GridContainer_default = GridContainer;
|
|
5332
5479
|
|
|
5333
5480
|
// src/HuntCard/HuntCard.styles.ts
|
|
5334
|
-
var
|
|
5335
|
-
var cardContainerStyles2 =
|
|
5481
|
+
var import_react34 = require("@emotion/react");
|
|
5482
|
+
var cardContainerStyles2 = import_react34.css`
|
|
5336
5483
|
position: relative;
|
|
5337
5484
|
height: 335px;
|
|
5338
5485
|
|
|
@@ -5340,12 +5487,12 @@ var cardContainerStyles2 = import_react32.css`
|
|
|
5340
5487
|
height: 480px;
|
|
5341
5488
|
}
|
|
5342
5489
|
`;
|
|
5343
|
-
var cardContentStyles2 =
|
|
5490
|
+
var cardContentStyles2 = import_react34.css`
|
|
5344
5491
|
position: relative;
|
|
5345
5492
|
border-radius: var(--spacing-4);
|
|
5346
5493
|
overflow: hidden;
|
|
5347
5494
|
`;
|
|
5348
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
5495
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react34.css`
|
|
5349
5496
|
background-image: linear-gradient(
|
|
5350
5497
|
180deg,
|
|
5351
5498
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -5359,7 +5506,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react32.css`
|
|
|
5359
5506
|
`;
|
|
5360
5507
|
|
|
5361
5508
|
// src/HuntCard/HuntCard.tsx
|
|
5362
|
-
var
|
|
5509
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5363
5510
|
var HuntCard = ({
|
|
5364
5511
|
backgroundImage,
|
|
5365
5512
|
title,
|
|
@@ -5368,14 +5515,14 @@ var HuntCard = ({
|
|
|
5368
5515
|
className,
|
|
5369
5516
|
...rest
|
|
5370
5517
|
}) => {
|
|
5371
|
-
return /* @__PURE__ */ (0,
|
|
5518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5372
5519
|
Box_default,
|
|
5373
5520
|
{
|
|
5374
5521
|
display: "flex",
|
|
5375
5522
|
css: cardContainerStyles2,
|
|
5376
5523
|
className,
|
|
5377
5524
|
...rest,
|
|
5378
|
-
children: /* @__PURE__ */ (0,
|
|
5525
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5379
5526
|
Box_default,
|
|
5380
5527
|
{
|
|
5381
5528
|
display: "flex",
|
|
@@ -5383,9 +5530,9 @@ var HuntCard = ({
|
|
|
5383
5530
|
justifyContent: "flex-end",
|
|
5384
5531
|
p: 6,
|
|
5385
5532
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
5386
|
-
children: /* @__PURE__ */ (0,
|
|
5387
|
-
/* @__PURE__ */ (0,
|
|
5388
|
-
/* @__PURE__ */ (0,
|
|
5533
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
5534
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
5535
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
5389
5536
|
] })
|
|
5390
5537
|
}
|
|
5391
5538
|
)
|
|
@@ -5395,27 +5542,27 @@ var HuntCard = ({
|
|
|
5395
5542
|
var HuntCard_default = HuntCard;
|
|
5396
5543
|
|
|
5397
5544
|
// src/ListingChat/ListingChat.tsx
|
|
5398
|
-
var
|
|
5545
|
+
var import_react37 = require("react");
|
|
5399
5546
|
|
|
5400
5547
|
// src/TagChip/TagChip.styles.ts
|
|
5401
|
-
var
|
|
5548
|
+
var import_react35 = require("@emotion/react");
|
|
5402
5549
|
var tagChipVariantStyles = {
|
|
5403
|
-
primary:
|
|
5550
|
+
primary: import_react35.css`
|
|
5404
5551
|
background-color: var(--surface-disabled);
|
|
5405
5552
|
border: 1px solid var(--surface-disabled);
|
|
5406
5553
|
color: var(--text-primary);
|
|
5407
5554
|
`,
|
|
5408
|
-
error:
|
|
5555
|
+
error: import_react35.css`
|
|
5409
5556
|
background-color: var(--surface-error);
|
|
5410
5557
|
border: 1px solid var(--color-red-300);
|
|
5411
5558
|
color: var(--text-error);
|
|
5412
5559
|
`,
|
|
5413
|
-
success:
|
|
5560
|
+
success: import_react35.css`
|
|
5414
5561
|
background-color: var(--surface-success);
|
|
5415
5562
|
border: 1px solid var(--color-green-300);
|
|
5416
5563
|
color: var(--text-success);
|
|
5417
5564
|
`,
|
|
5418
|
-
warning:
|
|
5565
|
+
warning: import_react35.css`
|
|
5419
5566
|
background-color: var(--surface-subtle);
|
|
5420
5567
|
border: 1px solid var(--color-brown-200);
|
|
5421
5568
|
color: var(--text-primary);
|
|
@@ -5423,14 +5570,14 @@ var tagChipVariantStyles = {
|
|
|
5423
5570
|
};
|
|
5424
5571
|
|
|
5425
5572
|
// src/TagChip/TagChip.tsx
|
|
5426
|
-
var
|
|
5573
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
5427
5574
|
var TagChip = ({
|
|
5428
5575
|
variant = "primary",
|
|
5429
5576
|
className,
|
|
5430
5577
|
children,
|
|
5431
5578
|
...rest
|
|
5432
5579
|
}) => {
|
|
5433
|
-
return /* @__PURE__ */ (0,
|
|
5580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5434
5581
|
Box_default,
|
|
5435
5582
|
{
|
|
5436
5583
|
display: "inline-flex",
|
|
@@ -5441,15 +5588,15 @@ var TagChip = ({
|
|
|
5441
5588
|
css: tagChipVariantStyles[variant],
|
|
5442
5589
|
className,
|
|
5443
5590
|
...rest,
|
|
5444
|
-
children: /* @__PURE__ */ (0,
|
|
5591
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Text_default, { as: "span", size: "sm", fontWeight: "normal", children })
|
|
5445
5592
|
}
|
|
5446
5593
|
);
|
|
5447
5594
|
};
|
|
5448
5595
|
var TagChip_default = TagChip;
|
|
5449
5596
|
|
|
5450
5597
|
// src/ListingChat/ListingChat.styles.ts
|
|
5451
|
-
var
|
|
5452
|
-
var containerStyles2 =
|
|
5598
|
+
var import_react36 = require("@emotion/react");
|
|
5599
|
+
var containerStyles2 = import_react36.css`
|
|
5453
5600
|
display: flex;
|
|
5454
5601
|
flex-direction: column;
|
|
5455
5602
|
gap: var(--spacing-4);
|
|
@@ -5457,13 +5604,13 @@ var containerStyles2 = import_react34.css`
|
|
|
5457
5604
|
border-radius: var(--radius-lg);
|
|
5458
5605
|
background: var(--surface-success);
|
|
5459
5606
|
`;
|
|
5460
|
-
var headerStyles =
|
|
5607
|
+
var headerStyles = import_react36.css`
|
|
5461
5608
|
display: flex;
|
|
5462
5609
|
align-items: flex-start;
|
|
5463
5610
|
justify-content: space-between;
|
|
5464
5611
|
gap: var(--spacing-2);
|
|
5465
5612
|
`;
|
|
5466
|
-
var chipsContainerStyles =
|
|
5613
|
+
var chipsContainerStyles = import_react36.css`
|
|
5467
5614
|
display: flex;
|
|
5468
5615
|
flex-wrap: wrap;
|
|
5469
5616
|
gap: var(--spacing-4);
|
|
@@ -5476,15 +5623,15 @@ var chipsContainerStyles = import_react34.css`
|
|
|
5476
5623
|
cursor: pointer;
|
|
5477
5624
|
}
|
|
5478
5625
|
`;
|
|
5479
|
-
var textAreaStyles =
|
|
5626
|
+
var textAreaStyles = import_react36.css`
|
|
5480
5627
|
min-height: 62px;
|
|
5481
5628
|
`;
|
|
5482
|
-
var inputWrapperStyles2 =
|
|
5629
|
+
var inputWrapperStyles2 = import_react36.css`
|
|
5483
5630
|
position: relative;
|
|
5484
5631
|
`;
|
|
5485
5632
|
|
|
5486
5633
|
// src/ListingChat/ListingChat.tsx
|
|
5487
|
-
var
|
|
5634
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
5488
5635
|
var ListingChat = ({
|
|
5489
5636
|
onSubmit,
|
|
5490
5637
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -5494,15 +5641,15 @@ var ListingChat = ({
|
|
|
5494
5641
|
disabled = false,
|
|
5495
5642
|
...rest
|
|
5496
5643
|
}) => {
|
|
5497
|
-
const [value, setValue] = (0,
|
|
5498
|
-
const handleSubmit = (0,
|
|
5644
|
+
const [value, setValue] = (0, import_react37.useState)("");
|
|
5645
|
+
const handleSubmit = (0, import_react37.useCallback)(() => {
|
|
5499
5646
|
const trimmed = value.trim();
|
|
5500
5647
|
if (!trimmed)
|
|
5501
5648
|
return;
|
|
5502
5649
|
onSubmit(trimmed);
|
|
5503
5650
|
setValue("");
|
|
5504
5651
|
}, [onSubmit, value]);
|
|
5505
|
-
const handleTagClick = (0,
|
|
5652
|
+
const handleTagClick = (0, import_react37.useCallback)(
|
|
5506
5653
|
(tag) => () => {
|
|
5507
5654
|
const trimmed = tag.trim();
|
|
5508
5655
|
if (!trimmed)
|
|
@@ -5511,18 +5658,18 @@ var ListingChat = ({
|
|
|
5511
5658
|
},
|
|
5512
5659
|
[onSubmit]
|
|
5513
5660
|
);
|
|
5514
|
-
return /* @__PURE__ */ (0,
|
|
5515
|
-
/* @__PURE__ */ (0,
|
|
5516
|
-
/* @__PURE__ */ (0,
|
|
5517
|
-
/* @__PURE__ */ (0,
|
|
5518
|
-
/* @__PURE__ */ (0,
|
|
5661
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
5662
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(Box_default, { css: headerStyles, children: [
|
|
5663
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(Box_default, { children: [
|
|
5664
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
5665
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
5519
5666
|
] }),
|
|
5520
|
-
/* @__PURE__ */ (0,
|
|
5521
|
-
/* @__PURE__ */ (0,
|
|
5522
|
-
/* @__PURE__ */ (0,
|
|
5667
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
5668
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon_default, { variant: "AiMagic", size: 5 }),
|
|
5669
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
5523
5670
|
] })
|
|
5524
5671
|
] }),
|
|
5525
|
-
/* @__PURE__ */ (0,
|
|
5672
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5526
5673
|
TextArea,
|
|
5527
5674
|
{
|
|
5528
5675
|
rows: 1,
|
|
@@ -5537,14 +5684,14 @@ var ListingChat = ({
|
|
|
5537
5684
|
css: textAreaStyles
|
|
5538
5685
|
}
|
|
5539
5686
|
) }),
|
|
5540
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
5541
|
-
/* @__PURE__ */ (0,
|
|
5542
|
-
/* @__PURE__ */ (0,
|
|
5687
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(import_jsx_runtime219.Fragment, { children: [
|
|
5688
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
5689
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5543
5690
|
"button",
|
|
5544
5691
|
{
|
|
5545
5692
|
onClick: handleTagClick(tag),
|
|
5546
5693
|
disabled,
|
|
5547
|
-
children: /* @__PURE__ */ (0,
|
|
5694
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(TagChip_default, { children: tag })
|
|
5548
5695
|
},
|
|
5549
5696
|
tag
|
|
5550
5697
|
)) })
|
|
@@ -5554,11 +5701,11 @@ var ListingChat = ({
|
|
|
5554
5701
|
var ListingChat_default = ListingChat;
|
|
5555
5702
|
|
|
5556
5703
|
// src/Logo/Logo.tsx
|
|
5557
|
-
var
|
|
5704
|
+
var import_react38 = require("@emotion/react");
|
|
5558
5705
|
|
|
5559
5706
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
5560
|
-
var
|
|
5561
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
5707
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5708
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
5562
5709
|
"svg",
|
|
5563
5710
|
{
|
|
5564
5711
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5566,14 +5713,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime219.
|
|
|
5566
5713
|
fill: "none",
|
|
5567
5714
|
...props,
|
|
5568
5715
|
children: [
|
|
5569
|
-
/* @__PURE__ */ (0,
|
|
5716
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5570
5717
|
"path",
|
|
5571
5718
|
{
|
|
5572
5719
|
fill: "#000",
|
|
5573
5720
|
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"
|
|
5574
5721
|
}
|
|
5575
5722
|
) }),
|
|
5576
|
-
/* @__PURE__ */ (0,
|
|
5723
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5577
5724
|
"path",
|
|
5578
5725
|
{
|
|
5579
5726
|
fill: "#FAD44E",
|
|
@@ -5582,14 +5729,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime219.
|
|
|
5582
5729
|
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"
|
|
5583
5730
|
}
|
|
5584
5731
|
),
|
|
5585
|
-
/* @__PURE__ */ (0,
|
|
5732
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5586
5733
|
"path",
|
|
5587
5734
|
{
|
|
5588
5735
|
fill: "#fff",
|
|
5589
5736
|
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"
|
|
5590
5737
|
}
|
|
5591
5738
|
),
|
|
5592
|
-
/* @__PURE__ */ (0,
|
|
5739
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
5593
5740
|
"filter",
|
|
5594
5741
|
{
|
|
5595
5742
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -5600,8 +5747,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime219.
|
|
|
5600
5747
|
colorInterpolationFilters: "sRGB",
|
|
5601
5748
|
filterUnits: "userSpaceOnUse",
|
|
5602
5749
|
children: [
|
|
5603
|
-
/* @__PURE__ */ (0,
|
|
5604
|
-
/* @__PURE__ */ (0,
|
|
5750
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
5751
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5605
5752
|
"feColorMatrix",
|
|
5606
5753
|
{
|
|
5607
5754
|
in: "SourceAlpha",
|
|
@@ -5609,18 +5756,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime219.
|
|
|
5609
5756
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5610
5757
|
}
|
|
5611
5758
|
),
|
|
5612
|
-
/* @__PURE__ */ (0,
|
|
5613
|
-
/* @__PURE__ */ (0,
|
|
5614
|
-
/* @__PURE__ */ (0,
|
|
5615
|
-
/* @__PURE__ */ (0,
|
|
5616
|
-
/* @__PURE__ */ (0,
|
|
5759
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feOffset", { dy: 1 }),
|
|
5760
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
5761
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
5762
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
5763
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5617
5764
|
"feBlend",
|
|
5618
5765
|
{
|
|
5619
5766
|
in2: "BackgroundImageFix",
|
|
5620
5767
|
result: "effect1_dropShadow_257_2540"
|
|
5621
5768
|
}
|
|
5622
5769
|
),
|
|
5623
|
-
/* @__PURE__ */ (0,
|
|
5770
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5624
5771
|
"feBlend",
|
|
5625
5772
|
{
|
|
5626
5773
|
in: "SourceGraphic",
|
|
@@ -5637,8 +5784,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime219.
|
|
|
5637
5784
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
5638
5785
|
|
|
5639
5786
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
5640
|
-
var
|
|
5641
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
5787
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
5788
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
|
|
5642
5789
|
"svg",
|
|
5643
5790
|
{
|
|
5644
5791
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5646,14 +5793,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime220
|
|
|
5646
5793
|
fill: "none",
|
|
5647
5794
|
...props,
|
|
5648
5795
|
children: [
|
|
5649
|
-
/* @__PURE__ */ (0,
|
|
5796
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5650
5797
|
"path",
|
|
5651
5798
|
{
|
|
5652
5799
|
fill: "#000",
|
|
5653
5800
|
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"
|
|
5654
5801
|
}
|
|
5655
5802
|
) }),
|
|
5656
|
-
/* @__PURE__ */ (0,
|
|
5803
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5657
5804
|
"path",
|
|
5658
5805
|
{
|
|
5659
5806
|
fill: "#FAD44E",
|
|
@@ -5662,14 +5809,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime220
|
|
|
5662
5809
|
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"
|
|
5663
5810
|
}
|
|
5664
5811
|
),
|
|
5665
|
-
/* @__PURE__ */ (0,
|
|
5812
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5666
5813
|
"path",
|
|
5667
5814
|
{
|
|
5668
5815
|
fill: "#1A202C",
|
|
5669
5816
|
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"
|
|
5670
5817
|
}
|
|
5671
5818
|
),
|
|
5672
|
-
/* @__PURE__ */ (0,
|
|
5819
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
|
|
5673
5820
|
"filter",
|
|
5674
5821
|
{
|
|
5675
5822
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -5680,8 +5827,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime220
|
|
|
5680
5827
|
colorInterpolationFilters: "sRGB",
|
|
5681
5828
|
filterUnits: "userSpaceOnUse",
|
|
5682
5829
|
children: [
|
|
5683
|
-
/* @__PURE__ */ (0,
|
|
5684
|
-
/* @__PURE__ */ (0,
|
|
5830
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
5831
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5685
5832
|
"feColorMatrix",
|
|
5686
5833
|
{
|
|
5687
5834
|
in: "SourceAlpha",
|
|
@@ -5689,18 +5836,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime220
|
|
|
5689
5836
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5690
5837
|
}
|
|
5691
5838
|
),
|
|
5692
|
-
/* @__PURE__ */ (0,
|
|
5693
|
-
/* @__PURE__ */ (0,
|
|
5694
|
-
/* @__PURE__ */ (0,
|
|
5695
|
-
/* @__PURE__ */ (0,
|
|
5696
|
-
/* @__PURE__ */ (0,
|
|
5839
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)("feOffset", { dy: 1 }),
|
|
5840
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
5841
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
5842
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
5843
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5697
5844
|
"feBlend",
|
|
5698
5845
|
{
|
|
5699
5846
|
in2: "BackgroundImageFix",
|
|
5700
5847
|
result: "effect1_dropShadow_257_2538"
|
|
5701
5848
|
}
|
|
5702
5849
|
),
|
|
5703
|
-
/* @__PURE__ */ (0,
|
|
5850
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5704
5851
|
"feBlend",
|
|
5705
5852
|
{
|
|
5706
5853
|
in: "SourceGraphic",
|
|
@@ -5717,8 +5864,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime220
|
|
|
5717
5864
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
5718
5865
|
|
|
5719
5866
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
5720
|
-
var
|
|
5721
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
5867
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
5868
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
|
|
5722
5869
|
"svg",
|
|
5723
5870
|
{
|
|
5724
5871
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5726,14 +5873,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
5726
5873
|
fill: "none",
|
|
5727
5874
|
...props,
|
|
5728
5875
|
children: [
|
|
5729
|
-
/* @__PURE__ */ (0,
|
|
5876
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
5730
5877
|
"path",
|
|
5731
5878
|
{
|
|
5732
5879
|
fill: "#E2430C",
|
|
5733
5880
|
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"
|
|
5734
5881
|
}
|
|
5735
5882
|
),
|
|
5736
|
-
/* @__PURE__ */ (0,
|
|
5883
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
5737
5884
|
"path",
|
|
5738
5885
|
{
|
|
5739
5886
|
fill: "#fff",
|
|
@@ -5746,8 +5893,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
5746
5893
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
5747
5894
|
|
|
5748
5895
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
5749
|
-
var
|
|
5750
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
5896
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
5897
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(
|
|
5751
5898
|
"svg",
|
|
5752
5899
|
{
|
|
5753
5900
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5755,14 +5902,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
5755
5902
|
fill: "none",
|
|
5756
5903
|
...props,
|
|
5757
5904
|
children: [
|
|
5758
|
-
/* @__PURE__ */ (0,
|
|
5905
|
+
/* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5759
5906
|
"path",
|
|
5760
5907
|
{
|
|
5761
5908
|
fill: "#E2430C",
|
|
5762
5909
|
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"
|
|
5763
5910
|
}
|
|
5764
5911
|
),
|
|
5765
|
-
/* @__PURE__ */ (0,
|
|
5912
|
+
/* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5766
5913
|
"path",
|
|
5767
5914
|
{
|
|
5768
5915
|
fill: "#000",
|
|
@@ -5775,8 +5922,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
5775
5922
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
5776
5923
|
|
|
5777
5924
|
// src/Logo/Logo.tsx
|
|
5778
|
-
var
|
|
5779
|
-
var logoStyles = (size) =>
|
|
5925
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
5926
|
+
var logoStyles = (size) => import_react38.css`
|
|
5780
5927
|
width: ${space[size]};
|
|
5781
5928
|
height: auto;
|
|
5782
5929
|
display: block;
|
|
@@ -5804,18 +5951,18 @@ var Logo = ({
|
|
|
5804
5951
|
return LandtrustStandardLight_default;
|
|
5805
5952
|
};
|
|
5806
5953
|
const LogoComponent = getLogoComponent();
|
|
5807
|
-
return /* @__PURE__ */ (0,
|
|
5954
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
5808
5955
|
};
|
|
5809
5956
|
var Logo_default = Logo;
|
|
5810
5957
|
|
|
5811
5958
|
// src/Navigation/Navigation.styles.ts
|
|
5812
|
-
var
|
|
5813
|
-
var navigationStyles =
|
|
5959
|
+
var import_react39 = require("@emotion/react");
|
|
5960
|
+
var navigationStyles = import_react39.css`
|
|
5814
5961
|
width: 100%;
|
|
5815
5962
|
background-color: white;
|
|
5816
5963
|
border-bottom: 1px solid #e5e5e5;
|
|
5817
5964
|
`;
|
|
5818
|
-
var hamburgerButtonStyles =
|
|
5965
|
+
var hamburgerButtonStyles = import_react39.css`
|
|
5819
5966
|
cursor: pointer;
|
|
5820
5967
|
&:focus {
|
|
5821
5968
|
outline: 2px solid #4f46e5;
|
|
@@ -5826,7 +5973,7 @@ var hamburgerButtonStyles = import_react37.css`
|
|
|
5826
5973
|
display: none;
|
|
5827
5974
|
}
|
|
5828
5975
|
`;
|
|
5829
|
-
var centeredLogoStyles =
|
|
5976
|
+
var centeredLogoStyles = import_react39.css`
|
|
5830
5977
|
transform: translate(-50%, -50%);
|
|
5831
5978
|
max-width: 150px;
|
|
5832
5979
|
|
|
@@ -5834,27 +5981,27 @@ var centeredLogoStyles = import_react37.css`
|
|
|
5834
5981
|
display: none;
|
|
5835
5982
|
}
|
|
5836
5983
|
`;
|
|
5837
|
-
var desktopLogoStyles =
|
|
5984
|
+
var desktopLogoStyles = import_react39.css`
|
|
5838
5985
|
display: none;
|
|
5839
5986
|
|
|
5840
5987
|
@media (min-width: 768px) {
|
|
5841
5988
|
display: block;
|
|
5842
5989
|
}
|
|
5843
5990
|
`;
|
|
5844
|
-
var containerStyles3 =
|
|
5991
|
+
var containerStyles3 = import_react39.css`
|
|
5845
5992
|
@media (min-width: 768px) {
|
|
5846
5993
|
justify-content: space-between;
|
|
5847
5994
|
position: static;
|
|
5848
5995
|
}
|
|
5849
5996
|
`;
|
|
5850
|
-
var logoStyles2 =
|
|
5997
|
+
var logoStyles2 = import_react39.css`
|
|
5851
5998
|
width: 100%;
|
|
5852
5999
|
|
|
5853
6000
|
@media (min-width: 768px) {
|
|
5854
6001
|
width: initial;
|
|
5855
6002
|
}
|
|
5856
6003
|
`;
|
|
5857
|
-
var desktopNavStyles =
|
|
6004
|
+
var desktopNavStyles = import_react39.css`
|
|
5858
6005
|
display: none;
|
|
5859
6006
|
|
|
5860
6007
|
@media (min-width: 768px) {
|
|
@@ -5863,7 +6010,7 @@ var desktopNavStyles = import_react37.css`
|
|
|
5863
6010
|
gap: 32px;
|
|
5864
6011
|
}
|
|
5865
6012
|
`;
|
|
5866
|
-
var navLinksStyles =
|
|
6013
|
+
var navLinksStyles = import_react39.css`
|
|
5867
6014
|
display: flex;
|
|
5868
6015
|
align-items: center;
|
|
5869
6016
|
gap: 24px;
|
|
@@ -5871,7 +6018,7 @@ var navLinksStyles = import_react37.css`
|
|
|
5871
6018
|
margin: 0;
|
|
5872
6019
|
padding: 0;
|
|
5873
6020
|
`;
|
|
5874
|
-
var navLinkStyles =
|
|
6021
|
+
var navLinkStyles = import_react39.css`
|
|
5875
6022
|
text-decoration: none;
|
|
5876
6023
|
color: #374151;
|
|
5877
6024
|
font-weight: 500;
|
|
@@ -5887,7 +6034,7 @@ var navLinkStyles = import_react37.css`
|
|
|
5887
6034
|
outline-offset: 2px;
|
|
5888
6035
|
}
|
|
5889
6036
|
`;
|
|
5890
|
-
var avatarPlaceholderStyles =
|
|
6037
|
+
var avatarPlaceholderStyles = import_react39.css`
|
|
5891
6038
|
width: 32px;
|
|
5892
6039
|
height: 32px;
|
|
5893
6040
|
border-radius: 50%;
|
|
@@ -5912,7 +6059,7 @@ var avatarPlaceholderStyles = import_react37.css`
|
|
|
5912
6059
|
`;
|
|
5913
6060
|
|
|
5914
6061
|
// src/Navigation/Navigation.tsx
|
|
5915
|
-
var
|
|
6062
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
5916
6063
|
var Navigation = ({
|
|
5917
6064
|
onMenuToggle,
|
|
5918
6065
|
className,
|
|
@@ -5926,7 +6073,7 @@ var Navigation = ({
|
|
|
5926
6073
|
onAvatarClick,
|
|
5927
6074
|
...rest
|
|
5928
6075
|
}) => {
|
|
5929
|
-
return /* @__PURE__ */ (0,
|
|
6076
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
|
|
5930
6077
|
Box_default,
|
|
5931
6078
|
{
|
|
5932
6079
|
display: "flex",
|
|
@@ -5935,7 +6082,7 @@ var Navigation = ({
|
|
|
5935
6082
|
position: "relative",
|
|
5936
6083
|
css: containerStyles3,
|
|
5937
6084
|
children: [
|
|
5938
|
-
/* @__PURE__ */ (0,
|
|
6085
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5939
6086
|
Box_default,
|
|
5940
6087
|
{
|
|
5941
6088
|
as: "button",
|
|
@@ -5947,11 +6094,11 @@ var Navigation = ({
|
|
|
5947
6094
|
border: "none",
|
|
5948
6095
|
padding: space[2],
|
|
5949
6096
|
css: hamburgerButtonStyles,
|
|
5950
|
-
children: /* @__PURE__ */ (0,
|
|
6097
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Icon_default, { variant: "Bars", size: 6 })
|
|
5951
6098
|
}
|
|
5952
6099
|
),
|
|
5953
|
-
/* @__PURE__ */ (0,
|
|
5954
|
-
/* @__PURE__ */ (0,
|
|
6100
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
6101
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5955
6102
|
Logo_default,
|
|
5956
6103
|
{
|
|
5957
6104
|
variant: logoVariant,
|
|
@@ -5960,8 +6107,8 @@ var Navigation = ({
|
|
|
5960
6107
|
css: logoStyles2
|
|
5961
6108
|
}
|
|
5962
6109
|
) }),
|
|
5963
|
-
/* @__PURE__ */ (0,
|
|
5964
|
-
/* @__PURE__ */ (0,
|
|
6110
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
6111
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5965
6112
|
"a",
|
|
5966
6113
|
{
|
|
5967
6114
|
href: link.href,
|
|
@@ -5970,7 +6117,7 @@ var Navigation = ({
|
|
|
5970
6117
|
children: link.label
|
|
5971
6118
|
}
|
|
5972
6119
|
) }, link.href)) }) }),
|
|
5973
|
-
/* @__PURE__ */ (0,
|
|
6120
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5974
6121
|
Box_default,
|
|
5975
6122
|
{
|
|
5976
6123
|
as: "button",
|
|
@@ -5989,8 +6136,8 @@ var Navigation = ({
|
|
|
5989
6136
|
var Navigation_default = Navigation;
|
|
5990
6137
|
|
|
5991
6138
|
// src/PackageCard/PackageCard.styles.ts
|
|
5992
|
-
var
|
|
5993
|
-
var cardContainerStyles3 =
|
|
6139
|
+
var import_react40 = require("@emotion/react");
|
|
6140
|
+
var cardContainerStyles3 = import_react40.css`
|
|
5994
6141
|
color: var(--text-primary);
|
|
5995
6142
|
position: relative;
|
|
5996
6143
|
width: 100%;
|
|
@@ -6007,14 +6154,14 @@ var cardContainerStyles3 = import_react38.css`
|
|
|
6007
6154
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
6008
6155
|
}
|
|
6009
6156
|
`;
|
|
6010
|
-
var imageContainerStyles =
|
|
6157
|
+
var imageContainerStyles = import_react40.css`
|
|
6011
6158
|
position: relative;
|
|
6012
6159
|
width: 100%;
|
|
6013
6160
|
height: 200px;
|
|
6014
6161
|
overflow: hidden;
|
|
6015
6162
|
border-radius: var(--spacing-4);
|
|
6016
6163
|
`;
|
|
6017
|
-
var imageStyles =
|
|
6164
|
+
var imageStyles = import_react40.css`
|
|
6018
6165
|
width: 100%;
|
|
6019
6166
|
height: 100%;
|
|
6020
6167
|
background-size: cover;
|
|
@@ -6022,13 +6169,13 @@ var imageStyles = import_react38.css`
|
|
|
6022
6169
|
background-repeat: no-repeat;
|
|
6023
6170
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
6024
6171
|
`;
|
|
6025
|
-
var badgeStyles =
|
|
6172
|
+
var badgeStyles = import_react40.css`
|
|
6026
6173
|
position: absolute;
|
|
6027
6174
|
top: var(--spacing-3);
|
|
6028
6175
|
left: var(--spacing-3);
|
|
6029
6176
|
z-index: 2;
|
|
6030
6177
|
`;
|
|
6031
|
-
var heartIconStyles =
|
|
6178
|
+
var heartIconStyles = import_react40.css`
|
|
6032
6179
|
position: absolute;
|
|
6033
6180
|
top: var(--spacing-3);
|
|
6034
6181
|
right: var(--spacing-3);
|
|
@@ -6050,12 +6197,12 @@ var heartIconStyles = import_react38.css`
|
|
|
6050
6197
|
transform: scale(1.1);
|
|
6051
6198
|
}
|
|
6052
6199
|
`;
|
|
6053
|
-
var contentStyles2 =
|
|
6200
|
+
var contentStyles2 = import_react40.css`
|
|
6054
6201
|
padding: var(--spacing-3);
|
|
6055
6202
|
`;
|
|
6056
6203
|
|
|
6057
6204
|
// src/PackageCard/PackageCard.tsx
|
|
6058
|
-
var
|
|
6205
|
+
var import_jsx_runtime226 = require("@emotion/react/jsx-runtime");
|
|
6059
6206
|
var PackageCard = ({
|
|
6060
6207
|
images,
|
|
6061
6208
|
title,
|
|
@@ -6072,13 +6219,13 @@ var PackageCard = ({
|
|
|
6072
6219
|
...rest
|
|
6073
6220
|
}) => {
|
|
6074
6221
|
const mainImage = images[0] || "";
|
|
6075
|
-
return /* @__PURE__ */ (0,
|
|
6076
|
-
/* @__PURE__ */ (0,
|
|
6077
|
-
tripsLeft && /* @__PURE__ */ (0,
|
|
6222
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { css: cardContainerStyles3, className, ...rest, children: [
|
|
6223
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { css: imageContainerStyles, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { css: [imageStyles, { backgroundImage: `url(${mainImage})` }], children: [
|
|
6224
|
+
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(AvailabilityChip_default, { variant: "warning", css: badgeStyles, children: [
|
|
6078
6225
|
tripsLeft,
|
|
6079
6226
|
" Trips Left"
|
|
6080
6227
|
] }),
|
|
6081
|
-
/* @__PURE__ */ (0,
|
|
6228
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6082
6229
|
Box_default,
|
|
6083
6230
|
{
|
|
6084
6231
|
css: heartIconStyles,
|
|
@@ -6086,12 +6233,12 @@ var PackageCard = ({
|
|
|
6086
6233
|
e.stopPropagation();
|
|
6087
6234
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
6088
6235
|
},
|
|
6089
|
-
children: /* @__PURE__ */ (0,
|
|
6236
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Icon_default, { variant: isFavorited ? "HeartSolid" : "Heart", size: 5 })
|
|
6090
6237
|
}
|
|
6091
6238
|
)
|
|
6092
6239
|
] }) }),
|
|
6093
|
-
/* @__PURE__ */ (0,
|
|
6094
|
-
/* @__PURE__ */ (0,
|
|
6240
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
6241
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
|
|
6095
6242
|
Box_default,
|
|
6096
6243
|
{
|
|
6097
6244
|
onClick,
|
|
@@ -6100,9 +6247,9 @@ var PackageCard = ({
|
|
|
6100
6247
|
gap: "var(--spacing-1)",
|
|
6101
6248
|
mb: "var(--spacing-4)",
|
|
6102
6249
|
children: [
|
|
6103
|
-
/* @__PURE__ */ (0,
|
|
6104
|
-
/* @__PURE__ */ (0,
|
|
6105
|
-
/* @__PURE__ */ (0,
|
|
6250
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
6251
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Text_default, { size: "xs", fontWeight: "bold", children: subtitle }) }),
|
|
6252
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Text_default, { size: "xs", fontWeight: "normal", children: [
|
|
6106
6253
|
"Starting Price ",
|
|
6107
6254
|
startingPrice,
|
|
6108
6255
|
" / Guest"
|
|
@@ -6110,32 +6257,239 @@ var PackageCard = ({
|
|
|
6110
6257
|
]
|
|
6111
6258
|
}
|
|
6112
6259
|
),
|
|
6113
|
-
/* @__PURE__ */ (0,
|
|
6114
|
-
days && /* @__PURE__ */ (0,
|
|
6260
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { display: "flex", gap: "var(--spacing-3)", alignItems: "center", children: [
|
|
6261
|
+
days && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6115
6262
|
IconLabel_default,
|
|
6116
6263
|
{
|
|
6117
6264
|
variant: "Calendar",
|
|
6118
6265
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
6119
6266
|
}
|
|
6120
6267
|
),
|
|
6121
|
-
guests && /* @__PURE__ */ (0,
|
|
6268
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6122
6269
|
IconLabel_default,
|
|
6123
6270
|
{
|
|
6124
6271
|
variant: "User",
|
|
6125
6272
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
6126
6273
|
}
|
|
6127
6274
|
),
|
|
6128
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
6275
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
6129
6276
|
] })
|
|
6130
6277
|
] })
|
|
6131
6278
|
] });
|
|
6132
6279
|
};
|
|
6133
6280
|
var PackageCard_default = PackageCard;
|
|
6134
6281
|
|
|
6282
|
+
// src/StarRating/StarRating.tsx
|
|
6283
|
+
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6284
|
+
var starSize = {
|
|
6285
|
+
sm: {
|
|
6286
|
+
size: 5,
|
|
6287
|
+
spacing: "var(--spacing-2)"
|
|
6288
|
+
},
|
|
6289
|
+
md: {
|
|
6290
|
+
size: 7,
|
|
6291
|
+
spacing: "var(--spacing-3)"
|
|
6292
|
+
}
|
|
6293
|
+
};
|
|
6294
|
+
var StarRating = ({
|
|
6295
|
+
rating,
|
|
6296
|
+
className,
|
|
6297
|
+
size = "md"
|
|
6298
|
+
}) => {
|
|
6299
|
+
const stars = [];
|
|
6300
|
+
for (let i = 1; i <= 5; i++) {
|
|
6301
|
+
stars.push(
|
|
6302
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6303
|
+
Icon_default,
|
|
6304
|
+
{
|
|
6305
|
+
variant: "StarSolid",
|
|
6306
|
+
size: starSize[size].size,
|
|
6307
|
+
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)"
|
|
6308
|
+
},
|
|
6309
|
+
i
|
|
6310
|
+
)
|
|
6311
|
+
);
|
|
6312
|
+
}
|
|
6313
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6314
|
+
Box_default,
|
|
6315
|
+
{
|
|
6316
|
+
className,
|
|
6317
|
+
display: "flex",
|
|
6318
|
+
alignItems: "center",
|
|
6319
|
+
gap: starSize[size].spacing,
|
|
6320
|
+
children: stars
|
|
6321
|
+
}
|
|
6322
|
+
);
|
|
6323
|
+
};
|
|
6324
|
+
var StarRating_default = StarRating;
|
|
6325
|
+
|
|
6326
|
+
// src/UserCard/UserCard.tsx
|
|
6327
|
+
var import_jsx_runtime228 = require("@emotion/react/jsx-runtime");
|
|
6328
|
+
var UserCard = ({
|
|
6329
|
+
avatarSrc,
|
|
6330
|
+
title,
|
|
6331
|
+
subtitle,
|
|
6332
|
+
rating,
|
|
6333
|
+
showRating = true,
|
|
6334
|
+
className
|
|
6335
|
+
}) => {
|
|
6336
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6337
|
+
Box_default,
|
|
6338
|
+
{
|
|
6339
|
+
display: "flex",
|
|
6340
|
+
alignItems: "flex-start",
|
|
6341
|
+
gap: "var(--spacing-4)",
|
|
6342
|
+
className,
|
|
6343
|
+
children: [
|
|
6344
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Avatar_default, { type: "image", src: avatarSrc, alt: `${title}'s avatar` }),
|
|
6345
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
6346
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
6347
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }),
|
|
6348
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(StarRating_default, { rating, size: "sm" })
|
|
6349
|
+
] })
|
|
6350
|
+
]
|
|
6351
|
+
}
|
|
6352
|
+
);
|
|
6353
|
+
};
|
|
6354
|
+
var UserCard_default = UserCard;
|
|
6355
|
+
|
|
6356
|
+
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
6357
|
+
var import_react41 = require("@emotion/react");
|
|
6358
|
+
var imageStyles2 = import_react41.css`
|
|
6359
|
+
flex: 1;
|
|
6360
|
+
min-width: 0;
|
|
6361
|
+
aspect-ratio: 1;
|
|
6362
|
+
border-radius: var(--spacing-2);
|
|
6363
|
+
object-fit: cover;
|
|
6364
|
+
border: 1px solid var(--color-neutral-200);
|
|
6365
|
+
`;
|
|
6366
|
+
|
|
6367
|
+
// src/ReviewCard/components/ReviewImages.tsx
|
|
6368
|
+
var import_jsx_runtime229 = require("@emotion/react/jsx-runtime");
|
|
6369
|
+
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
6370
|
+
const displayImages = images.slice(0, maxImages);
|
|
6371
|
+
if (displayImages.length === 0) {
|
|
6372
|
+
return null;
|
|
6373
|
+
}
|
|
6374
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6375
|
+
"img",
|
|
6376
|
+
{
|
|
6377
|
+
src: image,
|
|
6378
|
+
alt: `Review ${index + 1}`,
|
|
6379
|
+
css: imageStyles2
|
|
6380
|
+
},
|
|
6381
|
+
index
|
|
6382
|
+
)) });
|
|
6383
|
+
};
|
|
6384
|
+
var ReviewImages_default = ReviewImages;
|
|
6385
|
+
|
|
6386
|
+
// src/ReviewCard/components/ReviewReply.tsx
|
|
6387
|
+
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6388
|
+
var ReviewReply = ({
|
|
6389
|
+
avatarSrc,
|
|
6390
|
+
name,
|
|
6391
|
+
date,
|
|
6392
|
+
content,
|
|
6393
|
+
label,
|
|
6394
|
+
rating
|
|
6395
|
+
}) => {
|
|
6396
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6397
|
+
Box_default,
|
|
6398
|
+
{
|
|
6399
|
+
backgroundColor: "var(--surface-neutral)",
|
|
6400
|
+
borderRadius: "var(--spacing-3)",
|
|
6401
|
+
p: "var(--spacing-4)",
|
|
6402
|
+
display: "flex",
|
|
6403
|
+
flexDirection: "column",
|
|
6404
|
+
gap: "var(--spacing-3)",
|
|
6405
|
+
children: [
|
|
6406
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6407
|
+
Box_default,
|
|
6408
|
+
{
|
|
6409
|
+
display: "flex",
|
|
6410
|
+
alignItems: "center",
|
|
6411
|
+
justifyContent: "space-between",
|
|
6412
|
+
gap: "var(--spacing-2)",
|
|
6413
|
+
children: [
|
|
6414
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6415
|
+
UserCard_default,
|
|
6416
|
+
{
|
|
6417
|
+
avatarSrc,
|
|
6418
|
+
title: name,
|
|
6419
|
+
subtitle: date,
|
|
6420
|
+
rating
|
|
6421
|
+
}
|
|
6422
|
+
),
|
|
6423
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(AvailabilityChip_default, { variant: "neutral", children: label })
|
|
6424
|
+
]
|
|
6425
|
+
}
|
|
6426
|
+
),
|
|
6427
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(Text_default, { children: content })
|
|
6428
|
+
]
|
|
6429
|
+
}
|
|
6430
|
+
);
|
|
6431
|
+
};
|
|
6432
|
+
var ReviewReply_default = ReviewReply;
|
|
6433
|
+
|
|
6434
|
+
// src/ReviewCard/ReviewCard.tsx
|
|
6435
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6436
|
+
var ReviewCard = ({
|
|
6437
|
+
avatarSrc,
|
|
6438
|
+
name,
|
|
6439
|
+
date,
|
|
6440
|
+
rating,
|
|
6441
|
+
availabilityChip,
|
|
6442
|
+
content,
|
|
6443
|
+
images = [],
|
|
6444
|
+
replies = [],
|
|
6445
|
+
className
|
|
6446
|
+
}) => {
|
|
6447
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
|
|
6448
|
+
Box_default,
|
|
6449
|
+
{
|
|
6450
|
+
backgroundColor: "white",
|
|
6451
|
+
borderRadius: "var(--spacing-4)",
|
|
6452
|
+
p: "var(--spacing-4)",
|
|
6453
|
+
display: "flex",
|
|
6454
|
+
flexDirection: "column",
|
|
6455
|
+
gap: "var(--spacing-4)",
|
|
6456
|
+
border: "1px solid var(--color-neutral-200)",
|
|
6457
|
+
className,
|
|
6458
|
+
children: [
|
|
6459
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6460
|
+
UserCard_default,
|
|
6461
|
+
{
|
|
6462
|
+
avatarSrc,
|
|
6463
|
+
title: name,
|
|
6464
|
+
subtitle: date,
|
|
6465
|
+
rating
|
|
6466
|
+
}
|
|
6467
|
+
),
|
|
6468
|
+
availabilityChip && /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(AvailabilityChip_default, { variant: availabilityChip.variant, children: availabilityChip.text }) }),
|
|
6469
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Text_default, { size: "md", children: content }),
|
|
6470
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(ReviewImages_default, { images }),
|
|
6471
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6472
|
+
ReviewReply_default,
|
|
6473
|
+
{
|
|
6474
|
+
avatarSrc: reply.avatarSrc,
|
|
6475
|
+
name: reply.name,
|
|
6476
|
+
date: reply.date,
|
|
6477
|
+
content: reply.content,
|
|
6478
|
+
label: reply.label,
|
|
6479
|
+
rating: reply.rating
|
|
6480
|
+
},
|
|
6481
|
+
index
|
|
6482
|
+
)) })
|
|
6483
|
+
]
|
|
6484
|
+
}
|
|
6485
|
+
);
|
|
6486
|
+
};
|
|
6487
|
+
var ReviewCard_default = ReviewCard;
|
|
6488
|
+
|
|
6135
6489
|
// src/Reviews/components/ReviewItem.tsx
|
|
6136
|
-
var
|
|
6490
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6137
6491
|
var ReviewItem = ({ label, rating }) => {
|
|
6138
|
-
return /* @__PURE__ */ (0,
|
|
6492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6139
6493
|
Box_default,
|
|
6140
6494
|
{
|
|
6141
6495
|
display: "flex",
|
|
@@ -6143,10 +6497,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
6143
6497
|
alignItems: "center",
|
|
6144
6498
|
width: "100%",
|
|
6145
6499
|
children: [
|
|
6146
|
-
/* @__PURE__ */ (0,
|
|
6147
|
-
/* @__PURE__ */ (0,
|
|
6148
|
-
/* @__PURE__ */ (0,
|
|
6149
|
-
/* @__PURE__ */ (0,
|
|
6500
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
6501
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
6502
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Icon_default, { variant: "StarSolid", size: 5, fill: "var(--surface-action-2)" }),
|
|
6503
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { fontWeight: "semibold", children: [
|
|
6150
6504
|
rating,
|
|
6151
6505
|
"/5"
|
|
6152
6506
|
] })
|
|
@@ -6157,36 +6511,15 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
6157
6511
|
};
|
|
6158
6512
|
var ReviewItem_default = ReviewItem;
|
|
6159
6513
|
|
|
6160
|
-
// src/Reviews/components/StarRating.tsx
|
|
6161
|
-
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6162
|
-
var StarRating = ({ rating }) => {
|
|
6163
|
-
const stars = [];
|
|
6164
|
-
for (let i = 1; i <= 5; i++) {
|
|
6165
|
-
stars.push(
|
|
6166
|
-
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6167
|
-
Icon_default,
|
|
6168
|
-
{
|
|
6169
|
-
variant: "StarSolid",
|
|
6170
|
-
size: 7,
|
|
6171
|
-
fill: i <= rating ? "var(--surface-action-2)" : "var(--color-neutral-100)"
|
|
6172
|
-
},
|
|
6173
|
-
i
|
|
6174
|
-
)
|
|
6175
|
-
);
|
|
6176
|
-
}
|
|
6177
|
-
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: stars });
|
|
6178
|
-
};
|
|
6179
|
-
var StarRating_default = StarRating;
|
|
6180
|
-
|
|
6181
6514
|
// src/Reviews/Reviews.tsx
|
|
6182
|
-
var
|
|
6515
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
6183
6516
|
var Reviews = ({
|
|
6184
6517
|
averageRating,
|
|
6185
6518
|
totalReviews,
|
|
6186
6519
|
items,
|
|
6187
6520
|
className
|
|
6188
6521
|
}) => {
|
|
6189
|
-
return /* @__PURE__ */ (0,
|
|
6522
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6190
6523
|
Box_default,
|
|
6191
6524
|
{
|
|
6192
6525
|
width: "100%",
|
|
@@ -6199,7 +6532,7 @@ var Reviews = ({
|
|
|
6199
6532
|
p: "var(--spacing-4)",
|
|
6200
6533
|
className,
|
|
6201
6534
|
children: [
|
|
6202
|
-
/* @__PURE__ */ (0,
|
|
6535
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6203
6536
|
Box_default,
|
|
6204
6537
|
{
|
|
6205
6538
|
display: "flex",
|
|
@@ -6207,9 +6540,9 @@ var Reviews = ({
|
|
|
6207
6540
|
alignItems: "center",
|
|
6208
6541
|
gap: "var(--spacing-2)",
|
|
6209
6542
|
children: [
|
|
6210
|
-
/* @__PURE__ */ (0,
|
|
6211
|
-
/* @__PURE__ */ (0,
|
|
6212
|
-
/* @__PURE__ */ (0,
|
|
6543
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
6544
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(StarRating_default, { rating: Math.floor(averageRating) }),
|
|
6545
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
6213
6546
|
"Overall Rating \u2022 ",
|
|
6214
6547
|
totalReviews,
|
|
6215
6548
|
" Review",
|
|
@@ -6218,14 +6551,14 @@ var Reviews = ({
|
|
|
6218
6551
|
]
|
|
6219
6552
|
}
|
|
6220
6553
|
),
|
|
6221
|
-
/* @__PURE__ */ (0,
|
|
6554
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6222
6555
|
Box_default,
|
|
6223
6556
|
{
|
|
6224
6557
|
display: "flex",
|
|
6225
6558
|
flexDirection: "column",
|
|
6226
6559
|
gap: "var(--spacing-2)",
|
|
6227
6560
|
width: "100%",
|
|
6228
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
6561
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
6229
6562
|
}
|
|
6230
6563
|
)
|
|
6231
6564
|
]
|
|
@@ -6235,7 +6568,7 @@ var Reviews = ({
|
|
|
6235
6568
|
var Reviews_default = Reviews;
|
|
6236
6569
|
|
|
6237
6570
|
// src/Reviews/ReviewsShowcase.tsx
|
|
6238
|
-
var
|
|
6571
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
6239
6572
|
var ReviewsShowcase = () => {
|
|
6240
6573
|
const sampleData = {
|
|
6241
6574
|
averageRating: 4,
|
|
@@ -6257,7 +6590,7 @@ var ReviewsShowcase = () => {
|
|
|
6257
6590
|
{ label: "Game Abundance", rating: 5 }
|
|
6258
6591
|
]
|
|
6259
6592
|
};
|
|
6260
|
-
return /* @__PURE__ */ (0,
|
|
6593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
6261
6594
|
Box_default,
|
|
6262
6595
|
{
|
|
6263
6596
|
display: "flex",
|
|
@@ -6265,24 +6598,24 @@ var ReviewsShowcase = () => {
|
|
|
6265
6598
|
gap: "var(--spacing-8)",
|
|
6266
6599
|
p: "var(--spacing-6)",
|
|
6267
6600
|
children: [
|
|
6268
|
-
/* @__PURE__ */ (0,
|
|
6269
|
-
/* @__PURE__ */ (0,
|
|
6270
|
-
/* @__PURE__ */ (0,
|
|
6271
|
-
/* @__PURE__ */ (0,
|
|
6601
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
6602
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
6603
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
6604
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Reviews_default, { ...sampleData }) })
|
|
6272
6605
|
] }),
|
|
6273
|
-
/* @__PURE__ */ (0,
|
|
6274
|
-
/* @__PURE__ */ (0,
|
|
6275
|
-
/* @__PURE__ */ (0,
|
|
6606
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
6607
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
6608
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Reviews_default, { ...highRatingData }) })
|
|
6276
6609
|
] }),
|
|
6277
|
-
/* @__PURE__ */ (0,
|
|
6278
|
-
/* @__PURE__ */ (0,
|
|
6279
|
-
/* @__PURE__ */ (0,
|
|
6610
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
6611
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
6612
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6280
6613
|
Box_default,
|
|
6281
6614
|
{
|
|
6282
6615
|
maxWidth: "320px",
|
|
6283
6616
|
border: "1px solid var(--color-neutral-200)",
|
|
6284
6617
|
p: "var(--spacing-4)",
|
|
6285
|
-
children: /* @__PURE__ */ (0,
|
|
6618
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Reviews_default, { ...sampleData })
|
|
6286
6619
|
}
|
|
6287
6620
|
)
|
|
6288
6621
|
] })
|
|
@@ -6295,6 +6628,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
6295
6628
|
0 && (module.exports = {
|
|
6296
6629
|
AIResponse,
|
|
6297
6630
|
AvailabilityChip,
|
|
6631
|
+
Avatar,
|
|
6298
6632
|
Box,
|
|
6299
6633
|
Button,
|
|
6300
6634
|
ChatWidget,
|
|
@@ -6317,14 +6651,17 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
6317
6651
|
MessageBubble,
|
|
6318
6652
|
Navigation,
|
|
6319
6653
|
PackageCard,
|
|
6654
|
+
ReviewCard,
|
|
6320
6655
|
Reviews,
|
|
6321
6656
|
ReviewsShowcase,
|
|
6322
6657
|
Select,
|
|
6323
6658
|
Spinner,
|
|
6659
|
+
StarRating,
|
|
6324
6660
|
TagChip,
|
|
6325
6661
|
Text,
|
|
6326
6662
|
TextArea,
|
|
6327
6663
|
ThemeTokens,
|
|
6664
|
+
UserCard,
|
|
6328
6665
|
Widget,
|
|
6329
6666
|
WidgetPanel,
|
|
6330
6667
|
WidgetTrigger,
|