@landtrustinc/design-system 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +137 -3
- package/dist/index.js +1149 -546
- package/dist/index.js.map +1 -1
- package/package.json +3 -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;
|
|
3709
3870
|
`;
|
|
3710
|
-
var
|
|
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
|
+
}
|
|
3926
|
+
`;
|
|
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,25 +4138,126 @@ 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
|
|
|
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
|
|
4175
|
+
}) => {
|
|
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
|
+
|
|
3735
4257
|
// src/AIResponse/AIResponse.tsx
|
|
3736
|
-
var
|
|
4258
|
+
var import_jsx_runtime205 = require("@emotion/react/jsx-runtime");
|
|
3737
4259
|
var AIResponse = ({
|
|
3738
|
-
title = `Here
|
|
4260
|
+
title = `Here's what I found`,
|
|
3739
4261
|
showDisclaimer = true,
|
|
3740
4262
|
showHelpfulQuestion = true,
|
|
3741
4263
|
className,
|
|
@@ -3744,12 +4266,20 @@ var AIResponse = ({
|
|
|
3744
4266
|
onHelpfulNo,
|
|
3745
4267
|
variant = "default",
|
|
3746
4268
|
onErrorRetry,
|
|
3747
|
-
helpfulDebounceMs = 1e3
|
|
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"
|
|
3748
4278
|
}) => {
|
|
3749
|
-
const [visualHelpful, setVisualHelpful] = (0,
|
|
4279
|
+
const [visualHelpful, setVisualHelpful] = (0, import_react14.useState)(
|
|
3750
4280
|
void 0
|
|
3751
4281
|
);
|
|
3752
|
-
const debounceTimerRef = (0,
|
|
4282
|
+
const debounceTimerRef = (0, import_react14.useRef)(null);
|
|
3753
4283
|
const DEBOUNCE_MS = helpfulDebounceMs;
|
|
3754
4284
|
const scheduleCallback = (next) => {
|
|
3755
4285
|
if (debounceTimerRef.current) {
|
|
@@ -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,7 +5371,7 @@ var ChatWidget = ({
|
|
|
4719
5371
|
var ChatWidget_default = ChatWidget;
|
|
4720
5372
|
|
|
4721
5373
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
4722
|
-
var
|
|
5374
|
+
var import_jsx_runtime214 = require("@emotion/react/jsx-runtime");
|
|
4723
5375
|
var FeatureListItem = ({
|
|
4724
5376
|
iconVariant,
|
|
4725
5377
|
label,
|
|
@@ -4729,8 +5381,8 @@ var FeatureListItem = ({
|
|
|
4729
5381
|
className,
|
|
4730
5382
|
...rest
|
|
4731
5383
|
}) => {
|
|
4732
|
-
return /* @__PURE__ */ (0,
|
|
4733
|
-
/* @__PURE__ */ (0,
|
|
5384
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
5385
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
4734
5386
|
Box_default,
|
|
4735
5387
|
{
|
|
4736
5388
|
display: "flex",
|
|
@@ -4739,23 +5391,23 @@ var FeatureListItem = ({
|
|
|
4739
5391
|
className,
|
|
4740
5392
|
...rest,
|
|
4741
5393
|
children: [
|
|
4742
|
-
/* @__PURE__ */ (0,
|
|
4743
|
-
/* @__PURE__ */ (0,
|
|
5394
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Icon_default, { variant: iconVariant, size: iconSize, fill: iconColor }),
|
|
5395
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Text_default, { fontWeight: "semibold", children: label })
|
|
4744
5396
|
]
|
|
4745
5397
|
}
|
|
4746
5398
|
),
|
|
4747
|
-
subtitle && /* @__PURE__ */ (0,
|
|
4748
|
-
/* @__PURE__ */ (0,
|
|
4749
|
-
/* @__PURE__ */ (0,
|
|
5399
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
5400
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
5401
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
4750
5402
|
] })
|
|
4751
5403
|
] });
|
|
4752
5404
|
};
|
|
4753
5405
|
var FeatureListItem_default = FeatureListItem;
|
|
4754
5406
|
|
|
4755
5407
|
// src/FeatureList/FeatureList.tsx
|
|
4756
|
-
var
|
|
5408
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
4757
5409
|
var FeatureList = ({ heading, items, className }) => {
|
|
4758
|
-
return /* @__PURE__ */ (0,
|
|
5410
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
4759
5411
|
Box_default,
|
|
4760
5412
|
{
|
|
4761
5413
|
display: "flex",
|
|
@@ -4763,8 +5415,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
4763
5415
|
gap: "var(--spacing-2)",
|
|
4764
5416
|
className,
|
|
4765
5417
|
children: [
|
|
4766
|
-
heading && /* @__PURE__ */ (0,
|
|
4767
|
-
/* @__PURE__ */ (0,
|
|
5418
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
5419
|
+
/* @__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
5420
|
]
|
|
4769
5421
|
}
|
|
4770
5422
|
);
|
|
@@ -4772,8 +5424,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
4772
5424
|
var FeatureList_default = FeatureList;
|
|
4773
5425
|
|
|
4774
5426
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
4775
|
-
var
|
|
4776
|
-
var cardContainerStyles =
|
|
5427
|
+
var import_react29 = require("@emotion/react");
|
|
5428
|
+
var cardContainerStyles = import_react29.css`
|
|
4777
5429
|
position: relative;
|
|
4778
5430
|
height: 335px;
|
|
4779
5431
|
|
|
@@ -4781,12 +5433,12 @@ var cardContainerStyles = import_react25.css`
|
|
|
4781
5433
|
height: 480px;
|
|
4782
5434
|
}
|
|
4783
5435
|
`;
|
|
4784
|
-
var cardContentStyles =
|
|
5436
|
+
var cardContentStyles = import_react29.css`
|
|
4785
5437
|
position: relative;
|
|
4786
5438
|
border-radius: var(--spacing-4);
|
|
4787
5439
|
overflow: hidden;
|
|
4788
5440
|
`;
|
|
4789
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
5441
|
+
var getBackgroundWithGradient = (imageUrl) => import_react29.css`
|
|
4790
5442
|
background-image: linear-gradient(
|
|
4791
5443
|
180deg,
|
|
4792
5444
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -4800,7 +5452,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react25.css`
|
|
|
4800
5452
|
`;
|
|
4801
5453
|
|
|
4802
5454
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
4803
|
-
var
|
|
5455
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
4804
5456
|
var FieldNoteCard = ({
|
|
4805
5457
|
backgroundImage,
|
|
4806
5458
|
title,
|
|
@@ -4809,14 +5461,14 @@ var FieldNoteCard = ({
|
|
|
4809
5461
|
className,
|
|
4810
5462
|
...rest
|
|
4811
5463
|
}) => {
|
|
4812
|
-
return /* @__PURE__ */ (0,
|
|
5464
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4813
5465
|
Box_default,
|
|
4814
5466
|
{
|
|
4815
5467
|
display: "flex",
|
|
4816
5468
|
css: cardContainerStyles,
|
|
4817
5469
|
className,
|
|
4818
5470
|
...rest,
|
|
4819
|
-
children: /* @__PURE__ */ (0,
|
|
5471
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4820
5472
|
Box_default,
|
|
4821
5473
|
{
|
|
4822
5474
|
display: "flex",
|
|
@@ -4824,9 +5476,9 @@ var FieldNoteCard = ({
|
|
|
4824
5476
|
justifyContent: "flex-end",
|
|
4825
5477
|
p: 6,
|
|
4826
5478
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
4827
|
-
children: /* @__PURE__ */ (0,
|
|
4828
|
-
/* @__PURE__ */ (0,
|
|
4829
|
-
/* @__PURE__ */ (0,
|
|
5479
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
5480
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
5481
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
4830
5482
|
] })
|
|
4831
5483
|
}
|
|
4832
5484
|
)
|
|
@@ -4836,14 +5488,14 @@ var FieldNoteCard = ({
|
|
|
4836
5488
|
var FieldNoteCard_default = FieldNoteCard;
|
|
4837
5489
|
|
|
4838
5490
|
// src/Form/FormField.tsx
|
|
4839
|
-
var
|
|
4840
|
-
var
|
|
4841
|
-
var fieldContainerStyles =
|
|
5491
|
+
var import_react30 = require("@emotion/react");
|
|
5492
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5493
|
+
var fieldContainerStyles = import_react30.css`
|
|
4842
5494
|
display: flex;
|
|
4843
5495
|
flex-direction: column;
|
|
4844
5496
|
gap: ${space["2"]};
|
|
4845
5497
|
`;
|
|
4846
|
-
var labelStyles2 =
|
|
5498
|
+
var labelStyles2 = import_react30.css`
|
|
4847
5499
|
font-family: ${fonts.base};
|
|
4848
5500
|
font-size: ${fontSizes.sm};
|
|
4849
5501
|
font-weight: ${fontWeights.medium};
|
|
@@ -4851,17 +5503,17 @@ var labelStyles2 = import_react26.css`
|
|
|
4851
5503
|
color: ${colors.gray["900"]};
|
|
4852
5504
|
margin-bottom: ${space["1"]};
|
|
4853
5505
|
`;
|
|
4854
|
-
var requiredIndicatorStyles =
|
|
5506
|
+
var requiredIndicatorStyles = import_react30.css`
|
|
4855
5507
|
color: ${colors.red["500"]};
|
|
4856
5508
|
margin-left: ${space["1"]};
|
|
4857
5509
|
`;
|
|
4858
|
-
var helpTextStyles =
|
|
5510
|
+
var helpTextStyles = import_react30.css`
|
|
4859
5511
|
font-family: ${fonts.base};
|
|
4860
5512
|
font-size: ${fontSizes.sm};
|
|
4861
5513
|
line-height: ${lineHeights.tight};
|
|
4862
5514
|
color: ${colors.gray["600"]};
|
|
4863
5515
|
`;
|
|
4864
|
-
var errorTextStyles =
|
|
5516
|
+
var errorTextStyles = import_react30.css`
|
|
4865
5517
|
font-family: ${fonts.base};
|
|
4866
5518
|
font-size: ${fontSizes.sm};
|
|
4867
5519
|
line-height: ${lineHeights.tight};
|
|
@@ -4870,7 +5522,7 @@ var errorTextStyles = import_react26.css`
|
|
|
4870
5522
|
align-items: center;
|
|
4871
5523
|
gap: ${space["1"]};
|
|
4872
5524
|
`;
|
|
4873
|
-
var successTextStyles =
|
|
5525
|
+
var successTextStyles = import_react30.css`
|
|
4874
5526
|
font-family: ${fonts.base};
|
|
4875
5527
|
font-size: ${fontSizes.sm};
|
|
4876
5528
|
line-height: ${lineHeights.tight};
|
|
@@ -4879,7 +5531,7 @@ var successTextStyles = import_react26.css`
|
|
|
4879
5531
|
align-items: center;
|
|
4880
5532
|
gap: ${space["1"]};
|
|
4881
5533
|
`;
|
|
4882
|
-
var visuallyHiddenStyles =
|
|
5534
|
+
var visuallyHiddenStyles = import_react30.css`
|
|
4883
5535
|
position: absolute;
|
|
4884
5536
|
width: 1px;
|
|
4885
5537
|
height: 1px;
|
|
@@ -4904,21 +5556,21 @@ var FormField = ({
|
|
|
4904
5556
|
const hasError = !!error;
|
|
4905
5557
|
const hasSuccess = !!success && !hasError;
|
|
4906
5558
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
4907
|
-
return /* @__PURE__ */ (0,
|
|
4908
|
-
label && /* @__PURE__ */ (0,
|
|
5559
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
5560
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
|
|
4909
5561
|
"label",
|
|
4910
5562
|
{
|
|
4911
5563
|
htmlFor,
|
|
4912
5564
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
4913
5565
|
children: [
|
|
4914
5566
|
label,
|
|
4915
|
-
required && /* @__PURE__ */ (0,
|
|
5567
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
4916
5568
|
]
|
|
4917
5569
|
}
|
|
4918
5570
|
),
|
|
4919
5571
|
children,
|
|
4920
|
-
hasError && /* @__PURE__ */ (0,
|
|
4921
|
-
/* @__PURE__ */ (0,
|
|
5572
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
5573
|
+
/* @__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
5574
|
"path",
|
|
4923
5575
|
{
|
|
4924
5576
|
fillRule: "evenodd",
|
|
@@ -4928,8 +5580,8 @@ var FormField = ({
|
|
|
4928
5580
|
) }),
|
|
4929
5581
|
error
|
|
4930
5582
|
] }),
|
|
4931
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
4932
|
-
/* @__PURE__ */ (0,
|
|
5583
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)("div", { css: successTextStyles, children: [
|
|
5584
|
+
/* @__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
5585
|
"path",
|
|
4934
5586
|
{
|
|
4935
5587
|
fillRule: "evenodd",
|
|
@@ -4939,15 +5591,15 @@ var FormField = ({
|
|
|
4939
5591
|
) }),
|
|
4940
5592
|
success
|
|
4941
5593
|
] }),
|
|
4942
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
5594
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
4943
5595
|
] });
|
|
4944
5596
|
};
|
|
4945
5597
|
|
|
4946
5598
|
// src/Form/Input.tsx
|
|
4947
|
-
var
|
|
4948
|
-
var
|
|
4949
|
-
var
|
|
4950
|
-
var inputStyles =
|
|
5599
|
+
var import_react31 = require("@emotion/react");
|
|
5600
|
+
var import_react32 = require("react");
|
|
5601
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
5602
|
+
var inputStyles = import_react31.css`
|
|
4951
5603
|
position: relative;
|
|
4952
5604
|
width: 100%;
|
|
4953
5605
|
font-family: ${fonts.base};
|
|
@@ -4984,19 +5636,19 @@ var inputStyles = import_react27.css`
|
|
|
4984
5636
|
}
|
|
4985
5637
|
`;
|
|
4986
5638
|
var sizeStyles = {
|
|
4987
|
-
sm:
|
|
5639
|
+
sm: import_react31.css`
|
|
4988
5640
|
padding: ${space["2"]} ${space["3"]};
|
|
4989
5641
|
font-size: ${fontSizes.sm};
|
|
4990
5642
|
line-height: ${lineHeights.tight};
|
|
4991
5643
|
height: ${space["8"]};
|
|
4992
5644
|
`,
|
|
4993
|
-
md:
|
|
5645
|
+
md: import_react31.css`
|
|
4994
5646
|
padding: ${space["3"]} ${space["4"]};
|
|
4995
5647
|
font-size: ${fontSizes.base};
|
|
4996
5648
|
line-height: ${lineHeights.normal};
|
|
4997
5649
|
height: ${space["10"]};
|
|
4998
5650
|
`,
|
|
4999
|
-
lg:
|
|
5651
|
+
lg: import_react31.css`
|
|
5000
5652
|
padding: ${space["4"]} ${space["5"]};
|
|
5001
5653
|
font-size: ${fontSizes.lg};
|
|
5002
5654
|
line-height: ${lineHeights.normal};
|
|
@@ -5004,8 +5656,8 @@ var sizeStyles = {
|
|
|
5004
5656
|
`
|
|
5005
5657
|
};
|
|
5006
5658
|
var variantStyles = {
|
|
5007
|
-
default:
|
|
5008
|
-
error:
|
|
5659
|
+
default: import_react31.css``,
|
|
5660
|
+
error: import_react31.css`
|
|
5009
5661
|
border-color: ${colors.red["500"]};
|
|
5010
5662
|
|
|
5011
5663
|
&:focus {
|
|
@@ -5013,7 +5665,7 @@ var variantStyles = {
|
|
|
5013
5665
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5014
5666
|
}
|
|
5015
5667
|
`,
|
|
5016
|
-
success:
|
|
5668
|
+
success: import_react31.css`
|
|
5017
5669
|
border-color: ${colors.accent.green};
|
|
5018
5670
|
|
|
5019
5671
|
&:focus {
|
|
@@ -5022,7 +5674,7 @@ var variantStyles = {
|
|
|
5022
5674
|
}
|
|
5023
5675
|
`
|
|
5024
5676
|
};
|
|
5025
|
-
var inputWithIconStyles =
|
|
5677
|
+
var inputWithIconStyles = import_react31.css`
|
|
5026
5678
|
padding-left: ${space["10"]};
|
|
5027
5679
|
|
|
5028
5680
|
&.has-end-icon {
|
|
@@ -5033,7 +5685,7 @@ var inputWithIconStyles = import_react27.css`
|
|
|
5033
5685
|
padding-left: ${space["10"]};
|
|
5034
5686
|
}
|
|
5035
5687
|
`;
|
|
5036
|
-
var iconContainerStyles =
|
|
5688
|
+
var iconContainerStyles = import_react31.css`
|
|
5037
5689
|
position: absolute;
|
|
5038
5690
|
top: 50%;
|
|
5039
5691
|
transform: translateY(-50%);
|
|
@@ -5044,20 +5696,20 @@ var iconContainerStyles = import_react27.css`
|
|
|
5044
5696
|
pointer-events: none;
|
|
5045
5697
|
z-index: 1;
|
|
5046
5698
|
`;
|
|
5047
|
-
var startIconStyles =
|
|
5699
|
+
var startIconStyles = import_react31.css`
|
|
5048
5700
|
${iconContainerStyles}
|
|
5049
5701
|
left: ${space["3"]};
|
|
5050
5702
|
`;
|
|
5051
|
-
var endIconStyles =
|
|
5703
|
+
var endIconStyles = import_react31.css`
|
|
5052
5704
|
${iconContainerStyles}
|
|
5053
5705
|
right: ${space["3"]};
|
|
5054
5706
|
`;
|
|
5055
|
-
var inputWrapperStyles =
|
|
5707
|
+
var inputWrapperStyles = import_react31.css`
|
|
5056
5708
|
position: relative;
|
|
5057
5709
|
display: inline-block;
|
|
5058
5710
|
width: 100%;
|
|
5059
5711
|
`;
|
|
5060
|
-
var Input = (0,
|
|
5712
|
+
var Input = (0, import_react32.forwardRef)(
|
|
5061
5713
|
({
|
|
5062
5714
|
size = "md",
|
|
5063
5715
|
variant = "default",
|
|
@@ -5076,9 +5728,9 @@ var Input = (0, import_react28.forwardRef)(
|
|
|
5076
5728
|
hasEndIcon && "has-end-icon",
|
|
5077
5729
|
className
|
|
5078
5730
|
].filter(Boolean).join(" ");
|
|
5079
|
-
return /* @__PURE__ */ (0,
|
|
5080
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
5081
|
-
/* @__PURE__ */ (0,
|
|
5731
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
5732
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
5733
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5082
5734
|
"input",
|
|
5083
5735
|
{
|
|
5084
5736
|
ref,
|
|
@@ -5095,17 +5747,17 @@ var Input = (0, import_react28.forwardRef)(
|
|
|
5095
5747
|
...props
|
|
5096
5748
|
}
|
|
5097
5749
|
),
|
|
5098
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
5750
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
5099
5751
|
] });
|
|
5100
5752
|
}
|
|
5101
5753
|
);
|
|
5102
5754
|
Input.displayName = "Input";
|
|
5103
5755
|
|
|
5104
5756
|
// src/Form/Select.tsx
|
|
5105
|
-
var
|
|
5106
|
-
var
|
|
5107
|
-
var
|
|
5108
|
-
var selectStyles =
|
|
5757
|
+
var import_react33 = require("@emotion/react");
|
|
5758
|
+
var import_react34 = require("react");
|
|
5759
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
5760
|
+
var selectStyles = import_react33.css`
|
|
5109
5761
|
position: relative;
|
|
5110
5762
|
width: 100%;
|
|
5111
5763
|
font-family: ${fonts.base};
|
|
@@ -5144,19 +5796,19 @@ var selectStyles = import_react29.css`
|
|
|
5144
5796
|
}
|
|
5145
5797
|
`;
|
|
5146
5798
|
var sizeStyles2 = {
|
|
5147
|
-
sm:
|
|
5799
|
+
sm: import_react33.css`
|
|
5148
5800
|
padding: ${space["2"]} ${space["3"]};
|
|
5149
5801
|
font-size: ${fontSizes.sm};
|
|
5150
5802
|
line-height: ${lineHeights.tight};
|
|
5151
5803
|
height: ${space["8"]};
|
|
5152
5804
|
`,
|
|
5153
|
-
md:
|
|
5805
|
+
md: import_react33.css`
|
|
5154
5806
|
padding: ${space["3"]} ${space["4"]};
|
|
5155
5807
|
font-size: ${fontSizes.base};
|
|
5156
5808
|
line-height: ${lineHeights.normal};
|
|
5157
5809
|
height: ${space["10"]};
|
|
5158
5810
|
`,
|
|
5159
|
-
lg:
|
|
5811
|
+
lg: import_react33.css`
|
|
5160
5812
|
padding: ${space["4"]} ${space["5"]};
|
|
5161
5813
|
font-size: ${fontSizes.lg};
|
|
5162
5814
|
line-height: ${lineHeights.normal};
|
|
@@ -5164,8 +5816,8 @@ var sizeStyles2 = {
|
|
|
5164
5816
|
`
|
|
5165
5817
|
};
|
|
5166
5818
|
var variantStyles2 = {
|
|
5167
|
-
default:
|
|
5168
|
-
error:
|
|
5819
|
+
default: import_react33.css``,
|
|
5820
|
+
error: import_react33.css`
|
|
5169
5821
|
border-color: ${colors.red["500"]};
|
|
5170
5822
|
|
|
5171
5823
|
&:focus {
|
|
@@ -5173,7 +5825,7 @@ var variantStyles2 = {
|
|
|
5173
5825
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5174
5826
|
}
|
|
5175
5827
|
`,
|
|
5176
|
-
success:
|
|
5828
|
+
success: import_react33.css`
|
|
5177
5829
|
border-color: ${colors.accent.green};
|
|
5178
5830
|
|
|
5179
5831
|
&:focus {
|
|
@@ -5182,7 +5834,7 @@ var variantStyles2 = {
|
|
|
5182
5834
|
}
|
|
5183
5835
|
`
|
|
5184
5836
|
};
|
|
5185
|
-
var optionStyles =
|
|
5837
|
+
var optionStyles = import_react33.css`
|
|
5186
5838
|
background-color: ${colors.light["100"]};
|
|
5187
5839
|
color: ${colors.gray["900"]};
|
|
5188
5840
|
|
|
@@ -5191,7 +5843,7 @@ var optionStyles = import_react29.css`
|
|
|
5191
5843
|
background-color: ${colors.gray["100"]};
|
|
5192
5844
|
}
|
|
5193
5845
|
`;
|
|
5194
|
-
var Select = (0,
|
|
5846
|
+
var Select = (0, import_react34.forwardRef)(
|
|
5195
5847
|
({
|
|
5196
5848
|
size = "md",
|
|
5197
5849
|
variant = "default",
|
|
@@ -5201,7 +5853,7 @@ var Select = (0, import_react30.forwardRef)(
|
|
|
5201
5853
|
className = "",
|
|
5202
5854
|
...props
|
|
5203
5855
|
}, ref) => {
|
|
5204
|
-
return /* @__PURE__ */ (0,
|
|
5856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
5205
5857
|
"select",
|
|
5206
5858
|
{
|
|
5207
5859
|
ref,
|
|
@@ -5210,8 +5862,8 @@ var Select = (0, import_react30.forwardRef)(
|
|
|
5210
5862
|
className,
|
|
5211
5863
|
...props,
|
|
5212
5864
|
children: [
|
|
5213
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
5214
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
5865
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
5866
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5215
5867
|
"option",
|
|
5216
5868
|
{
|
|
5217
5869
|
value: option.value,
|
|
@@ -5229,10 +5881,10 @@ var Select = (0, import_react30.forwardRef)(
|
|
|
5229
5881
|
Select.displayName = "Select";
|
|
5230
5882
|
|
|
5231
5883
|
// src/Grid/Column.tsx
|
|
5232
|
-
var
|
|
5884
|
+
var import_react36 = require("@emotion/react");
|
|
5233
5885
|
|
|
5234
5886
|
// src/Grid/utils.ts
|
|
5235
|
-
var
|
|
5887
|
+
var import_react35 = require("@emotion/react");
|
|
5236
5888
|
var LayoutTokens = {
|
|
5237
5889
|
containers: {
|
|
5238
5890
|
sm: screens.sm,
|
|
@@ -5272,11 +5924,11 @@ var getResponsiveValue = (value) => {
|
|
|
5272
5924
|
var generateGridColumns = (columns) => {
|
|
5273
5925
|
const baseColumns = getResponsiveValue(columns);
|
|
5274
5926
|
if (typeof columns === "number") {
|
|
5275
|
-
return
|
|
5927
|
+
return import_react35.css`
|
|
5276
5928
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
5277
5929
|
`;
|
|
5278
5930
|
}
|
|
5279
|
-
return
|
|
5931
|
+
return import_react35.css`
|
|
5280
5932
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
5281
5933
|
|
|
5282
5934
|
${media.sm} {
|
|
@@ -5308,11 +5960,11 @@ var generateGridColumns = (columns) => {
|
|
|
5308
5960
|
var generateGapStyles = (gap2) => {
|
|
5309
5961
|
const baseGap = getResponsiveValue(gap2);
|
|
5310
5962
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
5311
|
-
return
|
|
5963
|
+
return import_react35.css`
|
|
5312
5964
|
gap: ${space[gap2]};
|
|
5313
5965
|
`;
|
|
5314
5966
|
}
|
|
5315
|
-
return
|
|
5967
|
+
return import_react35.css`
|
|
5316
5968
|
gap: ${space[baseGap]};
|
|
5317
5969
|
|
|
5318
5970
|
${media.sm} {
|
|
@@ -5335,11 +5987,11 @@ var generateGapStyles = (gap2) => {
|
|
|
5335
5987
|
var generateRowGapStyles = (rowGap) => {
|
|
5336
5988
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
5337
5989
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
5338
|
-
return
|
|
5990
|
+
return import_react35.css`
|
|
5339
5991
|
row-gap: ${space[rowGap]};
|
|
5340
5992
|
`;
|
|
5341
5993
|
}
|
|
5342
|
-
return
|
|
5994
|
+
return import_react35.css`
|
|
5343
5995
|
row-gap: ${space[baseRowGap]};
|
|
5344
5996
|
|
|
5345
5997
|
${media.sm} {
|
|
@@ -5362,11 +6014,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
5362
6014
|
var generateColumnGapStyles = (columnGap) => {
|
|
5363
6015
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
5364
6016
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
5365
|
-
return
|
|
6017
|
+
return import_react35.css`
|
|
5366
6018
|
column-gap: ${space[columnGap]};
|
|
5367
6019
|
`;
|
|
5368
6020
|
}
|
|
5369
|
-
return
|
|
6021
|
+
return import_react35.css`
|
|
5370
6022
|
column-gap: ${space[baseColumnGap]};
|
|
5371
6023
|
|
|
5372
6024
|
${media.sm} {
|
|
@@ -5389,11 +6041,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
5389
6041
|
var generateColumnSpan = (span) => {
|
|
5390
6042
|
const baseSpan = getResponsiveValue(span);
|
|
5391
6043
|
if (typeof span === "string" || typeof span === "number") {
|
|
5392
|
-
return
|
|
6044
|
+
return import_react35.css`
|
|
5393
6045
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
5394
6046
|
`;
|
|
5395
6047
|
}
|
|
5396
|
-
return
|
|
6048
|
+
return import_react35.css`
|
|
5397
6049
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
5398
6050
|
|
|
5399
6051
|
${media.sm} {
|
|
@@ -5416,11 +6068,11 @@ var generateColumnSpan = (span) => {
|
|
|
5416
6068
|
var generateAlignItems = (alignItems) => {
|
|
5417
6069
|
const baseAlign = getResponsiveValue(alignItems);
|
|
5418
6070
|
if (typeof alignItems === "string") {
|
|
5419
|
-
return
|
|
6071
|
+
return import_react35.css`
|
|
5420
6072
|
align-items: ${alignItems};
|
|
5421
6073
|
`;
|
|
5422
6074
|
}
|
|
5423
|
-
return
|
|
6075
|
+
return import_react35.css`
|
|
5424
6076
|
align-items: ${baseAlign};
|
|
5425
6077
|
|
|
5426
6078
|
${media.sm} {
|
|
@@ -5443,11 +6095,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
5443
6095
|
var generateJustifyItems = (justifyItems) => {
|
|
5444
6096
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
5445
6097
|
if (typeof justifyItems === "string") {
|
|
5446
|
-
return
|
|
6098
|
+
return import_react35.css`
|
|
5447
6099
|
justify-items: ${justifyItems};
|
|
5448
6100
|
`;
|
|
5449
6101
|
}
|
|
5450
|
-
return
|
|
6102
|
+
return import_react35.css`
|
|
5451
6103
|
justify-items: ${baseJustify};
|
|
5452
6104
|
|
|
5453
6105
|
${media.sm} {
|
|
@@ -5469,7 +6121,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
5469
6121
|
};
|
|
5470
6122
|
|
|
5471
6123
|
// src/Grid/Column.tsx
|
|
5472
|
-
var
|
|
6124
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5473
6125
|
var Column = ({
|
|
5474
6126
|
span,
|
|
5475
6127
|
start,
|
|
@@ -5482,30 +6134,30 @@ var Column = ({
|
|
|
5482
6134
|
}) => {
|
|
5483
6135
|
const columnStyles = [
|
|
5484
6136
|
span && generateColumnSpan(span),
|
|
5485
|
-
start &&
|
|
6137
|
+
start && import_react36.css`
|
|
5486
6138
|
grid-column-start: ${start};
|
|
5487
6139
|
`,
|
|
5488
|
-
end &&
|
|
6140
|
+
end && import_react36.css`
|
|
5489
6141
|
grid-column-end: ${end};
|
|
5490
6142
|
`,
|
|
5491
|
-
row &&
|
|
6143
|
+
row && import_react36.css`
|
|
5492
6144
|
grid-row: ${row};
|
|
5493
6145
|
`,
|
|
5494
|
-
rowSpan &&
|
|
6146
|
+
rowSpan && import_react36.css`
|
|
5495
6147
|
grid-row: span ${rowSpan};
|
|
5496
6148
|
`,
|
|
5497
|
-
area &&
|
|
6149
|
+
area && import_react36.css`
|
|
5498
6150
|
grid-area: ${area};
|
|
5499
6151
|
`
|
|
5500
6152
|
].filter(Boolean);
|
|
5501
|
-
return /* @__PURE__ */ (0,
|
|
6153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
5502
6154
|
};
|
|
5503
6155
|
var Column_default = Column;
|
|
5504
6156
|
|
|
5505
6157
|
// src/Grid/Grid.tsx
|
|
5506
|
-
var
|
|
5507
|
-
var
|
|
5508
|
-
var baseGridStyles =
|
|
6158
|
+
var import_react37 = require("@emotion/react");
|
|
6159
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
6160
|
+
var baseGridStyles = import_react37.css`
|
|
5509
6161
|
display: grid;
|
|
5510
6162
|
`;
|
|
5511
6163
|
var Grid = ({
|
|
@@ -5530,27 +6182,27 @@ var Grid = ({
|
|
|
5530
6182
|
columnGap && generateColumnGapStyles(columnGap),
|
|
5531
6183
|
alignItems && generateAlignItems(alignItems),
|
|
5532
6184
|
justifyItems && generateJustifyItems(justifyItems),
|
|
5533
|
-
autoRows &&
|
|
6185
|
+
autoRows && import_react37.css`
|
|
5534
6186
|
grid-auto-rows: ${autoRows};
|
|
5535
6187
|
`,
|
|
5536
|
-
autoColumns &&
|
|
6188
|
+
autoColumns && import_react37.css`
|
|
5537
6189
|
grid-auto-columns: ${autoColumns};
|
|
5538
6190
|
`,
|
|
5539
|
-
templateAreas &&
|
|
6191
|
+
templateAreas && import_react37.css`
|
|
5540
6192
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
5541
6193
|
`,
|
|
5542
|
-
justifyContent &&
|
|
6194
|
+
justifyContent && import_react37.css`
|
|
5543
6195
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
5544
6196
|
`
|
|
5545
6197
|
].filter(Boolean);
|
|
5546
|
-
return /* @__PURE__ */ (0,
|
|
6198
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
5547
6199
|
};
|
|
5548
6200
|
var Grid_default = Grid;
|
|
5549
6201
|
|
|
5550
6202
|
// src/Grid/GridContainer.tsx
|
|
5551
|
-
var
|
|
5552
|
-
var
|
|
5553
|
-
var baseContainerStyles =
|
|
6203
|
+
var import_react38 = require("@emotion/react");
|
|
6204
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
6205
|
+
var baseContainerStyles = import_react38.css`
|
|
5554
6206
|
width: 100%;
|
|
5555
6207
|
margin: 0 auto;
|
|
5556
6208
|
padding-left: 1rem;
|
|
@@ -5558,14 +6210,14 @@ var baseContainerStyles = import_react34.css`
|
|
|
5558
6210
|
`;
|
|
5559
6211
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
5560
6212
|
if (maxWidth === "full") {
|
|
5561
|
-
return
|
|
6213
|
+
return import_react38.css`
|
|
5562
6214
|
max-width: 100%;
|
|
5563
6215
|
padding-left: 0;
|
|
5564
6216
|
padding-right: 0;
|
|
5565
6217
|
`;
|
|
5566
6218
|
}
|
|
5567
6219
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
5568
|
-
return
|
|
6220
|
+
return import_react38.css`
|
|
5569
6221
|
max-width: ${width2};
|
|
5570
6222
|
|
|
5571
6223
|
${media.sm} {
|
|
@@ -5594,13 +6246,13 @@ var GridContainer = ({
|
|
|
5594
6246
|
baseContainerStyles,
|
|
5595
6247
|
generateMaxWidthStyles(maxWidth)
|
|
5596
6248
|
];
|
|
5597
|
-
return /* @__PURE__ */ (0,
|
|
6249
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
5598
6250
|
};
|
|
5599
6251
|
var GridContainer_default = GridContainer;
|
|
5600
6252
|
|
|
5601
6253
|
// src/HuntCard/HuntCard.styles.ts
|
|
5602
|
-
var
|
|
5603
|
-
var cardContainerStyles2 =
|
|
6254
|
+
var import_react39 = require("@emotion/react");
|
|
6255
|
+
var cardContainerStyles2 = import_react39.css`
|
|
5604
6256
|
position: relative;
|
|
5605
6257
|
height: 335px;
|
|
5606
6258
|
|
|
@@ -5608,12 +6260,12 @@ var cardContainerStyles2 = import_react35.css`
|
|
|
5608
6260
|
height: 480px;
|
|
5609
6261
|
}
|
|
5610
6262
|
`;
|
|
5611
|
-
var cardContentStyles2 =
|
|
6263
|
+
var cardContentStyles2 = import_react39.css`
|
|
5612
6264
|
position: relative;
|
|
5613
6265
|
border-radius: var(--spacing-4);
|
|
5614
6266
|
overflow: hidden;
|
|
5615
6267
|
`;
|
|
5616
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
6268
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react39.css`
|
|
5617
6269
|
background-image: linear-gradient(
|
|
5618
6270
|
180deg,
|
|
5619
6271
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -5627,7 +6279,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react35.css`
|
|
|
5627
6279
|
`;
|
|
5628
6280
|
|
|
5629
6281
|
// src/HuntCard/HuntCard.tsx
|
|
5630
|
-
var
|
|
6282
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
5631
6283
|
var HuntCard = ({
|
|
5632
6284
|
backgroundImage,
|
|
5633
6285
|
title,
|
|
@@ -5636,14 +6288,14 @@ var HuntCard = ({
|
|
|
5636
6288
|
className,
|
|
5637
6289
|
...rest
|
|
5638
6290
|
}) => {
|
|
5639
|
-
return /* @__PURE__ */ (0,
|
|
6291
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5640
6292
|
Box_default,
|
|
5641
6293
|
{
|
|
5642
6294
|
display: "flex",
|
|
5643
6295
|
css: cardContainerStyles2,
|
|
5644
6296
|
className,
|
|
5645
6297
|
...rest,
|
|
5646
|
-
children: /* @__PURE__ */ (0,
|
|
6298
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5647
6299
|
Box_default,
|
|
5648
6300
|
{
|
|
5649
6301
|
display: "flex",
|
|
@@ -5651,9 +6303,9 @@ var HuntCard = ({
|
|
|
5651
6303
|
justifyContent: "flex-end",
|
|
5652
6304
|
p: 6,
|
|
5653
6305
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
5654
|
-
children: /* @__PURE__ */ (0,
|
|
5655
|
-
/* @__PURE__ */ (0,
|
|
5656
|
-
/* @__PURE__ */ (0,
|
|
6306
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
6307
|
+
/* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
6308
|
+
/* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
5657
6309
|
] })
|
|
5658
6310
|
}
|
|
5659
6311
|
)
|
|
@@ -5663,9 +6315,9 @@ var HuntCard = ({
|
|
|
5663
6315
|
var HuntCard_default = HuntCard;
|
|
5664
6316
|
|
|
5665
6317
|
// src/InfoBox/InfoBox.tsx
|
|
5666
|
-
var
|
|
6318
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
5667
6319
|
var InfoBox = ({ heading, features, className }) => {
|
|
5668
|
-
return /* @__PURE__ */ (0,
|
|
6320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
|
|
5669
6321
|
Box_default,
|
|
5670
6322
|
{
|
|
5671
6323
|
display: "flex",
|
|
@@ -5674,8 +6326,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
5674
6326
|
className,
|
|
5675
6327
|
color: "var(--text-primary)",
|
|
5676
6328
|
children: [
|
|
5677
|
-
/* @__PURE__ */ (0,
|
|
5678
|
-
/* @__PURE__ */ (0,
|
|
6329
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
6330
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5679
6331
|
Box_default,
|
|
5680
6332
|
{
|
|
5681
6333
|
display: "flex",
|
|
@@ -5685,7 +6337,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
5685
6337
|
borderRadius: "var(--radius-lg)",
|
|
5686
6338
|
bg: "var(--surface-neutral)",
|
|
5687
6339
|
className,
|
|
5688
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
6340
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5689
6341
|
FeatureList_default,
|
|
5690
6342
|
{
|
|
5691
6343
|
heading: section.heading,
|
|
@@ -5702,61 +6354,11 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
5702
6354
|
var InfoBox_default = InfoBox;
|
|
5703
6355
|
|
|
5704
6356
|
// 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;
|
|
6357
|
+
var import_react41 = require("react");
|
|
5756
6358
|
|
|
5757
6359
|
// src/ListingChat/ListingChat.styles.ts
|
|
5758
|
-
var
|
|
5759
|
-
var containerStyles2 =
|
|
6360
|
+
var import_react40 = require("@emotion/react");
|
|
6361
|
+
var containerStyles2 = import_react40.css`
|
|
5760
6362
|
display: flex;
|
|
5761
6363
|
flex-direction: column;
|
|
5762
6364
|
gap: var(--spacing-4);
|
|
@@ -5764,13 +6366,13 @@ var containerStyles2 = import_react37.css`
|
|
|
5764
6366
|
border-radius: var(--radius-lg);
|
|
5765
6367
|
background: var(--surface-success);
|
|
5766
6368
|
`;
|
|
5767
|
-
var headerStyles =
|
|
6369
|
+
var headerStyles = import_react40.css`
|
|
5768
6370
|
display: flex;
|
|
5769
6371
|
align-items: flex-start;
|
|
5770
6372
|
justify-content: space-between;
|
|
5771
6373
|
gap: var(--spacing-2);
|
|
5772
6374
|
`;
|
|
5773
|
-
var chipsContainerStyles =
|
|
6375
|
+
var chipsContainerStyles = import_react40.css`
|
|
5774
6376
|
display: flex;
|
|
5775
6377
|
flex-wrap: wrap;
|
|
5776
6378
|
gap: var(--spacing-4);
|
|
@@ -5783,15 +6385,15 @@ var chipsContainerStyles = import_react37.css`
|
|
|
5783
6385
|
cursor: pointer;
|
|
5784
6386
|
}
|
|
5785
6387
|
`;
|
|
5786
|
-
var textAreaStyles =
|
|
6388
|
+
var textAreaStyles = import_react40.css`
|
|
5787
6389
|
min-height: 62px;
|
|
5788
6390
|
`;
|
|
5789
|
-
var inputWrapperStyles2 =
|
|
6391
|
+
var inputWrapperStyles2 = import_react40.css`
|
|
5790
6392
|
position: relative;
|
|
5791
6393
|
`;
|
|
5792
6394
|
|
|
5793
6395
|
// src/ListingChat/ListingChat.tsx
|
|
5794
|
-
var
|
|
6396
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
5795
6397
|
var ListingChat = ({
|
|
5796
6398
|
onSubmit,
|
|
5797
6399
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -5801,15 +6403,15 @@ var ListingChat = ({
|
|
|
5801
6403
|
disabled = false,
|
|
5802
6404
|
...rest
|
|
5803
6405
|
}) => {
|
|
5804
|
-
const [value, setValue] = (0,
|
|
5805
|
-
const handleSubmit = (0,
|
|
6406
|
+
const [value, setValue] = (0, import_react41.useState)("");
|
|
6407
|
+
const handleSubmit = (0, import_react41.useCallback)(() => {
|
|
5806
6408
|
const trimmed = value.trim();
|
|
5807
6409
|
if (!trimmed)
|
|
5808
6410
|
return;
|
|
5809
6411
|
onSubmit(trimmed);
|
|
5810
6412
|
setValue("");
|
|
5811
6413
|
}, [onSubmit, value]);
|
|
5812
|
-
const handleTagClick = (0,
|
|
6414
|
+
const handleTagClick = (0, import_react41.useCallback)(
|
|
5813
6415
|
(tag) => () => {
|
|
5814
6416
|
const trimmed = tag.trim();
|
|
5815
6417
|
if (!trimmed)
|
|
@@ -5818,18 +6420,18 @@ var ListingChat = ({
|
|
|
5818
6420
|
},
|
|
5819
6421
|
[onSubmit]
|
|
5820
6422
|
);
|
|
5821
|
-
return /* @__PURE__ */ (0,
|
|
5822
|
-
/* @__PURE__ */ (0,
|
|
5823
|
-
/* @__PURE__ */ (0,
|
|
5824
|
-
/* @__PURE__ */ (0,
|
|
5825
|
-
/* @__PURE__ */ (0,
|
|
6423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
6424
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: headerStyles, children: [
|
|
6425
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { children: [
|
|
6426
|
+
/* @__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 }) }),
|
|
6427
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
5826
6428
|
] }),
|
|
5827
|
-
/* @__PURE__ */ (0,
|
|
5828
|
-
/* @__PURE__ */ (0,
|
|
5829
|
-
/* @__PURE__ */ (0,
|
|
6429
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
6430
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
6431
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
5830
6432
|
] })
|
|
5831
6433
|
] }),
|
|
5832
|
-
/* @__PURE__ */ (0,
|
|
6434
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5833
6435
|
TextArea,
|
|
5834
6436
|
{
|
|
5835
6437
|
rows: 1,
|
|
@@ -5844,14 +6446,14 @@ var ListingChat = ({
|
|
|
5844
6446
|
css: textAreaStyles
|
|
5845
6447
|
}
|
|
5846
6448
|
) }),
|
|
5847
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
5848
|
-
/* @__PURE__ */ (0,
|
|
5849
|
-
/* @__PURE__ */ (0,
|
|
6449
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(import_jsx_runtime225.Fragment, { children: [
|
|
6450
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
6451
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5850
6452
|
"button",
|
|
5851
6453
|
{
|
|
5852
6454
|
onClick: handleTagClick(tag),
|
|
5853
6455
|
disabled,
|
|
5854
|
-
children: /* @__PURE__ */ (0,
|
|
6456
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(TagChip_default, { children: tag })
|
|
5855
6457
|
},
|
|
5856
6458
|
tag
|
|
5857
6459
|
)) })
|
|
@@ -5861,11 +6463,11 @@ var ListingChat = ({
|
|
|
5861
6463
|
var ListingChat_default = ListingChat;
|
|
5862
6464
|
|
|
5863
6465
|
// src/Logo/Logo.tsx
|
|
5864
|
-
var
|
|
6466
|
+
var import_react42 = require("@emotion/react");
|
|
5865
6467
|
|
|
5866
6468
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
5867
|
-
var
|
|
5868
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
6469
|
+
var import_jsx_runtime226 = require("@emotion/react/jsx-runtime");
|
|
6470
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
|
|
5869
6471
|
"svg",
|
|
5870
6472
|
{
|
|
5871
6473
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5873,14 +6475,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5873
6475
|
fill: "none",
|
|
5874
6476
|
...props,
|
|
5875
6477
|
children: [
|
|
5876
|
-
/* @__PURE__ */ (0,
|
|
6478
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5877
6479
|
"path",
|
|
5878
6480
|
{
|
|
5879
6481
|
fill: "#000",
|
|
5880
6482
|
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
6483
|
}
|
|
5882
6484
|
) }),
|
|
5883
|
-
/* @__PURE__ */ (0,
|
|
6485
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5884
6486
|
"path",
|
|
5885
6487
|
{
|
|
5886
6488
|
fill: "#FAD44E",
|
|
@@ -5889,14 +6491,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5889
6491
|
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
6492
|
}
|
|
5891
6493
|
),
|
|
5892
|
-
/* @__PURE__ */ (0,
|
|
6494
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5893
6495
|
"path",
|
|
5894
6496
|
{
|
|
5895
6497
|
fill: "#fff",
|
|
5896
6498
|
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
6499
|
}
|
|
5898
6500
|
),
|
|
5899
|
-
/* @__PURE__ */ (0,
|
|
6501
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(
|
|
5900
6502
|
"filter",
|
|
5901
6503
|
{
|
|
5902
6504
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -5907,8 +6509,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5907
6509
|
colorInterpolationFilters: "sRGB",
|
|
5908
6510
|
filterUnits: "userSpaceOnUse",
|
|
5909
6511
|
children: [
|
|
5910
|
-
/* @__PURE__ */ (0,
|
|
5911
|
-
/* @__PURE__ */ (0,
|
|
6512
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6513
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5912
6514
|
"feColorMatrix",
|
|
5913
6515
|
{
|
|
5914
6516
|
in: "SourceAlpha",
|
|
@@ -5916,18 +6518,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5916
6518
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5917
6519
|
}
|
|
5918
6520
|
),
|
|
5919
|
-
/* @__PURE__ */ (0,
|
|
5920
|
-
/* @__PURE__ */ (0,
|
|
5921
|
-
/* @__PURE__ */ (0,
|
|
5922
|
-
/* @__PURE__ */ (0,
|
|
5923
|
-
/* @__PURE__ */ (0,
|
|
6521
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("feOffset", { dy: 1 }),
|
|
6522
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6523
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6524
|
+
/* @__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" }),
|
|
6525
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5924
6526
|
"feBlend",
|
|
5925
6527
|
{
|
|
5926
6528
|
in2: "BackgroundImageFix",
|
|
5927
6529
|
result: "effect1_dropShadow_257_2540"
|
|
5928
6530
|
}
|
|
5929
6531
|
),
|
|
5930
|
-
/* @__PURE__ */ (0,
|
|
6532
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5931
6533
|
"feBlend",
|
|
5932
6534
|
{
|
|
5933
6535
|
in: "SourceGraphic",
|
|
@@ -5944,8 +6546,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime223.
|
|
|
5944
6546
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
5945
6547
|
|
|
5946
6548
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
5947
|
-
var
|
|
5948
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
6549
|
+
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6550
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
5949
6551
|
"svg",
|
|
5950
6552
|
{
|
|
5951
6553
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5953,14 +6555,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
5953
6555
|
fill: "none",
|
|
5954
6556
|
...props,
|
|
5955
6557
|
children: [
|
|
5956
|
-
/* @__PURE__ */ (0,
|
|
6558
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5957
6559
|
"path",
|
|
5958
6560
|
{
|
|
5959
6561
|
fill: "#000",
|
|
5960
6562
|
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
6563
|
}
|
|
5962
6564
|
) }),
|
|
5963
|
-
/* @__PURE__ */ (0,
|
|
6565
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5964
6566
|
"path",
|
|
5965
6567
|
{
|
|
5966
6568
|
fill: "#FAD44E",
|
|
@@ -5969,14 +6571,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
5969
6571
|
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
6572
|
}
|
|
5971
6573
|
),
|
|
5972
|
-
/* @__PURE__ */ (0,
|
|
6574
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5973
6575
|
"path",
|
|
5974
6576
|
{
|
|
5975
6577
|
fill: "#1A202C",
|
|
5976
6578
|
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
6579
|
}
|
|
5978
6580
|
),
|
|
5979
|
-
/* @__PURE__ */ (0,
|
|
6581
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
5980
6582
|
"filter",
|
|
5981
6583
|
{
|
|
5982
6584
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -5987,8 +6589,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
5987
6589
|
colorInterpolationFilters: "sRGB",
|
|
5988
6590
|
filterUnits: "userSpaceOnUse",
|
|
5989
6591
|
children: [
|
|
5990
|
-
/* @__PURE__ */ (0,
|
|
5991
|
-
/* @__PURE__ */ (0,
|
|
6592
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6593
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5992
6594
|
"feColorMatrix",
|
|
5993
6595
|
{
|
|
5994
6596
|
in: "SourceAlpha",
|
|
@@ -5996,18 +6598,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
5996
6598
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5997
6599
|
}
|
|
5998
6600
|
),
|
|
5999
|
-
/* @__PURE__ */ (0,
|
|
6000
|
-
/* @__PURE__ */ (0,
|
|
6001
|
-
/* @__PURE__ */ (0,
|
|
6002
|
-
/* @__PURE__ */ (0,
|
|
6003
|
-
/* @__PURE__ */ (0,
|
|
6601
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feOffset", { dy: 1 }),
|
|
6602
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6603
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6604
|
+
/* @__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" }),
|
|
6605
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6004
6606
|
"feBlend",
|
|
6005
6607
|
{
|
|
6006
6608
|
in2: "BackgroundImageFix",
|
|
6007
6609
|
result: "effect1_dropShadow_257_2538"
|
|
6008
6610
|
}
|
|
6009
6611
|
),
|
|
6010
|
-
/* @__PURE__ */ (0,
|
|
6612
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6011
6613
|
"feBlend",
|
|
6012
6614
|
{
|
|
6013
6615
|
in: "SourceGraphic",
|
|
@@ -6024,8 +6626,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime224
|
|
|
6024
6626
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
6025
6627
|
|
|
6026
6628
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
6027
|
-
var
|
|
6028
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
6629
|
+
var import_jsx_runtime228 = require("@emotion/react/jsx-runtime");
|
|
6630
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6029
6631
|
"svg",
|
|
6030
6632
|
{
|
|
6031
6633
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6033,14 +6635,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6033
6635
|
fill: "none",
|
|
6034
6636
|
...props,
|
|
6035
6637
|
children: [
|
|
6036
|
-
/* @__PURE__ */ (0,
|
|
6638
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6037
6639
|
"path",
|
|
6038
6640
|
{
|
|
6039
6641
|
fill: "#E2430C",
|
|
6040
6642
|
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
6643
|
}
|
|
6042
6644
|
),
|
|
6043
|
-
/* @__PURE__ */ (0,
|
|
6645
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6044
6646
|
"path",
|
|
6045
6647
|
{
|
|
6046
6648
|
fill: "#fff",
|
|
@@ -6053,8 +6655,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6053
6655
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
6054
6656
|
|
|
6055
6657
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
6056
|
-
var
|
|
6057
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
6658
|
+
var import_jsx_runtime229 = require("@emotion/react/jsx-runtime");
|
|
6659
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6058
6660
|
"svg",
|
|
6059
6661
|
{
|
|
6060
6662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6062,14 +6664,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6062
6664
|
fill: "none",
|
|
6063
6665
|
...props,
|
|
6064
6666
|
children: [
|
|
6065
|
-
/* @__PURE__ */ (0,
|
|
6667
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6066
6668
|
"path",
|
|
6067
6669
|
{
|
|
6068
6670
|
fill: "#E2430C",
|
|
6069
6671
|
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
6672
|
}
|
|
6071
6673
|
),
|
|
6072
|
-
/* @__PURE__ */ (0,
|
|
6674
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6073
6675
|
"path",
|
|
6074
6676
|
{
|
|
6075
6677
|
fill: "#000",
|
|
@@ -6082,8 +6684,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6082
6684
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
6083
6685
|
|
|
6084
6686
|
// src/Logo/Logo.tsx
|
|
6085
|
-
var
|
|
6086
|
-
var logoStyles = (size) =>
|
|
6687
|
+
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6688
|
+
var logoStyles = (size) => import_react42.css`
|
|
6087
6689
|
width: ${space[size]};
|
|
6088
6690
|
height: auto;
|
|
6089
6691
|
display: block;
|
|
@@ -6111,18 +6713,18 @@ var Logo = ({
|
|
|
6111
6713
|
return LandtrustStandardLight_default;
|
|
6112
6714
|
};
|
|
6113
6715
|
const LogoComponent = getLogoComponent();
|
|
6114
|
-
return /* @__PURE__ */ (0,
|
|
6716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
6115
6717
|
};
|
|
6116
6718
|
var Logo_default = Logo;
|
|
6117
6719
|
|
|
6118
6720
|
// src/Navigation/Navigation.styles.ts
|
|
6119
|
-
var
|
|
6120
|
-
var navigationStyles =
|
|
6721
|
+
var import_react43 = require("@emotion/react");
|
|
6722
|
+
var navigationStyles = import_react43.css`
|
|
6121
6723
|
width: 100%;
|
|
6122
6724
|
background-color: white;
|
|
6123
6725
|
border-bottom: 1px solid #e5e5e5;
|
|
6124
6726
|
`;
|
|
6125
|
-
var hamburgerButtonStyles =
|
|
6727
|
+
var hamburgerButtonStyles = import_react43.css`
|
|
6126
6728
|
cursor: pointer;
|
|
6127
6729
|
&:focus {
|
|
6128
6730
|
outline: 2px solid #4f46e5;
|
|
@@ -6133,7 +6735,7 @@ var hamburgerButtonStyles = import_react40.css`
|
|
|
6133
6735
|
display: none;
|
|
6134
6736
|
}
|
|
6135
6737
|
`;
|
|
6136
|
-
var centeredLogoStyles =
|
|
6738
|
+
var centeredLogoStyles = import_react43.css`
|
|
6137
6739
|
transform: translate(-50%, -50%);
|
|
6138
6740
|
max-width: 150px;
|
|
6139
6741
|
|
|
@@ -6141,27 +6743,27 @@ var centeredLogoStyles = import_react40.css`
|
|
|
6141
6743
|
display: none;
|
|
6142
6744
|
}
|
|
6143
6745
|
`;
|
|
6144
|
-
var desktopLogoStyles =
|
|
6746
|
+
var desktopLogoStyles = import_react43.css`
|
|
6145
6747
|
display: none;
|
|
6146
6748
|
|
|
6147
6749
|
@media (min-width: 768px) {
|
|
6148
6750
|
display: block;
|
|
6149
6751
|
}
|
|
6150
6752
|
`;
|
|
6151
|
-
var containerStyles3 =
|
|
6753
|
+
var containerStyles3 = import_react43.css`
|
|
6152
6754
|
@media (min-width: 768px) {
|
|
6153
6755
|
justify-content: space-between;
|
|
6154
6756
|
position: static;
|
|
6155
6757
|
}
|
|
6156
6758
|
`;
|
|
6157
|
-
var logoStyles2 =
|
|
6759
|
+
var logoStyles2 = import_react43.css`
|
|
6158
6760
|
width: 100%;
|
|
6159
6761
|
|
|
6160
6762
|
@media (min-width: 768px) {
|
|
6161
6763
|
width: initial;
|
|
6162
6764
|
}
|
|
6163
6765
|
`;
|
|
6164
|
-
var desktopNavStyles =
|
|
6766
|
+
var desktopNavStyles = import_react43.css`
|
|
6165
6767
|
display: none;
|
|
6166
6768
|
|
|
6167
6769
|
@media (min-width: 768px) {
|
|
@@ -6170,7 +6772,7 @@ var desktopNavStyles = import_react40.css`
|
|
|
6170
6772
|
gap: 32px;
|
|
6171
6773
|
}
|
|
6172
6774
|
`;
|
|
6173
|
-
var navLinksStyles =
|
|
6775
|
+
var navLinksStyles = import_react43.css`
|
|
6174
6776
|
display: flex;
|
|
6175
6777
|
align-items: center;
|
|
6176
6778
|
gap: 24px;
|
|
@@ -6178,7 +6780,7 @@ var navLinksStyles = import_react40.css`
|
|
|
6178
6780
|
margin: 0;
|
|
6179
6781
|
padding: 0;
|
|
6180
6782
|
`;
|
|
6181
|
-
var navLinkStyles =
|
|
6783
|
+
var navLinkStyles = import_react43.css`
|
|
6182
6784
|
text-decoration: none;
|
|
6183
6785
|
color: #374151;
|
|
6184
6786
|
font-weight: 500;
|
|
@@ -6194,7 +6796,7 @@ var navLinkStyles = import_react40.css`
|
|
|
6194
6796
|
outline-offset: 2px;
|
|
6195
6797
|
}
|
|
6196
6798
|
`;
|
|
6197
|
-
var avatarPlaceholderStyles =
|
|
6799
|
+
var avatarPlaceholderStyles = import_react43.css`
|
|
6198
6800
|
width: 32px;
|
|
6199
6801
|
height: 32px;
|
|
6200
6802
|
border-radius: 50%;
|
|
@@ -6219,7 +6821,7 @@ var avatarPlaceholderStyles = import_react40.css`
|
|
|
6219
6821
|
`;
|
|
6220
6822
|
|
|
6221
6823
|
// src/Navigation/Navigation.tsx
|
|
6222
|
-
var
|
|
6824
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6223
6825
|
var Navigation = ({
|
|
6224
6826
|
onMenuToggle,
|
|
6225
6827
|
className,
|
|
@@ -6233,7 +6835,7 @@ var Navigation = ({
|
|
|
6233
6835
|
onAvatarClick,
|
|
6234
6836
|
...rest
|
|
6235
6837
|
}) => {
|
|
6236
|
-
return /* @__PURE__ */ (0,
|
|
6838
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
|
|
6237
6839
|
Box_default,
|
|
6238
6840
|
{
|
|
6239
6841
|
display: "flex",
|
|
@@ -6242,7 +6844,7 @@ var Navigation = ({
|
|
|
6242
6844
|
position: "relative",
|
|
6243
6845
|
css: containerStyles3,
|
|
6244
6846
|
children: [
|
|
6245
|
-
/* @__PURE__ */ (0,
|
|
6847
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6246
6848
|
Box_default,
|
|
6247
6849
|
{
|
|
6248
6850
|
as: "button",
|
|
@@ -6254,11 +6856,11 @@ var Navigation = ({
|
|
|
6254
6856
|
border: "none",
|
|
6255
6857
|
padding: space[2],
|
|
6256
6858
|
css: hamburgerButtonStyles,
|
|
6257
|
-
children: /* @__PURE__ */ (0,
|
|
6859
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
6258
6860
|
}
|
|
6259
6861
|
),
|
|
6260
|
-
/* @__PURE__ */ (0,
|
|
6261
|
-
/* @__PURE__ */ (0,
|
|
6862
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
6863
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6262
6864
|
Logo_default,
|
|
6263
6865
|
{
|
|
6264
6866
|
variant: logoVariant,
|
|
@@ -6267,8 +6869,8 @@ var Navigation = ({
|
|
|
6267
6869
|
css: logoStyles2
|
|
6268
6870
|
}
|
|
6269
6871
|
) }),
|
|
6270
|
-
/* @__PURE__ */ (0,
|
|
6271
|
-
/* @__PURE__ */ (0,
|
|
6872
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
6873
|
+
/* @__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
6874
|
"a",
|
|
6273
6875
|
{
|
|
6274
6876
|
href: link.href,
|
|
@@ -6277,7 +6879,7 @@ var Navigation = ({
|
|
|
6277
6879
|
children: link.label
|
|
6278
6880
|
}
|
|
6279
6881
|
) }, link.href)) }) }),
|
|
6280
|
-
/* @__PURE__ */ (0,
|
|
6882
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6281
6883
|
Box_default,
|
|
6282
6884
|
{
|
|
6283
6885
|
as: "button",
|
|
@@ -6296,8 +6898,8 @@ var Navigation = ({
|
|
|
6296
6898
|
var Navigation_default = Navigation;
|
|
6297
6899
|
|
|
6298
6900
|
// src/PackageCard/PackageCard.styles.ts
|
|
6299
|
-
var
|
|
6300
|
-
var cardContainerStyles3 =
|
|
6901
|
+
var import_react44 = require("@emotion/react");
|
|
6902
|
+
var cardContainerStyles3 = import_react44.css`
|
|
6301
6903
|
color: var(--text-primary);
|
|
6302
6904
|
position: relative;
|
|
6303
6905
|
width: 100%;
|
|
@@ -6314,14 +6916,14 @@ var cardContainerStyles3 = import_react41.css`
|
|
|
6314
6916
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
6315
6917
|
}
|
|
6316
6918
|
`;
|
|
6317
|
-
var imageContainerStyles =
|
|
6919
|
+
var imageContainerStyles = import_react44.css`
|
|
6318
6920
|
position: relative;
|
|
6319
6921
|
width: 100%;
|
|
6320
6922
|
height: 200px;
|
|
6321
6923
|
overflow: hidden;
|
|
6322
6924
|
border-radius: var(--spacing-4);
|
|
6323
6925
|
`;
|
|
6324
|
-
var
|
|
6926
|
+
var imageStyles2 = import_react44.css`
|
|
6325
6927
|
width: 100%;
|
|
6326
6928
|
height: 100%;
|
|
6327
6929
|
background-size: cover;
|
|
@@ -6329,13 +6931,13 @@ var imageStyles = import_react41.css`
|
|
|
6329
6931
|
background-repeat: no-repeat;
|
|
6330
6932
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
6331
6933
|
`;
|
|
6332
|
-
var badgeStyles =
|
|
6934
|
+
var badgeStyles = import_react44.css`
|
|
6333
6935
|
position: absolute;
|
|
6334
6936
|
top: var(--spacing-3);
|
|
6335
6937
|
left: var(--spacing-3);
|
|
6336
6938
|
z-index: 2;
|
|
6337
6939
|
`;
|
|
6338
|
-
var heartIconStyles =
|
|
6940
|
+
var heartIconStyles = import_react44.css`
|
|
6339
6941
|
position: absolute;
|
|
6340
6942
|
top: var(--spacing-3);
|
|
6341
6943
|
right: var(--spacing-3);
|
|
@@ -6357,12 +6959,12 @@ var heartIconStyles = import_react41.css`
|
|
|
6357
6959
|
transform: scale(1.1);
|
|
6358
6960
|
}
|
|
6359
6961
|
`;
|
|
6360
|
-
var contentStyles2 =
|
|
6962
|
+
var contentStyles2 = import_react44.css`
|
|
6361
6963
|
padding: var(--spacing-3);
|
|
6362
6964
|
`;
|
|
6363
6965
|
|
|
6364
6966
|
// src/PackageCard/PackageCard.tsx
|
|
6365
|
-
var
|
|
6967
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6366
6968
|
var PackageCard = ({
|
|
6367
6969
|
images,
|
|
6368
6970
|
title,
|
|
@@ -6379,13 +6981,13 @@ var PackageCard = ({
|
|
|
6379
6981
|
...rest
|
|
6380
6982
|
}) => {
|
|
6381
6983
|
const mainImage = images[0] || "";
|
|
6382
|
-
return /* @__PURE__ */ (0,
|
|
6383
|
-
/* @__PURE__ */ (0,
|
|
6384
|
-
tripsLeft && /* @__PURE__ */ (0,
|
|
6984
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { css: cardContainerStyles3, className, ...rest, children: [
|
|
6985
|
+
/* @__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: [
|
|
6986
|
+
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(AvailabilityBadge_default, { variant: "warning", css: badgeStyles, children: [
|
|
6385
6987
|
tripsLeft,
|
|
6386
6988
|
" Trips Left"
|
|
6387
6989
|
] }),
|
|
6388
|
-
/* @__PURE__ */ (0,
|
|
6990
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6389
6991
|
Box_default,
|
|
6390
6992
|
{
|
|
6391
6993
|
css: heartIconStyles,
|
|
@@ -6393,7 +6995,7 @@ var PackageCard = ({
|
|
|
6393
6995
|
e.stopPropagation();
|
|
6394
6996
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
6395
6997
|
},
|
|
6396
|
-
children: /* @__PURE__ */ (0,
|
|
6998
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6397
6999
|
Icon_default,
|
|
6398
7000
|
{
|
|
6399
7001
|
variant: isFavorited ? "HeartSolid" : "Heart",
|
|
@@ -6403,8 +7005,8 @@ var PackageCard = ({
|
|
|
6403
7005
|
}
|
|
6404
7006
|
)
|
|
6405
7007
|
] }) }),
|
|
6406
|
-
/* @__PURE__ */ (0,
|
|
6407
|
-
/* @__PURE__ */ (0,
|
|
7008
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
7009
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6408
7010
|
Box_default,
|
|
6409
7011
|
{
|
|
6410
7012
|
onClick,
|
|
@@ -6413,9 +7015,9 @@ var PackageCard = ({
|
|
|
6413
7015
|
gap: "var(--spacing-1)",
|
|
6414
7016
|
mb: "var(--spacing-4)",
|
|
6415
7017
|
children: [
|
|
6416
|
-
/* @__PURE__ */ (0,
|
|
6417
|
-
/* @__PURE__ */ (0,
|
|
6418
|
-
/* @__PURE__ */ (0,
|
|
7018
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
7019
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "xs", fontWeight: "bold", children: subtitle }) }),
|
|
7020
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Text_default, { size: "xs", fontWeight: "normal", children: [
|
|
6419
7021
|
"Starting Price ",
|
|
6420
7022
|
startingPrice,
|
|
6421
7023
|
" / Guest"
|
|
@@ -6423,22 +7025,22 @@ var PackageCard = ({
|
|
|
6423
7025
|
]
|
|
6424
7026
|
}
|
|
6425
7027
|
),
|
|
6426
|
-
/* @__PURE__ */ (0,
|
|
6427
|
-
days && /* @__PURE__ */ (0,
|
|
7028
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", gap: "var(--spacing-3)", alignItems: "center", children: [
|
|
7029
|
+
days && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6428
7030
|
IconLabel_default,
|
|
6429
7031
|
{
|
|
6430
7032
|
variant: "Calendar",
|
|
6431
7033
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
6432
7034
|
}
|
|
6433
7035
|
),
|
|
6434
|
-
guests && /* @__PURE__ */ (0,
|
|
7036
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6435
7037
|
IconLabel_default,
|
|
6436
7038
|
{
|
|
6437
7039
|
variant: "User",
|
|
6438
7040
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
6439
7041
|
}
|
|
6440
7042
|
),
|
|
6441
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
7043
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
6442
7044
|
] })
|
|
6443
7045
|
] })
|
|
6444
7046
|
] });
|
|
@@ -6446,14 +7048,14 @@ var PackageCard = ({
|
|
|
6446
7048
|
var PackageCard_default = PackageCard;
|
|
6447
7049
|
|
|
6448
7050
|
// src/PackageHeader/PackageHeader.tsx
|
|
6449
|
-
var
|
|
7051
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
6450
7052
|
var PackageHeader = ({
|
|
6451
7053
|
header,
|
|
6452
7054
|
subheader,
|
|
6453
7055
|
features,
|
|
6454
7056
|
className
|
|
6455
7057
|
}) => {
|
|
6456
|
-
return /* @__PURE__ */ (0,
|
|
7058
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
6457
7059
|
Box_default,
|
|
6458
7060
|
{
|
|
6459
7061
|
display: "flex",
|
|
@@ -6462,9 +7064,9 @@ var PackageHeader = ({
|
|
|
6462
7064
|
color: "var(--text-primary)",
|
|
6463
7065
|
className,
|
|
6464
7066
|
children: [
|
|
6465
|
-
/* @__PURE__ */ (0,
|
|
6466
|
-
subheader && /* @__PURE__ */ (0,
|
|
6467
|
-
features && /* @__PURE__ */ (0,
|
|
7067
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
7068
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { children: subheader }),
|
|
7069
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(FeatureList_default, { items: features })
|
|
6468
7070
|
]
|
|
6469
7071
|
}
|
|
6470
7072
|
);
|
|
@@ -6472,8 +7074,8 @@ var PackageHeader = ({
|
|
|
6472
7074
|
var PackageHeader_default = PackageHeader;
|
|
6473
7075
|
|
|
6474
7076
|
// src/StarRating/StarRating.tsx
|
|
6475
|
-
var
|
|
6476
|
-
var
|
|
7077
|
+
var import_react45 = require("@emotion/react");
|
|
7078
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
6477
7079
|
var starSize = {
|
|
6478
7080
|
sm: {
|
|
6479
7081
|
size: "medium",
|
|
@@ -6492,13 +7094,13 @@ var StarRating = ({
|
|
|
6492
7094
|
const stars = [];
|
|
6493
7095
|
for (let i = 1; i <= 5; i++) {
|
|
6494
7096
|
stars.push(
|
|
6495
|
-
/* @__PURE__ */ (0,
|
|
7097
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6496
7098
|
Icon_default,
|
|
6497
7099
|
{
|
|
6498
7100
|
variant: "StarSolid",
|
|
6499
7101
|
size: starSize[size].size,
|
|
6500
7102
|
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)",
|
|
6501
|
-
css:
|
|
7103
|
+
css: import_react45.css`
|
|
6502
7104
|
${size === "md" && "width: 40px; height: 40px;"}
|
|
6503
7105
|
`
|
|
6504
7106
|
},
|
|
@@ -6506,7 +7108,7 @@ var StarRating = ({
|
|
|
6506
7108
|
)
|
|
6507
7109
|
);
|
|
6508
7110
|
}
|
|
6509
|
-
return /* @__PURE__ */ (0,
|
|
7111
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6510
7112
|
Box_default,
|
|
6511
7113
|
{
|
|
6512
7114
|
className,
|
|
@@ -6520,7 +7122,7 @@ var StarRating = ({
|
|
|
6520
7122
|
var StarRating_default = StarRating;
|
|
6521
7123
|
|
|
6522
7124
|
// src/UserCard/UserCard.tsx
|
|
6523
|
-
var
|
|
7125
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
6524
7126
|
var UserCard = ({
|
|
6525
7127
|
avatarSrc,
|
|
6526
7128
|
title,
|
|
@@ -6529,7 +7131,7 @@ var UserCard = ({
|
|
|
6529
7131
|
showRating = true,
|
|
6530
7132
|
className
|
|
6531
7133
|
}) => {
|
|
6532
|
-
return /* @__PURE__ */ (0,
|
|
7134
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
6533
7135
|
Box_default,
|
|
6534
7136
|
{
|
|
6535
7137
|
display: "flex",
|
|
@@ -6537,11 +7139,11 @@ var UserCard = ({
|
|
|
6537
7139
|
gap: "var(--spacing-4)",
|
|
6538
7140
|
className,
|
|
6539
7141
|
children: [
|
|
6540
|
-
/* @__PURE__ */ (0,
|
|
6541
|
-
/* @__PURE__ */ (0,
|
|
6542
|
-
/* @__PURE__ */ (0,
|
|
6543
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6544
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
7142
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Avatar_default, { type: "image", src: avatarSrc, alt: `${title}'s avatar` }),
|
|
7143
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
7144
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
7145
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }),
|
|
7146
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(StarRating_default, { rating, size: "sm" })
|
|
6545
7147
|
] })
|
|
6546
7148
|
]
|
|
6547
7149
|
}
|
|
@@ -6550,8 +7152,8 @@ var UserCard = ({
|
|
|
6550
7152
|
var UserCard_default = UserCard;
|
|
6551
7153
|
|
|
6552
7154
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
6553
|
-
var
|
|
6554
|
-
var
|
|
7155
|
+
var import_react46 = require("@emotion/react");
|
|
7156
|
+
var imageStyles3 = import_react46.css`
|
|
6555
7157
|
flex: 1;
|
|
6556
7158
|
min-width: 0;
|
|
6557
7159
|
aspect-ratio: 1;
|
|
@@ -6561,18 +7163,18 @@ var imageStyles2 = import_react43.css`
|
|
|
6561
7163
|
`;
|
|
6562
7164
|
|
|
6563
7165
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
6564
|
-
var
|
|
7166
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
6565
7167
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
6566
7168
|
const displayImages = images.slice(0, maxImages);
|
|
6567
7169
|
if (displayImages.length === 0) {
|
|
6568
7170
|
return null;
|
|
6569
7171
|
}
|
|
6570
|
-
return /* @__PURE__ */ (0,
|
|
7172
|
+
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
7173
|
"img",
|
|
6572
7174
|
{
|
|
6573
7175
|
src: image,
|
|
6574
7176
|
alt: `Review ${index + 1}`,
|
|
6575
|
-
css:
|
|
7177
|
+
css: imageStyles3
|
|
6576
7178
|
},
|
|
6577
7179
|
index
|
|
6578
7180
|
)) });
|
|
@@ -6580,7 +7182,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
6580
7182
|
var ReviewImages_default = ReviewImages;
|
|
6581
7183
|
|
|
6582
7184
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
6583
|
-
var
|
|
7185
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
6584
7186
|
var ReviewReply = ({
|
|
6585
7187
|
avatarSrc,
|
|
6586
7188
|
name,
|
|
@@ -6589,7 +7191,7 @@ var ReviewReply = ({
|
|
|
6589
7191
|
label,
|
|
6590
7192
|
rating
|
|
6591
7193
|
}) => {
|
|
6592
|
-
return /* @__PURE__ */ (0,
|
|
7194
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
6593
7195
|
Box_default,
|
|
6594
7196
|
{
|
|
6595
7197
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -6599,7 +7201,7 @@ var ReviewReply = ({
|
|
|
6599
7201
|
flexDirection: "column",
|
|
6600
7202
|
gap: "var(--spacing-3)",
|
|
6601
7203
|
children: [
|
|
6602
|
-
/* @__PURE__ */ (0,
|
|
7204
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
6603
7205
|
Box_default,
|
|
6604
7206
|
{
|
|
6605
7207
|
display: "flex",
|
|
@@ -6607,7 +7209,7 @@ var ReviewReply = ({
|
|
|
6607
7209
|
justifyContent: "space-between",
|
|
6608
7210
|
gap: "var(--spacing-2)",
|
|
6609
7211
|
children: [
|
|
6610
|
-
/* @__PURE__ */ (0,
|
|
7212
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
6611
7213
|
UserCard_default,
|
|
6612
7214
|
{
|
|
6613
7215
|
avatarSrc,
|
|
@@ -6616,11 +7218,11 @@ var ReviewReply = ({
|
|
|
6616
7218
|
rating
|
|
6617
7219
|
}
|
|
6618
7220
|
),
|
|
6619
|
-
/* @__PURE__ */ (0,
|
|
7221
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
6620
7222
|
]
|
|
6621
7223
|
}
|
|
6622
7224
|
),
|
|
6623
|
-
/* @__PURE__ */ (0,
|
|
7225
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Text_default, { children: content })
|
|
6624
7226
|
]
|
|
6625
7227
|
}
|
|
6626
7228
|
);
|
|
@@ -6628,7 +7230,7 @@ var ReviewReply = ({
|
|
|
6628
7230
|
var ReviewReply_default = ReviewReply;
|
|
6629
7231
|
|
|
6630
7232
|
// src/ReviewCard/ReviewCard.tsx
|
|
6631
|
-
var
|
|
7233
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
6632
7234
|
var ReviewCard = ({
|
|
6633
7235
|
avatarSrc,
|
|
6634
7236
|
name,
|
|
@@ -6640,7 +7242,7 @@ var ReviewCard = ({
|
|
|
6640
7242
|
replies = [],
|
|
6641
7243
|
className
|
|
6642
7244
|
}) => {
|
|
6643
|
-
return /* @__PURE__ */ (0,
|
|
7245
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
6644
7246
|
Box_default,
|
|
6645
7247
|
{
|
|
6646
7248
|
backgroundColor: "white",
|
|
@@ -6652,7 +7254,7 @@ var ReviewCard = ({
|
|
|
6652
7254
|
border: "1px solid var(--color-neutral-200)",
|
|
6653
7255
|
className,
|
|
6654
7256
|
children: [
|
|
6655
|
-
/* @__PURE__ */ (0,
|
|
7257
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
6656
7258
|
UserCard_default,
|
|
6657
7259
|
{
|
|
6658
7260
|
avatarSrc,
|
|
@@ -6661,10 +7263,10 @@ var ReviewCard = ({
|
|
|
6661
7263
|
rating
|
|
6662
7264
|
}
|
|
6663
7265
|
),
|
|
6664
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
6665
|
-
/* @__PURE__ */ (0,
|
|
6666
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
6667
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
7266
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
7267
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Text_default, { size: "md", children: content }),
|
|
7268
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(ReviewImages_default, { images }),
|
|
7269
|
+
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
7270
|
ReviewReply_default,
|
|
6669
7271
|
{
|
|
6670
7272
|
avatarSrc: reply.avatarSrc,
|
|
@@ -6683,9 +7285,9 @@ var ReviewCard = ({
|
|
|
6683
7285
|
var ReviewCard_default = ReviewCard;
|
|
6684
7286
|
|
|
6685
7287
|
// src/Reviews/components/ReviewItem.tsx
|
|
6686
|
-
var
|
|
7288
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
6687
7289
|
var ReviewItem = ({ label, rating }) => {
|
|
6688
|
-
return /* @__PURE__ */ (0,
|
|
7290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
|
|
6689
7291
|
Box_default,
|
|
6690
7292
|
{
|
|
6691
7293
|
display: "flex",
|
|
@@ -6693,10 +7295,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
6693
7295
|
alignItems: "center",
|
|
6694
7296
|
width: "100%",
|
|
6695
7297
|
children: [
|
|
6696
|
-
/* @__PURE__ */ (0,
|
|
6697
|
-
/* @__PURE__ */ (0,
|
|
6698
|
-
/* @__PURE__ */ (0,
|
|
6699
|
-
/* @__PURE__ */ (0,
|
|
7298
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
7299
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
7300
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
7301
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(Text_default, { fontWeight: "semibold", children: [
|
|
6700
7302
|
rating,
|
|
6701
7303
|
"/5"
|
|
6702
7304
|
] })
|
|
@@ -6708,14 +7310,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
6708
7310
|
var ReviewItem_default = ReviewItem;
|
|
6709
7311
|
|
|
6710
7312
|
// src/Reviews/Reviews.tsx
|
|
6711
|
-
var
|
|
7313
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
6712
7314
|
var Reviews = ({
|
|
6713
7315
|
averageRating,
|
|
6714
7316
|
totalReviews,
|
|
6715
7317
|
items,
|
|
6716
7318
|
className
|
|
6717
7319
|
}) => {
|
|
6718
|
-
return /* @__PURE__ */ (0,
|
|
7320
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
|
|
6719
7321
|
Box_default,
|
|
6720
7322
|
{
|
|
6721
7323
|
width: "100%",
|
|
@@ -6728,7 +7330,7 @@ var Reviews = ({
|
|
|
6728
7330
|
p: "var(--spacing-4)",
|
|
6729
7331
|
className,
|
|
6730
7332
|
children: [
|
|
6731
|
-
/* @__PURE__ */ (0,
|
|
7333
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
|
|
6732
7334
|
Box_default,
|
|
6733
7335
|
{
|
|
6734
7336
|
display: "flex",
|
|
@@ -6736,9 +7338,9 @@ var Reviews = ({
|
|
|
6736
7338
|
alignItems: "center",
|
|
6737
7339
|
gap: "var(--spacing-2)",
|
|
6738
7340
|
children: [
|
|
6739
|
-
/* @__PURE__ */ (0,
|
|
6740
|
-
/* @__PURE__ */ (0,
|
|
6741
|
-
/* @__PURE__ */ (0,
|
|
7341
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
7342
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(StarRating_default, { rating: Math.floor(averageRating) }),
|
|
7343
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
6742
7344
|
"Overall Rating \u2022 ",
|
|
6743
7345
|
totalReviews,
|
|
6744
7346
|
" Review",
|
|
@@ -6747,14 +7349,14 @@ var Reviews = ({
|
|
|
6747
7349
|
]
|
|
6748
7350
|
}
|
|
6749
7351
|
),
|
|
6750
|
-
/* @__PURE__ */ (0,
|
|
7352
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
6751
7353
|
Box_default,
|
|
6752
7354
|
{
|
|
6753
7355
|
display: "flex",
|
|
6754
7356
|
flexDirection: "column",
|
|
6755
7357
|
gap: "var(--spacing-2)",
|
|
6756
7358
|
width: "100%",
|
|
6757
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
7359
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
6758
7360
|
}
|
|
6759
7361
|
)
|
|
6760
7362
|
]
|
|
@@ -6764,7 +7366,7 @@ var Reviews = ({
|
|
|
6764
7366
|
var Reviews_default = Reviews;
|
|
6765
7367
|
|
|
6766
7368
|
// src/Reviews/ReviewsShowcase.tsx
|
|
6767
|
-
var
|
|
7369
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
6768
7370
|
var ReviewsShowcase = () => {
|
|
6769
7371
|
const sampleData = {
|
|
6770
7372
|
averageRating: 4,
|
|
@@ -6786,7 +7388,7 @@ var ReviewsShowcase = () => {
|
|
|
6786
7388
|
{ label: "Game Abundance", rating: 5 }
|
|
6787
7389
|
]
|
|
6788
7390
|
};
|
|
6789
|
-
return /* @__PURE__ */ (0,
|
|
7391
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
6790
7392
|
Box_default,
|
|
6791
7393
|
{
|
|
6792
7394
|
display: "flex",
|
|
@@ -6794,24 +7396,24 @@ var ReviewsShowcase = () => {
|
|
|
6794
7396
|
gap: "var(--spacing-8)",
|
|
6795
7397
|
p: "var(--spacing-6)",
|
|
6796
7398
|
children: [
|
|
6797
|
-
/* @__PURE__ */ (0,
|
|
6798
|
-
/* @__PURE__ */ (0,
|
|
6799
|
-
/* @__PURE__ */ (0,
|
|
6800
|
-
/* @__PURE__ */ (0,
|
|
7399
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
7400
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7401
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
7402
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Reviews_default, { ...sampleData }) })
|
|
6801
7403
|
] }),
|
|
6802
|
-
/* @__PURE__ */ (0,
|
|
6803
|
-
/* @__PURE__ */ (0,
|
|
6804
|
-
/* @__PURE__ */ (0,
|
|
7404
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7405
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
7406
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Reviews_default, { ...highRatingData }) })
|
|
6805
7407
|
] }),
|
|
6806
|
-
/* @__PURE__ */ (0,
|
|
6807
|
-
/* @__PURE__ */ (0,
|
|
6808
|
-
/* @__PURE__ */ (0,
|
|
7408
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7409
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
7410
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
6809
7411
|
Box_default,
|
|
6810
7412
|
{
|
|
6811
7413
|
maxWidth: "320px",
|
|
6812
7414
|
border: "1px solid var(--color-neutral-200)",
|
|
6813
7415
|
p: "var(--spacing-4)",
|
|
6814
|
-
children: /* @__PURE__ */ (0,
|
|
7416
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Reviews_default, { ...sampleData })
|
|
6815
7417
|
}
|
|
6816
7418
|
)
|
|
6817
7419
|
] })
|
|
@@ -6847,6 +7449,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
6847
7449
|
LayoutTokens,
|
|
6848
7450
|
ListingChat,
|
|
6849
7451
|
Logo,
|
|
7452
|
+
MarkdownContent,
|
|
6850
7453
|
MessageBubble,
|
|
6851
7454
|
Navigation,
|
|
6852
7455
|
PackageCard,
|