@landtrustinc/design-system 1.1.0-beta.0 → 1.1.2
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.css +3 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +85 -39
- package/dist/index.js +1324 -864
- package/dist/index.js.map +1 -1
- package/dist/variables.css +3 -0
- package/package.json +2 -7
- package/variables.css +0 -209
package/dist/index.js
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
AvailabilityChip: () => AvailabilityChip_default,
|
|
35
35
|
Box: () => Box_default,
|
|
36
36
|
Button: () => Button_default,
|
|
37
|
+
ChatWidget: () => ChatWidget_default,
|
|
37
38
|
Column: () => Column_default,
|
|
38
39
|
Container: () => Container_default,
|
|
39
40
|
Divider: () => Divider_default,
|
|
@@ -48,11 +49,13 @@ __export(src_exports, {
|
|
|
48
49
|
IconLabel: () => IconLabel_default,
|
|
49
50
|
Input: () => Input,
|
|
50
51
|
LayoutTokens: () => LayoutTokens,
|
|
52
|
+
ListingChat: () => ListingChat_default,
|
|
51
53
|
Logo: () => Logo_default,
|
|
52
54
|
MessageBubble: () => MessageBubble_default,
|
|
53
55
|
Navigation: () => Navigation_default,
|
|
54
56
|
PackageCard: () => PackageCard_default,
|
|
55
57
|
Select: () => Select,
|
|
58
|
+
Spinner: () => Spinner_default2,
|
|
56
59
|
TagChip: () => TagChip_default,
|
|
57
60
|
Text: () => Text_default,
|
|
58
61
|
TextArea: () => TextArea,
|
|
@@ -515,6 +518,9 @@ var GlobalStyle = import_react.css`
|
|
|
515
518
|
${globalStyles}
|
|
516
519
|
`;
|
|
517
520
|
|
|
521
|
+
// src/AIResponse/AIResponse.tsx
|
|
522
|
+
var import_react10 = require("react");
|
|
523
|
+
|
|
518
524
|
// src/Button/Button.tsx
|
|
519
525
|
var import_react4 = require("@emotion/react");
|
|
520
526
|
var import_lodash = require("lodash");
|
|
@@ -699,6 +705,8 @@ __export(components_exports, {
|
|
|
699
705
|
Telescope: () => Telescope_default,
|
|
700
706
|
Tent: () => Tent_default,
|
|
701
707
|
TentSolid: () => TentSolid_default,
|
|
708
|
+
ThumbsDown: () => ThumbsDown_default,
|
|
709
|
+
ThumbsDownSolid: () => ThumbsDownSolid_default,
|
|
702
710
|
ThumbsUp: () => ThumbsUp_default,
|
|
703
711
|
ThumbsUpSolid: () => ThumbsUpSolid_default,
|
|
704
712
|
Trash: () => Trash_default,
|
|
@@ -2262,13 +2270,7 @@ var Paddleboard_default = SvgPaddleboard;
|
|
|
2262
2270
|
|
|
2263
2271
|
// src/Icon/components/PaperPlane.tsx
|
|
2264
2272
|
var import_jsx_runtime129 = require("@emotion/react/jsx-runtime");
|
|
2265
|
-
var SvgPaperPlane = (props) => /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
2266
|
-
"path",
|
|
2267
|
-
{
|
|
2268
|
-
fill: "currentColor",
|
|
2269
|
-
d: "M5.055 13.148c-.795.453-.721 1.663.127 2.014l4.935 2.057v3.631a1.148 1.148 0 0 0 2.034.735l2.18-2.612 4.36 1.814a1.136 1.136 0 0 0 1.544-.868l2.252-14.625a1.12 1.12 0 0 0-.475-1.097 1.13 1.13 0 0 0-1.196-.05zm1.833.896 12.014-6.859-7.726 8.628.043.035zm11.789 4.911-5.861-2.443L20.348 8.1l-1.671 10.856z"
|
|
2270
|
-
}
|
|
2271
|
-
) });
|
|
2273
|
+
var SvgPaperPlane = (props) => /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 640", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime129.jsx)("path", { d: "m322.5 351.7 200.9-200.8L391 520.3zM489.4 117 288.6 317.8 120 249.3zM70.1 280.8l205.8 83.6 83.6 205.8c5.3 13.1 18.1 21.7 32.3 21.7 14.7 0 27.8-9.2 32.8-23.1L602.6 72c3.5-9.8 1-20.6-6.3-28s-18.2-9.8-28-6.3l-496.9 178c-13.9 5-23.1 18.1-23.1 32.8 0 14.2 8.6 27 21.7 32.3z" }) });
|
|
2272
2274
|
var PaperPlane_default = SvgPaperPlane;
|
|
2273
2275
|
|
|
2274
2276
|
// src/Icon/components/Paperclip.tsx
|
|
@@ -2498,36 +2500,15 @@ var SvgSpinner = (props) => /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
|
|
|
2498
2500
|
"svg",
|
|
2499
2501
|
{
|
|
2500
2502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2501
|
-
|
|
2502
|
-
viewBox: "0 0 30 30",
|
|
2503
|
+
viewBox: "3 2.903 20 19.832",
|
|
2503
2504
|
...props,
|
|
2504
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime160.
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
dur: "0.9s",
|
|
2512
|
-
keyTimes: "0;0.5;1",
|
|
2513
|
-
repeatCount: "indefinite",
|
|
2514
|
-
type: "rotate",
|
|
2515
|
-
values: "0 15 15;180 15 15;720 15 15"
|
|
2516
|
-
}
|
|
2517
|
-
),
|
|
2518
|
-
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
|
|
2519
|
-
"animate",
|
|
2520
|
-
{
|
|
2521
|
-
attributeName: "stroke-dasharray",
|
|
2522
|
-
begin: "0s",
|
|
2523
|
-
calcMode: "linear",
|
|
2524
|
-
dur: "0.9s",
|
|
2525
|
-
keyTimes: "0;0.5;1",
|
|
2526
|
-
repeatCount: "indefinite",
|
|
2527
|
-
values: "9 56;46 14;9 56"
|
|
2528
|
-
}
|
|
2529
|
-
)
|
|
2530
|
-
] })
|
|
2505
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
|
|
2506
|
+
"path",
|
|
2507
|
+
{
|
|
2508
|
+
fill: "currentColor",
|
|
2509
|
+
d: "M11.719 3.712a.936.936 0 0 1-.684 1.136 8.13 8.13 0 0 0-6.16 7.887A8.124 8.124 0 0 0 13 20.86a8.124 8.124 0 0 0 8.125-8.125 8.13 8.13 0 0 0-6.16-7.887.936.936 0 0 1-.684-1.136.937.937 0 0 1 1.137-.684C19.773 4.11 23 8.044 23 12.735c0 5.524-4.477 10-10 10s-10-4.476-10-10c0-4.691 3.227-8.625 7.582-9.707a.94.94 0 0 1 1.137.684"
|
|
2510
|
+
}
|
|
2511
|
+
)
|
|
2531
2512
|
}
|
|
2532
2513
|
);
|
|
2533
2514
|
var Spinner_default = SvgSpinner;
|
|
@@ -2619,35 +2600,51 @@ var import_jsx_runtime173 = require("@emotion/react/jsx-runtime");
|
|
|
2619
2600
|
var SvgTent = (props) => /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("path", { d: "M274.4 4.2c8.2-5.7 19-5.7 27.3 0l219.8 151.7c13.5 9.3 22.2 24 23.9 40.2l26.7 254c3.5 33.1-22.4 61.9-55.7 61.9H59.5c-33.2 0-59.1-28.8-55.6-61.9l26.7-254c1.7-16.3 10.4-31 23.9-40.2zM516.5 464c4.7 0 8.5-4.1 8-8.8l-26.7-254c-.2-2.3-1.5-4.4-3.4-5.7L312 69.7v209.6L413.6 464zM264 69.7 81.7 195.4c-1.9 1.3-3.2 3.4-3.4 5.7l-26.7 254c-.5 4.7 3.2 8.8 8 8.8H264V69.6z" }) });
|
|
2620
2601
|
var Tent_default = SvgTent;
|
|
2621
2602
|
|
|
2622
|
-
// src/Icon/components/
|
|
2603
|
+
// src/Icon/components/ThumbsDownSolid.tsx
|
|
2623
2604
|
var import_jsx_runtime174 = require("@emotion/react/jsx-runtime");
|
|
2624
|
-
var
|
|
2605
|
+
var SvgThumbsDownSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "4 5 18 17", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime174.jsx)("path", { d: "M17.936 5c.961 0 1.741.788 1.741 1.759 0 .23-.047.447-.123.649.74.201 1.285.883 1.285 1.696 0 .334-.095.645-.254.913A1.754 1.754 0 0 1 22 11.743a1.76 1.76 0 0 1-1.049 1.612A1.76 1.76 0 0 1 22 14.968c0 .97-.78 1.759-1.742 1.759h-5.806l1.023 2.58c.09.23.138.48.138.729v.154c0 1-.802 1.81-1.793 1.81-.678 0-1.299-.388-1.604-1l-2.043-4.116a3.5 3.5 0 0 1-.367-1.572V8.474c0-.71.323-1.385.871-1.832l.443-.356A5.77 5.77 0 0 1 14.746 5zM6.903 7.345c.643 0 1.162.524 1.162 1.173v9.381c0 .649-.52 1.173-1.162 1.173H5.161A1.166 1.166 0 0 1 4 17.899V8.518c0-.649.519-1.173 1.161-1.173z" }) });
|
|
2606
|
+
var ThumbsDownSolid_default = SvgThumbsDownSolid;
|
|
2607
|
+
|
|
2608
|
+
// src/Icon/components/ThumbsDown.tsx
|
|
2609
|
+
var import_jsx_runtime175 = require("@emotion/react/jsx-runtime");
|
|
2610
|
+
var SvgThumbsDown = (props) => /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "4 4 18 18", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime175.jsx)("path", { d: "m17.5 4 .278.015a2.7 2.7 0 0 1 2.415 2.538 2.7 2.7 0 0 1 1.2 2.021l.007.225q0 .32-.075.619c.383.43.63.986.668 1.6l.007.18c0 .495-.135.953-.367 1.35.183.315.307.671.348 1.05l.015.3a2.7 2.7 0 0 1-2.422 2.684l-.277.015h-4.113l.529 1.125.116.285a3.005 3.005 0 0 1-1.282 3.562l-.27.146a3 3 0 0 1-3.847-1.17l-.023-.034-.1-.187-.023-.045-1.129-2.4A2.1 2.1 0 0 1 7.3 19H6.1A2.1 2.1 0 0 1 4 16.902l.004-8.402a2.1 2.1 0 0 1 2.1-2.1h1.2c.464 0 .895.154 1.244.413a5.4 5.4 0 0 1 2.062-1.935l.457-.243.027-.012.247-.12.026-.01.266-.113a5.4 5.4 0 0 1 1.973-.371zm-3.902 1.8c-.45 0-.896.086-1.316.247l-.176.075-.199.098-.457.243a3.6 3.6 0 0 0-1.901 2.91l-.008.3v4.232l.004.154q.028.464.225.889l2.13 4.532.078.143c.315.514.975.716 1.53.457l.109-.06a1.2 1.2 0 0 0 .513-1.424l-.045-.113-1.132-2.407a.902.902 0 0 1 .814-1.282h5.53l.09-.004a.895.895 0 0 0 .802-.802l.004-.094a.9.9 0 0 0-.308-.675.9.9 0 0 1-.307-.675.9.9 0 0 1 .307-.674.9.9 0 0 0 .3-.574l.008-.101a.9.9 0 0 0-.42-.758.903.903 0 0 1-.3-1.2.9.9 0 0 0 .109-.322l.007-.12a.9.9 0 0 0-.622-.855.9.9 0 0 1-.6-1.05q.01-.05.015-.097l.008-.097a.9.9 0 0 0-.81-.893L17.5 5.8zM6.103 8.2a.3.3 0 0 0-.3.299v8.398a.3.3 0 0 0 .3.3h1.2a.3.3 0 0 0 .3-.3V8.5a.3.3 0 0 0-.3-.3z" }) });
|
|
2611
|
+
var ThumbsDown_default = SvgThumbsDown;
|
|
2612
|
+
|
|
2613
|
+
// src/Icon/components/ThumbsUpSolid.tsx
|
|
2614
|
+
var import_jsx_runtime176 = require("@emotion/react/jsx-runtime");
|
|
2615
|
+
var SvgThumbsUpSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 16", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime176.jsx)("path", { d: "M2.903 4.966c.643 0 1.162.493 1.162 1.103v8.828c0 .61-.52 1.103-1.162 1.103H1.161C.52 16 0 15.507 0 14.897V6.069c0-.61.519-1.103 1.161-1.103zM9.82 0c.99 0 1.793.762 1.793 1.703v.145c0 .235-.047.47-.138.686l-1.023 2.432h5.806c.962 0 1.742.74 1.742 1.655 0 .679-.432 1.262-1.049 1.517.617.255 1.049.838 1.049 1.517 0 .807-.61 1.48-1.415 1.624.16.252.254.545.254.859 0 .765-.545 1.407-1.285 1.597.08.19.123.396.123.61 0 .914-.78 1.655-1.742 1.655h-3.19a6 6 0 0 1-3.625-1.21l-.443-.335a2.16 2.16 0 0 1-.87-1.724V6.297c0-.514.126-1.021.366-1.48L8.213.941C8.517.366 9.138 0 9.82 0" }) });
|
|
2625
2616
|
var ThumbsUpSolid_default = SvgThumbsUpSolid;
|
|
2626
2617
|
|
|
2627
2618
|
// src/Icon/components/ThumbsUp.tsx
|
|
2628
|
-
var
|
|
2629
|
-
var SvgThumbsUp = (props) => /* @__PURE__ */ (0,
|
|
2619
|
+
var import_jsx_runtime177 = require("@emotion/react/jsx-runtime");
|
|
2620
|
+
var SvgThumbsUp = (props) => /* @__PURE__ */ (0, import_jsx_runtime177.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 18 18", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime177.jsx)(
|
|
2621
|
+
"path",
|
|
2622
|
+
{
|
|
2623
|
+
fill: "currentColor",
|
|
2624
|
+
d: "M6.436 1.455a2.994 2.994 0 0 1 3.842-1.17l.27.143a3 3 0 0 1 1.17 3.846L11.189 5.4h4.112l.277.015A2.7 2.7 0 0 1 18 8.098c0 .495-.135.953-.367 1.35.228.398.363.855.367 1.35 0 .686-.259 1.304-.675 1.78q.074.3.075.62c0 .94-.483 1.761-1.207 2.245a2.694 2.694 0 0 1-2.414 2.538l-.277.015H9.6a5.5 5.5 0 0 1-1.972-.37l-.266-.113-.026-.012-.248-.12-.026-.01-.457-.245a5.3 5.3 0 0 1-1.233-.903A2.095 2.095 0 0 1 3.299 18h-1.2A2.1 2.1 0 0 1 0 15.9L.007 7.5a2.1 2.1 0 0 1 2.1-2.1h1.2c.404 0 .783.116 1.105.319L6.29 1.725l.022-.045.102-.188.022-.033zm-4.33 5.744a.3.3 0 0 0-.3.3v8.398a.3.3 0 0 0 .3.3h1.2a.3.3 0 0 0 .3-.3V7.499a.3.3 0 0 0-.3-.3zm7.408-5.287a1.2 1.2 0 0 0-1.526.45l-.083.15-2.129 4.533a2.5 2.5 0 0 0-.225.888l-.003.158v4.233l.007.296a3.6 3.6 0 0 0 1.9 2.913l.432.229.236.116c.465.21.967.319 1.477.319h3.902l.09-.004a.903.903 0 0 0 .81-.896l-.008-.098a1 1 0 0 0-.015-.097.9.9 0 0 1 .6-1.05.897.897 0 0 0 .506-1.297.895.895 0 0 1 .3-1.2.896.896 0 0 0 .112-1.432.9.9 0 0 1-.307-.675.9.9 0 0 1 .307-.675.9.9 0 0 0 .307-.675l-.003-.09a.895.895 0 0 0-.802-.802l-.09-.004h-5.53a.898.898 0 0 1-.813-1.282l1.125-2.41a1.2 1.2 0 0 0-.469-1.538z"
|
|
2625
|
+
}
|
|
2626
|
+
) });
|
|
2630
2627
|
var ThumbsUp_default = SvgThumbsUp;
|
|
2631
2628
|
|
|
2632
2629
|
// src/Icon/components/TrashSolid.tsx
|
|
2633
|
-
var
|
|
2634
|
-
var SvgTrashSolid = (props) => /* @__PURE__ */ (0,
|
|
2630
|
+
var import_jsx_runtime178 = require("@emotion/react/jsx-runtime");
|
|
2631
|
+
var SvgTrashSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime178.jsx)("path", { d: "M135.2 17.7 128 32H32C14.3 32 0 46.3 0 64s14.3 32 32 32h384c17.7 0 32-14.3 32-32s-14.3-32-32-32h-96l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8c-12.1 0-23.2 6.8-28.6 17.7M416 128H32l21.2 339c1.6 25.3 22.6 45 47.9 45h245.8c25.3 0 46.3-19.7 47.9-45z" }) });
|
|
2635
2632
|
var TrashSolid_default = SvgTrashSolid;
|
|
2636
2633
|
|
|
2637
2634
|
// src/Icon/components/Trash.tsx
|
|
2638
|
-
var
|
|
2639
|
-
var SvgTrash = (props) => /* @__PURE__ */ (0,
|
|
2635
|
+
var import_jsx_runtime179 = require("@emotion/react/jsx-runtime");
|
|
2636
|
+
var SvgTrash = (props) => /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("path", { d: "M177.1 48h93.7c2.7 0 5.2 1.3 6.7 3.6l19 28.4h-145l19-28.4c1.5-2.2 4-3.6 6.7-3.6zm177.1 32-36.7-55.1C307.1 9.4 289.6 0 270.9 0h-93.8c-18.7 0-36.2 9.4-46.6 24.9L93.8 80H24C10.7 80 0 90.7 0 104s10.7 24 24 24h11.6l24 324.7c2.5 33.4 30.3 59.3 63.8 59.3h201.2c33.5 0 61.3-25.9 63.8-59.3l24-324.7H424c13.3 0 24-10.7 24-24s-10.7-24-24-24h-69.8m10.1 48-23.8 321.2c-.6 8.4-7.6 14.8-16 14.8H123.4c-8.4 0-15.3-6.5-16-14.8L83.7 128z" }) });
|
|
2640
2637
|
var Trash_default = SvgTrash;
|
|
2641
2638
|
|
|
2642
2639
|
// src/Icon/components/TreeDecorated.tsx
|
|
2643
|
-
var
|
|
2644
|
-
var SvgTreeDecorated = (props) => /* @__PURE__ */ (0,
|
|
2640
|
+
var import_jsx_runtime180 = require("@emotion/react/jsx-runtime");
|
|
2641
|
+
var SvgTreeDecorated = (props) => /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime180.jsx)("path", { d: "M242.9 9.3C238.4 3.4 231.4 0 224 0s-14.4 3.4-18.9 9.3L66.8 186.9c-5.6 7.2-6.6 17-2.6 25.3s12.4 13.5 21.6 13.5h16.5L35.1 326.2c-4.9 7.4-5.4 16.8-1.2 24.6s12.3 12.7 21.2 12.7H79L4.1 474.6c-5 7.4-5.5 16.9-1.3 24.7S15.1 512 24 512h400c8.9 0 17-4.9 21.2-12.7s3.7-17.3-1.3-24.7L369 363.5h24c8.9 0 17-4.9 21.2-12.7s3.7-17.3-1.2-24.6l-67.3-100.6h16.5c9.2 0 17.5-5.2 21.6-13.5s3-18-2.6-25.3zm-95.7 168.3h-12.3L224 63.1l89.1 114.5h-12.3c-8.9 0-17 4.9-21.2 12.7s-3.7 17.3 1.2 24.6L348 315.5h-24.2c-8.9 0-17 4.9-21.2 12.7s-3.7 17.3 1.3 24.7l75 111.1H69.1L144 352.9c5-7.4 5.5-16.9 1.3-24.7s-12.3-12.7-21.2-12.7H99.9l67.2-100.6c4.9-7.4 5.4-16.8 1.2-24.6s-12.3-12.7-21.2-12.7zM184 312a24 24 0 1 0 0-48 24 24 0 1 0 0 48m80-152a24 24 0 1 0-48 0 24 24 0 1 0 48 0m24 280a24 24 0 1 0 0-48 24 24 0 1 0 0 48" }) });
|
|
2645
2642
|
var TreeDecorated_default = SvgTreeDecorated;
|
|
2646
2643
|
|
|
2647
2644
|
// src/Icon/components/TreeStand.tsx
|
|
2648
|
-
var
|
|
2649
|
-
var SvgTreeStand = (props) => /* @__PURE__ */ (0,
|
|
2650
|
-
/* @__PURE__ */ (0,
|
|
2645
|
+
var import_jsx_runtime181 = require("@emotion/react/jsx-runtime");
|
|
2646
|
+
var SvgTreeStand = (props) => /* @__PURE__ */ (0, import_jsx_runtime181.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 39 39", ...props, children: [
|
|
2647
|
+
/* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
|
|
2651
2648
|
"path",
|
|
2652
2649
|
{
|
|
2653
2650
|
fillRule: "evenodd",
|
|
@@ -2655,7 +2652,7 @@ var SvgTreeStand = (props) => /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("s
|
|
|
2655
2652
|
clipRule: "evenodd"
|
|
2656
2653
|
}
|
|
2657
2654
|
),
|
|
2658
|
-
/* @__PURE__ */ (0,
|
|
2655
|
+
/* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
|
|
2659
2656
|
"path",
|
|
2660
2657
|
{
|
|
2661
2658
|
fillRule: "evenodd",
|
|
@@ -2667,25 +2664,25 @@ var SvgTreeStand = (props) => /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("s
|
|
|
2667
2664
|
var TreeStand_default = SvgTreeStand;
|
|
2668
2665
|
|
|
2669
2666
|
// src/Icon/components/Trees.tsx
|
|
2670
|
-
var
|
|
2671
|
-
var SvgTrees = (props) => /* @__PURE__ */ (0,
|
|
2667
|
+
var import_jsx_runtime182 = require("@emotion/react/jsx-runtime");
|
|
2668
|
+
var SvgTrees = (props) => /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime182.jsx)("path", { d: "M177.4 15.1c16-19 45.2-19 61.2 0l115.8 137.4c6 7.1 7.3 17.1 3.4 25.6S345.4 192 336 192h-14.1l64.8 81c5.8 7.2 6.9 17.1 2.9 25.4S377.2 312 368 312h-25.7l62.1 88h3.6V216c0-13.3 10.7-24 24-24s24 10.7 24 24v184h113.7l-69.3-98.2c-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13h22.1l-64.8-81c-5.8-7.2-6.9-17.1-2.9-25.4s12.4-13.6 21.6-13.6h12.4L432 53.3l-59.9 71.1-32.2-36.3 61.5-73c16-19 45.2-19 61.2 0l115.8 137.4c6 7.1 7.3 17.1 3.4 25.6S569.4 192 560 192h-14.1l64.8 81c5.8 7.2 6.9 17.1 2.9 25.4S601.2 312 592 312h-25.7l69.3 98.2c5.2 7.3 5.8 16.9 1.7 24.9s-12.3 13-21.3 13H456v40c0 13.3-10.7 24-24 24s-24-10.7-24-24V448H232v40c0 13.3-10.7 24-24 24s-24-10.7-24-24v-40H24c-9 0-17.2-5-21.3-13s-3.5-17.6 1.7-24.9L73.7 312H48c-9.2 0-17.6-5.3-21.6-13.6s-2.9-18.2 2.9-25.4l64.8-81H80c-9.3 0-17.8-5.4-21.8-13.9s-2.6-18.4 3.4-25.6zM256 400h89.7l-69.3-98.2c-5.2-7.3-5.8-16.9-1.7-24.9s12.3-13 21.3-13h22.1l-64.8-81c-5.8-7.2-6.9-17.1-2.9-25.4s12.4-13.6 21.6-13.6h12.4L208 53.3 131.6 144H144c9.2 0 17.6 5.3 21.6 13.6s2.9 18.2-2.9 25.4l-64.8 81H120c9 0 17.2 5 21.3 13s3.5 17.6-1.7 24.9L70.3 400H184V216c0-13.3 10.7-24 24-24s24 10.7 24 24v184z" }) });
|
|
2672
2669
|
var Trees_default = SvgTrees;
|
|
2673
2670
|
|
|
2674
2671
|
// src/Icon/components/Turkey.tsx
|
|
2675
|
-
var
|
|
2676
|
-
var SvgTurkey = (props) => /* @__PURE__ */ (0,
|
|
2672
|
+
var import_jsx_runtime183 = require("@emotion/react/jsx-runtime");
|
|
2673
|
+
var SvgTurkey = (props) => /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 39 39", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("path", { d: "m31.65 15.836-1.157-1.929-1.157-1.543-2.122-2.893 2.315.772s-.772-1.543-1.35-2.507S26.829 6 25.67 6s-2.314.771-2.314 1.929c0 .578.193.964.386 1.542.386.579 2.314 3.086 2.314 3.086.193.386.193.964-.193 1.157-.193.193-.771.193-1.157.193-.964-.578-3.278-.578-4.05-.386-2.893.386-5.593 1.736-5.593 1.736L9.857 7.543C7.543 10.629 6.193 14.293 6 18.15c0 4.629 2.314 9.064 6.364 11.571 1.157-.578 3.279-1.928 3.279-1.928h4.243l.385 3.664c-.578 0-.771.579-.771 1.157h4.243c0-.578-.386-.964-.964-1.157h-1.543l-.386-3.664h4.436q2.315 0 4.05-1.157c2.121-1.35 3.471-3.857 3.664-6.557 0-1.543-.579-3.086-1.35-4.243" }) });
|
|
2677
2674
|
var Turkey_default = SvgTurkey;
|
|
2678
2675
|
|
|
2679
2676
|
// src/Icon/components/Upland.tsx
|
|
2680
|
-
var
|
|
2681
|
-
var SvgUpland = (props) => /* @__PURE__ */ (0,
|
|
2677
|
+
var import_jsx_runtime184 = require("@emotion/react/jsx-runtime");
|
|
2678
|
+
var SvgUpland = (props) => /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 39 39", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime184.jsx)("path", { d: "M31.18 7.628a5.48 5.48 0 0 0-4.14.74 5.4 5.4 0 0 0-1.8 2 2.76 2.76 0 0 0-2.46 1.04l-3.64 4.6a13.44 13.44 0 0 0-10.5 7.24l-4.14 7.62 7-1.34h4.7a11.2 11.2 0 0 0 2.3-.26l.86-.22c5.54-1.68 9.74-7.58 8-13.52l3.14-1.66-2.7-1a2.44 2.44 0 0 0-.76-1.7 3.2 3.2 0 0 1 1.08-1.12 3.46 3.46 0 0 1 2.62-.46 3.5 3.5 0 0 1 2.16 1.48l1.6-1.1a5.44 5.44 0 0 0-3.32-2.34" }) });
|
|
2682
2679
|
var Upland_default = SvgUpland;
|
|
2683
2680
|
|
|
2684
2681
|
// src/Icon/components/UsFlag.tsx
|
|
2685
|
-
var
|
|
2686
|
-
var SvgUsFlag = (props) => /* @__PURE__ */ (0,
|
|
2687
|
-
/* @__PURE__ */ (0,
|
|
2688
|
-
/* @__PURE__ */ (0,
|
|
2682
|
+
var import_jsx_runtime185 = require("@emotion/react/jsx-runtime");
|
|
2683
|
+
var SvgUsFlag = (props) => /* @__PURE__ */ (0, import_jsx_runtime185.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 200 106", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime185.jsxs)("g", { fill: "none", children: [
|
|
2684
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("path", { fill: "#B22234", d: "M0 .5h200V106H0z" }),
|
|
2685
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
2689
2686
|
"path",
|
|
2690
2687
|
{
|
|
2691
2688
|
fill: "#000",
|
|
@@ -2694,8 +2691,8 @@ var SvgUsFlag = (props) => /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("svg",
|
|
|
2694
2691
|
d: "M0 12.673h200m0 16.23H0m0 16.232h200m0 16.23H0m0 16.231h200m0 16.23H0"
|
|
2695
2692
|
}
|
|
2696
2693
|
),
|
|
2697
|
-
/* @__PURE__ */ (0,
|
|
2698
|
-
/* @__PURE__ */ (0,
|
|
2694
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("path", { fill: "#3C3B6E", d: "M0 .5h80v56.808H0z" }),
|
|
2695
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
2699
2696
|
"path",
|
|
2700
2697
|
{
|
|
2701
2698
|
fill: "#FFF",
|
|
@@ -2706,23 +2703,23 @@ var SvgUsFlag = (props) => /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("svg",
|
|
|
2706
2703
|
var UsFlag_default = SvgUsFlag;
|
|
2707
2704
|
|
|
2708
2705
|
// src/Icon/components/UserSolid.tsx
|
|
2709
|
-
var
|
|
2710
|
-
var SvgUserSolid = (props) => /* @__PURE__ */ (0,
|
|
2706
|
+
var import_jsx_runtime186 = require("@emotion/react/jsx-runtime");
|
|
2707
|
+
var SvgUserSolid = (props) => /* @__PURE__ */ (0, import_jsx_runtime186.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime186.jsx)("path", { d: "M224 256a128 128 0 1 0 0-256 128 128 0 1 0 0 256m-45.7 48C79.8 304 0 383.8 0 482.3 0 498.7 13.3 512 29.7 512h388.6c16.4 0 29.7-13.3 29.7-29.7 0-98.5-79.8-178.3-178.3-178.3z" }) });
|
|
2711
2708
|
var UserSolid_default = SvgUserSolid;
|
|
2712
2709
|
|
|
2713
2710
|
// src/Icon/components/User.tsx
|
|
2714
|
-
var
|
|
2715
|
-
var SvgUser = (props) => /* @__PURE__ */ (0,
|
|
2711
|
+
var import_jsx_runtime187 = require("@emotion/react/jsx-runtime");
|
|
2712
|
+
var SvgUser = (props) => /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 448 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("path", { d: "M304 128a80 80 0 1 0-160 0 80 80 0 1 0 160 0m-208 0a128 128 0 1 1 256 0 128 128 0 1 1-256 0M49.3 464h349.4c-8.9-63.3-63.3-112-129-112h-91.4c-65.7 0-120.1 48.7-129 112M0 482.3C0 383.8 79.8 304 178.3 304h91.4c98.5 0 178.3 79.8 178.3 178.3 0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3" }) });
|
|
2716
2713
|
var User_default = SvgUser;
|
|
2717
2714
|
|
|
2718
2715
|
// src/Icon/components/Users.tsx
|
|
2719
|
-
var
|
|
2720
|
-
var SvgUsers = (props) => /* @__PURE__ */ (0,
|
|
2716
|
+
var import_jsx_runtime188 = require("@emotion/react/jsx-runtime");
|
|
2717
|
+
var SvgUsers = (props) => /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 640 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime188.jsx)("path", { d: "M144 160a80 80 0 1 0 0-160 80 80 0 1 0 0 160m368 0a80 80 0 1 0 0-160 80 80 0 1 0 0 160M0 298.7C0 310.4 9.6 320 21.3 320h214.1c-26.6-23.5-43.3-57.8-43.3-96 0-7.6.7-15 1.9-22.3-13.6-6.3-28.7-9.7-44.6-9.7h-42.7C47.8 192 0 239.8 0 298.7M405.3 320h213.4c11.8 0 21.3-9.6 21.3-21.3 0-58.9-47.8-106.7-106.7-106.7h-42.6c-15.9 0-31 3.5-44.6 9.7 1.3 7.2 1.9 14.7 1.9 22.3 0 38.2-16.8 72.5-43.3 96h.7zM320 176a48 48 0 1 1 0 96 48 48 0 1 1 0-96m0 144a96 96 0 1 0 0-192 96 96 0 1 0 0 192m-58.7 80h117.4c39.8 0 73.2 27.2 82.6 64H178.7c9.5-36.8 42.9-64 82.6-64m0-48C187.7 352 128 411.7 128 485.3c0 14.7 11.9 26.7 26.7 26.7h330.6c14.7 0 26.7-11.9 26.7-26.7 0-73.6-59.7-133.3-133.3-133.3z" }) });
|
|
2721
2718
|
var Users_default = SvgUsers;
|
|
2722
2719
|
|
|
2723
2720
|
// src/Icon/components/WaterTap.tsx
|
|
2724
|
-
var
|
|
2725
|
-
var SvgWaterTap = (props) => /* @__PURE__ */ (0,
|
|
2721
|
+
var import_jsx_runtime189 = require("@emotion/react/jsx-runtime");
|
|
2722
|
+
var SvgWaterTap = (props) => /* @__PURE__ */ (0, import_jsx_runtime189.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 39 39", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(
|
|
2726
2723
|
"path",
|
|
2727
2724
|
{
|
|
2728
2725
|
fillRule: "evenodd",
|
|
@@ -2733,32 +2730,32 @@ var SvgWaterTap = (props) => /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("svg
|
|
|
2733
2730
|
var WaterTap_default = SvgWaterTap;
|
|
2734
2731
|
|
|
2735
2732
|
// src/Icon/components/Water.tsx
|
|
2736
|
-
var
|
|
2737
|
-
var SvgWater = (props) => /* @__PURE__ */ (0,
|
|
2733
|
+
var import_jsx_runtime190 = require("@emotion/react/jsx-runtime");
|
|
2734
|
+
var SvgWater = (props) => /* @__PURE__ */ (0, import_jsx_runtime190.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 39 39", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime190.jsx)("path", { d: "M25.69 31.875c-2.064 0-4.125-2.063-6.189-2.063s-4.125 2.063-6.188 2.063-4.125-2.063-6.188-2.063c-1.34 0-2.785.928-4.125 1.547v4.125c1.34-.62 2.785-1.547 4.125-1.547 2.063 0 4.125 2.063 6.188 2.063s4.125-2.063 6.188-2.063c2.064 0 4.125 2.063 6.188 2.063 2.064 0 4.125-2.063 6.189-2.063 1.34 0 2.784.928 4.124 1.547v-4.125c-1.34-.619-2.784-1.547-4.124-1.547-2.064 0-4.125 2.063-6.189 2.063M31.878 21.563c-2.064 0-4.125 2.064-6.189 2.064s-4.124-2.064-6.188-2.064-4.125 2.064-6.188 2.064-4.125-2.064-6.188-2.064c-1.34 0-2.785.929-4.125 1.547v4.125c1.34-.619 2.785-1.547 4.125-1.547 2.063 0 4.125 2.064 6.188 2.064s4.125-2.064 6.188-2.064c2.064 0 4.125 2.064 6.188 2.064 2.064 0 4.125-2.064 6.189-2.064 1.34 0 2.784.928 4.124 1.547V23.11c-1.34-.618-2.784-1.547-4.124-1.547M24.659 14.346C24.659 11.459 19.5 3 19.5 3s-5.157 8.457-5.157 11.346c0 2.887 2.268 5.157 5.157 5.157 2.887 0 5.158-2.268 5.158-5.157" }) });
|
|
2738
2735
|
var Water_default = SvgWater;
|
|
2739
2736
|
|
|
2740
2737
|
// src/Icon/components/Waterfowl.tsx
|
|
2741
|
-
var
|
|
2742
|
-
var SvgWaterfowl = (props) => /* @__PURE__ */ (0,
|
|
2738
|
+
var import_jsx_runtime191 = require("@emotion/react/jsx-runtime");
|
|
2739
|
+
var SvgWaterfowl = (props) => /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 39 39", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)("path", { d: "M32.91 6.168c-.598.533-1.55 1.228-2.364 1.734l-.312.193c-.33.206-1.35.766-1.957 1.07-2.366 1.193-4.8 2.16-8.585 3.41a176 176 0 0 1-3.6 1.157c-3.012.94-3.903 1.225-4.922 1.578-2.627.908-4.034 1.617-4.483 2.258-.404.581-.684 1.51-.687 2.282 0 .48.133 1.214.331 1.812.229.693.484 1.266 1.258 2.815.957 1.915 1.057 2.19 1.057 2.893-.003.47-.046.677-.225 1.062-.33.701-.96 1.296-1.872 1.772l-.296.154.04.068c.962 1.527 1.875 2.48 2.46 2.568.273.04.507-.117.684-.462.13-.255.296-.413.584-.557.532-.264 1.084-.38 3.043-.639 1.793-.233 2.461-.347 3.3-.562 2.277-.579 3.614-1.578 4.133-3.1.032-.1.06-.182.054-.182l-.25.082c-.576.198-1.372.375-2.021.45-.47.055-1.46.063-1.861.017-.495-.06-.544-.081-.318-.136 1.663-.405 2.812-.733 4.148-1.184 4.92-1.657 7.746-3.614 8.18-5.654.05-.236.066-.894.022-.937-.013-.014-.114.043-.242.141a19.5 19.5 0 0 1-5.539 2.945c-1.445.492-3.195.853-4.322.894l-.354.014.454-.134c4.078-1.203 7.417-2.839 9.628-4.716.321-.274.976-.92 1.22-1.209.886-1.046 1.418-2.108 1.622-3.233.06-.348.095-1.228.057-1.505l-.022-.16-.163.2c-.331.414-.956.992-1.556 1.44-1.728 1.3-4.401 2.536-7.653 3.546-1.54.478-3.467.975-4.78 1.233-.423.085-.583.098-.306.028.557-.139 2.605-.829 3.782-1.272 2.453-.923 4.86-2.086 6.723-3.246 4.154-2.587 6.265-5.494 6.157-8.482a4 4 0 0 0-.038-.538L33.099 6z" }) });
|
|
2743
2740
|
var Waterfowl_default = SvgWaterfowl;
|
|
2744
2741
|
|
|
2745
2742
|
// src/Icon/components/Whitetail.tsx
|
|
2746
|
-
var
|
|
2747
|
-
var SvgWhitetail = (props) => /* @__PURE__ */ (0,
|
|
2743
|
+
var import_jsx_runtime192 = require("@emotion/react/jsx-runtime");
|
|
2744
|
+
var SvgWhitetail = (props) => /* @__PURE__ */ (0, import_jsx_runtime192.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 26 26", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime192.jsx)("path", { d: "M21.76 4.557A.57.57 0 0 0 21.201 4a.53.53 0 0 0-.528.557c0 1.327.157 5.082.2 6.381.004.292-.075.58-.228.828-.386.614-1.142 1.828-1.556 2.47-.743 1.157-1.67.857-3.013.486-1.342-.372-1.242-1.071-1.427-2.37-.229-1.556-.5-4.426-.828-7.039a.514.514 0 0 0-.529-.514.557.557 0 0 0-.457.629c-.1 2.598-.228 5.425-.285 6.938 0 1.256-.4 1.784-1.428 1.77a9 9 0 0 1-1.427-.1 1.53 1.53 0 0 1-1.428-1.242c-.214-1.142-.742-4.682-.742-4.682 0-.357-.3-.557-.543-.514-.243.042-.385.314-.385.556 0 1.428.085 3.113.1 3.983 0 1.428-.429 1.585-1.428 1.428a1.185 1.185 0 0 1-1-1.056c-.114-.486-.228-.9-.356-1.614 0-.356-.314-.485-.5-.47A.46.46 0 0 0 3 10.81v1.428a3.34 3.34 0 0 0 3.155 3.354l9.051 1.67a2.63 2.63 0 0 1 1.828 1.186 3.87 3.87 0 0 1 .357 2.47l-.129.613 3.012 1.028a5.7 5.7 0 0 0 .457-3.44c0-.215-.157-.714-.3-1.428a3.16 3.16 0 0 1 .415-2.027l1.941-3.584c.174-.281.245-.614.2-.942-.285-1.342-.942-5.154-1.228-6.581" }) });
|
|
2748
2745
|
var Whitetail_default = SvgWhitetail;
|
|
2749
2746
|
|
|
2750
2747
|
// src/Icon/components/Xmark.tsx
|
|
2751
|
-
var
|
|
2752
|
-
var SvgXmark = (props) => /* @__PURE__ */ (0,
|
|
2748
|
+
var import_jsx_runtime193 = require("@emotion/react/jsx-runtime");
|
|
2749
|
+
var SvgXmark = (props) => /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 384 512", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime193.jsx)("path", { d: "M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119z" }) });
|
|
2753
2750
|
var Xmark_default = SvgXmark;
|
|
2754
2751
|
|
|
2755
2752
|
// src/Icon/components/YoutubeSquare.tsx
|
|
2756
|
-
var
|
|
2757
|
-
var SvgYoutubeSquare = (props) => /* @__PURE__ */ (0,
|
|
2753
|
+
var import_jsx_runtime194 = require("@emotion/react/jsx-runtime");
|
|
2754
|
+
var SvgYoutubeSquare = (props) => /* @__PURE__ */ (0, import_jsx_runtime194.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 22 22", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime194.jsx)("path", { d: "m9.173 8.353 4.675 2.657-4.675 2.657zM22 2.357v17.286A2.36 2.36 0 0 1 19.643 22H2.357A2.36 2.36 0 0 1 0 19.643V2.357A2.36 2.36 0 0 1 2.357 0h17.286A2.36 2.36 0 0 1 22 2.357m-2.063 8.658s0-2.927-.373-4.332a2.24 2.24 0 0 0-1.581-1.59c-1.39-.38-6.983-.38-6.983-.38s-5.593 0-6.983.378a2.24 2.24 0 0 0-1.581 1.591c-.373 1.4-.373 4.332-.373 4.332s0 2.927.373 4.331a2.21 2.21 0 0 0 1.581 1.567c1.39.373 6.983.373 6.983.373s5.593 0 6.983-.378a2.21 2.21 0 0 0 1.581-1.567c.373-1.4.373-4.326.373-4.326z" }) });
|
|
2758
2755
|
var YoutubeSquare_default = SvgYoutubeSquare;
|
|
2759
2756
|
|
|
2760
2757
|
// src/Icon/Icon.tsx
|
|
2761
|
-
var
|
|
2758
|
+
var import_jsx_runtime195 = require("@emotion/react/jsx-runtime");
|
|
2762
2759
|
var iconStyles = (size, setAutoHeight, fill) => import_react2.css`
|
|
2763
2760
|
width: ${space[size]};
|
|
2764
2761
|
height: ${space[size]};
|
|
@@ -2777,7 +2774,7 @@ var Icon = ({
|
|
|
2777
2774
|
if (!Component) {
|
|
2778
2775
|
throw new Error(`invalid variant [${variant}]`);
|
|
2779
2776
|
}
|
|
2780
|
-
return /* @__PURE__ */ (0,
|
|
2777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
|
|
2781
2778
|
Component,
|
|
2782
2779
|
{
|
|
2783
2780
|
css: iconStyles(size, setAutoHeight, fill),
|
|
@@ -3026,16 +3023,16 @@ var styles = {
|
|
|
3026
3023
|
font-size: ${fontSizes.base};
|
|
3027
3024
|
`,
|
|
3028
3025
|
iconOnly: import_react3.css`
|
|
3029
|
-
height:
|
|
3030
|
-
min-width:
|
|
3031
|
-
max-height:
|
|
3026
|
+
height: var(--spacing-11);
|
|
3027
|
+
min-width: var(--spacing-11);
|
|
3028
|
+
max-height: var(--spacing-11);
|
|
3032
3029
|
padding: 0;
|
|
3033
3030
|
border-radius: var(--radius-round);
|
|
3034
3031
|
`,
|
|
3035
3032
|
iconOnlyLg: import_react3.css`
|
|
3036
|
-
height:
|
|
3037
|
-
min-width:
|
|
3038
|
-
max-height:
|
|
3033
|
+
height: var(--spacing-20);
|
|
3034
|
+
min-width: var(--spacing-20);
|
|
3035
|
+
max-height: var(--spacing-20);
|
|
3039
3036
|
padding: 0;
|
|
3040
3037
|
border-radius: var(--radius-round);
|
|
3041
3038
|
`,
|
|
@@ -3075,7 +3072,7 @@ var labelStyles = (isVisible) => () => import_react3.css`
|
|
|
3075
3072
|
`;
|
|
3076
3073
|
|
|
3077
3074
|
// src/Button/Button.tsx
|
|
3078
|
-
var
|
|
3075
|
+
var import_jsx_runtime196 = require("@emotion/react/jsx-runtime");
|
|
3079
3076
|
var Button = import_react5.default.forwardRef(
|
|
3080
3077
|
({
|
|
3081
3078
|
as: Component = "button",
|
|
@@ -3094,7 +3091,7 @@ var Button = import_react5.default.forwardRef(
|
|
|
3094
3091
|
const componentType = Component === "button" ? type : void 0;
|
|
3095
3092
|
const sizeKey = `size${(0, import_lodash.upperFirst)(size)}`;
|
|
3096
3093
|
const isIconOnly = icon && !children;
|
|
3097
|
-
return /* @__PURE__ */ (0,
|
|
3094
|
+
return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)(
|
|
3098
3095
|
Component,
|
|
3099
3096
|
{
|
|
3100
3097
|
ref,
|
|
@@ -3112,8 +3109,8 @@ var Button = import_react5.default.forwardRef(
|
|
|
3112
3109
|
...props,
|
|
3113
3110
|
children: [
|
|
3114
3111
|
icon,
|
|
3115
|
-
children && /* @__PURE__ */ (0,
|
|
3116
|
-
isLoading && /* @__PURE__ */ (0,
|
|
3112
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime196.jsx)("span", { css: [labelStyles(!isLoading), labelStyleOverrides], children }),
|
|
3113
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(Icon_default, { variant: "Spinner", css: spinnerStyles(variant) })
|
|
3117
3114
|
]
|
|
3118
3115
|
}
|
|
3119
3116
|
);
|
|
@@ -3147,7 +3144,7 @@ var Box_default = Box;
|
|
|
3147
3144
|
|
|
3148
3145
|
// src/Box/Container.tsx
|
|
3149
3146
|
var import_react6 = require("@emotion/react");
|
|
3150
|
-
var
|
|
3147
|
+
var import_jsx_runtime197 = require("@emotion/react/jsx-runtime");
|
|
3151
3148
|
var baseStyles = import_react6.css`
|
|
3152
3149
|
width: 100%;
|
|
3153
3150
|
margin: 0 auto;
|
|
@@ -3181,7 +3178,7 @@ var Container = ({
|
|
|
3181
3178
|
isFullWidth = false,
|
|
3182
3179
|
...props
|
|
3183
3180
|
}) => {
|
|
3184
|
-
return /* @__PURE__ */ (0,
|
|
3181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
|
|
3185
3182
|
Box_default,
|
|
3186
3183
|
{
|
|
3187
3184
|
css: [baseStyles, isFullWidth && fullWidthStyles],
|
|
@@ -3383,7 +3380,7 @@ var textFontWeightStyles = {
|
|
|
3383
3380
|
};
|
|
3384
3381
|
|
|
3385
3382
|
// src/Typography/Heading.tsx
|
|
3386
|
-
var
|
|
3383
|
+
var import_jsx_runtime198 = require("@emotion/react/jsx-runtime");
|
|
3387
3384
|
var SIZE_TO_ELEMENT_MAP = {
|
|
3388
3385
|
xl: "h1",
|
|
3389
3386
|
lg: "h2",
|
|
@@ -3413,7 +3410,7 @@ var Heading = ({
|
|
|
3413
3410
|
...props
|
|
3414
3411
|
}) => {
|
|
3415
3412
|
const elementType = as != null ? as : SIZE_TO_ELEMENT_MAP[size];
|
|
3416
|
-
return /* @__PURE__ */ (0,
|
|
3413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
|
|
3417
3414
|
StyledHeading,
|
|
3418
3415
|
{
|
|
3419
3416
|
as: elementType,
|
|
@@ -3560,7 +3557,7 @@ var textWrapStyles2 = {
|
|
|
3560
3557
|
};
|
|
3561
3558
|
|
|
3562
3559
|
// src/Typography/Text.tsx
|
|
3563
|
-
var
|
|
3560
|
+
var import_jsx_runtime199 = require("@emotion/react/jsx-runtime");
|
|
3564
3561
|
var StyledText = (0, import_styled3.default)("p")`
|
|
3565
3562
|
${({ size = "md" }) => textSizeStyles[size]}
|
|
3566
3563
|
${({ fontWeight = "normal" }) => textFontWeightStyles2[fontWeight]}
|
|
@@ -3582,7 +3579,7 @@ var Text = ({
|
|
|
3582
3579
|
...props
|
|
3583
3580
|
}) => {
|
|
3584
3581
|
const elementType = as;
|
|
3585
|
-
return /* @__PURE__ */ (0,
|
|
3582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
|
|
3586
3583
|
StyledText,
|
|
3587
3584
|
{
|
|
3588
3585
|
as: elementType,
|
|
@@ -3601,7 +3598,7 @@ var Text = ({
|
|
|
3601
3598
|
var Text_default = Text;
|
|
3602
3599
|
|
|
3603
3600
|
// src/IconLabel/IconLabel.tsx
|
|
3604
|
-
var
|
|
3601
|
+
var import_jsx_runtime200 = require("@emotion/react/jsx-runtime");
|
|
3605
3602
|
var IconLabel = ({
|
|
3606
3603
|
variant,
|
|
3607
3604
|
label,
|
|
@@ -3609,7 +3606,7 @@ var IconLabel = ({
|
|
|
3609
3606
|
className,
|
|
3610
3607
|
...rest
|
|
3611
3608
|
}) => {
|
|
3612
|
-
return /* @__PURE__ */ (0,
|
|
3609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(
|
|
3613
3610
|
Box_default,
|
|
3614
3611
|
{
|
|
3615
3612
|
display: "flex",
|
|
@@ -3618,8 +3615,8 @@ var IconLabel = ({
|
|
|
3618
3615
|
className,
|
|
3619
3616
|
...rest,
|
|
3620
3617
|
children: [
|
|
3621
|
-
/* @__PURE__ */ (0,
|
|
3622
|
-
/* @__PURE__ */ (0,
|
|
3618
|
+
/* @__PURE__ */ (0, import_jsx_runtime200.jsx)(Icon_default, { variant, size: iconSize }),
|
|
3619
|
+
/* @__PURE__ */ (0, import_jsx_runtime200.jsx)(Text_default, { size: "xs", children: label })
|
|
3623
3620
|
]
|
|
3624
3621
|
}
|
|
3625
3622
|
);
|
|
@@ -3659,7 +3656,7 @@ var errorRetryStyles = import_react9.css`
|
|
|
3659
3656
|
`;
|
|
3660
3657
|
|
|
3661
3658
|
// src/AIResponse/AIResponse.tsx
|
|
3662
|
-
var
|
|
3659
|
+
var import_jsx_runtime201 = require("@emotion/react/jsx-runtime");
|
|
3663
3660
|
var AIResponse = ({
|
|
3664
3661
|
title = `Here\u2019s what I found`,
|
|
3665
3662
|
showDisclaimer = true,
|
|
@@ -3669,27 +3666,95 @@ var AIResponse = ({
|
|
|
3669
3666
|
onHelpfulYes,
|
|
3670
3667
|
onHelpfulNo,
|
|
3671
3668
|
variant = "default",
|
|
3672
|
-
onErrorRetry
|
|
3669
|
+
onErrorRetry,
|
|
3670
|
+
helpfulDebounceMs = 1e3
|
|
3673
3671
|
}) => {
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3672
|
+
const [visualHelpful, setVisualHelpful] = (0, import_react10.useState)(
|
|
3673
|
+
void 0
|
|
3674
|
+
);
|
|
3675
|
+
const debounceTimerRef = (0, import_react10.useRef)(null);
|
|
3676
|
+
const DEBOUNCE_MS = helpfulDebounceMs;
|
|
3677
|
+
const scheduleCallback = (next) => {
|
|
3678
|
+
if (debounceTimerRef.current) {
|
|
3679
|
+
clearTimeout(debounceTimerRef.current);
|
|
3680
|
+
debounceTimerRef.current = null;
|
|
3681
|
+
}
|
|
3682
|
+
if (next === "yes" || next === "no") {
|
|
3683
|
+
debounceTimerRef.current = window.setTimeout(() => {
|
|
3684
|
+
if (next === "yes")
|
|
3685
|
+
onHelpfulYes == null ? void 0 : onHelpfulYes();
|
|
3686
|
+
else
|
|
3687
|
+
onHelpfulNo == null ? void 0 : onHelpfulNo();
|
|
3688
|
+
debounceTimerRef.current = null;
|
|
3689
|
+
}, DEBOUNCE_MS);
|
|
3690
|
+
}
|
|
3691
|
+
};
|
|
3692
|
+
const handleHelpfulYes = () => {
|
|
3693
|
+
const next = visualHelpful === "yes" ? void 0 : "yes";
|
|
3694
|
+
setVisualHelpful(next);
|
|
3695
|
+
scheduleCallback(next);
|
|
3696
|
+
};
|
|
3697
|
+
const handleHelpfulNo = () => {
|
|
3698
|
+
const next = visualHelpful === "no" ? void 0 : "no";
|
|
3699
|
+
setVisualHelpful(next);
|
|
3700
|
+
scheduleCallback(next);
|
|
3701
|
+
};
|
|
3702
|
+
(0, import_react10.useEffect)(() => {
|
|
3703
|
+
return () => {
|
|
3704
|
+
if (debounceTimerRef.current) {
|
|
3705
|
+
clearTimeout(debounceTimerRef.current);
|
|
3706
|
+
}
|
|
3707
|
+
};
|
|
3708
|
+
}, []);
|
|
3709
|
+
return /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { className, css: rootStyles2, children: [
|
|
3710
|
+
variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", color: "var(--text-primary)", children: title }),
|
|
3711
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { css: getBannerStyles(variant), children: [
|
|
3712
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: variant === "error" ? "An error occurred while generating your summary. Please try again." : children }),
|
|
3713
|
+
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
3679
3714
|
IconLabel_default,
|
|
3680
3715
|
{
|
|
3681
3716
|
variant: "AiMagic",
|
|
3682
3717
|
label: "This AI summary was generated from the property information from this package. This answer may display incorrect information.",
|
|
3683
|
-
iconSize:
|
|
3718
|
+
iconSize: 10
|
|
3684
3719
|
}
|
|
3685
3720
|
),
|
|
3686
|
-
variant === "error" && /* @__PURE__ */ (0,
|
|
3721
|
+
variant === "error" && /* @__PURE__ */ (0, import_jsx_runtime201.jsx)("div", { css: errorRetryStyles, children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Button_default, { variant: "secondary", size: "xs", onClick: onErrorRetry, children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(IconLabel_default, { variant: "ArrowRotateLeft", label: "Try Again" }) }) })
|
|
3687
3722
|
] }),
|
|
3688
|
-
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0,
|
|
3689
|
-
/* @__PURE__ */ (0,
|
|
3690
|
-
/* @__PURE__ */ (0,
|
|
3691
|
-
/* @__PURE__ */ (0,
|
|
3692
|
-
|
|
3723
|
+
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { css: footerStyles, children: [
|
|
3724
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: "Was this helpful?" }),
|
|
3725
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsxs)("div", { css: actionsStyles, children: [
|
|
3726
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
3727
|
+
Button_default,
|
|
3728
|
+
{
|
|
3729
|
+
variant: "text",
|
|
3730
|
+
size: "xs",
|
|
3731
|
+
onClick: handleHelpfulYes,
|
|
3732
|
+
"aria-pressed": visualHelpful === "yes",
|
|
3733
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
3734
|
+
IconLabel_default,
|
|
3735
|
+
{
|
|
3736
|
+
variant: visualHelpful === "yes" ? "ThumbsUpSolid" : "ThumbsUp",
|
|
3737
|
+
label: "Yes"
|
|
3738
|
+
}
|
|
3739
|
+
)
|
|
3740
|
+
}
|
|
3741
|
+
),
|
|
3742
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
3743
|
+
Button_default,
|
|
3744
|
+
{
|
|
3745
|
+
variant: "text",
|
|
3746
|
+
size: "xs",
|
|
3747
|
+
onClick: handleHelpfulNo,
|
|
3748
|
+
"aria-pressed": visualHelpful === "no",
|
|
3749
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
3750
|
+
IconLabel_default,
|
|
3751
|
+
{
|
|
3752
|
+
variant: visualHelpful === "no" ? "ThumbsDownSolid" : "ThumbsDown",
|
|
3753
|
+
label: "No"
|
|
3754
|
+
}
|
|
3755
|
+
)
|
|
3756
|
+
}
|
|
3757
|
+
)
|
|
3693
3758
|
] })
|
|
3694
3759
|
] })
|
|
3695
3760
|
] });
|
|
@@ -3697,34 +3762,34 @@ var AIResponse = ({
|
|
|
3697
3762
|
var AIResponse_default = AIResponse;
|
|
3698
3763
|
|
|
3699
3764
|
// src/AvailabilityChip/AvailabilityChip.styles.ts
|
|
3700
|
-
var
|
|
3765
|
+
var import_react11 = require("@emotion/react");
|
|
3701
3766
|
var availabilityChipVariantStyles = {
|
|
3702
|
-
primary:
|
|
3767
|
+
primary: import_react11.css`
|
|
3703
3768
|
background-color: var(--color-primary-100);
|
|
3704
3769
|
color: var(--text-primary);
|
|
3705
3770
|
`,
|
|
3706
|
-
error:
|
|
3771
|
+
error: import_react11.css`
|
|
3707
3772
|
background-color: var(--surface-error);
|
|
3708
3773
|
color: var(--text-error);
|
|
3709
3774
|
`,
|
|
3710
|
-
action:
|
|
3775
|
+
action: import_react11.css`
|
|
3711
3776
|
background-color: var(--surface-action-2);
|
|
3712
3777
|
color: var(--text-primary);
|
|
3713
3778
|
`,
|
|
3714
|
-
warning:
|
|
3779
|
+
warning: import_react11.css`
|
|
3715
3780
|
background-color: var(--color-brown-200);
|
|
3716
3781
|
color: var(--text-primary);
|
|
3717
3782
|
`
|
|
3718
3783
|
};
|
|
3719
3784
|
|
|
3720
3785
|
// src/AvailabilityChip/AvailabilityChip.tsx
|
|
3721
|
-
var
|
|
3786
|
+
var import_jsx_runtime202 = require("@emotion/react/jsx-runtime");
|
|
3722
3787
|
var AvailabilityChip = ({
|
|
3723
3788
|
children,
|
|
3724
3789
|
variant,
|
|
3725
3790
|
className
|
|
3726
3791
|
}) => {
|
|
3727
|
-
return /* @__PURE__ */ (0,
|
|
3792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3728
3793
|
Box_default,
|
|
3729
3794
|
{
|
|
3730
3795
|
display: "inline-flex",
|
|
@@ -3734,15 +3799,22 @@ var AvailabilityChip = ({
|
|
|
3734
3799
|
borderRadius: "var(--spacing-2)",
|
|
3735
3800
|
css: availabilityChipVariantStyles[variant],
|
|
3736
3801
|
className,
|
|
3737
|
-
children: /* @__PURE__ */ (0,
|
|
3802
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Text_default, { size: "xs", fontWeight: "bold", children })
|
|
3738
3803
|
}
|
|
3739
3804
|
);
|
|
3740
3805
|
};
|
|
3741
3806
|
var AvailabilityChip_default = AvailabilityChip;
|
|
3742
3807
|
|
|
3808
|
+
// src/ChatWidget/ChatWidget.tsx
|
|
3809
|
+
var import_react21 = __toESM(require("react"));
|
|
3810
|
+
|
|
3811
|
+
// src/Divider/Divider.tsx
|
|
3812
|
+
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
3813
|
+
var import_styled_system2 = require("styled-system");
|
|
3814
|
+
|
|
3743
3815
|
// src/Divider/Divider.styles.ts
|
|
3744
|
-
var
|
|
3745
|
-
var dividerStyles =
|
|
3816
|
+
var import_react12 = require("@emotion/react");
|
|
3817
|
+
var dividerStyles = import_react12.css`
|
|
3746
3818
|
width: 100%;
|
|
3747
3819
|
height: 1px;
|
|
3748
3820
|
border: 0;
|
|
@@ -3750,122 +3822,808 @@ var dividerStyles = import_react11.css`
|
|
|
3750
3822
|
`;
|
|
3751
3823
|
|
|
3752
3824
|
// src/Divider/Divider.tsx
|
|
3753
|
-
var
|
|
3754
|
-
var
|
|
3755
|
-
|
|
3825
|
+
var import_jsx_runtime203 = require("@emotion/react/jsx-runtime");
|
|
3826
|
+
var StyledHr = import_styled4.default.hr`
|
|
3827
|
+
${dividerStyles}
|
|
3828
|
+
${import_styled_system2.space}
|
|
3829
|
+
`;
|
|
3830
|
+
var Divider = ({ className, ...rest }) => {
|
|
3831
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(StyledHr, { className, ...rest });
|
|
3756
3832
|
};
|
|
3757
3833
|
var Divider_default = Divider;
|
|
3758
3834
|
|
|
3759
|
-
// src/
|
|
3760
|
-
var
|
|
3761
|
-
var
|
|
3762
|
-
position: relative;
|
|
3763
|
-
height: 335px;
|
|
3835
|
+
// src/Form/TextArea.tsx
|
|
3836
|
+
var import_react14 = require("@emotion/react");
|
|
3837
|
+
var import_react15 = require("react");
|
|
3764
3838
|
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
`;
|
|
3769
|
-
var cardContentStyles = import_react12.css`
|
|
3839
|
+
// src/Form/TextArea.styles.ts
|
|
3840
|
+
var import_react13 = require("@emotion/react");
|
|
3841
|
+
var wrapperStyles = import_react13.css`
|
|
3770
3842
|
position: relative;
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
`;
|
|
3774
|
-
var getBackgroundWithGradient = (imageUrl) => import_react12.css`
|
|
3775
|
-
background-image: linear-gradient(
|
|
3776
|
-
180deg,
|
|
3777
|
-
rgba(0, 0, 0, 0) 48.36%,
|
|
3778
|
-
rgba(0, 0, 0, 0.6) 76.64%
|
|
3779
|
-
),
|
|
3780
|
-
url(${imageUrl});
|
|
3781
|
-
background-size: cover;
|
|
3782
|
-
background-position: center;
|
|
3783
|
-
background-repeat: no-repeat;
|
|
3784
|
-
background-color: #fff;
|
|
3843
|
+
display: inline-block;
|
|
3844
|
+
width: 100%;
|
|
3785
3845
|
`;
|
|
3846
|
+
var textareaBase = import_react13.css`
|
|
3847
|
+
width: 100%;
|
|
3848
|
+
box-sizing: border-box;
|
|
3849
|
+
font: inherit;
|
|
3850
|
+
color: var(--text-primary);
|
|
3851
|
+
background-color: var(--surface-page);
|
|
3852
|
+
border: 1px solid var(--border-primary);
|
|
3853
|
+
border-radius: var(--radius-lg);
|
|
3854
|
+
padding: var(--spacing-4);
|
|
3855
|
+
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
3856
|
+
outline: none;
|
|
3857
|
+
resize: none;
|
|
3786
3858
|
|
|
3787
|
-
|
|
3788
|
-
var
|
|
3789
|
-
|
|
3790
|
-
backgroundImage,
|
|
3791
|
-
title,
|
|
3792
|
-
buttonLabel,
|
|
3793
|
-
onClick,
|
|
3794
|
-
className,
|
|
3795
|
-
...rest
|
|
3796
|
-
}) => {
|
|
3797
|
-
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3798
|
-
Box_default,
|
|
3799
|
-
{
|
|
3800
|
-
display: "flex",
|
|
3801
|
-
css: cardContainerStyles,
|
|
3802
|
-
className,
|
|
3803
|
-
...rest,
|
|
3804
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3805
|
-
Box_default,
|
|
3806
|
-
{
|
|
3807
|
-
display: "flex",
|
|
3808
|
-
flexDirection: "column",
|
|
3809
|
-
justifyContent: "flex-end",
|
|
3810
|
-
p: 6,
|
|
3811
|
-
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
3812
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
3813
|
-
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
3814
|
-
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
3815
|
-
] })
|
|
3816
|
-
}
|
|
3817
|
-
)
|
|
3818
|
-
}
|
|
3819
|
-
);
|
|
3820
|
-
};
|
|
3821
|
-
var FieldNoteCard_default = FieldNoteCard;
|
|
3859
|
+
&::placeholder {
|
|
3860
|
+
color: var(--text-secondary);
|
|
3861
|
+
}
|
|
3822
3862
|
|
|
3823
|
-
|
|
3824
|
-
var
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3863
|
+
&:focus {
|
|
3864
|
+
border-color: var(--border-focus);
|
|
3865
|
+
box-shadow: 0 0 0 3px var(--surface-success, rgba(50, 90, 60, 0.1));
|
|
3866
|
+
}
|
|
3867
|
+
|
|
3868
|
+
&:disabled {
|
|
3869
|
+
background-color: var(--surface-disabled-2);
|
|
3870
|
+
color: var(--text-on-disabled);
|
|
3871
|
+
cursor: not-allowed;
|
|
3872
|
+
}
|
|
3873
|
+
|
|
3874
|
+
&:read-only {
|
|
3875
|
+
background-color: var(--surface-disabled-2);
|
|
3876
|
+
color: var(--text-secondary);
|
|
3877
|
+
cursor: default;
|
|
3878
|
+
}
|
|
3838
3879
|
`;
|
|
3839
|
-
var
|
|
3840
|
-
color:
|
|
3841
|
-
|
|
3880
|
+
var variantError = import_react13.css`
|
|
3881
|
+
border-color: var(--border-error);
|
|
3882
|
+
&:focus {
|
|
3883
|
+
border-color: var(--border-error);
|
|
3884
|
+
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
3885
|
+
}
|
|
3842
3886
|
`;
|
|
3843
|
-
var
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3887
|
+
var variantSuccess = import_react13.css`
|
|
3888
|
+
border-color: var(--color-success-500);
|
|
3889
|
+
&:focus {
|
|
3890
|
+
border-color: var(--color-success-500);
|
|
3891
|
+
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
3892
|
+
}
|
|
3848
3893
|
`;
|
|
3849
|
-
var
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
color: ${colors.red["500"]};
|
|
3854
|
-
display: flex;
|
|
3855
|
-
align-items: center;
|
|
3856
|
-
gap: ${space["1"]};
|
|
3894
|
+
var submitButtonContainer = import_react13.css`
|
|
3895
|
+
position: absolute;
|
|
3896
|
+
right: var(--spacing-4);
|
|
3897
|
+
bottom: var(--spacing-4);
|
|
3857
3898
|
`;
|
|
3858
|
-
var
|
|
3859
|
-
|
|
3860
|
-
font-size: ${fontSizes.sm};
|
|
3861
|
-
line-height: ${lineHeights.tight};
|
|
3862
|
-
color: ${colors.accent.green};
|
|
3863
|
-
display: flex;
|
|
3864
|
-
align-items: center;
|
|
3865
|
-
gap: ${space["1"]};
|
|
3899
|
+
var textareaWithSubmit = import_react13.css`
|
|
3900
|
+
padding-right: var(--spacing-16);
|
|
3866
3901
|
`;
|
|
3867
|
-
|
|
3868
|
-
|
|
3902
|
+
|
|
3903
|
+
// src/Form/TextArea.tsx
|
|
3904
|
+
var import_jsx_runtime204 = require("@emotion/react/jsx-runtime");
|
|
3905
|
+
var TextArea = (0, import_react15.forwardRef)(
|
|
3906
|
+
({
|
|
3907
|
+
rows = 3,
|
|
3908
|
+
variant = "default",
|
|
3909
|
+
disabled = false,
|
|
3910
|
+
readOnly = false,
|
|
3911
|
+
className,
|
|
3912
|
+
autoExpand = true,
|
|
3913
|
+
maxHeight,
|
|
3914
|
+
resize = "none",
|
|
3915
|
+
value,
|
|
3916
|
+
onChange,
|
|
3917
|
+
onKeyDown: onKeyDownProp,
|
|
3918
|
+
showSubmit = false,
|
|
3919
|
+
onSubmit,
|
|
3920
|
+
submitAriaLabel = "Submit",
|
|
3921
|
+
submitDisabled,
|
|
3922
|
+
submitOnEnter = true,
|
|
3923
|
+
...props
|
|
3924
|
+
}, ref) => {
|
|
3925
|
+
const innerRef = (0, import_react15.useRef)(null);
|
|
3926
|
+
(0, import_react15.useEffect)(() => {
|
|
3927
|
+
const el = innerRef.current;
|
|
3928
|
+
if (!el || !autoExpand)
|
|
3929
|
+
return;
|
|
3930
|
+
if (value === "" || value === void 0 || value === null) {
|
|
3931
|
+
el.style.height = "";
|
|
3932
|
+
el.style.overflowY = maxHeight ? "auto" : "hidden";
|
|
3933
|
+
}
|
|
3934
|
+
}, [value, autoExpand, maxHeight]);
|
|
3935
|
+
const handleChange = (e) => {
|
|
3936
|
+
if (autoExpand && innerRef.current) {
|
|
3937
|
+
const el = innerRef.current;
|
|
3938
|
+
if (typeof maxHeight === "number") {
|
|
3939
|
+
el.style.maxHeight = `${maxHeight}px`;
|
|
3940
|
+
} else if (typeof maxHeight === "string") {
|
|
3941
|
+
el.style.maxHeight = maxHeight;
|
|
3942
|
+
}
|
|
3943
|
+
el.style.height = "auto";
|
|
3944
|
+
el.style.overflowY = maxHeight ? "auto" : "hidden";
|
|
3945
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
3946
|
+
}
|
|
3947
|
+
onChange == null ? void 0 : onChange(e);
|
|
3948
|
+
};
|
|
3949
|
+
const handleKeyDown = (e) => {
|
|
3950
|
+
onKeyDownProp == null ? void 0 : onKeyDownProp(e);
|
|
3951
|
+
if (e.defaultPrevented)
|
|
3952
|
+
return;
|
|
3953
|
+
const isEnter = e.key === "Enter";
|
|
3954
|
+
const hasModifier = e.shiftKey || e.altKey || e.ctrlKey || e.metaKey;
|
|
3955
|
+
const isComposing = e.nativeEvent.isComposing;
|
|
3956
|
+
const canSubmit = !disabled && !readOnly && !submitDisabled;
|
|
3957
|
+
if (submitOnEnter && showSubmit && onSubmit && isEnter && !hasModifier && !isComposing && canSubmit) {
|
|
3958
|
+
e.preventDefault();
|
|
3959
|
+
onSubmit();
|
|
3960
|
+
}
|
|
3961
|
+
};
|
|
3962
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsxs)("div", { css: wrapperStyles, children: [
|
|
3963
|
+
/* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
3964
|
+
"textarea",
|
|
3965
|
+
{
|
|
3966
|
+
ref: (node) => {
|
|
3967
|
+
innerRef.current = node;
|
|
3968
|
+
if (typeof ref === "function")
|
|
3969
|
+
ref(node);
|
|
3970
|
+
else if (ref)
|
|
3971
|
+
ref.current = node;
|
|
3972
|
+
},
|
|
3973
|
+
rows,
|
|
3974
|
+
disabled,
|
|
3975
|
+
readOnly,
|
|
3976
|
+
css: [
|
|
3977
|
+
textareaBase,
|
|
3978
|
+
variant === "error" && variantError,
|
|
3979
|
+
variant === "success" && variantSuccess,
|
|
3980
|
+
import_react14.css`
|
|
3981
|
+
resize: ${resize};
|
|
3982
|
+
`,
|
|
3983
|
+
showSubmit && textareaWithSubmit
|
|
3984
|
+
],
|
|
3985
|
+
className,
|
|
3986
|
+
value,
|
|
3987
|
+
onChange: handleChange,
|
|
3988
|
+
onKeyDown: handleKeyDown,
|
|
3989
|
+
"aria-multiline": "true",
|
|
3990
|
+
...props
|
|
3991
|
+
}
|
|
3992
|
+
),
|
|
3993
|
+
showSubmit && /* @__PURE__ */ (0, import_jsx_runtime204.jsx)("div", { css: submitButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
3994
|
+
Button_default,
|
|
3995
|
+
{
|
|
3996
|
+
size: "xs",
|
|
3997
|
+
"aria-label": submitAriaLabel,
|
|
3998
|
+
onClick: onSubmit,
|
|
3999
|
+
disabled: disabled || submitDisabled,
|
|
4000
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(
|
|
4001
|
+
Icon_default,
|
|
4002
|
+
{
|
|
4003
|
+
variant: "PaperPlane",
|
|
4004
|
+
size: 6,
|
|
4005
|
+
fill: "var(--color-base-white)"
|
|
4006
|
+
}
|
|
4007
|
+
)
|
|
4008
|
+
}
|
|
4009
|
+
) })
|
|
4010
|
+
] });
|
|
4011
|
+
}
|
|
4012
|
+
);
|
|
4013
|
+
TextArea.displayName = "TextArea";
|
|
4014
|
+
var TextArea_default = TextArea;
|
|
4015
|
+
|
|
4016
|
+
// src/MessageBubble/MessageBubble.styles.ts
|
|
4017
|
+
var import_react16 = require("@emotion/react");
|
|
4018
|
+
var getRootStyles = (variant) => import_react16.css`
|
|
4019
|
+
display: flex;
|
|
4020
|
+
flex-direction: column;
|
|
4021
|
+
gap: var(--spacing-1);
|
|
4022
|
+
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
4023
|
+
`;
|
|
4024
|
+
var getBubbleStyles = (variant) => import_react16.css`
|
|
4025
|
+
max-width: 100%;
|
|
4026
|
+
width: 100%;
|
|
4027
|
+
box-sizing: border-box;
|
|
4028
|
+
display: flex;
|
|
4029
|
+
gap: var(--spacing-3);
|
|
4030
|
+
align-items: center;
|
|
4031
|
+
justify-content: center;
|
|
4032
|
+
padding: var(--spacing-4);
|
|
4033
|
+
background-color: ${variant === "sent" ? "var(--color-neutral-900)" : "var(--surface-neutral)"};
|
|
4034
|
+
color: ${variant === "sent" ? "var(--color-base-white)" : "var(--text-primary)"};
|
|
4035
|
+
border: ${variant === "sent" ? "1px solid transparent" : "none"};
|
|
4036
|
+
border-top-left-radius: var(--radius-lg);
|
|
4037
|
+
border-top-right-radius: var(--radius-lg);
|
|
4038
|
+
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
4039
|
+
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
4040
|
+
`;
|
|
4041
|
+
var contentStyles = import_react16.css`
|
|
4042
|
+
flex: 1 1 auto;
|
|
4043
|
+
min-width: 1px;
|
|
4044
|
+
min-height: 1px;
|
|
4045
|
+
`;
|
|
4046
|
+
|
|
4047
|
+
// src/MessageBubble/MessageBubble.tsx
|
|
4048
|
+
var import_jsx_runtime205 = require("@emotion/react/jsx-runtime");
|
|
4049
|
+
var MessageBubble = ({
|
|
4050
|
+
variant = "sent",
|
|
4051
|
+
timestamp,
|
|
4052
|
+
className,
|
|
4053
|
+
children
|
|
4054
|
+
}) => {
|
|
4055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { className, css: getRootStyles(variant), children: [
|
|
4056
|
+
timestamp && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4057
|
+
Text_default,
|
|
4058
|
+
{
|
|
4059
|
+
size: "xs",
|
|
4060
|
+
color: "var(--text-secondary)",
|
|
4061
|
+
textAlign: variant === "sent" ? "right" : "left",
|
|
4062
|
+
children: timestamp
|
|
4063
|
+
}
|
|
4064
|
+
),
|
|
4065
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { css: getBubbleStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { css: contentStyles, children }) })
|
|
4066
|
+
] });
|
|
4067
|
+
};
|
|
4068
|
+
var MessageBubble_default = MessageBubble;
|
|
4069
|
+
|
|
4070
|
+
// src/Spinner/Spinner.styles.ts
|
|
4071
|
+
var import_react17 = require("@emotion/react");
|
|
4072
|
+
var spinnerStyles2 = import_react17.css`
|
|
4073
|
+
animation: lt-spin 1s linear infinite;
|
|
4074
|
+
|
|
4075
|
+
@keyframes lt-spin {
|
|
4076
|
+
from {
|
|
4077
|
+
transform: rotate(0deg);
|
|
4078
|
+
}
|
|
4079
|
+
to {
|
|
4080
|
+
transform: rotate(360deg);
|
|
4081
|
+
}
|
|
4082
|
+
}
|
|
4083
|
+
`;
|
|
4084
|
+
|
|
4085
|
+
// src/Spinner/Spinner.tsx
|
|
4086
|
+
var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
|
|
4087
|
+
var Spinner = ({ size = 5, className, fill }) => {
|
|
4088
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4089
|
+
Icon_default,
|
|
4090
|
+
{
|
|
4091
|
+
variant: "Spinner",
|
|
4092
|
+
size,
|
|
4093
|
+
className,
|
|
4094
|
+
css: spinnerStyles2,
|
|
4095
|
+
fill
|
|
4096
|
+
}
|
|
4097
|
+
);
|
|
4098
|
+
};
|
|
4099
|
+
var Spinner_default2 = Spinner;
|
|
4100
|
+
|
|
4101
|
+
// src/Widget/Widget.tsx
|
|
4102
|
+
var import_react19 = require("react");
|
|
4103
|
+
|
|
4104
|
+
// src/Widget/Widget.styles.ts
|
|
4105
|
+
var import_react18 = require("@emotion/react");
|
|
4106
|
+
var panelContainer = import_react18.css`
|
|
4107
|
+
position: absolute;
|
|
4108
|
+
right: 0;
|
|
4109
|
+
bottom: 0;
|
|
4110
|
+
z-index: 1;
|
|
4111
|
+
|
|
4112
|
+
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
4113
|
+
position: fixed;
|
|
4114
|
+
inset: 0;
|
|
4115
|
+
right: 0;
|
|
4116
|
+
bottom: 0;
|
|
4117
|
+
display: flex;
|
|
4118
|
+
align-items: stretch;
|
|
4119
|
+
justify-content: stretch;
|
|
4120
|
+
}
|
|
4121
|
+
`;
|
|
4122
|
+
var panelCard = (width2) => import_react18.css`
|
|
4123
|
+
background: var(--surface-page);
|
|
4124
|
+
color: var(--text-primary);
|
|
4125
|
+
border: 1px solid var(--border-primary);
|
|
4126
|
+
border-radius: var(--radius-lg);
|
|
4127
|
+
padding: var(--spacing-4);
|
|
4128
|
+
overflow: auto;
|
|
4129
|
+
box-shadow: 0 0 var(--shadow-blur-lg, 24px) var(--shadow-spread-xs, -4px)
|
|
4130
|
+
rgba(17, 17, 17, 0.1);
|
|
4131
|
+
|
|
4132
|
+
/* Width passed from props (desktop/tablet) */
|
|
4133
|
+
width: ${typeof width2 === "number" ? `${width2}px` : width2};
|
|
4134
|
+
|
|
4135
|
+
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
4136
|
+
width: 100vw;
|
|
4137
|
+
height: 100vh;
|
|
4138
|
+
border-radius: 0;
|
|
4139
|
+
padding: var(--spacing-4);
|
|
4140
|
+
overflow: auto;
|
|
4141
|
+
}
|
|
4142
|
+
`;
|
|
4143
|
+
var widgetTrigger = import_react18.css`
|
|
4144
|
+
margin: var(--spacing-1);
|
|
4145
|
+
box-shadow: var(--shadow-2xl);
|
|
4146
|
+
`;
|
|
4147
|
+
|
|
4148
|
+
// src/Widget/Widget.tsx
|
|
4149
|
+
var import_jsx_runtime207 = require("@emotion/react/jsx-runtime");
|
|
4150
|
+
var WidgetContext = (0, import_react19.createContext)(null);
|
|
4151
|
+
var useWidgetContext = () => {
|
|
4152
|
+
const ctx = (0, import_react19.useContext)(WidgetContext);
|
|
4153
|
+
if (!ctx)
|
|
4154
|
+
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
4155
|
+
return ctx;
|
|
4156
|
+
};
|
|
4157
|
+
var WidgetTrigger = () => {
|
|
4158
|
+
const { expanded, toggle, triggerRef, icon, expandedIcon } = useWidgetContext();
|
|
4159
|
+
const currentIcon = expanded ? expandedIcon : icon;
|
|
4160
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(import_jsx_runtime207.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4161
|
+
Button_default,
|
|
4162
|
+
{
|
|
4163
|
+
ref: triggerRef,
|
|
4164
|
+
"aria-expanded": expanded,
|
|
4165
|
+
"aria-haspopup": "dialog",
|
|
4166
|
+
onClick: toggle,
|
|
4167
|
+
size: "lg",
|
|
4168
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Icon_default, { variant: currentIcon, size: 12 }),
|
|
4169
|
+
css: widgetTrigger
|
|
4170
|
+
}
|
|
4171
|
+
) });
|
|
4172
|
+
};
|
|
4173
|
+
var WidgetPanel = ({ className, style, children }) => {
|
|
4174
|
+
var _a;
|
|
4175
|
+
const { expanded, panelWidth } = useWidgetContext();
|
|
4176
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4177
|
+
"div",
|
|
4178
|
+
{
|
|
4179
|
+
css: panelContainer,
|
|
4180
|
+
className,
|
|
4181
|
+
style: {
|
|
4182
|
+
...style,
|
|
4183
|
+
display: expanded ? (_a = style == null ? void 0 : style.display) != null ? _a : void 0 : "none"
|
|
4184
|
+
},
|
|
4185
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4186
|
+
Box_default,
|
|
4187
|
+
{
|
|
4188
|
+
css: panelCard(panelWidth),
|
|
4189
|
+
role: "dialog",
|
|
4190
|
+
"aria-modal": expanded ? true : false,
|
|
4191
|
+
"aria-hidden": !expanded,
|
|
4192
|
+
children
|
|
4193
|
+
}
|
|
4194
|
+
)
|
|
4195
|
+
}
|
|
4196
|
+
);
|
|
4197
|
+
};
|
|
4198
|
+
var WidgetRoot = ({
|
|
4199
|
+
ariaLabel,
|
|
4200
|
+
icon = "Plus",
|
|
4201
|
+
expandedIcon = "Xmark",
|
|
4202
|
+
defaultExpanded = false,
|
|
4203
|
+
expanded,
|
|
4204
|
+
onExpandedChange,
|
|
4205
|
+
panelWidth,
|
|
4206
|
+
className,
|
|
4207
|
+
children,
|
|
4208
|
+
containerProps
|
|
4209
|
+
}) => {
|
|
4210
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react19.useState)(defaultExpanded);
|
|
4211
|
+
const isControlled = typeof expanded === "boolean";
|
|
4212
|
+
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4213
|
+
const triggerRef = (0, import_react19.useRef)(null);
|
|
4214
|
+
const containerRef = (0, import_react19.useRef)(null);
|
|
4215
|
+
const setExpanded = (0, import_react19.useCallback)(
|
|
4216
|
+
(next) => {
|
|
4217
|
+
if (!isControlled)
|
|
4218
|
+
setInternalExpanded(next);
|
|
4219
|
+
onExpandedChange == null ? void 0 : onExpandedChange(next);
|
|
4220
|
+
if (!next) {
|
|
4221
|
+
setTimeout(() => {
|
|
4222
|
+
var _a;
|
|
4223
|
+
return (_a = triggerRef.current) == null ? void 0 : _a.focus();
|
|
4224
|
+
}, 0);
|
|
4225
|
+
}
|
|
4226
|
+
},
|
|
4227
|
+
[isControlled, onExpandedChange]
|
|
4228
|
+
);
|
|
4229
|
+
const toggle = (0, import_react19.useCallback)(
|
|
4230
|
+
() => setExpanded(!isExpanded),
|
|
4231
|
+
[isExpanded, setExpanded]
|
|
4232
|
+
);
|
|
4233
|
+
(0, import_react19.useEffect)(() => {
|
|
4234
|
+
if (!isExpanded)
|
|
4235
|
+
return;
|
|
4236
|
+
const onDocClick = (e) => {
|
|
4237
|
+
const target = e.target;
|
|
4238
|
+
if (!containerRef.current)
|
|
4239
|
+
return;
|
|
4240
|
+
if (!containerRef.current.contains(target)) {
|
|
4241
|
+
setExpanded(false);
|
|
4242
|
+
}
|
|
4243
|
+
};
|
|
4244
|
+
document.addEventListener("mousedown", onDocClick);
|
|
4245
|
+
return () => document.removeEventListener("mousedown", onDocClick);
|
|
4246
|
+
}, [isExpanded, setExpanded]);
|
|
4247
|
+
(0, import_react19.useEffect)(() => {
|
|
4248
|
+
if (!isExpanded)
|
|
4249
|
+
return;
|
|
4250
|
+
const onKey = (e) => {
|
|
4251
|
+
if (e.key === "Escape")
|
|
4252
|
+
setExpanded(false);
|
|
4253
|
+
};
|
|
4254
|
+
document.addEventListener("keydown", onKey);
|
|
4255
|
+
return () => document.removeEventListener("keydown", onKey);
|
|
4256
|
+
}, [isExpanded, setExpanded]);
|
|
4257
|
+
const value = (0, import_react19.useMemo)(
|
|
4258
|
+
() => ({
|
|
4259
|
+
expanded: isExpanded,
|
|
4260
|
+
toggle,
|
|
4261
|
+
triggerRef,
|
|
4262
|
+
icon,
|
|
4263
|
+
expandedIcon,
|
|
4264
|
+
panelWidth: panelWidth != null ? panelWidth : 480
|
|
4265
|
+
}),
|
|
4266
|
+
[expandedIcon, icon, isExpanded, panelWidth, toggle]
|
|
4267
|
+
);
|
|
4268
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4269
|
+
Box_default,
|
|
4270
|
+
{
|
|
4271
|
+
ref: containerRef,
|
|
4272
|
+
className,
|
|
4273
|
+
"aria-label": ariaLabel,
|
|
4274
|
+
position: "fixed",
|
|
4275
|
+
right: "var(--spacing-6)",
|
|
4276
|
+
bottom: "var(--spacing-6)",
|
|
4277
|
+
zIndex: 100,
|
|
4278
|
+
...containerProps,
|
|
4279
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(WidgetContext.Provider, { value, children })
|
|
4280
|
+
}
|
|
4281
|
+
);
|
|
4282
|
+
};
|
|
4283
|
+
var Widget = Object.assign(WidgetRoot, {
|
|
4284
|
+
Trigger: WidgetTrigger,
|
|
4285
|
+
Panel: WidgetPanel
|
|
4286
|
+
});
|
|
4287
|
+
var Widget_default = Widget;
|
|
4288
|
+
|
|
4289
|
+
// src/ChatWidget/ChatWidget.styles.ts
|
|
4290
|
+
var import_react20 = require("@emotion/react");
|
|
4291
|
+
var sentWrapperStyles = import_react20.css`
|
|
4292
|
+
align-self: flex-end;
|
|
4293
|
+
max-width: 90%;
|
|
4294
|
+
width: 100%;
|
|
4295
|
+
min-width: 0;
|
|
4296
|
+
overflow-wrap: anywhere;
|
|
4297
|
+
padding-top: var(--spacing-4);
|
|
4298
|
+
`;
|
|
4299
|
+
var receivedWrapperStyles = import_react20.css`
|
|
4300
|
+
align-self: flex-start;
|
|
4301
|
+
width: 100%;
|
|
4302
|
+
min-width: 0;
|
|
4303
|
+
overflow-wrap: anywhere;
|
|
4304
|
+
padding-top: var(--spacing-4);
|
|
4305
|
+
`;
|
|
4306
|
+
var containerStyles = import_react20.css`
|
|
4307
|
+
display: flex;
|
|
4308
|
+
flex-direction: column;
|
|
4309
|
+
min-height: 0;
|
|
4310
|
+
height: 765px;
|
|
4311
|
+
|
|
4312
|
+
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
4313
|
+
height: 100%;
|
|
4314
|
+
}
|
|
4315
|
+
`;
|
|
4316
|
+
var thinkingRowStyles = import_react20.css`
|
|
4317
|
+
display: flex;
|
|
4318
|
+
align-items: center;
|
|
4319
|
+
gap: var(--spacing-2);
|
|
4320
|
+
color: var(--text-primary);
|
|
4321
|
+
`;
|
|
4322
|
+
var thinkingTextStyles = import_react20.css`
|
|
4323
|
+
animation: ltchat-pulse 1.6s ease-in-out infinite;
|
|
4324
|
+
|
|
4325
|
+
@keyframes ltchat-pulse {
|
|
4326
|
+
0%,
|
|
4327
|
+
100% {
|
|
4328
|
+
opacity: 0.6;
|
|
4329
|
+
}
|
|
4330
|
+
50% {
|
|
4331
|
+
opacity: 1;
|
|
4332
|
+
}
|
|
4333
|
+
}
|
|
4334
|
+
`;
|
|
4335
|
+
var badge = import_react20.css`
|
|
4336
|
+
width: var(--spacing-11);
|
|
4337
|
+
height: var(--spacing-11);
|
|
4338
|
+
border-radius: var(--radius-round);
|
|
4339
|
+
display: inline-flex;
|
|
4340
|
+
align-items: center;
|
|
4341
|
+
justify-content: center;
|
|
4342
|
+
background-color: var(--color-primary-500);
|
|
4343
|
+
color: var(--color-base-white);
|
|
4344
|
+
`;
|
|
4345
|
+
var closeButtonContent = import_react20.css`
|
|
4346
|
+
display: inline-flex;
|
|
4347
|
+
align-items: center;
|
|
4348
|
+
gap: var(--spacing-2);
|
|
4349
|
+
`;
|
|
4350
|
+
|
|
4351
|
+
// src/ChatWidget/ChatWidget.tsx
|
|
4352
|
+
var import_jsx_runtime208 = require("@emotion/react/jsx-runtime");
|
|
4353
|
+
var DEFAULT_EMPTY_STATE = [
|
|
4354
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4355
|
+
AIResponse_default,
|
|
4356
|
+
{
|
|
4357
|
+
showDisclaimer: false,
|
|
4358
|
+
showHelpfulQuestion: false,
|
|
4359
|
+
title: "Have a question?",
|
|
4360
|
+
children: "I can answer questions about this package\u2014species, seasons, rules, access, and more. What would you like to know?"
|
|
4361
|
+
},
|
|
4362
|
+
"default-empty"
|
|
4363
|
+
)
|
|
4364
|
+
];
|
|
4365
|
+
var ChatWidget = ({
|
|
4366
|
+
title,
|
|
4367
|
+
messages,
|
|
4368
|
+
onSubmit,
|
|
4369
|
+
placeholder = "Type your question",
|
|
4370
|
+
disabled = false,
|
|
4371
|
+
className,
|
|
4372
|
+
ariaLabel = "Open Chat",
|
|
4373
|
+
panelWidth = 480,
|
|
4374
|
+
expanded,
|
|
4375
|
+
defaultExpanded = false,
|
|
4376
|
+
onExpandedChange,
|
|
4377
|
+
isThinking = false,
|
|
4378
|
+
emptyState = DEFAULT_EMPTY_STATE,
|
|
4379
|
+
containerProps
|
|
4380
|
+
}) => {
|
|
4381
|
+
const [value, setValue] = (0, import_react21.useState)("");
|
|
4382
|
+
const scrollRef = (0, import_react21.useRef)(null);
|
|
4383
|
+
const isControlled = typeof expanded === "boolean";
|
|
4384
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react21.useState)(defaultExpanded);
|
|
4385
|
+
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4386
|
+
const setExpanded = (0, import_react21.useCallback)(
|
|
4387
|
+
(next) => {
|
|
4388
|
+
if (!isControlled)
|
|
4389
|
+
setInternalExpanded(next);
|
|
4390
|
+
onExpandedChange == null ? void 0 : onExpandedChange(next);
|
|
4391
|
+
},
|
|
4392
|
+
[isControlled, onExpandedChange]
|
|
4393
|
+
);
|
|
4394
|
+
(0, import_react21.useEffect)(() => {
|
|
4395
|
+
const el = scrollRef.current;
|
|
4396
|
+
if (!el)
|
|
4397
|
+
return;
|
|
4398
|
+
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
4399
|
+
}, [messages, isThinking]);
|
|
4400
|
+
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
4401
|
+
const renderedMessages = (0, import_react21.useMemo)(
|
|
4402
|
+
() => messagesToRender.map((element, index) => {
|
|
4403
|
+
var _a;
|
|
4404
|
+
const key = (_a = element.key) != null ? _a : index;
|
|
4405
|
+
if (element.type === AIResponse_default) {
|
|
4406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { css: receivedWrapperStyles, children: element }, key);
|
|
4407
|
+
}
|
|
4408
|
+
if (element.type === MessageBubble_default) {
|
|
4409
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
4410
|
+
}
|
|
4411
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(import_react21.default.Fragment, { children: element }, key);
|
|
4412
|
+
}),
|
|
4413
|
+
[messagesToRender]
|
|
4414
|
+
);
|
|
4415
|
+
const handleSubmit = () => {
|
|
4416
|
+
const trimmed = value.trim();
|
|
4417
|
+
if (!trimmed)
|
|
4418
|
+
return;
|
|
4419
|
+
onSubmit(trimmed);
|
|
4420
|
+
setValue("");
|
|
4421
|
+
};
|
|
4422
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
|
|
4423
|
+
Widget_default,
|
|
4424
|
+
{
|
|
4425
|
+
ariaLabel,
|
|
4426
|
+
icon: "ConversationalSearchAi",
|
|
4427
|
+
expanded: isExpanded,
|
|
4428
|
+
onExpandedChange: setExpanded,
|
|
4429
|
+
panelWidth,
|
|
4430
|
+
className,
|
|
4431
|
+
containerProps,
|
|
4432
|
+
children: [
|
|
4433
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Widget_default.Trigger, {}),
|
|
4434
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Widget_default.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(Box_default, { css: containerStyles, children: [
|
|
4435
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(Box_default, { position: "sticky", top: 0, zIndex: 1, children: [
|
|
4436
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
|
|
4437
|
+
Box_default,
|
|
4438
|
+
{
|
|
4439
|
+
display: "flex",
|
|
4440
|
+
alignItems: "center",
|
|
4441
|
+
justifyContent: "space-between",
|
|
4442
|
+
gap: "var(--spacing-4)",
|
|
4443
|
+
children: [
|
|
4444
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
|
|
4445
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: 6 }) }),
|
|
4446
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4447
|
+
Heading_default,
|
|
4448
|
+
{
|
|
4449
|
+
size: "2xs",
|
|
4450
|
+
fontWeight: "bold",
|
|
4451
|
+
color: "var(--text-primary)",
|
|
4452
|
+
children: title
|
|
4453
|
+
}
|
|
4454
|
+
)
|
|
4455
|
+
] }),
|
|
4456
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4457
|
+
Button_default,
|
|
4458
|
+
{
|
|
4459
|
+
variant: "text",
|
|
4460
|
+
size: "xs",
|
|
4461
|
+
"aria-label": "Close widget",
|
|
4462
|
+
onClick: () => setExpanded(false),
|
|
4463
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)("span", { css: closeButtonContent, children: [
|
|
4464
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: "Xmark", size: 5 }),
|
|
4465
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)("span", { children: "Close" })
|
|
4466
|
+
] })
|
|
4467
|
+
}
|
|
4468
|
+
)
|
|
4469
|
+
]
|
|
4470
|
+
}
|
|
4471
|
+
),
|
|
4472
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
4473
|
+
] }),
|
|
4474
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
|
|
4475
|
+
Box_default,
|
|
4476
|
+
{
|
|
4477
|
+
ref: scrollRef,
|
|
4478
|
+
flex: "1 1 auto",
|
|
4479
|
+
minHeight: 0,
|
|
4480
|
+
overflowY: "auto",
|
|
4481
|
+
p: 0,
|
|
4482
|
+
pb: 4,
|
|
4483
|
+
display: "flex",
|
|
4484
|
+
flexDirection: "column",
|
|
4485
|
+
gap: "var(--spacing-2)",
|
|
4486
|
+
children: [
|
|
4487
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
4488
|
+
isThinking && /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
4489
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Spinner_default2, { size: 5 }),
|
|
4490
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)("span", { css: thinkingTextStyles, children: "Thinking..." })
|
|
4491
|
+
] }) })
|
|
4492
|
+
]
|
|
4493
|
+
}
|
|
4494
|
+
),
|
|
4495
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { position: "sticky", bottom: 0, zIndex: 1, p: 0, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4496
|
+
TextArea_default,
|
|
4497
|
+
{
|
|
4498
|
+
rows: 3,
|
|
4499
|
+
value,
|
|
4500
|
+
maxHeight: 250,
|
|
4501
|
+
autoExpand: true,
|
|
4502
|
+
onChange: (e) => setValue(e.target.value),
|
|
4503
|
+
showSubmit: true,
|
|
4504
|
+
onSubmit: handleSubmit,
|
|
4505
|
+
disabled,
|
|
4506
|
+
submitDisabled: !value.trim() || isThinking,
|
|
4507
|
+
placeholder
|
|
4508
|
+
}
|
|
4509
|
+
) })
|
|
4510
|
+
] }) })
|
|
4511
|
+
]
|
|
4512
|
+
}
|
|
4513
|
+
);
|
|
4514
|
+
};
|
|
4515
|
+
var ChatWidget_default = ChatWidget;
|
|
4516
|
+
|
|
4517
|
+
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
4518
|
+
var import_react22 = require("@emotion/react");
|
|
4519
|
+
var cardContainerStyles = import_react22.css`
|
|
4520
|
+
position: relative;
|
|
4521
|
+
height: 335px;
|
|
4522
|
+
|
|
4523
|
+
${media.md} {
|
|
4524
|
+
height: 480px;
|
|
4525
|
+
}
|
|
4526
|
+
`;
|
|
4527
|
+
var cardContentStyles = import_react22.css`
|
|
4528
|
+
position: relative;
|
|
4529
|
+
border-radius: var(--spacing-4);
|
|
4530
|
+
overflow: hidden;
|
|
4531
|
+
`;
|
|
4532
|
+
var getBackgroundWithGradient = (imageUrl) => import_react22.css`
|
|
4533
|
+
background-image: linear-gradient(
|
|
4534
|
+
180deg,
|
|
4535
|
+
rgba(0, 0, 0, 0) 48.36%,
|
|
4536
|
+
rgba(0, 0, 0, 0.6) 76.64%
|
|
4537
|
+
),
|
|
4538
|
+
url(${imageUrl});
|
|
4539
|
+
background-size: cover;
|
|
4540
|
+
background-position: center;
|
|
4541
|
+
background-repeat: no-repeat;
|
|
4542
|
+
background-color: #fff;
|
|
4543
|
+
`;
|
|
4544
|
+
|
|
4545
|
+
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
4546
|
+
var import_jsx_runtime209 = require("@emotion/react/jsx-runtime");
|
|
4547
|
+
var FieldNoteCard = ({
|
|
4548
|
+
backgroundImage,
|
|
4549
|
+
title,
|
|
4550
|
+
buttonLabel,
|
|
4551
|
+
onClick,
|
|
4552
|
+
className,
|
|
4553
|
+
...rest
|
|
4554
|
+
}) => {
|
|
4555
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4556
|
+
Box_default,
|
|
4557
|
+
{
|
|
4558
|
+
display: "flex",
|
|
4559
|
+
css: cardContainerStyles,
|
|
4560
|
+
className,
|
|
4561
|
+
...rest,
|
|
4562
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4563
|
+
Box_default,
|
|
4564
|
+
{
|
|
4565
|
+
display: "flex",
|
|
4566
|
+
flexDirection: "column",
|
|
4567
|
+
justifyContent: "flex-end",
|
|
4568
|
+
p: 6,
|
|
4569
|
+
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
4570
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
4571
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
4572
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
4573
|
+
] })
|
|
4574
|
+
}
|
|
4575
|
+
)
|
|
4576
|
+
}
|
|
4577
|
+
);
|
|
4578
|
+
};
|
|
4579
|
+
var FieldNoteCard_default = FieldNoteCard;
|
|
4580
|
+
|
|
4581
|
+
// src/Form/FormField.tsx
|
|
4582
|
+
var import_react23 = require("@emotion/react");
|
|
4583
|
+
var import_jsx_runtime210 = require("@emotion/react/jsx-runtime");
|
|
4584
|
+
var fieldContainerStyles = import_react23.css`
|
|
4585
|
+
display: flex;
|
|
4586
|
+
flex-direction: column;
|
|
4587
|
+
gap: ${space["2"]};
|
|
4588
|
+
`;
|
|
4589
|
+
var labelStyles2 = import_react23.css`
|
|
4590
|
+
font-family: ${fonts.base};
|
|
4591
|
+
font-size: ${fontSizes.sm};
|
|
4592
|
+
font-weight: ${fontWeights.medium};
|
|
4593
|
+
line-height: ${lineHeights.tight};
|
|
4594
|
+
color: ${colors.gray["900"]};
|
|
4595
|
+
margin-bottom: ${space["1"]};
|
|
4596
|
+
`;
|
|
4597
|
+
var requiredIndicatorStyles = import_react23.css`
|
|
4598
|
+
color: ${colors.red["500"]};
|
|
4599
|
+
margin-left: ${space["1"]};
|
|
4600
|
+
`;
|
|
4601
|
+
var helpTextStyles = import_react23.css`
|
|
4602
|
+
font-family: ${fonts.base};
|
|
4603
|
+
font-size: ${fontSizes.sm};
|
|
4604
|
+
line-height: ${lineHeights.tight};
|
|
4605
|
+
color: ${colors.gray["600"]};
|
|
4606
|
+
`;
|
|
4607
|
+
var errorTextStyles = import_react23.css`
|
|
4608
|
+
font-family: ${fonts.base};
|
|
4609
|
+
font-size: ${fontSizes.sm};
|
|
4610
|
+
line-height: ${lineHeights.tight};
|
|
4611
|
+
color: ${colors.red["500"]};
|
|
4612
|
+
display: flex;
|
|
4613
|
+
align-items: center;
|
|
4614
|
+
gap: ${space["1"]};
|
|
4615
|
+
`;
|
|
4616
|
+
var successTextStyles = import_react23.css`
|
|
4617
|
+
font-family: ${fonts.base};
|
|
4618
|
+
font-size: ${fontSizes.sm};
|
|
4619
|
+
line-height: ${lineHeights.tight};
|
|
4620
|
+
color: ${colors.accent.green};
|
|
4621
|
+
display: flex;
|
|
4622
|
+
align-items: center;
|
|
4623
|
+
gap: ${space["1"]};
|
|
4624
|
+
`;
|
|
4625
|
+
var visuallyHiddenStyles = import_react23.css`
|
|
4626
|
+
position: absolute;
|
|
3869
4627
|
width: 1px;
|
|
3870
4628
|
height: 1px;
|
|
3871
4629
|
padding: 0;
|
|
@@ -3889,21 +4647,21 @@ var FormField = ({
|
|
|
3889
4647
|
const hasError = !!error;
|
|
3890
4648
|
const hasSuccess = !!success && !hasError;
|
|
3891
4649
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
3892
|
-
return /* @__PURE__ */ (0,
|
|
3893
|
-
label && /* @__PURE__ */ (0,
|
|
4650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
4651
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
|
|
3894
4652
|
"label",
|
|
3895
4653
|
{
|
|
3896
4654
|
htmlFor,
|
|
3897
4655
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
3898
4656
|
children: [
|
|
3899
4657
|
label,
|
|
3900
|
-
required && /* @__PURE__ */ (0,
|
|
4658
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
3901
4659
|
]
|
|
3902
4660
|
}
|
|
3903
4661
|
),
|
|
3904
4662
|
children,
|
|
3905
|
-
hasError && /* @__PURE__ */ (0,
|
|
3906
|
-
/* @__PURE__ */ (0,
|
|
4663
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
4664
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
3907
4665
|
"path",
|
|
3908
4666
|
{
|
|
3909
4667
|
fillRule: "evenodd",
|
|
@@ -3913,8 +4671,8 @@ var FormField = ({
|
|
|
3913
4671
|
) }),
|
|
3914
4672
|
error
|
|
3915
4673
|
] }),
|
|
3916
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
3917
|
-
/* @__PURE__ */ (0,
|
|
4674
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { css: successTextStyles, children: [
|
|
4675
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
3918
4676
|
"path",
|
|
3919
4677
|
{
|
|
3920
4678
|
fillRule: "evenodd",
|
|
@@ -3924,15 +4682,15 @@ var FormField = ({
|
|
|
3924
4682
|
) }),
|
|
3925
4683
|
success
|
|
3926
4684
|
] }),
|
|
3927
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
4685
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
3928
4686
|
] });
|
|
3929
4687
|
};
|
|
3930
4688
|
|
|
3931
4689
|
// src/Form/Input.tsx
|
|
3932
|
-
var
|
|
3933
|
-
var
|
|
3934
|
-
var
|
|
3935
|
-
var inputStyles =
|
|
4690
|
+
var import_react24 = require("@emotion/react");
|
|
4691
|
+
var import_react25 = require("react");
|
|
4692
|
+
var import_jsx_runtime211 = require("@emotion/react/jsx-runtime");
|
|
4693
|
+
var inputStyles = import_react24.css`
|
|
3936
4694
|
position: relative;
|
|
3937
4695
|
width: 100%;
|
|
3938
4696
|
font-family: ${fonts.base};
|
|
@@ -3969,19 +4727,19 @@ var inputStyles = import_react14.css`
|
|
|
3969
4727
|
}
|
|
3970
4728
|
`;
|
|
3971
4729
|
var sizeStyles = {
|
|
3972
|
-
sm:
|
|
4730
|
+
sm: import_react24.css`
|
|
3973
4731
|
padding: ${space["2"]} ${space["3"]};
|
|
3974
4732
|
font-size: ${fontSizes.sm};
|
|
3975
4733
|
line-height: ${lineHeights.tight};
|
|
3976
4734
|
height: ${space["8"]};
|
|
3977
4735
|
`,
|
|
3978
|
-
md:
|
|
4736
|
+
md: import_react24.css`
|
|
3979
4737
|
padding: ${space["3"]} ${space["4"]};
|
|
3980
4738
|
font-size: ${fontSizes.base};
|
|
3981
4739
|
line-height: ${lineHeights.normal};
|
|
3982
4740
|
height: ${space["10"]};
|
|
3983
4741
|
`,
|
|
3984
|
-
lg:
|
|
4742
|
+
lg: import_react24.css`
|
|
3985
4743
|
padding: ${space["4"]} ${space["5"]};
|
|
3986
4744
|
font-size: ${fontSizes.lg};
|
|
3987
4745
|
line-height: ${lineHeights.normal};
|
|
@@ -3989,8 +4747,8 @@ var sizeStyles = {
|
|
|
3989
4747
|
`
|
|
3990
4748
|
};
|
|
3991
4749
|
var variantStyles = {
|
|
3992
|
-
default:
|
|
3993
|
-
error:
|
|
4750
|
+
default: import_react24.css``,
|
|
4751
|
+
error: import_react24.css`
|
|
3994
4752
|
border-color: ${colors.red["500"]};
|
|
3995
4753
|
|
|
3996
4754
|
&:focus {
|
|
@@ -3998,7 +4756,7 @@ var variantStyles = {
|
|
|
3998
4756
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
3999
4757
|
}
|
|
4000
4758
|
`,
|
|
4001
|
-
success:
|
|
4759
|
+
success: import_react24.css`
|
|
4002
4760
|
border-color: ${colors.accent.green};
|
|
4003
4761
|
|
|
4004
4762
|
&:focus {
|
|
@@ -4007,7 +4765,7 @@ var variantStyles = {
|
|
|
4007
4765
|
}
|
|
4008
4766
|
`
|
|
4009
4767
|
};
|
|
4010
|
-
var inputWithIconStyles =
|
|
4768
|
+
var inputWithIconStyles = import_react24.css`
|
|
4011
4769
|
padding-left: ${space["10"]};
|
|
4012
4770
|
|
|
4013
4771
|
&.has-end-icon {
|
|
@@ -4018,7 +4776,7 @@ var inputWithIconStyles = import_react14.css`
|
|
|
4018
4776
|
padding-left: ${space["10"]};
|
|
4019
4777
|
}
|
|
4020
4778
|
`;
|
|
4021
|
-
var iconContainerStyles =
|
|
4779
|
+
var iconContainerStyles = import_react24.css`
|
|
4022
4780
|
position: absolute;
|
|
4023
4781
|
top: 50%;
|
|
4024
4782
|
transform: translateY(-50%);
|
|
@@ -4029,20 +4787,20 @@ var iconContainerStyles = import_react14.css`
|
|
|
4029
4787
|
pointer-events: none;
|
|
4030
4788
|
z-index: 1;
|
|
4031
4789
|
`;
|
|
4032
|
-
var startIconStyles =
|
|
4790
|
+
var startIconStyles = import_react24.css`
|
|
4033
4791
|
${iconContainerStyles}
|
|
4034
4792
|
left: ${space["3"]};
|
|
4035
4793
|
`;
|
|
4036
|
-
var endIconStyles =
|
|
4794
|
+
var endIconStyles = import_react24.css`
|
|
4037
4795
|
${iconContainerStyles}
|
|
4038
4796
|
right: ${space["3"]};
|
|
4039
4797
|
`;
|
|
4040
|
-
var inputWrapperStyles =
|
|
4798
|
+
var inputWrapperStyles = import_react24.css`
|
|
4041
4799
|
position: relative;
|
|
4042
4800
|
display: inline-block;
|
|
4043
4801
|
width: 100%;
|
|
4044
4802
|
`;
|
|
4045
|
-
var Input = (0,
|
|
4803
|
+
var Input = (0, import_react25.forwardRef)(
|
|
4046
4804
|
({
|
|
4047
4805
|
size = "md",
|
|
4048
4806
|
variant = "default",
|
|
@@ -4061,9 +4819,9 @@ var Input = (0, import_react15.forwardRef)(
|
|
|
4061
4819
|
hasEndIcon && "has-end-icon",
|
|
4062
4820
|
className
|
|
4063
4821
|
].filter(Boolean).join(" ");
|
|
4064
|
-
return /* @__PURE__ */ (0,
|
|
4065
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
4066
|
-
/* @__PURE__ */ (0,
|
|
4822
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
4823
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
4824
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
4067
4825
|
"input",
|
|
4068
4826
|
{
|
|
4069
4827
|
ref,
|
|
@@ -4080,17 +4838,17 @@ var Input = (0, import_react15.forwardRef)(
|
|
|
4080
4838
|
...props
|
|
4081
4839
|
}
|
|
4082
4840
|
),
|
|
4083
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
4841
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
4084
4842
|
] });
|
|
4085
4843
|
}
|
|
4086
4844
|
);
|
|
4087
4845
|
Input.displayName = "Input";
|
|
4088
4846
|
|
|
4089
4847
|
// src/Form/Select.tsx
|
|
4090
|
-
var
|
|
4091
|
-
var
|
|
4092
|
-
var
|
|
4093
|
-
var selectStyles =
|
|
4848
|
+
var import_react26 = require("@emotion/react");
|
|
4849
|
+
var import_react27 = require("react");
|
|
4850
|
+
var import_jsx_runtime212 = require("@emotion/react/jsx-runtime");
|
|
4851
|
+
var selectStyles = import_react26.css`
|
|
4094
4852
|
position: relative;
|
|
4095
4853
|
width: 100%;
|
|
4096
4854
|
font-family: ${fonts.base};
|
|
@@ -4129,19 +4887,19 @@ var selectStyles = import_react16.css`
|
|
|
4129
4887
|
}
|
|
4130
4888
|
`;
|
|
4131
4889
|
var sizeStyles2 = {
|
|
4132
|
-
sm:
|
|
4890
|
+
sm: import_react26.css`
|
|
4133
4891
|
padding: ${space["2"]} ${space["3"]};
|
|
4134
4892
|
font-size: ${fontSizes.sm};
|
|
4135
4893
|
line-height: ${lineHeights.tight};
|
|
4136
4894
|
height: ${space["8"]};
|
|
4137
4895
|
`,
|
|
4138
|
-
md:
|
|
4896
|
+
md: import_react26.css`
|
|
4139
4897
|
padding: ${space["3"]} ${space["4"]};
|
|
4140
4898
|
font-size: ${fontSizes.base};
|
|
4141
4899
|
line-height: ${lineHeights.normal};
|
|
4142
4900
|
height: ${space["10"]};
|
|
4143
4901
|
`,
|
|
4144
|
-
lg:
|
|
4902
|
+
lg: import_react26.css`
|
|
4145
4903
|
padding: ${space["4"]} ${space["5"]};
|
|
4146
4904
|
font-size: ${fontSizes.lg};
|
|
4147
4905
|
line-height: ${lineHeights.normal};
|
|
@@ -4149,8 +4907,8 @@ var sizeStyles2 = {
|
|
|
4149
4907
|
`
|
|
4150
4908
|
};
|
|
4151
4909
|
var variantStyles2 = {
|
|
4152
|
-
default:
|
|
4153
|
-
error:
|
|
4910
|
+
default: import_react26.css``,
|
|
4911
|
+
error: import_react26.css`
|
|
4154
4912
|
border-color: ${colors.red["500"]};
|
|
4155
4913
|
|
|
4156
4914
|
&:focus {
|
|
@@ -4158,7 +4916,7 @@ var variantStyles2 = {
|
|
|
4158
4916
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
4159
4917
|
}
|
|
4160
4918
|
`,
|
|
4161
|
-
success:
|
|
4919
|
+
success: import_react26.css`
|
|
4162
4920
|
border-color: ${colors.accent.green};
|
|
4163
4921
|
|
|
4164
4922
|
&:focus {
|
|
@@ -4167,7 +4925,7 @@ var variantStyles2 = {
|
|
|
4167
4925
|
}
|
|
4168
4926
|
`
|
|
4169
4927
|
};
|
|
4170
|
-
var optionStyles =
|
|
4928
|
+
var optionStyles = import_react26.css`
|
|
4171
4929
|
background-color: ${colors.light["100"]};
|
|
4172
4930
|
color: ${colors.gray["900"]};
|
|
4173
4931
|
|
|
@@ -4176,7 +4934,7 @@ var optionStyles = import_react16.css`
|
|
|
4176
4934
|
background-color: ${colors.gray["100"]};
|
|
4177
4935
|
}
|
|
4178
4936
|
`;
|
|
4179
|
-
var Select = (0,
|
|
4937
|
+
var Select = (0, import_react27.forwardRef)(
|
|
4180
4938
|
({
|
|
4181
4939
|
size = "md",
|
|
4182
4940
|
variant = "default",
|
|
@@ -4186,7 +4944,7 @@ var Select = (0, import_react17.forwardRef)(
|
|
|
4186
4944
|
className = "",
|
|
4187
4945
|
...props
|
|
4188
4946
|
}, ref) => {
|
|
4189
|
-
return /* @__PURE__ */ (0,
|
|
4947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
|
|
4190
4948
|
"select",
|
|
4191
4949
|
{
|
|
4192
4950
|
ref,
|
|
@@ -4195,8 +4953,8 @@ var Select = (0, import_react17.forwardRef)(
|
|
|
4195
4953
|
className,
|
|
4196
4954
|
...props,
|
|
4197
4955
|
children: [
|
|
4198
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
4199
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
4956
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
4957
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
4200
4958
|
"option",
|
|
4201
4959
|
{
|
|
4202
4960
|
value: option.value,
|
|
@@ -4213,170 +4971,11 @@ var Select = (0, import_react17.forwardRef)(
|
|
|
4213
4971
|
);
|
|
4214
4972
|
Select.displayName = "Select";
|
|
4215
4973
|
|
|
4216
|
-
// src/Form/TextArea.tsx
|
|
4217
|
-
var import_react19 = require("@emotion/react");
|
|
4218
|
-
var import_react20 = require("react");
|
|
4219
|
-
|
|
4220
|
-
// src/Form/TextArea.styles.ts
|
|
4221
|
-
var import_react18 = require("@emotion/react");
|
|
4222
|
-
var wrapperStyles = import_react18.css`
|
|
4223
|
-
position: relative;
|
|
4224
|
-
display: inline-block;
|
|
4225
|
-
width: 100%;
|
|
4226
|
-
`;
|
|
4227
|
-
var textareaBase = import_react18.css`
|
|
4228
|
-
width: 100%;
|
|
4229
|
-
box-sizing: border-box;
|
|
4230
|
-
font: inherit;
|
|
4231
|
-
color: var(--text-primary);
|
|
4232
|
-
background-color: var(--surface-page);
|
|
4233
|
-
border: 1px solid var(--border-primary);
|
|
4234
|
-
border-radius: var(--radius-sm);
|
|
4235
|
-
padding: var(--spacing-3) var(--spacing-4);
|
|
4236
|
-
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
4237
|
-
outline: none;
|
|
4238
|
-
resize: none;
|
|
4239
|
-
|
|
4240
|
-
&::placeholder {
|
|
4241
|
-
color: var(--text-secondary);
|
|
4242
|
-
}
|
|
4243
|
-
|
|
4244
|
-
&:focus {
|
|
4245
|
-
border-color: var(--border-focus);
|
|
4246
|
-
box-shadow: 0 0 0 3px var(--surface-success, rgba(50, 90, 60, 0.1));
|
|
4247
|
-
}
|
|
4248
|
-
|
|
4249
|
-
&:disabled {
|
|
4250
|
-
background-color: var(--surface-disabled-2);
|
|
4251
|
-
color: var(--text-on-disabled);
|
|
4252
|
-
cursor: not-allowed;
|
|
4253
|
-
}
|
|
4254
|
-
|
|
4255
|
-
&:read-only {
|
|
4256
|
-
background-color: var(--surface-disabled-2);
|
|
4257
|
-
color: var(--text-secondary);
|
|
4258
|
-
cursor: default;
|
|
4259
|
-
}
|
|
4260
|
-
`;
|
|
4261
|
-
var variantError = import_react18.css`
|
|
4262
|
-
border-color: var(--border-error);
|
|
4263
|
-
&:focus {
|
|
4264
|
-
border-color: var(--border-error);
|
|
4265
|
-
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
4266
|
-
}
|
|
4267
|
-
`;
|
|
4268
|
-
var variantSuccess = import_react18.css`
|
|
4269
|
-
border-color: var(--color-success-500);
|
|
4270
|
-
&:focus {
|
|
4271
|
-
border-color: var(--color-success-500);
|
|
4272
|
-
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
4273
|
-
}
|
|
4274
|
-
`;
|
|
4275
|
-
var submitButtonContainer = import_react18.css`
|
|
4276
|
-
position: absolute;
|
|
4277
|
-
right: var(--spacing-2);
|
|
4278
|
-
bottom: var(--spacing-3);
|
|
4279
|
-
`;
|
|
4280
|
-
|
|
4281
|
-
// src/Form/TextArea.tsx
|
|
4282
|
-
var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
|
|
4283
|
-
var TextArea = (0, import_react20.forwardRef)(
|
|
4284
|
-
({
|
|
4285
|
-
rows = 3,
|
|
4286
|
-
variant = "default",
|
|
4287
|
-
disabled = false,
|
|
4288
|
-
readOnly = false,
|
|
4289
|
-
className,
|
|
4290
|
-
autoExpand = true,
|
|
4291
|
-
maxHeight,
|
|
4292
|
-
resize = "none",
|
|
4293
|
-
value,
|
|
4294
|
-
onChange,
|
|
4295
|
-
showSubmit = false,
|
|
4296
|
-
onSubmit,
|
|
4297
|
-
submitAriaLabel = "Submit",
|
|
4298
|
-
submitDisabled,
|
|
4299
|
-
...props
|
|
4300
|
-
}, ref) => {
|
|
4301
|
-
const innerRef = (0, import_react20.useRef)(null);
|
|
4302
|
-
(0, import_react20.useEffect)(() => {
|
|
4303
|
-
const el = innerRef.current;
|
|
4304
|
-
if (!el || !autoExpand)
|
|
4305
|
-
return;
|
|
4306
|
-
el.style.height = "auto";
|
|
4307
|
-
if (typeof maxHeight === "number") {
|
|
4308
|
-
el.style.maxHeight = `${maxHeight}px`;
|
|
4309
|
-
} else if (typeof maxHeight === "string") {
|
|
4310
|
-
el.style.maxHeight = maxHeight;
|
|
4311
|
-
}
|
|
4312
|
-
el.style.overflowY = maxHeight ? "auto" : "hidden";
|
|
4313
|
-
el.style.height = `${el.scrollHeight}px`;
|
|
4314
|
-
}, [value, autoExpand, maxHeight]);
|
|
4315
|
-
const handleChange = (e) => {
|
|
4316
|
-
if (autoExpand && innerRef.current) {
|
|
4317
|
-
const el = innerRef.current;
|
|
4318
|
-
el.style.height = "auto";
|
|
4319
|
-
el.style.overflowY = maxHeight ? "auto" : "hidden";
|
|
4320
|
-
el.style.height = `${el.scrollHeight}px`;
|
|
4321
|
-
}
|
|
4322
|
-
onChange == null ? void 0 : onChange(e);
|
|
4323
|
-
};
|
|
4324
|
-
return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { css: wrapperStyles, children: [
|
|
4325
|
-
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4326
|
-
"textarea",
|
|
4327
|
-
{
|
|
4328
|
-
ref: (node) => {
|
|
4329
|
-
innerRef.current = node;
|
|
4330
|
-
if (typeof ref === "function")
|
|
4331
|
-
ref(node);
|
|
4332
|
-
else if (ref)
|
|
4333
|
-
ref.current = node;
|
|
4334
|
-
},
|
|
4335
|
-
rows,
|
|
4336
|
-
disabled,
|
|
4337
|
-
readOnly,
|
|
4338
|
-
css: [
|
|
4339
|
-
textareaBase,
|
|
4340
|
-
variant === "error" && variantError,
|
|
4341
|
-
variant === "success" && variantSuccess,
|
|
4342
|
-
import_react19.css`
|
|
4343
|
-
resize: ${resize};
|
|
4344
|
-
`
|
|
4345
|
-
],
|
|
4346
|
-
className,
|
|
4347
|
-
value,
|
|
4348
|
-
onChange: handleChange,
|
|
4349
|
-
"aria-multiline": "true",
|
|
4350
|
-
...props
|
|
4351
|
-
}
|
|
4352
|
-
),
|
|
4353
|
-
showSubmit && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { css: submitButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4354
|
-
Button_default,
|
|
4355
|
-
{
|
|
4356
|
-
size: "xs",
|
|
4357
|
-
"aria-label": submitAriaLabel,
|
|
4358
|
-
onClick: onSubmit,
|
|
4359
|
-
disabled: disabled || submitDisabled,
|
|
4360
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4361
|
-
Icon_default,
|
|
4362
|
-
{
|
|
4363
|
-
variant: "PaperPlane",
|
|
4364
|
-
size: 6,
|
|
4365
|
-
fill: "var(--color-base-white)"
|
|
4366
|
-
}
|
|
4367
|
-
)
|
|
4368
|
-
}
|
|
4369
|
-
) })
|
|
4370
|
-
] });
|
|
4371
|
-
}
|
|
4372
|
-
);
|
|
4373
|
-
TextArea.displayName = "TextArea";
|
|
4374
|
-
|
|
4375
4974
|
// src/Grid/Column.tsx
|
|
4376
|
-
var
|
|
4975
|
+
var import_react29 = require("@emotion/react");
|
|
4377
4976
|
|
|
4378
4977
|
// src/Grid/utils.ts
|
|
4379
|
-
var
|
|
4978
|
+
var import_react28 = require("@emotion/react");
|
|
4380
4979
|
var LayoutTokens = {
|
|
4381
4980
|
containers: {
|
|
4382
4981
|
sm: screens.sm,
|
|
@@ -4416,11 +5015,11 @@ var getResponsiveValue = (value) => {
|
|
|
4416
5015
|
var generateGridColumns = (columns) => {
|
|
4417
5016
|
const baseColumns = getResponsiveValue(columns);
|
|
4418
5017
|
if (typeof columns === "number") {
|
|
4419
|
-
return
|
|
5018
|
+
return import_react28.css`
|
|
4420
5019
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
4421
5020
|
`;
|
|
4422
5021
|
}
|
|
4423
|
-
return
|
|
5022
|
+
return import_react28.css`
|
|
4424
5023
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
4425
5024
|
|
|
4426
5025
|
${media.sm} {
|
|
@@ -4452,11 +5051,11 @@ var generateGridColumns = (columns) => {
|
|
|
4452
5051
|
var generateGapStyles = (gap2) => {
|
|
4453
5052
|
const baseGap = getResponsiveValue(gap2);
|
|
4454
5053
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
4455
|
-
return
|
|
5054
|
+
return import_react28.css`
|
|
4456
5055
|
gap: ${space[gap2]};
|
|
4457
5056
|
`;
|
|
4458
5057
|
}
|
|
4459
|
-
return
|
|
5058
|
+
return import_react28.css`
|
|
4460
5059
|
gap: ${space[baseGap]};
|
|
4461
5060
|
|
|
4462
5061
|
${media.sm} {
|
|
@@ -4479,11 +5078,11 @@ var generateGapStyles = (gap2) => {
|
|
|
4479
5078
|
var generateRowGapStyles = (rowGap) => {
|
|
4480
5079
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
4481
5080
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
4482
|
-
return
|
|
5081
|
+
return import_react28.css`
|
|
4483
5082
|
row-gap: ${space[rowGap]};
|
|
4484
5083
|
`;
|
|
4485
5084
|
}
|
|
4486
|
-
return
|
|
5085
|
+
return import_react28.css`
|
|
4487
5086
|
row-gap: ${space[baseRowGap]};
|
|
4488
5087
|
|
|
4489
5088
|
${media.sm} {
|
|
@@ -4506,11 +5105,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
4506
5105
|
var generateColumnGapStyles = (columnGap) => {
|
|
4507
5106
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
4508
5107
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
4509
|
-
return
|
|
5108
|
+
return import_react28.css`
|
|
4510
5109
|
column-gap: ${space[columnGap]};
|
|
4511
5110
|
`;
|
|
4512
5111
|
}
|
|
4513
|
-
return
|
|
5112
|
+
return import_react28.css`
|
|
4514
5113
|
column-gap: ${space[baseColumnGap]};
|
|
4515
5114
|
|
|
4516
5115
|
${media.sm} {
|
|
@@ -4533,11 +5132,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
4533
5132
|
var generateColumnSpan = (span) => {
|
|
4534
5133
|
const baseSpan = getResponsiveValue(span);
|
|
4535
5134
|
if (typeof span === "string" || typeof span === "number") {
|
|
4536
|
-
return
|
|
5135
|
+
return import_react28.css`
|
|
4537
5136
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
4538
5137
|
`;
|
|
4539
5138
|
}
|
|
4540
|
-
return
|
|
5139
|
+
return import_react28.css`
|
|
4541
5140
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
4542
5141
|
|
|
4543
5142
|
${media.sm} {
|
|
@@ -4560,11 +5159,11 @@ var generateColumnSpan = (span) => {
|
|
|
4560
5159
|
var generateAlignItems = (alignItems) => {
|
|
4561
5160
|
const baseAlign = getResponsiveValue(alignItems);
|
|
4562
5161
|
if (typeof alignItems === "string") {
|
|
4563
|
-
return
|
|
5162
|
+
return import_react28.css`
|
|
4564
5163
|
align-items: ${alignItems};
|
|
4565
5164
|
`;
|
|
4566
5165
|
}
|
|
4567
|
-
return
|
|
5166
|
+
return import_react28.css`
|
|
4568
5167
|
align-items: ${baseAlign};
|
|
4569
5168
|
|
|
4570
5169
|
${media.sm} {
|
|
@@ -4587,11 +5186,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
4587
5186
|
var generateJustifyItems = (justifyItems) => {
|
|
4588
5187
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
4589
5188
|
if (typeof justifyItems === "string") {
|
|
4590
|
-
return
|
|
5189
|
+
return import_react28.css`
|
|
4591
5190
|
justify-items: ${justifyItems};
|
|
4592
5191
|
`;
|
|
4593
5192
|
}
|
|
4594
|
-
return
|
|
5193
|
+
return import_react28.css`
|
|
4595
5194
|
justify-items: ${baseJustify};
|
|
4596
5195
|
|
|
4597
5196
|
${media.sm} {
|
|
@@ -4613,7 +5212,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
4613
5212
|
};
|
|
4614
5213
|
|
|
4615
5214
|
// src/Grid/Column.tsx
|
|
4616
|
-
var
|
|
5215
|
+
var import_jsx_runtime213 = require("@emotion/react/jsx-runtime");
|
|
4617
5216
|
var Column = ({
|
|
4618
5217
|
span,
|
|
4619
5218
|
start,
|
|
@@ -4626,30 +5225,30 @@ var Column = ({
|
|
|
4626
5225
|
}) => {
|
|
4627
5226
|
const columnStyles = [
|
|
4628
5227
|
span && generateColumnSpan(span),
|
|
4629
|
-
start &&
|
|
5228
|
+
start && import_react29.css`
|
|
4630
5229
|
grid-column-start: ${start};
|
|
4631
5230
|
`,
|
|
4632
|
-
end &&
|
|
5231
|
+
end && import_react29.css`
|
|
4633
5232
|
grid-column-end: ${end};
|
|
4634
5233
|
`,
|
|
4635
|
-
row &&
|
|
5234
|
+
row && import_react29.css`
|
|
4636
5235
|
grid-row: ${row};
|
|
4637
5236
|
`,
|
|
4638
|
-
rowSpan &&
|
|
5237
|
+
rowSpan && import_react29.css`
|
|
4639
5238
|
grid-row: span ${rowSpan};
|
|
4640
5239
|
`,
|
|
4641
|
-
area &&
|
|
5240
|
+
area && import_react29.css`
|
|
4642
5241
|
grid-area: ${area};
|
|
4643
5242
|
`
|
|
4644
5243
|
].filter(Boolean);
|
|
4645
|
-
return /* @__PURE__ */ (0,
|
|
5244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
4646
5245
|
};
|
|
4647
5246
|
var Column_default = Column;
|
|
4648
5247
|
|
|
4649
5248
|
// src/Grid/Grid.tsx
|
|
4650
|
-
var
|
|
4651
|
-
var
|
|
4652
|
-
var baseGridStyles =
|
|
5249
|
+
var import_react30 = require("@emotion/react");
|
|
5250
|
+
var import_jsx_runtime214 = require("@emotion/react/jsx-runtime");
|
|
5251
|
+
var baseGridStyles = import_react30.css`
|
|
4653
5252
|
display: grid;
|
|
4654
5253
|
`;
|
|
4655
5254
|
var Grid = ({
|
|
@@ -4674,27 +5273,27 @@ var Grid = ({
|
|
|
4674
5273
|
columnGap && generateColumnGapStyles(columnGap),
|
|
4675
5274
|
alignItems && generateAlignItems(alignItems),
|
|
4676
5275
|
justifyItems && generateJustifyItems(justifyItems),
|
|
4677
|
-
autoRows &&
|
|
5276
|
+
autoRows && import_react30.css`
|
|
4678
5277
|
grid-auto-rows: ${autoRows};
|
|
4679
5278
|
`,
|
|
4680
|
-
autoColumns &&
|
|
5279
|
+
autoColumns && import_react30.css`
|
|
4681
5280
|
grid-auto-columns: ${autoColumns};
|
|
4682
5281
|
`,
|
|
4683
|
-
templateAreas &&
|
|
5282
|
+
templateAreas && import_react30.css`
|
|
4684
5283
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
4685
5284
|
`,
|
|
4686
|
-
justifyContent &&
|
|
5285
|
+
justifyContent && import_react30.css`
|
|
4687
5286
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
4688
5287
|
`
|
|
4689
5288
|
].filter(Boolean);
|
|
4690
|
-
return /* @__PURE__ */ (0,
|
|
5289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
4691
5290
|
};
|
|
4692
5291
|
var Grid_default = Grid;
|
|
4693
5292
|
|
|
4694
5293
|
// src/Grid/GridContainer.tsx
|
|
4695
|
-
var
|
|
4696
|
-
var
|
|
4697
|
-
var baseContainerStyles =
|
|
5294
|
+
var import_react31 = require("@emotion/react");
|
|
5295
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
5296
|
+
var baseContainerStyles = import_react31.css`
|
|
4698
5297
|
width: 100%;
|
|
4699
5298
|
margin: 0 auto;
|
|
4700
5299
|
padding-left: 1rem;
|
|
@@ -4702,14 +5301,14 @@ var baseContainerStyles = import_react24.css`
|
|
|
4702
5301
|
`;
|
|
4703
5302
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
4704
5303
|
if (maxWidth === "full") {
|
|
4705
|
-
return
|
|
5304
|
+
return import_react31.css`
|
|
4706
5305
|
max-width: 100%;
|
|
4707
5306
|
padding-left: 0;
|
|
4708
5307
|
padding-right: 0;
|
|
4709
5308
|
`;
|
|
4710
5309
|
}
|
|
4711
5310
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
4712
|
-
return
|
|
5311
|
+
return import_react31.css`
|
|
4713
5312
|
max-width: ${width2};
|
|
4714
5313
|
|
|
4715
5314
|
${media.sm} {
|
|
@@ -4734,17 +5333,17 @@ var GridContainer = ({
|
|
|
4734
5333
|
className,
|
|
4735
5334
|
...props
|
|
4736
5335
|
}) => {
|
|
4737
|
-
const
|
|
5336
|
+
const containerStyles4 = [
|
|
4738
5337
|
baseContainerStyles,
|
|
4739
5338
|
generateMaxWidthStyles(maxWidth)
|
|
4740
5339
|
];
|
|
4741
|
-
return /* @__PURE__ */ (0,
|
|
5340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
4742
5341
|
};
|
|
4743
5342
|
var GridContainer_default = GridContainer;
|
|
4744
5343
|
|
|
4745
5344
|
// src/HuntCard/HuntCard.styles.ts
|
|
4746
|
-
var
|
|
4747
|
-
var cardContainerStyles2 =
|
|
5345
|
+
var import_react32 = require("@emotion/react");
|
|
5346
|
+
var cardContainerStyles2 = import_react32.css`
|
|
4748
5347
|
position: relative;
|
|
4749
5348
|
height: 335px;
|
|
4750
5349
|
|
|
@@ -4752,12 +5351,12 @@ var cardContainerStyles2 = import_react25.css`
|
|
|
4752
5351
|
height: 480px;
|
|
4753
5352
|
}
|
|
4754
5353
|
`;
|
|
4755
|
-
var cardContentStyles2 =
|
|
5354
|
+
var cardContentStyles2 = import_react32.css`
|
|
4756
5355
|
position: relative;
|
|
4757
5356
|
border-radius: var(--spacing-4);
|
|
4758
5357
|
overflow: hidden;
|
|
4759
5358
|
`;
|
|
4760
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
5359
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react32.css`
|
|
4761
5360
|
background-image: linear-gradient(
|
|
4762
5361
|
180deg,
|
|
4763
5362
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -4771,7 +5370,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react25.css`
|
|
|
4771
5370
|
`;
|
|
4772
5371
|
|
|
4773
5372
|
// src/HuntCard/HuntCard.tsx
|
|
4774
|
-
var
|
|
5373
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
4775
5374
|
var HuntCard = ({
|
|
4776
5375
|
backgroundImage,
|
|
4777
5376
|
title,
|
|
@@ -4780,14 +5379,14 @@ var HuntCard = ({
|
|
|
4780
5379
|
className,
|
|
4781
5380
|
...rest
|
|
4782
5381
|
}) => {
|
|
4783
|
-
return /* @__PURE__ */ (0,
|
|
5382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4784
5383
|
Box_default,
|
|
4785
5384
|
{
|
|
4786
5385
|
display: "flex",
|
|
4787
5386
|
css: cardContainerStyles2,
|
|
4788
5387
|
className,
|
|
4789
5388
|
...rest,
|
|
4790
|
-
children: /* @__PURE__ */ (0,
|
|
5389
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4791
5390
|
Box_default,
|
|
4792
5391
|
{
|
|
4793
5392
|
display: "flex",
|
|
@@ -4795,23 +5394,182 @@ var HuntCard = ({
|
|
|
4795
5394
|
justifyContent: "flex-end",
|
|
4796
5395
|
p: 6,
|
|
4797
5396
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
4798
|
-
children: /* @__PURE__ */ (0,
|
|
4799
|
-
/* @__PURE__ */ (0,
|
|
4800
|
-
/* @__PURE__ */ (0,
|
|
5397
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
5398
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
5399
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
4801
5400
|
] })
|
|
4802
5401
|
}
|
|
4803
5402
|
)
|
|
4804
5403
|
}
|
|
4805
5404
|
);
|
|
4806
5405
|
};
|
|
4807
|
-
var HuntCard_default = HuntCard;
|
|
5406
|
+
var HuntCard_default = HuntCard;
|
|
5407
|
+
|
|
5408
|
+
// src/ListingChat/ListingChat.tsx
|
|
5409
|
+
var import_react35 = require("react");
|
|
5410
|
+
|
|
5411
|
+
// src/TagChip/TagChip.styles.ts
|
|
5412
|
+
var import_react33 = require("@emotion/react");
|
|
5413
|
+
var tagChipVariantStyles = {
|
|
5414
|
+
primary: import_react33.css`
|
|
5415
|
+
background-color: var(--surface-disabled);
|
|
5416
|
+
border: 1px solid var(--surface-disabled);
|
|
5417
|
+
color: var(--text-primary);
|
|
5418
|
+
`,
|
|
5419
|
+
error: import_react33.css`
|
|
5420
|
+
background-color: var(--surface-error);
|
|
5421
|
+
border: 1px solid var(--color-red-300);
|
|
5422
|
+
color: var(--text-error);
|
|
5423
|
+
`,
|
|
5424
|
+
success: import_react33.css`
|
|
5425
|
+
background-color: var(--surface-success);
|
|
5426
|
+
border: 1px solid var(--color-green-300);
|
|
5427
|
+
color: var(--text-success);
|
|
5428
|
+
`,
|
|
5429
|
+
warning: import_react33.css`
|
|
5430
|
+
background-color: var(--surface-subtle);
|
|
5431
|
+
border: 1px solid var(--color-brown-200);
|
|
5432
|
+
color: var(--text-primary);
|
|
5433
|
+
`
|
|
5434
|
+
};
|
|
5435
|
+
|
|
5436
|
+
// src/TagChip/TagChip.tsx
|
|
5437
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5438
|
+
var TagChip = ({
|
|
5439
|
+
variant = "primary",
|
|
5440
|
+
className,
|
|
5441
|
+
children,
|
|
5442
|
+
...rest
|
|
5443
|
+
}) => {
|
|
5444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5445
|
+
Box_default,
|
|
5446
|
+
{
|
|
5447
|
+
display: "inline-flex",
|
|
5448
|
+
alignItems: "center",
|
|
5449
|
+
borderRadius: "var(--spacing-6)",
|
|
5450
|
+
px: "var(--spacing-4)",
|
|
5451
|
+
py: "var(--spacing-3)",
|
|
5452
|
+
css: tagChipVariantStyles[variant],
|
|
5453
|
+
className,
|
|
5454
|
+
...rest,
|
|
5455
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Text_default, { as: "span", size: "sm", fontWeight: "normal", children })
|
|
5456
|
+
}
|
|
5457
|
+
);
|
|
5458
|
+
};
|
|
5459
|
+
var TagChip_default = TagChip;
|
|
5460
|
+
|
|
5461
|
+
// src/ListingChat/ListingChat.styles.ts
|
|
5462
|
+
var import_react34 = require("@emotion/react");
|
|
5463
|
+
var containerStyles2 = import_react34.css`
|
|
5464
|
+
display: flex;
|
|
5465
|
+
flex-direction: column;
|
|
5466
|
+
gap: var(--spacing-4);
|
|
5467
|
+
padding: var(--spacing-4);
|
|
5468
|
+
border-radius: var(--radius-lg);
|
|
5469
|
+
background: var(--surface-success);
|
|
5470
|
+
`;
|
|
5471
|
+
var headerStyles = import_react34.css`
|
|
5472
|
+
display: flex;
|
|
5473
|
+
align-items: flex-start;
|
|
5474
|
+
justify-content: space-between;
|
|
5475
|
+
gap: var(--spacing-2);
|
|
5476
|
+
`;
|
|
5477
|
+
var chipsContainerStyles = import_react34.css`
|
|
5478
|
+
display: flex;
|
|
5479
|
+
flex-wrap: wrap;
|
|
5480
|
+
gap: var(--spacing-4);
|
|
5481
|
+
|
|
5482
|
+
& > button {
|
|
5483
|
+
background: transparent;
|
|
5484
|
+
border: none;
|
|
5485
|
+
padding: 0;
|
|
5486
|
+
margin: 0;
|
|
5487
|
+
cursor: pointer;
|
|
5488
|
+
}
|
|
5489
|
+
`;
|
|
5490
|
+
var textAreaStyles = import_react34.css`
|
|
5491
|
+
min-height: 62px;
|
|
5492
|
+
`;
|
|
5493
|
+
var inputWrapperStyles2 = import_react34.css`
|
|
5494
|
+
position: relative;
|
|
5495
|
+
`;
|
|
5496
|
+
|
|
5497
|
+
// src/ListingChat/ListingChat.tsx
|
|
5498
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
5499
|
+
var ListingChat = ({
|
|
5500
|
+
onSubmit,
|
|
5501
|
+
placeholder = "Ask anything about this listing\u2026",
|
|
5502
|
+
className,
|
|
5503
|
+
title = "Have a question?",
|
|
5504
|
+
tags = [],
|
|
5505
|
+
disabled = false,
|
|
5506
|
+
...rest
|
|
5507
|
+
}) => {
|
|
5508
|
+
const [value, setValue] = (0, import_react35.useState)("");
|
|
5509
|
+
const handleSubmit = (0, import_react35.useCallback)(() => {
|
|
5510
|
+
const trimmed = value.trim();
|
|
5511
|
+
if (!trimmed)
|
|
5512
|
+
return;
|
|
5513
|
+
onSubmit(trimmed);
|
|
5514
|
+
setValue("");
|
|
5515
|
+
}, [onSubmit, value]);
|
|
5516
|
+
const handleTagClick = (0, import_react35.useCallback)(
|
|
5517
|
+
(tag) => () => {
|
|
5518
|
+
const trimmed = tag.trim();
|
|
5519
|
+
if (!trimmed)
|
|
5520
|
+
return;
|
|
5521
|
+
onSubmit(trimmed);
|
|
5522
|
+
},
|
|
5523
|
+
[onSubmit]
|
|
5524
|
+
);
|
|
5525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
5526
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { css: headerStyles, children: [
|
|
5527
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { children: [
|
|
5528
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
5529
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
5530
|
+
] }),
|
|
5531
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
5532
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Icon_default, { variant: "AiMagic", size: 5 }),
|
|
5533
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
5534
|
+
] })
|
|
5535
|
+
] }),
|
|
5536
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5537
|
+
TextArea,
|
|
5538
|
+
{
|
|
5539
|
+
rows: 1,
|
|
5540
|
+
placeholder,
|
|
5541
|
+
value,
|
|
5542
|
+
onChange: (e) => setValue(e.target.value),
|
|
5543
|
+
showSubmit: true,
|
|
5544
|
+
onSubmit: handleSubmit,
|
|
5545
|
+
disabled,
|
|
5546
|
+
submitDisabled: !value.trim(),
|
|
5547
|
+
submitAriaLabel: "Submit message",
|
|
5548
|
+
css: textAreaStyles
|
|
5549
|
+
}
|
|
5550
|
+
) }),
|
|
5551
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(import_jsx_runtime218.Fragment, { children: [
|
|
5552
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
5553
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5554
|
+
"button",
|
|
5555
|
+
{
|
|
5556
|
+
onClick: handleTagClick(tag),
|
|
5557
|
+
disabled,
|
|
5558
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(TagChip_default, { children: tag })
|
|
5559
|
+
},
|
|
5560
|
+
tag
|
|
5561
|
+
)) })
|
|
5562
|
+
] })
|
|
5563
|
+
] });
|
|
5564
|
+
};
|
|
5565
|
+
var ListingChat_default = ListingChat;
|
|
4808
5566
|
|
|
4809
5567
|
// src/Logo/Logo.tsx
|
|
4810
|
-
var
|
|
5568
|
+
var import_react36 = require("@emotion/react");
|
|
4811
5569
|
|
|
4812
5570
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
4813
|
-
var
|
|
4814
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
5571
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
5572
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
4815
5573
|
"svg",
|
|
4816
5574
|
{
|
|
4817
5575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4819,14 +5577,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime211.
|
|
|
4819
5577
|
fill: "none",
|
|
4820
5578
|
...props,
|
|
4821
5579
|
children: [
|
|
4822
|
-
/* @__PURE__ */ (0,
|
|
5580
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4823
5581
|
"path",
|
|
4824
5582
|
{
|
|
4825
5583
|
fill: "#000",
|
|
4826
5584
|
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"
|
|
4827
5585
|
}
|
|
4828
5586
|
) }),
|
|
4829
|
-
/* @__PURE__ */ (0,
|
|
5587
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4830
5588
|
"path",
|
|
4831
5589
|
{
|
|
4832
5590
|
fill: "#FAD44E",
|
|
@@ -4835,14 +5593,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime211.
|
|
|
4835
5593
|
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"
|
|
4836
5594
|
}
|
|
4837
5595
|
),
|
|
4838
|
-
/* @__PURE__ */ (0,
|
|
5596
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4839
5597
|
"path",
|
|
4840
5598
|
{
|
|
4841
5599
|
fill: "#fff",
|
|
4842
5600
|
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"
|
|
4843
5601
|
}
|
|
4844
5602
|
),
|
|
4845
|
-
/* @__PURE__ */ (0,
|
|
5603
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
4846
5604
|
"filter",
|
|
4847
5605
|
{
|
|
4848
5606
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -4853,8 +5611,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime211.
|
|
|
4853
5611
|
colorInterpolationFilters: "sRGB",
|
|
4854
5612
|
filterUnits: "userSpaceOnUse",
|
|
4855
5613
|
children: [
|
|
4856
|
-
/* @__PURE__ */ (0,
|
|
4857
|
-
/* @__PURE__ */ (0,
|
|
5614
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
5615
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4858
5616
|
"feColorMatrix",
|
|
4859
5617
|
{
|
|
4860
5618
|
in: "SourceAlpha",
|
|
@@ -4862,18 +5620,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime211.
|
|
|
4862
5620
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
4863
5621
|
}
|
|
4864
5622
|
),
|
|
4865
|
-
/* @__PURE__ */ (0,
|
|
4866
|
-
/* @__PURE__ */ (0,
|
|
4867
|
-
/* @__PURE__ */ (0,
|
|
4868
|
-
/* @__PURE__ */ (0,
|
|
4869
|
-
/* @__PURE__ */ (0,
|
|
5623
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feOffset", { dy: 1 }),
|
|
5624
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
5625
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
5626
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
5627
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4870
5628
|
"feBlend",
|
|
4871
5629
|
{
|
|
4872
5630
|
in2: "BackgroundImageFix",
|
|
4873
5631
|
result: "effect1_dropShadow_257_2540"
|
|
4874
5632
|
}
|
|
4875
5633
|
),
|
|
4876
|
-
/* @__PURE__ */ (0,
|
|
5634
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4877
5635
|
"feBlend",
|
|
4878
5636
|
{
|
|
4879
5637
|
in: "SourceGraphic",
|
|
@@ -4890,8 +5648,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime211.
|
|
|
4890
5648
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
4891
5649
|
|
|
4892
5650
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
4893
|
-
var
|
|
4894
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
5651
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5652
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
4895
5653
|
"svg",
|
|
4896
5654
|
{
|
|
4897
5655
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4899,14 +5657,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime212
|
|
|
4899
5657
|
fill: "none",
|
|
4900
5658
|
...props,
|
|
4901
5659
|
children: [
|
|
4902
|
-
/* @__PURE__ */ (0,
|
|
5660
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
4903
5661
|
"path",
|
|
4904
5662
|
{
|
|
4905
5663
|
fill: "#000",
|
|
4906
5664
|
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"
|
|
4907
5665
|
}
|
|
4908
5666
|
) }),
|
|
4909
|
-
/* @__PURE__ */ (0,
|
|
5667
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
4910
5668
|
"path",
|
|
4911
5669
|
{
|
|
4912
5670
|
fill: "#FAD44E",
|
|
@@ -4915,14 +5673,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime212
|
|
|
4915
5673
|
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"
|
|
4916
5674
|
}
|
|
4917
5675
|
),
|
|
4918
|
-
/* @__PURE__ */ (0,
|
|
5676
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
4919
5677
|
"path",
|
|
4920
5678
|
{
|
|
4921
5679
|
fill: "#1A202C",
|
|
4922
5680
|
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"
|
|
4923
5681
|
}
|
|
4924
5682
|
),
|
|
4925
|
-
/* @__PURE__ */ (0,
|
|
5683
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
4926
5684
|
"filter",
|
|
4927
5685
|
{
|
|
4928
5686
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -4933,8 +5691,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime212
|
|
|
4933
5691
|
colorInterpolationFilters: "sRGB",
|
|
4934
5692
|
filterUnits: "userSpaceOnUse",
|
|
4935
5693
|
children: [
|
|
4936
|
-
/* @__PURE__ */ (0,
|
|
4937
|
-
/* @__PURE__ */ (0,
|
|
5694
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
5695
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
4938
5696
|
"feColorMatrix",
|
|
4939
5697
|
{
|
|
4940
5698
|
in: "SourceAlpha",
|
|
@@ -4942,18 +5700,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime212
|
|
|
4942
5700
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
4943
5701
|
}
|
|
4944
5702
|
),
|
|
4945
|
-
/* @__PURE__ */ (0,
|
|
4946
|
-
/* @__PURE__ */ (0,
|
|
4947
|
-
/* @__PURE__ */ (0,
|
|
4948
|
-
/* @__PURE__ */ (0,
|
|
4949
|
-
/* @__PURE__ */ (0,
|
|
5703
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feOffset", { dy: 1 }),
|
|
5704
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
5705
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
5706
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
5707
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
4950
5708
|
"feBlend",
|
|
4951
5709
|
{
|
|
4952
5710
|
in2: "BackgroundImageFix",
|
|
4953
5711
|
result: "effect1_dropShadow_257_2538"
|
|
4954
5712
|
}
|
|
4955
5713
|
),
|
|
4956
|
-
/* @__PURE__ */ (0,
|
|
5714
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
4957
5715
|
"feBlend",
|
|
4958
5716
|
{
|
|
4959
5717
|
in: "SourceGraphic",
|
|
@@ -4970,8 +5728,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime212
|
|
|
4970
5728
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
4971
5729
|
|
|
4972
5730
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
4973
|
-
var
|
|
4974
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
5731
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
5732
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
|
|
4975
5733
|
"svg",
|
|
4976
5734
|
{
|
|
4977
5735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4979,14 +5737,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
4979
5737
|
fill: "none",
|
|
4980
5738
|
...props,
|
|
4981
5739
|
children: [
|
|
4982
|
-
/* @__PURE__ */ (0,
|
|
5740
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
4983
5741
|
"path",
|
|
4984
5742
|
{
|
|
4985
5743
|
fill: "#E2430C",
|
|
4986
5744
|
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"
|
|
4987
5745
|
}
|
|
4988
5746
|
),
|
|
4989
|
-
/* @__PURE__ */ (0,
|
|
5747
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
4990
5748
|
"path",
|
|
4991
5749
|
{
|
|
4992
5750
|
fill: "#fff",
|
|
@@ -4999,8 +5757,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
4999
5757
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
5000
5758
|
|
|
5001
5759
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
5002
|
-
var
|
|
5003
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
5760
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
5761
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
|
|
5004
5762
|
"svg",
|
|
5005
5763
|
{
|
|
5006
5764
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5008,14 +5766,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
5008
5766
|
fill: "none",
|
|
5009
5767
|
...props,
|
|
5010
5768
|
children: [
|
|
5011
|
-
/* @__PURE__ */ (0,
|
|
5769
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
5012
5770
|
"path",
|
|
5013
5771
|
{
|
|
5014
5772
|
fill: "#E2430C",
|
|
5015
5773
|
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"
|
|
5016
5774
|
}
|
|
5017
5775
|
),
|
|
5018
|
-
/* @__PURE__ */ (0,
|
|
5776
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
5019
5777
|
"path",
|
|
5020
5778
|
{
|
|
5021
5779
|
fill: "#000",
|
|
@@ -5028,8 +5786,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
5028
5786
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
5029
5787
|
|
|
5030
5788
|
// src/Logo/Logo.tsx
|
|
5031
|
-
var
|
|
5032
|
-
var logoStyles = (size) =>
|
|
5789
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
5790
|
+
var logoStyles = (size) => import_react36.css`
|
|
5033
5791
|
width: ${space[size]};
|
|
5034
5792
|
height: auto;
|
|
5035
5793
|
display: block;
|
|
@@ -5057,72 +5815,18 @@ var Logo = ({
|
|
|
5057
5815
|
return LandtrustStandardLight_default;
|
|
5058
5816
|
};
|
|
5059
5817
|
const LogoComponent = getLogoComponent();
|
|
5060
|
-
return /* @__PURE__ */ (0,
|
|
5818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
5061
5819
|
};
|
|
5062
5820
|
var Logo_default = Logo;
|
|
5063
5821
|
|
|
5064
|
-
// src/MessageBubble/MessageBubble.styles.ts
|
|
5065
|
-
var import_react27 = require("@emotion/react");
|
|
5066
|
-
var getRootStyles = (variant) => import_react27.css`
|
|
5067
|
-
display: flex;
|
|
5068
|
-
flex-direction: column;
|
|
5069
|
-
gap: var(--spacing-1);
|
|
5070
|
-
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
5071
|
-
`;
|
|
5072
|
-
var getBubbleStyles = (variant) => import_react27.css`
|
|
5073
|
-
max-width: 100%;
|
|
5074
|
-
width: 100%;
|
|
5075
|
-
box-sizing: border-box;
|
|
5076
|
-
display: flex;
|
|
5077
|
-
gap: var(--spacing-3);
|
|
5078
|
-
align-items: center;
|
|
5079
|
-
justify-content: center;
|
|
5080
|
-
padding: var(--spacing-4);
|
|
5081
|
-
background-color: ${variant === "sent" ? "var(--color-neutral-900)" : "var(--surface-neutral)"};
|
|
5082
|
-
color: ${variant === "sent" ? "var(--color-base-white)" : "var(--text-primary)"};
|
|
5083
|
-
border: ${variant === "sent" ? "1px solid transparent" : "none"};
|
|
5084
|
-
border-top-left-radius: var(--radius-lg);
|
|
5085
|
-
border-top-right-radius: var(--radius-lg);
|
|
5086
|
-
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
5087
|
-
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
5088
|
-
`;
|
|
5089
|
-
var contentStyles = import_react27.css`
|
|
5090
|
-
flex: 1 1 auto;
|
|
5091
|
-
min-width: 1px;
|
|
5092
|
-
min-height: 1px;
|
|
5093
|
-
`;
|
|
5094
|
-
|
|
5095
|
-
// src/MessageBubble/MessageBubble.tsx
|
|
5096
|
-
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
5097
|
-
var MessageBubble = ({
|
|
5098
|
-
variant = "sent",
|
|
5099
|
-
timestamp,
|
|
5100
|
-
className,
|
|
5101
|
-
children
|
|
5102
|
-
}) => {
|
|
5103
|
-
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { className, css: getRootStyles(variant), children: [
|
|
5104
|
-
timestamp && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
5105
|
-
Text_default,
|
|
5106
|
-
{
|
|
5107
|
-
size: "xs",
|
|
5108
|
-
color: "var(--text-secondary)",
|
|
5109
|
-
textAlign: variant === "sent" ? "right" : "left",
|
|
5110
|
-
children: timestamp
|
|
5111
|
-
}
|
|
5112
|
-
),
|
|
5113
|
-
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)("div", { css: getBubbleStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)("div", { css: contentStyles, children }) })
|
|
5114
|
-
] });
|
|
5115
|
-
};
|
|
5116
|
-
var MessageBubble_default = MessageBubble;
|
|
5117
|
-
|
|
5118
5822
|
// src/Navigation/Navigation.styles.ts
|
|
5119
|
-
var
|
|
5120
|
-
var navigationStyles =
|
|
5823
|
+
var import_react37 = require("@emotion/react");
|
|
5824
|
+
var navigationStyles = import_react37.css`
|
|
5121
5825
|
width: 100%;
|
|
5122
5826
|
background-color: white;
|
|
5123
5827
|
border-bottom: 1px solid #e5e5e5;
|
|
5124
5828
|
`;
|
|
5125
|
-
var hamburgerButtonStyles =
|
|
5829
|
+
var hamburgerButtonStyles = import_react37.css`
|
|
5126
5830
|
cursor: pointer;
|
|
5127
5831
|
&:focus {
|
|
5128
5832
|
outline: 2px solid #4f46e5;
|
|
@@ -5133,7 +5837,7 @@ var hamburgerButtonStyles = import_react28.css`
|
|
|
5133
5837
|
display: none;
|
|
5134
5838
|
}
|
|
5135
5839
|
`;
|
|
5136
|
-
var centeredLogoStyles =
|
|
5840
|
+
var centeredLogoStyles = import_react37.css`
|
|
5137
5841
|
transform: translate(-50%, -50%);
|
|
5138
5842
|
max-width: 150px;
|
|
5139
5843
|
|
|
@@ -5141,27 +5845,27 @@ var centeredLogoStyles = import_react28.css`
|
|
|
5141
5845
|
display: none;
|
|
5142
5846
|
}
|
|
5143
5847
|
`;
|
|
5144
|
-
var desktopLogoStyles =
|
|
5848
|
+
var desktopLogoStyles = import_react37.css`
|
|
5145
5849
|
display: none;
|
|
5146
5850
|
|
|
5147
5851
|
@media (min-width: 768px) {
|
|
5148
5852
|
display: block;
|
|
5149
5853
|
}
|
|
5150
5854
|
`;
|
|
5151
|
-
var
|
|
5855
|
+
var containerStyles3 = import_react37.css`
|
|
5152
5856
|
@media (min-width: 768px) {
|
|
5153
5857
|
justify-content: space-between;
|
|
5154
5858
|
position: static;
|
|
5155
5859
|
}
|
|
5156
5860
|
`;
|
|
5157
|
-
var logoStyles2 =
|
|
5861
|
+
var logoStyles2 = import_react37.css`
|
|
5158
5862
|
width: 100%;
|
|
5159
5863
|
|
|
5160
5864
|
@media (min-width: 768px) {
|
|
5161
5865
|
width: initial;
|
|
5162
5866
|
}
|
|
5163
5867
|
`;
|
|
5164
|
-
var desktopNavStyles =
|
|
5868
|
+
var desktopNavStyles = import_react37.css`
|
|
5165
5869
|
display: none;
|
|
5166
5870
|
|
|
5167
5871
|
@media (min-width: 768px) {
|
|
@@ -5170,7 +5874,7 @@ var desktopNavStyles = import_react28.css`
|
|
|
5170
5874
|
gap: 32px;
|
|
5171
5875
|
}
|
|
5172
5876
|
`;
|
|
5173
|
-
var navLinksStyles =
|
|
5877
|
+
var navLinksStyles = import_react37.css`
|
|
5174
5878
|
display: flex;
|
|
5175
5879
|
align-items: center;
|
|
5176
5880
|
gap: 24px;
|
|
@@ -5178,7 +5882,7 @@ var navLinksStyles = import_react28.css`
|
|
|
5178
5882
|
margin: 0;
|
|
5179
5883
|
padding: 0;
|
|
5180
5884
|
`;
|
|
5181
|
-
var navLinkStyles =
|
|
5885
|
+
var navLinkStyles = import_react37.css`
|
|
5182
5886
|
text-decoration: none;
|
|
5183
5887
|
color: #374151;
|
|
5184
5888
|
font-weight: 500;
|
|
@@ -5194,7 +5898,7 @@ var navLinkStyles = import_react28.css`
|
|
|
5194
5898
|
outline-offset: 2px;
|
|
5195
5899
|
}
|
|
5196
5900
|
`;
|
|
5197
|
-
var avatarPlaceholderStyles =
|
|
5901
|
+
var avatarPlaceholderStyles = import_react37.css`
|
|
5198
5902
|
width: 32px;
|
|
5199
5903
|
height: 32px;
|
|
5200
5904
|
border-radius: 50%;
|
|
@@ -5219,7 +5923,7 @@ var avatarPlaceholderStyles = import_react28.css`
|
|
|
5219
5923
|
`;
|
|
5220
5924
|
|
|
5221
5925
|
// src/Navigation/Navigation.tsx
|
|
5222
|
-
var
|
|
5926
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
5223
5927
|
var Navigation = ({
|
|
5224
5928
|
onMenuToggle,
|
|
5225
5929
|
className,
|
|
@@ -5233,16 +5937,16 @@ var Navigation = ({
|
|
|
5233
5937
|
onAvatarClick,
|
|
5234
5938
|
...rest
|
|
5235
5939
|
}) => {
|
|
5236
|
-
return /* @__PURE__ */ (0,
|
|
5940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
|
|
5237
5941
|
Box_default,
|
|
5238
5942
|
{
|
|
5239
5943
|
display: "flex",
|
|
5240
5944
|
alignItems: "center",
|
|
5241
5945
|
padding: space[4],
|
|
5242
5946
|
position: "relative",
|
|
5243
|
-
css:
|
|
5947
|
+
css: containerStyles3,
|
|
5244
5948
|
children: [
|
|
5245
|
-
/* @__PURE__ */ (0,
|
|
5949
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5246
5950
|
Box_default,
|
|
5247
5951
|
{
|
|
5248
5952
|
as: "button",
|
|
@@ -5254,11 +5958,11 @@ var Navigation = ({
|
|
|
5254
5958
|
border: "none",
|
|
5255
5959
|
padding: space[2],
|
|
5256
5960
|
css: hamburgerButtonStyles,
|
|
5257
|
-
children: /* @__PURE__ */ (0,
|
|
5961
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Icon_default, { variant: "Bars", size: 6 })
|
|
5258
5962
|
}
|
|
5259
5963
|
),
|
|
5260
|
-
/* @__PURE__ */ (0,
|
|
5261
|
-
/* @__PURE__ */ (0,
|
|
5964
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
5965
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5262
5966
|
Logo_default,
|
|
5263
5967
|
{
|
|
5264
5968
|
variant: logoVariant,
|
|
@@ -5267,8 +5971,8 @@ var Navigation = ({
|
|
|
5267
5971
|
css: logoStyles2
|
|
5268
5972
|
}
|
|
5269
5973
|
) }),
|
|
5270
|
-
/* @__PURE__ */ (0,
|
|
5271
|
-
/* @__PURE__ */ (0,
|
|
5974
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
5975
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5272
5976
|
"a",
|
|
5273
5977
|
{
|
|
5274
5978
|
href: link.href,
|
|
@@ -5277,7 +5981,7 @@ var Navigation = ({
|
|
|
5277
5981
|
children: link.label
|
|
5278
5982
|
}
|
|
5279
5983
|
) }, link.href)) }) }),
|
|
5280
|
-
/* @__PURE__ */ (0,
|
|
5984
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5281
5985
|
Box_default,
|
|
5282
5986
|
{
|
|
5283
5987
|
as: "button",
|
|
@@ -5296,8 +6000,8 @@ var Navigation = ({
|
|
|
5296
6000
|
var Navigation_default = Navigation;
|
|
5297
6001
|
|
|
5298
6002
|
// src/PackageCard/PackageCard.styles.ts
|
|
5299
|
-
var
|
|
5300
|
-
var cardContainerStyles3 =
|
|
6003
|
+
var import_react38 = require("@emotion/react");
|
|
6004
|
+
var cardContainerStyles3 = import_react38.css`
|
|
5301
6005
|
color: var(--text-primary);
|
|
5302
6006
|
position: relative;
|
|
5303
6007
|
width: 100%;
|
|
@@ -5314,14 +6018,14 @@ var cardContainerStyles3 = import_react29.css`
|
|
|
5314
6018
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
5315
6019
|
}
|
|
5316
6020
|
`;
|
|
5317
|
-
var imageContainerStyles =
|
|
6021
|
+
var imageContainerStyles = import_react38.css`
|
|
5318
6022
|
position: relative;
|
|
5319
6023
|
width: 100%;
|
|
5320
6024
|
height: 200px;
|
|
5321
6025
|
overflow: hidden;
|
|
5322
6026
|
border-radius: var(--spacing-4);
|
|
5323
6027
|
`;
|
|
5324
|
-
var imageStyles =
|
|
6028
|
+
var imageStyles = import_react38.css`
|
|
5325
6029
|
width: 100%;
|
|
5326
6030
|
height: 100%;
|
|
5327
6031
|
background-size: cover;
|
|
@@ -5329,13 +6033,13 @@ var imageStyles = import_react29.css`
|
|
|
5329
6033
|
background-repeat: no-repeat;
|
|
5330
6034
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
5331
6035
|
`;
|
|
5332
|
-
var badgeStyles =
|
|
6036
|
+
var badgeStyles = import_react38.css`
|
|
5333
6037
|
position: absolute;
|
|
5334
6038
|
top: var(--spacing-3);
|
|
5335
6039
|
left: var(--spacing-3);
|
|
5336
6040
|
z-index: 2;
|
|
5337
6041
|
`;
|
|
5338
|
-
var heartIconStyles =
|
|
6042
|
+
var heartIconStyles = import_react38.css`
|
|
5339
6043
|
position: absolute;
|
|
5340
6044
|
top: var(--spacing-3);
|
|
5341
6045
|
right: var(--spacing-3);
|
|
@@ -5357,12 +6061,12 @@ var heartIconStyles = import_react29.css`
|
|
|
5357
6061
|
transform: scale(1.1);
|
|
5358
6062
|
}
|
|
5359
6063
|
`;
|
|
5360
|
-
var contentStyles2 =
|
|
6064
|
+
var contentStyles2 = import_react38.css`
|
|
5361
6065
|
padding: var(--spacing-3);
|
|
5362
6066
|
`;
|
|
5363
6067
|
|
|
5364
6068
|
// src/PackageCard/PackageCard.tsx
|
|
5365
|
-
var
|
|
6069
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
5366
6070
|
var PackageCard = ({
|
|
5367
6071
|
images,
|
|
5368
6072
|
title,
|
|
@@ -5379,13 +6083,13 @@ var PackageCard = ({
|
|
|
5379
6083
|
...rest
|
|
5380
6084
|
}) => {
|
|
5381
6085
|
const mainImage = images[0] || "";
|
|
5382
|
-
return /* @__PURE__ */ (0,
|
|
5383
|
-
/* @__PURE__ */ (0,
|
|
5384
|
-
tripsLeft && /* @__PURE__ */ (0,
|
|
6086
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: cardContainerStyles3, className, ...rest, children: [
|
|
6087
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { css: imageContainerStyles, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: [imageStyles, { backgroundImage: `url(${mainImage})` }], children: [
|
|
6088
|
+
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(AvailabilityChip_default, { variant: "warning", css: badgeStyles, children: [
|
|
5385
6089
|
tripsLeft,
|
|
5386
6090
|
" Trips Left"
|
|
5387
6091
|
] }),
|
|
5388
|
-
/* @__PURE__ */ (0,
|
|
6092
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5389
6093
|
Box_default,
|
|
5390
6094
|
{
|
|
5391
6095
|
css: heartIconStyles,
|
|
@@ -5393,12 +6097,12 @@ var PackageCard = ({
|
|
|
5393
6097
|
e.stopPropagation();
|
|
5394
6098
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
5395
6099
|
},
|
|
5396
|
-
children: /* @__PURE__ */ (0,
|
|
6100
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Icon_default, { variant: isFavorited ? "HeartSolid" : "Heart", size: 5 })
|
|
5397
6101
|
}
|
|
5398
6102
|
)
|
|
5399
6103
|
] }) }),
|
|
5400
|
-
/* @__PURE__ */ (0,
|
|
5401
|
-
/* @__PURE__ */ (0,
|
|
6104
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
6105
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
|
|
5402
6106
|
Box_default,
|
|
5403
6107
|
{
|
|
5404
6108
|
onClick,
|
|
@@ -5407,9 +6111,9 @@ var PackageCard = ({
|
|
|
5407
6111
|
gap: "var(--spacing-1)",
|
|
5408
6112
|
mb: "var(--spacing-4)",
|
|
5409
6113
|
children: [
|
|
5410
|
-
/* @__PURE__ */ (0,
|
|
5411
|
-
/* @__PURE__ */ (0,
|
|
5412
|
-
/* @__PURE__ */ (0,
|
|
6114
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
6115
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { size: "xs", fontWeight: "bold", children: subtitle }) }),
|
|
6116
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Text_default, { size: "xs", fontWeight: "normal", children: [
|
|
5413
6117
|
"Starting Price ",
|
|
5414
6118
|
startingPrice,
|
|
5415
6119
|
" / Guest"
|
|
@@ -5417,280 +6121,34 @@ var PackageCard = ({
|
|
|
5417
6121
|
]
|
|
5418
6122
|
}
|
|
5419
6123
|
),
|
|
5420
|
-
/* @__PURE__ */ (0,
|
|
5421
|
-
days && /* @__PURE__ */ (0,
|
|
6124
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { display: "flex", gap: "var(--spacing-3)", alignItems: "center", children: [
|
|
6125
|
+
days && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5422
6126
|
IconLabel_default,
|
|
5423
6127
|
{
|
|
5424
6128
|
variant: "Calendar",
|
|
5425
6129
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
5426
6130
|
}
|
|
5427
6131
|
),
|
|
5428
|
-
guests && /* @__PURE__ */ (0,
|
|
6132
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5429
6133
|
IconLabel_default,
|
|
5430
6134
|
{
|
|
5431
6135
|
variant: "User",
|
|
5432
6136
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
5433
6137
|
}
|
|
5434
6138
|
),
|
|
5435
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
6139
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
5436
6140
|
] })
|
|
5437
6141
|
] })
|
|
5438
6142
|
] });
|
|
5439
6143
|
};
|
|
5440
6144
|
var PackageCard_default = PackageCard;
|
|
5441
|
-
|
|
5442
|
-
// src/TagChip/TagChip.tsx
|
|
5443
|
-
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
5444
|
-
var TagChip = ({
|
|
5445
|
-
className,
|
|
5446
|
-
children
|
|
5447
|
-
}) => {
|
|
5448
|
-
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5449
|
-
Box_default,
|
|
5450
|
-
{
|
|
5451
|
-
display: "inline-flex",
|
|
5452
|
-
alignItems: "center",
|
|
5453
|
-
backgroundColor: "var(--surface-subtle)",
|
|
5454
|
-
borderRadius: "var(--spacing-6)",
|
|
5455
|
-
border: "1px solid var(--color-brown-200)",
|
|
5456
|
-
px: "var(--spacing-4)",
|
|
5457
|
-
py: "var(--spacing-3)",
|
|
5458
|
-
className,
|
|
5459
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Text_default, { as: "span", size: "xs", fontWeight: "normal", children })
|
|
5460
|
-
}
|
|
5461
|
-
);
|
|
5462
|
-
};
|
|
5463
|
-
var TagChip_default = TagChip;
|
|
5464
|
-
|
|
5465
|
-
// src/Widget/Widget.tsx
|
|
5466
|
-
var import_react31 = require("react");
|
|
5467
|
-
|
|
5468
|
-
// src/Widget/Widget.styles.ts
|
|
5469
|
-
var import_react30 = require("@emotion/react");
|
|
5470
|
-
var fixedContainer = import_react30.css`
|
|
5471
|
-
position: fixed;
|
|
5472
|
-
right: var(--spacing-6);
|
|
5473
|
-
bottom: var(--spacing-6);
|
|
5474
|
-
z-index: 50;
|
|
5475
|
-
`;
|
|
5476
|
-
var panelContainer = import_react30.css`
|
|
5477
|
-
position: absolute;
|
|
5478
|
-
right: 0;
|
|
5479
|
-
bottom: 0;
|
|
5480
|
-
z-index: 1;
|
|
5481
|
-
|
|
5482
|
-
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
5483
|
-
position: fixed;
|
|
5484
|
-
inset: 0;
|
|
5485
|
-
right: 0;
|
|
5486
|
-
bottom: 0;
|
|
5487
|
-
display: flex;
|
|
5488
|
-
align-items: stretch;
|
|
5489
|
-
justify-content: stretch;
|
|
5490
|
-
}
|
|
5491
|
-
`;
|
|
5492
|
-
var panelCard = (width2) => import_react30.css`
|
|
5493
|
-
background: var(--surface-page);
|
|
5494
|
-
color: var(--text-primary);
|
|
5495
|
-
border: 1px solid var(--border-primary);
|
|
5496
|
-
border-radius: var(--radius-lg);
|
|
5497
|
-
padding: var(--spacing-4);
|
|
5498
|
-
max-height: 70vh;
|
|
5499
|
-
overflow: auto;
|
|
5500
|
-
box-shadow: 0 0 var(--shadow-blur-lg, 24px) var(--shadow-spread-xs, -4px)
|
|
5501
|
-
rgba(17, 17, 17, 0.1);
|
|
5502
|
-
|
|
5503
|
-
/* Width passed from props (desktop/tablet) */
|
|
5504
|
-
width: ${typeof width2 === "number" ? `${width2}px` : width2};
|
|
5505
|
-
|
|
5506
|
-
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
5507
|
-
width: 100vw;
|
|
5508
|
-
height: 100vh;
|
|
5509
|
-
max-height: 100vh;
|
|
5510
|
-
border-radius: 0;
|
|
5511
|
-
padding: var(--spacing-4);
|
|
5512
|
-
overflow: auto;
|
|
5513
|
-
}
|
|
5514
|
-
`;
|
|
5515
|
-
var headerRow = import_react30.css`
|
|
5516
|
-
display: flex;
|
|
5517
|
-
align-items: center;
|
|
5518
|
-
justify-content: space-between;
|
|
5519
|
-
gap: var(--spacing-4);
|
|
5520
|
-
`;
|
|
5521
|
-
var badge = import_react30.css`
|
|
5522
|
-
width: 42px;
|
|
5523
|
-
height: 42px;
|
|
5524
|
-
border-radius: 9999px;
|
|
5525
|
-
display: inline-flex;
|
|
5526
|
-
align-items: center;
|
|
5527
|
-
justify-content: center;
|
|
5528
|
-
background-color: var(--color-primary-500);
|
|
5529
|
-
color: var(--color-base-white);
|
|
5530
|
-
`;
|
|
5531
|
-
var closeButtonContent = import_react30.css`
|
|
5532
|
-
display: inline-flex;
|
|
5533
|
-
align-items: center;
|
|
5534
|
-
gap: var(--spacing-2);
|
|
5535
|
-
`;
|
|
5536
|
-
var closeButtonIcon = import_react30.css`
|
|
5537
|
-
display: block;
|
|
5538
|
-
`;
|
|
5539
|
-
|
|
5540
|
-
// src/Widget/Widget.tsx
|
|
5541
|
-
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5542
|
-
var WidgetContext = (0, import_react31.createContext)(null);
|
|
5543
|
-
var useWidgetContext = () => {
|
|
5544
|
-
const ctx = (0, import_react31.useContext)(WidgetContext);
|
|
5545
|
-
if (!ctx)
|
|
5546
|
-
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
5547
|
-
return ctx;
|
|
5548
|
-
};
|
|
5549
|
-
var WidgetTrigger = () => {
|
|
5550
|
-
const { expanded, toggle, triggerRef, icon, expandedIcon } = useWidgetContext();
|
|
5551
|
-
const currentIcon = expanded ? expandedIcon : icon;
|
|
5552
|
-
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(import_jsx_runtime220.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5553
|
-
Button_default,
|
|
5554
|
-
{
|
|
5555
|
-
ref: triggerRef,
|
|
5556
|
-
"aria-expanded": expanded,
|
|
5557
|
-
"aria-haspopup": "dialog",
|
|
5558
|
-
onClick: toggle,
|
|
5559
|
-
size: "lg",
|
|
5560
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Icon_default, { variant: currentIcon, size: 8 })
|
|
5561
|
-
}
|
|
5562
|
-
) });
|
|
5563
|
-
};
|
|
5564
|
-
var WidgetPanel = ({ className, style, children }) => {
|
|
5565
|
-
const { expanded, panelWidth, header, icon, toggle } = useWidgetContext();
|
|
5566
|
-
if (!expanded)
|
|
5567
|
-
return null;
|
|
5568
|
-
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)("div", { css: panelContainer, className, style, children: /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(Box_default, { css: panelCard(panelWidth), role: "dialog", "aria-modal": true, children: [
|
|
5569
|
-
header && /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(import_jsx_runtime220.Fragment, { children: [
|
|
5570
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsxs)("div", { css: headerRow, children: [
|
|
5571
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 16 }, children: [
|
|
5572
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Icon_default, { variant: icon, size: 6 }) }),
|
|
5573
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", color: "gray.900", children: header })
|
|
5574
|
-
] }),
|
|
5575
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5576
|
-
Button_default,
|
|
5577
|
-
{
|
|
5578
|
-
variant: "text",
|
|
5579
|
-
size: "xs",
|
|
5580
|
-
"aria-label": "Close widget",
|
|
5581
|
-
onClick: toggle,
|
|
5582
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)("span", { css: closeButtonContent, children: [
|
|
5583
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Icon_default, { variant: "Xmark", size: 5, css: closeButtonIcon }),
|
|
5584
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("span", { children: "Close" })
|
|
5585
|
-
] })
|
|
5586
|
-
}
|
|
5587
|
-
)
|
|
5588
|
-
] }),
|
|
5589
|
-
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Divider_default, {})
|
|
5590
|
-
] }),
|
|
5591
|
-
children
|
|
5592
|
-
] }) });
|
|
5593
|
-
};
|
|
5594
|
-
var WidgetRoot = ({
|
|
5595
|
-
ariaLabel,
|
|
5596
|
-
icon = "Plus",
|
|
5597
|
-
expandedIcon = "Xmark",
|
|
5598
|
-
defaultExpanded = false,
|
|
5599
|
-
expanded,
|
|
5600
|
-
onExpandedChange,
|
|
5601
|
-
size,
|
|
5602
|
-
panelWidth,
|
|
5603
|
-
className,
|
|
5604
|
-
children,
|
|
5605
|
-
header
|
|
5606
|
-
}) => {
|
|
5607
|
-
const [internalExpanded, setInternalExpanded] = (0, import_react31.useState)(defaultExpanded);
|
|
5608
|
-
const isControlled = typeof expanded === "boolean";
|
|
5609
|
-
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
5610
|
-
const triggerRef = (0, import_react31.useRef)(null);
|
|
5611
|
-
const containerRef = (0, import_react31.useRef)(null);
|
|
5612
|
-
const setExpanded = (0, import_react31.useCallback)(
|
|
5613
|
-
(next) => {
|
|
5614
|
-
if (!isControlled)
|
|
5615
|
-
setInternalExpanded(next);
|
|
5616
|
-
onExpandedChange == null ? void 0 : onExpandedChange(next);
|
|
5617
|
-
if (!next) {
|
|
5618
|
-
setTimeout(() => {
|
|
5619
|
-
var _a;
|
|
5620
|
-
return (_a = triggerRef.current) == null ? void 0 : _a.focus();
|
|
5621
|
-
}, 0);
|
|
5622
|
-
}
|
|
5623
|
-
},
|
|
5624
|
-
[isControlled, onExpandedChange]
|
|
5625
|
-
);
|
|
5626
|
-
const toggle = (0, import_react31.useCallback)(
|
|
5627
|
-
() => setExpanded(!isExpanded),
|
|
5628
|
-
[isExpanded, setExpanded]
|
|
5629
|
-
);
|
|
5630
|
-
(0, import_react31.useEffect)(() => {
|
|
5631
|
-
if (!isExpanded)
|
|
5632
|
-
return;
|
|
5633
|
-
const onDocClick = (e) => {
|
|
5634
|
-
const target = e.target;
|
|
5635
|
-
if (!containerRef.current)
|
|
5636
|
-
return;
|
|
5637
|
-
if (!containerRef.current.contains(target)) {
|
|
5638
|
-
setExpanded(false);
|
|
5639
|
-
}
|
|
5640
|
-
};
|
|
5641
|
-
document.addEventListener("mousedown", onDocClick);
|
|
5642
|
-
return () => document.removeEventListener("mousedown", onDocClick);
|
|
5643
|
-
}, [isExpanded, setExpanded]);
|
|
5644
|
-
(0, import_react31.useEffect)(() => {
|
|
5645
|
-
if (!isExpanded)
|
|
5646
|
-
return;
|
|
5647
|
-
const onKey = (e) => {
|
|
5648
|
-
if (e.key === "Escape")
|
|
5649
|
-
setExpanded(false);
|
|
5650
|
-
};
|
|
5651
|
-
document.addEventListener("keydown", onKey);
|
|
5652
|
-
return () => document.removeEventListener("keydown", onKey);
|
|
5653
|
-
}, [isExpanded, setExpanded]);
|
|
5654
|
-
const sizePx = (0, import_react31.useMemo)(() => {
|
|
5655
|
-
if (typeof size === "number")
|
|
5656
|
-
return size;
|
|
5657
|
-
return 56;
|
|
5658
|
-
}, [size]);
|
|
5659
|
-
const value = (0, import_react31.useMemo)(
|
|
5660
|
-
() => ({
|
|
5661
|
-
expanded: isExpanded,
|
|
5662
|
-
toggle,
|
|
5663
|
-
triggerRef,
|
|
5664
|
-
icon,
|
|
5665
|
-
expandedIcon,
|
|
5666
|
-
sizePx,
|
|
5667
|
-
panelWidth: panelWidth != null ? panelWidth : 360,
|
|
5668
|
-
header
|
|
5669
|
-
}),
|
|
5670
|
-
[expandedIcon, icon, isExpanded, panelWidth, sizePx, toggle, header]
|
|
5671
|
-
);
|
|
5672
|
-
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5673
|
-
"div",
|
|
5674
|
-
{
|
|
5675
|
-
ref: containerRef,
|
|
5676
|
-
css: fixedContainer,
|
|
5677
|
-
className,
|
|
5678
|
-
"aria-label": ariaLabel,
|
|
5679
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(WidgetContext.Provider, { value, children })
|
|
5680
|
-
}
|
|
5681
|
-
);
|
|
5682
|
-
};
|
|
5683
|
-
var Widget = Object.assign(WidgetRoot, {
|
|
5684
|
-
Trigger: WidgetTrigger,
|
|
5685
|
-
Panel: WidgetPanel
|
|
5686
|
-
});
|
|
5687
|
-
var Widget_default = Widget;
|
|
5688
6145
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5689
6146
|
0 && (module.exports = {
|
|
5690
6147
|
AIResponse,
|
|
5691
6148
|
AvailabilityChip,
|
|
5692
6149
|
Box,
|
|
5693
6150
|
Button,
|
|
6151
|
+
ChatWidget,
|
|
5694
6152
|
Column,
|
|
5695
6153
|
Container,
|
|
5696
6154
|
Divider,
|
|
@@ -5705,11 +6163,13 @@ var Widget_default = Widget;
|
|
|
5705
6163
|
IconLabel,
|
|
5706
6164
|
Input,
|
|
5707
6165
|
LayoutTokens,
|
|
6166
|
+
ListingChat,
|
|
5708
6167
|
Logo,
|
|
5709
6168
|
MessageBubble,
|
|
5710
6169
|
Navigation,
|
|
5711
6170
|
PackageCard,
|
|
5712
6171
|
Select,
|
|
6172
|
+
Spinner,
|
|
5713
6173
|
TagChip,
|
|
5714
6174
|
Text,
|
|
5715
6175
|
TextArea,
|