@landtrustinc/design-system 1.2.2 → 1.2.4
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/README.md +36 -1
- package/dist/index.d.ts +141 -3
- package/dist/index.js +1212 -576
- package/dist/index.js.map +1 -1
- package/package.json +5 -2
package/dist/index.js
CHANGED
|
@@ -55,6 +55,7 @@ __export(src_exports, {
|
|
|
55
55
|
LayoutTokens: () => LayoutTokens,
|
|
56
56
|
ListingChat: () => ListingChat_default,
|
|
57
57
|
Logo: () => Logo_default,
|
|
58
|
+
MarkdownContent: () => MarkdownContent_default,
|
|
58
59
|
MessageBubble: () => MessageBubble_default,
|
|
59
60
|
Navigation: () => Navigation_default,
|
|
60
61
|
PackageCard: () => PackageCard_default,
|
|
@@ -529,7 +530,30 @@ var GlobalStyle = import_react.css`
|
|
|
529
530
|
`;
|
|
530
531
|
|
|
531
532
|
// src/AIResponse/AIResponse.tsx
|
|
532
|
-
var
|
|
533
|
+
var import_react14 = require("react");
|
|
534
|
+
|
|
535
|
+
// src/Box/Box.tsx
|
|
536
|
+
var import_styled = __toESM(require("@emotion/styled"));
|
|
537
|
+
var import_styled_system = require("styled-system");
|
|
538
|
+
var gap = (0, import_styled_system.system)({
|
|
539
|
+
gap: {
|
|
540
|
+
property: "gap",
|
|
541
|
+
scale: "space"
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
var Box = import_styled.default.div`
|
|
545
|
+
${import_styled_system.position}
|
|
546
|
+
${import_styled_system.color};
|
|
547
|
+
${import_styled_system.typography};
|
|
548
|
+
${import_styled_system.space};
|
|
549
|
+
${import_styled_system.width};
|
|
550
|
+
${import_styled_system.layout}
|
|
551
|
+
${import_styled_system.flexbox};
|
|
552
|
+
${import_styled_system.grid};
|
|
553
|
+
${gap};
|
|
554
|
+
${import_styled_system.border};
|
|
555
|
+
`;
|
|
556
|
+
var Box_default = Box;
|
|
533
557
|
|
|
534
558
|
// src/Button/Button.tsx
|
|
535
559
|
var import_react5 = require("@emotion/react");
|
|
@@ -3196,29 +3220,6 @@ var Button = import_react6.default.forwardRef(
|
|
|
3196
3220
|
Button.displayName = "Button";
|
|
3197
3221
|
var Button_default = Button;
|
|
3198
3222
|
|
|
3199
|
-
// src/Box/Box.tsx
|
|
3200
|
-
var import_styled = __toESM(require("@emotion/styled"));
|
|
3201
|
-
var import_styled_system = require("styled-system");
|
|
3202
|
-
var gap = (0, import_styled_system.system)({
|
|
3203
|
-
gap: {
|
|
3204
|
-
property: "gap",
|
|
3205
|
-
scale: "space"
|
|
3206
|
-
}
|
|
3207
|
-
});
|
|
3208
|
-
var Box = import_styled.default.div`
|
|
3209
|
-
${import_styled_system.position}
|
|
3210
|
-
${import_styled_system.color};
|
|
3211
|
-
${import_styled_system.typography};
|
|
3212
|
-
${import_styled_system.space};
|
|
3213
|
-
${import_styled_system.width};
|
|
3214
|
-
${import_styled_system.layout}
|
|
3215
|
-
${import_styled_system.flexbox};
|
|
3216
|
-
${import_styled_system.grid};
|
|
3217
|
-
${gap};
|
|
3218
|
-
${import_styled_system.border};
|
|
3219
|
-
`;
|
|
3220
|
-
var Box_default = Box;
|
|
3221
|
-
|
|
3222
3223
|
// src/Box/Container.tsx
|
|
3223
3224
|
var import_react7 = require("@emotion/react");
|
|
3224
3225
|
var import_jsx_runtime198 = require("@emotion/react/jsx-runtime");
|
|
@@ -3700,14 +3701,434 @@ var IconLabel = ({
|
|
|
3700
3701
|
};
|
|
3701
3702
|
var IconLabel_default = IconLabel;
|
|
3702
3703
|
|
|
3703
|
-
// src/
|
|
3704
|
+
// src/MarkdownContent/MarkdownContent.tsx
|
|
3705
|
+
var import_markdown_to_jsx = __toESM(require("markdown-to-jsx"));
|
|
3706
|
+
var import_react11 = __toESM(require("react"));
|
|
3707
|
+
|
|
3708
|
+
// src/MarkdownContent/MarkdownContent.styles.ts
|
|
3704
3709
|
var import_react10 = require("@emotion/react");
|
|
3705
|
-
var
|
|
3710
|
+
var markdownContentStyles = import_react10.css`
|
|
3711
|
+
ul {
|
|
3712
|
+
margin: var(--spacing-3) 0;
|
|
3713
|
+
padding-left: var(--spacing-5);
|
|
3714
|
+
list-style-type: disc;
|
|
3715
|
+
list-style-position: outside;
|
|
3716
|
+
}
|
|
3717
|
+
|
|
3718
|
+
ol {
|
|
3719
|
+
margin: var(--spacing-3) 0;
|
|
3720
|
+
padding-left: var(--spacing-5);
|
|
3721
|
+
list-style-type: decimal;
|
|
3722
|
+
list-style-position: outside;
|
|
3723
|
+
}
|
|
3724
|
+
|
|
3725
|
+
/* Nested lists */
|
|
3726
|
+
ul ul {
|
|
3727
|
+
list-style-type: circle;
|
|
3728
|
+
margin: var(--spacing-2) 0;
|
|
3729
|
+
}
|
|
3730
|
+
|
|
3731
|
+
ul ul ul {
|
|
3732
|
+
list-style-type: square;
|
|
3733
|
+
}
|
|
3734
|
+
|
|
3735
|
+
ol ol {
|
|
3736
|
+
list-style-type: lower-alpha;
|
|
3737
|
+
margin: var(--spacing-2) 0;
|
|
3738
|
+
}
|
|
3739
|
+
|
|
3740
|
+
ol ol ol {
|
|
3741
|
+
list-style-type: lower-roman;
|
|
3742
|
+
}
|
|
3743
|
+
|
|
3744
|
+
li {
|
|
3745
|
+
margin: var(--spacing-2) 0;
|
|
3746
|
+
line-height: 1.6;
|
|
3747
|
+
}
|
|
3748
|
+
|
|
3749
|
+
/* Ensure list markers are visible */
|
|
3750
|
+
li::marker {
|
|
3751
|
+
color: var(--text-primary);
|
|
3752
|
+
}
|
|
3753
|
+
|
|
3754
|
+
blockquote {
|
|
3755
|
+
border-left: 3px solid var(--border-primary);
|
|
3756
|
+
margin: var(--spacing-4) 0;
|
|
3757
|
+
padding-left: var(--spacing-4);
|
|
3758
|
+
color: var(--text-secondary);
|
|
3759
|
+
font-style: italic;
|
|
3760
|
+
line-height: 1.6;
|
|
3761
|
+
}
|
|
3762
|
+
|
|
3763
|
+
table {
|
|
3764
|
+
border-collapse: separate;
|
|
3765
|
+
border-spacing: 0;
|
|
3766
|
+
width: 100%;
|
|
3767
|
+
margin: var(--spacing-4) 0;
|
|
3768
|
+
border-radius: var(--radius-lg);
|
|
3769
|
+
overflow: hidden;
|
|
3770
|
+
font-size: 0.875rem;
|
|
3771
|
+
border: 1px solid var(--border-primary);
|
|
3772
|
+
|
|
3773
|
+
@media (max-width: 768px) {
|
|
3774
|
+
font-size: 0.75rem;
|
|
3775
|
+
border-radius: var(--radius-md);
|
|
3776
|
+
min-width: 100%;
|
|
3777
|
+
}
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3780
|
+
th,
|
|
3781
|
+
td {
|
|
3782
|
+
border-right: 1px solid var(--border-primary);
|
|
3783
|
+
border-bottom: 1px solid var(--border-primary);
|
|
3784
|
+
padding: var(--spacing-3);
|
|
3785
|
+
text-align: left;
|
|
3786
|
+
|
|
3787
|
+
&:last-child {
|
|
3788
|
+
border-right: none;
|
|
3789
|
+
}
|
|
3790
|
+
|
|
3791
|
+
@media (max-width: 768px) {
|
|
3792
|
+
padding: var(--spacing-2);
|
|
3793
|
+
min-width: 120px;
|
|
3794
|
+
}
|
|
3795
|
+
}
|
|
3796
|
+
|
|
3797
|
+
thead tr:first-child th:first-child {
|
|
3798
|
+
border-top-left-radius: var(--radius-lg);
|
|
3799
|
+
|
|
3800
|
+
@media (max-width: 768px) {
|
|
3801
|
+
border-top-left-radius: var(--radius-md);
|
|
3802
|
+
}
|
|
3803
|
+
}
|
|
3804
|
+
|
|
3805
|
+
thead tr:first-child th:last-child {
|
|
3806
|
+
border-top-right-radius: var(--radius-lg);
|
|
3807
|
+
|
|
3808
|
+
@media (max-width: 768px) {
|
|
3809
|
+
border-top-right-radius: var(--radius-md);
|
|
3810
|
+
}
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3813
|
+
tbody tr:last-child td:first-child {
|
|
3814
|
+
border-bottom-left-radius: var(--radius-lg);
|
|
3815
|
+
|
|
3816
|
+
@media (max-width: 768px) {
|
|
3817
|
+
border-bottom-left-radius: var(--radius-md);
|
|
3818
|
+
}
|
|
3819
|
+
}
|
|
3820
|
+
|
|
3821
|
+
tbody tr:last-child td:last-child {
|
|
3822
|
+
border-bottom-right-radius: var(--radius-lg);
|
|
3823
|
+
|
|
3824
|
+
@media (max-width: 768px) {
|
|
3825
|
+
border-bottom-right-radius: var(--radius-md);
|
|
3826
|
+
}
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
tbody tr:last-child td {
|
|
3830
|
+
border-bottom: none;
|
|
3831
|
+
}
|
|
3832
|
+
|
|
3833
|
+
th {
|
|
3834
|
+
background-color: var(--surface-neutral);
|
|
3835
|
+
font-weight: 600;
|
|
3836
|
+
}
|
|
3837
|
+
|
|
3838
|
+
a {
|
|
3839
|
+
color: var(--color-primary-500);
|
|
3840
|
+
text-decoration: none;
|
|
3841
|
+
|
|
3842
|
+
&:hover {
|
|
3843
|
+
text-decoration: underline;
|
|
3844
|
+
}
|
|
3845
|
+
}
|
|
3846
|
+
|
|
3847
|
+
strong {
|
|
3848
|
+
font-weight: 600;
|
|
3849
|
+
}
|
|
3850
|
+
|
|
3851
|
+
em {
|
|
3852
|
+
font-style: italic;
|
|
3853
|
+
}
|
|
3854
|
+
`;
|
|
3855
|
+
var codeBlockStyles = import_react10.css`
|
|
3856
|
+
position: relative;
|
|
3857
|
+
margin: var(--spacing-4) 0;
|
|
3858
|
+
border-radius: var(--radius-lg);
|
|
3859
|
+
border: 1px solid var(--border-primary);
|
|
3860
|
+
overflow: hidden;
|
|
3861
|
+
`;
|
|
3862
|
+
var codeBlockHeaderStyles = import_react10.css`
|
|
3706
3863
|
display: flex;
|
|
3707
|
-
|
|
3708
|
-
|
|
3864
|
+
justify-content: space-between;
|
|
3865
|
+
align-items: center;
|
|
3866
|
+
padding: var(--spacing-2) var(--spacing-3);
|
|
3867
|
+
background-color: var(--surface-neutral);
|
|
3868
|
+
border-bottom: 1px solid var(--border-primary);
|
|
3869
|
+
position: relative;
|
|
3870
|
+
`;
|
|
3871
|
+
var codeBlockLanguageStyles = import_react10.css`
|
|
3872
|
+
font-size: 0.75rem;
|
|
3873
|
+
color: var(--text-secondary);
|
|
3874
|
+
text-transform: uppercase;
|
|
3875
|
+
font-weight: 500;
|
|
3876
|
+
`;
|
|
3877
|
+
var getCodeBlockCopyButtonStyles = (isHovered, copySuccess) => import_react10.css`
|
|
3878
|
+
position: absolute;
|
|
3879
|
+
top: 50%;
|
|
3880
|
+
right: var(--spacing-3);
|
|
3881
|
+
transform: translateY(-50%);
|
|
3882
|
+
background: ${copySuccess ? "var(--color-success-500)" : "var(--surface-action)"};
|
|
3883
|
+
border: none;
|
|
3884
|
+
border-radius: var(--radius-md);
|
|
3885
|
+
padding: var(--spacing-1) var(--spacing-2);
|
|
3886
|
+
color: var(--text-on-action);
|
|
3887
|
+
font-size: 0.75rem;
|
|
3888
|
+
cursor: pointer;
|
|
3889
|
+
transition: all 0.2s;
|
|
3890
|
+
opacity: ${isHovered ? 1 : 0};
|
|
3891
|
+
pointer-events: ${isHovered ? "auto" : "none"};
|
|
3892
|
+
|
|
3893
|
+
&:hover {
|
|
3894
|
+
background: ${copySuccess ? "var(--color-success-600)" : "var(--surface-action-hover)"};
|
|
3895
|
+
}
|
|
3896
|
+
`;
|
|
3897
|
+
var codeBlockPreStyles = import_react10.css`
|
|
3898
|
+
margin: 0;
|
|
3899
|
+
padding: var(--spacing-3);
|
|
3900
|
+
background-color: var(--surface-page);
|
|
3901
|
+
color: var(--text-primary);
|
|
3902
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro',
|
|
3903
|
+
monospace;
|
|
3904
|
+
font-size: 0.875rem;
|
|
3905
|
+
line-height: 1.5;
|
|
3906
|
+
overflow-x: auto;
|
|
3907
|
+
white-space: pre-wrap;
|
|
3908
|
+
`;
|
|
3909
|
+
var inlineCodeStyles = import_react10.css`
|
|
3910
|
+
background-color: var(--surface-neutral);
|
|
3911
|
+
color: var(--text-primary);
|
|
3912
|
+
font-weight: 500;
|
|
3913
|
+
padding: var(--spacing-1) var(--spacing-2);
|
|
3914
|
+
border-radius: var(--radius-md);
|
|
3915
|
+
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro',
|
|
3916
|
+
monospace;
|
|
3917
|
+
font-size: 0.9em;
|
|
3918
|
+
`;
|
|
3919
|
+
var tableWrapperStyles = import_react10.css`
|
|
3920
|
+
@media (max-width: 768px) {
|
|
3921
|
+
overflow-x: auto;
|
|
3922
|
+
-webkit-overflow-scrolling: touch;
|
|
3923
|
+
margin: var(--spacing-4) calc(-1 * var(--spacing-3));
|
|
3924
|
+
padding: 0 var(--spacing-3);
|
|
3925
|
+
}
|
|
3709
3926
|
`;
|
|
3710
|
-
|
|
3927
|
+
|
|
3928
|
+
// src/MarkdownContent/MarkdownContent.tsx
|
|
3929
|
+
var import_jsx_runtime202 = require("@emotion/react/jsx-runtime");
|
|
3930
|
+
var CodeBlock = ({
|
|
3931
|
+
children,
|
|
3932
|
+
className,
|
|
3933
|
+
enableCopy = true
|
|
3934
|
+
}) => {
|
|
3935
|
+
const [isHovered, setIsHovered] = (0, import_react11.useState)(false);
|
|
3936
|
+
const [copySuccess, setCopySuccess] = (0, import_react11.useState)(false);
|
|
3937
|
+
const language = (className == null ? void 0 : className.replace("language-", "")) || "text";
|
|
3938
|
+
const handleCopy = async () => {
|
|
3939
|
+
try {
|
|
3940
|
+
await navigator.clipboard.writeText(children);
|
|
3941
|
+
setCopySuccess(true);
|
|
3942
|
+
setTimeout(() => setCopySuccess(false), 2e3);
|
|
3943
|
+
} catch (err) {
|
|
3944
|
+
console.error("Failed to copy text: ", err);
|
|
3945
|
+
}
|
|
3946
|
+
};
|
|
3947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(
|
|
3948
|
+
"div",
|
|
3949
|
+
{
|
|
3950
|
+
css: codeBlockStyles,
|
|
3951
|
+
onMouseEnter: () => setIsHovered(true),
|
|
3952
|
+
onMouseLeave: () => setIsHovered(false),
|
|
3953
|
+
children: [
|
|
3954
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("div", { css: codeBlockHeaderStyles, children: [
|
|
3955
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)("span", { css: codeBlockLanguageStyles, children: language }),
|
|
3956
|
+
enableCopy && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3957
|
+
"button",
|
|
3958
|
+
{
|
|
3959
|
+
onClick: handleCopy,
|
|
3960
|
+
css: getCodeBlockCopyButtonStyles(isHovered, copySuccess),
|
|
3961
|
+
children: copySuccess ? "Copied!" : "Copy"
|
|
3962
|
+
}
|
|
3963
|
+
)
|
|
3964
|
+
] }),
|
|
3965
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)("pre", { css: codeBlockPreStyles, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("code", { children }) })
|
|
3966
|
+
]
|
|
3967
|
+
}
|
|
3968
|
+
);
|
|
3969
|
+
};
|
|
3970
|
+
var InlineCode = ({ children }) => {
|
|
3971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("code", { css: inlineCodeStyles, children });
|
|
3972
|
+
};
|
|
3973
|
+
var TableWrapper = ({
|
|
3974
|
+
children
|
|
3975
|
+
}) => {
|
|
3976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("div", { css: tableWrapperStyles, children });
|
|
3977
|
+
};
|
|
3978
|
+
var MarkdownContent = ({
|
|
3979
|
+
content,
|
|
3980
|
+
className,
|
|
3981
|
+
enableCodeCopy = true
|
|
3982
|
+
}) => {
|
|
3983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("div", { className, css: markdownContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3984
|
+
import_markdown_to_jsx.default,
|
|
3985
|
+
{
|
|
3986
|
+
options: {
|
|
3987
|
+
overrides: {
|
|
3988
|
+
// Headings - use design system Heading component with spacing
|
|
3989
|
+
h1: {
|
|
3990
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3991
|
+
Heading_default,
|
|
3992
|
+
{
|
|
3993
|
+
size: "lg",
|
|
3994
|
+
as: "h1",
|
|
3995
|
+
css: {
|
|
3996
|
+
"&:not(:first-child)": { marginTop: "var(--spacing-6)" },
|
|
3997
|
+
"& + *": { marginTop: "var(--spacing-3)" }
|
|
3998
|
+
},
|
|
3999
|
+
children
|
|
4000
|
+
}
|
|
4001
|
+
)
|
|
4002
|
+
},
|
|
4003
|
+
h2: {
|
|
4004
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
4005
|
+
Heading_default,
|
|
4006
|
+
{
|
|
4007
|
+
size: "md",
|
|
4008
|
+
as: "h2",
|
|
4009
|
+
css: {
|
|
4010
|
+
"&:not(:first-child)": { marginTop: "var(--spacing-6)" },
|
|
4011
|
+
"& + *": { marginTop: "var(--spacing-3)" }
|
|
4012
|
+
},
|
|
4013
|
+
children
|
|
4014
|
+
}
|
|
4015
|
+
)
|
|
4016
|
+
},
|
|
4017
|
+
h3: {
|
|
4018
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
4019
|
+
Heading_default,
|
|
4020
|
+
{
|
|
4021
|
+
size: "sm",
|
|
4022
|
+
as: "h3",
|
|
4023
|
+
css: {
|
|
4024
|
+
"&:not(:first-child)": { marginTop: "var(--spacing-5)" },
|
|
4025
|
+
"& + *": { marginTop: "var(--spacing-3)" }
|
|
4026
|
+
},
|
|
4027
|
+
children
|
|
4028
|
+
}
|
|
4029
|
+
)
|
|
4030
|
+
},
|
|
4031
|
+
h4: {
|
|
4032
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
4033
|
+
Heading_default,
|
|
4034
|
+
{
|
|
4035
|
+
size: "xs",
|
|
4036
|
+
as: "h4",
|
|
4037
|
+
css: {
|
|
4038
|
+
"&:not(:first-child)": { marginTop: "var(--spacing-5)" },
|
|
4039
|
+
"& + *": { marginTop: "var(--spacing-3)" }
|
|
4040
|
+
},
|
|
4041
|
+
children
|
|
4042
|
+
}
|
|
4043
|
+
)
|
|
4044
|
+
},
|
|
4045
|
+
h5: {
|
|
4046
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
4047
|
+
Heading_default,
|
|
4048
|
+
{
|
|
4049
|
+
size: "2xs",
|
|
4050
|
+
as: "h5",
|
|
4051
|
+
css: {
|
|
4052
|
+
"&:not(:first-child)": { marginTop: "var(--spacing-5)" },
|
|
4053
|
+
"& + *": { marginTop: "var(--spacing-3)" }
|
|
4054
|
+
},
|
|
4055
|
+
children
|
|
4056
|
+
}
|
|
4057
|
+
)
|
|
4058
|
+
},
|
|
4059
|
+
h6: {
|
|
4060
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
4061
|
+
Heading_default,
|
|
4062
|
+
{
|
|
4063
|
+
size: "2xs",
|
|
4064
|
+
as: "h6",
|
|
4065
|
+
css: {
|
|
4066
|
+
"&:not(:first-child)": { marginTop: "var(--spacing-5)" },
|
|
4067
|
+
"& + *": { marginTop: "var(--spacing-3)" }
|
|
4068
|
+
},
|
|
4069
|
+
children
|
|
4070
|
+
}
|
|
4071
|
+
)
|
|
4072
|
+
},
|
|
4073
|
+
// Paragraphs - use design system Text component with spacing
|
|
4074
|
+
p: {
|
|
4075
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
4076
|
+
Text_default,
|
|
4077
|
+
{
|
|
4078
|
+
size: "md",
|
|
4079
|
+
css: {
|
|
4080
|
+
"&:not(:first-child)": { marginTop: "var(--spacing-4)" }
|
|
4081
|
+
},
|
|
4082
|
+
children
|
|
4083
|
+
}
|
|
4084
|
+
)
|
|
4085
|
+
},
|
|
4086
|
+
// Override pre tag for code blocks
|
|
4087
|
+
pre: {
|
|
4088
|
+
component: ({
|
|
4089
|
+
children
|
|
4090
|
+
}) => {
|
|
4091
|
+
const codeElement = import_react11.default.Children.only(
|
|
4092
|
+
children
|
|
4093
|
+
);
|
|
4094
|
+
const codeProps = (codeElement == null ? void 0 : codeElement.props) || {};
|
|
4095
|
+
const codeClassName = codeProps.className || "";
|
|
4096
|
+
const codeChildren = codeProps.children || "";
|
|
4097
|
+
const match = /lang-(\w+)/.exec(codeClassName);
|
|
4098
|
+
const language = match ? match[1] : "text";
|
|
4099
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
4100
|
+
CodeBlock,
|
|
4101
|
+
{
|
|
4102
|
+
className: `language-${language}`,
|
|
4103
|
+
enableCopy: enableCodeCopy,
|
|
4104
|
+
children: String(codeChildren).replace(/\n$/, "")
|
|
4105
|
+
}
|
|
4106
|
+
);
|
|
4107
|
+
}
|
|
4108
|
+
},
|
|
4109
|
+
// Override code tag for inline code only
|
|
4110
|
+
code: {
|
|
4111
|
+
component: ({ children }) => {
|
|
4112
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(InlineCode, { children });
|
|
4113
|
+
}
|
|
4114
|
+
},
|
|
4115
|
+
table: {
|
|
4116
|
+
component: ({
|
|
4117
|
+
children,
|
|
4118
|
+
...props
|
|
4119
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(TableWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("table", { ...props, children }) })
|
|
4120
|
+
}
|
|
4121
|
+
}
|
|
4122
|
+
},
|
|
4123
|
+
children: content
|
|
4124
|
+
}
|
|
4125
|
+
) });
|
|
4126
|
+
};
|
|
4127
|
+
var MarkdownContent_default = MarkdownContent;
|
|
4128
|
+
|
|
4129
|
+
// src/AIResponse/AIResponse.styles.ts
|
|
4130
|
+
var import_react12 = require("@emotion/react");
|
|
4131
|
+
var getBannerStyles = (variant) => import_react12.css`
|
|
3711
4132
|
background-color: ${variant === "error" ? "var(--surface-error)" : "var(--surface-neutral)"};
|
|
3712
4133
|
border: ${variant === "error" ? "1px solid var(--border-error)" : "none"};
|
|
3713
4134
|
border-radius: var(--radius-lg);
|
|
@@ -3717,57 +4138,166 @@ var getBannerStyles = (variant) => import_react10.css`
|
|
|
3717
4138
|
gap: var(--spacing-5);
|
|
3718
4139
|
min-width: 335px;
|
|
3719
4140
|
`;
|
|
3720
|
-
var footerStyles =
|
|
4141
|
+
var footerStyles = import_react12.css`
|
|
3721
4142
|
display: flex;
|
|
3722
4143
|
gap: var(--spacing-4);
|
|
3723
4144
|
align-items: center;
|
|
3724
4145
|
`;
|
|
3725
|
-
var actionsStyles =
|
|
4146
|
+
var actionsStyles = import_react12.css`
|
|
3726
4147
|
display: flex;
|
|
3727
4148
|
align-items: center;
|
|
3728
4149
|
gap: var(--spacing-2);
|
|
3729
4150
|
`;
|
|
3730
|
-
var errorRetryStyles =
|
|
4151
|
+
var errorRetryStyles = import_react12.css`
|
|
3731
4152
|
display: flex;
|
|
3732
4153
|
align-items: center;
|
|
3733
4154
|
`;
|
|
3734
4155
|
|
|
3735
|
-
// src/AIResponse/
|
|
3736
|
-
var
|
|
3737
|
-
var
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
4156
|
+
// src/AIResponse/components/TopMatchingFieldNote/TopMatchingFieldNote.styles.ts
|
|
4157
|
+
var import_react13 = require("@emotion/react");
|
|
4158
|
+
var imageStyles = import_react13.css`
|
|
4159
|
+
width: 100%;
|
|
4160
|
+
height: 275px;
|
|
4161
|
+
border-radius: var(--radius-lg);
|
|
4162
|
+
background-size: cover;
|
|
4163
|
+
background-position: center;
|
|
4164
|
+
`;
|
|
4165
|
+
|
|
4166
|
+
// src/AIResponse/components/TopMatchingFieldNote/TopMatchingFieldNote.tsx
|
|
4167
|
+
var import_jsx_runtime203 = require("@emotion/react/jsx-runtime");
|
|
4168
|
+
var TopMatchingFieldNote = ({
|
|
4169
|
+
author,
|
|
4170
|
+
datePosted,
|
|
4171
|
+
content,
|
|
4172
|
+
images,
|
|
4173
|
+
title = "Top matching field note",
|
|
4174
|
+
className
|
|
3748
4175
|
}) => {
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
4176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
4177
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", color: "var(--text-primary)", children: title }),
|
|
4178
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(
|
|
4179
|
+
Box_default,
|
|
4180
|
+
{
|
|
4181
|
+
display: "flex",
|
|
4182
|
+
flexDirection: "column",
|
|
4183
|
+
gap: "var(--spacing-4)",
|
|
4184
|
+
bg: "var(--surface-neutral)",
|
|
4185
|
+
borderRadius: "var(--radius-lg)",
|
|
4186
|
+
p: "var(--spacing-4)",
|
|
4187
|
+
minWidth: "335px",
|
|
4188
|
+
className,
|
|
4189
|
+
children: [
|
|
4190
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: content }),
|
|
4191
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
4192
|
+
"div",
|
|
4193
|
+
{
|
|
4194
|
+
css: imageStyles,
|
|
4195
|
+
style: {
|
|
4196
|
+
backgroundImage: `url('${images[0]}')`
|
|
4197
|
+
}
|
|
4198
|
+
}
|
|
4199
|
+
),
|
|
4200
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
4201
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsx)(Icon_default, { variant: "IconFieldNotesUpdates", size: "large" }),
|
|
4202
|
+
/* @__PURE__ */ (0, import_jsx_runtime203.jsxs)(Text_default, { size: "xs", color: "var(--text-primary)", children: [
|
|
4203
|
+
author,
|
|
4204
|
+
" shared an update \u2022 ",
|
|
4205
|
+
datePosted
|
|
4206
|
+
] })
|
|
4207
|
+
] })
|
|
4208
|
+
]
|
|
4209
|
+
}
|
|
4210
|
+
)
|
|
4211
|
+
] });
|
|
4212
|
+
};
|
|
4213
|
+
|
|
4214
|
+
// src/AIResponse/components/TopMatchingReview/TopMatchingReview.tsx
|
|
4215
|
+
var import_jsx_runtime204 = require("@emotion/react/jsx-runtime");
|
|
4216
|
+
var TopMatchingReview = ({
|
|
4217
|
+
author,
|
|
4218
|
+
datePosted,
|
|
4219
|
+
rating,
|
|
4220
|
+
content,
|
|
4221
|
+
title = "Top matching review",
|
|
4222
|
+
className
|
|
4223
|
+
}) => {
|
|
4224
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
4225
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", color: "var(--text-primary)", children: title }),
|
|
4226
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(
|
|
4227
|
+
Box_default,
|
|
4228
|
+
{
|
|
4229
|
+
display: "flex",
|
|
4230
|
+
flexDirection: "column",
|
|
4231
|
+
gap: "var(--spacing-4)",
|
|
4232
|
+
bg: "var(--surface-neutral)",
|
|
4233
|
+
borderRadius: "var(--radius-lg)",
|
|
4234
|
+
p: "var(--spacing-4)",
|
|
4235
|
+
minWidth: "335px",
|
|
4236
|
+
className,
|
|
4237
|
+
children: [
|
|
4238
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: content }),
|
|
4239
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
4240
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(Icon_default, { variant: "StarSolid", size: "large" }),
|
|
4241
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsxs)(Text_default, { size: "xs", color: "var(--text-primary)", children: [
|
|
4242
|
+
"This review was posted by ",
|
|
4243
|
+
author,
|
|
4244
|
+
" on ",
|
|
4245
|
+
datePosted,
|
|
4246
|
+
" \u2022 ",
|
|
4247
|
+
rating,
|
|
4248
|
+
"/5 Rating"
|
|
4249
|
+
] })
|
|
4250
|
+
] })
|
|
4251
|
+
]
|
|
4252
|
+
}
|
|
4253
|
+
)
|
|
4254
|
+
] });
|
|
4255
|
+
};
|
|
4256
|
+
|
|
4257
|
+
// src/AIResponse/AIResponse.tsx
|
|
4258
|
+
var import_jsx_runtime205 = require("@emotion/react/jsx-runtime");
|
|
4259
|
+
var AIResponse = ({
|
|
4260
|
+
title = `Here's what I found`,
|
|
4261
|
+
showDisclaimer = true,
|
|
4262
|
+
showHelpfulQuestion = true,
|
|
4263
|
+
className,
|
|
4264
|
+
children,
|
|
4265
|
+
onHelpfulYes,
|
|
4266
|
+
onHelpfulNo,
|
|
4267
|
+
variant = "default",
|
|
4268
|
+
onErrorRetry,
|
|
4269
|
+
helpfulDebounceMs = 1e3,
|
|
4270
|
+
markdown = false,
|
|
4271
|
+
enableCodeCopy = true,
|
|
4272
|
+
topMatchingReview,
|
|
4273
|
+
topMatchingReviewTitle = "Top matching review",
|
|
4274
|
+
topMatchingFieldNote,
|
|
4275
|
+
topMatchingFieldNoteTitle = "Top matching field note",
|
|
4276
|
+
contactLandownerUrl,
|
|
4277
|
+
contactLandownerButtonText = "Contact Landowner"
|
|
4278
|
+
}) => {
|
|
4279
|
+
const [visualHelpful, setVisualHelpful] = (0, import_react14.useState)(
|
|
4280
|
+
void 0
|
|
4281
|
+
);
|
|
4282
|
+
const debounceTimerRef = (0, import_react14.useRef)(null);
|
|
4283
|
+
const DEBOUNCE_MS = helpfulDebounceMs;
|
|
4284
|
+
const scheduleCallback = (next) => {
|
|
4285
|
+
if (debounceTimerRef.current) {
|
|
4286
|
+
clearTimeout(debounceTimerRef.current);
|
|
4287
|
+
debounceTimerRef.current = null;
|
|
4288
|
+
}
|
|
4289
|
+
if (next === "yes" || next === "no") {
|
|
4290
|
+
debounceTimerRef.current = window.setTimeout(() => {
|
|
4291
|
+
if (next === "yes")
|
|
4292
|
+
onHelpfulYes == null ? void 0 : onHelpfulYes();
|
|
4293
|
+
else
|
|
4294
|
+
onHelpfulNo == null ? void 0 : onHelpfulNo();
|
|
4295
|
+
debounceTimerRef.current = null;
|
|
4296
|
+
}, DEBOUNCE_MS);
|
|
4297
|
+
}
|
|
4298
|
+
};
|
|
4299
|
+
const handleHelpfulYes = () => {
|
|
4300
|
+
const next = visualHelpful === "yes" ? void 0 : "yes";
|
|
3771
4301
|
setVisualHelpful(next);
|
|
3772
4302
|
scheduleCallback(next);
|
|
3773
4303
|
};
|
|
@@ -3776,101 +4306,137 @@ var AIResponse = ({
|
|
|
3776
4306
|
setVisualHelpful(next);
|
|
3777
4307
|
scheduleCallback(next);
|
|
3778
4308
|
};
|
|
3779
|
-
(0,
|
|
4309
|
+
(0, import_react14.useEffect)(() => {
|
|
3780
4310
|
return () => {
|
|
3781
4311
|
if (debounceTimerRef.current) {
|
|
3782
4312
|
clearTimeout(debounceTimerRef.current);
|
|
3783
4313
|
}
|
|
3784
4314
|
};
|
|
3785
4315
|
}, []);
|
|
3786
|
-
return /* @__PURE__ */ (0,
|
|
3787
|
-
|
|
3788
|
-
|
|
3789
|
-
|
|
3790
|
-
|
|
3791
|
-
|
|
3792
|
-
|
|
3793
|
-
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
4316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(
|
|
4317
|
+
Box_default,
|
|
4318
|
+
{
|
|
4319
|
+
className,
|
|
4320
|
+
display: "flex",
|
|
4321
|
+
flexDirection: "column",
|
|
4322
|
+
gap: "var(--spacing-4)",
|
|
4323
|
+
children: [
|
|
4324
|
+
variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", color: "var(--text-primary)", children: title }),
|
|
4325
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { css: getBannerStyles(variant), children: [
|
|
4326
|
+
variant === "error" ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: "An error occurred while generating your summary. Please try again." }) : markdown && typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(MarkdownContent_default, { content: children, enableCodeCopy }) : /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children }),
|
|
4327
|
+
contactLandownerUrl && variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4328
|
+
Button_default,
|
|
4329
|
+
{
|
|
4330
|
+
variant: "primary",
|
|
4331
|
+
size: "base",
|
|
4332
|
+
as: "a",
|
|
4333
|
+
href: contactLandownerUrl,
|
|
4334
|
+
target: "_blank",
|
|
4335
|
+
rel: "noopener noreferrer",
|
|
4336
|
+
style: { alignSelf: "flex-start" },
|
|
4337
|
+
children: contactLandownerButtonText
|
|
4338
|
+
}
|
|
4339
|
+
),
|
|
4340
|
+
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4341
|
+
IconLabel_default,
|
|
4342
|
+
{
|
|
4343
|
+
variant: "AiMagic",
|
|
4344
|
+
label: "This AI summary was generated from the property information from this package. This answer may display incorrect information.",
|
|
4345
|
+
iconSize: "large"
|
|
4346
|
+
}
|
|
4347
|
+
),
|
|
4348
|
+
variant === "error" && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { css: errorRetryStyles, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Button_default, { variant: "secondary", size: "xs", onClick: onErrorRetry, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(IconLabel_default, { variant: "ArrowRotateLeft", label: "Try Again" }) }) })
|
|
4349
|
+
] }),
|
|
4350
|
+
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { css: footerStyles, children: [
|
|
4351
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: "Was this helpful?" }),
|
|
4352
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { css: actionsStyles, children: [
|
|
4353
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4354
|
+
Button_default,
|
|
4355
|
+
{
|
|
4356
|
+
variant: "text",
|
|
4357
|
+
size: "xs",
|
|
4358
|
+
onClick: handleHelpfulYes,
|
|
4359
|
+
"aria-pressed": visualHelpful === "yes",
|
|
4360
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4361
|
+
IconLabel_default,
|
|
4362
|
+
{
|
|
4363
|
+
variant: visualHelpful === "yes" ? "ThumbsUpSolid" : "ThumbsUp",
|
|
4364
|
+
label: "Yes"
|
|
4365
|
+
}
|
|
4366
|
+
)
|
|
4367
|
+
}
|
|
4368
|
+
),
|
|
4369
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4370
|
+
Button_default,
|
|
3812
4371
|
{
|
|
3813
|
-
variant:
|
|
3814
|
-
|
|
4372
|
+
variant: "text",
|
|
4373
|
+
size: "xs",
|
|
4374
|
+
onClick: handleHelpfulNo,
|
|
4375
|
+
"aria-pressed": visualHelpful === "no",
|
|
4376
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4377
|
+
IconLabel_default,
|
|
4378
|
+
{
|
|
4379
|
+
variant: visualHelpful === "no" ? "ThumbsDownSolid" : "ThumbsDown",
|
|
4380
|
+
label: "No"
|
|
4381
|
+
}
|
|
4382
|
+
)
|
|
3815
4383
|
}
|
|
3816
4384
|
)
|
|
4385
|
+
] })
|
|
4386
|
+
] }),
|
|
4387
|
+
topMatchingReview && variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4388
|
+
TopMatchingReview,
|
|
4389
|
+
{
|
|
4390
|
+
...topMatchingReview,
|
|
4391
|
+
title: topMatchingReviewTitle
|
|
3817
4392
|
}
|
|
3818
4393
|
),
|
|
3819
|
-
/* @__PURE__ */ (0,
|
|
3820
|
-
|
|
4394
|
+
topMatchingFieldNote && variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4395
|
+
TopMatchingFieldNote,
|
|
3821
4396
|
{
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
onClick: handleHelpfulNo,
|
|
3825
|
-
"aria-pressed": visualHelpful === "no",
|
|
3826
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3827
|
-
IconLabel_default,
|
|
3828
|
-
{
|
|
3829
|
-
variant: visualHelpful === "no" ? "ThumbsDownSolid" : "ThumbsDown",
|
|
3830
|
-
label: "No"
|
|
3831
|
-
}
|
|
3832
|
-
)
|
|
4397
|
+
...topMatchingFieldNote,
|
|
4398
|
+
title: topMatchingFieldNoteTitle
|
|
3833
4399
|
}
|
|
3834
4400
|
)
|
|
3835
|
-
]
|
|
3836
|
-
|
|
3837
|
-
|
|
4401
|
+
]
|
|
4402
|
+
}
|
|
4403
|
+
);
|
|
3838
4404
|
};
|
|
3839
4405
|
var AIResponse_default = AIResponse;
|
|
3840
4406
|
|
|
3841
4407
|
// src/AvailabilityBadge/AvailabilityBadge.styles.ts
|
|
3842
|
-
var
|
|
4408
|
+
var import_react15 = require("@emotion/react");
|
|
3843
4409
|
var availabilityBadgeVariantStyles = {
|
|
3844
|
-
primary:
|
|
4410
|
+
primary: import_react15.css`
|
|
3845
4411
|
background-color: var(--color-primary-100);
|
|
3846
4412
|
color: var(--text-primary);
|
|
3847
4413
|
`,
|
|
3848
|
-
error:
|
|
4414
|
+
error: import_react15.css`
|
|
3849
4415
|
background-color: var(--surface-error);
|
|
3850
4416
|
color: var(--text-error);
|
|
3851
4417
|
`,
|
|
3852
|
-
action:
|
|
4418
|
+
action: import_react15.css`
|
|
3853
4419
|
background-color: var(--surface-action-2);
|
|
3854
4420
|
color: var(--text-primary);
|
|
3855
4421
|
`,
|
|
3856
|
-
warning:
|
|
4422
|
+
warning: import_react15.css`
|
|
3857
4423
|
background-color: var(--color-brown-200);
|
|
3858
4424
|
color: var(--text-primary);
|
|
3859
4425
|
`,
|
|
3860
|
-
neutral:
|
|
4426
|
+
neutral: import_react15.css`
|
|
3861
4427
|
background-color: var(--surface-neutral);
|
|
3862
4428
|
color: var(--text-primary);
|
|
3863
4429
|
`
|
|
3864
4430
|
};
|
|
3865
4431
|
|
|
3866
4432
|
// src/AvailabilityBadge/AvailabilityBadge.tsx
|
|
3867
|
-
var
|
|
4433
|
+
var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
|
|
3868
4434
|
var AvailabilityBadge = ({
|
|
3869
4435
|
children,
|
|
3870
4436
|
variant,
|
|
3871
4437
|
className
|
|
3872
4438
|
}) => {
|
|
3873
|
-
return /* @__PURE__ */ (0,
|
|
4439
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
3874
4440
|
Box_default,
|
|
3875
4441
|
{
|
|
3876
4442
|
display: "inline-flex",
|
|
@@ -3880,47 +4446,47 @@ var AvailabilityBadge = ({
|
|
|
3880
4446
|
borderRadius: "var(--spacing-2)",
|
|
3881
4447
|
css: availabilityBadgeVariantStyles[variant],
|
|
3882
4448
|
className,
|
|
3883
|
-
children: /* @__PURE__ */ (0,
|
|
4449
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(Text_default, { size: "xs", fontWeight: "bold", children })
|
|
3884
4450
|
}
|
|
3885
4451
|
);
|
|
3886
4452
|
};
|
|
3887
4453
|
var AvailabilityBadge_default = AvailabilityBadge;
|
|
3888
4454
|
|
|
3889
4455
|
// src/Avatar/Avatar.tsx
|
|
3890
|
-
var
|
|
3891
|
-
var
|
|
4456
|
+
var import_react17 = require("@emotion/react");
|
|
4457
|
+
var import_react18 = require("react");
|
|
3892
4458
|
|
|
3893
4459
|
// src/Avatar/Avatar.styles.ts
|
|
3894
|
-
var
|
|
4460
|
+
var import_react16 = require("@emotion/react");
|
|
3895
4461
|
var avatarSizeStyles = {
|
|
3896
|
-
xs:
|
|
4462
|
+
xs: import_react16.css`
|
|
3897
4463
|
width: 24px;
|
|
3898
4464
|
height: 24px;
|
|
3899
4465
|
`,
|
|
3900
|
-
sm:
|
|
4466
|
+
sm: import_react16.css`
|
|
3901
4467
|
width: 32px;
|
|
3902
4468
|
height: 32px;
|
|
3903
4469
|
`,
|
|
3904
|
-
md:
|
|
4470
|
+
md: import_react16.css`
|
|
3905
4471
|
width: 60px;
|
|
3906
4472
|
height: 60px;
|
|
3907
4473
|
`,
|
|
3908
|
-
lg:
|
|
4474
|
+
lg: import_react16.css`
|
|
3909
4475
|
width: 80px;
|
|
3910
4476
|
height: 80px;
|
|
3911
4477
|
`,
|
|
3912
|
-
xl:
|
|
4478
|
+
xl: import_react16.css`
|
|
3913
4479
|
width: 120px;
|
|
3914
4480
|
height: 120px;
|
|
3915
4481
|
`
|
|
3916
4482
|
};
|
|
3917
|
-
var avatarBaseStyles =
|
|
4483
|
+
var avatarBaseStyles = import_react16.css`
|
|
3918
4484
|
border-radius: 50%;
|
|
3919
4485
|
object-fit: cover;
|
|
3920
4486
|
border: 1px solid var(--color-neutral-200);
|
|
3921
4487
|
display: block;
|
|
3922
4488
|
`;
|
|
3923
|
-
var avatarTextStyles =
|
|
4489
|
+
var avatarTextStyles = import_react16.css`
|
|
3924
4490
|
border-radius: 50%;
|
|
3925
4491
|
border: 1px solid var(--color-neutral-200);
|
|
3926
4492
|
background-color: var(--surface-action);
|
|
@@ -3931,7 +4497,7 @@ var avatarTextStyles = import_react13.css`
|
|
|
3931
4497
|
font-weight: bold;
|
|
3932
4498
|
user-select: none;
|
|
3933
4499
|
`;
|
|
3934
|
-
var avatarFallbackStyles =
|
|
4500
|
+
var avatarFallbackStyles = import_react16.css`
|
|
3935
4501
|
border-radius: 50%;
|
|
3936
4502
|
border: 1px solid var(--color-neutral-200);
|
|
3937
4503
|
background-color: var(--color-neutral-100);
|
|
@@ -3942,7 +4508,7 @@ var avatarFallbackStyles = import_react13.css`
|
|
|
3942
4508
|
`;
|
|
3943
4509
|
|
|
3944
4510
|
// src/Avatar/Avatar.tsx
|
|
3945
|
-
var
|
|
4511
|
+
var import_jsx_runtime207 = require("@emotion/react/jsx-runtime");
|
|
3946
4512
|
var Avatar = ({
|
|
3947
4513
|
type = "image",
|
|
3948
4514
|
src,
|
|
@@ -3951,7 +4517,7 @@ var Avatar = ({
|
|
|
3951
4517
|
size = "md",
|
|
3952
4518
|
className
|
|
3953
4519
|
}) => {
|
|
3954
|
-
const [hasImageError, setHasImageError] = (0,
|
|
4520
|
+
const [hasImageError, setHasImageError] = (0, import_react18.useState)(false);
|
|
3955
4521
|
const handleImageError = () => {
|
|
3956
4522
|
setHasImageError(true);
|
|
3957
4523
|
};
|
|
@@ -3992,7 +4558,7 @@ var Avatar = ({
|
|
|
3992
4558
|
};
|
|
3993
4559
|
if (type === "text" && text) {
|
|
3994
4560
|
const initials = getInitials(text);
|
|
3995
|
-
return /* @__PURE__ */ (0,
|
|
4561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
3996
4562
|
"div",
|
|
3997
4563
|
{
|
|
3998
4564
|
css: [
|
|
@@ -4007,7 +4573,7 @@ var Avatar = ({
|
|
|
4007
4573
|
);
|
|
4008
4574
|
}
|
|
4009
4575
|
if (type === "image" && src && !hasImageError) {
|
|
4010
|
-
return /* @__PURE__ */ (0,
|
|
4576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4011
4577
|
"img",
|
|
4012
4578
|
{
|
|
4013
4579
|
src,
|
|
@@ -4018,18 +4584,18 @@ var Avatar = ({
|
|
|
4018
4584
|
}
|
|
4019
4585
|
);
|
|
4020
4586
|
}
|
|
4021
|
-
return /* @__PURE__ */ (0,
|
|
4587
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4022
4588
|
"div",
|
|
4023
4589
|
{
|
|
4024
4590
|
css: [avatarFallbackStyles, avatarSizeStyles[size]],
|
|
4025
4591
|
className,
|
|
4026
4592
|
title: alt,
|
|
4027
|
-
children: /* @__PURE__ */ (0,
|
|
4593
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4028
4594
|
Icon_default,
|
|
4029
4595
|
{
|
|
4030
4596
|
variant: "User",
|
|
4031
4597
|
size: getIconSize(size),
|
|
4032
|
-
css: size === "lg" ?
|
|
4598
|
+
css: size === "lg" ? import_react17.css`
|
|
4033
4599
|
width: 28px;
|
|
4034
4600
|
height: 28px;
|
|
4035
4601
|
` : void 0
|
|
@@ -4041,15 +4607,15 @@ var Avatar = ({
|
|
|
4041
4607
|
var Avatar_default = Avatar;
|
|
4042
4608
|
|
|
4043
4609
|
// src/ChatWidget/ChatWidget.tsx
|
|
4044
|
-
var
|
|
4610
|
+
var import_react28 = __toESM(require("react"));
|
|
4045
4611
|
|
|
4046
4612
|
// src/Divider/Divider.tsx
|
|
4047
4613
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
4048
4614
|
var import_styled_system2 = require("styled-system");
|
|
4049
4615
|
|
|
4050
4616
|
// src/Divider/Divider.styles.ts
|
|
4051
|
-
var
|
|
4052
|
-
var dividerStyles =
|
|
4617
|
+
var import_react19 = require("@emotion/react");
|
|
4618
|
+
var dividerStyles = import_react19.css`
|
|
4053
4619
|
width: 100%;
|
|
4054
4620
|
height: 1px;
|
|
4055
4621
|
border: 0;
|
|
@@ -4057,28 +4623,28 @@ var dividerStyles = import_react16.css`
|
|
|
4057
4623
|
`;
|
|
4058
4624
|
|
|
4059
4625
|
// src/Divider/Divider.tsx
|
|
4060
|
-
var
|
|
4626
|
+
var import_jsx_runtime208 = require("@emotion/react/jsx-runtime");
|
|
4061
4627
|
var StyledHr = import_styled4.default.hr`
|
|
4062
4628
|
${dividerStyles}
|
|
4063
4629
|
${import_styled_system2.space}
|
|
4064
4630
|
`;
|
|
4065
4631
|
var Divider = ({ className, ...rest }) => {
|
|
4066
|
-
return /* @__PURE__ */ (0,
|
|
4632
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(StyledHr, { className, ...rest });
|
|
4067
4633
|
};
|
|
4068
4634
|
var Divider_default = Divider;
|
|
4069
4635
|
|
|
4070
4636
|
// src/Form/TextArea.tsx
|
|
4071
|
-
var
|
|
4072
|
-
var
|
|
4637
|
+
var import_react21 = require("@emotion/react");
|
|
4638
|
+
var import_react22 = require("react");
|
|
4073
4639
|
|
|
4074
4640
|
// src/Form/TextArea.styles.ts
|
|
4075
|
-
var
|
|
4076
|
-
var wrapperStyles =
|
|
4641
|
+
var import_react20 = require("@emotion/react");
|
|
4642
|
+
var wrapperStyles = import_react20.css`
|
|
4077
4643
|
position: relative;
|
|
4078
4644
|
display: inline-block;
|
|
4079
4645
|
width: 100%;
|
|
4080
4646
|
`;
|
|
4081
|
-
var textareaBase =
|
|
4647
|
+
var textareaBase = import_react20.css`
|
|
4082
4648
|
width: 100%;
|
|
4083
4649
|
box-sizing: border-box;
|
|
4084
4650
|
font: inherit;
|
|
@@ -4112,32 +4678,32 @@ var textareaBase = import_react17.css`
|
|
|
4112
4678
|
cursor: default;
|
|
4113
4679
|
}
|
|
4114
4680
|
`;
|
|
4115
|
-
var variantError =
|
|
4681
|
+
var variantError = import_react20.css`
|
|
4116
4682
|
border-color: var(--border-error);
|
|
4117
4683
|
&:focus {
|
|
4118
4684
|
border-color: var(--border-error);
|
|
4119
4685
|
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
4120
4686
|
}
|
|
4121
4687
|
`;
|
|
4122
|
-
var variantSuccess =
|
|
4688
|
+
var variantSuccess = import_react20.css`
|
|
4123
4689
|
border-color: var(--color-success-500);
|
|
4124
4690
|
&:focus {
|
|
4125
4691
|
border-color: var(--color-success-500);
|
|
4126
4692
|
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
4127
4693
|
}
|
|
4128
4694
|
`;
|
|
4129
|
-
var submitButtonContainer =
|
|
4695
|
+
var submitButtonContainer = import_react20.css`
|
|
4130
4696
|
position: absolute;
|
|
4131
4697
|
right: var(--spacing-4);
|
|
4132
4698
|
bottom: var(--spacing-4);
|
|
4133
4699
|
`;
|
|
4134
|
-
var textareaWithSubmit =
|
|
4700
|
+
var textareaWithSubmit = import_react20.css`
|
|
4135
4701
|
padding-right: var(--spacing-16);
|
|
4136
4702
|
`;
|
|
4137
4703
|
|
|
4138
4704
|
// src/Form/TextArea.tsx
|
|
4139
|
-
var
|
|
4140
|
-
var TextArea = (0,
|
|
4705
|
+
var import_jsx_runtime209 = require("@emotion/react/jsx-runtime");
|
|
4706
|
+
var TextArea = (0, import_react22.forwardRef)(
|
|
4141
4707
|
({
|
|
4142
4708
|
rows = 3,
|
|
4143
4709
|
variant = "default",
|
|
@@ -4157,8 +4723,8 @@ var TextArea = (0, import_react19.forwardRef)(
|
|
|
4157
4723
|
submitOnEnter = true,
|
|
4158
4724
|
...props
|
|
4159
4725
|
}, ref) => {
|
|
4160
|
-
const innerRef = (0,
|
|
4161
|
-
(0,
|
|
4726
|
+
const innerRef = (0, import_react22.useRef)(null);
|
|
4727
|
+
(0, import_react22.useEffect)(() => {
|
|
4162
4728
|
const el = innerRef.current;
|
|
4163
4729
|
if (!el || !autoExpand)
|
|
4164
4730
|
return;
|
|
@@ -4194,8 +4760,8 @@ var TextArea = (0, import_react19.forwardRef)(
|
|
|
4194
4760
|
onSubmit();
|
|
4195
4761
|
}
|
|
4196
4762
|
};
|
|
4197
|
-
return /* @__PURE__ */ (0,
|
|
4198
|
-
/* @__PURE__ */ (0,
|
|
4763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { css: wrapperStyles, children: [
|
|
4764
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4199
4765
|
"textarea",
|
|
4200
4766
|
{
|
|
4201
4767
|
ref: (node) => {
|
|
@@ -4212,7 +4778,7 @@ var TextArea = (0, import_react19.forwardRef)(
|
|
|
4212
4778
|
textareaBase,
|
|
4213
4779
|
variant === "error" && variantError,
|
|
4214
4780
|
variant === "success" && variantSuccess,
|
|
4215
|
-
|
|
4781
|
+
import_react21.css`
|
|
4216
4782
|
resize: ${resize};
|
|
4217
4783
|
`,
|
|
4218
4784
|
showSubmit && textareaWithSubmit
|
|
@@ -4225,14 +4791,14 @@ var TextArea = (0, import_react19.forwardRef)(
|
|
|
4225
4791
|
...props
|
|
4226
4792
|
}
|
|
4227
4793
|
),
|
|
4228
|
-
showSubmit && /* @__PURE__ */ (0,
|
|
4794
|
+
showSubmit && /* @__PURE__ */ (0, import_jsx_runtime209.jsx)("div", { css: submitButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4229
4795
|
Button_default,
|
|
4230
4796
|
{
|
|
4231
4797
|
size: "xs",
|
|
4232
4798
|
"aria-label": submitAriaLabel,
|
|
4233
4799
|
onClick: onSubmit,
|
|
4234
4800
|
disabled: disabled || submitDisabled,
|
|
4235
|
-
icon: /* @__PURE__ */ (0,
|
|
4801
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4236
4802
|
Icon_default,
|
|
4237
4803
|
{
|
|
4238
4804
|
variant: "PaperPlane",
|
|
@@ -4249,14 +4815,14 @@ TextArea.displayName = "TextArea";
|
|
|
4249
4815
|
var TextArea_default = TextArea;
|
|
4250
4816
|
|
|
4251
4817
|
// src/MessageBubble/MessageBubble.styles.ts
|
|
4252
|
-
var
|
|
4253
|
-
var getRootStyles = (variant) =>
|
|
4818
|
+
var import_react23 = require("@emotion/react");
|
|
4819
|
+
var getRootStyles = (variant) => import_react23.css`
|
|
4254
4820
|
display: flex;
|
|
4255
4821
|
flex-direction: column;
|
|
4256
4822
|
gap: var(--spacing-1);
|
|
4257
4823
|
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
4258
4824
|
`;
|
|
4259
|
-
var getBubbleStyles = (variant) =>
|
|
4825
|
+
var getBubbleStyles = (variant) => import_react23.css`
|
|
4260
4826
|
max-width: 100%;
|
|
4261
4827
|
width: 100%;
|
|
4262
4828
|
box-sizing: border-box;
|
|
@@ -4273,22 +4839,22 @@ var getBubbleStyles = (variant) => import_react20.css`
|
|
|
4273
4839
|
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
4274
4840
|
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
4275
4841
|
`;
|
|
4276
|
-
var contentStyles =
|
|
4842
|
+
var contentStyles = import_react23.css`
|
|
4277
4843
|
flex: 1 1 auto;
|
|
4278
4844
|
min-width: 1px;
|
|
4279
4845
|
min-height: 1px;
|
|
4280
4846
|
`;
|
|
4281
4847
|
|
|
4282
4848
|
// src/MessageBubble/MessageBubble.tsx
|
|
4283
|
-
var
|
|
4849
|
+
var import_jsx_runtime210 = require("@emotion/react/jsx-runtime");
|
|
4284
4850
|
var MessageBubble = ({
|
|
4285
4851
|
variant = "sent",
|
|
4286
4852
|
timestamp,
|
|
4287
4853
|
className,
|
|
4288
4854
|
children
|
|
4289
4855
|
}) => {
|
|
4290
|
-
return /* @__PURE__ */ (0,
|
|
4291
|
-
timestamp && /* @__PURE__ */ (0,
|
|
4856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { className, css: getRootStyles(variant), children: [
|
|
4857
|
+
timestamp && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
4292
4858
|
Text_default,
|
|
4293
4859
|
{
|
|
4294
4860
|
size: "xs",
|
|
@@ -4297,17 +4863,67 @@ var MessageBubble = ({
|
|
|
4297
4863
|
children: timestamp
|
|
4298
4864
|
}
|
|
4299
4865
|
),
|
|
4300
|
-
/* @__PURE__ */ (0,
|
|
4866
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)("div", { css: getBubbleStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("div", { css: contentStyles, children }) })
|
|
4301
4867
|
] });
|
|
4302
4868
|
};
|
|
4303
4869
|
var MessageBubble_default = MessageBubble;
|
|
4304
4870
|
|
|
4871
|
+
// src/TagChip/TagChip.styles.ts
|
|
4872
|
+
var import_react24 = require("@emotion/react");
|
|
4873
|
+
var tagChipVariantStyles = {
|
|
4874
|
+
primary: import_react24.css`
|
|
4875
|
+
background-color: var(--surface-disabled);
|
|
4876
|
+
border: 1px solid var(--surface-disabled);
|
|
4877
|
+
color: var(--text-primary);
|
|
4878
|
+
`,
|
|
4879
|
+
error: import_react24.css`
|
|
4880
|
+
background-color: var(--surface-error);
|
|
4881
|
+
border: 1px solid var(--color-red-300);
|
|
4882
|
+
color: var(--text-error);
|
|
4883
|
+
`,
|
|
4884
|
+
success: import_react24.css`
|
|
4885
|
+
background-color: var(--surface-success);
|
|
4886
|
+
border: 1px solid var(--color-green-300);
|
|
4887
|
+
color: var(--text-primary);
|
|
4888
|
+
`,
|
|
4889
|
+
warning: import_react24.css`
|
|
4890
|
+
background-color: var(--surface-subtle);
|
|
4891
|
+
border: 1px solid var(--color-brown-200);
|
|
4892
|
+
color: var(--text-primary);
|
|
4893
|
+
`
|
|
4894
|
+
};
|
|
4895
|
+
|
|
4896
|
+
// src/TagChip/TagChip.tsx
|
|
4897
|
+
var import_jsx_runtime211 = require("@emotion/react/jsx-runtime");
|
|
4898
|
+
var TagChip = ({
|
|
4899
|
+
variant = "primary",
|
|
4900
|
+
className,
|
|
4901
|
+
children,
|
|
4902
|
+
...rest
|
|
4903
|
+
}) => {
|
|
4904
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
4905
|
+
Box_default,
|
|
4906
|
+
{
|
|
4907
|
+
display: "inline-flex",
|
|
4908
|
+
alignItems: "center",
|
|
4909
|
+
borderRadius: "var(--spacing-6)",
|
|
4910
|
+
px: "var(--spacing-4)",
|
|
4911
|
+
py: "var(--spacing-3)",
|
|
4912
|
+
css: tagChipVariantStyles[variant],
|
|
4913
|
+
className,
|
|
4914
|
+
...rest,
|
|
4915
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Text_default, { as: "span", size: "sm", fontWeight: "normal", children })
|
|
4916
|
+
}
|
|
4917
|
+
);
|
|
4918
|
+
};
|
|
4919
|
+
var TagChip_default = TagChip;
|
|
4920
|
+
|
|
4305
4921
|
// src/Widget/Widget.tsx
|
|
4306
|
-
var
|
|
4922
|
+
var import_react26 = require("react");
|
|
4307
4923
|
|
|
4308
4924
|
// src/Widget/Widget.styles.ts
|
|
4309
|
-
var
|
|
4310
|
-
var panelContainer =
|
|
4925
|
+
var import_react25 = require("@emotion/react");
|
|
4926
|
+
var panelContainer = import_react25.css`
|
|
4311
4927
|
position: absolute;
|
|
4312
4928
|
right: 0;
|
|
4313
4929
|
bottom: 0;
|
|
@@ -4323,7 +4939,7 @@ var panelContainer = import_react21.css`
|
|
|
4323
4939
|
justify-content: stretch;
|
|
4324
4940
|
}
|
|
4325
4941
|
`;
|
|
4326
|
-
var panelCard = (width2) =>
|
|
4942
|
+
var panelCard = (width2) => import_react25.css`
|
|
4327
4943
|
background: var(--surface-page);
|
|
4328
4944
|
color: var(--text-primary);
|
|
4329
4945
|
border: 1px solid var(--border-primary);
|
|
@@ -4344,16 +4960,16 @@ var panelCard = (width2) => import_react21.css`
|
|
|
4344
4960
|
overflow: auto;
|
|
4345
4961
|
}
|
|
4346
4962
|
`;
|
|
4347
|
-
var widgetTrigger =
|
|
4963
|
+
var widgetTrigger = import_react25.css`
|
|
4348
4964
|
margin: var(--spacing-1);
|
|
4349
4965
|
box-shadow: var(--shadow-2xl);
|
|
4350
4966
|
`;
|
|
4351
4967
|
|
|
4352
4968
|
// src/Widget/Widget.tsx
|
|
4353
|
-
var
|
|
4354
|
-
var WidgetContext = (0,
|
|
4969
|
+
var import_jsx_runtime212 = require("@emotion/react/jsx-runtime");
|
|
4970
|
+
var WidgetContext = (0, import_react26.createContext)(null);
|
|
4355
4971
|
var useWidgetContext = () => {
|
|
4356
|
-
const ctx = (0,
|
|
4972
|
+
const ctx = (0, import_react26.useContext)(WidgetContext);
|
|
4357
4973
|
if (!ctx)
|
|
4358
4974
|
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
4359
4975
|
return ctx;
|
|
@@ -4361,7 +4977,7 @@ var useWidgetContext = () => {
|
|
|
4361
4977
|
var WidgetTrigger = () => {
|
|
4362
4978
|
const { expanded, toggle, triggerRef, icon, expandedIcon } = useWidgetContext();
|
|
4363
4979
|
const currentIcon = expanded ? expandedIcon : icon;
|
|
4364
|
-
return /* @__PURE__ */ (0,
|
|
4980
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(import_jsx_runtime212.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
4365
4981
|
Button_default,
|
|
4366
4982
|
{
|
|
4367
4983
|
ref: triggerRef,
|
|
@@ -4369,7 +4985,7 @@ var WidgetTrigger = () => {
|
|
|
4369
4985
|
"aria-haspopup": "dialog",
|
|
4370
4986
|
onClick: toggle,
|
|
4371
4987
|
size: "lg",
|
|
4372
|
-
icon: /* @__PURE__ */ (0,
|
|
4988
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(Icon_default, { variant: currentIcon, size: "xxlarge" }),
|
|
4373
4989
|
css: widgetTrigger
|
|
4374
4990
|
}
|
|
4375
4991
|
) });
|
|
@@ -4377,7 +4993,7 @@ var WidgetTrigger = () => {
|
|
|
4377
4993
|
var WidgetPanel = ({ className, style, children }) => {
|
|
4378
4994
|
var _a;
|
|
4379
4995
|
const { expanded, panelWidth } = useWidgetContext();
|
|
4380
|
-
return /* @__PURE__ */ (0,
|
|
4996
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
4381
4997
|
"div",
|
|
4382
4998
|
{
|
|
4383
4999
|
css: panelContainer,
|
|
@@ -4386,7 +5002,7 @@ var WidgetPanel = ({ className, style, children }) => {
|
|
|
4386
5002
|
...style,
|
|
4387
5003
|
display: expanded ? (_a = style == null ? void 0 : style.display) != null ? _a : void 0 : "none"
|
|
4388
5004
|
},
|
|
4389
|
-
children: /* @__PURE__ */ (0,
|
|
5005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
4390
5006
|
Box_default,
|
|
4391
5007
|
{
|
|
4392
5008
|
css: panelCard(panelWidth),
|
|
@@ -4411,12 +5027,12 @@ var WidgetRoot = ({
|
|
|
4411
5027
|
children,
|
|
4412
5028
|
containerProps
|
|
4413
5029
|
}) => {
|
|
4414
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
5030
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react26.useState)(defaultExpanded);
|
|
4415
5031
|
const isControlled = typeof expanded === "boolean";
|
|
4416
5032
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4417
|
-
const triggerRef = (0,
|
|
4418
|
-
const containerRef = (0,
|
|
4419
|
-
const setExpanded = (0,
|
|
5033
|
+
const triggerRef = (0, import_react26.useRef)(null);
|
|
5034
|
+
const containerRef = (0, import_react26.useRef)(null);
|
|
5035
|
+
const setExpanded = (0, import_react26.useCallback)(
|
|
4420
5036
|
(next) => {
|
|
4421
5037
|
if (!isControlled)
|
|
4422
5038
|
setInternalExpanded(next);
|
|
@@ -4430,11 +5046,11 @@ var WidgetRoot = ({
|
|
|
4430
5046
|
},
|
|
4431
5047
|
[isControlled, onExpandedChange]
|
|
4432
5048
|
);
|
|
4433
|
-
const toggle = (0,
|
|
5049
|
+
const toggle = (0, import_react26.useCallback)(
|
|
4434
5050
|
() => setExpanded(!isExpanded),
|
|
4435
5051
|
[isExpanded, setExpanded]
|
|
4436
5052
|
);
|
|
4437
|
-
(0,
|
|
5053
|
+
(0, import_react26.useEffect)(() => {
|
|
4438
5054
|
if (!isExpanded)
|
|
4439
5055
|
return;
|
|
4440
5056
|
const onDocClick = (e) => {
|
|
@@ -4448,7 +5064,7 @@ var WidgetRoot = ({
|
|
|
4448
5064
|
document.addEventListener("mousedown", onDocClick);
|
|
4449
5065
|
return () => document.removeEventListener("mousedown", onDocClick);
|
|
4450
5066
|
}, [isExpanded, setExpanded]);
|
|
4451
|
-
(0,
|
|
5067
|
+
(0, import_react26.useEffect)(() => {
|
|
4452
5068
|
if (!isExpanded)
|
|
4453
5069
|
return;
|
|
4454
5070
|
const onKey = (e) => {
|
|
@@ -4458,7 +5074,7 @@ var WidgetRoot = ({
|
|
|
4458
5074
|
document.addEventListener("keydown", onKey);
|
|
4459
5075
|
return () => document.removeEventListener("keydown", onKey);
|
|
4460
5076
|
}, [isExpanded, setExpanded]);
|
|
4461
|
-
const value = (0,
|
|
5077
|
+
const value = (0, import_react26.useMemo)(
|
|
4462
5078
|
() => ({
|
|
4463
5079
|
expanded: isExpanded,
|
|
4464
5080
|
toggle,
|
|
@@ -4469,7 +5085,7 @@ var WidgetRoot = ({
|
|
|
4469
5085
|
}),
|
|
4470
5086
|
[expandedIcon, icon, isExpanded, panelWidth, toggle]
|
|
4471
5087
|
);
|
|
4472
|
-
return /* @__PURE__ */ (0,
|
|
5088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
4473
5089
|
Box_default,
|
|
4474
5090
|
{
|
|
4475
5091
|
ref: containerRef,
|
|
@@ -4480,7 +5096,7 @@ var WidgetRoot = ({
|
|
|
4480
5096
|
bottom: "var(--spacing-6)",
|
|
4481
5097
|
zIndex: 100,
|
|
4482
5098
|
...containerProps,
|
|
4483
|
-
children: /* @__PURE__ */ (0,
|
|
5099
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(WidgetContext.Provider, { value, children })
|
|
4484
5100
|
}
|
|
4485
5101
|
);
|
|
4486
5102
|
};
|
|
@@ -4491,8 +5107,8 @@ var Widget = Object.assign(WidgetRoot, {
|
|
|
4491
5107
|
var Widget_default = Widget;
|
|
4492
5108
|
|
|
4493
5109
|
// src/ChatWidget/ChatWidget.styles.ts
|
|
4494
|
-
var
|
|
4495
|
-
var sentWrapperStyles =
|
|
5110
|
+
var import_react27 = require("@emotion/react");
|
|
5111
|
+
var sentWrapperStyles = import_react27.css`
|
|
4496
5112
|
align-self: flex-end;
|
|
4497
5113
|
max-width: 90%;
|
|
4498
5114
|
width: 100%;
|
|
@@ -4500,14 +5116,14 @@ var sentWrapperStyles = import_react23.css`
|
|
|
4500
5116
|
overflow-wrap: anywhere;
|
|
4501
5117
|
padding-top: var(--spacing-4);
|
|
4502
5118
|
`;
|
|
4503
|
-
var receivedWrapperStyles =
|
|
5119
|
+
var receivedWrapperStyles = import_react27.css`
|
|
4504
5120
|
align-self: flex-start;
|
|
4505
5121
|
width: 100%;
|
|
4506
5122
|
min-width: 0;
|
|
4507
5123
|
overflow-wrap: anywhere;
|
|
4508
5124
|
padding-top: var(--spacing-4);
|
|
4509
5125
|
`;
|
|
4510
|
-
var containerStyles =
|
|
5126
|
+
var containerStyles = import_react27.css`
|
|
4511
5127
|
display: flex;
|
|
4512
5128
|
flex-direction: column;
|
|
4513
5129
|
min-height: 0;
|
|
@@ -4517,13 +5133,13 @@ var containerStyles = import_react23.css`
|
|
|
4517
5133
|
height: 100%;
|
|
4518
5134
|
}
|
|
4519
5135
|
`;
|
|
4520
|
-
var thinkingRowStyles =
|
|
5136
|
+
var thinkingRowStyles = import_react27.css`
|
|
4521
5137
|
display: flex;
|
|
4522
5138
|
align-items: center;
|
|
4523
5139
|
gap: var(--spacing-2);
|
|
4524
5140
|
color: var(--text-primary);
|
|
4525
5141
|
`;
|
|
4526
|
-
var thinkingTextStyles =
|
|
5142
|
+
var thinkingTextStyles = import_react27.css`
|
|
4527
5143
|
animation: ltchat-pulse 1.6s ease-in-out infinite;
|
|
4528
5144
|
|
|
4529
5145
|
@keyframes ltchat-pulse {
|
|
@@ -4536,7 +5152,7 @@ var thinkingTextStyles = import_react23.css`
|
|
|
4536
5152
|
}
|
|
4537
5153
|
}
|
|
4538
5154
|
`;
|
|
4539
|
-
var badge =
|
|
5155
|
+
var badge = import_react27.css`
|
|
4540
5156
|
width: var(--spacing-11);
|
|
4541
5157
|
height: var(--spacing-11);
|
|
4542
5158
|
border-radius: var(--radius-round);
|
|
@@ -4546,16 +5162,16 @@ var badge = import_react23.css`
|
|
|
4546
5162
|
background-color: var(--color-primary-500);
|
|
4547
5163
|
color: var(--color-base-white);
|
|
4548
5164
|
`;
|
|
4549
|
-
var closeButtonContent =
|
|
5165
|
+
var closeButtonContent = import_react27.css`
|
|
4550
5166
|
display: inline-flex;
|
|
4551
5167
|
align-items: center;
|
|
4552
5168
|
gap: var(--spacing-2);
|
|
4553
5169
|
`;
|
|
4554
5170
|
|
|
4555
5171
|
// src/ChatWidget/ChatWidget.tsx
|
|
4556
|
-
var
|
|
5172
|
+
var import_jsx_runtime213 = require("@emotion/react/jsx-runtime");
|
|
4557
5173
|
var DEFAULT_EMPTY_STATE = [
|
|
4558
|
-
/* @__PURE__ */ (0,
|
|
5174
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
4559
5175
|
AIResponse_default,
|
|
4560
5176
|
{
|
|
4561
5177
|
showDisclaimer: false,
|
|
@@ -4580,14 +5196,17 @@ var ChatWidget = ({
|
|
|
4580
5196
|
onExpandedChange,
|
|
4581
5197
|
isThinking = false,
|
|
4582
5198
|
emptyState = DEFAULT_EMPTY_STATE,
|
|
4583
|
-
containerProps
|
|
5199
|
+
containerProps,
|
|
5200
|
+
suggestedPrompts,
|
|
5201
|
+
onPromptClick,
|
|
5202
|
+
suggestedPromptsTitle = "Other Helpful Topics"
|
|
4584
5203
|
}) => {
|
|
4585
|
-
const [value, setValue] = (0,
|
|
4586
|
-
const scrollRef = (0,
|
|
5204
|
+
const [value, setValue] = (0, import_react28.useState)("");
|
|
5205
|
+
const scrollRef = (0, import_react28.useRef)(null);
|
|
4587
5206
|
const isControlled = typeof expanded === "boolean";
|
|
4588
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
5207
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react28.useState)(defaultExpanded);
|
|
4589
5208
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4590
|
-
const setExpanded = (0,
|
|
5209
|
+
const setExpanded = (0, import_react28.useCallback)(
|
|
4591
5210
|
(next) => {
|
|
4592
5211
|
if (!isControlled)
|
|
4593
5212
|
setInternalExpanded(next);
|
|
@@ -4595,24 +5214,24 @@ var ChatWidget = ({
|
|
|
4595
5214
|
},
|
|
4596
5215
|
[isControlled, onExpandedChange]
|
|
4597
5216
|
);
|
|
4598
|
-
(0,
|
|
5217
|
+
(0, import_react28.useEffect)(() => {
|
|
4599
5218
|
const el = scrollRef.current;
|
|
4600
5219
|
if (!el)
|
|
4601
5220
|
return;
|
|
4602
5221
|
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
4603
5222
|
}, [messages, isThinking]);
|
|
4604
5223
|
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
4605
|
-
const renderedMessages = (0,
|
|
5224
|
+
const renderedMessages = (0, import_react28.useMemo)(
|
|
4606
5225
|
() => messagesToRender.map((element, index) => {
|
|
4607
5226
|
var _a;
|
|
4608
5227
|
const key = (_a = element.key) != null ? _a : index;
|
|
4609
5228
|
if (element.type === AIResponse_default) {
|
|
4610
|
-
return /* @__PURE__ */ (0,
|
|
5229
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Box_default, { css: receivedWrapperStyles, children: element }, key);
|
|
4611
5230
|
}
|
|
4612
5231
|
if (element.type === MessageBubble_default) {
|
|
4613
|
-
return /* @__PURE__ */ (0,
|
|
5232
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
4614
5233
|
}
|
|
4615
|
-
return /* @__PURE__ */ (0,
|
|
5234
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(import_react28.default.Fragment, { children: element }, key);
|
|
4616
5235
|
}),
|
|
4617
5236
|
[messagesToRender]
|
|
4618
5237
|
);
|
|
@@ -4623,7 +5242,7 @@ var ChatWidget = ({
|
|
|
4623
5242
|
onSubmit(trimmed);
|
|
4624
5243
|
setValue("");
|
|
4625
5244
|
};
|
|
4626
|
-
return /* @__PURE__ */ (0,
|
|
5245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
|
|
4627
5246
|
Widget_default,
|
|
4628
5247
|
{
|
|
4629
5248
|
ariaLabel,
|
|
@@ -4634,10 +5253,10 @@ var ChatWidget = ({
|
|
|
4634
5253
|
className,
|
|
4635
5254
|
containerProps,
|
|
4636
5255
|
children: [
|
|
4637
|
-
/* @__PURE__ */ (0,
|
|
4638
|
-
/* @__PURE__ */ (0,
|
|
4639
|
-
/* @__PURE__ */ (0,
|
|
4640
|
-
/* @__PURE__ */ (0,
|
|
5256
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Widget_default.Trigger, {}),
|
|
5257
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Widget_default.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(Box_default, { css: containerStyles, children: [
|
|
5258
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(Box_default, { position: "sticky", top: 0, zIndex: 1, children: [
|
|
5259
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
|
|
4641
5260
|
Box_default,
|
|
4642
5261
|
{
|
|
4643
5262
|
display: "flex",
|
|
@@ -4645,9 +5264,9 @@ var ChatWidget = ({
|
|
|
4645
5264
|
justifyContent: "space-between",
|
|
4646
5265
|
gap: "var(--spacing-4)",
|
|
4647
5266
|
children: [
|
|
4648
|
-
/* @__PURE__ */ (0,
|
|
4649
|
-
/* @__PURE__ */ (0,
|
|
4650
|
-
/* @__PURE__ */ (0,
|
|
5267
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
|
|
5268
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: "large" }) }),
|
|
5269
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
4651
5270
|
Heading_default,
|
|
4652
5271
|
{
|
|
4653
5272
|
size: "2xs",
|
|
@@ -4657,25 +5276,25 @@ var ChatWidget = ({
|
|
|
4657
5276
|
}
|
|
4658
5277
|
)
|
|
4659
5278
|
] }),
|
|
4660
|
-
/* @__PURE__ */ (0,
|
|
5279
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
4661
5280
|
Button_default,
|
|
4662
5281
|
{
|
|
4663
5282
|
variant: "text",
|
|
4664
5283
|
size: "xs",
|
|
4665
5284
|
"aria-label": "Close widget",
|
|
4666
5285
|
onClick: () => setExpanded(false),
|
|
4667
|
-
children: /* @__PURE__ */ (0,
|
|
4668
|
-
/* @__PURE__ */ (0,
|
|
4669
|
-
/* @__PURE__ */ (0,
|
|
5286
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)("span", { css: closeButtonContent, children: [
|
|
5287
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Icon_default, { variant: "Xmark", size: "medium" }),
|
|
5288
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)("span", { children: "Close" })
|
|
4670
5289
|
] })
|
|
4671
5290
|
}
|
|
4672
5291
|
)
|
|
4673
5292
|
]
|
|
4674
5293
|
}
|
|
4675
5294
|
),
|
|
4676
|
-
/* @__PURE__ */ (0,
|
|
5295
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
4677
5296
|
] }),
|
|
4678
|
-
/* @__PURE__ */ (0,
|
|
5297
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
|
|
4679
5298
|
Box_default,
|
|
4680
5299
|
{
|
|
4681
5300
|
ref: scrollRef,
|
|
@@ -4688,15 +5307,48 @@ var ChatWidget = ({
|
|
|
4688
5307
|
flexDirection: "column",
|
|
4689
5308
|
gap: "var(--spacing-2)",
|
|
4690
5309
|
children: [
|
|
4691
|
-
/* @__PURE__ */ (0,
|
|
4692
|
-
isThinking && /* @__PURE__ */ (0,
|
|
4693
|
-
/* @__PURE__ */ (0,
|
|
4694
|
-
/* @__PURE__ */ (0,
|
|
4695
|
-
] }) })
|
|
5310
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
5311
|
+
isThinking && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
5312
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Spinner_default2, { size: "medium" }),
|
|
5313
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)("span", { css: thinkingTextStyles, children: "Thinking..." })
|
|
5314
|
+
] }) }),
|
|
5315
|
+
suggestedPrompts && suggestedPrompts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(
|
|
5316
|
+
Box_default,
|
|
5317
|
+
{
|
|
5318
|
+
display: "flex",
|
|
5319
|
+
flexDirection: "column",
|
|
5320
|
+
gap: "var(--spacing-4)",
|
|
5321
|
+
children: [
|
|
5322
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Text_default, { size: "md", fontWeight: "bold", color: "var(--text-primary)", children: suggestedPromptsTitle }),
|
|
5323
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
5324
|
+
Box_default,
|
|
5325
|
+
{
|
|
5326
|
+
display: "flex",
|
|
5327
|
+
flexWrap: "wrap",
|
|
5328
|
+
gap: "var(--spacing-4)",
|
|
5329
|
+
alignItems: "flex-start",
|
|
5330
|
+
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
5331
|
+
TagChip_default,
|
|
5332
|
+
{
|
|
5333
|
+
variant: "success",
|
|
5334
|
+
onClick: () => {
|
|
5335
|
+
var _a;
|
|
5336
|
+
return onPromptClick == null ? void 0 : onPromptClick((_a = prompt.value) != null ? _a : prompt.label);
|
|
5337
|
+
},
|
|
5338
|
+
style: { cursor: "pointer" },
|
|
5339
|
+
children: prompt.label
|
|
5340
|
+
},
|
|
5341
|
+
index
|
|
5342
|
+
))
|
|
5343
|
+
}
|
|
5344
|
+
)
|
|
5345
|
+
]
|
|
5346
|
+
}
|
|
5347
|
+
) })
|
|
4696
5348
|
]
|
|
4697
5349
|
}
|
|
4698
5350
|
),
|
|
4699
|
-
/* @__PURE__ */ (0,
|
|
5351
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Box_default, { position: "sticky", bottom: 0, zIndex: 1, p: 0, children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
4700
5352
|
TextArea_default,
|
|
4701
5353
|
{
|
|
4702
5354
|
rows: 3,
|
|
@@ -4719,18 +5371,51 @@ var ChatWidget = ({
|
|
|
4719
5371
|
var ChatWidget_default = ChatWidget;
|
|
4720
5372
|
|
|
4721
5373
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
4722
|
-
var
|
|
5374
|
+
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
5375
|
+
var import_jsx_runtime214 = require("@emotion/react/jsx-runtime");
|
|
4723
5376
|
var FeatureListItem = ({
|
|
4724
5377
|
iconVariant,
|
|
4725
5378
|
label,
|
|
4726
5379
|
subtitle,
|
|
4727
5380
|
iconSize = "large",
|
|
4728
5381
|
iconColor,
|
|
5382
|
+
isLoading = false,
|
|
4729
5383
|
className,
|
|
4730
5384
|
...rest
|
|
4731
5385
|
}) => {
|
|
4732
|
-
|
|
4733
|
-
|
|
5386
|
+
const iconDimensions = IconSizeMap[iconSize];
|
|
5387
|
+
if (isLoading) {
|
|
5388
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
5389
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
5390
|
+
Box_default,
|
|
5391
|
+
{
|
|
5392
|
+
display: "flex",
|
|
5393
|
+
alignItems: "center",
|
|
5394
|
+
gap: "var(--spacing-2)",
|
|
5395
|
+
className,
|
|
5396
|
+
...rest,
|
|
5397
|
+
children: [
|
|
5398
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5399
|
+
import_react_loading_skeleton.default,
|
|
5400
|
+
{
|
|
5401
|
+
circle: true,
|
|
5402
|
+
width: iconDimensions.width,
|
|
5403
|
+
height: iconDimensions.height,
|
|
5404
|
+
borderRadius: 4
|
|
5405
|
+
}
|
|
5406
|
+
),
|
|
5407
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
5408
|
+
]
|
|
5409
|
+
}
|
|
5410
|
+
),
|
|
5411
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
5412
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
5413
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(import_react_loading_skeleton.default, { width: 150, height: 14, borderRadius: 4 })
|
|
5414
|
+
] })
|
|
5415
|
+
] });
|
|
5416
|
+
}
|
|
5417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
5418
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
4734
5419
|
Box_default,
|
|
4735
5420
|
{
|
|
4736
5421
|
display: "flex",
|
|
@@ -4739,23 +5424,23 @@ var FeatureListItem = ({
|
|
|
4739
5424
|
className,
|
|
4740
5425
|
...rest,
|
|
4741
5426
|
children: [
|
|
4742
|
-
/* @__PURE__ */ (0,
|
|
4743
|
-
/* @__PURE__ */ (0,
|
|
5427
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Icon_default, { variant: iconVariant, size: iconSize, fill: iconColor }),
|
|
5428
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Text_default, { fontWeight: "semibold", children: label })
|
|
4744
5429
|
]
|
|
4745
5430
|
}
|
|
4746
5431
|
),
|
|
4747
|
-
subtitle && /* @__PURE__ */ (0,
|
|
4748
|
-
/* @__PURE__ */ (0,
|
|
4749
|
-
/* @__PURE__ */ (0,
|
|
5432
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
5433
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
5434
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
4750
5435
|
] })
|
|
4751
5436
|
] });
|
|
4752
5437
|
};
|
|
4753
5438
|
var FeatureListItem_default = FeatureListItem;
|
|
4754
5439
|
|
|
4755
5440
|
// src/FeatureList/FeatureList.tsx
|
|
4756
|
-
var
|
|
5441
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
4757
5442
|
var FeatureList = ({ heading, items, className }) => {
|
|
4758
|
-
return /* @__PURE__ */ (0,
|
|
5443
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
4759
5444
|
Box_default,
|
|
4760
5445
|
{
|
|
4761
5446
|
display: "flex",
|
|
@@ -4763,8 +5448,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
4763
5448
|
gap: "var(--spacing-2)",
|
|
4764
5449
|
className,
|
|
4765
5450
|
children: [
|
|
4766
|
-
heading && /* @__PURE__ */ (0,
|
|
4767
|
-
/* @__PURE__ */ (0,
|
|
5451
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
5452
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(FeatureListItem_default, { ...item }, `${item.iconVariant}-${index}`)) })
|
|
4768
5453
|
]
|
|
4769
5454
|
}
|
|
4770
5455
|
);
|
|
@@ -4772,8 +5457,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
4772
5457
|
var FeatureList_default = FeatureList;
|
|
4773
5458
|
|
|
4774
5459
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
4775
|
-
var
|
|
4776
|
-
var cardContainerStyles =
|
|
5460
|
+
var import_react29 = require("@emotion/react");
|
|
5461
|
+
var cardContainerStyles = import_react29.css`
|
|
4777
5462
|
position: relative;
|
|
4778
5463
|
height: 335px;
|
|
4779
5464
|
|
|
@@ -4781,12 +5466,12 @@ var cardContainerStyles = import_react25.css`
|
|
|
4781
5466
|
height: 480px;
|
|
4782
5467
|
}
|
|
4783
5468
|
`;
|
|
4784
|
-
var cardContentStyles =
|
|
5469
|
+
var cardContentStyles = import_react29.css`
|
|
4785
5470
|
position: relative;
|
|
4786
5471
|
border-radius: var(--spacing-4);
|
|
4787
5472
|
overflow: hidden;
|
|
4788
5473
|
`;
|
|
4789
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
5474
|
+
var getBackgroundWithGradient = (imageUrl) => import_react29.css`
|
|
4790
5475
|
background-image: linear-gradient(
|
|
4791
5476
|
180deg,
|
|
4792
5477
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -4800,7 +5485,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react25.css`
|
|
|
4800
5485
|
`;
|
|
4801
5486
|
|
|
4802
5487
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
4803
|
-
var
|
|
5488
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
4804
5489
|
var FieldNoteCard = ({
|
|
4805
5490
|
backgroundImage,
|
|
4806
5491
|
title,
|
|
@@ -4809,14 +5494,14 @@ var FieldNoteCard = ({
|
|
|
4809
5494
|
className,
|
|
4810
5495
|
...rest
|
|
4811
5496
|
}) => {
|
|
4812
|
-
return /* @__PURE__ */ (0,
|
|
5497
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4813
5498
|
Box_default,
|
|
4814
5499
|
{
|
|
4815
5500
|
display: "flex",
|
|
4816
5501
|
css: cardContainerStyles,
|
|
4817
5502
|
className,
|
|
4818
5503
|
...rest,
|
|
4819
|
-
children: /* @__PURE__ */ (0,
|
|
5504
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4820
5505
|
Box_default,
|
|
4821
5506
|
{
|
|
4822
5507
|
display: "flex",
|
|
@@ -4824,9 +5509,9 @@ var FieldNoteCard = ({
|
|
|
4824
5509
|
justifyContent: "flex-end",
|
|
4825
5510
|
p: 6,
|
|
4826
5511
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
4827
|
-
children: /* @__PURE__ */ (0,
|
|
4828
|
-
/* @__PURE__ */ (0,
|
|
4829
|
-
/* @__PURE__ */ (0,
|
|
5512
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
5513
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
5514
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
4830
5515
|
] })
|
|
4831
5516
|
}
|
|
4832
5517
|
)
|
|
@@ -4836,14 +5521,14 @@ var FieldNoteCard = ({
|
|
|
4836
5521
|
var FieldNoteCard_default = FieldNoteCard;
|
|
4837
5522
|
|
|
4838
5523
|
// src/Form/FormField.tsx
|
|
4839
|
-
var
|
|
4840
|
-
var
|
|
4841
|
-
var fieldContainerStyles =
|
|
5524
|
+
var import_react30 = require("@emotion/react");
|
|
5525
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5526
|
+
var fieldContainerStyles = import_react30.css`
|
|
4842
5527
|
display: flex;
|
|
4843
5528
|
flex-direction: column;
|
|
4844
5529
|
gap: ${space["2"]};
|
|
4845
5530
|
`;
|
|
4846
|
-
var labelStyles2 =
|
|
5531
|
+
var labelStyles2 = import_react30.css`
|
|
4847
5532
|
font-family: ${fonts.base};
|
|
4848
5533
|
font-size: ${fontSizes.sm};
|
|
4849
5534
|
font-weight: ${fontWeights.medium};
|
|
@@ -4851,17 +5536,17 @@ var labelStyles2 = import_react26.css`
|
|
|
4851
5536
|
color: ${colors.gray["900"]};
|
|
4852
5537
|
margin-bottom: ${space["1"]};
|
|
4853
5538
|
`;
|
|
4854
|
-
var requiredIndicatorStyles =
|
|
5539
|
+
var requiredIndicatorStyles = import_react30.css`
|
|
4855
5540
|
color: ${colors.red["500"]};
|
|
4856
5541
|
margin-left: ${space["1"]};
|
|
4857
5542
|
`;
|
|
4858
|
-
var helpTextStyles =
|
|
5543
|
+
var helpTextStyles = import_react30.css`
|
|
4859
5544
|
font-family: ${fonts.base};
|
|
4860
5545
|
font-size: ${fontSizes.sm};
|
|
4861
5546
|
line-height: ${lineHeights.tight};
|
|
4862
5547
|
color: ${colors.gray["600"]};
|
|
4863
5548
|
`;
|
|
4864
|
-
var errorTextStyles =
|
|
5549
|
+
var errorTextStyles = import_react30.css`
|
|
4865
5550
|
font-family: ${fonts.base};
|
|
4866
5551
|
font-size: ${fontSizes.sm};
|
|
4867
5552
|
line-height: ${lineHeights.tight};
|
|
@@ -4870,7 +5555,7 @@ var errorTextStyles = import_react26.css`
|
|
|
4870
5555
|
align-items: center;
|
|
4871
5556
|
gap: ${space["1"]};
|
|
4872
5557
|
`;
|
|
4873
|
-
var successTextStyles =
|
|
5558
|
+
var successTextStyles = import_react30.css`
|
|
4874
5559
|
font-family: ${fonts.base};
|
|
4875
5560
|
font-size: ${fontSizes.sm};
|
|
4876
5561
|
line-height: ${lineHeights.tight};
|
|
@@ -4879,7 +5564,7 @@ var successTextStyles = import_react26.css`
|
|
|
4879
5564
|
align-items: center;
|
|
4880
5565
|
gap: ${space["1"]};
|
|
4881
5566
|
`;
|
|
4882
|
-
var visuallyHiddenStyles =
|
|
5567
|
+
var visuallyHiddenStyles = import_react30.css`
|
|
4883
5568
|
position: absolute;
|
|
4884
5569
|
width: 1px;
|
|
4885
5570
|
height: 1px;
|
|
@@ -4904,21 +5589,21 @@ var FormField = ({
|
|
|
4904
5589
|
const hasError = !!error;
|
|
4905
5590
|
const hasSuccess = !!success && !hasError;
|
|
4906
5591
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
4907
|
-
return /* @__PURE__ */ (0,
|
|
4908
|
-
label && /* @__PURE__ */ (0,
|
|
5592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
5593
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
|
|
4909
5594
|
"label",
|
|
4910
5595
|
{
|
|
4911
5596
|
htmlFor,
|
|
4912
5597
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
4913
5598
|
children: [
|
|
4914
5599
|
label,
|
|
4915
|
-
required && /* @__PURE__ */ (0,
|
|
5600
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
4916
5601
|
]
|
|
4917
5602
|
}
|
|
4918
5603
|
),
|
|
4919
5604
|
children,
|
|
4920
|
-
hasError && /* @__PURE__ */ (0,
|
|
4921
|
-
/* @__PURE__ */ (0,
|
|
5605
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
5606
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
4922
5607
|
"path",
|
|
4923
5608
|
{
|
|
4924
5609
|
fillRule: "evenodd",
|
|
@@ -4928,8 +5613,8 @@ var FormField = ({
|
|
|
4928
5613
|
) }),
|
|
4929
5614
|
error
|
|
4930
5615
|
] }),
|
|
4931
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
4932
|
-
/* @__PURE__ */ (0,
|
|
5616
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { css: successTextStyles, children: [
|
|
5617
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
4933
5618
|
"path",
|
|
4934
5619
|
{
|
|
4935
5620
|
fillRule: "evenodd",
|
|
@@ -4939,15 +5624,15 @@ var FormField = ({
|
|
|
4939
5624
|
) }),
|
|
4940
5625
|
success
|
|
4941
5626
|
] }),
|
|
4942
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
5627
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
4943
5628
|
] });
|
|
4944
5629
|
};
|
|
4945
5630
|
|
|
4946
5631
|
// src/Form/Input.tsx
|
|
4947
|
-
var
|
|
4948
|
-
var
|
|
4949
|
-
var
|
|
4950
|
-
var inputStyles =
|
|
5632
|
+
var import_react31 = require("@emotion/react");
|
|
5633
|
+
var import_react32 = require("react");
|
|
5634
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
5635
|
+
var inputStyles = import_react31.css`
|
|
4951
5636
|
position: relative;
|
|
4952
5637
|
width: 100%;
|
|
4953
5638
|
font-family: ${fonts.base};
|
|
@@ -4984,19 +5669,19 @@ var inputStyles = import_react27.css`
|
|
|
4984
5669
|
}
|
|
4985
5670
|
`;
|
|
4986
5671
|
var sizeStyles = {
|
|
4987
|
-
sm:
|
|
5672
|
+
sm: import_react31.css`
|
|
4988
5673
|
padding: ${space["2"]} ${space["3"]};
|
|
4989
5674
|
font-size: ${fontSizes.sm};
|
|
4990
5675
|
line-height: ${lineHeights.tight};
|
|
4991
5676
|
height: ${space["8"]};
|
|
4992
5677
|
`,
|
|
4993
|
-
md:
|
|
5678
|
+
md: import_react31.css`
|
|
4994
5679
|
padding: ${space["3"]} ${space["4"]};
|
|
4995
5680
|
font-size: ${fontSizes.base};
|
|
4996
5681
|
line-height: ${lineHeights.normal};
|
|
4997
5682
|
height: ${space["10"]};
|
|
4998
5683
|
`,
|
|
4999
|
-
lg:
|
|
5684
|
+
lg: import_react31.css`
|
|
5000
5685
|
padding: ${space["4"]} ${space["5"]};
|
|
5001
5686
|
font-size: ${fontSizes.lg};
|
|
5002
5687
|
line-height: ${lineHeights.normal};
|
|
@@ -5004,8 +5689,8 @@ var sizeStyles = {
|
|
|
5004
5689
|
`
|
|
5005
5690
|
};
|
|
5006
5691
|
var variantStyles = {
|
|
5007
|
-
default:
|
|
5008
|
-
error:
|
|
5692
|
+
default: import_react31.css``,
|
|
5693
|
+
error: import_react31.css`
|
|
5009
5694
|
border-color: ${colors.red["500"]};
|
|
5010
5695
|
|
|
5011
5696
|
&:focus {
|
|
@@ -5013,7 +5698,7 @@ var variantStyles = {
|
|
|
5013
5698
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5014
5699
|
}
|
|
5015
5700
|
`,
|
|
5016
|
-
success:
|
|
5701
|
+
success: import_react31.css`
|
|
5017
5702
|
border-color: ${colors.accent.green};
|
|
5018
5703
|
|
|
5019
5704
|
&:focus {
|
|
@@ -5022,7 +5707,7 @@ var variantStyles = {
|
|
|
5022
5707
|
}
|
|
5023
5708
|
`
|
|
5024
5709
|
};
|
|
5025
|
-
var inputWithIconStyles =
|
|
5710
|
+
var inputWithIconStyles = import_react31.css`
|
|
5026
5711
|
padding-left: ${space["10"]};
|
|
5027
5712
|
|
|
5028
5713
|
&.has-end-icon {
|
|
@@ -5033,7 +5718,7 @@ var inputWithIconStyles = import_react27.css`
|
|
|
5033
5718
|
padding-left: ${space["10"]};
|
|
5034
5719
|
}
|
|
5035
5720
|
`;
|
|
5036
|
-
var iconContainerStyles =
|
|
5721
|
+
var iconContainerStyles = import_react31.css`
|
|
5037
5722
|
position: absolute;
|
|
5038
5723
|
top: 50%;
|
|
5039
5724
|
transform: translateY(-50%);
|
|
@@ -5044,20 +5729,20 @@ var iconContainerStyles = import_react27.css`
|
|
|
5044
5729
|
pointer-events: none;
|
|
5045
5730
|
z-index: 1;
|
|
5046
5731
|
`;
|
|
5047
|
-
var startIconStyles =
|
|
5732
|
+
var startIconStyles = import_react31.css`
|
|
5048
5733
|
${iconContainerStyles}
|
|
5049
5734
|
left: ${space["3"]};
|
|
5050
5735
|
`;
|
|
5051
|
-
var endIconStyles =
|
|
5736
|
+
var endIconStyles = import_react31.css`
|
|
5052
5737
|
${iconContainerStyles}
|
|
5053
5738
|
right: ${space["3"]};
|
|
5054
5739
|
`;
|
|
5055
|
-
var inputWrapperStyles =
|
|
5740
|
+
var inputWrapperStyles = import_react31.css`
|
|
5056
5741
|
position: relative;
|
|
5057
5742
|
display: inline-block;
|
|
5058
5743
|
width: 100%;
|
|
5059
5744
|
`;
|
|
5060
|
-
var Input = (0,
|
|
5745
|
+
var Input = (0, import_react32.forwardRef)(
|
|
5061
5746
|
({
|
|
5062
5747
|
size = "md",
|
|
5063
5748
|
variant = "default",
|
|
@@ -5076,9 +5761,9 @@ var Input = (0, import_react28.forwardRef)(
|
|
|
5076
5761
|
hasEndIcon && "has-end-icon",
|
|
5077
5762
|
className
|
|
5078
5763
|
].filter(Boolean).join(" ");
|
|
5079
|
-
return /* @__PURE__ */ (0,
|
|
5080
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
5081
|
-
/* @__PURE__ */ (0,
|
|
5764
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
5765
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
5766
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5082
5767
|
"input",
|
|
5083
5768
|
{
|
|
5084
5769
|
ref,
|
|
@@ -5095,17 +5780,17 @@ var Input = (0, import_react28.forwardRef)(
|
|
|
5095
5780
|
...props
|
|
5096
5781
|
}
|
|
5097
5782
|
),
|
|
5098
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
5783
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
5099
5784
|
] });
|
|
5100
5785
|
}
|
|
5101
5786
|
);
|
|
5102
5787
|
Input.displayName = "Input";
|
|
5103
5788
|
|
|
5104
5789
|
// src/Form/Select.tsx
|
|
5105
|
-
var
|
|
5106
|
-
var
|
|
5107
|
-
var
|
|
5108
|
-
var selectStyles =
|
|
5790
|
+
var import_react33 = require("@emotion/react");
|
|
5791
|
+
var import_react34 = require("react");
|
|
5792
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
5793
|
+
var selectStyles = import_react33.css`
|
|
5109
5794
|
position: relative;
|
|
5110
5795
|
width: 100%;
|
|
5111
5796
|
font-family: ${fonts.base};
|
|
@@ -5144,19 +5829,19 @@ var selectStyles = import_react29.css`
|
|
|
5144
5829
|
}
|
|
5145
5830
|
`;
|
|
5146
5831
|
var sizeStyles2 = {
|
|
5147
|
-
sm:
|
|
5832
|
+
sm: import_react33.css`
|
|
5148
5833
|
padding: ${space["2"]} ${space["3"]};
|
|
5149
5834
|
font-size: ${fontSizes.sm};
|
|
5150
5835
|
line-height: ${lineHeights.tight};
|
|
5151
5836
|
height: ${space["8"]};
|
|
5152
5837
|
`,
|
|
5153
|
-
md:
|
|
5838
|
+
md: import_react33.css`
|
|
5154
5839
|
padding: ${space["3"]} ${space["4"]};
|
|
5155
5840
|
font-size: ${fontSizes.base};
|
|
5156
5841
|
line-height: ${lineHeights.normal};
|
|
5157
5842
|
height: ${space["10"]};
|
|
5158
5843
|
`,
|
|
5159
|
-
lg:
|
|
5844
|
+
lg: import_react33.css`
|
|
5160
5845
|
padding: ${space["4"]} ${space["5"]};
|
|
5161
5846
|
font-size: ${fontSizes.lg};
|
|
5162
5847
|
line-height: ${lineHeights.normal};
|
|
@@ -5164,8 +5849,8 @@ var sizeStyles2 = {
|
|
|
5164
5849
|
`
|
|
5165
5850
|
};
|
|
5166
5851
|
var variantStyles2 = {
|
|
5167
|
-
default:
|
|
5168
|
-
error:
|
|
5852
|
+
default: import_react33.css``,
|
|
5853
|
+
error: import_react33.css`
|
|
5169
5854
|
border-color: ${colors.red["500"]};
|
|
5170
5855
|
|
|
5171
5856
|
&:focus {
|
|
@@ -5173,7 +5858,7 @@ var variantStyles2 = {
|
|
|
5173
5858
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5174
5859
|
}
|
|
5175
5860
|
`,
|
|
5176
|
-
success:
|
|
5861
|
+
success: import_react33.css`
|
|
5177
5862
|
border-color: ${colors.accent.green};
|
|
5178
5863
|
|
|
5179
5864
|
&:focus {
|
|
@@ -5182,7 +5867,7 @@ var variantStyles2 = {
|
|
|
5182
5867
|
}
|
|
5183
5868
|
`
|
|
5184
5869
|
};
|
|
5185
|
-
var optionStyles =
|
|
5870
|
+
var optionStyles = import_react33.css`
|
|
5186
5871
|
background-color: ${colors.light["100"]};
|
|
5187
5872
|
color: ${colors.gray["900"]};
|
|
5188
5873
|
|
|
@@ -5191,7 +5876,7 @@ var optionStyles = import_react29.css`
|
|
|
5191
5876
|
background-color: ${colors.gray["100"]};
|
|
5192
5877
|
}
|
|
5193
5878
|
`;
|
|
5194
|
-
var Select = (0,
|
|
5879
|
+
var Select = (0, import_react34.forwardRef)(
|
|
5195
5880
|
({
|
|
5196
5881
|
size = "md",
|
|
5197
5882
|
variant = "default",
|
|
@@ -5201,7 +5886,7 @@ var Select = (0, import_react30.forwardRef)(
|
|
|
5201
5886
|
className = "",
|
|
5202
5887
|
...props
|
|
5203
5888
|
}, ref) => {
|
|
5204
|
-
return /* @__PURE__ */ (0,
|
|
5889
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
5205
5890
|
"select",
|
|
5206
5891
|
{
|
|
5207
5892
|
ref,
|
|
@@ -5210,8 +5895,8 @@ var Select = (0, import_react30.forwardRef)(
|
|
|
5210
5895
|
className,
|
|
5211
5896
|
...props,
|
|
5212
5897
|
children: [
|
|
5213
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
5214
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
5898
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
5899
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5215
5900
|
"option",
|
|
5216
5901
|
{
|
|
5217
5902
|
value: option.value,
|
|
@@ -5229,10 +5914,10 @@ var Select = (0, import_react30.forwardRef)(
|
|
|
5229
5914
|
Select.displayName = "Select";
|
|
5230
5915
|
|
|
5231
5916
|
// src/Grid/Column.tsx
|
|
5232
|
-
var
|
|
5917
|
+
var import_react36 = require("@emotion/react");
|
|
5233
5918
|
|
|
5234
5919
|
// src/Grid/utils.ts
|
|
5235
|
-
var
|
|
5920
|
+
var import_react35 = require("@emotion/react");
|
|
5236
5921
|
var LayoutTokens = {
|
|
5237
5922
|
containers: {
|
|
5238
5923
|
sm: screens.sm,
|
|
@@ -5272,11 +5957,11 @@ var getResponsiveValue = (value) => {
|
|
|
5272
5957
|
var generateGridColumns = (columns) => {
|
|
5273
5958
|
const baseColumns = getResponsiveValue(columns);
|
|
5274
5959
|
if (typeof columns === "number") {
|
|
5275
|
-
return
|
|
5960
|
+
return import_react35.css`
|
|
5276
5961
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
5277
5962
|
`;
|
|
5278
5963
|
}
|
|
5279
|
-
return
|
|
5964
|
+
return import_react35.css`
|
|
5280
5965
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
5281
5966
|
|
|
5282
5967
|
${media.sm} {
|
|
@@ -5308,11 +5993,11 @@ var generateGridColumns = (columns) => {
|
|
|
5308
5993
|
var generateGapStyles = (gap2) => {
|
|
5309
5994
|
const baseGap = getResponsiveValue(gap2);
|
|
5310
5995
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
5311
|
-
return
|
|
5996
|
+
return import_react35.css`
|
|
5312
5997
|
gap: ${space[gap2]};
|
|
5313
5998
|
`;
|
|
5314
5999
|
}
|
|
5315
|
-
return
|
|
6000
|
+
return import_react35.css`
|
|
5316
6001
|
gap: ${space[baseGap]};
|
|
5317
6002
|
|
|
5318
6003
|
${media.sm} {
|
|
@@ -5335,11 +6020,11 @@ var generateGapStyles = (gap2) => {
|
|
|
5335
6020
|
var generateRowGapStyles = (rowGap) => {
|
|
5336
6021
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
5337
6022
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
5338
|
-
return
|
|
6023
|
+
return import_react35.css`
|
|
5339
6024
|
row-gap: ${space[rowGap]};
|
|
5340
6025
|
`;
|
|
5341
6026
|
}
|
|
5342
|
-
return
|
|
6027
|
+
return import_react35.css`
|
|
5343
6028
|
row-gap: ${space[baseRowGap]};
|
|
5344
6029
|
|
|
5345
6030
|
${media.sm} {
|
|
@@ -5362,11 +6047,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
5362
6047
|
var generateColumnGapStyles = (columnGap) => {
|
|
5363
6048
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
5364
6049
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
5365
|
-
return
|
|
6050
|
+
return import_react35.css`
|
|
5366
6051
|
column-gap: ${space[columnGap]};
|
|
5367
6052
|
`;
|
|
5368
6053
|
}
|
|
5369
|
-
return
|
|
6054
|
+
return import_react35.css`
|
|
5370
6055
|
column-gap: ${space[baseColumnGap]};
|
|
5371
6056
|
|
|
5372
6057
|
${media.sm} {
|
|
@@ -5389,11 +6074,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
5389
6074
|
var generateColumnSpan = (span) => {
|
|
5390
6075
|
const baseSpan = getResponsiveValue(span);
|
|
5391
6076
|
if (typeof span === "string" || typeof span === "number") {
|
|
5392
|
-
return
|
|
6077
|
+
return import_react35.css`
|
|
5393
6078
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
5394
6079
|
`;
|
|
5395
6080
|
}
|
|
5396
|
-
return
|
|
6081
|
+
return import_react35.css`
|
|
5397
6082
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
5398
6083
|
|
|
5399
6084
|
${media.sm} {
|
|
@@ -5416,11 +6101,11 @@ var generateColumnSpan = (span) => {
|
|
|
5416
6101
|
var generateAlignItems = (alignItems) => {
|
|
5417
6102
|
const baseAlign = getResponsiveValue(alignItems);
|
|
5418
6103
|
if (typeof alignItems === "string") {
|
|
5419
|
-
return
|
|
6104
|
+
return import_react35.css`
|
|
5420
6105
|
align-items: ${alignItems};
|
|
5421
6106
|
`;
|
|
5422
6107
|
}
|
|
5423
|
-
return
|
|
6108
|
+
return import_react35.css`
|
|
5424
6109
|
align-items: ${baseAlign};
|
|
5425
6110
|
|
|
5426
6111
|
${media.sm} {
|
|
@@ -5443,11 +6128,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
5443
6128
|
var generateJustifyItems = (justifyItems) => {
|
|
5444
6129
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
5445
6130
|
if (typeof justifyItems === "string") {
|
|
5446
|
-
return
|
|
6131
|
+
return import_react35.css`
|
|
5447
6132
|
justify-items: ${justifyItems};
|
|
5448
6133
|
`;
|
|
5449
6134
|
}
|
|
5450
|
-
return
|
|
6135
|
+
return import_react35.css`
|
|
5451
6136
|
justify-items: ${baseJustify};
|
|
5452
6137
|
|
|
5453
6138
|
${media.sm} {
|
|
@@ -5469,7 +6154,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
5469
6154
|
};
|
|
5470
6155
|
|
|
5471
6156
|
// src/Grid/Column.tsx
|
|
5472
|
-
var
|
|
6157
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5473
6158
|
var Column = ({
|
|
5474
6159
|
span,
|
|
5475
6160
|
start,
|
|
@@ -5482,30 +6167,30 @@ var Column = ({
|
|
|
5482
6167
|
}) => {
|
|
5483
6168
|
const columnStyles = [
|
|
5484
6169
|
span && generateColumnSpan(span),
|
|
5485
|
-
start &&
|
|
6170
|
+
start && import_react36.css`
|
|
5486
6171
|
grid-column-start: ${start};
|
|
5487
6172
|
`,
|
|
5488
|
-
end &&
|
|
6173
|
+
end && import_react36.css`
|
|
5489
6174
|
grid-column-end: ${end};
|
|
5490
6175
|
`,
|
|
5491
|
-
row &&
|
|
6176
|
+
row && import_react36.css`
|
|
5492
6177
|
grid-row: ${row};
|
|
5493
6178
|
`,
|
|
5494
|
-
rowSpan &&
|
|
6179
|
+
rowSpan && import_react36.css`
|
|
5495
6180
|
grid-row: span ${rowSpan};
|
|
5496
6181
|
`,
|
|
5497
|
-
area &&
|
|
6182
|
+
area && import_react36.css`
|
|
5498
6183
|
grid-area: ${area};
|
|
5499
6184
|
`
|
|
5500
6185
|
].filter(Boolean);
|
|
5501
|
-
return /* @__PURE__ */ (0,
|
|
6186
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
5502
6187
|
};
|
|
5503
6188
|
var Column_default = Column;
|
|
5504
6189
|
|
|
5505
6190
|
// src/Grid/Grid.tsx
|
|
5506
|
-
var
|
|
5507
|
-
var
|
|
5508
|
-
var baseGridStyles =
|
|
6191
|
+
var import_react37 = require("@emotion/react");
|
|
6192
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
6193
|
+
var baseGridStyles = import_react37.css`
|
|
5509
6194
|
display: grid;
|
|
5510
6195
|
`;
|
|
5511
6196
|
var Grid = ({
|
|
@@ -5530,27 +6215,27 @@ var Grid = ({
|
|
|
5530
6215
|
columnGap && generateColumnGapStyles(columnGap),
|
|
5531
6216
|
alignItems && generateAlignItems(alignItems),
|
|
5532
6217
|
justifyItems && generateJustifyItems(justifyItems),
|
|
5533
|
-
autoRows &&
|
|
6218
|
+
autoRows && import_react37.css`
|
|
5534
6219
|
grid-auto-rows: ${autoRows};
|
|
5535
6220
|
`,
|
|
5536
|
-
autoColumns &&
|
|
6221
|
+
autoColumns && import_react37.css`
|
|
5537
6222
|
grid-auto-columns: ${autoColumns};
|
|
5538
6223
|
`,
|
|
5539
|
-
templateAreas &&
|
|
6224
|
+
templateAreas && import_react37.css`
|
|
5540
6225
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
5541
6226
|
`,
|
|
5542
|
-
justifyContent &&
|
|
6227
|
+
justifyContent && import_react37.css`
|
|
5543
6228
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
5544
6229
|
`
|
|
5545
6230
|
].filter(Boolean);
|
|
5546
|
-
return /* @__PURE__ */ (0,
|
|
6231
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
5547
6232
|
};
|
|
5548
6233
|
var Grid_default = Grid;
|
|
5549
6234
|
|
|
5550
6235
|
// src/Grid/GridContainer.tsx
|
|
5551
|
-
var
|
|
5552
|
-
var
|
|
5553
|
-
var baseContainerStyles =
|
|
6236
|
+
var import_react38 = require("@emotion/react");
|
|
6237
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
6238
|
+
var baseContainerStyles = import_react38.css`
|
|
5554
6239
|
width: 100%;
|
|
5555
6240
|
margin: 0 auto;
|
|
5556
6241
|
padding-left: 1rem;
|
|
@@ -5558,14 +6243,14 @@ var baseContainerStyles = import_react34.css`
|
|
|
5558
6243
|
`;
|
|
5559
6244
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
5560
6245
|
if (maxWidth === "full") {
|
|
5561
|
-
return
|
|
6246
|
+
return import_react38.css`
|
|
5562
6247
|
max-width: 100%;
|
|
5563
6248
|
padding-left: 0;
|
|
5564
6249
|
padding-right: 0;
|
|
5565
6250
|
`;
|
|
5566
6251
|
}
|
|
5567
6252
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
5568
|
-
return
|
|
6253
|
+
return import_react38.css`
|
|
5569
6254
|
max-width: ${width2};
|
|
5570
6255
|
|
|
5571
6256
|
${media.sm} {
|
|
@@ -5594,13 +6279,13 @@ var GridContainer = ({
|
|
|
5594
6279
|
baseContainerStyles,
|
|
5595
6280
|
generateMaxWidthStyles(maxWidth)
|
|
5596
6281
|
];
|
|
5597
|
-
return /* @__PURE__ */ (0,
|
|
6282
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
5598
6283
|
};
|
|
5599
6284
|
var GridContainer_default = GridContainer;
|
|
5600
6285
|
|
|
5601
6286
|
// src/HuntCard/HuntCard.styles.ts
|
|
5602
|
-
var
|
|
5603
|
-
var cardContainerStyles2 =
|
|
6287
|
+
var import_react39 = require("@emotion/react");
|
|
6288
|
+
var cardContainerStyles2 = import_react39.css`
|
|
5604
6289
|
position: relative;
|
|
5605
6290
|
height: 335px;
|
|
5606
6291
|
|
|
@@ -5608,12 +6293,12 @@ var cardContainerStyles2 = import_react35.css`
|
|
|
5608
6293
|
height: 480px;
|
|
5609
6294
|
}
|
|
5610
6295
|
`;
|
|
5611
|
-
var cardContentStyles2 =
|
|
6296
|
+
var cardContentStyles2 = import_react39.css`
|
|
5612
6297
|
position: relative;
|
|
5613
6298
|
border-radius: var(--spacing-4);
|
|
5614
6299
|
overflow: hidden;
|
|
5615
6300
|
`;
|
|
5616
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
6301
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react39.css`
|
|
5617
6302
|
background-image: linear-gradient(
|
|
5618
6303
|
180deg,
|
|
5619
6304
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -5627,7 +6312,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react35.css`
|
|
|
5627
6312
|
`;
|
|
5628
6313
|
|
|
5629
6314
|
// src/HuntCard/HuntCard.tsx
|
|
5630
|
-
var
|
|
6315
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
5631
6316
|
var HuntCard = ({
|
|
5632
6317
|
backgroundImage,
|
|
5633
6318
|
title,
|
|
@@ -5636,14 +6321,14 @@ var HuntCard = ({
|
|
|
5636
6321
|
className,
|
|
5637
6322
|
...rest
|
|
5638
6323
|
}) => {
|
|
5639
|
-
return /* @__PURE__ */ (0,
|
|
6324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5640
6325
|
Box_default,
|
|
5641
6326
|
{
|
|
5642
6327
|
display: "flex",
|
|
5643
6328
|
css: cardContainerStyles2,
|
|
5644
6329
|
className,
|
|
5645
6330
|
...rest,
|
|
5646
|
-
children: /* @__PURE__ */ (0,
|
|
6331
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5647
6332
|
Box_default,
|
|
5648
6333
|
{
|
|
5649
6334
|
display: "flex",
|
|
@@ -5651,9 +6336,9 @@ var HuntCard = ({
|
|
|
5651
6336
|
justifyContent: "flex-end",
|
|
5652
6337
|
p: 6,
|
|
5653
6338
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
5654
|
-
children: /* @__PURE__ */ (0,
|
|
5655
|
-
/* @__PURE__ */ (0,
|
|
5656
|
-
/* @__PURE__ */ (0,
|
|
6339
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
6340
|
+
/* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
6341
|
+
/* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
5657
6342
|
] })
|
|
5658
6343
|
}
|
|
5659
6344
|
)
|
|
@@ -5663,9 +6348,9 @@ var HuntCard = ({
|
|
|
5663
6348
|
var HuntCard_default = HuntCard;
|
|
5664
6349
|
|
|
5665
6350
|
// src/InfoBox/InfoBox.tsx
|
|
5666
|
-
var
|
|
6351
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
5667
6352
|
var InfoBox = ({ heading, features, className }) => {
|
|
5668
|
-
return /* @__PURE__ */ (0,
|
|
6353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
|
|
5669
6354
|
Box_default,
|
|
5670
6355
|
{
|
|
5671
6356
|
display: "flex",
|
|
@@ -5674,8 +6359,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
5674
6359
|
className,
|
|
5675
6360
|
color: "var(--text-primary)",
|
|
5676
6361
|
children: [
|
|
5677
|
-
/* @__PURE__ */ (0,
|
|
5678
|
-
/* @__PURE__ */ (0,
|
|
6362
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
6363
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5679
6364
|
Box_default,
|
|
5680
6365
|
{
|
|
5681
6366
|
display: "flex",
|
|
@@ -5685,7 +6370,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
5685
6370
|
borderRadius: "var(--radius-lg)",
|
|
5686
6371
|
bg: "var(--surface-neutral)",
|
|
5687
6372
|
className,
|
|
5688
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
6373
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5689
6374
|
FeatureList_default,
|
|
5690
6375
|
{
|
|
5691
6376
|
heading: section.heading,
|
|
@@ -5702,61 +6387,11 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
5702
6387
|
var InfoBox_default = InfoBox;
|
|
5703
6388
|
|
|
5704
6389
|
// src/ListingChat/ListingChat.tsx
|
|
5705
|
-
var
|
|
5706
|
-
|
|
5707
|
-
// src/TagChip/TagChip.styles.ts
|
|
5708
|
-
var import_react36 = require("@emotion/react");
|
|
5709
|
-
var tagChipVariantStyles = {
|
|
5710
|
-
primary: import_react36.css`
|
|
5711
|
-
background-color: var(--surface-disabled);
|
|
5712
|
-
border: 1px solid var(--surface-disabled);
|
|
5713
|
-
color: var(--text-primary);
|
|
5714
|
-
`,
|
|
5715
|
-
error: import_react36.css`
|
|
5716
|
-
background-color: var(--surface-error);
|
|
5717
|
-
border: 1px solid var(--color-red-300);
|
|
5718
|
-
color: var(--text-error);
|
|
5719
|
-
`,
|
|
5720
|
-
success: import_react36.css`
|
|
5721
|
-
background-color: var(--surface-success);
|
|
5722
|
-
border: 1px solid var(--color-green-300);
|
|
5723
|
-
color: var(--text-success);
|
|
5724
|
-
`,
|
|
5725
|
-
warning: import_react36.css`
|
|
5726
|
-
background-color: var(--surface-subtle);
|
|
5727
|
-
border: 1px solid var(--color-brown-200);
|
|
5728
|
-
color: var(--text-primary);
|
|
5729
|
-
`
|
|
5730
|
-
};
|
|
5731
|
-
|
|
5732
|
-
// src/TagChip/TagChip.tsx
|
|
5733
|
-
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
5734
|
-
var TagChip = ({
|
|
5735
|
-
variant = "primary",
|
|
5736
|
-
className,
|
|
5737
|
-
children,
|
|
5738
|
-
...rest
|
|
5739
|
-
}) => {
|
|
5740
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5741
|
-
Box_default,
|
|
5742
|
-
{
|
|
5743
|
-
display: "inline-flex",
|
|
5744
|
-
alignItems: "center",
|
|
5745
|
-
borderRadius: "var(--spacing-6)",
|
|
5746
|
-
px: "var(--spacing-4)",
|
|
5747
|
-
py: "var(--spacing-3)",
|
|
5748
|
-
css: tagChipVariantStyles[variant],
|
|
5749
|
-
className,
|
|
5750
|
-
...rest,
|
|
5751
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Text_default, { as: "span", size: "sm", fontWeight: "normal", children })
|
|
5752
|
-
}
|
|
5753
|
-
);
|
|
5754
|
-
};
|
|
5755
|
-
var TagChip_default = TagChip;
|
|
6390
|
+
var import_react41 = require("react");
|
|
5756
6391
|
|
|
5757
6392
|
// src/ListingChat/ListingChat.styles.ts
|
|
5758
|
-
var
|
|
5759
|
-
var containerStyles2 =
|
|
6393
|
+
var import_react40 = require("@emotion/react");
|
|
6394
|
+
var containerStyles2 = import_react40.css`
|
|
5760
6395
|
display: flex;
|
|
5761
6396
|
flex-direction: column;
|
|
5762
6397
|
gap: var(--spacing-4);
|
|
@@ -5764,13 +6399,13 @@ var containerStyles2 = import_react37.css`
|
|
|
5764
6399
|
border-radius: var(--radius-lg);
|
|
5765
6400
|
background: var(--surface-success);
|
|
5766
6401
|
`;
|
|
5767
|
-
var headerStyles =
|
|
6402
|
+
var headerStyles = import_react40.css`
|
|
5768
6403
|
display: flex;
|
|
5769
6404
|
align-items: flex-start;
|
|
5770
6405
|
justify-content: space-between;
|
|
5771
6406
|
gap: var(--spacing-2);
|
|
5772
6407
|
`;
|
|
5773
|
-
var chipsContainerStyles =
|
|
6408
|
+
var chipsContainerStyles = import_react40.css`
|
|
5774
6409
|
display: flex;
|
|
5775
6410
|
flex-wrap: wrap;
|
|
5776
6411
|
gap: var(--spacing-4);
|
|
@@ -5783,15 +6418,15 @@ var chipsContainerStyles = import_react37.css`
|
|
|
5783
6418
|
cursor: pointer;
|
|
5784
6419
|
}
|
|
5785
6420
|
`;
|
|
5786
|
-
var textAreaStyles =
|
|
6421
|
+
var textAreaStyles = import_react40.css`
|
|
5787
6422
|
min-height: 62px;
|
|
5788
6423
|
`;
|
|
5789
|
-
var inputWrapperStyles2 =
|
|
6424
|
+
var inputWrapperStyles2 = import_react40.css`
|
|
5790
6425
|
position: relative;
|
|
5791
6426
|
`;
|
|
5792
6427
|
|
|
5793
6428
|
// src/ListingChat/ListingChat.tsx
|
|
5794
|
-
var
|
|
6429
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
5795
6430
|
var ListingChat = ({
|
|
5796
6431
|
onSubmit,
|
|
5797
6432
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -5801,15 +6436,15 @@ var ListingChat = ({
|
|
|
5801
6436
|
disabled = false,
|
|
5802
6437
|
...rest
|
|
5803
6438
|
}) => {
|
|
5804
|
-
const [value, setValue] = (0,
|
|
5805
|
-
const handleSubmit = (0,
|
|
6439
|
+
const [value, setValue] = (0, import_react41.useState)("");
|
|
6440
|
+
const handleSubmit = (0, import_react41.useCallback)(() => {
|
|
5806
6441
|
const trimmed = value.trim();
|
|
5807
6442
|
if (!trimmed)
|
|
5808
6443
|
return;
|
|
5809
6444
|
onSubmit(trimmed);
|
|
5810
6445
|
setValue("");
|
|
5811
6446
|
}, [onSubmit, value]);
|
|
5812
|
-
const handleTagClick = (0,
|
|
6447
|
+
const handleTagClick = (0, import_react41.useCallback)(
|
|
5813
6448
|
(tag) => () => {
|
|
5814
6449
|
const trimmed = tag.trim();
|
|
5815
6450
|
if (!trimmed)
|
|
@@ -5818,18 +6453,18 @@ var ListingChat = ({
|
|
|
5818
6453
|
},
|
|
5819
6454
|
[onSubmit]
|
|
5820
6455
|
);
|
|
5821
|
-
return /* @__PURE__ */ (0,
|
|
5822
|
-
/* @__PURE__ */ (0,
|
|
5823
|
-
/* @__PURE__ */ (0,
|
|
5824
|
-
/* @__PURE__ */ (0,
|
|
5825
|
-
/* @__PURE__ */ (0,
|
|
6456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
6457
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: headerStyles, children: [
|
|
6458
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { children: [
|
|
6459
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
6460
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
5826
6461
|
] }),
|
|
5827
|
-
/* @__PURE__ */ (0,
|
|
5828
|
-
/* @__PURE__ */ (0,
|
|
5829
|
-
/* @__PURE__ */ (0,
|
|
6462
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
6463
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
6464
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
5830
6465
|
] })
|
|
5831
6466
|
] }),
|
|
5832
|
-
/* @__PURE__ */ (0,
|
|
6467
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5833
6468
|
TextArea,
|
|
5834
6469
|
{
|
|
5835
6470
|
rows: 1,
|
|
@@ -5844,14 +6479,14 @@ var ListingChat = ({
|
|
|
5844
6479
|
css: textAreaStyles
|
|
5845
6480
|
}
|
|
5846
6481
|
) }),
|
|
5847
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
5848
|
-
/* @__PURE__ */ (0,
|
|
5849
|
-
/* @__PURE__ */ (0,
|
|
6482
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, { children: [
|
|
6483
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
6484
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5850
6485
|
"button",
|
|
5851
6486
|
{
|
|
5852
6487
|
onClick: handleTagClick(tag),
|
|
5853
6488
|
disabled,
|
|
5854
|
-
children: /* @__PURE__ */ (0,
|
|
6489
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(TagChip_default, { children: tag })
|
|
5855
6490
|
},
|
|
5856
6491
|
tag
|
|
5857
6492
|
)) })
|
|
@@ -5861,11 +6496,11 @@ var ListingChat = ({
|
|
|
5861
6496
|
var ListingChat_default = ListingChat;
|
|
5862
6497
|
|
|
5863
6498
|
// src/Logo/Logo.tsx
|
|
5864
|
-
var
|
|
6499
|
+
var import_react42 = require("@emotion/react");
|
|
5865
6500
|
|
|
5866
6501
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
5867
|
-
var
|
|
5868
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
6502
|
+
var import_jsx_runtime226 = require("@emotion/react/jsx-runtime");
|
|
6503
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
|
|
5869
6504
|
"svg",
|
|
5870
6505
|
{
|
|
5871
6506
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5873,14 +6508,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5873
6508
|
fill: "none",
|
|
5874
6509
|
...props,
|
|
5875
6510
|
children: [
|
|
5876
|
-
/* @__PURE__ */ (0,
|
|
6511
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5877
6512
|
"path",
|
|
5878
6513
|
{
|
|
5879
6514
|
fill: "#000",
|
|
5880
6515
|
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"
|
|
5881
6516
|
}
|
|
5882
6517
|
) }),
|
|
5883
|
-
/* @__PURE__ */ (0,
|
|
6518
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5884
6519
|
"path",
|
|
5885
6520
|
{
|
|
5886
6521
|
fill: "#FAD44E",
|
|
@@ -5889,14 +6524,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5889
6524
|
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"
|
|
5890
6525
|
}
|
|
5891
6526
|
),
|
|
5892
|
-
/* @__PURE__ */ (0,
|
|
6527
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5893
6528
|
"path",
|
|
5894
6529
|
{
|
|
5895
6530
|
fill: "#fff",
|
|
5896
6531
|
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"
|
|
5897
6532
|
}
|
|
5898
6533
|
),
|
|
5899
|
-
/* @__PURE__ */ (0,
|
|
6534
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
|
|
5900
6535
|
"filter",
|
|
5901
6536
|
{
|
|
5902
6537
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -5907,8 +6542,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5907
6542
|
colorInterpolationFilters: "sRGB",
|
|
5908
6543
|
filterUnits: "userSpaceOnUse",
|
|
5909
6544
|
children: [
|
|
5910
|
-
/* @__PURE__ */ (0,
|
|
5911
|
-
/* @__PURE__ */ (0,
|
|
6545
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6546
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5912
6547
|
"feColorMatrix",
|
|
5913
6548
|
{
|
|
5914
6549
|
in: "SourceAlpha",
|
|
@@ -5916,18 +6551,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5916
6551
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5917
6552
|
}
|
|
5918
6553
|
),
|
|
5919
|
-
/* @__PURE__ */ (0,
|
|
5920
|
-
/* @__PURE__ */ (0,
|
|
5921
|
-
/* @__PURE__ */ (0,
|
|
5922
|
-
/* @__PURE__ */ (0,
|
|
5923
|
-
/* @__PURE__ */ (0,
|
|
6554
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("feOffset", { dy: 1 }),
|
|
6555
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6556
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6557
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
6558
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5924
6559
|
"feBlend",
|
|
5925
6560
|
{
|
|
5926
6561
|
in2: "BackgroundImageFix",
|
|
5927
6562
|
result: "effect1_dropShadow_257_2540"
|
|
5928
6563
|
}
|
|
5929
6564
|
),
|
|
5930
|
-
/* @__PURE__ */ (0,
|
|
6565
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5931
6566
|
"feBlend",
|
|
5932
6567
|
{
|
|
5933
6568
|
in: "SourceGraphic",
|
|
@@ -5944,8 +6579,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5944
6579
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
5945
6580
|
|
|
5946
6581
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
5947
|
-
var
|
|
5948
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
6582
|
+
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6583
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
5949
6584
|
"svg",
|
|
5950
6585
|
{
|
|
5951
6586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5953,14 +6588,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
5953
6588
|
fill: "none",
|
|
5954
6589
|
...props,
|
|
5955
6590
|
children: [
|
|
5956
|
-
/* @__PURE__ */ (0,
|
|
6591
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5957
6592
|
"path",
|
|
5958
6593
|
{
|
|
5959
6594
|
fill: "#000",
|
|
5960
6595
|
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"
|
|
5961
6596
|
}
|
|
5962
6597
|
) }),
|
|
5963
|
-
/* @__PURE__ */ (0,
|
|
6598
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5964
6599
|
"path",
|
|
5965
6600
|
{
|
|
5966
6601
|
fill: "#FAD44E",
|
|
@@ -5969,14 +6604,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
5969
6604
|
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"
|
|
5970
6605
|
}
|
|
5971
6606
|
),
|
|
5972
|
-
/* @__PURE__ */ (0,
|
|
6607
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5973
6608
|
"path",
|
|
5974
6609
|
{
|
|
5975
6610
|
fill: "#1A202C",
|
|
5976
6611
|
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"
|
|
5977
6612
|
}
|
|
5978
6613
|
),
|
|
5979
|
-
/* @__PURE__ */ (0,
|
|
6614
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
5980
6615
|
"filter",
|
|
5981
6616
|
{
|
|
5982
6617
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -5987,8 +6622,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
5987
6622
|
colorInterpolationFilters: "sRGB",
|
|
5988
6623
|
filterUnits: "userSpaceOnUse",
|
|
5989
6624
|
children: [
|
|
5990
|
-
/* @__PURE__ */ (0,
|
|
5991
|
-
/* @__PURE__ */ (0,
|
|
6625
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6626
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5992
6627
|
"feColorMatrix",
|
|
5993
6628
|
{
|
|
5994
6629
|
in: "SourceAlpha",
|
|
@@ -5996,18 +6631,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
5996
6631
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5997
6632
|
}
|
|
5998
6633
|
),
|
|
5999
|
-
/* @__PURE__ */ (0,
|
|
6000
|
-
/* @__PURE__ */ (0,
|
|
6001
|
-
/* @__PURE__ */ (0,
|
|
6002
|
-
/* @__PURE__ */ (0,
|
|
6003
|
-
/* @__PURE__ */ (0,
|
|
6634
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feOffset", { dy: 1 }),
|
|
6635
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6636
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6637
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
6638
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6004
6639
|
"feBlend",
|
|
6005
6640
|
{
|
|
6006
6641
|
in2: "BackgroundImageFix",
|
|
6007
6642
|
result: "effect1_dropShadow_257_2538"
|
|
6008
6643
|
}
|
|
6009
6644
|
),
|
|
6010
|
-
/* @__PURE__ */ (0,
|
|
6645
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6011
6646
|
"feBlend",
|
|
6012
6647
|
{
|
|
6013
6648
|
in: "SourceGraphic",
|
|
@@ -6024,8 +6659,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
6024
6659
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
6025
6660
|
|
|
6026
6661
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
6027
|
-
var
|
|
6028
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
6662
|
+
var import_jsx_runtime228 = require("@emotion/react/jsx-runtime");
|
|
6663
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6029
6664
|
"svg",
|
|
6030
6665
|
{
|
|
6031
6666
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6033,14 +6668,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6033
6668
|
fill: "none",
|
|
6034
6669
|
...props,
|
|
6035
6670
|
children: [
|
|
6036
|
-
/* @__PURE__ */ (0,
|
|
6671
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6037
6672
|
"path",
|
|
6038
6673
|
{
|
|
6039
6674
|
fill: "#E2430C",
|
|
6040
6675
|
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"
|
|
6041
6676
|
}
|
|
6042
6677
|
),
|
|
6043
|
-
/* @__PURE__ */ (0,
|
|
6678
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6044
6679
|
"path",
|
|
6045
6680
|
{
|
|
6046
6681
|
fill: "#fff",
|
|
@@ -6053,8 +6688,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6053
6688
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
6054
6689
|
|
|
6055
6690
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
6056
|
-
var
|
|
6057
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
6691
|
+
var import_jsx_runtime229 = require("@emotion/react/jsx-runtime");
|
|
6692
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6058
6693
|
"svg",
|
|
6059
6694
|
{
|
|
6060
6695
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6062,14 +6697,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6062
6697
|
fill: "none",
|
|
6063
6698
|
...props,
|
|
6064
6699
|
children: [
|
|
6065
|
-
/* @__PURE__ */ (0,
|
|
6700
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6066
6701
|
"path",
|
|
6067
6702
|
{
|
|
6068
6703
|
fill: "#E2430C",
|
|
6069
6704
|
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"
|
|
6070
6705
|
}
|
|
6071
6706
|
),
|
|
6072
|
-
/* @__PURE__ */ (0,
|
|
6707
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6073
6708
|
"path",
|
|
6074
6709
|
{
|
|
6075
6710
|
fill: "#000",
|
|
@@ -6082,8 +6717,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6082
6717
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
6083
6718
|
|
|
6084
6719
|
// src/Logo/Logo.tsx
|
|
6085
|
-
var
|
|
6086
|
-
var logoStyles = (size) =>
|
|
6720
|
+
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6721
|
+
var logoStyles = (size) => import_react42.css`
|
|
6087
6722
|
width: ${space[size]};
|
|
6088
6723
|
height: auto;
|
|
6089
6724
|
display: block;
|
|
@@ -6111,18 +6746,18 @@ var Logo = ({
|
|
|
6111
6746
|
return LandtrustStandardLight_default;
|
|
6112
6747
|
};
|
|
6113
6748
|
const LogoComponent = getLogoComponent();
|
|
6114
|
-
return /* @__PURE__ */ (0,
|
|
6749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
6115
6750
|
};
|
|
6116
6751
|
var Logo_default = Logo;
|
|
6117
6752
|
|
|
6118
6753
|
// src/Navigation/Navigation.styles.ts
|
|
6119
|
-
var
|
|
6120
|
-
var navigationStyles =
|
|
6754
|
+
var import_react43 = require("@emotion/react");
|
|
6755
|
+
var navigationStyles = import_react43.css`
|
|
6121
6756
|
width: 100%;
|
|
6122
6757
|
background-color: white;
|
|
6123
6758
|
border-bottom: 1px solid #e5e5e5;
|
|
6124
6759
|
`;
|
|
6125
|
-
var hamburgerButtonStyles =
|
|
6760
|
+
var hamburgerButtonStyles = import_react43.css`
|
|
6126
6761
|
cursor: pointer;
|
|
6127
6762
|
&:focus {
|
|
6128
6763
|
outline: 2px solid #4f46e5;
|
|
@@ -6133,7 +6768,7 @@ var hamburgerButtonStyles = import_react40.css`
|
|
|
6133
6768
|
display: none;
|
|
6134
6769
|
}
|
|
6135
6770
|
`;
|
|
6136
|
-
var centeredLogoStyles =
|
|
6771
|
+
var centeredLogoStyles = import_react43.css`
|
|
6137
6772
|
transform: translate(-50%, -50%);
|
|
6138
6773
|
max-width: 150px;
|
|
6139
6774
|
|
|
@@ -6141,27 +6776,27 @@ var centeredLogoStyles = import_react40.css`
|
|
|
6141
6776
|
display: none;
|
|
6142
6777
|
}
|
|
6143
6778
|
`;
|
|
6144
|
-
var desktopLogoStyles =
|
|
6779
|
+
var desktopLogoStyles = import_react43.css`
|
|
6145
6780
|
display: none;
|
|
6146
6781
|
|
|
6147
6782
|
@media (min-width: 768px) {
|
|
6148
6783
|
display: block;
|
|
6149
6784
|
}
|
|
6150
6785
|
`;
|
|
6151
|
-
var containerStyles3 =
|
|
6786
|
+
var containerStyles3 = import_react43.css`
|
|
6152
6787
|
@media (min-width: 768px) {
|
|
6153
6788
|
justify-content: space-between;
|
|
6154
6789
|
position: static;
|
|
6155
6790
|
}
|
|
6156
6791
|
`;
|
|
6157
|
-
var logoStyles2 =
|
|
6792
|
+
var logoStyles2 = import_react43.css`
|
|
6158
6793
|
width: 100%;
|
|
6159
6794
|
|
|
6160
6795
|
@media (min-width: 768px) {
|
|
6161
6796
|
width: initial;
|
|
6162
6797
|
}
|
|
6163
6798
|
`;
|
|
6164
|
-
var desktopNavStyles =
|
|
6799
|
+
var desktopNavStyles = import_react43.css`
|
|
6165
6800
|
display: none;
|
|
6166
6801
|
|
|
6167
6802
|
@media (min-width: 768px) {
|
|
@@ -6170,7 +6805,7 @@ var desktopNavStyles = import_react40.css`
|
|
|
6170
6805
|
gap: 32px;
|
|
6171
6806
|
}
|
|
6172
6807
|
`;
|
|
6173
|
-
var navLinksStyles =
|
|
6808
|
+
var navLinksStyles = import_react43.css`
|
|
6174
6809
|
display: flex;
|
|
6175
6810
|
align-items: center;
|
|
6176
6811
|
gap: 24px;
|
|
@@ -6178,7 +6813,7 @@ var navLinksStyles = import_react40.css`
|
|
|
6178
6813
|
margin: 0;
|
|
6179
6814
|
padding: 0;
|
|
6180
6815
|
`;
|
|
6181
|
-
var navLinkStyles =
|
|
6816
|
+
var navLinkStyles = import_react43.css`
|
|
6182
6817
|
text-decoration: none;
|
|
6183
6818
|
color: #374151;
|
|
6184
6819
|
font-weight: 500;
|
|
@@ -6194,7 +6829,7 @@ var navLinkStyles = import_react40.css`
|
|
|
6194
6829
|
outline-offset: 2px;
|
|
6195
6830
|
}
|
|
6196
6831
|
`;
|
|
6197
|
-
var avatarPlaceholderStyles =
|
|
6832
|
+
var avatarPlaceholderStyles = import_react43.css`
|
|
6198
6833
|
width: 32px;
|
|
6199
6834
|
height: 32px;
|
|
6200
6835
|
border-radius: 50%;
|
|
@@ -6219,7 +6854,7 @@ var avatarPlaceholderStyles = import_react40.css`
|
|
|
6219
6854
|
`;
|
|
6220
6855
|
|
|
6221
6856
|
// src/Navigation/Navigation.tsx
|
|
6222
|
-
var
|
|
6857
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6223
6858
|
var Navigation = ({
|
|
6224
6859
|
onMenuToggle,
|
|
6225
6860
|
className,
|
|
@@ -6233,7 +6868,7 @@ var Navigation = ({
|
|
|
6233
6868
|
onAvatarClick,
|
|
6234
6869
|
...rest
|
|
6235
6870
|
}) => {
|
|
6236
|
-
return /* @__PURE__ */ (0,
|
|
6871
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
|
|
6237
6872
|
Box_default,
|
|
6238
6873
|
{
|
|
6239
6874
|
display: "flex",
|
|
@@ -6242,7 +6877,7 @@ var Navigation = ({
|
|
|
6242
6877
|
position: "relative",
|
|
6243
6878
|
css: containerStyles3,
|
|
6244
6879
|
children: [
|
|
6245
|
-
/* @__PURE__ */ (0,
|
|
6880
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6246
6881
|
Box_default,
|
|
6247
6882
|
{
|
|
6248
6883
|
as: "button",
|
|
@@ -6254,11 +6889,11 @@ var Navigation = ({
|
|
|
6254
6889
|
border: "none",
|
|
6255
6890
|
padding: space[2],
|
|
6256
6891
|
css: hamburgerButtonStyles,
|
|
6257
|
-
children: /* @__PURE__ */ (0,
|
|
6892
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
6258
6893
|
}
|
|
6259
6894
|
),
|
|
6260
|
-
/* @__PURE__ */ (0,
|
|
6261
|
-
/* @__PURE__ */ (0,
|
|
6895
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
6896
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6262
6897
|
Logo_default,
|
|
6263
6898
|
{
|
|
6264
6899
|
variant: logoVariant,
|
|
@@ -6267,8 +6902,8 @@ var Navigation = ({
|
|
|
6267
6902
|
css: logoStyles2
|
|
6268
6903
|
}
|
|
6269
6904
|
) }),
|
|
6270
|
-
/* @__PURE__ */ (0,
|
|
6271
|
-
/* @__PURE__ */ (0,
|
|
6905
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
6906
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6272
6907
|
"a",
|
|
6273
6908
|
{
|
|
6274
6909
|
href: link.href,
|
|
@@ -6277,7 +6912,7 @@ var Navigation = ({
|
|
|
6277
6912
|
children: link.label
|
|
6278
6913
|
}
|
|
6279
6914
|
) }, link.href)) }) }),
|
|
6280
|
-
/* @__PURE__ */ (0,
|
|
6915
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6281
6916
|
Box_default,
|
|
6282
6917
|
{
|
|
6283
6918
|
as: "button",
|
|
@@ -6296,8 +6931,8 @@ var Navigation = ({
|
|
|
6296
6931
|
var Navigation_default = Navigation;
|
|
6297
6932
|
|
|
6298
6933
|
// src/PackageCard/PackageCard.styles.ts
|
|
6299
|
-
var
|
|
6300
|
-
var cardContainerStyles3 =
|
|
6934
|
+
var import_react44 = require("@emotion/react");
|
|
6935
|
+
var cardContainerStyles3 = import_react44.css`
|
|
6301
6936
|
color: var(--text-primary);
|
|
6302
6937
|
position: relative;
|
|
6303
6938
|
width: 100%;
|
|
@@ -6314,14 +6949,14 @@ var cardContainerStyles3 = import_react41.css`
|
|
|
6314
6949
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
6315
6950
|
}
|
|
6316
6951
|
`;
|
|
6317
|
-
var imageContainerStyles =
|
|
6952
|
+
var imageContainerStyles = import_react44.css`
|
|
6318
6953
|
position: relative;
|
|
6319
6954
|
width: 100%;
|
|
6320
6955
|
height: 200px;
|
|
6321
6956
|
overflow: hidden;
|
|
6322
6957
|
border-radius: var(--spacing-4);
|
|
6323
6958
|
`;
|
|
6324
|
-
var
|
|
6959
|
+
var imageStyles2 = import_react44.css`
|
|
6325
6960
|
width: 100%;
|
|
6326
6961
|
height: 100%;
|
|
6327
6962
|
background-size: cover;
|
|
@@ -6329,13 +6964,13 @@ var imageStyles = import_react41.css`
|
|
|
6329
6964
|
background-repeat: no-repeat;
|
|
6330
6965
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
6331
6966
|
`;
|
|
6332
|
-
var badgeStyles =
|
|
6967
|
+
var badgeStyles = import_react44.css`
|
|
6333
6968
|
position: absolute;
|
|
6334
6969
|
top: var(--spacing-3);
|
|
6335
6970
|
left: var(--spacing-3);
|
|
6336
6971
|
z-index: 2;
|
|
6337
6972
|
`;
|
|
6338
|
-
var heartIconStyles =
|
|
6973
|
+
var heartIconStyles = import_react44.css`
|
|
6339
6974
|
position: absolute;
|
|
6340
6975
|
top: var(--spacing-3);
|
|
6341
6976
|
right: var(--spacing-3);
|
|
@@ -6357,12 +6992,12 @@ var heartIconStyles = import_react41.css`
|
|
|
6357
6992
|
transform: scale(1.1);
|
|
6358
6993
|
}
|
|
6359
6994
|
`;
|
|
6360
|
-
var contentStyles2 =
|
|
6995
|
+
var contentStyles2 = import_react44.css`
|
|
6361
6996
|
padding: var(--spacing-3);
|
|
6362
6997
|
`;
|
|
6363
6998
|
|
|
6364
6999
|
// src/PackageCard/PackageCard.tsx
|
|
6365
|
-
var
|
|
7000
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6366
7001
|
var PackageCard = ({
|
|
6367
7002
|
images,
|
|
6368
7003
|
title,
|
|
@@ -6379,13 +7014,13 @@ var PackageCard = ({
|
|
|
6379
7014
|
...rest
|
|
6380
7015
|
}) => {
|
|
6381
7016
|
const mainImage = images[0] || "";
|
|
6382
|
-
return /* @__PURE__ */ (0,
|
|
6383
|
-
/* @__PURE__ */ (0,
|
|
6384
|
-
tripsLeft && /* @__PURE__ */ (0,
|
|
7017
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { css: cardContainerStyles3, className, ...rest, children: [
|
|
7018
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { css: imageContainerStyles, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { css: [imageStyles2, { backgroundImage: `url(${mainImage})` }], children: [
|
|
7019
|
+
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(AvailabilityBadge_default, { variant: "warning", css: badgeStyles, children: [
|
|
6385
7020
|
tripsLeft,
|
|
6386
7021
|
" Trips Left"
|
|
6387
7022
|
] }),
|
|
6388
|
-
/* @__PURE__ */ (0,
|
|
7023
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6389
7024
|
Box_default,
|
|
6390
7025
|
{
|
|
6391
7026
|
css: heartIconStyles,
|
|
@@ -6393,7 +7028,7 @@ var PackageCard = ({
|
|
|
6393
7028
|
e.stopPropagation();
|
|
6394
7029
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
6395
7030
|
},
|
|
6396
|
-
children: /* @__PURE__ */ (0,
|
|
7031
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6397
7032
|
Icon_default,
|
|
6398
7033
|
{
|
|
6399
7034
|
variant: isFavorited ? "HeartSolid" : "Heart",
|
|
@@ -6403,8 +7038,8 @@ var PackageCard = ({
|
|
|
6403
7038
|
}
|
|
6404
7039
|
)
|
|
6405
7040
|
] }) }),
|
|
6406
|
-
/* @__PURE__ */ (0,
|
|
6407
|
-
/* @__PURE__ */ (0,
|
|
7041
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
7042
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6408
7043
|
Box_default,
|
|
6409
7044
|
{
|
|
6410
7045
|
onClick,
|
|
@@ -6413,9 +7048,9 @@ var PackageCard = ({
|
|
|
6413
7048
|
gap: "var(--spacing-1)",
|
|
6414
7049
|
mb: "var(--spacing-4)",
|
|
6415
7050
|
children: [
|
|
6416
|
-
/* @__PURE__ */ (0,
|
|
6417
|
-
/* @__PURE__ */ (0,
|
|
6418
|
-
/* @__PURE__ */ (0,
|
|
7051
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
7052
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "xs", fontWeight: "bold", children: subtitle }) }),
|
|
7053
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { size: "xs", fontWeight: "normal", children: [
|
|
6419
7054
|
"Starting Price ",
|
|
6420
7055
|
startingPrice,
|
|
6421
7056
|
" / Guest"
|
|
@@ -6423,22 +7058,22 @@ var PackageCard = ({
|
|
|
6423
7058
|
]
|
|
6424
7059
|
}
|
|
6425
7060
|
),
|
|
6426
|
-
/* @__PURE__ */ (0,
|
|
6427
|
-
days && /* @__PURE__ */ (0,
|
|
7061
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", gap: "var(--spacing-3)", alignItems: "center", children: [
|
|
7062
|
+
days && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6428
7063
|
IconLabel_default,
|
|
6429
7064
|
{
|
|
6430
7065
|
variant: "Calendar",
|
|
6431
7066
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
6432
7067
|
}
|
|
6433
7068
|
),
|
|
6434
|
-
guests && /* @__PURE__ */ (0,
|
|
7069
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6435
7070
|
IconLabel_default,
|
|
6436
7071
|
{
|
|
6437
7072
|
variant: "User",
|
|
6438
7073
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
6439
7074
|
}
|
|
6440
7075
|
),
|
|
6441
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
7076
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
6442
7077
|
] })
|
|
6443
7078
|
] })
|
|
6444
7079
|
] });
|
|
@@ -6446,14 +7081,14 @@ var PackageCard = ({
|
|
|
6446
7081
|
var PackageCard_default = PackageCard;
|
|
6447
7082
|
|
|
6448
7083
|
// src/PackageHeader/PackageHeader.tsx
|
|
6449
|
-
var
|
|
7084
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
6450
7085
|
var PackageHeader = ({
|
|
6451
7086
|
header,
|
|
6452
7087
|
subheader,
|
|
6453
7088
|
features,
|
|
6454
7089
|
className
|
|
6455
7090
|
}) => {
|
|
6456
|
-
return /* @__PURE__ */ (0,
|
|
7091
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6457
7092
|
Box_default,
|
|
6458
7093
|
{
|
|
6459
7094
|
display: "flex",
|
|
@@ -6462,9 +7097,9 @@ var PackageHeader = ({
|
|
|
6462
7097
|
color: "var(--text-primary)",
|
|
6463
7098
|
className,
|
|
6464
7099
|
children: [
|
|
6465
|
-
/* @__PURE__ */ (0,
|
|
6466
|
-
subheader && /* @__PURE__ */ (0,
|
|
6467
|
-
features && /* @__PURE__ */ (0,
|
|
7100
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
7101
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { children: subheader }),
|
|
7102
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(FeatureList_default, { items: features })
|
|
6468
7103
|
]
|
|
6469
7104
|
}
|
|
6470
7105
|
);
|
|
@@ -6472,8 +7107,8 @@ var PackageHeader = ({
|
|
|
6472
7107
|
var PackageHeader_default = PackageHeader;
|
|
6473
7108
|
|
|
6474
7109
|
// src/StarRating/StarRating.tsx
|
|
6475
|
-
var
|
|
6476
|
-
var
|
|
7110
|
+
var import_react45 = require("@emotion/react");
|
|
7111
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
6477
7112
|
var starSize = {
|
|
6478
7113
|
sm: {
|
|
6479
7114
|
size: "medium",
|
|
@@ -6492,13 +7127,13 @@ var StarRating = ({
|
|
|
6492
7127
|
const stars = [];
|
|
6493
7128
|
for (let i = 1; i <= 5; i++) {
|
|
6494
7129
|
stars.push(
|
|
6495
|
-
/* @__PURE__ */ (0,
|
|
7130
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6496
7131
|
Icon_default,
|
|
6497
7132
|
{
|
|
6498
7133
|
variant: "StarSolid",
|
|
6499
7134
|
size: starSize[size].size,
|
|
6500
7135
|
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)",
|
|
6501
|
-
css:
|
|
7136
|
+
css: import_react45.css`
|
|
6502
7137
|
${size === "md" && "width: 40px; height: 40px;"}
|
|
6503
7138
|
`
|
|
6504
7139
|
},
|
|
@@ -6506,7 +7141,7 @@ var StarRating = ({
|
|
|
6506
7141
|
)
|
|
6507
7142
|
);
|
|
6508
7143
|
}
|
|
6509
|
-
return /* @__PURE__ */ (0,
|
|
7144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6510
7145
|
Box_default,
|
|
6511
7146
|
{
|
|
6512
7147
|
className,
|
|
@@ -6520,7 +7155,7 @@ var StarRating = ({
|
|
|
6520
7155
|
var StarRating_default = StarRating;
|
|
6521
7156
|
|
|
6522
7157
|
// src/UserCard/UserCard.tsx
|
|
6523
|
-
var
|
|
7158
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
6524
7159
|
var UserCard = ({
|
|
6525
7160
|
avatarSrc,
|
|
6526
7161
|
title,
|
|
@@ -6529,7 +7164,7 @@ var UserCard = ({
|
|
|
6529
7164
|
showRating = true,
|
|
6530
7165
|
className
|
|
6531
7166
|
}) => {
|
|
6532
|
-
return /* @__PURE__ */ (0,
|
|
7167
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
6533
7168
|
Box_default,
|
|
6534
7169
|
{
|
|
6535
7170
|
display: "flex",
|
|
@@ -6537,11 +7172,11 @@ var UserCard = ({
|
|
|
6537
7172
|
gap: "var(--spacing-4)",
|
|
6538
7173
|
className,
|
|
6539
7174
|
children: [
|
|
6540
|
-
/* @__PURE__ */ (0,
|
|
6541
|
-
/* @__PURE__ */ (0,
|
|
6542
|
-
/* @__PURE__ */ (0,
|
|
6543
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6544
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
7175
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Avatar_default, { type: "image", src: avatarSrc, alt: `${title}'s avatar` }),
|
|
7176
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
7177
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
7178
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }),
|
|
7179
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(StarRating_default, { rating, size: "sm" })
|
|
6545
7180
|
] })
|
|
6546
7181
|
]
|
|
6547
7182
|
}
|
|
@@ -6550,8 +7185,8 @@ var UserCard = ({
|
|
|
6550
7185
|
var UserCard_default = UserCard;
|
|
6551
7186
|
|
|
6552
7187
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
6553
|
-
var
|
|
6554
|
-
var
|
|
7188
|
+
var import_react46 = require("@emotion/react");
|
|
7189
|
+
var imageStyles3 = import_react46.css`
|
|
6555
7190
|
flex: 1;
|
|
6556
7191
|
min-width: 0;
|
|
6557
7192
|
aspect-ratio: 1;
|
|
@@ -6561,18 +7196,18 @@ var imageStyles2 = import_react43.css`
|
|
|
6561
7196
|
`;
|
|
6562
7197
|
|
|
6563
7198
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
6564
|
-
var
|
|
7199
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
6565
7200
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
6566
7201
|
const displayImages = images.slice(0, maxImages);
|
|
6567
7202
|
if (displayImages.length === 0) {
|
|
6568
7203
|
return null;
|
|
6569
7204
|
}
|
|
6570
|
-
return /* @__PURE__ */ (0,
|
|
7205
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(
|
|
6571
7206
|
"img",
|
|
6572
7207
|
{
|
|
6573
7208
|
src: image,
|
|
6574
7209
|
alt: `Review ${index + 1}`,
|
|
6575
|
-
css:
|
|
7210
|
+
css: imageStyles3
|
|
6576
7211
|
},
|
|
6577
7212
|
index
|
|
6578
7213
|
)) });
|
|
@@ -6580,7 +7215,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
6580
7215
|
var ReviewImages_default = ReviewImages;
|
|
6581
7216
|
|
|
6582
7217
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
6583
|
-
var
|
|
7218
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
6584
7219
|
var ReviewReply = ({
|
|
6585
7220
|
avatarSrc,
|
|
6586
7221
|
name,
|
|
@@ -6589,7 +7224,7 @@ var ReviewReply = ({
|
|
|
6589
7224
|
label,
|
|
6590
7225
|
rating
|
|
6591
7226
|
}) => {
|
|
6592
|
-
return /* @__PURE__ */ (0,
|
|
7227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
6593
7228
|
Box_default,
|
|
6594
7229
|
{
|
|
6595
7230
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -6599,7 +7234,7 @@ var ReviewReply = ({
|
|
|
6599
7234
|
flexDirection: "column",
|
|
6600
7235
|
gap: "var(--spacing-3)",
|
|
6601
7236
|
children: [
|
|
6602
|
-
/* @__PURE__ */ (0,
|
|
7237
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
6603
7238
|
Box_default,
|
|
6604
7239
|
{
|
|
6605
7240
|
display: "flex",
|
|
@@ -6607,7 +7242,7 @@ var ReviewReply = ({
|
|
|
6607
7242
|
justifyContent: "space-between",
|
|
6608
7243
|
gap: "var(--spacing-2)",
|
|
6609
7244
|
children: [
|
|
6610
|
-
/* @__PURE__ */ (0,
|
|
7245
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
6611
7246
|
UserCard_default,
|
|
6612
7247
|
{
|
|
6613
7248
|
avatarSrc,
|
|
@@ -6616,11 +7251,11 @@ var ReviewReply = ({
|
|
|
6616
7251
|
rating
|
|
6617
7252
|
}
|
|
6618
7253
|
),
|
|
6619
|
-
/* @__PURE__ */ (0,
|
|
7254
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
6620
7255
|
]
|
|
6621
7256
|
}
|
|
6622
7257
|
),
|
|
6623
|
-
/* @__PURE__ */ (0,
|
|
7258
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Text_default, { children: content })
|
|
6624
7259
|
]
|
|
6625
7260
|
}
|
|
6626
7261
|
);
|
|
@@ -6628,7 +7263,7 @@ var ReviewReply = ({
|
|
|
6628
7263
|
var ReviewReply_default = ReviewReply;
|
|
6629
7264
|
|
|
6630
7265
|
// src/ReviewCard/ReviewCard.tsx
|
|
6631
|
-
var
|
|
7266
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
6632
7267
|
var ReviewCard = ({
|
|
6633
7268
|
avatarSrc,
|
|
6634
7269
|
name,
|
|
@@ -6640,7 +7275,7 @@ var ReviewCard = ({
|
|
|
6640
7275
|
replies = [],
|
|
6641
7276
|
className
|
|
6642
7277
|
}) => {
|
|
6643
|
-
return /* @__PURE__ */ (0,
|
|
7278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
6644
7279
|
Box_default,
|
|
6645
7280
|
{
|
|
6646
7281
|
backgroundColor: "white",
|
|
@@ -6652,7 +7287,7 @@ var ReviewCard = ({
|
|
|
6652
7287
|
border: "1px solid var(--color-neutral-200)",
|
|
6653
7288
|
className,
|
|
6654
7289
|
children: [
|
|
6655
|
-
/* @__PURE__ */ (0,
|
|
7290
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
6656
7291
|
UserCard_default,
|
|
6657
7292
|
{
|
|
6658
7293
|
avatarSrc,
|
|
@@ -6661,10 +7296,10 @@ var ReviewCard = ({
|
|
|
6661
7296
|
rating
|
|
6662
7297
|
}
|
|
6663
7298
|
),
|
|
6664
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
6665
|
-
/* @__PURE__ */ (0,
|
|
6666
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
6667
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
7299
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
7300
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Text_default, { size: "md", children: content }),
|
|
7301
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(ReviewImages_default, { images }),
|
|
7302
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
6668
7303
|
ReviewReply_default,
|
|
6669
7304
|
{
|
|
6670
7305
|
avatarSrc: reply.avatarSrc,
|
|
@@ -6683,9 +7318,9 @@ var ReviewCard = ({
|
|
|
6683
7318
|
var ReviewCard_default = ReviewCard;
|
|
6684
7319
|
|
|
6685
7320
|
// src/Reviews/components/ReviewItem.tsx
|
|
6686
|
-
var
|
|
7321
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
6687
7322
|
var ReviewItem = ({ label, rating }) => {
|
|
6688
|
-
return /* @__PURE__ */ (0,
|
|
7323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
|
|
6689
7324
|
Box_default,
|
|
6690
7325
|
{
|
|
6691
7326
|
display: "flex",
|
|
@@ -6693,10 +7328,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
6693
7328
|
alignItems: "center",
|
|
6694
7329
|
width: "100%",
|
|
6695
7330
|
children: [
|
|
6696
|
-
/* @__PURE__ */ (0,
|
|
6697
|
-
/* @__PURE__ */ (0,
|
|
6698
|
-
/* @__PURE__ */ (0,
|
|
6699
|
-
/* @__PURE__ */ (0,
|
|
7331
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
7332
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
7333
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
7334
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(Text_default, { fontWeight: "semibold", children: [
|
|
6700
7335
|
rating,
|
|
6701
7336
|
"/5"
|
|
6702
7337
|
] })
|
|
@@ -6708,14 +7343,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
6708
7343
|
var ReviewItem_default = ReviewItem;
|
|
6709
7344
|
|
|
6710
7345
|
// src/Reviews/Reviews.tsx
|
|
6711
|
-
var
|
|
7346
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
6712
7347
|
var Reviews = ({
|
|
6713
7348
|
averageRating,
|
|
6714
7349
|
totalReviews,
|
|
6715
7350
|
items,
|
|
6716
7351
|
className
|
|
6717
7352
|
}) => {
|
|
6718
|
-
return /* @__PURE__ */ (0,
|
|
7353
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
|
|
6719
7354
|
Box_default,
|
|
6720
7355
|
{
|
|
6721
7356
|
width: "100%",
|
|
@@ -6728,7 +7363,7 @@ var Reviews = ({
|
|
|
6728
7363
|
p: "var(--spacing-4)",
|
|
6729
7364
|
className,
|
|
6730
7365
|
children: [
|
|
6731
|
-
/* @__PURE__ */ (0,
|
|
7366
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
|
|
6732
7367
|
Box_default,
|
|
6733
7368
|
{
|
|
6734
7369
|
display: "flex",
|
|
@@ -6736,9 +7371,9 @@ var Reviews = ({
|
|
|
6736
7371
|
alignItems: "center",
|
|
6737
7372
|
gap: "var(--spacing-2)",
|
|
6738
7373
|
children: [
|
|
6739
|
-
/* @__PURE__ */ (0,
|
|
6740
|
-
/* @__PURE__ */ (0,
|
|
6741
|
-
/* @__PURE__ */ (0,
|
|
7374
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
7375
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(StarRating_default, { rating: Math.floor(averageRating) }),
|
|
7376
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
6742
7377
|
"Overall Rating \u2022 ",
|
|
6743
7378
|
totalReviews,
|
|
6744
7379
|
" Review",
|
|
@@ -6747,14 +7382,14 @@ var Reviews = ({
|
|
|
6747
7382
|
]
|
|
6748
7383
|
}
|
|
6749
7384
|
),
|
|
6750
|
-
/* @__PURE__ */ (0,
|
|
7385
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
6751
7386
|
Box_default,
|
|
6752
7387
|
{
|
|
6753
7388
|
display: "flex",
|
|
6754
7389
|
flexDirection: "column",
|
|
6755
7390
|
gap: "var(--spacing-2)",
|
|
6756
7391
|
width: "100%",
|
|
6757
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
7392
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
6758
7393
|
}
|
|
6759
7394
|
)
|
|
6760
7395
|
]
|
|
@@ -6764,7 +7399,7 @@ var Reviews = ({
|
|
|
6764
7399
|
var Reviews_default = Reviews;
|
|
6765
7400
|
|
|
6766
7401
|
// src/Reviews/ReviewsShowcase.tsx
|
|
6767
|
-
var
|
|
7402
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
6768
7403
|
var ReviewsShowcase = () => {
|
|
6769
7404
|
const sampleData = {
|
|
6770
7405
|
averageRating: 4,
|
|
@@ -6786,7 +7421,7 @@ var ReviewsShowcase = () => {
|
|
|
6786
7421
|
{ label: "Game Abundance", rating: 5 }
|
|
6787
7422
|
]
|
|
6788
7423
|
};
|
|
6789
|
-
return /* @__PURE__ */ (0,
|
|
7424
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
6790
7425
|
Box_default,
|
|
6791
7426
|
{
|
|
6792
7427
|
display: "flex",
|
|
@@ -6794,24 +7429,24 @@ var ReviewsShowcase = () => {
|
|
|
6794
7429
|
gap: "var(--spacing-8)",
|
|
6795
7430
|
p: "var(--spacing-6)",
|
|
6796
7431
|
children: [
|
|
6797
|
-
/* @__PURE__ */ (0,
|
|
6798
|
-
/* @__PURE__ */ (0,
|
|
6799
|
-
/* @__PURE__ */ (0,
|
|
6800
|
-
/* @__PURE__ */ (0,
|
|
7432
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
7433
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7434
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
7435
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Reviews_default, { ...sampleData }) })
|
|
6801
7436
|
] }),
|
|
6802
|
-
/* @__PURE__ */ (0,
|
|
6803
|
-
/* @__PURE__ */ (0,
|
|
6804
|
-
/* @__PURE__ */ (0,
|
|
7437
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7438
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
7439
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Reviews_default, { ...highRatingData }) })
|
|
6805
7440
|
] }),
|
|
6806
|
-
/* @__PURE__ */ (0,
|
|
6807
|
-
/* @__PURE__ */ (0,
|
|
6808
|
-
/* @__PURE__ */ (0,
|
|
7441
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7442
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
7443
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
6809
7444
|
Box_default,
|
|
6810
7445
|
{
|
|
6811
7446
|
maxWidth: "320px",
|
|
6812
7447
|
border: "1px solid var(--color-neutral-200)",
|
|
6813
7448
|
p: "var(--spacing-4)",
|
|
6814
|
-
children: /* @__PURE__ */ (0,
|
|
7449
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Reviews_default, { ...sampleData })
|
|
6815
7450
|
}
|
|
6816
7451
|
)
|
|
6817
7452
|
] })
|
|
@@ -6847,6 +7482,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
6847
7482
|
LayoutTokens,
|
|
6848
7483
|
ListingChat,
|
|
6849
7484
|
Logo,
|
|
7485
|
+
MarkdownContent,
|
|
6850
7486
|
MessageBubble,
|
|
6851
7487
|
Navigation,
|
|
6852
7488
|
PackageCard,
|