@landtrustinc/design-system 1.1.7 → 1.2.0
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 +48 -19
- package/dist/index.js +378 -272
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
33
|
AIResponse: () => AIResponse_default,
|
|
34
|
-
|
|
34
|
+
AvailabilityBadge: () => AvailabilityBadge_default,
|
|
35
35
|
Avatar: () => Avatar_default,
|
|
36
36
|
Box: () => Box_default,
|
|
37
37
|
Button: () => Button_default,
|
|
@@ -49,6 +49,7 @@ __export(src_exports, {
|
|
|
49
49
|
HuntCard: () => HuntCard_default,
|
|
50
50
|
Icon: () => Icon_default,
|
|
51
51
|
IconLabel: () => IconLabel_default,
|
|
52
|
+
IconSizeMap: () => IconSizeMap,
|
|
52
53
|
InfoBox: () => InfoBox_default,
|
|
53
54
|
Input: () => Input,
|
|
54
55
|
LayoutTokens: () => LayoutTokens,
|
|
@@ -57,6 +58,7 @@ __export(src_exports, {
|
|
|
57
58
|
MessageBubble: () => MessageBubble_default,
|
|
58
59
|
Navigation: () => Navigation_default,
|
|
59
60
|
PackageCard: () => PackageCard_default,
|
|
61
|
+
PackageHeader: () => PackageHeader_default,
|
|
60
62
|
ReviewCard: () => ReviewCard_default,
|
|
61
63
|
Reviews: () => Reviews_default,
|
|
62
64
|
ReviewsShowcase: () => ReviewsShowcase_default,
|
|
@@ -910,7 +912,13 @@ var Bear_default = SvgBear;
|
|
|
910
912
|
|
|
911
913
|
// src/Icon/components/BedSolid.tsx
|
|
912
914
|
var import_jsx_runtime22 = require("@emotion/react/jsx-runtime");
|
|
913
|
-
var SvgBedSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
915
|
+
var SvgBedSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 26 26", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
|
|
916
|
+
"path",
|
|
917
|
+
{
|
|
918
|
+
fill: "currentColor",
|
|
919
|
+
d: "M4 6c.553 0 1 .447 1 1v8h7v-5c0-.553.447-1 1-1h7a3 3 0 0 1 3 3v7a.999.999 0 1 1-2 0v-1H5v1a.999.999 0 1 1-2 0V7c0-.553.447-1 1-1m4.5 3a2.5 2.5 0 1 1 0 5 2.5 2.5 0 0 1 0-5"
|
|
920
|
+
}
|
|
921
|
+
) });
|
|
914
922
|
var BedSolid_default = SvgBedSolid;
|
|
915
923
|
|
|
916
924
|
// src/Icon/components/Bell.tsx
|
|
@@ -1530,7 +1538,13 @@ var GameFeeder_default = SvgGameFeeder;
|
|
|
1530
1538
|
|
|
1531
1539
|
// src/Icon/components/GridSolid.tsx
|
|
1532
1540
|
var import_jsx_runtime73 = require("@emotion/react/jsx-runtime");
|
|
1533
|
-
var SvgGridSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
1541
|
+
var SvgGridSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime73.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 26 26", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime73.jsx)(
|
|
1542
|
+
"path",
|
|
1543
|
+
{
|
|
1544
|
+
fill: "currentColor",
|
|
1545
|
+
d: "M5 6.429C5 5.639 5.64 5 6.429 5h1.714c.79 0 1.428.64 1.428 1.429v1.714c0 .79-.639 1.428-1.428 1.428H6.429C5.639 9.571 5 8.932 5 8.143zm0 5.714c0-.79.64-1.429 1.429-1.429h1.714c.79 0 1.428.64 1.428 1.429v1.714c0 .79-.639 1.429-1.428 1.429H6.429c-.79 0-1.429-.64-1.429-1.429zm4.571 5.714v1.714c0 .79-.639 1.429-1.428 1.429H6.429C5.639 21 5 20.36 5 19.571v-1.714c0-.79.64-1.428 1.429-1.428h1.714c.79 0 1.428.639 1.428 1.428M10.714 6.43c0-.79.64-1.429 1.429-1.429h1.714c.79 0 1.429.64 1.429 1.429v1.714c0 .79-.64 1.428-1.429 1.428h-1.714c-.79 0-1.429-.639-1.429-1.428zm4.572 5.714v1.714c0 .79-.64 1.429-1.429 1.429h-1.714c-.79 0-1.429-.64-1.429-1.429v-1.714c0-.79.64-1.429 1.429-1.429h1.714c.79 0 1.429.64 1.429 1.429m-4.572 5.714c0-.79.64-1.428 1.429-1.428h1.714c.79 0 1.429.639 1.429 1.428v1.714c0 .79-.64 1.429-1.429 1.429h-1.714c-.79 0-1.429-.64-1.429-1.429zM21 6.43v1.714c0 .79-.64 1.428-1.429 1.428h-1.714c-.79 0-1.428-.639-1.428-1.428V6.429c0-.79.639-1.429 1.428-1.429h1.714C20.361 5 21 5.64 21 6.429m-4.571 5.714c0-.79.639-1.429 1.428-1.429h1.714c.79 0 1.429.64 1.429 1.429v1.714c0 .79-.64 1.429-1.429 1.429h-1.714c-.79 0-1.428-.64-1.428-1.429zM21 17.857v1.714c0 .79-.64 1.429-1.429 1.429h-1.714c-.79 0-1.428-.64-1.428-1.429v-1.714c0-.79.639-1.428 1.428-1.428h1.714c.79 0 1.429.639 1.429 1.428"
|
|
1546
|
+
}
|
|
1547
|
+
) });
|
|
1534
1548
|
var GridSolid_default = SvgGridSolid;
|
|
1535
1549
|
|
|
1536
1550
|
// src/Icon/components/GrillHotSolid.tsx
|
|
@@ -1540,16 +1554,13 @@ var GrillHotSolid_default = SvgGrillHotSolid;
|
|
|
1540
1554
|
|
|
1541
1555
|
// src/Icon/components/GroundBlind.tsx
|
|
1542
1556
|
var import_jsx_runtime75 = require("@emotion/react/jsx-runtime");
|
|
1543
|
-
var SvgGroundBlind = (props) => /* @__PURE__ */ (0, import_jsx_runtime75.
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
"
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
}
|
|
1551
|
-
)
|
|
1552
|
-
] });
|
|
1557
|
+
var SvgGroundBlind = (props) => /* @__PURE__ */ (0, import_jsx_runtime75.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 26 26", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime75.jsx)(
|
|
1558
|
+
"path",
|
|
1559
|
+
{
|
|
1560
|
+
fill: "currentColor",
|
|
1561
|
+
d: "M21.615 6.77V22H5V6.77L13.308 4zM7.077 15.077h4.846L7.077 9.538zm7.615 0h4.846V9.538zM9.154 9.538l4.154 4.154 4.154-4.154z"
|
|
1562
|
+
}
|
|
1563
|
+
) });
|
|
1553
1564
|
var GroundBlind_default = SvgGroundBlind;
|
|
1554
1565
|
|
|
1555
1566
|
// src/Icon/components/HandsUsd.tsx
|
|
@@ -1987,7 +1998,15 @@ var LocationCircle_default = SvgLocationCircle;
|
|
|
1987
1998
|
|
|
1988
1999
|
// src/Icon/components/LocationDotSolid.tsx
|
|
1989
2000
|
var import_jsx_runtime119 = require("@emotion/react/jsx-runtime");
|
|
1990
|
-
var SvgLocationDotSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
2001
|
+
var SvgLocationDotSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime119.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 26 26", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime119.jsx)(
|
|
2002
|
+
"path",
|
|
2003
|
+
{
|
|
2004
|
+
fill: "currentColor",
|
|
2005
|
+
fillRule: "evenodd",
|
|
2006
|
+
d: "M14.025 22.573c1.909-2.389 6.262-8.178 6.262-11.43C20.287 7.2 17.087 4 13.144 4A7.145 7.145 0 0 0 6 11.143c0 3.252 4.353 9.042 6.262 11.43.457.57 1.306.57 1.763 0m-.882-13.81a2.381 2.381 0 1 1 0 4.762 2.381 2.381 0 0 1 0-4.763",
|
|
2007
|
+
clipRule: "evenodd"
|
|
2008
|
+
}
|
|
2009
|
+
) });
|
|
1991
2010
|
var LocationDotSolid_default = SvgLocationDotSolid;
|
|
1992
2011
|
|
|
1993
2012
|
// src/Icon/components/MagnifyingGlass.tsx
|
|
@@ -2553,7 +2572,7 @@ var StarRegular_default = SvgStarRegular;
|
|
|
2553
2572
|
|
|
2554
2573
|
// src/Icon/components/StarSolid.tsx
|
|
2555
2574
|
var import_jsx_runtime167 = require("@emotion/react/jsx-runtime");
|
|
2556
|
-
var SvgStarSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
2575
|
+
var SvgStarSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 26 26", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("path", { d: "M13.781 4.474a.878.878 0 0 0-1.556 0L9.55 9.686l-5.813.918a.87.87 0 0 0-.483 1.471l4.158 4.14-.916 5.78a.87.87 0 0 0 .35.839c.265.191.614.22.908.072l5.25-2.653 5.245 2.653c.29.148.643.12.909-.072a.87.87 0 0 0 .349-.84l-.92-5.78 4.159-4.138a.868.868 0 0 0-.483-1.471l-5.81-.919z" }) });
|
|
2557
2576
|
var StarSolid_default = SvgStarSolid;
|
|
2558
2577
|
|
|
2559
2578
|
// src/Icon/components/StarSplash.tsx
|
|
@@ -2698,7 +2717,13 @@ var Users_default = SvgUsers;
|
|
|
2698
2717
|
|
|
2699
2718
|
// src/Icon/components/UserSolid.tsx
|
|
2700
2719
|
var import_jsx_runtime187 = require("@emotion/react/jsx-runtime");
|
|
2701
|
-
var SvgUserSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
2720
|
+
var SvgUserSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 26 26", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
|
|
2721
|
+
"path",
|
|
2722
|
+
{
|
|
2723
|
+
fill: "currentColor",
|
|
2724
|
+
d: "M13.5 12.571a4.36 4.36 0 0 0 3.06-1.255 4.251 4.251 0 0 0 0-6.06 4.363 4.363 0 0 0-6.12 0 4.25 4.25 0 0 0 0 6.06c.402.398.88.714 1.404.93a4.4 4.4 0 0 0 1.656.325m-1.07 2c-3.553 0-6.43 2.85-6.43 6.368C6 21.525 6.48 22 7.07 22h12.86c.59 0 1.07-.475 1.07-1.06 0-3.519-2.877-6.369-6.43-6.369z"
|
|
2725
|
+
}
|
|
2726
|
+
) });
|
|
2702
2727
|
var UserSolid_default = SvgUserSolid;
|
|
2703
2728
|
|
|
2704
2729
|
// src/Icon/components/UsFlag.tsx
|
|
@@ -2764,15 +2789,45 @@ var YoutubeSquare_default = SvgYoutubeSquare;
|
|
|
2764
2789
|
|
|
2765
2790
|
// src/Icon/Icon.tsx
|
|
2766
2791
|
var import_jsx_runtime195 = require("@emotion/react/jsx-runtime");
|
|
2792
|
+
var IconSizeMap = {
|
|
2793
|
+
xsmall: {
|
|
2794
|
+
width: 12,
|
|
2795
|
+
height: 12
|
|
2796
|
+
},
|
|
2797
|
+
small: {
|
|
2798
|
+
width: 16,
|
|
2799
|
+
height: 16
|
|
2800
|
+
},
|
|
2801
|
+
medium: {
|
|
2802
|
+
width: 20,
|
|
2803
|
+
height: 20
|
|
2804
|
+
},
|
|
2805
|
+
large: {
|
|
2806
|
+
width: 26,
|
|
2807
|
+
height: 26
|
|
2808
|
+
},
|
|
2809
|
+
xlarge: {
|
|
2810
|
+
width: 32,
|
|
2811
|
+
height: 32
|
|
2812
|
+
},
|
|
2813
|
+
xxlarge: {
|
|
2814
|
+
width: 48,
|
|
2815
|
+
height: 48
|
|
2816
|
+
},
|
|
2817
|
+
xxxlarge: {
|
|
2818
|
+
width: 64,
|
|
2819
|
+
height: 64
|
|
2820
|
+
}
|
|
2821
|
+
};
|
|
2767
2822
|
var iconStyles = (size, setAutoHeight, fill) => import_react2.css`
|
|
2768
|
-
width: ${
|
|
2769
|
-
height: ${
|
|
2823
|
+
width: ${IconSizeMap[size].width}px;
|
|
2824
|
+
height: ${IconSizeMap[size].height}px;
|
|
2770
2825
|
${setAutoHeight && "height: auto;"}
|
|
2771
2826
|
fill: ${fill != null ? fill : "currentColor"};
|
|
2772
2827
|
`;
|
|
2773
2828
|
var Icon = ({
|
|
2774
2829
|
variant,
|
|
2775
|
-
size =
|
|
2830
|
+
size = "medium",
|
|
2776
2831
|
className,
|
|
2777
2832
|
setAutoHeight = false,
|
|
2778
2833
|
fill,
|
|
@@ -2810,7 +2865,7 @@ var spinnerStyles = import_react3.css`
|
|
|
2810
2865
|
|
|
2811
2866
|
// src/Spinner/Spinner.tsx
|
|
2812
2867
|
var import_jsx_runtime196 = require("@emotion/react/jsx-runtime");
|
|
2813
|
-
var Spinner = ({ size =
|
|
2868
|
+
var Spinner = ({ size = "medium", className, fill }) => {
|
|
2814
2869
|
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
|
|
2815
2870
|
Icon_default,
|
|
2816
2871
|
{
|
|
@@ -3624,7 +3679,7 @@ var import_jsx_runtime201 = require("@emotion/react/jsx-runtime");
|
|
|
3624
3679
|
var IconLabel = ({
|
|
3625
3680
|
variant,
|
|
3626
3681
|
label,
|
|
3627
|
-
iconSize =
|
|
3682
|
+
iconSize = "small",
|
|
3628
3683
|
className,
|
|
3629
3684
|
...rest
|
|
3630
3685
|
}) => {
|
|
@@ -3737,7 +3792,7 @@ var AIResponse = ({
|
|
|
3737
3792
|
{
|
|
3738
3793
|
variant: "AiMagic",
|
|
3739
3794
|
label: "This AI summary was generated from the property information from this package. This answer may display incorrect information.",
|
|
3740
|
-
iconSize:
|
|
3795
|
+
iconSize: "large"
|
|
3741
3796
|
}
|
|
3742
3797
|
),
|
|
3743
3798
|
variant === "error" && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("div", { css: errorRetryStyles, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button_default, { variant: "secondary", size: "xs", onClick: onErrorRetry, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(IconLabel_default, { variant: "ArrowRotateLeft", label: "Try Again" }) }) })
|
|
@@ -3783,9 +3838,9 @@ var AIResponse = ({
|
|
|
3783
3838
|
};
|
|
3784
3839
|
var AIResponse_default = AIResponse;
|
|
3785
3840
|
|
|
3786
|
-
// src/
|
|
3841
|
+
// src/AvailabilityBadge/AvailabilityBadge.styles.ts
|
|
3787
3842
|
var import_react12 = require("@emotion/react");
|
|
3788
|
-
var
|
|
3843
|
+
var availabilityBadgeVariantStyles = {
|
|
3789
3844
|
primary: import_react12.css`
|
|
3790
3845
|
background-color: var(--color-primary-100);
|
|
3791
3846
|
color: var(--text-primary);
|
|
@@ -3808,9 +3863,9 @@ var availabilityChipVariantStyles = {
|
|
|
3808
3863
|
`
|
|
3809
3864
|
};
|
|
3810
3865
|
|
|
3811
|
-
// src/
|
|
3866
|
+
// src/AvailabilityBadge/AvailabilityBadge.tsx
|
|
3812
3867
|
var import_jsx_runtime203 = require("@emotion/react/jsx-runtime");
|
|
3813
|
-
var
|
|
3868
|
+
var AvailabilityBadge = ({
|
|
3814
3869
|
children,
|
|
3815
3870
|
variant,
|
|
3816
3871
|
className
|
|
@@ -3823,16 +3878,17 @@ var AvailabilityChip = ({
|
|
|
3823
3878
|
px: "var(--spacing-4)",
|
|
3824
3879
|
py: "var(--spacing-1)",
|
|
3825
3880
|
borderRadius: "var(--spacing-2)",
|
|
3826
|
-
css:
|
|
3881
|
+
css: availabilityBadgeVariantStyles[variant],
|
|
3827
3882
|
className,
|
|
3828
3883
|
children: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(Text_default, { size: "xs", fontWeight: "bold", children })
|
|
3829
3884
|
}
|
|
3830
3885
|
);
|
|
3831
3886
|
};
|
|
3832
|
-
var
|
|
3887
|
+
var AvailabilityBadge_default = AvailabilityBadge;
|
|
3833
3888
|
|
|
3834
3889
|
// src/Avatar/Avatar.tsx
|
|
3835
|
-
var import_react14 = require("react");
|
|
3890
|
+
var import_react14 = require("@emotion/react");
|
|
3891
|
+
var import_react15 = require("react");
|
|
3836
3892
|
|
|
3837
3893
|
// src/Avatar/Avatar.styles.ts
|
|
3838
3894
|
var import_react13 = require("@emotion/react");
|
|
@@ -3895,7 +3951,7 @@ var Avatar = ({
|
|
|
3895
3951
|
size = "md",
|
|
3896
3952
|
className
|
|
3897
3953
|
}) => {
|
|
3898
|
-
const [hasImageError, setHasImageError] = (0,
|
|
3954
|
+
const [hasImageError, setHasImageError] = (0, import_react15.useState)(false);
|
|
3899
3955
|
const handleImageError = () => {
|
|
3900
3956
|
setHasImageError(true);
|
|
3901
3957
|
};
|
|
@@ -3921,17 +3977,17 @@ var Avatar = ({
|
|
|
3921
3977
|
const getIconSize = (size2) => {
|
|
3922
3978
|
switch (size2) {
|
|
3923
3979
|
case "xs":
|
|
3924
|
-
return
|
|
3980
|
+
return "xsmall";
|
|
3925
3981
|
case "sm":
|
|
3926
|
-
return
|
|
3982
|
+
return "small";
|
|
3927
3983
|
case "md":
|
|
3928
|
-
return
|
|
3984
|
+
return "xlarge";
|
|
3929
3985
|
case "lg":
|
|
3930
|
-
return
|
|
3986
|
+
return "large";
|
|
3931
3987
|
case "xl":
|
|
3932
|
-
return
|
|
3988
|
+
return "xxxlarge";
|
|
3933
3989
|
default:
|
|
3934
|
-
return
|
|
3990
|
+
return "xlarge";
|
|
3935
3991
|
}
|
|
3936
3992
|
};
|
|
3937
3993
|
if (type === "text" && text) {
|
|
@@ -3968,22 +4024,32 @@ var Avatar = ({
|
|
|
3968
4024
|
css: [avatarFallbackStyles, avatarSizeStyles[size]],
|
|
3969
4025
|
className,
|
|
3970
4026
|
title: alt,
|
|
3971
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
4027
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
4028
|
+
Icon_default,
|
|
4029
|
+
{
|
|
4030
|
+
variant: "User",
|
|
4031
|
+
size: getIconSize(size),
|
|
4032
|
+
css: size === "lg" ? import_react14.css`
|
|
4033
|
+
width: 28px;
|
|
4034
|
+
height: 28px;
|
|
4035
|
+
` : void 0
|
|
4036
|
+
}
|
|
4037
|
+
)
|
|
3972
4038
|
}
|
|
3973
4039
|
);
|
|
3974
4040
|
};
|
|
3975
4041
|
var Avatar_default = Avatar;
|
|
3976
4042
|
|
|
3977
4043
|
// src/ChatWidget/ChatWidget.tsx
|
|
3978
|
-
var
|
|
4044
|
+
var import_react24 = __toESM(require("react"));
|
|
3979
4045
|
|
|
3980
4046
|
// src/Divider/Divider.tsx
|
|
3981
4047
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
3982
4048
|
var import_styled_system2 = require("styled-system");
|
|
3983
4049
|
|
|
3984
4050
|
// src/Divider/Divider.styles.ts
|
|
3985
|
-
var
|
|
3986
|
-
var dividerStyles =
|
|
4051
|
+
var import_react16 = require("@emotion/react");
|
|
4052
|
+
var dividerStyles = import_react16.css`
|
|
3987
4053
|
width: 100%;
|
|
3988
4054
|
height: 1px;
|
|
3989
4055
|
border: 0;
|
|
@@ -4002,17 +4068,17 @@ var Divider = ({ className, ...rest }) => {
|
|
|
4002
4068
|
var Divider_default = Divider;
|
|
4003
4069
|
|
|
4004
4070
|
// src/Form/TextArea.tsx
|
|
4005
|
-
var
|
|
4006
|
-
var
|
|
4071
|
+
var import_react18 = require("@emotion/react");
|
|
4072
|
+
var import_react19 = require("react");
|
|
4007
4073
|
|
|
4008
4074
|
// src/Form/TextArea.styles.ts
|
|
4009
|
-
var
|
|
4010
|
-
var wrapperStyles =
|
|
4075
|
+
var import_react17 = require("@emotion/react");
|
|
4076
|
+
var wrapperStyles = import_react17.css`
|
|
4011
4077
|
position: relative;
|
|
4012
4078
|
display: inline-block;
|
|
4013
4079
|
width: 100%;
|
|
4014
4080
|
`;
|
|
4015
|
-
var textareaBase =
|
|
4081
|
+
var textareaBase = import_react17.css`
|
|
4016
4082
|
width: 100%;
|
|
4017
4083
|
box-sizing: border-box;
|
|
4018
4084
|
font: inherit;
|
|
@@ -4046,32 +4112,32 @@ var textareaBase = import_react16.css`
|
|
|
4046
4112
|
cursor: default;
|
|
4047
4113
|
}
|
|
4048
4114
|
`;
|
|
4049
|
-
var variantError =
|
|
4115
|
+
var variantError = import_react17.css`
|
|
4050
4116
|
border-color: var(--border-error);
|
|
4051
4117
|
&:focus {
|
|
4052
4118
|
border-color: var(--border-error);
|
|
4053
4119
|
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
4054
4120
|
}
|
|
4055
4121
|
`;
|
|
4056
|
-
var variantSuccess =
|
|
4122
|
+
var variantSuccess = import_react17.css`
|
|
4057
4123
|
border-color: var(--color-success-500);
|
|
4058
4124
|
&:focus {
|
|
4059
4125
|
border-color: var(--color-success-500);
|
|
4060
4126
|
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
4061
4127
|
}
|
|
4062
4128
|
`;
|
|
4063
|
-
var submitButtonContainer =
|
|
4129
|
+
var submitButtonContainer = import_react17.css`
|
|
4064
4130
|
position: absolute;
|
|
4065
4131
|
right: var(--spacing-4);
|
|
4066
4132
|
bottom: var(--spacing-4);
|
|
4067
4133
|
`;
|
|
4068
|
-
var textareaWithSubmit =
|
|
4134
|
+
var textareaWithSubmit = import_react17.css`
|
|
4069
4135
|
padding-right: var(--spacing-16);
|
|
4070
4136
|
`;
|
|
4071
4137
|
|
|
4072
4138
|
// src/Form/TextArea.tsx
|
|
4073
4139
|
var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
|
|
4074
|
-
var TextArea = (0,
|
|
4140
|
+
var TextArea = (0, import_react19.forwardRef)(
|
|
4075
4141
|
({
|
|
4076
4142
|
rows = 3,
|
|
4077
4143
|
variant = "default",
|
|
@@ -4091,8 +4157,8 @@ var TextArea = (0, import_react18.forwardRef)(
|
|
|
4091
4157
|
submitOnEnter = true,
|
|
4092
4158
|
...props
|
|
4093
4159
|
}, ref) => {
|
|
4094
|
-
const innerRef = (0,
|
|
4095
|
-
(0,
|
|
4160
|
+
const innerRef = (0, import_react19.useRef)(null);
|
|
4161
|
+
(0, import_react19.useEffect)(() => {
|
|
4096
4162
|
const el = innerRef.current;
|
|
4097
4163
|
if (!el || !autoExpand)
|
|
4098
4164
|
return;
|
|
@@ -4146,7 +4212,7 @@ var TextArea = (0, import_react18.forwardRef)(
|
|
|
4146
4212
|
textareaBase,
|
|
4147
4213
|
variant === "error" && variantError,
|
|
4148
4214
|
variant === "success" && variantSuccess,
|
|
4149
|
-
|
|
4215
|
+
import_react18.css`
|
|
4150
4216
|
resize: ${resize};
|
|
4151
4217
|
`,
|
|
4152
4218
|
showSubmit && textareaWithSubmit
|
|
@@ -4170,7 +4236,7 @@ var TextArea = (0, import_react18.forwardRef)(
|
|
|
4170
4236
|
Icon_default,
|
|
4171
4237
|
{
|
|
4172
4238
|
variant: "PaperPlane",
|
|
4173
|
-
size:
|
|
4239
|
+
size: "large",
|
|
4174
4240
|
fill: "var(--color-base-white)"
|
|
4175
4241
|
}
|
|
4176
4242
|
)
|
|
@@ -4183,14 +4249,14 @@ TextArea.displayName = "TextArea";
|
|
|
4183
4249
|
var TextArea_default = TextArea;
|
|
4184
4250
|
|
|
4185
4251
|
// src/MessageBubble/MessageBubble.styles.ts
|
|
4186
|
-
var
|
|
4187
|
-
var getRootStyles = (variant) =>
|
|
4252
|
+
var import_react20 = require("@emotion/react");
|
|
4253
|
+
var getRootStyles = (variant) => import_react20.css`
|
|
4188
4254
|
display: flex;
|
|
4189
4255
|
flex-direction: column;
|
|
4190
4256
|
gap: var(--spacing-1);
|
|
4191
4257
|
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
4192
4258
|
`;
|
|
4193
|
-
var getBubbleStyles = (variant) =>
|
|
4259
|
+
var getBubbleStyles = (variant) => import_react20.css`
|
|
4194
4260
|
max-width: 100%;
|
|
4195
4261
|
width: 100%;
|
|
4196
4262
|
box-sizing: border-box;
|
|
@@ -4207,7 +4273,7 @@ var getBubbleStyles = (variant) => import_react19.css`
|
|
|
4207
4273
|
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
4208
4274
|
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
4209
4275
|
`;
|
|
4210
|
-
var contentStyles =
|
|
4276
|
+
var contentStyles = import_react20.css`
|
|
4211
4277
|
flex: 1 1 auto;
|
|
4212
4278
|
min-width: 1px;
|
|
4213
4279
|
min-height: 1px;
|
|
@@ -4237,11 +4303,11 @@ var MessageBubble = ({
|
|
|
4237
4303
|
var MessageBubble_default = MessageBubble;
|
|
4238
4304
|
|
|
4239
4305
|
// src/Widget/Widget.tsx
|
|
4240
|
-
var
|
|
4306
|
+
var import_react22 = require("react");
|
|
4241
4307
|
|
|
4242
4308
|
// src/Widget/Widget.styles.ts
|
|
4243
|
-
var
|
|
4244
|
-
var panelContainer =
|
|
4309
|
+
var import_react21 = require("@emotion/react");
|
|
4310
|
+
var panelContainer = import_react21.css`
|
|
4245
4311
|
position: absolute;
|
|
4246
4312
|
right: 0;
|
|
4247
4313
|
bottom: 0;
|
|
@@ -4257,7 +4323,7 @@ var panelContainer = import_react20.css`
|
|
|
4257
4323
|
justify-content: stretch;
|
|
4258
4324
|
}
|
|
4259
4325
|
`;
|
|
4260
|
-
var panelCard = (width2) =>
|
|
4326
|
+
var panelCard = (width2) => import_react21.css`
|
|
4261
4327
|
background: var(--surface-page);
|
|
4262
4328
|
color: var(--text-primary);
|
|
4263
4329
|
border: 1px solid var(--border-primary);
|
|
@@ -4278,16 +4344,16 @@ var panelCard = (width2) => import_react20.css`
|
|
|
4278
4344
|
overflow: auto;
|
|
4279
4345
|
}
|
|
4280
4346
|
`;
|
|
4281
|
-
var widgetTrigger =
|
|
4347
|
+
var widgetTrigger = import_react21.css`
|
|
4282
4348
|
margin: var(--spacing-1);
|
|
4283
4349
|
box-shadow: var(--shadow-2xl);
|
|
4284
4350
|
`;
|
|
4285
4351
|
|
|
4286
4352
|
// src/Widget/Widget.tsx
|
|
4287
4353
|
var import_jsx_runtime208 = require("@emotion/react/jsx-runtime");
|
|
4288
|
-
var WidgetContext = (0,
|
|
4354
|
+
var WidgetContext = (0, import_react22.createContext)(null);
|
|
4289
4355
|
var useWidgetContext = () => {
|
|
4290
|
-
const ctx = (0,
|
|
4356
|
+
const ctx = (0, import_react22.useContext)(WidgetContext);
|
|
4291
4357
|
if (!ctx)
|
|
4292
4358
|
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
4293
4359
|
return ctx;
|
|
@@ -4303,7 +4369,7 @@ var WidgetTrigger = () => {
|
|
|
4303
4369
|
"aria-haspopup": "dialog",
|
|
4304
4370
|
onClick: toggle,
|
|
4305
4371
|
size: "lg",
|
|
4306
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: currentIcon, size:
|
|
4372
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: currentIcon, size: "xxlarge" }),
|
|
4307
4373
|
css: widgetTrigger
|
|
4308
4374
|
}
|
|
4309
4375
|
) });
|
|
@@ -4345,12 +4411,12 @@ var WidgetRoot = ({
|
|
|
4345
4411
|
children,
|
|
4346
4412
|
containerProps
|
|
4347
4413
|
}) => {
|
|
4348
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
4414
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react22.useState)(defaultExpanded);
|
|
4349
4415
|
const isControlled = typeof expanded === "boolean";
|
|
4350
4416
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4351
|
-
const triggerRef = (0,
|
|
4352
|
-
const containerRef = (0,
|
|
4353
|
-
const setExpanded = (0,
|
|
4417
|
+
const triggerRef = (0, import_react22.useRef)(null);
|
|
4418
|
+
const containerRef = (0, import_react22.useRef)(null);
|
|
4419
|
+
const setExpanded = (0, import_react22.useCallback)(
|
|
4354
4420
|
(next) => {
|
|
4355
4421
|
if (!isControlled)
|
|
4356
4422
|
setInternalExpanded(next);
|
|
@@ -4364,11 +4430,11 @@ var WidgetRoot = ({
|
|
|
4364
4430
|
},
|
|
4365
4431
|
[isControlled, onExpandedChange]
|
|
4366
4432
|
);
|
|
4367
|
-
const toggle = (0,
|
|
4433
|
+
const toggle = (0, import_react22.useCallback)(
|
|
4368
4434
|
() => setExpanded(!isExpanded),
|
|
4369
4435
|
[isExpanded, setExpanded]
|
|
4370
4436
|
);
|
|
4371
|
-
(0,
|
|
4437
|
+
(0, import_react22.useEffect)(() => {
|
|
4372
4438
|
if (!isExpanded)
|
|
4373
4439
|
return;
|
|
4374
4440
|
const onDocClick = (e) => {
|
|
@@ -4382,7 +4448,7 @@ var WidgetRoot = ({
|
|
|
4382
4448
|
document.addEventListener("mousedown", onDocClick);
|
|
4383
4449
|
return () => document.removeEventListener("mousedown", onDocClick);
|
|
4384
4450
|
}, [isExpanded, setExpanded]);
|
|
4385
|
-
(0,
|
|
4451
|
+
(0, import_react22.useEffect)(() => {
|
|
4386
4452
|
if (!isExpanded)
|
|
4387
4453
|
return;
|
|
4388
4454
|
const onKey = (e) => {
|
|
@@ -4392,7 +4458,7 @@ var WidgetRoot = ({
|
|
|
4392
4458
|
document.addEventListener("keydown", onKey);
|
|
4393
4459
|
return () => document.removeEventListener("keydown", onKey);
|
|
4394
4460
|
}, [isExpanded, setExpanded]);
|
|
4395
|
-
const value = (0,
|
|
4461
|
+
const value = (0, import_react22.useMemo)(
|
|
4396
4462
|
() => ({
|
|
4397
4463
|
expanded: isExpanded,
|
|
4398
4464
|
toggle,
|
|
@@ -4425,8 +4491,8 @@ var Widget = Object.assign(WidgetRoot, {
|
|
|
4425
4491
|
var Widget_default = Widget;
|
|
4426
4492
|
|
|
4427
4493
|
// src/ChatWidget/ChatWidget.styles.ts
|
|
4428
|
-
var
|
|
4429
|
-
var sentWrapperStyles =
|
|
4494
|
+
var import_react23 = require("@emotion/react");
|
|
4495
|
+
var sentWrapperStyles = import_react23.css`
|
|
4430
4496
|
align-self: flex-end;
|
|
4431
4497
|
max-width: 90%;
|
|
4432
4498
|
width: 100%;
|
|
@@ -4434,14 +4500,14 @@ var sentWrapperStyles = import_react22.css`
|
|
|
4434
4500
|
overflow-wrap: anywhere;
|
|
4435
4501
|
padding-top: var(--spacing-4);
|
|
4436
4502
|
`;
|
|
4437
|
-
var receivedWrapperStyles =
|
|
4503
|
+
var receivedWrapperStyles = import_react23.css`
|
|
4438
4504
|
align-self: flex-start;
|
|
4439
4505
|
width: 100%;
|
|
4440
4506
|
min-width: 0;
|
|
4441
4507
|
overflow-wrap: anywhere;
|
|
4442
4508
|
padding-top: var(--spacing-4);
|
|
4443
4509
|
`;
|
|
4444
|
-
var containerStyles =
|
|
4510
|
+
var containerStyles = import_react23.css`
|
|
4445
4511
|
display: flex;
|
|
4446
4512
|
flex-direction: column;
|
|
4447
4513
|
min-height: 0;
|
|
@@ -4451,13 +4517,13 @@ var containerStyles = import_react22.css`
|
|
|
4451
4517
|
height: 100%;
|
|
4452
4518
|
}
|
|
4453
4519
|
`;
|
|
4454
|
-
var thinkingRowStyles =
|
|
4520
|
+
var thinkingRowStyles = import_react23.css`
|
|
4455
4521
|
display: flex;
|
|
4456
4522
|
align-items: center;
|
|
4457
4523
|
gap: var(--spacing-2);
|
|
4458
4524
|
color: var(--text-primary);
|
|
4459
4525
|
`;
|
|
4460
|
-
var thinkingTextStyles =
|
|
4526
|
+
var thinkingTextStyles = import_react23.css`
|
|
4461
4527
|
animation: ltchat-pulse 1.6s ease-in-out infinite;
|
|
4462
4528
|
|
|
4463
4529
|
@keyframes ltchat-pulse {
|
|
@@ -4470,7 +4536,7 @@ var thinkingTextStyles = import_react22.css`
|
|
|
4470
4536
|
}
|
|
4471
4537
|
}
|
|
4472
4538
|
`;
|
|
4473
|
-
var badge =
|
|
4539
|
+
var badge = import_react23.css`
|
|
4474
4540
|
width: var(--spacing-11);
|
|
4475
4541
|
height: var(--spacing-11);
|
|
4476
4542
|
border-radius: var(--radius-round);
|
|
@@ -4480,7 +4546,7 @@ var badge = import_react22.css`
|
|
|
4480
4546
|
background-color: var(--color-primary-500);
|
|
4481
4547
|
color: var(--color-base-white);
|
|
4482
4548
|
`;
|
|
4483
|
-
var closeButtonContent =
|
|
4549
|
+
var closeButtonContent = import_react23.css`
|
|
4484
4550
|
display: inline-flex;
|
|
4485
4551
|
align-items: center;
|
|
4486
4552
|
gap: var(--spacing-2);
|
|
@@ -4516,12 +4582,12 @@ var ChatWidget = ({
|
|
|
4516
4582
|
emptyState = DEFAULT_EMPTY_STATE,
|
|
4517
4583
|
containerProps
|
|
4518
4584
|
}) => {
|
|
4519
|
-
const [value, setValue] = (0,
|
|
4520
|
-
const scrollRef = (0,
|
|
4585
|
+
const [value, setValue] = (0, import_react24.useState)("");
|
|
4586
|
+
const scrollRef = (0, import_react24.useRef)(null);
|
|
4521
4587
|
const isControlled = typeof expanded === "boolean";
|
|
4522
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
4588
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react24.useState)(defaultExpanded);
|
|
4523
4589
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4524
|
-
const setExpanded = (0,
|
|
4590
|
+
const setExpanded = (0, import_react24.useCallback)(
|
|
4525
4591
|
(next) => {
|
|
4526
4592
|
if (!isControlled)
|
|
4527
4593
|
setInternalExpanded(next);
|
|
@@ -4529,14 +4595,14 @@ var ChatWidget = ({
|
|
|
4529
4595
|
},
|
|
4530
4596
|
[isControlled, onExpandedChange]
|
|
4531
4597
|
);
|
|
4532
|
-
(0,
|
|
4598
|
+
(0, import_react24.useEffect)(() => {
|
|
4533
4599
|
const el = scrollRef.current;
|
|
4534
4600
|
if (!el)
|
|
4535
4601
|
return;
|
|
4536
4602
|
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
4537
4603
|
}, [messages, isThinking]);
|
|
4538
4604
|
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
4539
|
-
const renderedMessages = (0,
|
|
4605
|
+
const renderedMessages = (0, import_react24.useMemo)(
|
|
4540
4606
|
() => messagesToRender.map((element, index) => {
|
|
4541
4607
|
var _a;
|
|
4542
4608
|
const key = (_a = element.key) != null ? _a : index;
|
|
@@ -4546,7 +4612,7 @@ var ChatWidget = ({
|
|
|
4546
4612
|
if (element.type === MessageBubble_default) {
|
|
4547
4613
|
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
4548
4614
|
}
|
|
4549
|
-
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4615
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(import_react24.default.Fragment, { children: element }, key);
|
|
4550
4616
|
}),
|
|
4551
4617
|
[messagesToRender]
|
|
4552
4618
|
);
|
|
@@ -4580,7 +4646,7 @@ var ChatWidget = ({
|
|
|
4580
4646
|
gap: "var(--spacing-4)",
|
|
4581
4647
|
children: [
|
|
4582
4648
|
/* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
|
|
4583
|
-
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "ConversationalSearchAi", size:
|
|
4649
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: "large" }) }),
|
|
4584
4650
|
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4585
4651
|
Heading_default,
|
|
4586
4652
|
{
|
|
@@ -4599,7 +4665,7 @@ var ChatWidget = ({
|
|
|
4599
4665
|
"aria-label": "Close widget",
|
|
4600
4666
|
onClick: () => setExpanded(false),
|
|
4601
4667
|
children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("span", { css: closeButtonContent, children: [
|
|
4602
|
-
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "Xmark", size:
|
|
4668
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Icon_default, { variant: "Xmark", size: "medium" }),
|
|
4603
4669
|
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { children: "Close" })
|
|
4604
4670
|
] })
|
|
4605
4671
|
}
|
|
@@ -4624,7 +4690,7 @@ var ChatWidget = ({
|
|
|
4624
4690
|
children: [
|
|
4625
4691
|
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
4626
4692
|
isThinking && /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
4627
|
-
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Spinner_default2, { size:
|
|
4693
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Spinner_default2, { size: "medium" }),
|
|
4628
4694
|
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)("span", { css: thinkingTextStyles, children: "Thinking..." })
|
|
4629
4695
|
] }) })
|
|
4630
4696
|
]
|
|
@@ -4655,10 +4721,11 @@ var ChatWidget_default = ChatWidget;
|
|
|
4655
4721
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
4656
4722
|
var import_jsx_runtime210 = require("@emotion/react/jsx-runtime");
|
|
4657
4723
|
var FeatureListItem = ({
|
|
4658
|
-
|
|
4724
|
+
iconVariant,
|
|
4659
4725
|
label,
|
|
4660
4726
|
subtitle,
|
|
4661
|
-
iconSize =
|
|
4727
|
+
iconSize = "large",
|
|
4728
|
+
iconColor,
|
|
4662
4729
|
className,
|
|
4663
4730
|
...rest
|
|
4664
4731
|
}) => {
|
|
@@ -4668,17 +4735,17 @@ var FeatureListItem = ({
|
|
|
4668
4735
|
{
|
|
4669
4736
|
display: "flex",
|
|
4670
4737
|
alignItems: "center",
|
|
4671
|
-
gap: "var(--spacing-
|
|
4738
|
+
gap: "var(--spacing-2)",
|
|
4672
4739
|
className,
|
|
4673
4740
|
...rest,
|
|
4674
4741
|
children: [
|
|
4675
|
-
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Icon_default, { variant, size: iconSize }),
|
|
4742
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Icon_default, { variant: iconVariant, size: iconSize, fill: iconColor }),
|
|
4676
4743
|
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Text_default, { fontWeight: "semibold", children: label })
|
|
4677
4744
|
]
|
|
4678
4745
|
}
|
|
4679
4746
|
),
|
|
4680
|
-
subtitle && /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-
|
|
4681
|
-
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Box_default, { width: "
|
|
4747
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
4748
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
4682
4749
|
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
4683
4750
|
] })
|
|
4684
4751
|
] });
|
|
@@ -4697,7 +4764,7 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
4697
4764
|
className,
|
|
4698
4765
|
children: [
|
|
4699
4766
|
heading && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
4700
|
-
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(FeatureListItem_default, { ...item }, `${item.
|
|
4767
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(FeatureListItem_default, { ...item }, `${item.iconVariant}-${index}`)) })
|
|
4701
4768
|
]
|
|
4702
4769
|
}
|
|
4703
4770
|
);
|
|
@@ -4705,8 +4772,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
4705
4772
|
var FeatureList_default = FeatureList;
|
|
4706
4773
|
|
|
4707
4774
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
4708
|
-
var
|
|
4709
|
-
var cardContainerStyles =
|
|
4775
|
+
var import_react25 = require("@emotion/react");
|
|
4776
|
+
var cardContainerStyles = import_react25.css`
|
|
4710
4777
|
position: relative;
|
|
4711
4778
|
height: 335px;
|
|
4712
4779
|
|
|
@@ -4714,12 +4781,12 @@ var cardContainerStyles = import_react24.css`
|
|
|
4714
4781
|
height: 480px;
|
|
4715
4782
|
}
|
|
4716
4783
|
`;
|
|
4717
|
-
var cardContentStyles =
|
|
4784
|
+
var cardContentStyles = import_react25.css`
|
|
4718
4785
|
position: relative;
|
|
4719
4786
|
border-radius: var(--spacing-4);
|
|
4720
4787
|
overflow: hidden;
|
|
4721
4788
|
`;
|
|
4722
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
4789
|
+
var getBackgroundWithGradient = (imageUrl) => import_react25.css`
|
|
4723
4790
|
background-image: linear-gradient(
|
|
4724
4791
|
180deg,
|
|
4725
4792
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -4769,14 +4836,14 @@ var FieldNoteCard = ({
|
|
|
4769
4836
|
var FieldNoteCard_default = FieldNoteCard;
|
|
4770
4837
|
|
|
4771
4838
|
// src/Form/FormField.tsx
|
|
4772
|
-
var
|
|
4839
|
+
var import_react26 = require("@emotion/react");
|
|
4773
4840
|
var import_jsx_runtime213 = require("@emotion/react/jsx-runtime");
|
|
4774
|
-
var fieldContainerStyles =
|
|
4841
|
+
var fieldContainerStyles = import_react26.css`
|
|
4775
4842
|
display: flex;
|
|
4776
4843
|
flex-direction: column;
|
|
4777
4844
|
gap: ${space["2"]};
|
|
4778
4845
|
`;
|
|
4779
|
-
var labelStyles2 =
|
|
4846
|
+
var labelStyles2 = import_react26.css`
|
|
4780
4847
|
font-family: ${fonts.base};
|
|
4781
4848
|
font-size: ${fontSizes.sm};
|
|
4782
4849
|
font-weight: ${fontWeights.medium};
|
|
@@ -4784,17 +4851,17 @@ var labelStyles2 = import_react25.css`
|
|
|
4784
4851
|
color: ${colors.gray["900"]};
|
|
4785
4852
|
margin-bottom: ${space["1"]};
|
|
4786
4853
|
`;
|
|
4787
|
-
var requiredIndicatorStyles =
|
|
4854
|
+
var requiredIndicatorStyles = import_react26.css`
|
|
4788
4855
|
color: ${colors.red["500"]};
|
|
4789
4856
|
margin-left: ${space["1"]};
|
|
4790
4857
|
`;
|
|
4791
|
-
var helpTextStyles =
|
|
4858
|
+
var helpTextStyles = import_react26.css`
|
|
4792
4859
|
font-family: ${fonts.base};
|
|
4793
4860
|
font-size: ${fontSizes.sm};
|
|
4794
4861
|
line-height: ${lineHeights.tight};
|
|
4795
4862
|
color: ${colors.gray["600"]};
|
|
4796
4863
|
`;
|
|
4797
|
-
var errorTextStyles =
|
|
4864
|
+
var errorTextStyles = import_react26.css`
|
|
4798
4865
|
font-family: ${fonts.base};
|
|
4799
4866
|
font-size: ${fontSizes.sm};
|
|
4800
4867
|
line-height: ${lineHeights.tight};
|
|
@@ -4803,7 +4870,7 @@ var errorTextStyles = import_react25.css`
|
|
|
4803
4870
|
align-items: center;
|
|
4804
4871
|
gap: ${space["1"]};
|
|
4805
4872
|
`;
|
|
4806
|
-
var successTextStyles =
|
|
4873
|
+
var successTextStyles = import_react26.css`
|
|
4807
4874
|
font-family: ${fonts.base};
|
|
4808
4875
|
font-size: ${fontSizes.sm};
|
|
4809
4876
|
line-height: ${lineHeights.tight};
|
|
@@ -4812,7 +4879,7 @@ var successTextStyles = import_react25.css`
|
|
|
4812
4879
|
align-items: center;
|
|
4813
4880
|
gap: ${space["1"]};
|
|
4814
4881
|
`;
|
|
4815
|
-
var visuallyHiddenStyles =
|
|
4882
|
+
var visuallyHiddenStyles = import_react26.css`
|
|
4816
4883
|
position: absolute;
|
|
4817
4884
|
width: 1px;
|
|
4818
4885
|
height: 1px;
|
|
@@ -4877,10 +4944,10 @@ var FormField = ({
|
|
|
4877
4944
|
};
|
|
4878
4945
|
|
|
4879
4946
|
// src/Form/Input.tsx
|
|
4880
|
-
var
|
|
4881
|
-
var
|
|
4947
|
+
var import_react27 = require("@emotion/react");
|
|
4948
|
+
var import_react28 = require("react");
|
|
4882
4949
|
var import_jsx_runtime214 = require("@emotion/react/jsx-runtime");
|
|
4883
|
-
var inputStyles =
|
|
4950
|
+
var inputStyles = import_react27.css`
|
|
4884
4951
|
position: relative;
|
|
4885
4952
|
width: 100%;
|
|
4886
4953
|
font-family: ${fonts.base};
|
|
@@ -4917,19 +4984,19 @@ var inputStyles = import_react26.css`
|
|
|
4917
4984
|
}
|
|
4918
4985
|
`;
|
|
4919
4986
|
var sizeStyles = {
|
|
4920
|
-
sm:
|
|
4987
|
+
sm: import_react27.css`
|
|
4921
4988
|
padding: ${space["2"]} ${space["3"]};
|
|
4922
4989
|
font-size: ${fontSizes.sm};
|
|
4923
4990
|
line-height: ${lineHeights.tight};
|
|
4924
4991
|
height: ${space["8"]};
|
|
4925
4992
|
`,
|
|
4926
|
-
md:
|
|
4993
|
+
md: import_react27.css`
|
|
4927
4994
|
padding: ${space["3"]} ${space["4"]};
|
|
4928
4995
|
font-size: ${fontSizes.base};
|
|
4929
4996
|
line-height: ${lineHeights.normal};
|
|
4930
4997
|
height: ${space["10"]};
|
|
4931
4998
|
`,
|
|
4932
|
-
lg:
|
|
4999
|
+
lg: import_react27.css`
|
|
4933
5000
|
padding: ${space["4"]} ${space["5"]};
|
|
4934
5001
|
font-size: ${fontSizes.lg};
|
|
4935
5002
|
line-height: ${lineHeights.normal};
|
|
@@ -4937,8 +5004,8 @@ var sizeStyles = {
|
|
|
4937
5004
|
`
|
|
4938
5005
|
};
|
|
4939
5006
|
var variantStyles = {
|
|
4940
|
-
default:
|
|
4941
|
-
error:
|
|
5007
|
+
default: import_react27.css``,
|
|
5008
|
+
error: import_react27.css`
|
|
4942
5009
|
border-color: ${colors.red["500"]};
|
|
4943
5010
|
|
|
4944
5011
|
&:focus {
|
|
@@ -4946,7 +5013,7 @@ var variantStyles = {
|
|
|
4946
5013
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
4947
5014
|
}
|
|
4948
5015
|
`,
|
|
4949
|
-
success:
|
|
5016
|
+
success: import_react27.css`
|
|
4950
5017
|
border-color: ${colors.accent.green};
|
|
4951
5018
|
|
|
4952
5019
|
&:focus {
|
|
@@ -4955,7 +5022,7 @@ var variantStyles = {
|
|
|
4955
5022
|
}
|
|
4956
5023
|
`
|
|
4957
5024
|
};
|
|
4958
|
-
var inputWithIconStyles =
|
|
5025
|
+
var inputWithIconStyles = import_react27.css`
|
|
4959
5026
|
padding-left: ${space["10"]};
|
|
4960
5027
|
|
|
4961
5028
|
&.has-end-icon {
|
|
@@ -4966,7 +5033,7 @@ var inputWithIconStyles = import_react26.css`
|
|
|
4966
5033
|
padding-left: ${space["10"]};
|
|
4967
5034
|
}
|
|
4968
5035
|
`;
|
|
4969
|
-
var iconContainerStyles =
|
|
5036
|
+
var iconContainerStyles = import_react27.css`
|
|
4970
5037
|
position: absolute;
|
|
4971
5038
|
top: 50%;
|
|
4972
5039
|
transform: translateY(-50%);
|
|
@@ -4977,20 +5044,20 @@ var iconContainerStyles = import_react26.css`
|
|
|
4977
5044
|
pointer-events: none;
|
|
4978
5045
|
z-index: 1;
|
|
4979
5046
|
`;
|
|
4980
|
-
var startIconStyles =
|
|
5047
|
+
var startIconStyles = import_react27.css`
|
|
4981
5048
|
${iconContainerStyles}
|
|
4982
5049
|
left: ${space["3"]};
|
|
4983
5050
|
`;
|
|
4984
|
-
var endIconStyles =
|
|
5051
|
+
var endIconStyles = import_react27.css`
|
|
4985
5052
|
${iconContainerStyles}
|
|
4986
5053
|
right: ${space["3"]};
|
|
4987
5054
|
`;
|
|
4988
|
-
var inputWrapperStyles =
|
|
5055
|
+
var inputWrapperStyles = import_react27.css`
|
|
4989
5056
|
position: relative;
|
|
4990
5057
|
display: inline-block;
|
|
4991
5058
|
width: 100%;
|
|
4992
5059
|
`;
|
|
4993
|
-
var Input = (0,
|
|
5060
|
+
var Input = (0, import_react28.forwardRef)(
|
|
4994
5061
|
({
|
|
4995
5062
|
size = "md",
|
|
4996
5063
|
variant = "default",
|
|
@@ -5035,10 +5102,10 @@ var Input = (0, import_react27.forwardRef)(
|
|
|
5035
5102
|
Input.displayName = "Input";
|
|
5036
5103
|
|
|
5037
5104
|
// src/Form/Select.tsx
|
|
5038
|
-
var
|
|
5039
|
-
var
|
|
5105
|
+
var import_react29 = require("@emotion/react");
|
|
5106
|
+
var import_react30 = require("react");
|
|
5040
5107
|
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
5041
|
-
var selectStyles =
|
|
5108
|
+
var selectStyles = import_react29.css`
|
|
5042
5109
|
position: relative;
|
|
5043
5110
|
width: 100%;
|
|
5044
5111
|
font-family: ${fonts.base};
|
|
@@ -5077,19 +5144,19 @@ var selectStyles = import_react28.css`
|
|
|
5077
5144
|
}
|
|
5078
5145
|
`;
|
|
5079
5146
|
var sizeStyles2 = {
|
|
5080
|
-
sm:
|
|
5147
|
+
sm: import_react29.css`
|
|
5081
5148
|
padding: ${space["2"]} ${space["3"]};
|
|
5082
5149
|
font-size: ${fontSizes.sm};
|
|
5083
5150
|
line-height: ${lineHeights.tight};
|
|
5084
5151
|
height: ${space["8"]};
|
|
5085
5152
|
`,
|
|
5086
|
-
md:
|
|
5153
|
+
md: import_react29.css`
|
|
5087
5154
|
padding: ${space["3"]} ${space["4"]};
|
|
5088
5155
|
font-size: ${fontSizes.base};
|
|
5089
5156
|
line-height: ${lineHeights.normal};
|
|
5090
5157
|
height: ${space["10"]};
|
|
5091
5158
|
`,
|
|
5092
|
-
lg:
|
|
5159
|
+
lg: import_react29.css`
|
|
5093
5160
|
padding: ${space["4"]} ${space["5"]};
|
|
5094
5161
|
font-size: ${fontSizes.lg};
|
|
5095
5162
|
line-height: ${lineHeights.normal};
|
|
@@ -5097,8 +5164,8 @@ var sizeStyles2 = {
|
|
|
5097
5164
|
`
|
|
5098
5165
|
};
|
|
5099
5166
|
var variantStyles2 = {
|
|
5100
|
-
default:
|
|
5101
|
-
error:
|
|
5167
|
+
default: import_react29.css``,
|
|
5168
|
+
error: import_react29.css`
|
|
5102
5169
|
border-color: ${colors.red["500"]};
|
|
5103
5170
|
|
|
5104
5171
|
&:focus {
|
|
@@ -5106,7 +5173,7 @@ var variantStyles2 = {
|
|
|
5106
5173
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5107
5174
|
}
|
|
5108
5175
|
`,
|
|
5109
|
-
success:
|
|
5176
|
+
success: import_react29.css`
|
|
5110
5177
|
border-color: ${colors.accent.green};
|
|
5111
5178
|
|
|
5112
5179
|
&:focus {
|
|
@@ -5115,7 +5182,7 @@ var variantStyles2 = {
|
|
|
5115
5182
|
}
|
|
5116
5183
|
`
|
|
5117
5184
|
};
|
|
5118
|
-
var optionStyles =
|
|
5185
|
+
var optionStyles = import_react29.css`
|
|
5119
5186
|
background-color: ${colors.light["100"]};
|
|
5120
5187
|
color: ${colors.gray["900"]};
|
|
5121
5188
|
|
|
@@ -5124,7 +5191,7 @@ var optionStyles = import_react28.css`
|
|
|
5124
5191
|
background-color: ${colors.gray["100"]};
|
|
5125
5192
|
}
|
|
5126
5193
|
`;
|
|
5127
|
-
var Select = (0,
|
|
5194
|
+
var Select = (0, import_react30.forwardRef)(
|
|
5128
5195
|
({
|
|
5129
5196
|
size = "md",
|
|
5130
5197
|
variant = "default",
|
|
@@ -5162,10 +5229,10 @@ var Select = (0, import_react29.forwardRef)(
|
|
|
5162
5229
|
Select.displayName = "Select";
|
|
5163
5230
|
|
|
5164
5231
|
// src/Grid/Column.tsx
|
|
5165
|
-
var
|
|
5232
|
+
var import_react32 = require("@emotion/react");
|
|
5166
5233
|
|
|
5167
5234
|
// src/Grid/utils.ts
|
|
5168
|
-
var
|
|
5235
|
+
var import_react31 = require("@emotion/react");
|
|
5169
5236
|
var LayoutTokens = {
|
|
5170
5237
|
containers: {
|
|
5171
5238
|
sm: screens.sm,
|
|
@@ -5205,11 +5272,11 @@ var getResponsiveValue = (value) => {
|
|
|
5205
5272
|
var generateGridColumns = (columns) => {
|
|
5206
5273
|
const baseColumns = getResponsiveValue(columns);
|
|
5207
5274
|
if (typeof columns === "number") {
|
|
5208
|
-
return
|
|
5275
|
+
return import_react31.css`
|
|
5209
5276
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
5210
5277
|
`;
|
|
5211
5278
|
}
|
|
5212
|
-
return
|
|
5279
|
+
return import_react31.css`
|
|
5213
5280
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
5214
5281
|
|
|
5215
5282
|
${media.sm} {
|
|
@@ -5241,11 +5308,11 @@ var generateGridColumns = (columns) => {
|
|
|
5241
5308
|
var generateGapStyles = (gap2) => {
|
|
5242
5309
|
const baseGap = getResponsiveValue(gap2);
|
|
5243
5310
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
5244
|
-
return
|
|
5311
|
+
return import_react31.css`
|
|
5245
5312
|
gap: ${space[gap2]};
|
|
5246
5313
|
`;
|
|
5247
5314
|
}
|
|
5248
|
-
return
|
|
5315
|
+
return import_react31.css`
|
|
5249
5316
|
gap: ${space[baseGap]};
|
|
5250
5317
|
|
|
5251
5318
|
${media.sm} {
|
|
@@ -5268,11 +5335,11 @@ var generateGapStyles = (gap2) => {
|
|
|
5268
5335
|
var generateRowGapStyles = (rowGap) => {
|
|
5269
5336
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
5270
5337
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
5271
|
-
return
|
|
5338
|
+
return import_react31.css`
|
|
5272
5339
|
row-gap: ${space[rowGap]};
|
|
5273
5340
|
`;
|
|
5274
5341
|
}
|
|
5275
|
-
return
|
|
5342
|
+
return import_react31.css`
|
|
5276
5343
|
row-gap: ${space[baseRowGap]};
|
|
5277
5344
|
|
|
5278
5345
|
${media.sm} {
|
|
@@ -5295,11 +5362,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
5295
5362
|
var generateColumnGapStyles = (columnGap) => {
|
|
5296
5363
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
5297
5364
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
5298
|
-
return
|
|
5365
|
+
return import_react31.css`
|
|
5299
5366
|
column-gap: ${space[columnGap]};
|
|
5300
5367
|
`;
|
|
5301
5368
|
}
|
|
5302
|
-
return
|
|
5369
|
+
return import_react31.css`
|
|
5303
5370
|
column-gap: ${space[baseColumnGap]};
|
|
5304
5371
|
|
|
5305
5372
|
${media.sm} {
|
|
@@ -5322,11 +5389,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
5322
5389
|
var generateColumnSpan = (span) => {
|
|
5323
5390
|
const baseSpan = getResponsiveValue(span);
|
|
5324
5391
|
if (typeof span === "string" || typeof span === "number") {
|
|
5325
|
-
return
|
|
5392
|
+
return import_react31.css`
|
|
5326
5393
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
5327
5394
|
`;
|
|
5328
5395
|
}
|
|
5329
|
-
return
|
|
5396
|
+
return import_react31.css`
|
|
5330
5397
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
5331
5398
|
|
|
5332
5399
|
${media.sm} {
|
|
@@ -5349,11 +5416,11 @@ var generateColumnSpan = (span) => {
|
|
|
5349
5416
|
var generateAlignItems = (alignItems) => {
|
|
5350
5417
|
const baseAlign = getResponsiveValue(alignItems);
|
|
5351
5418
|
if (typeof alignItems === "string") {
|
|
5352
|
-
return
|
|
5419
|
+
return import_react31.css`
|
|
5353
5420
|
align-items: ${alignItems};
|
|
5354
5421
|
`;
|
|
5355
5422
|
}
|
|
5356
|
-
return
|
|
5423
|
+
return import_react31.css`
|
|
5357
5424
|
align-items: ${baseAlign};
|
|
5358
5425
|
|
|
5359
5426
|
${media.sm} {
|
|
@@ -5376,11 +5443,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
5376
5443
|
var generateJustifyItems = (justifyItems) => {
|
|
5377
5444
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
5378
5445
|
if (typeof justifyItems === "string") {
|
|
5379
|
-
return
|
|
5446
|
+
return import_react31.css`
|
|
5380
5447
|
justify-items: ${justifyItems};
|
|
5381
5448
|
`;
|
|
5382
5449
|
}
|
|
5383
|
-
return
|
|
5450
|
+
return import_react31.css`
|
|
5384
5451
|
justify-items: ${baseJustify};
|
|
5385
5452
|
|
|
5386
5453
|
${media.sm} {
|
|
@@ -5415,19 +5482,19 @@ var Column = ({
|
|
|
5415
5482
|
}) => {
|
|
5416
5483
|
const columnStyles = [
|
|
5417
5484
|
span && generateColumnSpan(span),
|
|
5418
|
-
start &&
|
|
5485
|
+
start && import_react32.css`
|
|
5419
5486
|
grid-column-start: ${start};
|
|
5420
5487
|
`,
|
|
5421
|
-
end &&
|
|
5488
|
+
end && import_react32.css`
|
|
5422
5489
|
grid-column-end: ${end};
|
|
5423
5490
|
`,
|
|
5424
|
-
row &&
|
|
5491
|
+
row && import_react32.css`
|
|
5425
5492
|
grid-row: ${row};
|
|
5426
5493
|
`,
|
|
5427
|
-
rowSpan &&
|
|
5494
|
+
rowSpan && import_react32.css`
|
|
5428
5495
|
grid-row: span ${rowSpan};
|
|
5429
5496
|
`,
|
|
5430
|
-
area &&
|
|
5497
|
+
area && import_react32.css`
|
|
5431
5498
|
grid-area: ${area};
|
|
5432
5499
|
`
|
|
5433
5500
|
].filter(Boolean);
|
|
@@ -5436,9 +5503,9 @@ var Column = ({
|
|
|
5436
5503
|
var Column_default = Column;
|
|
5437
5504
|
|
|
5438
5505
|
// src/Grid/Grid.tsx
|
|
5439
|
-
var
|
|
5506
|
+
var import_react33 = require("@emotion/react");
|
|
5440
5507
|
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5441
|
-
var baseGridStyles =
|
|
5508
|
+
var baseGridStyles = import_react33.css`
|
|
5442
5509
|
display: grid;
|
|
5443
5510
|
`;
|
|
5444
5511
|
var Grid = ({
|
|
@@ -5463,16 +5530,16 @@ var Grid = ({
|
|
|
5463
5530
|
columnGap && generateColumnGapStyles(columnGap),
|
|
5464
5531
|
alignItems && generateAlignItems(alignItems),
|
|
5465
5532
|
justifyItems && generateJustifyItems(justifyItems),
|
|
5466
|
-
autoRows &&
|
|
5533
|
+
autoRows && import_react33.css`
|
|
5467
5534
|
grid-auto-rows: ${autoRows};
|
|
5468
5535
|
`,
|
|
5469
|
-
autoColumns &&
|
|
5536
|
+
autoColumns && import_react33.css`
|
|
5470
5537
|
grid-auto-columns: ${autoColumns};
|
|
5471
5538
|
`,
|
|
5472
|
-
templateAreas &&
|
|
5539
|
+
templateAreas && import_react33.css`
|
|
5473
5540
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
5474
5541
|
`,
|
|
5475
|
-
justifyContent &&
|
|
5542
|
+
justifyContent && import_react33.css`
|
|
5476
5543
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
5477
5544
|
`
|
|
5478
5545
|
].filter(Boolean);
|
|
@@ -5481,9 +5548,9 @@ var Grid = ({
|
|
|
5481
5548
|
var Grid_default = Grid;
|
|
5482
5549
|
|
|
5483
5550
|
// src/Grid/GridContainer.tsx
|
|
5484
|
-
var
|
|
5551
|
+
var import_react34 = require("@emotion/react");
|
|
5485
5552
|
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
5486
|
-
var baseContainerStyles =
|
|
5553
|
+
var baseContainerStyles = import_react34.css`
|
|
5487
5554
|
width: 100%;
|
|
5488
5555
|
margin: 0 auto;
|
|
5489
5556
|
padding-left: 1rem;
|
|
@@ -5491,14 +5558,14 @@ var baseContainerStyles = import_react33.css`
|
|
|
5491
5558
|
`;
|
|
5492
5559
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
5493
5560
|
if (maxWidth === "full") {
|
|
5494
|
-
return
|
|
5561
|
+
return import_react34.css`
|
|
5495
5562
|
max-width: 100%;
|
|
5496
5563
|
padding-left: 0;
|
|
5497
5564
|
padding-right: 0;
|
|
5498
5565
|
`;
|
|
5499
5566
|
}
|
|
5500
5567
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
5501
|
-
return
|
|
5568
|
+
return import_react34.css`
|
|
5502
5569
|
max-width: ${width2};
|
|
5503
5570
|
|
|
5504
5571
|
${media.sm} {
|
|
@@ -5532,8 +5599,8 @@ var GridContainer = ({
|
|
|
5532
5599
|
var GridContainer_default = GridContainer;
|
|
5533
5600
|
|
|
5534
5601
|
// src/HuntCard/HuntCard.styles.ts
|
|
5535
|
-
var
|
|
5536
|
-
var cardContainerStyles2 =
|
|
5602
|
+
var import_react35 = require("@emotion/react");
|
|
5603
|
+
var cardContainerStyles2 = import_react35.css`
|
|
5537
5604
|
position: relative;
|
|
5538
5605
|
height: 335px;
|
|
5539
5606
|
|
|
@@ -5541,12 +5608,12 @@ var cardContainerStyles2 = import_react34.css`
|
|
|
5541
5608
|
height: 480px;
|
|
5542
5609
|
}
|
|
5543
5610
|
`;
|
|
5544
|
-
var cardContentStyles2 =
|
|
5611
|
+
var cardContentStyles2 = import_react35.css`
|
|
5545
5612
|
position: relative;
|
|
5546
5613
|
border-radius: var(--spacing-4);
|
|
5547
5614
|
overflow: hidden;
|
|
5548
5615
|
`;
|
|
5549
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
5616
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react35.css`
|
|
5550
5617
|
background-image: linear-gradient(
|
|
5551
5618
|
180deg,
|
|
5552
5619
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -5605,8 +5672,9 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
5605
5672
|
flexDirection: "column",
|
|
5606
5673
|
gap: "var(--spacing-3)",
|
|
5607
5674
|
className,
|
|
5675
|
+
color: "var(--text-primary)",
|
|
5608
5676
|
children: [
|
|
5609
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5677
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
5610
5678
|
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5611
5679
|
Box_default,
|
|
5612
5680
|
{
|
|
@@ -5634,27 +5702,27 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
5634
5702
|
var InfoBox_default = InfoBox;
|
|
5635
5703
|
|
|
5636
5704
|
// src/ListingChat/ListingChat.tsx
|
|
5637
|
-
var
|
|
5705
|
+
var import_react38 = require("react");
|
|
5638
5706
|
|
|
5639
5707
|
// src/TagChip/TagChip.styles.ts
|
|
5640
|
-
var
|
|
5708
|
+
var import_react36 = require("@emotion/react");
|
|
5641
5709
|
var tagChipVariantStyles = {
|
|
5642
|
-
primary:
|
|
5710
|
+
primary: import_react36.css`
|
|
5643
5711
|
background-color: var(--surface-disabled);
|
|
5644
5712
|
border: 1px solid var(--surface-disabled);
|
|
5645
5713
|
color: var(--text-primary);
|
|
5646
5714
|
`,
|
|
5647
|
-
error:
|
|
5715
|
+
error: import_react36.css`
|
|
5648
5716
|
background-color: var(--surface-error);
|
|
5649
5717
|
border: 1px solid var(--color-red-300);
|
|
5650
5718
|
color: var(--text-error);
|
|
5651
5719
|
`,
|
|
5652
|
-
success:
|
|
5720
|
+
success: import_react36.css`
|
|
5653
5721
|
background-color: var(--surface-success);
|
|
5654
5722
|
border: 1px solid var(--color-green-300);
|
|
5655
5723
|
color: var(--text-success);
|
|
5656
5724
|
`,
|
|
5657
|
-
warning:
|
|
5725
|
+
warning: import_react36.css`
|
|
5658
5726
|
background-color: var(--surface-subtle);
|
|
5659
5727
|
border: 1px solid var(--color-brown-200);
|
|
5660
5728
|
color: var(--text-primary);
|
|
@@ -5687,8 +5755,8 @@ var TagChip = ({
|
|
|
5687
5755
|
var TagChip_default = TagChip;
|
|
5688
5756
|
|
|
5689
5757
|
// src/ListingChat/ListingChat.styles.ts
|
|
5690
|
-
var
|
|
5691
|
-
var containerStyles2 =
|
|
5758
|
+
var import_react37 = require("@emotion/react");
|
|
5759
|
+
var containerStyles2 = import_react37.css`
|
|
5692
5760
|
display: flex;
|
|
5693
5761
|
flex-direction: column;
|
|
5694
5762
|
gap: var(--spacing-4);
|
|
@@ -5696,13 +5764,13 @@ var containerStyles2 = import_react36.css`
|
|
|
5696
5764
|
border-radius: var(--radius-lg);
|
|
5697
5765
|
background: var(--surface-success);
|
|
5698
5766
|
`;
|
|
5699
|
-
var headerStyles =
|
|
5767
|
+
var headerStyles = import_react37.css`
|
|
5700
5768
|
display: flex;
|
|
5701
5769
|
align-items: flex-start;
|
|
5702
5770
|
justify-content: space-between;
|
|
5703
5771
|
gap: var(--spacing-2);
|
|
5704
5772
|
`;
|
|
5705
|
-
var chipsContainerStyles =
|
|
5773
|
+
var chipsContainerStyles = import_react37.css`
|
|
5706
5774
|
display: flex;
|
|
5707
5775
|
flex-wrap: wrap;
|
|
5708
5776
|
gap: var(--spacing-4);
|
|
@@ -5715,10 +5783,10 @@ var chipsContainerStyles = import_react36.css`
|
|
|
5715
5783
|
cursor: pointer;
|
|
5716
5784
|
}
|
|
5717
5785
|
`;
|
|
5718
|
-
var textAreaStyles =
|
|
5786
|
+
var textAreaStyles = import_react37.css`
|
|
5719
5787
|
min-height: 62px;
|
|
5720
5788
|
`;
|
|
5721
|
-
var inputWrapperStyles2 =
|
|
5789
|
+
var inputWrapperStyles2 = import_react37.css`
|
|
5722
5790
|
position: relative;
|
|
5723
5791
|
`;
|
|
5724
5792
|
|
|
@@ -5733,15 +5801,15 @@ var ListingChat = ({
|
|
|
5733
5801
|
disabled = false,
|
|
5734
5802
|
...rest
|
|
5735
5803
|
}) => {
|
|
5736
|
-
const [value, setValue] = (0,
|
|
5737
|
-
const handleSubmit = (0,
|
|
5804
|
+
const [value, setValue] = (0, import_react38.useState)("");
|
|
5805
|
+
const handleSubmit = (0, import_react38.useCallback)(() => {
|
|
5738
5806
|
const trimmed = value.trim();
|
|
5739
5807
|
if (!trimmed)
|
|
5740
5808
|
return;
|
|
5741
5809
|
onSubmit(trimmed);
|
|
5742
5810
|
setValue("");
|
|
5743
5811
|
}, [onSubmit, value]);
|
|
5744
|
-
const handleTagClick = (0,
|
|
5812
|
+
const handleTagClick = (0, import_react38.useCallback)(
|
|
5745
5813
|
(tag) => () => {
|
|
5746
5814
|
const trimmed = tag.trim();
|
|
5747
5815
|
if (!trimmed)
|
|
@@ -5757,7 +5825,7 @@ var ListingChat = ({
|
|
|
5757
5825
|
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
5758
5826
|
] }),
|
|
5759
5827
|
/* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
5760
|
-
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Icon_default, { variant: "AiMagic", size:
|
|
5828
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
5761
5829
|
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
5762
5830
|
] })
|
|
5763
5831
|
] }),
|
|
@@ -5793,7 +5861,7 @@ var ListingChat = ({
|
|
|
5793
5861
|
var ListingChat_default = ListingChat;
|
|
5794
5862
|
|
|
5795
5863
|
// src/Logo/Logo.tsx
|
|
5796
|
-
var
|
|
5864
|
+
var import_react39 = require("@emotion/react");
|
|
5797
5865
|
|
|
5798
5866
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
5799
5867
|
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
@@ -6015,7 +6083,7 @@ var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
|
6015
6083
|
|
|
6016
6084
|
// src/Logo/Logo.tsx
|
|
6017
6085
|
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6018
|
-
var logoStyles = (size) =>
|
|
6086
|
+
var logoStyles = (size) => import_react39.css`
|
|
6019
6087
|
width: ${space[size]};
|
|
6020
6088
|
height: auto;
|
|
6021
6089
|
display: block;
|
|
@@ -6048,13 +6116,13 @@ var Logo = ({
|
|
|
6048
6116
|
var Logo_default = Logo;
|
|
6049
6117
|
|
|
6050
6118
|
// src/Navigation/Navigation.styles.ts
|
|
6051
|
-
var
|
|
6052
|
-
var navigationStyles =
|
|
6119
|
+
var import_react40 = require("@emotion/react");
|
|
6120
|
+
var navigationStyles = import_react40.css`
|
|
6053
6121
|
width: 100%;
|
|
6054
6122
|
background-color: white;
|
|
6055
6123
|
border-bottom: 1px solid #e5e5e5;
|
|
6056
6124
|
`;
|
|
6057
|
-
var hamburgerButtonStyles =
|
|
6125
|
+
var hamburgerButtonStyles = import_react40.css`
|
|
6058
6126
|
cursor: pointer;
|
|
6059
6127
|
&:focus {
|
|
6060
6128
|
outline: 2px solid #4f46e5;
|
|
@@ -6065,7 +6133,7 @@ var hamburgerButtonStyles = import_react39.css`
|
|
|
6065
6133
|
display: none;
|
|
6066
6134
|
}
|
|
6067
6135
|
`;
|
|
6068
|
-
var centeredLogoStyles =
|
|
6136
|
+
var centeredLogoStyles = import_react40.css`
|
|
6069
6137
|
transform: translate(-50%, -50%);
|
|
6070
6138
|
max-width: 150px;
|
|
6071
6139
|
|
|
@@ -6073,27 +6141,27 @@ var centeredLogoStyles = import_react39.css`
|
|
|
6073
6141
|
display: none;
|
|
6074
6142
|
}
|
|
6075
6143
|
`;
|
|
6076
|
-
var desktopLogoStyles =
|
|
6144
|
+
var desktopLogoStyles = import_react40.css`
|
|
6077
6145
|
display: none;
|
|
6078
6146
|
|
|
6079
6147
|
@media (min-width: 768px) {
|
|
6080
6148
|
display: block;
|
|
6081
6149
|
}
|
|
6082
6150
|
`;
|
|
6083
|
-
var containerStyles3 =
|
|
6151
|
+
var containerStyles3 = import_react40.css`
|
|
6084
6152
|
@media (min-width: 768px) {
|
|
6085
6153
|
justify-content: space-between;
|
|
6086
6154
|
position: static;
|
|
6087
6155
|
}
|
|
6088
6156
|
`;
|
|
6089
|
-
var logoStyles2 =
|
|
6157
|
+
var logoStyles2 = import_react40.css`
|
|
6090
6158
|
width: 100%;
|
|
6091
6159
|
|
|
6092
6160
|
@media (min-width: 768px) {
|
|
6093
6161
|
width: initial;
|
|
6094
6162
|
}
|
|
6095
6163
|
`;
|
|
6096
|
-
var desktopNavStyles =
|
|
6164
|
+
var desktopNavStyles = import_react40.css`
|
|
6097
6165
|
display: none;
|
|
6098
6166
|
|
|
6099
6167
|
@media (min-width: 768px) {
|
|
@@ -6102,7 +6170,7 @@ var desktopNavStyles = import_react39.css`
|
|
|
6102
6170
|
gap: 32px;
|
|
6103
6171
|
}
|
|
6104
6172
|
`;
|
|
6105
|
-
var navLinksStyles =
|
|
6173
|
+
var navLinksStyles = import_react40.css`
|
|
6106
6174
|
display: flex;
|
|
6107
6175
|
align-items: center;
|
|
6108
6176
|
gap: 24px;
|
|
@@ -6110,7 +6178,7 @@ var navLinksStyles = import_react39.css`
|
|
|
6110
6178
|
margin: 0;
|
|
6111
6179
|
padding: 0;
|
|
6112
6180
|
`;
|
|
6113
|
-
var navLinkStyles =
|
|
6181
|
+
var navLinkStyles = import_react40.css`
|
|
6114
6182
|
text-decoration: none;
|
|
6115
6183
|
color: #374151;
|
|
6116
6184
|
font-weight: 500;
|
|
@@ -6126,7 +6194,7 @@ var navLinkStyles = import_react39.css`
|
|
|
6126
6194
|
outline-offset: 2px;
|
|
6127
6195
|
}
|
|
6128
6196
|
`;
|
|
6129
|
-
var avatarPlaceholderStyles =
|
|
6197
|
+
var avatarPlaceholderStyles = import_react40.css`
|
|
6130
6198
|
width: 32px;
|
|
6131
6199
|
height: 32px;
|
|
6132
6200
|
border-radius: 50%;
|
|
@@ -6186,7 +6254,7 @@ var Navigation = ({
|
|
|
6186
6254
|
border: "none",
|
|
6187
6255
|
padding: space[2],
|
|
6188
6256
|
css: hamburgerButtonStyles,
|
|
6189
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon_default, { variant: "Bars", size:
|
|
6257
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
6190
6258
|
}
|
|
6191
6259
|
),
|
|
6192
6260
|
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
@@ -6228,8 +6296,8 @@ var Navigation = ({
|
|
|
6228
6296
|
var Navigation_default = Navigation;
|
|
6229
6297
|
|
|
6230
6298
|
// src/PackageCard/PackageCard.styles.ts
|
|
6231
|
-
var
|
|
6232
|
-
var cardContainerStyles3 =
|
|
6299
|
+
var import_react41 = require("@emotion/react");
|
|
6300
|
+
var cardContainerStyles3 = import_react41.css`
|
|
6233
6301
|
color: var(--text-primary);
|
|
6234
6302
|
position: relative;
|
|
6235
6303
|
width: 100%;
|
|
@@ -6246,14 +6314,14 @@ var cardContainerStyles3 = import_react40.css`
|
|
|
6246
6314
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
6247
6315
|
}
|
|
6248
6316
|
`;
|
|
6249
|
-
var imageContainerStyles =
|
|
6317
|
+
var imageContainerStyles = import_react41.css`
|
|
6250
6318
|
position: relative;
|
|
6251
6319
|
width: 100%;
|
|
6252
6320
|
height: 200px;
|
|
6253
6321
|
overflow: hidden;
|
|
6254
6322
|
border-radius: var(--spacing-4);
|
|
6255
6323
|
`;
|
|
6256
|
-
var imageStyles =
|
|
6324
|
+
var imageStyles = import_react41.css`
|
|
6257
6325
|
width: 100%;
|
|
6258
6326
|
height: 100%;
|
|
6259
6327
|
background-size: cover;
|
|
@@ -6261,13 +6329,13 @@ var imageStyles = import_react40.css`
|
|
|
6261
6329
|
background-repeat: no-repeat;
|
|
6262
6330
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
6263
6331
|
`;
|
|
6264
|
-
var badgeStyles =
|
|
6332
|
+
var badgeStyles = import_react41.css`
|
|
6265
6333
|
position: absolute;
|
|
6266
6334
|
top: var(--spacing-3);
|
|
6267
6335
|
left: var(--spacing-3);
|
|
6268
6336
|
z-index: 2;
|
|
6269
6337
|
`;
|
|
6270
|
-
var heartIconStyles =
|
|
6338
|
+
var heartIconStyles = import_react41.css`
|
|
6271
6339
|
position: absolute;
|
|
6272
6340
|
top: var(--spacing-3);
|
|
6273
6341
|
right: var(--spacing-3);
|
|
@@ -6289,7 +6357,7 @@ var heartIconStyles = import_react40.css`
|
|
|
6289
6357
|
transform: scale(1.1);
|
|
6290
6358
|
}
|
|
6291
6359
|
`;
|
|
6292
|
-
var contentStyles2 =
|
|
6360
|
+
var contentStyles2 = import_react41.css`
|
|
6293
6361
|
padding: var(--spacing-3);
|
|
6294
6362
|
`;
|
|
6295
6363
|
|
|
@@ -6313,7 +6381,7 @@ var PackageCard = ({
|
|
|
6313
6381
|
const mainImage = images[0] || "";
|
|
6314
6382
|
return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(Box_default, { css: cardContainerStyles3, className, ...rest, children: [
|
|
6315
6383
|
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Box_default, { css: imageContainerStyles, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(Box_default, { css: [imageStyles, { backgroundImage: `url(${mainImage})` }], children: [
|
|
6316
|
-
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6384
|
+
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(AvailabilityBadge_default, { variant: "warning", css: badgeStyles, children: [
|
|
6317
6385
|
tripsLeft,
|
|
6318
6386
|
" Trips Left"
|
|
6319
6387
|
] }),
|
|
@@ -6325,7 +6393,13 @@ var PackageCard = ({
|
|
|
6325
6393
|
e.stopPropagation();
|
|
6326
6394
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
6327
6395
|
},
|
|
6328
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6396
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6397
|
+
Icon_default,
|
|
6398
|
+
{
|
|
6399
|
+
variant: isFavorited ? "HeartSolid" : "Heart",
|
|
6400
|
+
size: "medium"
|
|
6401
|
+
}
|
|
6402
|
+
)
|
|
6329
6403
|
}
|
|
6330
6404
|
)
|
|
6331
6405
|
] }) }),
|
|
@@ -6371,16 +6445,43 @@ var PackageCard = ({
|
|
|
6371
6445
|
};
|
|
6372
6446
|
var PackageCard_default = PackageCard;
|
|
6373
6447
|
|
|
6374
|
-
// src/
|
|
6448
|
+
// src/PackageHeader/PackageHeader.tsx
|
|
6375
6449
|
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6450
|
+
var PackageHeader = ({
|
|
6451
|
+
header,
|
|
6452
|
+
subheader,
|
|
6453
|
+
features,
|
|
6454
|
+
className
|
|
6455
|
+
}) => {
|
|
6456
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6457
|
+
Box_default,
|
|
6458
|
+
{
|
|
6459
|
+
display: "flex",
|
|
6460
|
+
flexDirection: "column",
|
|
6461
|
+
gap: "var(--spacing-2)",
|
|
6462
|
+
color: "var(--text-primary)",
|
|
6463
|
+
className,
|
|
6464
|
+
children: [
|
|
6465
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
6466
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(Text_default, { children: subheader }),
|
|
6467
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(FeatureList_default, { items: features })
|
|
6468
|
+
]
|
|
6469
|
+
}
|
|
6470
|
+
);
|
|
6471
|
+
};
|
|
6472
|
+
var PackageHeader_default = PackageHeader;
|
|
6473
|
+
|
|
6474
|
+
// src/StarRating/StarRating.tsx
|
|
6475
|
+
var import_react42 = require("@emotion/react");
|
|
6476
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6376
6477
|
var starSize = {
|
|
6377
6478
|
sm: {
|
|
6378
|
-
size:
|
|
6479
|
+
size: "medium",
|
|
6379
6480
|
spacing: "var(--spacing-2)"
|
|
6380
6481
|
},
|
|
6381
6482
|
md: {
|
|
6382
|
-
size:
|
|
6383
|
-
spacing: "var(--spacing-
|
|
6483
|
+
size: "large",
|
|
6484
|
+
spacing: "var(--spacing-1)"
|
|
6384
6485
|
}
|
|
6385
6486
|
};
|
|
6386
6487
|
var StarRating = ({
|
|
@@ -6391,18 +6492,21 @@ var StarRating = ({
|
|
|
6391
6492
|
const stars = [];
|
|
6392
6493
|
for (let i = 1; i <= 5; i++) {
|
|
6393
6494
|
stars.push(
|
|
6394
|
-
/* @__PURE__ */ (0,
|
|
6495
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6395
6496
|
Icon_default,
|
|
6396
6497
|
{
|
|
6397
6498
|
variant: "StarSolid",
|
|
6398
6499
|
size: starSize[size].size,
|
|
6399
|
-
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)"
|
|
6500
|
+
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)",
|
|
6501
|
+
css: import_react42.css`
|
|
6502
|
+
${size === "md" && "width: 40px; height: 40px;"}
|
|
6503
|
+
`
|
|
6400
6504
|
},
|
|
6401
6505
|
i
|
|
6402
6506
|
)
|
|
6403
6507
|
);
|
|
6404
6508
|
}
|
|
6405
|
-
return /* @__PURE__ */ (0,
|
|
6509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6406
6510
|
Box_default,
|
|
6407
6511
|
{
|
|
6408
6512
|
className,
|
|
@@ -6416,7 +6520,7 @@ var StarRating = ({
|
|
|
6416
6520
|
var StarRating_default = StarRating;
|
|
6417
6521
|
|
|
6418
6522
|
// src/UserCard/UserCard.tsx
|
|
6419
|
-
var
|
|
6523
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6420
6524
|
var UserCard = ({
|
|
6421
6525
|
avatarSrc,
|
|
6422
6526
|
title,
|
|
@@ -6425,7 +6529,7 @@ var UserCard = ({
|
|
|
6425
6529
|
showRating = true,
|
|
6426
6530
|
className
|
|
6427
6531
|
}) => {
|
|
6428
|
-
return /* @__PURE__ */ (0,
|
|
6532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6429
6533
|
Box_default,
|
|
6430
6534
|
{
|
|
6431
6535
|
display: "flex",
|
|
@@ -6433,11 +6537,11 @@ var UserCard = ({
|
|
|
6433
6537
|
gap: "var(--spacing-4)",
|
|
6434
6538
|
className,
|
|
6435
6539
|
children: [
|
|
6436
|
-
/* @__PURE__ */ (0,
|
|
6437
|
-
/* @__PURE__ */ (0,
|
|
6438
|
-
/* @__PURE__ */ (0,
|
|
6439
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6440
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
6540
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Avatar_default, { type: "image", src: avatarSrc, alt: `${title}'s avatar` }),
|
|
6541
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
6542
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
6543
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }),
|
|
6544
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(StarRating_default, { rating, size: "sm" })
|
|
6441
6545
|
] })
|
|
6442
6546
|
]
|
|
6443
6547
|
}
|
|
@@ -6446,8 +6550,8 @@ var UserCard = ({
|
|
|
6446
6550
|
var UserCard_default = UserCard;
|
|
6447
6551
|
|
|
6448
6552
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
6449
|
-
var
|
|
6450
|
-
var imageStyles2 =
|
|
6553
|
+
var import_react43 = require("@emotion/react");
|
|
6554
|
+
var imageStyles2 = import_react43.css`
|
|
6451
6555
|
flex: 1;
|
|
6452
6556
|
min-width: 0;
|
|
6453
6557
|
aspect-ratio: 1;
|
|
@@ -6457,13 +6561,13 @@ var imageStyles2 = import_react41.css`
|
|
|
6457
6561
|
`;
|
|
6458
6562
|
|
|
6459
6563
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
6460
|
-
var
|
|
6564
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
6461
6565
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
6462
6566
|
const displayImages = images.slice(0, maxImages);
|
|
6463
6567
|
if (displayImages.length === 0) {
|
|
6464
6568
|
return null;
|
|
6465
6569
|
}
|
|
6466
|
-
return /* @__PURE__ */ (0,
|
|
6570
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6467
6571
|
"img",
|
|
6468
6572
|
{
|
|
6469
6573
|
src: image,
|
|
@@ -6476,7 +6580,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
6476
6580
|
var ReviewImages_default = ReviewImages;
|
|
6477
6581
|
|
|
6478
6582
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
6479
|
-
var
|
|
6583
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
6480
6584
|
var ReviewReply = ({
|
|
6481
6585
|
avatarSrc,
|
|
6482
6586
|
name,
|
|
@@ -6485,7 +6589,7 @@ var ReviewReply = ({
|
|
|
6485
6589
|
label,
|
|
6486
6590
|
rating
|
|
6487
6591
|
}) => {
|
|
6488
|
-
return /* @__PURE__ */ (0,
|
|
6592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
6489
6593
|
Box_default,
|
|
6490
6594
|
{
|
|
6491
6595
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -6495,7 +6599,7 @@ var ReviewReply = ({
|
|
|
6495
6599
|
flexDirection: "column",
|
|
6496
6600
|
gap: "var(--spacing-3)",
|
|
6497
6601
|
children: [
|
|
6498
|
-
/* @__PURE__ */ (0,
|
|
6602
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
6499
6603
|
Box_default,
|
|
6500
6604
|
{
|
|
6501
6605
|
display: "flex",
|
|
@@ -6503,7 +6607,7 @@ var ReviewReply = ({
|
|
|
6503
6607
|
justifyContent: "space-between",
|
|
6504
6608
|
gap: "var(--spacing-2)",
|
|
6505
6609
|
children: [
|
|
6506
|
-
/* @__PURE__ */ (0,
|
|
6610
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6507
6611
|
UserCard_default,
|
|
6508
6612
|
{
|
|
6509
6613
|
avatarSrc,
|
|
@@ -6512,11 +6616,11 @@ var ReviewReply = ({
|
|
|
6512
6616
|
rating
|
|
6513
6617
|
}
|
|
6514
6618
|
),
|
|
6515
|
-
/* @__PURE__ */ (0,
|
|
6619
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
6516
6620
|
]
|
|
6517
6621
|
}
|
|
6518
6622
|
),
|
|
6519
|
-
/* @__PURE__ */ (0,
|
|
6623
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Text_default, { children: content })
|
|
6520
6624
|
]
|
|
6521
6625
|
}
|
|
6522
6626
|
);
|
|
@@ -6524,19 +6628,19 @@ var ReviewReply = ({
|
|
|
6524
6628
|
var ReviewReply_default = ReviewReply;
|
|
6525
6629
|
|
|
6526
6630
|
// src/ReviewCard/ReviewCard.tsx
|
|
6527
|
-
var
|
|
6631
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
6528
6632
|
var ReviewCard = ({
|
|
6529
6633
|
avatarSrc,
|
|
6530
6634
|
name,
|
|
6531
6635
|
date,
|
|
6532
6636
|
rating,
|
|
6533
|
-
|
|
6637
|
+
availabilityBadge,
|
|
6534
6638
|
content,
|
|
6535
6639
|
images = [],
|
|
6536
6640
|
replies = [],
|
|
6537
6641
|
className
|
|
6538
6642
|
}) => {
|
|
6539
|
-
return /* @__PURE__ */ (0,
|
|
6643
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
6540
6644
|
Box_default,
|
|
6541
6645
|
{
|
|
6542
6646
|
backgroundColor: "white",
|
|
@@ -6548,7 +6652,7 @@ var ReviewCard = ({
|
|
|
6548
6652
|
border: "1px solid var(--color-neutral-200)",
|
|
6549
6653
|
className,
|
|
6550
6654
|
children: [
|
|
6551
|
-
/* @__PURE__ */ (0,
|
|
6655
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
6552
6656
|
UserCard_default,
|
|
6553
6657
|
{
|
|
6554
6658
|
avatarSrc,
|
|
@@ -6557,10 +6661,10 @@ var ReviewCard = ({
|
|
|
6557
6661
|
rating
|
|
6558
6662
|
}
|
|
6559
6663
|
),
|
|
6560
|
-
|
|
6561
|
-
/* @__PURE__ */ (0,
|
|
6562
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
6563
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
6664
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
6665
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Text_default, { size: "md", children: content }),
|
|
6666
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(ReviewImages_default, { images }),
|
|
6667
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
6564
6668
|
ReviewReply_default,
|
|
6565
6669
|
{
|
|
6566
6670
|
avatarSrc: reply.avatarSrc,
|
|
@@ -6579,9 +6683,9 @@ var ReviewCard = ({
|
|
|
6579
6683
|
var ReviewCard_default = ReviewCard;
|
|
6580
6684
|
|
|
6581
6685
|
// src/Reviews/components/ReviewItem.tsx
|
|
6582
|
-
var
|
|
6686
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
6583
6687
|
var ReviewItem = ({ label, rating }) => {
|
|
6584
|
-
return /* @__PURE__ */ (0,
|
|
6688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
|
|
6585
6689
|
Box_default,
|
|
6586
6690
|
{
|
|
6587
6691
|
display: "flex",
|
|
@@ -6589,10 +6693,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
6589
6693
|
alignItems: "center",
|
|
6590
6694
|
width: "100%",
|
|
6591
6695
|
children: [
|
|
6592
|
-
/* @__PURE__ */ (0,
|
|
6593
|
-
/* @__PURE__ */ (0,
|
|
6594
|
-
/* @__PURE__ */ (0,
|
|
6595
|
-
/* @__PURE__ */ (0,
|
|
6696
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
6697
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
6698
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
6699
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Text_default, { fontWeight: "semibold", children: [
|
|
6596
6700
|
rating,
|
|
6597
6701
|
"/5"
|
|
6598
6702
|
] })
|
|
@@ -6604,14 +6708,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
6604
6708
|
var ReviewItem_default = ReviewItem;
|
|
6605
6709
|
|
|
6606
6710
|
// src/Reviews/Reviews.tsx
|
|
6607
|
-
var
|
|
6711
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
6608
6712
|
var Reviews = ({
|
|
6609
6713
|
averageRating,
|
|
6610
6714
|
totalReviews,
|
|
6611
6715
|
items,
|
|
6612
6716
|
className
|
|
6613
6717
|
}) => {
|
|
6614
|
-
return /* @__PURE__ */ (0,
|
|
6718
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
6615
6719
|
Box_default,
|
|
6616
6720
|
{
|
|
6617
6721
|
width: "100%",
|
|
@@ -6624,7 +6728,7 @@ var Reviews = ({
|
|
|
6624
6728
|
p: "var(--spacing-4)",
|
|
6625
6729
|
className,
|
|
6626
6730
|
children: [
|
|
6627
|
-
/* @__PURE__ */ (0,
|
|
6731
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(
|
|
6628
6732
|
Box_default,
|
|
6629
6733
|
{
|
|
6630
6734
|
display: "flex",
|
|
@@ -6632,9 +6736,9 @@ var Reviews = ({
|
|
|
6632
6736
|
alignItems: "center",
|
|
6633
6737
|
gap: "var(--spacing-2)",
|
|
6634
6738
|
children: [
|
|
6635
|
-
/* @__PURE__ */ (0,
|
|
6636
|
-
/* @__PURE__ */ (0,
|
|
6637
|
-
/* @__PURE__ */ (0,
|
|
6739
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
6740
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(StarRating_default, { rating: Math.floor(averageRating) }),
|
|
6741
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
6638
6742
|
"Overall Rating \u2022 ",
|
|
6639
6743
|
totalReviews,
|
|
6640
6744
|
" Review",
|
|
@@ -6643,14 +6747,14 @@ var Reviews = ({
|
|
|
6643
6747
|
]
|
|
6644
6748
|
}
|
|
6645
6749
|
),
|
|
6646
|
-
/* @__PURE__ */ (0,
|
|
6750
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
6647
6751
|
Box_default,
|
|
6648
6752
|
{
|
|
6649
6753
|
display: "flex",
|
|
6650
6754
|
flexDirection: "column",
|
|
6651
6755
|
gap: "var(--spacing-2)",
|
|
6652
6756
|
width: "100%",
|
|
6653
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
6757
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
6654
6758
|
}
|
|
6655
6759
|
)
|
|
6656
6760
|
]
|
|
@@ -6660,7 +6764,7 @@ var Reviews = ({
|
|
|
6660
6764
|
var Reviews_default = Reviews;
|
|
6661
6765
|
|
|
6662
6766
|
// src/Reviews/ReviewsShowcase.tsx
|
|
6663
|
-
var
|
|
6767
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
6664
6768
|
var ReviewsShowcase = () => {
|
|
6665
6769
|
const sampleData = {
|
|
6666
6770
|
averageRating: 4,
|
|
@@ -6682,7 +6786,7 @@ var ReviewsShowcase = () => {
|
|
|
6682
6786
|
{ label: "Game Abundance", rating: 5 }
|
|
6683
6787
|
]
|
|
6684
6788
|
};
|
|
6685
|
-
return /* @__PURE__ */ (0,
|
|
6789
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
6686
6790
|
Box_default,
|
|
6687
6791
|
{
|
|
6688
6792
|
display: "flex",
|
|
@@ -6690,24 +6794,24 @@ var ReviewsShowcase = () => {
|
|
|
6690
6794
|
gap: "var(--spacing-8)",
|
|
6691
6795
|
p: "var(--spacing-6)",
|
|
6692
6796
|
children: [
|
|
6693
|
-
/* @__PURE__ */ (0,
|
|
6694
|
-
/* @__PURE__ */ (0,
|
|
6695
|
-
/* @__PURE__ */ (0,
|
|
6696
|
-
/* @__PURE__ */ (0,
|
|
6797
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
6798
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
6799
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
6800
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Reviews_default, { ...sampleData }) })
|
|
6697
6801
|
] }),
|
|
6698
|
-
/* @__PURE__ */ (0,
|
|
6699
|
-
/* @__PURE__ */ (0,
|
|
6700
|
-
/* @__PURE__ */ (0,
|
|
6802
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
6803
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
6804
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Reviews_default, { ...highRatingData }) })
|
|
6701
6805
|
] }),
|
|
6702
|
-
/* @__PURE__ */ (0,
|
|
6703
|
-
/* @__PURE__ */ (0,
|
|
6704
|
-
/* @__PURE__ */ (0,
|
|
6806
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
6807
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
6808
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
6705
6809
|
Box_default,
|
|
6706
6810
|
{
|
|
6707
6811
|
maxWidth: "320px",
|
|
6708
6812
|
border: "1px solid var(--color-neutral-200)",
|
|
6709
6813
|
p: "var(--spacing-4)",
|
|
6710
|
-
children: /* @__PURE__ */ (0,
|
|
6814
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Reviews_default, { ...sampleData })
|
|
6711
6815
|
}
|
|
6712
6816
|
)
|
|
6713
6817
|
] })
|
|
@@ -6719,7 +6823,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
6719
6823
|
// Annotate the CommonJS export names for ESM import in node:
|
|
6720
6824
|
0 && (module.exports = {
|
|
6721
6825
|
AIResponse,
|
|
6722
|
-
|
|
6826
|
+
AvailabilityBadge,
|
|
6723
6827
|
Avatar,
|
|
6724
6828
|
Box,
|
|
6725
6829
|
Button,
|
|
@@ -6737,6 +6841,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
6737
6841
|
HuntCard,
|
|
6738
6842
|
Icon,
|
|
6739
6843
|
IconLabel,
|
|
6844
|
+
IconSizeMap,
|
|
6740
6845
|
InfoBox,
|
|
6741
6846
|
Input,
|
|
6742
6847
|
LayoutTokens,
|
|
@@ -6745,6 +6850,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
6745
6850
|
MessageBubble,
|
|
6746
6851
|
Navigation,
|
|
6747
6852
|
PackageCard,
|
|
6853
|
+
PackageHeader,
|
|
6748
6854
|
ReviewCard,
|
|
6749
6855
|
Reviews,
|
|
6750
6856
|
ReviewsShowcase,
|