@landtrustinc/design-system 1.1.1 → 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.d.ts +56 -27
- package/dist/index.js +1159 -908
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/variables.css +0 -212
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,
|
|
@@ -54,6 +55,7 @@ __export(src_exports, {
|
|
|
54
55
|
Navigation: () => Navigation_default,
|
|
55
56
|
PackageCard: () => PackageCard_default,
|
|
56
57
|
Select: () => Select,
|
|
58
|
+
Spinner: () => Spinner_default2,
|
|
57
59
|
TagChip: () => TagChip_default,
|
|
58
60
|
Text: () => Text_default,
|
|
59
61
|
TextArea: () => TextArea,
|
|
@@ -703,6 +705,8 @@ __export(components_exports, {
|
|
|
703
705
|
Telescope: () => Telescope_default,
|
|
704
706
|
Tent: () => Tent_default,
|
|
705
707
|
TentSolid: () => TentSolid_default,
|
|
708
|
+
ThumbsDown: () => ThumbsDown_default,
|
|
709
|
+
ThumbsDownSolid: () => ThumbsDownSolid_default,
|
|
706
710
|
ThumbsUp: () => ThumbsUp_default,
|
|
707
711
|
ThumbsUpSolid: () => ThumbsUpSolid_default,
|
|
708
712
|
Trash: () => Trash_default,
|
|
@@ -2496,36 +2500,15 @@ var SvgSpinner = (props) => /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
|
|
|
2496
2500
|
"svg",
|
|
2497
2501
|
{
|
|
2498
2502
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2499
|
-
|
|
2500
|
-
viewBox: "0 0 30 30",
|
|
2503
|
+
viewBox: "3 2.903 20 19.832",
|
|
2501
2504
|
...props,
|
|
2502
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime160.
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
dur: "0.9s",
|
|
2510
|
-
keyTimes: "0;0.5;1",
|
|
2511
|
-
repeatCount: "indefinite",
|
|
2512
|
-
type: "rotate",
|
|
2513
|
-
values: "0 15 15;180 15 15;720 15 15"
|
|
2514
|
-
}
|
|
2515
|
-
),
|
|
2516
|
-
/* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
|
|
2517
|
-
"animate",
|
|
2518
|
-
{
|
|
2519
|
-
attributeName: "stroke-dasharray",
|
|
2520
|
-
begin: "0s",
|
|
2521
|
-
calcMode: "linear",
|
|
2522
|
-
dur: "0.9s",
|
|
2523
|
-
keyTimes: "0;0.5;1",
|
|
2524
|
-
repeatCount: "indefinite",
|
|
2525
|
-
values: "9 56;46 14;9 56"
|
|
2526
|
-
}
|
|
2527
|
-
)
|
|
2528
|
-
] })
|
|
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
|
+
)
|
|
2529
2512
|
}
|
|
2530
2513
|
);
|
|
2531
2514
|
var Spinner_default = SvgSpinner;
|
|
@@ -2617,35 +2600,51 @@ var import_jsx_runtime173 = require("@emotion/react/jsx-runtime");
|
|
|
2617
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" }) });
|
|
2618
2601
|
var Tent_default = SvgTent;
|
|
2619
2602
|
|
|
2620
|
-
// src/Icon/components/
|
|
2603
|
+
// src/Icon/components/ThumbsDownSolid.tsx
|
|
2621
2604
|
var import_jsx_runtime174 = require("@emotion/react/jsx-runtime");
|
|
2622
|
-
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" }) });
|
|
2623
2616
|
var ThumbsUpSolid_default = SvgThumbsUpSolid;
|
|
2624
2617
|
|
|
2625
2618
|
// src/Icon/components/ThumbsUp.tsx
|
|
2626
|
-
var
|
|
2627
|
-
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
|
+
) });
|
|
2628
2627
|
var ThumbsUp_default = SvgThumbsUp;
|
|
2629
2628
|
|
|
2630
2629
|
// src/Icon/components/TrashSolid.tsx
|
|
2631
|
-
var
|
|
2632
|
-
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" }) });
|
|
2633
2632
|
var TrashSolid_default = SvgTrashSolid;
|
|
2634
2633
|
|
|
2635
2634
|
// src/Icon/components/Trash.tsx
|
|
2636
|
-
var
|
|
2637
|
-
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" }) });
|
|
2638
2637
|
var Trash_default = SvgTrash;
|
|
2639
2638
|
|
|
2640
2639
|
// src/Icon/components/TreeDecorated.tsx
|
|
2641
|
-
var
|
|
2642
|
-
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" }) });
|
|
2643
2642
|
var TreeDecorated_default = SvgTreeDecorated;
|
|
2644
2643
|
|
|
2645
2644
|
// src/Icon/components/TreeStand.tsx
|
|
2646
|
-
var
|
|
2647
|
-
var SvgTreeStand = (props) => /* @__PURE__ */ (0,
|
|
2648
|
-
/* @__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)(
|
|
2649
2648
|
"path",
|
|
2650
2649
|
{
|
|
2651
2650
|
fillRule: "evenodd",
|
|
@@ -2653,7 +2652,7 @@ var SvgTreeStand = (props) => /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("s
|
|
|
2653
2652
|
clipRule: "evenodd"
|
|
2654
2653
|
}
|
|
2655
2654
|
),
|
|
2656
|
-
/* @__PURE__ */ (0,
|
|
2655
|
+
/* @__PURE__ */ (0, import_jsx_runtime181.jsx)(
|
|
2657
2656
|
"path",
|
|
2658
2657
|
{
|
|
2659
2658
|
fillRule: "evenodd",
|
|
@@ -2665,25 +2664,25 @@ var SvgTreeStand = (props) => /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("s
|
|
|
2665
2664
|
var TreeStand_default = SvgTreeStand;
|
|
2666
2665
|
|
|
2667
2666
|
// src/Icon/components/Trees.tsx
|
|
2668
|
-
var
|
|
2669
|
-
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" }) });
|
|
2670
2669
|
var Trees_default = SvgTrees;
|
|
2671
2670
|
|
|
2672
2671
|
// src/Icon/components/Turkey.tsx
|
|
2673
|
-
var
|
|
2674
|
-
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" }) });
|
|
2675
2674
|
var Turkey_default = SvgTurkey;
|
|
2676
2675
|
|
|
2677
2676
|
// src/Icon/components/Upland.tsx
|
|
2678
|
-
var
|
|
2679
|
-
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" }) });
|
|
2680
2679
|
var Upland_default = SvgUpland;
|
|
2681
2680
|
|
|
2682
2681
|
// src/Icon/components/UsFlag.tsx
|
|
2683
|
-
var
|
|
2684
|
-
var SvgUsFlag = (props) => /* @__PURE__ */ (0,
|
|
2685
|
-
/* @__PURE__ */ (0,
|
|
2686
|
-
/* @__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)(
|
|
2687
2686
|
"path",
|
|
2688
2687
|
{
|
|
2689
2688
|
fill: "#000",
|
|
@@ -2692,8 +2691,8 @@ var SvgUsFlag = (props) => /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("svg",
|
|
|
2692
2691
|
d: "M0 12.673h200m0 16.23H0m0 16.232h200m0 16.23H0m0 16.231h200m0 16.23H0"
|
|
2693
2692
|
}
|
|
2694
2693
|
),
|
|
2695
|
-
/* @__PURE__ */ (0,
|
|
2696
|
-
/* @__PURE__ */ (0,
|
|
2694
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)("path", { fill: "#3C3B6E", d: "M0 .5h80v56.808H0z" }),
|
|
2695
|
+
/* @__PURE__ */ (0, import_jsx_runtime185.jsx)(
|
|
2697
2696
|
"path",
|
|
2698
2697
|
{
|
|
2699
2698
|
fill: "#FFF",
|
|
@@ -2704,23 +2703,23 @@ var SvgUsFlag = (props) => /* @__PURE__ */ (0, import_jsx_runtime183.jsx)("svg",
|
|
|
2704
2703
|
var UsFlag_default = SvgUsFlag;
|
|
2705
2704
|
|
|
2706
2705
|
// src/Icon/components/UserSolid.tsx
|
|
2707
|
-
var
|
|
2708
|
-
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" }) });
|
|
2709
2708
|
var UserSolid_default = SvgUserSolid;
|
|
2710
2709
|
|
|
2711
2710
|
// src/Icon/components/User.tsx
|
|
2712
|
-
var
|
|
2713
|
-
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" }) });
|
|
2714
2713
|
var User_default = SvgUser;
|
|
2715
2714
|
|
|
2716
2715
|
// src/Icon/components/Users.tsx
|
|
2717
|
-
var
|
|
2718
|
-
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" }) });
|
|
2719
2718
|
var Users_default = SvgUsers;
|
|
2720
2719
|
|
|
2721
2720
|
// src/Icon/components/WaterTap.tsx
|
|
2722
|
-
var
|
|
2723
|
-
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)(
|
|
2724
2723
|
"path",
|
|
2725
2724
|
{
|
|
2726
2725
|
fillRule: "evenodd",
|
|
@@ -2731,32 +2730,32 @@ var SvgWaterTap = (props) => /* @__PURE__ */ (0, import_jsx_runtime187.jsx)("svg
|
|
|
2731
2730
|
var WaterTap_default = SvgWaterTap;
|
|
2732
2731
|
|
|
2733
2732
|
// src/Icon/components/Water.tsx
|
|
2734
|
-
var
|
|
2735
|
-
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" }) });
|
|
2736
2735
|
var Water_default = SvgWater;
|
|
2737
2736
|
|
|
2738
2737
|
// src/Icon/components/Waterfowl.tsx
|
|
2739
|
-
var
|
|
2740
|
-
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" }) });
|
|
2741
2740
|
var Waterfowl_default = SvgWaterfowl;
|
|
2742
2741
|
|
|
2743
2742
|
// src/Icon/components/Whitetail.tsx
|
|
2744
|
-
var
|
|
2745
|
-
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" }) });
|
|
2746
2745
|
var Whitetail_default = SvgWhitetail;
|
|
2747
2746
|
|
|
2748
2747
|
// src/Icon/components/Xmark.tsx
|
|
2749
|
-
var
|
|
2750
|
-
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" }) });
|
|
2751
2750
|
var Xmark_default = SvgXmark;
|
|
2752
2751
|
|
|
2753
2752
|
// src/Icon/components/YoutubeSquare.tsx
|
|
2754
|
-
var
|
|
2755
|
-
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" }) });
|
|
2756
2755
|
var YoutubeSquare_default = SvgYoutubeSquare;
|
|
2757
2756
|
|
|
2758
2757
|
// src/Icon/Icon.tsx
|
|
2759
|
-
var
|
|
2758
|
+
var import_jsx_runtime195 = require("@emotion/react/jsx-runtime");
|
|
2760
2759
|
var iconStyles = (size, setAutoHeight, fill) => import_react2.css`
|
|
2761
2760
|
width: ${space[size]};
|
|
2762
2761
|
height: ${space[size]};
|
|
@@ -2775,7 +2774,7 @@ var Icon = ({
|
|
|
2775
2774
|
if (!Component) {
|
|
2776
2775
|
throw new Error(`invalid variant [${variant}]`);
|
|
2777
2776
|
}
|
|
2778
|
-
return /* @__PURE__ */ (0,
|
|
2777
|
+
return /* @__PURE__ */ (0, import_jsx_runtime195.jsx)(
|
|
2779
2778
|
Component,
|
|
2780
2779
|
{
|
|
2781
2780
|
css: iconStyles(size, setAutoHeight, fill),
|
|
@@ -3073,7 +3072,7 @@ var labelStyles = (isVisible) => () => import_react3.css`
|
|
|
3073
3072
|
`;
|
|
3074
3073
|
|
|
3075
3074
|
// src/Button/Button.tsx
|
|
3076
|
-
var
|
|
3075
|
+
var import_jsx_runtime196 = require("@emotion/react/jsx-runtime");
|
|
3077
3076
|
var Button = import_react5.default.forwardRef(
|
|
3078
3077
|
({
|
|
3079
3078
|
as: Component = "button",
|
|
@@ -3092,7 +3091,7 @@ var Button = import_react5.default.forwardRef(
|
|
|
3092
3091
|
const componentType = Component === "button" ? type : void 0;
|
|
3093
3092
|
const sizeKey = `size${(0, import_lodash.upperFirst)(size)}`;
|
|
3094
3093
|
const isIconOnly = icon && !children;
|
|
3095
|
-
return /* @__PURE__ */ (0,
|
|
3094
|
+
return /* @__PURE__ */ (0, import_jsx_runtime196.jsxs)(
|
|
3096
3095
|
Component,
|
|
3097
3096
|
{
|
|
3098
3097
|
ref,
|
|
@@ -3110,8 +3109,8 @@ var Button = import_react5.default.forwardRef(
|
|
|
3110
3109
|
...props,
|
|
3111
3110
|
children: [
|
|
3112
3111
|
icon,
|
|
3113
|
-
children && /* @__PURE__ */ (0,
|
|
3114
|
-
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) })
|
|
3115
3114
|
]
|
|
3116
3115
|
}
|
|
3117
3116
|
);
|
|
@@ -3145,7 +3144,7 @@ var Box_default = Box;
|
|
|
3145
3144
|
|
|
3146
3145
|
// src/Box/Container.tsx
|
|
3147
3146
|
var import_react6 = require("@emotion/react");
|
|
3148
|
-
var
|
|
3147
|
+
var import_jsx_runtime197 = require("@emotion/react/jsx-runtime");
|
|
3149
3148
|
var baseStyles = import_react6.css`
|
|
3150
3149
|
width: 100%;
|
|
3151
3150
|
margin: 0 auto;
|
|
@@ -3179,7 +3178,7 @@ var Container = ({
|
|
|
3179
3178
|
isFullWidth = false,
|
|
3180
3179
|
...props
|
|
3181
3180
|
}) => {
|
|
3182
|
-
return /* @__PURE__ */ (0,
|
|
3181
|
+
return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(
|
|
3183
3182
|
Box_default,
|
|
3184
3183
|
{
|
|
3185
3184
|
css: [baseStyles, isFullWidth && fullWidthStyles],
|
|
@@ -3381,7 +3380,7 @@ var textFontWeightStyles = {
|
|
|
3381
3380
|
};
|
|
3382
3381
|
|
|
3383
3382
|
// src/Typography/Heading.tsx
|
|
3384
|
-
var
|
|
3383
|
+
var import_jsx_runtime198 = require("@emotion/react/jsx-runtime");
|
|
3385
3384
|
var SIZE_TO_ELEMENT_MAP = {
|
|
3386
3385
|
xl: "h1",
|
|
3387
3386
|
lg: "h2",
|
|
@@ -3411,7 +3410,7 @@ var Heading = ({
|
|
|
3411
3410
|
...props
|
|
3412
3411
|
}) => {
|
|
3413
3412
|
const elementType = as != null ? as : SIZE_TO_ELEMENT_MAP[size];
|
|
3414
|
-
return /* @__PURE__ */ (0,
|
|
3413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
|
|
3415
3414
|
StyledHeading,
|
|
3416
3415
|
{
|
|
3417
3416
|
as: elementType,
|
|
@@ -3558,7 +3557,7 @@ var textWrapStyles2 = {
|
|
|
3558
3557
|
};
|
|
3559
3558
|
|
|
3560
3559
|
// src/Typography/Text.tsx
|
|
3561
|
-
var
|
|
3560
|
+
var import_jsx_runtime199 = require("@emotion/react/jsx-runtime");
|
|
3562
3561
|
var StyledText = (0, import_styled3.default)("p")`
|
|
3563
3562
|
${({ size = "md" }) => textSizeStyles[size]}
|
|
3564
3563
|
${({ fontWeight = "normal" }) => textFontWeightStyles2[fontWeight]}
|
|
@@ -3580,7 +3579,7 @@ var Text = ({
|
|
|
3580
3579
|
...props
|
|
3581
3580
|
}) => {
|
|
3582
3581
|
const elementType = as;
|
|
3583
|
-
return /* @__PURE__ */ (0,
|
|
3582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
|
|
3584
3583
|
StyledText,
|
|
3585
3584
|
{
|
|
3586
3585
|
as: elementType,
|
|
@@ -3599,7 +3598,7 @@ var Text = ({
|
|
|
3599
3598
|
var Text_default = Text;
|
|
3600
3599
|
|
|
3601
3600
|
// src/IconLabel/IconLabel.tsx
|
|
3602
|
-
var
|
|
3601
|
+
var import_jsx_runtime200 = require("@emotion/react/jsx-runtime");
|
|
3603
3602
|
var IconLabel = ({
|
|
3604
3603
|
variant,
|
|
3605
3604
|
label,
|
|
@@ -3607,7 +3606,7 @@ var IconLabel = ({
|
|
|
3607
3606
|
className,
|
|
3608
3607
|
...rest
|
|
3609
3608
|
}) => {
|
|
3610
|
-
return /* @__PURE__ */ (0,
|
|
3609
|
+
return /* @__PURE__ */ (0, import_jsx_runtime200.jsxs)(
|
|
3611
3610
|
Box_default,
|
|
3612
3611
|
{
|
|
3613
3612
|
display: "flex",
|
|
@@ -3616,8 +3615,8 @@ var IconLabel = ({
|
|
|
3616
3615
|
className,
|
|
3617
3616
|
...rest,
|
|
3618
3617
|
children: [
|
|
3619
|
-
/* @__PURE__ */ (0,
|
|
3620
|
-
/* @__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 })
|
|
3621
3620
|
]
|
|
3622
3621
|
}
|
|
3623
3622
|
);
|
|
@@ -3657,7 +3656,7 @@ var errorRetryStyles = import_react9.css`
|
|
|
3657
3656
|
`;
|
|
3658
3657
|
|
|
3659
3658
|
// src/AIResponse/AIResponse.tsx
|
|
3660
|
-
var
|
|
3659
|
+
var import_jsx_runtime201 = require("@emotion/react/jsx-runtime");
|
|
3661
3660
|
var AIResponse = ({
|
|
3662
3661
|
title = `Here\u2019s what I found`,
|
|
3663
3662
|
showDisclaimer = true,
|
|
@@ -3670,7 +3669,9 @@ var AIResponse = ({
|
|
|
3670
3669
|
onErrorRetry,
|
|
3671
3670
|
helpfulDebounceMs = 1e3
|
|
3672
3671
|
}) => {
|
|
3673
|
-
const [
|
|
3672
|
+
const [visualHelpful, setVisualHelpful] = (0, import_react10.useState)(
|
|
3673
|
+
void 0
|
|
3674
|
+
);
|
|
3674
3675
|
const debounceTimerRef = (0, import_react10.useRef)(null);
|
|
3675
3676
|
const DEBOUNCE_MS = helpfulDebounceMs;
|
|
3676
3677
|
const scheduleCallback = (next) => {
|
|
@@ -3689,13 +3690,13 @@ var AIResponse = ({
|
|
|
3689
3690
|
}
|
|
3690
3691
|
};
|
|
3691
3692
|
const handleHelpfulYes = () => {
|
|
3692
|
-
const next =
|
|
3693
|
-
|
|
3693
|
+
const next = visualHelpful === "yes" ? void 0 : "yes";
|
|
3694
|
+
setVisualHelpful(next);
|
|
3694
3695
|
scheduleCallback(next);
|
|
3695
3696
|
};
|
|
3696
3697
|
const handleHelpfulNo = () => {
|
|
3697
|
-
const next =
|
|
3698
|
-
|
|
3698
|
+
const next = visualHelpful === "no" ? void 0 : "no";
|
|
3699
|
+
setVisualHelpful(next);
|
|
3699
3700
|
scheduleCallback(next);
|
|
3700
3701
|
};
|
|
3701
3702
|
(0, import_react10.useEffect)(() => {
|
|
@@ -3705,50 +3706,50 @@ var AIResponse = ({
|
|
|
3705
3706
|
}
|
|
3706
3707
|
};
|
|
3707
3708
|
}, []);
|
|
3708
|
-
return /* @__PURE__ */ (0,
|
|
3709
|
-
variant !== "error" && /* @__PURE__ */ (0,
|
|
3710
|
-
/* @__PURE__ */ (0,
|
|
3711
|
-
/* @__PURE__ */ (0,
|
|
3712
|
-
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0,
|
|
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)(
|
|
3713
3714
|
IconLabel_default,
|
|
3714
3715
|
{
|
|
3715
3716
|
variant: "AiMagic",
|
|
3716
3717
|
label: "This AI summary was generated from the property information from this package. This answer may display incorrect information.",
|
|
3717
|
-
iconSize:
|
|
3718
|
+
iconSize: 10
|
|
3718
3719
|
}
|
|
3719
3720
|
),
|
|
3720
|
-
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" }) }) })
|
|
3721
3722
|
] }),
|
|
3722
|
-
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0,
|
|
3723
|
-
/* @__PURE__ */ (0,
|
|
3724
|
-
/* @__PURE__ */ (0,
|
|
3725
|
-
/* @__PURE__ */ (0,
|
|
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)(
|
|
3726
3727
|
Button_default,
|
|
3727
3728
|
{
|
|
3728
3729
|
variant: "text",
|
|
3729
3730
|
size: "xs",
|
|
3730
3731
|
onClick: handleHelpfulYes,
|
|
3731
|
-
"aria-pressed":
|
|
3732
|
-
children: /* @__PURE__ */ (0,
|
|
3732
|
+
"aria-pressed": visualHelpful === "yes",
|
|
3733
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
3733
3734
|
IconLabel_default,
|
|
3734
3735
|
{
|
|
3735
|
-
variant:
|
|
3736
|
+
variant: visualHelpful === "yes" ? "ThumbsUpSolid" : "ThumbsUp",
|
|
3736
3737
|
label: "Yes"
|
|
3737
3738
|
}
|
|
3738
3739
|
)
|
|
3739
3740
|
}
|
|
3740
3741
|
),
|
|
3741
|
-
/* @__PURE__ */ (0,
|
|
3742
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
3742
3743
|
Button_default,
|
|
3743
3744
|
{
|
|
3744
3745
|
variant: "text",
|
|
3745
3746
|
size: "xs",
|
|
3746
3747
|
onClick: handleHelpfulNo,
|
|
3747
|
-
"aria-pressed":
|
|
3748
|
-
children: /* @__PURE__ */ (0,
|
|
3748
|
+
"aria-pressed": visualHelpful === "no",
|
|
3749
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
3749
3750
|
IconLabel_default,
|
|
3750
3751
|
{
|
|
3751
|
-
variant:
|
|
3752
|
+
variant: visualHelpful === "no" ? "ThumbsDownSolid" : "ThumbsDown",
|
|
3752
3753
|
label: "No"
|
|
3753
3754
|
}
|
|
3754
3755
|
)
|
|
@@ -3782,13 +3783,13 @@ var availabilityChipVariantStyles = {
|
|
|
3782
3783
|
};
|
|
3783
3784
|
|
|
3784
3785
|
// src/AvailabilityChip/AvailabilityChip.tsx
|
|
3785
|
-
var
|
|
3786
|
+
var import_jsx_runtime202 = require("@emotion/react/jsx-runtime");
|
|
3786
3787
|
var AvailabilityChip = ({
|
|
3787
3788
|
children,
|
|
3788
3789
|
variant,
|
|
3789
3790
|
className
|
|
3790
3791
|
}) => {
|
|
3791
|
-
return /* @__PURE__ */ (0,
|
|
3792
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3792
3793
|
Box_default,
|
|
3793
3794
|
{
|
|
3794
3795
|
display: "inline-flex",
|
|
@@ -3798,12 +3799,19 @@ var AvailabilityChip = ({
|
|
|
3798
3799
|
borderRadius: "var(--spacing-2)",
|
|
3799
3800
|
css: availabilityChipVariantStyles[variant],
|
|
3800
3801
|
className,
|
|
3801
|
-
children: /* @__PURE__ */ (0,
|
|
3802
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Text_default, { size: "xs", fontWeight: "bold", children })
|
|
3802
3803
|
}
|
|
3803
3804
|
);
|
|
3804
3805
|
};
|
|
3805
3806
|
var AvailabilityChip_default = AvailabilityChip;
|
|
3806
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
|
+
|
|
3807
3815
|
// src/Divider/Divider.styles.ts
|
|
3808
3816
|
var import_react12 = require("@emotion/react");
|
|
3809
3817
|
var dividerStyles = import_react12.css`
|
|
@@ -3814,171 +3822,857 @@ var dividerStyles = import_react12.css`
|
|
|
3814
3822
|
`;
|
|
3815
3823
|
|
|
3816
3824
|
// src/Divider/Divider.tsx
|
|
3817
|
-
var
|
|
3818
|
-
var
|
|
3819
|
-
|
|
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 });
|
|
3820
3832
|
};
|
|
3821
3833
|
var Divider_default = Divider;
|
|
3822
3834
|
|
|
3823
|
-
// src/
|
|
3835
|
+
// src/Form/TextArea.tsx
|
|
3836
|
+
var import_react14 = require("@emotion/react");
|
|
3837
|
+
var import_react15 = require("react");
|
|
3838
|
+
|
|
3839
|
+
// src/Form/TextArea.styles.ts
|
|
3824
3840
|
var import_react13 = require("@emotion/react");
|
|
3825
|
-
var
|
|
3841
|
+
var wrapperStyles = import_react13.css`
|
|
3826
3842
|
position: relative;
|
|
3827
|
-
|
|
3843
|
+
display: inline-block;
|
|
3844
|
+
width: 100%;
|
|
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;
|
|
3828
3858
|
|
|
3829
|
-
|
|
3830
|
-
|
|
3859
|
+
&::placeholder {
|
|
3860
|
+
color: var(--text-secondary);
|
|
3831
3861
|
}
|
|
3832
|
-
`;
|
|
3833
|
-
var cardContentStyles = import_react13.css`
|
|
3834
|
-
position: relative;
|
|
3835
|
-
border-radius: var(--spacing-4);
|
|
3836
|
-
overflow: hidden;
|
|
3837
|
-
`;
|
|
3838
|
-
var getBackgroundWithGradient = (imageUrl) => import_react13.css`
|
|
3839
|
-
background-image: linear-gradient(
|
|
3840
|
-
180deg,
|
|
3841
|
-
rgba(0, 0, 0, 0) 48.36%,
|
|
3842
|
-
rgba(0, 0, 0, 0.6) 76.64%
|
|
3843
|
-
),
|
|
3844
|
-
url(${imageUrl});
|
|
3845
|
-
background-size: cover;
|
|
3846
|
-
background-position: center;
|
|
3847
|
-
background-repeat: no-repeat;
|
|
3848
|
-
background-color: #fff;
|
|
3849
|
-
`;
|
|
3850
3862
|
|
|
3851
|
-
|
|
3852
|
-
var
|
|
3853
|
-
var
|
|
3854
|
-
|
|
3855
|
-
title,
|
|
3856
|
-
buttonLabel,
|
|
3857
|
-
onClick,
|
|
3858
|
-
className,
|
|
3859
|
-
...rest
|
|
3860
|
-
}) => {
|
|
3861
|
-
return /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3862
|
-
Box_default,
|
|
3863
|
-
{
|
|
3864
|
-
display: "flex",
|
|
3865
|
-
css: cardContainerStyles,
|
|
3866
|
-
className,
|
|
3867
|
-
...rest,
|
|
3868
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3869
|
-
Box_default,
|
|
3870
|
-
{
|
|
3871
|
-
display: "flex",
|
|
3872
|
-
flexDirection: "column",
|
|
3873
|
-
justifyContent: "flex-end",
|
|
3874
|
-
p: 6,
|
|
3875
|
-
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
3876
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
3877
|
-
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
3878
|
-
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
3879
|
-
] })
|
|
3880
|
-
}
|
|
3881
|
-
)
|
|
3882
|
-
}
|
|
3883
|
-
);
|
|
3884
|
-
};
|
|
3885
|
-
var FieldNoteCard_default = FieldNoteCard;
|
|
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
|
+
}
|
|
3886
3867
|
|
|
3887
|
-
|
|
3888
|
-
var
|
|
3889
|
-
var
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
var
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
font-weight: ${fontWeights.medium};
|
|
3899
|
-
line-height: ${lineHeights.tight};
|
|
3900
|
-
color: ${colors.gray["900"]};
|
|
3901
|
-
margin-bottom: ${space["1"]};
|
|
3902
|
-
`;
|
|
3903
|
-
var requiredIndicatorStyles = import_react14.css`
|
|
3904
|
-
color: ${colors.red["500"]};
|
|
3905
|
-
margin-left: ${space["1"]};
|
|
3906
|
-
`;
|
|
3907
|
-
var helpTextStyles = import_react14.css`
|
|
3908
|
-
font-family: ${fonts.base};
|
|
3909
|
-
font-size: ${fontSizes.sm};
|
|
3910
|
-
line-height: ${lineHeights.tight};
|
|
3911
|
-
color: ${colors.gray["600"]};
|
|
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
|
+
}
|
|
3912
3879
|
`;
|
|
3913
|
-
var
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3918
|
-
|
|
3919
|
-
align-items: center;
|
|
3920
|
-
gap: ${space["1"]};
|
|
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
|
+
}
|
|
3921
3886
|
`;
|
|
3922
|
-
var
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
align-items: center;
|
|
3929
|
-
gap: ${space["1"]};
|
|
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
|
+
}
|
|
3930
3893
|
`;
|
|
3931
|
-
var
|
|
3894
|
+
var submitButtonContainer = import_react13.css`
|
|
3932
3895
|
position: absolute;
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
padding: 0;
|
|
3936
|
-
margin: -1px;
|
|
3937
|
-
overflow: hidden;
|
|
3938
|
-
clip: rect(0, 0, 0, 0);
|
|
3939
|
-
white-space: nowrap;
|
|
3940
|
-
border: 0;
|
|
3896
|
+
right: var(--spacing-4);
|
|
3897
|
+
bottom: var(--spacing-4);
|
|
3941
3898
|
`;
|
|
3942
|
-
var
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3968
|
-
|
|
3969
|
-
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3899
|
+
var textareaWithSubmit = import_react13.css`
|
|
3900
|
+
padding-right: var(--spacing-16);
|
|
3901
|
+
`;
|
|
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;
|
|
4627
|
+
width: 1px;
|
|
4628
|
+
height: 1px;
|
|
4629
|
+
padding: 0;
|
|
4630
|
+
margin: -1px;
|
|
4631
|
+
overflow: hidden;
|
|
4632
|
+
clip: rect(0, 0, 0, 0);
|
|
4633
|
+
white-space: nowrap;
|
|
4634
|
+
border: 0;
|
|
4635
|
+
`;
|
|
4636
|
+
var FormField = ({
|
|
4637
|
+
label,
|
|
4638
|
+
hideLabel = false,
|
|
4639
|
+
required = false,
|
|
4640
|
+
error,
|
|
4641
|
+
success,
|
|
4642
|
+
helpText,
|
|
4643
|
+
htmlFor,
|
|
4644
|
+
children,
|
|
4645
|
+
className = ""
|
|
4646
|
+
}) => {
|
|
4647
|
+
const hasError = !!error;
|
|
4648
|
+
const hasSuccess = !!success && !hasError;
|
|
4649
|
+
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
4650
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
4651
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
|
|
4652
|
+
"label",
|
|
4653
|
+
{
|
|
4654
|
+
htmlFor,
|
|
4655
|
+
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
4656
|
+
children: [
|
|
4657
|
+
label,
|
|
4658
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
4659
|
+
]
|
|
4660
|
+
}
|
|
4661
|
+
),
|
|
4662
|
+
children,
|
|
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)(
|
|
4665
|
+
"path",
|
|
4666
|
+
{
|
|
4667
|
+
fillRule: "evenodd",
|
|
4668
|
+
d: "M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2z",
|
|
3975
4669
|
clipRule: "evenodd"
|
|
3976
4670
|
}
|
|
3977
4671
|
) }),
|
|
3978
4672
|
error
|
|
3979
4673
|
] }),
|
|
3980
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
3981
|
-
/* @__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)(
|
|
3982
4676
|
"path",
|
|
3983
4677
|
{
|
|
3984
4678
|
fillRule: "evenodd",
|
|
@@ -3988,15 +4682,15 @@ var FormField = ({
|
|
|
3988
4682
|
) }),
|
|
3989
4683
|
success
|
|
3990
4684
|
] }),
|
|
3991
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
4685
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
3992
4686
|
] });
|
|
3993
4687
|
};
|
|
3994
4688
|
|
|
3995
4689
|
// src/Form/Input.tsx
|
|
3996
|
-
var
|
|
3997
|
-
var
|
|
3998
|
-
var
|
|
3999
|
-
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`
|
|
4000
4694
|
position: relative;
|
|
4001
4695
|
width: 100%;
|
|
4002
4696
|
font-family: ${fonts.base};
|
|
@@ -4033,19 +4727,19 @@ var inputStyles = import_react15.css`
|
|
|
4033
4727
|
}
|
|
4034
4728
|
`;
|
|
4035
4729
|
var sizeStyles = {
|
|
4036
|
-
sm:
|
|
4730
|
+
sm: import_react24.css`
|
|
4037
4731
|
padding: ${space["2"]} ${space["3"]};
|
|
4038
4732
|
font-size: ${fontSizes.sm};
|
|
4039
4733
|
line-height: ${lineHeights.tight};
|
|
4040
4734
|
height: ${space["8"]};
|
|
4041
4735
|
`,
|
|
4042
|
-
md:
|
|
4736
|
+
md: import_react24.css`
|
|
4043
4737
|
padding: ${space["3"]} ${space["4"]};
|
|
4044
4738
|
font-size: ${fontSizes.base};
|
|
4045
4739
|
line-height: ${lineHeights.normal};
|
|
4046
4740
|
height: ${space["10"]};
|
|
4047
4741
|
`,
|
|
4048
|
-
lg:
|
|
4742
|
+
lg: import_react24.css`
|
|
4049
4743
|
padding: ${space["4"]} ${space["5"]};
|
|
4050
4744
|
font-size: ${fontSizes.lg};
|
|
4051
4745
|
line-height: ${lineHeights.normal};
|
|
@@ -4053,8 +4747,8 @@ var sizeStyles = {
|
|
|
4053
4747
|
`
|
|
4054
4748
|
};
|
|
4055
4749
|
var variantStyles = {
|
|
4056
|
-
default:
|
|
4057
|
-
error:
|
|
4750
|
+
default: import_react24.css``,
|
|
4751
|
+
error: import_react24.css`
|
|
4058
4752
|
border-color: ${colors.red["500"]};
|
|
4059
4753
|
|
|
4060
4754
|
&:focus {
|
|
@@ -4062,7 +4756,7 @@ var variantStyles = {
|
|
|
4062
4756
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
4063
4757
|
}
|
|
4064
4758
|
`,
|
|
4065
|
-
success:
|
|
4759
|
+
success: import_react24.css`
|
|
4066
4760
|
border-color: ${colors.accent.green};
|
|
4067
4761
|
|
|
4068
4762
|
&:focus {
|
|
@@ -4071,7 +4765,7 @@ var variantStyles = {
|
|
|
4071
4765
|
}
|
|
4072
4766
|
`
|
|
4073
4767
|
};
|
|
4074
|
-
var inputWithIconStyles =
|
|
4768
|
+
var inputWithIconStyles = import_react24.css`
|
|
4075
4769
|
padding-left: ${space["10"]};
|
|
4076
4770
|
|
|
4077
4771
|
&.has-end-icon {
|
|
@@ -4082,7 +4776,7 @@ var inputWithIconStyles = import_react15.css`
|
|
|
4082
4776
|
padding-left: ${space["10"]};
|
|
4083
4777
|
}
|
|
4084
4778
|
`;
|
|
4085
|
-
var iconContainerStyles =
|
|
4779
|
+
var iconContainerStyles = import_react24.css`
|
|
4086
4780
|
position: absolute;
|
|
4087
4781
|
top: 50%;
|
|
4088
4782
|
transform: translateY(-50%);
|
|
@@ -4093,20 +4787,20 @@ var iconContainerStyles = import_react15.css`
|
|
|
4093
4787
|
pointer-events: none;
|
|
4094
4788
|
z-index: 1;
|
|
4095
4789
|
`;
|
|
4096
|
-
var startIconStyles =
|
|
4790
|
+
var startIconStyles = import_react24.css`
|
|
4097
4791
|
${iconContainerStyles}
|
|
4098
4792
|
left: ${space["3"]};
|
|
4099
4793
|
`;
|
|
4100
|
-
var endIconStyles =
|
|
4794
|
+
var endIconStyles = import_react24.css`
|
|
4101
4795
|
${iconContainerStyles}
|
|
4102
4796
|
right: ${space["3"]};
|
|
4103
4797
|
`;
|
|
4104
|
-
var inputWrapperStyles =
|
|
4798
|
+
var inputWrapperStyles = import_react24.css`
|
|
4105
4799
|
position: relative;
|
|
4106
4800
|
display: inline-block;
|
|
4107
4801
|
width: 100%;
|
|
4108
4802
|
`;
|
|
4109
|
-
var Input = (0,
|
|
4803
|
+
var Input = (0, import_react25.forwardRef)(
|
|
4110
4804
|
({
|
|
4111
4805
|
size = "md",
|
|
4112
4806
|
variant = "default",
|
|
@@ -4125,9 +4819,9 @@ var Input = (0, import_react16.forwardRef)(
|
|
|
4125
4819
|
hasEndIcon && "has-end-icon",
|
|
4126
4820
|
className
|
|
4127
4821
|
].filter(Boolean).join(" ");
|
|
4128
|
-
return /* @__PURE__ */ (0,
|
|
4129
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
4130
|
-
/* @__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)(
|
|
4131
4825
|
"input",
|
|
4132
4826
|
{
|
|
4133
4827
|
ref,
|
|
@@ -4144,17 +4838,17 @@ var Input = (0, import_react16.forwardRef)(
|
|
|
4144
4838
|
...props
|
|
4145
4839
|
}
|
|
4146
4840
|
),
|
|
4147
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
4841
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
4148
4842
|
] });
|
|
4149
4843
|
}
|
|
4150
4844
|
);
|
|
4151
4845
|
Input.displayName = "Input";
|
|
4152
4846
|
|
|
4153
4847
|
// src/Form/Select.tsx
|
|
4154
|
-
var
|
|
4155
|
-
var
|
|
4156
|
-
var
|
|
4157
|
-
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`
|
|
4158
4852
|
position: relative;
|
|
4159
4853
|
width: 100%;
|
|
4160
4854
|
font-family: ${fonts.base};
|
|
@@ -4193,19 +4887,19 @@ var selectStyles = import_react17.css`
|
|
|
4193
4887
|
}
|
|
4194
4888
|
`;
|
|
4195
4889
|
var sizeStyles2 = {
|
|
4196
|
-
sm:
|
|
4890
|
+
sm: import_react26.css`
|
|
4197
4891
|
padding: ${space["2"]} ${space["3"]};
|
|
4198
4892
|
font-size: ${fontSizes.sm};
|
|
4199
4893
|
line-height: ${lineHeights.tight};
|
|
4200
4894
|
height: ${space["8"]};
|
|
4201
4895
|
`,
|
|
4202
|
-
md:
|
|
4896
|
+
md: import_react26.css`
|
|
4203
4897
|
padding: ${space["3"]} ${space["4"]};
|
|
4204
4898
|
font-size: ${fontSizes.base};
|
|
4205
4899
|
line-height: ${lineHeights.normal};
|
|
4206
4900
|
height: ${space["10"]};
|
|
4207
4901
|
`,
|
|
4208
|
-
lg:
|
|
4902
|
+
lg: import_react26.css`
|
|
4209
4903
|
padding: ${space["4"]} ${space["5"]};
|
|
4210
4904
|
font-size: ${fontSizes.lg};
|
|
4211
4905
|
line-height: ${lineHeights.normal};
|
|
@@ -4213,8 +4907,8 @@ var sizeStyles2 = {
|
|
|
4213
4907
|
`
|
|
4214
4908
|
};
|
|
4215
4909
|
var variantStyles2 = {
|
|
4216
|
-
default:
|
|
4217
|
-
error:
|
|
4910
|
+
default: import_react26.css``,
|
|
4911
|
+
error: import_react26.css`
|
|
4218
4912
|
border-color: ${colors.red["500"]};
|
|
4219
4913
|
|
|
4220
4914
|
&:focus {
|
|
@@ -4222,7 +4916,7 @@ var variantStyles2 = {
|
|
|
4222
4916
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
4223
4917
|
}
|
|
4224
4918
|
`,
|
|
4225
|
-
success:
|
|
4919
|
+
success: import_react26.css`
|
|
4226
4920
|
border-color: ${colors.accent.green};
|
|
4227
4921
|
|
|
4228
4922
|
&:focus {
|
|
@@ -4231,7 +4925,7 @@ var variantStyles2 = {
|
|
|
4231
4925
|
}
|
|
4232
4926
|
`
|
|
4233
4927
|
};
|
|
4234
|
-
var optionStyles =
|
|
4928
|
+
var optionStyles = import_react26.css`
|
|
4235
4929
|
background-color: ${colors.light["100"]};
|
|
4236
4930
|
color: ${colors.gray["900"]};
|
|
4237
4931
|
|
|
@@ -4240,7 +4934,7 @@ var optionStyles = import_react17.css`
|
|
|
4240
4934
|
background-color: ${colors.gray["100"]};
|
|
4241
4935
|
}
|
|
4242
4936
|
`;
|
|
4243
|
-
var Select = (0,
|
|
4937
|
+
var Select = (0, import_react27.forwardRef)(
|
|
4244
4938
|
({
|
|
4245
4939
|
size = "md",
|
|
4246
4940
|
variant = "default",
|
|
@@ -4250,7 +4944,7 @@ var Select = (0, import_react18.forwardRef)(
|
|
|
4250
4944
|
className = "",
|
|
4251
4945
|
...props
|
|
4252
4946
|
}, ref) => {
|
|
4253
|
-
return /* @__PURE__ */ (0,
|
|
4947
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
|
|
4254
4948
|
"select",
|
|
4255
4949
|
{
|
|
4256
4950
|
ref,
|
|
@@ -4259,8 +4953,8 @@ var Select = (0, import_react18.forwardRef)(
|
|
|
4259
4953
|
className,
|
|
4260
4954
|
...props,
|
|
4261
4955
|
children: [
|
|
4262
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
4263
|
-
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)(
|
|
4264
4958
|
"option",
|
|
4265
4959
|
{
|
|
4266
4960
|
value: option.value,
|
|
@@ -4272,179 +4966,16 @@ var Select = (0, import_react18.forwardRef)(
|
|
|
4272
4966
|
))
|
|
4273
4967
|
]
|
|
4274
4968
|
}
|
|
4275
|
-
);
|
|
4276
|
-
}
|
|
4277
|
-
);
|
|
4278
|
-
Select.displayName = "Select";
|
|
4279
|
-
|
|
4280
|
-
// src/Form/TextArea.tsx
|
|
4281
|
-
var import_react20 = require("@emotion/react");
|
|
4282
|
-
var import_react21 = require("react");
|
|
4283
|
-
|
|
4284
|
-
// src/Form/TextArea.styles.ts
|
|
4285
|
-
var import_react19 = require("@emotion/react");
|
|
4286
|
-
var wrapperStyles = import_react19.css`
|
|
4287
|
-
position: relative;
|
|
4288
|
-
display: inline-block;
|
|
4289
|
-
width: 100%;
|
|
4290
|
-
`;
|
|
4291
|
-
var textareaBase = import_react19.css`
|
|
4292
|
-
width: 100%;
|
|
4293
|
-
box-sizing: border-box;
|
|
4294
|
-
font: inherit;
|
|
4295
|
-
color: var(--text-primary);
|
|
4296
|
-
background-color: var(--surface-page);
|
|
4297
|
-
border: 1px solid var(--border-primary);
|
|
4298
|
-
border-radius: var(--radius-lg);
|
|
4299
|
-
padding: var(--spacing-4);
|
|
4300
|
-
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
4301
|
-
outline: none;
|
|
4302
|
-
resize: none;
|
|
4303
|
-
|
|
4304
|
-
&::placeholder {
|
|
4305
|
-
color: var(--text-secondary);
|
|
4306
|
-
}
|
|
4307
|
-
|
|
4308
|
-
&:focus {
|
|
4309
|
-
border-color: var(--border-focus);
|
|
4310
|
-
box-shadow: 0 0 0 3px var(--surface-success, rgba(50, 90, 60, 0.1));
|
|
4311
|
-
}
|
|
4312
|
-
|
|
4313
|
-
&:disabled {
|
|
4314
|
-
background-color: var(--surface-disabled-2);
|
|
4315
|
-
color: var(--text-on-disabled);
|
|
4316
|
-
cursor: not-allowed;
|
|
4317
|
-
}
|
|
4318
|
-
|
|
4319
|
-
&:read-only {
|
|
4320
|
-
background-color: var(--surface-disabled-2);
|
|
4321
|
-
color: var(--text-secondary);
|
|
4322
|
-
cursor: default;
|
|
4323
|
-
}
|
|
4324
|
-
`;
|
|
4325
|
-
var variantError = import_react19.css`
|
|
4326
|
-
border-color: var(--border-error);
|
|
4327
|
-
&:focus {
|
|
4328
|
-
border-color: var(--border-error);
|
|
4329
|
-
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
4330
|
-
}
|
|
4331
|
-
`;
|
|
4332
|
-
var variantSuccess = import_react19.css`
|
|
4333
|
-
border-color: var(--color-success-500);
|
|
4334
|
-
&:focus {
|
|
4335
|
-
border-color: var(--color-success-500);
|
|
4336
|
-
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
4337
|
-
}
|
|
4338
|
-
`;
|
|
4339
|
-
var submitButtonContainer = import_react19.css`
|
|
4340
|
-
position: absolute;
|
|
4341
|
-
right: var(--spacing-4);
|
|
4342
|
-
bottom: var(--spacing-4);
|
|
4343
|
-
`;
|
|
4344
|
-
var textareaWithSubmit = import_react19.css`
|
|
4345
|
-
padding-right: var(--spacing-16);
|
|
4346
|
-
`;
|
|
4347
|
-
|
|
4348
|
-
// src/Form/TextArea.tsx
|
|
4349
|
-
var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
|
|
4350
|
-
var TextArea = (0, import_react21.forwardRef)(
|
|
4351
|
-
({
|
|
4352
|
-
rows = 3,
|
|
4353
|
-
variant = "default",
|
|
4354
|
-
disabled = false,
|
|
4355
|
-
readOnly = false,
|
|
4356
|
-
className,
|
|
4357
|
-
autoExpand = true,
|
|
4358
|
-
maxHeight,
|
|
4359
|
-
resize = "none",
|
|
4360
|
-
value,
|
|
4361
|
-
onChange,
|
|
4362
|
-
showSubmit = false,
|
|
4363
|
-
onSubmit,
|
|
4364
|
-
submitAriaLabel = "Submit",
|
|
4365
|
-
submitDisabled,
|
|
4366
|
-
...props
|
|
4367
|
-
}, ref) => {
|
|
4368
|
-
const innerRef = (0, import_react21.useRef)(null);
|
|
4369
|
-
(0, import_react21.useEffect)(() => {
|
|
4370
|
-
const el = innerRef.current;
|
|
4371
|
-
if (!el || !autoExpand)
|
|
4372
|
-
return;
|
|
4373
|
-
el.style.height = "auto";
|
|
4374
|
-
if (typeof maxHeight === "number") {
|
|
4375
|
-
el.style.maxHeight = `${maxHeight}px`;
|
|
4376
|
-
} else if (typeof maxHeight === "string") {
|
|
4377
|
-
el.style.maxHeight = maxHeight;
|
|
4378
|
-
}
|
|
4379
|
-
el.style.overflowY = maxHeight ? "auto" : "hidden";
|
|
4380
|
-
el.style.height = `${el.scrollHeight}px`;
|
|
4381
|
-
}, [value, autoExpand, maxHeight]);
|
|
4382
|
-
const handleChange = (e) => {
|
|
4383
|
-
if (autoExpand && innerRef.current) {
|
|
4384
|
-
const el = innerRef.current;
|
|
4385
|
-
el.style.height = "auto";
|
|
4386
|
-
el.style.overflowY = maxHeight ? "auto" : "hidden";
|
|
4387
|
-
el.style.height = `${el.scrollHeight}px`;
|
|
4388
|
-
}
|
|
4389
|
-
onChange == null ? void 0 : onChange(e);
|
|
4390
|
-
};
|
|
4391
|
-
return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { css: wrapperStyles, children: [
|
|
4392
|
-
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4393
|
-
"textarea",
|
|
4394
|
-
{
|
|
4395
|
-
ref: (node) => {
|
|
4396
|
-
innerRef.current = node;
|
|
4397
|
-
if (typeof ref === "function")
|
|
4398
|
-
ref(node);
|
|
4399
|
-
else if (ref)
|
|
4400
|
-
ref.current = node;
|
|
4401
|
-
},
|
|
4402
|
-
rows,
|
|
4403
|
-
disabled,
|
|
4404
|
-
readOnly,
|
|
4405
|
-
css: [
|
|
4406
|
-
textareaBase,
|
|
4407
|
-
variant === "error" && variantError,
|
|
4408
|
-
variant === "success" && variantSuccess,
|
|
4409
|
-
import_react20.css`
|
|
4410
|
-
resize: ${resize};
|
|
4411
|
-
`,
|
|
4412
|
-
showSubmit && textareaWithSubmit
|
|
4413
|
-
],
|
|
4414
|
-
className,
|
|
4415
|
-
value,
|
|
4416
|
-
onChange: handleChange,
|
|
4417
|
-
"aria-multiline": "true",
|
|
4418
|
-
...props
|
|
4419
|
-
}
|
|
4420
|
-
),
|
|
4421
|
-
showSubmit && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { css: submitButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4422
|
-
Button_default,
|
|
4423
|
-
{
|
|
4424
|
-
size: "xs",
|
|
4425
|
-
"aria-label": submitAriaLabel,
|
|
4426
|
-
onClick: onSubmit,
|
|
4427
|
-
disabled: disabled || submitDisabled,
|
|
4428
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4429
|
-
Icon_default,
|
|
4430
|
-
{
|
|
4431
|
-
variant: "PaperPlane",
|
|
4432
|
-
size: 6,
|
|
4433
|
-
fill: "var(--color-base-white)"
|
|
4434
|
-
}
|
|
4435
|
-
)
|
|
4436
|
-
}
|
|
4437
|
-
) })
|
|
4438
|
-
] });
|
|
4969
|
+
);
|
|
4439
4970
|
}
|
|
4440
4971
|
);
|
|
4441
|
-
|
|
4972
|
+
Select.displayName = "Select";
|
|
4442
4973
|
|
|
4443
4974
|
// src/Grid/Column.tsx
|
|
4444
|
-
var
|
|
4975
|
+
var import_react29 = require("@emotion/react");
|
|
4445
4976
|
|
|
4446
4977
|
// src/Grid/utils.ts
|
|
4447
|
-
var
|
|
4978
|
+
var import_react28 = require("@emotion/react");
|
|
4448
4979
|
var LayoutTokens = {
|
|
4449
4980
|
containers: {
|
|
4450
4981
|
sm: screens.sm,
|
|
@@ -4484,11 +5015,11 @@ var getResponsiveValue = (value) => {
|
|
|
4484
5015
|
var generateGridColumns = (columns) => {
|
|
4485
5016
|
const baseColumns = getResponsiveValue(columns);
|
|
4486
5017
|
if (typeof columns === "number") {
|
|
4487
|
-
return
|
|
5018
|
+
return import_react28.css`
|
|
4488
5019
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
4489
5020
|
`;
|
|
4490
5021
|
}
|
|
4491
|
-
return
|
|
5022
|
+
return import_react28.css`
|
|
4492
5023
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
4493
5024
|
|
|
4494
5025
|
${media.sm} {
|
|
@@ -4520,11 +5051,11 @@ var generateGridColumns = (columns) => {
|
|
|
4520
5051
|
var generateGapStyles = (gap2) => {
|
|
4521
5052
|
const baseGap = getResponsiveValue(gap2);
|
|
4522
5053
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
4523
|
-
return
|
|
5054
|
+
return import_react28.css`
|
|
4524
5055
|
gap: ${space[gap2]};
|
|
4525
5056
|
`;
|
|
4526
5057
|
}
|
|
4527
|
-
return
|
|
5058
|
+
return import_react28.css`
|
|
4528
5059
|
gap: ${space[baseGap]};
|
|
4529
5060
|
|
|
4530
5061
|
${media.sm} {
|
|
@@ -4547,11 +5078,11 @@ var generateGapStyles = (gap2) => {
|
|
|
4547
5078
|
var generateRowGapStyles = (rowGap) => {
|
|
4548
5079
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
4549
5080
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
4550
|
-
return
|
|
5081
|
+
return import_react28.css`
|
|
4551
5082
|
row-gap: ${space[rowGap]};
|
|
4552
5083
|
`;
|
|
4553
5084
|
}
|
|
4554
|
-
return
|
|
5085
|
+
return import_react28.css`
|
|
4555
5086
|
row-gap: ${space[baseRowGap]};
|
|
4556
5087
|
|
|
4557
5088
|
${media.sm} {
|
|
@@ -4574,11 +5105,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
4574
5105
|
var generateColumnGapStyles = (columnGap) => {
|
|
4575
5106
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
4576
5107
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
4577
|
-
return
|
|
5108
|
+
return import_react28.css`
|
|
4578
5109
|
column-gap: ${space[columnGap]};
|
|
4579
5110
|
`;
|
|
4580
5111
|
}
|
|
4581
|
-
return
|
|
5112
|
+
return import_react28.css`
|
|
4582
5113
|
column-gap: ${space[baseColumnGap]};
|
|
4583
5114
|
|
|
4584
5115
|
${media.sm} {
|
|
@@ -4601,11 +5132,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
4601
5132
|
var generateColumnSpan = (span) => {
|
|
4602
5133
|
const baseSpan = getResponsiveValue(span);
|
|
4603
5134
|
if (typeof span === "string" || typeof span === "number") {
|
|
4604
|
-
return
|
|
5135
|
+
return import_react28.css`
|
|
4605
5136
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
4606
5137
|
`;
|
|
4607
5138
|
}
|
|
4608
|
-
return
|
|
5139
|
+
return import_react28.css`
|
|
4609
5140
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
4610
5141
|
|
|
4611
5142
|
${media.sm} {
|
|
@@ -4628,11 +5159,11 @@ var generateColumnSpan = (span) => {
|
|
|
4628
5159
|
var generateAlignItems = (alignItems) => {
|
|
4629
5160
|
const baseAlign = getResponsiveValue(alignItems);
|
|
4630
5161
|
if (typeof alignItems === "string") {
|
|
4631
|
-
return
|
|
5162
|
+
return import_react28.css`
|
|
4632
5163
|
align-items: ${alignItems};
|
|
4633
5164
|
`;
|
|
4634
5165
|
}
|
|
4635
|
-
return
|
|
5166
|
+
return import_react28.css`
|
|
4636
5167
|
align-items: ${baseAlign};
|
|
4637
5168
|
|
|
4638
5169
|
${media.sm} {
|
|
@@ -4655,11 +5186,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
4655
5186
|
var generateJustifyItems = (justifyItems) => {
|
|
4656
5187
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
4657
5188
|
if (typeof justifyItems === "string") {
|
|
4658
|
-
return
|
|
5189
|
+
return import_react28.css`
|
|
4659
5190
|
justify-items: ${justifyItems};
|
|
4660
5191
|
`;
|
|
4661
5192
|
}
|
|
4662
|
-
return
|
|
5193
|
+
return import_react28.css`
|
|
4663
5194
|
justify-items: ${baseJustify};
|
|
4664
5195
|
|
|
4665
5196
|
${media.sm} {
|
|
@@ -4681,7 +5212,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
4681
5212
|
};
|
|
4682
5213
|
|
|
4683
5214
|
// src/Grid/Column.tsx
|
|
4684
|
-
var
|
|
5215
|
+
var import_jsx_runtime213 = require("@emotion/react/jsx-runtime");
|
|
4685
5216
|
var Column = ({
|
|
4686
5217
|
span,
|
|
4687
5218
|
start,
|
|
@@ -4694,30 +5225,30 @@ var Column = ({
|
|
|
4694
5225
|
}) => {
|
|
4695
5226
|
const columnStyles = [
|
|
4696
5227
|
span && generateColumnSpan(span),
|
|
4697
|
-
start &&
|
|
5228
|
+
start && import_react29.css`
|
|
4698
5229
|
grid-column-start: ${start};
|
|
4699
5230
|
`,
|
|
4700
|
-
end &&
|
|
5231
|
+
end && import_react29.css`
|
|
4701
5232
|
grid-column-end: ${end};
|
|
4702
5233
|
`,
|
|
4703
|
-
row &&
|
|
5234
|
+
row && import_react29.css`
|
|
4704
5235
|
grid-row: ${row};
|
|
4705
5236
|
`,
|
|
4706
|
-
rowSpan &&
|
|
5237
|
+
rowSpan && import_react29.css`
|
|
4707
5238
|
grid-row: span ${rowSpan};
|
|
4708
5239
|
`,
|
|
4709
|
-
area &&
|
|
5240
|
+
area && import_react29.css`
|
|
4710
5241
|
grid-area: ${area};
|
|
4711
5242
|
`
|
|
4712
5243
|
].filter(Boolean);
|
|
4713
|
-
return /* @__PURE__ */ (0,
|
|
5244
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
4714
5245
|
};
|
|
4715
5246
|
var Column_default = Column;
|
|
4716
5247
|
|
|
4717
5248
|
// src/Grid/Grid.tsx
|
|
4718
|
-
var
|
|
4719
|
-
var
|
|
4720
|
-
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`
|
|
4721
5252
|
display: grid;
|
|
4722
5253
|
`;
|
|
4723
5254
|
var Grid = ({
|
|
@@ -4742,27 +5273,27 @@ var Grid = ({
|
|
|
4742
5273
|
columnGap && generateColumnGapStyles(columnGap),
|
|
4743
5274
|
alignItems && generateAlignItems(alignItems),
|
|
4744
5275
|
justifyItems && generateJustifyItems(justifyItems),
|
|
4745
|
-
autoRows &&
|
|
5276
|
+
autoRows && import_react30.css`
|
|
4746
5277
|
grid-auto-rows: ${autoRows};
|
|
4747
5278
|
`,
|
|
4748
|
-
autoColumns &&
|
|
5279
|
+
autoColumns && import_react30.css`
|
|
4749
5280
|
grid-auto-columns: ${autoColumns};
|
|
4750
5281
|
`,
|
|
4751
|
-
templateAreas &&
|
|
5282
|
+
templateAreas && import_react30.css`
|
|
4752
5283
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
4753
5284
|
`,
|
|
4754
|
-
justifyContent &&
|
|
5285
|
+
justifyContent && import_react30.css`
|
|
4755
5286
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
4756
5287
|
`
|
|
4757
5288
|
].filter(Boolean);
|
|
4758
|
-
return /* @__PURE__ */ (0,
|
|
5289
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
4759
5290
|
};
|
|
4760
5291
|
var Grid_default = Grid;
|
|
4761
5292
|
|
|
4762
5293
|
// src/Grid/GridContainer.tsx
|
|
4763
|
-
var
|
|
4764
|
-
var
|
|
4765
|
-
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`
|
|
4766
5297
|
width: 100%;
|
|
4767
5298
|
margin: 0 auto;
|
|
4768
5299
|
padding-left: 1rem;
|
|
@@ -4770,14 +5301,14 @@ var baseContainerStyles = import_react25.css`
|
|
|
4770
5301
|
`;
|
|
4771
5302
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
4772
5303
|
if (maxWidth === "full") {
|
|
4773
|
-
return
|
|
5304
|
+
return import_react31.css`
|
|
4774
5305
|
max-width: 100%;
|
|
4775
5306
|
padding-left: 0;
|
|
4776
5307
|
padding-right: 0;
|
|
4777
5308
|
`;
|
|
4778
5309
|
}
|
|
4779
5310
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
4780
|
-
return
|
|
5311
|
+
return import_react31.css`
|
|
4781
5312
|
max-width: ${width2};
|
|
4782
5313
|
|
|
4783
5314
|
${media.sm} {
|
|
@@ -4802,17 +5333,17 @@ var GridContainer = ({
|
|
|
4802
5333
|
className,
|
|
4803
5334
|
...props
|
|
4804
5335
|
}) => {
|
|
4805
|
-
const
|
|
5336
|
+
const containerStyles4 = [
|
|
4806
5337
|
baseContainerStyles,
|
|
4807
5338
|
generateMaxWidthStyles(maxWidth)
|
|
4808
5339
|
];
|
|
4809
|
-
return /* @__PURE__ */ (0,
|
|
5340
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
4810
5341
|
};
|
|
4811
5342
|
var GridContainer_default = GridContainer;
|
|
4812
5343
|
|
|
4813
5344
|
// src/HuntCard/HuntCard.styles.ts
|
|
4814
|
-
var
|
|
4815
|
-
var cardContainerStyles2 =
|
|
5345
|
+
var import_react32 = require("@emotion/react");
|
|
5346
|
+
var cardContainerStyles2 = import_react32.css`
|
|
4816
5347
|
position: relative;
|
|
4817
5348
|
height: 335px;
|
|
4818
5349
|
|
|
@@ -4820,12 +5351,12 @@ var cardContainerStyles2 = import_react26.css`
|
|
|
4820
5351
|
height: 480px;
|
|
4821
5352
|
}
|
|
4822
5353
|
`;
|
|
4823
|
-
var cardContentStyles2 =
|
|
5354
|
+
var cardContentStyles2 = import_react32.css`
|
|
4824
5355
|
position: relative;
|
|
4825
5356
|
border-radius: var(--spacing-4);
|
|
4826
5357
|
overflow: hidden;
|
|
4827
5358
|
`;
|
|
4828
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
5359
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react32.css`
|
|
4829
5360
|
background-image: linear-gradient(
|
|
4830
5361
|
180deg,
|
|
4831
5362
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -4839,7 +5370,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react26.css`
|
|
|
4839
5370
|
`;
|
|
4840
5371
|
|
|
4841
5372
|
// src/HuntCard/HuntCard.tsx
|
|
4842
|
-
var
|
|
5373
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
4843
5374
|
var HuntCard = ({
|
|
4844
5375
|
backgroundImage,
|
|
4845
5376
|
title,
|
|
@@ -4848,14 +5379,14 @@ var HuntCard = ({
|
|
|
4848
5379
|
className,
|
|
4849
5380
|
...rest
|
|
4850
5381
|
}) => {
|
|
4851
|
-
return /* @__PURE__ */ (0,
|
|
5382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4852
5383
|
Box_default,
|
|
4853
5384
|
{
|
|
4854
5385
|
display: "flex",
|
|
4855
5386
|
css: cardContainerStyles2,
|
|
4856
5387
|
className,
|
|
4857
5388
|
...rest,
|
|
4858
|
-
children: /* @__PURE__ */ (0,
|
|
5389
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4859
5390
|
Box_default,
|
|
4860
5391
|
{
|
|
4861
5392
|
display: "flex",
|
|
@@ -4863,9 +5394,9 @@ var HuntCard = ({
|
|
|
4863
5394
|
justifyContent: "flex-end",
|
|
4864
5395
|
p: 6,
|
|
4865
5396
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
4866
|
-
children: /* @__PURE__ */ (0,
|
|
4867
|
-
/* @__PURE__ */ (0,
|
|
4868
|
-
/* @__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 })
|
|
4869
5400
|
] })
|
|
4870
5401
|
}
|
|
4871
5402
|
)
|
|
@@ -4875,27 +5406,27 @@ var HuntCard = ({
|
|
|
4875
5406
|
var HuntCard_default = HuntCard;
|
|
4876
5407
|
|
|
4877
5408
|
// src/ListingChat/ListingChat.tsx
|
|
4878
|
-
var
|
|
5409
|
+
var import_react35 = require("react");
|
|
4879
5410
|
|
|
4880
5411
|
// src/TagChip/TagChip.styles.ts
|
|
4881
|
-
var
|
|
5412
|
+
var import_react33 = require("@emotion/react");
|
|
4882
5413
|
var tagChipVariantStyles = {
|
|
4883
|
-
primary:
|
|
5414
|
+
primary: import_react33.css`
|
|
4884
5415
|
background-color: var(--surface-disabled);
|
|
4885
5416
|
border: 1px solid var(--surface-disabled);
|
|
4886
5417
|
color: var(--text-primary);
|
|
4887
5418
|
`,
|
|
4888
|
-
error:
|
|
5419
|
+
error: import_react33.css`
|
|
4889
5420
|
background-color: var(--surface-error);
|
|
4890
5421
|
border: 1px solid var(--color-red-300);
|
|
4891
5422
|
color: var(--text-error);
|
|
4892
5423
|
`,
|
|
4893
|
-
success:
|
|
5424
|
+
success: import_react33.css`
|
|
4894
5425
|
background-color: var(--surface-success);
|
|
4895
5426
|
border: 1px solid var(--color-green-300);
|
|
4896
5427
|
color: var(--text-success);
|
|
4897
5428
|
`,
|
|
4898
|
-
warning:
|
|
5429
|
+
warning: import_react33.css`
|
|
4899
5430
|
background-color: var(--surface-subtle);
|
|
4900
5431
|
border: 1px solid var(--color-brown-200);
|
|
4901
5432
|
color: var(--text-primary);
|
|
@@ -4903,14 +5434,14 @@ var tagChipVariantStyles = {
|
|
|
4903
5434
|
};
|
|
4904
5435
|
|
|
4905
5436
|
// src/TagChip/TagChip.tsx
|
|
4906
|
-
var
|
|
5437
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
4907
5438
|
var TagChip = ({
|
|
4908
5439
|
variant = "primary",
|
|
4909
5440
|
className,
|
|
4910
5441
|
children,
|
|
4911
5442
|
...rest
|
|
4912
5443
|
}) => {
|
|
4913
|
-
return /* @__PURE__ */ (0,
|
|
5444
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
4914
5445
|
Box_default,
|
|
4915
5446
|
{
|
|
4916
5447
|
display: "inline-flex",
|
|
@@ -4921,15 +5452,15 @@ var TagChip = ({
|
|
|
4921
5452
|
css: tagChipVariantStyles[variant],
|
|
4922
5453
|
className,
|
|
4923
5454
|
...rest,
|
|
4924
|
-
children: /* @__PURE__ */ (0,
|
|
5455
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Text_default, { as: "span", size: "sm", fontWeight: "normal", children })
|
|
4925
5456
|
}
|
|
4926
5457
|
);
|
|
4927
5458
|
};
|
|
4928
5459
|
var TagChip_default = TagChip;
|
|
4929
5460
|
|
|
4930
5461
|
// src/ListingChat/ListingChat.styles.ts
|
|
4931
|
-
var
|
|
4932
|
-
var
|
|
5462
|
+
var import_react34 = require("@emotion/react");
|
|
5463
|
+
var containerStyles2 = import_react34.css`
|
|
4933
5464
|
display: flex;
|
|
4934
5465
|
flex-direction: column;
|
|
4935
5466
|
gap: var(--spacing-4);
|
|
@@ -4937,13 +5468,13 @@ var containerStyles = import_react28.css`
|
|
|
4937
5468
|
border-radius: var(--radius-lg);
|
|
4938
5469
|
background: var(--surface-success);
|
|
4939
5470
|
`;
|
|
4940
|
-
var headerStyles =
|
|
5471
|
+
var headerStyles = import_react34.css`
|
|
4941
5472
|
display: flex;
|
|
4942
5473
|
align-items: flex-start;
|
|
4943
5474
|
justify-content: space-between;
|
|
4944
5475
|
gap: var(--spacing-2);
|
|
4945
5476
|
`;
|
|
4946
|
-
var chipsContainerStyles =
|
|
5477
|
+
var chipsContainerStyles = import_react34.css`
|
|
4947
5478
|
display: flex;
|
|
4948
5479
|
flex-wrap: wrap;
|
|
4949
5480
|
gap: var(--spacing-4);
|
|
@@ -4956,15 +5487,15 @@ var chipsContainerStyles = import_react28.css`
|
|
|
4956
5487
|
cursor: pointer;
|
|
4957
5488
|
}
|
|
4958
5489
|
`;
|
|
4959
|
-
var textAreaStyles =
|
|
5490
|
+
var textAreaStyles = import_react34.css`
|
|
4960
5491
|
min-height: 62px;
|
|
4961
5492
|
`;
|
|
4962
|
-
var inputWrapperStyles2 =
|
|
5493
|
+
var inputWrapperStyles2 = import_react34.css`
|
|
4963
5494
|
position: relative;
|
|
4964
5495
|
`;
|
|
4965
5496
|
|
|
4966
5497
|
// src/ListingChat/ListingChat.tsx
|
|
4967
|
-
var
|
|
5498
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
4968
5499
|
var ListingChat = ({
|
|
4969
5500
|
onSubmit,
|
|
4970
5501
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -4974,15 +5505,15 @@ var ListingChat = ({
|
|
|
4974
5505
|
disabled = false,
|
|
4975
5506
|
...rest
|
|
4976
5507
|
}) => {
|
|
4977
|
-
const [value, setValue] = (0,
|
|
4978
|
-
const handleSubmit = (0,
|
|
5508
|
+
const [value, setValue] = (0, import_react35.useState)("");
|
|
5509
|
+
const handleSubmit = (0, import_react35.useCallback)(() => {
|
|
4979
5510
|
const trimmed = value.trim();
|
|
4980
5511
|
if (!trimmed)
|
|
4981
5512
|
return;
|
|
4982
5513
|
onSubmit(trimmed);
|
|
4983
5514
|
setValue("");
|
|
4984
5515
|
}, [onSubmit, value]);
|
|
4985
|
-
const handleTagClick = (0,
|
|
5516
|
+
const handleTagClick = (0, import_react35.useCallback)(
|
|
4986
5517
|
(tag) => () => {
|
|
4987
5518
|
const trimmed = tag.trim();
|
|
4988
5519
|
if (!trimmed)
|
|
@@ -4991,18 +5522,18 @@ var ListingChat = ({
|
|
|
4991
5522
|
},
|
|
4992
5523
|
[onSubmit]
|
|
4993
5524
|
);
|
|
4994
|
-
return /* @__PURE__ */ (0,
|
|
4995
|
-
/* @__PURE__ */ (0,
|
|
4996
|
-
/* @__PURE__ */ (0,
|
|
4997
|
-
/* @__PURE__ */ (0,
|
|
4998
|
-
/* @__PURE__ */ (0,
|
|
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." })
|
|
4999
5530
|
] }),
|
|
5000
|
-
/* @__PURE__ */ (0,
|
|
5001
|
-
/* @__PURE__ */ (0,
|
|
5002
|
-
/* @__PURE__ */ (0,
|
|
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" })
|
|
5003
5534
|
] })
|
|
5004
5535
|
] }),
|
|
5005
|
-
/* @__PURE__ */ (0,
|
|
5536
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5006
5537
|
TextArea,
|
|
5007
5538
|
{
|
|
5008
5539
|
rows: 1,
|
|
@@ -5017,14 +5548,14 @@ var ListingChat = ({
|
|
|
5017
5548
|
css: textAreaStyles
|
|
5018
5549
|
}
|
|
5019
5550
|
) }),
|
|
5020
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
5021
|
-
/* @__PURE__ */ (0,
|
|
5022
|
-
/* @__PURE__ */ (0,
|
|
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)(
|
|
5023
5554
|
"button",
|
|
5024
5555
|
{
|
|
5025
5556
|
onClick: handleTagClick(tag),
|
|
5026
5557
|
disabled,
|
|
5027
|
-
children: /* @__PURE__ */ (0,
|
|
5558
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(TagChip_default, { children: tag })
|
|
5028
5559
|
},
|
|
5029
5560
|
tag
|
|
5030
5561
|
)) })
|
|
@@ -5034,11 +5565,11 @@ var ListingChat = ({
|
|
|
5034
5565
|
var ListingChat_default = ListingChat;
|
|
5035
5566
|
|
|
5036
5567
|
// src/Logo/Logo.tsx
|
|
5037
|
-
var
|
|
5568
|
+
var import_react36 = require("@emotion/react");
|
|
5038
5569
|
|
|
5039
5570
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
5040
|
-
var
|
|
5041
|
-
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)(
|
|
5042
5573
|
"svg",
|
|
5043
5574
|
{
|
|
5044
5575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5046,14 +5577,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5046
5577
|
fill: "none",
|
|
5047
5578
|
...props,
|
|
5048
5579
|
children: [
|
|
5049
|
-
/* @__PURE__ */ (0,
|
|
5580
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5050
5581
|
"path",
|
|
5051
5582
|
{
|
|
5052
5583
|
fill: "#000",
|
|
5053
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"
|
|
5054
5585
|
}
|
|
5055
5586
|
) }),
|
|
5056
|
-
/* @__PURE__ */ (0,
|
|
5587
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5057
5588
|
"path",
|
|
5058
5589
|
{
|
|
5059
5590
|
fill: "#FAD44E",
|
|
@@ -5062,14 +5593,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5062
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"
|
|
5063
5594
|
}
|
|
5064
5595
|
),
|
|
5065
|
-
/* @__PURE__ */ (0,
|
|
5596
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5066
5597
|
"path",
|
|
5067
5598
|
{
|
|
5068
5599
|
fill: "#fff",
|
|
5069
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"
|
|
5070
5601
|
}
|
|
5071
5602
|
),
|
|
5072
|
-
/* @__PURE__ */ (0,
|
|
5603
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
5073
5604
|
"filter",
|
|
5074
5605
|
{
|
|
5075
5606
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -5080,8 +5611,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5080
5611
|
colorInterpolationFilters: "sRGB",
|
|
5081
5612
|
filterUnits: "userSpaceOnUse",
|
|
5082
5613
|
children: [
|
|
5083
|
-
/* @__PURE__ */ (0,
|
|
5084
|
-
/* @__PURE__ */ (0,
|
|
5614
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
5615
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5085
5616
|
"feColorMatrix",
|
|
5086
5617
|
{
|
|
5087
5618
|
in: "SourceAlpha",
|
|
@@ -5089,18 +5620,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5089
5620
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5090
5621
|
}
|
|
5091
5622
|
),
|
|
5092
|
-
/* @__PURE__ */ (0,
|
|
5093
|
-
/* @__PURE__ */ (0,
|
|
5094
|
-
/* @__PURE__ */ (0,
|
|
5095
|
-
/* @__PURE__ */ (0,
|
|
5096
|
-
/* @__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)(
|
|
5097
5628
|
"feBlend",
|
|
5098
5629
|
{
|
|
5099
5630
|
in2: "BackgroundImageFix",
|
|
5100
5631
|
result: "effect1_dropShadow_257_2540"
|
|
5101
5632
|
}
|
|
5102
5633
|
),
|
|
5103
|
-
/* @__PURE__ */ (0,
|
|
5634
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5104
5635
|
"feBlend",
|
|
5105
5636
|
{
|
|
5106
5637
|
in: "SourceGraphic",
|
|
@@ -5117,8 +5648,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5117
5648
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
5118
5649
|
|
|
5119
5650
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
5120
|
-
var
|
|
5121
|
-
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)(
|
|
5122
5653
|
"svg",
|
|
5123
5654
|
{
|
|
5124
5655
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5126,14 +5657,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5126
5657
|
fill: "none",
|
|
5127
5658
|
...props,
|
|
5128
5659
|
children: [
|
|
5129
|
-
/* @__PURE__ */ (0,
|
|
5660
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5130
5661
|
"path",
|
|
5131
5662
|
{
|
|
5132
5663
|
fill: "#000",
|
|
5133
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"
|
|
5134
5665
|
}
|
|
5135
5666
|
) }),
|
|
5136
|
-
/* @__PURE__ */ (0,
|
|
5667
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5137
5668
|
"path",
|
|
5138
5669
|
{
|
|
5139
5670
|
fill: "#FAD44E",
|
|
@@ -5142,14 +5673,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5142
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"
|
|
5143
5674
|
}
|
|
5144
5675
|
),
|
|
5145
|
-
/* @__PURE__ */ (0,
|
|
5676
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5146
5677
|
"path",
|
|
5147
5678
|
{
|
|
5148
5679
|
fill: "#1A202C",
|
|
5149
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"
|
|
5150
5681
|
}
|
|
5151
5682
|
),
|
|
5152
|
-
/* @__PURE__ */ (0,
|
|
5683
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
5153
5684
|
"filter",
|
|
5154
5685
|
{
|
|
5155
5686
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -5160,8 +5691,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5160
5691
|
colorInterpolationFilters: "sRGB",
|
|
5161
5692
|
filterUnits: "userSpaceOnUse",
|
|
5162
5693
|
children: [
|
|
5163
|
-
/* @__PURE__ */ (0,
|
|
5164
|
-
/* @__PURE__ */ (0,
|
|
5694
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
5695
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5165
5696
|
"feColorMatrix",
|
|
5166
5697
|
{
|
|
5167
5698
|
in: "SourceAlpha",
|
|
@@ -5169,18 +5700,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5169
5700
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5170
5701
|
}
|
|
5171
5702
|
),
|
|
5172
|
-
/* @__PURE__ */ (0,
|
|
5173
|
-
/* @__PURE__ */ (0,
|
|
5174
|
-
/* @__PURE__ */ (0,
|
|
5175
|
-
/* @__PURE__ */ (0,
|
|
5176
|
-
/* @__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)(
|
|
5177
5708
|
"feBlend",
|
|
5178
5709
|
{
|
|
5179
5710
|
in2: "BackgroundImageFix",
|
|
5180
5711
|
result: "effect1_dropShadow_257_2538"
|
|
5181
5712
|
}
|
|
5182
5713
|
),
|
|
5183
|
-
/* @__PURE__ */ (0,
|
|
5714
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5184
5715
|
"feBlend",
|
|
5185
5716
|
{
|
|
5186
5717
|
in: "SourceGraphic",
|
|
@@ -5197,8 +5728,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5197
5728
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
5198
5729
|
|
|
5199
5730
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
5200
|
-
var
|
|
5201
|
-
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)(
|
|
5202
5733
|
"svg",
|
|
5203
5734
|
{
|
|
5204
5735
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5206,14 +5737,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
5206
5737
|
fill: "none",
|
|
5207
5738
|
...props,
|
|
5208
5739
|
children: [
|
|
5209
|
-
/* @__PURE__ */ (0,
|
|
5740
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5210
5741
|
"path",
|
|
5211
5742
|
{
|
|
5212
5743
|
fill: "#E2430C",
|
|
5213
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"
|
|
5214
5745
|
}
|
|
5215
5746
|
),
|
|
5216
|
-
/* @__PURE__ */ (0,
|
|
5747
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5217
5748
|
"path",
|
|
5218
5749
|
{
|
|
5219
5750
|
fill: "#fff",
|
|
@@ -5226,8 +5757,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
5226
5757
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
5227
5758
|
|
|
5228
5759
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
5229
|
-
var
|
|
5230
|
-
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)(
|
|
5231
5762
|
"svg",
|
|
5232
5763
|
{
|
|
5233
5764
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5235,14 +5766,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
5235
5766
|
fill: "none",
|
|
5236
5767
|
...props,
|
|
5237
5768
|
children: [
|
|
5238
|
-
/* @__PURE__ */ (0,
|
|
5769
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
5239
5770
|
"path",
|
|
5240
5771
|
{
|
|
5241
5772
|
fill: "#E2430C",
|
|
5242
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"
|
|
5243
5774
|
}
|
|
5244
5775
|
),
|
|
5245
|
-
/* @__PURE__ */ (0,
|
|
5776
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
5246
5777
|
"path",
|
|
5247
5778
|
{
|
|
5248
5779
|
fill: "#000",
|
|
@@ -5255,8 +5786,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
5255
5786
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
5256
5787
|
|
|
5257
5788
|
// src/Logo/Logo.tsx
|
|
5258
|
-
var
|
|
5259
|
-
var logoStyles = (size) =>
|
|
5789
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
5790
|
+
var logoStyles = (size) => import_react36.css`
|
|
5260
5791
|
width: ${space[size]};
|
|
5261
5792
|
height: auto;
|
|
5262
5793
|
display: block;
|
|
@@ -5284,72 +5815,18 @@ var Logo = ({
|
|
|
5284
5815
|
return LandtrustStandardLight_default;
|
|
5285
5816
|
};
|
|
5286
5817
|
const LogoComponent = getLogoComponent();
|
|
5287
|
-
return /* @__PURE__ */ (0,
|
|
5818
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
5288
5819
|
};
|
|
5289
5820
|
var Logo_default = Logo;
|
|
5290
5821
|
|
|
5291
|
-
// src/MessageBubble/MessageBubble.styles.ts
|
|
5292
|
-
var import_react31 = require("@emotion/react");
|
|
5293
|
-
var getRootStyles = (variant) => import_react31.css`
|
|
5294
|
-
display: flex;
|
|
5295
|
-
flex-direction: column;
|
|
5296
|
-
gap: var(--spacing-1);
|
|
5297
|
-
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
5298
|
-
`;
|
|
5299
|
-
var getBubbleStyles = (variant) => import_react31.css`
|
|
5300
|
-
max-width: 100%;
|
|
5301
|
-
width: 100%;
|
|
5302
|
-
box-sizing: border-box;
|
|
5303
|
-
display: flex;
|
|
5304
|
-
gap: var(--spacing-3);
|
|
5305
|
-
align-items: center;
|
|
5306
|
-
justify-content: center;
|
|
5307
|
-
padding: var(--spacing-4);
|
|
5308
|
-
background-color: ${variant === "sent" ? "var(--color-neutral-900)" : "var(--surface-neutral)"};
|
|
5309
|
-
color: ${variant === "sent" ? "var(--color-base-white)" : "var(--text-primary)"};
|
|
5310
|
-
border: ${variant === "sent" ? "1px solid transparent" : "none"};
|
|
5311
|
-
border-top-left-radius: var(--radius-lg);
|
|
5312
|
-
border-top-right-radius: var(--radius-lg);
|
|
5313
|
-
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
5314
|
-
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
5315
|
-
`;
|
|
5316
|
-
var contentStyles = import_react31.css`
|
|
5317
|
-
flex: 1 1 auto;
|
|
5318
|
-
min-width: 1px;
|
|
5319
|
-
min-height: 1px;
|
|
5320
|
-
`;
|
|
5321
|
-
|
|
5322
|
-
// src/MessageBubble/MessageBubble.tsx
|
|
5323
|
-
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
5324
|
-
var MessageBubble = ({
|
|
5325
|
-
variant = "sent",
|
|
5326
|
-
timestamp,
|
|
5327
|
-
className,
|
|
5328
|
-
children
|
|
5329
|
-
}) => {
|
|
5330
|
-
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { className, css: getRootStyles(variant), children: [
|
|
5331
|
-
timestamp && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5332
|
-
Text_default,
|
|
5333
|
-
{
|
|
5334
|
-
size: "xs",
|
|
5335
|
-
color: "var(--text-secondary)",
|
|
5336
|
-
textAlign: variant === "sent" ? "right" : "left",
|
|
5337
|
-
children: timestamp
|
|
5338
|
-
}
|
|
5339
|
-
),
|
|
5340
|
-
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { css: getBubbleStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { css: contentStyles, children }) })
|
|
5341
|
-
] });
|
|
5342
|
-
};
|
|
5343
|
-
var MessageBubble_default = MessageBubble;
|
|
5344
|
-
|
|
5345
5822
|
// src/Navigation/Navigation.styles.ts
|
|
5346
|
-
var
|
|
5347
|
-
var navigationStyles =
|
|
5823
|
+
var import_react37 = require("@emotion/react");
|
|
5824
|
+
var navigationStyles = import_react37.css`
|
|
5348
5825
|
width: 100%;
|
|
5349
5826
|
background-color: white;
|
|
5350
5827
|
border-bottom: 1px solid #e5e5e5;
|
|
5351
5828
|
`;
|
|
5352
|
-
var hamburgerButtonStyles =
|
|
5829
|
+
var hamburgerButtonStyles = import_react37.css`
|
|
5353
5830
|
cursor: pointer;
|
|
5354
5831
|
&:focus {
|
|
5355
5832
|
outline: 2px solid #4f46e5;
|
|
@@ -5360,7 +5837,7 @@ var hamburgerButtonStyles = import_react32.css`
|
|
|
5360
5837
|
display: none;
|
|
5361
5838
|
}
|
|
5362
5839
|
`;
|
|
5363
|
-
var centeredLogoStyles =
|
|
5840
|
+
var centeredLogoStyles = import_react37.css`
|
|
5364
5841
|
transform: translate(-50%, -50%);
|
|
5365
5842
|
max-width: 150px;
|
|
5366
5843
|
|
|
@@ -5368,27 +5845,27 @@ var centeredLogoStyles = import_react32.css`
|
|
|
5368
5845
|
display: none;
|
|
5369
5846
|
}
|
|
5370
5847
|
`;
|
|
5371
|
-
var desktopLogoStyles =
|
|
5848
|
+
var desktopLogoStyles = import_react37.css`
|
|
5372
5849
|
display: none;
|
|
5373
5850
|
|
|
5374
5851
|
@media (min-width: 768px) {
|
|
5375
5852
|
display: block;
|
|
5376
5853
|
}
|
|
5377
5854
|
`;
|
|
5378
|
-
var
|
|
5855
|
+
var containerStyles3 = import_react37.css`
|
|
5379
5856
|
@media (min-width: 768px) {
|
|
5380
5857
|
justify-content: space-between;
|
|
5381
5858
|
position: static;
|
|
5382
5859
|
}
|
|
5383
5860
|
`;
|
|
5384
|
-
var logoStyles2 =
|
|
5861
|
+
var logoStyles2 = import_react37.css`
|
|
5385
5862
|
width: 100%;
|
|
5386
5863
|
|
|
5387
5864
|
@media (min-width: 768px) {
|
|
5388
5865
|
width: initial;
|
|
5389
5866
|
}
|
|
5390
5867
|
`;
|
|
5391
|
-
var desktopNavStyles =
|
|
5868
|
+
var desktopNavStyles = import_react37.css`
|
|
5392
5869
|
display: none;
|
|
5393
5870
|
|
|
5394
5871
|
@media (min-width: 768px) {
|
|
@@ -5397,7 +5874,7 @@ var desktopNavStyles = import_react32.css`
|
|
|
5397
5874
|
gap: 32px;
|
|
5398
5875
|
}
|
|
5399
5876
|
`;
|
|
5400
|
-
var navLinksStyles =
|
|
5877
|
+
var navLinksStyles = import_react37.css`
|
|
5401
5878
|
display: flex;
|
|
5402
5879
|
align-items: center;
|
|
5403
5880
|
gap: 24px;
|
|
@@ -5405,7 +5882,7 @@ var navLinksStyles = import_react32.css`
|
|
|
5405
5882
|
margin: 0;
|
|
5406
5883
|
padding: 0;
|
|
5407
5884
|
`;
|
|
5408
|
-
var navLinkStyles =
|
|
5885
|
+
var navLinkStyles = import_react37.css`
|
|
5409
5886
|
text-decoration: none;
|
|
5410
5887
|
color: #374151;
|
|
5411
5888
|
font-weight: 500;
|
|
@@ -5421,7 +5898,7 @@ var navLinkStyles = import_react32.css`
|
|
|
5421
5898
|
outline-offset: 2px;
|
|
5422
5899
|
}
|
|
5423
5900
|
`;
|
|
5424
|
-
var avatarPlaceholderStyles =
|
|
5901
|
+
var avatarPlaceholderStyles = import_react37.css`
|
|
5425
5902
|
width: 32px;
|
|
5426
5903
|
height: 32px;
|
|
5427
5904
|
border-radius: 50%;
|
|
@@ -5446,7 +5923,7 @@ var avatarPlaceholderStyles = import_react32.css`
|
|
|
5446
5923
|
`;
|
|
5447
5924
|
|
|
5448
5925
|
// src/Navigation/Navigation.tsx
|
|
5449
|
-
var
|
|
5926
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
5450
5927
|
var Navigation = ({
|
|
5451
5928
|
onMenuToggle,
|
|
5452
5929
|
className,
|
|
@@ -5460,16 +5937,16 @@ var Navigation = ({
|
|
|
5460
5937
|
onAvatarClick,
|
|
5461
5938
|
...rest
|
|
5462
5939
|
}) => {
|
|
5463
|
-
return /* @__PURE__ */ (0,
|
|
5940
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
|
|
5464
5941
|
Box_default,
|
|
5465
5942
|
{
|
|
5466
5943
|
display: "flex",
|
|
5467
5944
|
alignItems: "center",
|
|
5468
5945
|
padding: space[4],
|
|
5469
5946
|
position: "relative",
|
|
5470
|
-
css:
|
|
5947
|
+
css: containerStyles3,
|
|
5471
5948
|
children: [
|
|
5472
|
-
/* @__PURE__ */ (0,
|
|
5949
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5473
5950
|
Box_default,
|
|
5474
5951
|
{
|
|
5475
5952
|
as: "button",
|
|
@@ -5481,11 +5958,11 @@ var Navigation = ({
|
|
|
5481
5958
|
border: "none",
|
|
5482
5959
|
padding: space[2],
|
|
5483
5960
|
css: hamburgerButtonStyles,
|
|
5484
|
-
children: /* @__PURE__ */ (0,
|
|
5961
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Icon_default, { variant: "Bars", size: 6 })
|
|
5485
5962
|
}
|
|
5486
5963
|
),
|
|
5487
|
-
/* @__PURE__ */ (0,
|
|
5488
|
-
/* @__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)(
|
|
5489
5966
|
Logo_default,
|
|
5490
5967
|
{
|
|
5491
5968
|
variant: logoVariant,
|
|
@@ -5494,8 +5971,8 @@ var Navigation = ({
|
|
|
5494
5971
|
css: logoStyles2
|
|
5495
5972
|
}
|
|
5496
5973
|
) }),
|
|
5497
|
-
/* @__PURE__ */ (0,
|
|
5498
|
-
/* @__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)(
|
|
5499
5976
|
"a",
|
|
5500
5977
|
{
|
|
5501
5978
|
href: link.href,
|
|
@@ -5504,7 +5981,7 @@ var Navigation = ({
|
|
|
5504
5981
|
children: link.label
|
|
5505
5982
|
}
|
|
5506
5983
|
) }, link.href)) }) }),
|
|
5507
|
-
/* @__PURE__ */ (0,
|
|
5984
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5508
5985
|
Box_default,
|
|
5509
5986
|
{
|
|
5510
5987
|
as: "button",
|
|
@@ -5523,8 +6000,8 @@ var Navigation = ({
|
|
|
5523
6000
|
var Navigation_default = Navigation;
|
|
5524
6001
|
|
|
5525
6002
|
// src/PackageCard/PackageCard.styles.ts
|
|
5526
|
-
var
|
|
5527
|
-
var cardContainerStyles3 =
|
|
6003
|
+
var import_react38 = require("@emotion/react");
|
|
6004
|
+
var cardContainerStyles3 = import_react38.css`
|
|
5528
6005
|
color: var(--text-primary);
|
|
5529
6006
|
position: relative;
|
|
5530
6007
|
width: 100%;
|
|
@@ -5541,14 +6018,14 @@ var cardContainerStyles3 = import_react33.css`
|
|
|
5541
6018
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
5542
6019
|
}
|
|
5543
6020
|
`;
|
|
5544
|
-
var imageContainerStyles =
|
|
6021
|
+
var imageContainerStyles = import_react38.css`
|
|
5545
6022
|
position: relative;
|
|
5546
6023
|
width: 100%;
|
|
5547
6024
|
height: 200px;
|
|
5548
6025
|
overflow: hidden;
|
|
5549
6026
|
border-radius: var(--spacing-4);
|
|
5550
6027
|
`;
|
|
5551
|
-
var imageStyles =
|
|
6028
|
+
var imageStyles = import_react38.css`
|
|
5552
6029
|
width: 100%;
|
|
5553
6030
|
height: 100%;
|
|
5554
6031
|
background-size: cover;
|
|
@@ -5556,13 +6033,13 @@ var imageStyles = import_react33.css`
|
|
|
5556
6033
|
background-repeat: no-repeat;
|
|
5557
6034
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
5558
6035
|
`;
|
|
5559
|
-
var badgeStyles =
|
|
6036
|
+
var badgeStyles = import_react38.css`
|
|
5560
6037
|
position: absolute;
|
|
5561
6038
|
top: var(--spacing-3);
|
|
5562
6039
|
left: var(--spacing-3);
|
|
5563
6040
|
z-index: 2;
|
|
5564
6041
|
`;
|
|
5565
|
-
var heartIconStyles =
|
|
6042
|
+
var heartIconStyles = import_react38.css`
|
|
5566
6043
|
position: absolute;
|
|
5567
6044
|
top: var(--spacing-3);
|
|
5568
6045
|
right: var(--spacing-3);
|
|
@@ -5584,12 +6061,12 @@ var heartIconStyles = import_react33.css`
|
|
|
5584
6061
|
transform: scale(1.1);
|
|
5585
6062
|
}
|
|
5586
6063
|
`;
|
|
5587
|
-
var contentStyles2 =
|
|
6064
|
+
var contentStyles2 = import_react38.css`
|
|
5588
6065
|
padding: var(--spacing-3);
|
|
5589
6066
|
`;
|
|
5590
6067
|
|
|
5591
6068
|
// src/PackageCard/PackageCard.tsx
|
|
5592
|
-
var
|
|
6069
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
5593
6070
|
var PackageCard = ({
|
|
5594
6071
|
images,
|
|
5595
6072
|
title,
|
|
@@ -5606,13 +6083,13 @@ var PackageCard = ({
|
|
|
5606
6083
|
...rest
|
|
5607
6084
|
}) => {
|
|
5608
6085
|
const mainImage = images[0] || "";
|
|
5609
|
-
return /* @__PURE__ */ (0,
|
|
5610
|
-
/* @__PURE__ */ (0,
|
|
5611
|
-
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: [
|
|
5612
6089
|
tripsLeft,
|
|
5613
6090
|
" Trips Left"
|
|
5614
6091
|
] }),
|
|
5615
|
-
/* @__PURE__ */ (0,
|
|
6092
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5616
6093
|
Box_default,
|
|
5617
6094
|
{
|
|
5618
6095
|
css: heartIconStyles,
|
|
@@ -5620,12 +6097,12 @@ var PackageCard = ({
|
|
|
5620
6097
|
e.stopPropagation();
|
|
5621
6098
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
5622
6099
|
},
|
|
5623
|
-
children: /* @__PURE__ */ (0,
|
|
6100
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Icon_default, { variant: isFavorited ? "HeartSolid" : "Heart", size: 5 })
|
|
5624
6101
|
}
|
|
5625
6102
|
)
|
|
5626
6103
|
] }) }),
|
|
5627
|
-
/* @__PURE__ */ (0,
|
|
5628
|
-
/* @__PURE__ */ (0,
|
|
6104
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
6105
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
|
|
5629
6106
|
Box_default,
|
|
5630
6107
|
{
|
|
5631
6108
|
onClick,
|
|
@@ -5634,9 +6111,9 @@ var PackageCard = ({
|
|
|
5634
6111
|
gap: "var(--spacing-1)",
|
|
5635
6112
|
mb: "var(--spacing-4)",
|
|
5636
6113
|
children: [
|
|
5637
|
-
/* @__PURE__ */ (0,
|
|
5638
|
-
/* @__PURE__ */ (0,
|
|
5639
|
-
/* @__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: [
|
|
5640
6117
|
"Starting Price ",
|
|
5641
6118
|
startingPrice,
|
|
5642
6119
|
" / Guest"
|
|
@@ -5644,261 +6121,34 @@ var PackageCard = ({
|
|
|
5644
6121
|
]
|
|
5645
6122
|
}
|
|
5646
6123
|
),
|
|
5647
|
-
/* @__PURE__ */ (0,
|
|
5648
|
-
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)(
|
|
5649
6126
|
IconLabel_default,
|
|
5650
6127
|
{
|
|
5651
6128
|
variant: "Calendar",
|
|
5652
6129
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
5653
6130
|
}
|
|
5654
6131
|
),
|
|
5655
|
-
guests && /* @__PURE__ */ (0,
|
|
6132
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5656
6133
|
IconLabel_default,
|
|
5657
6134
|
{
|
|
5658
6135
|
variant: "User",
|
|
5659
6136
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
5660
6137
|
}
|
|
5661
6138
|
),
|
|
5662
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
6139
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
5663
6140
|
] })
|
|
5664
6141
|
] })
|
|
5665
6142
|
] });
|
|
5666
6143
|
};
|
|
5667
6144
|
var PackageCard_default = PackageCard;
|
|
5668
|
-
|
|
5669
|
-
// src/Widget/Widget.tsx
|
|
5670
|
-
var import_react35 = require("react");
|
|
5671
|
-
|
|
5672
|
-
// src/Widget/Widget.styles.ts
|
|
5673
|
-
var import_react34 = require("@emotion/react");
|
|
5674
|
-
var fixedContainer = import_react34.css`
|
|
5675
|
-
position: fixed;
|
|
5676
|
-
right: var(--spacing-6);
|
|
5677
|
-
bottom: var(--spacing-6);
|
|
5678
|
-
z-index: 50;
|
|
5679
|
-
`;
|
|
5680
|
-
var panelContainer = import_react34.css`
|
|
5681
|
-
position: absolute;
|
|
5682
|
-
right: 0;
|
|
5683
|
-
bottom: 0;
|
|
5684
|
-
z-index: 1;
|
|
5685
|
-
|
|
5686
|
-
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
5687
|
-
position: fixed;
|
|
5688
|
-
inset: 0;
|
|
5689
|
-
right: 0;
|
|
5690
|
-
bottom: 0;
|
|
5691
|
-
display: flex;
|
|
5692
|
-
align-items: stretch;
|
|
5693
|
-
justify-content: stretch;
|
|
5694
|
-
}
|
|
5695
|
-
`;
|
|
5696
|
-
var panelCard = (width2) => import_react34.css`
|
|
5697
|
-
background: var(--surface-page);
|
|
5698
|
-
color: var(--text-primary);
|
|
5699
|
-
border: 1px solid var(--border-primary);
|
|
5700
|
-
border-radius: var(--radius-lg);
|
|
5701
|
-
padding: var(--spacing-4);
|
|
5702
|
-
max-height: 70vh;
|
|
5703
|
-
overflow: auto;
|
|
5704
|
-
box-shadow: 0 0 var(--shadow-blur-lg, 24px) var(--shadow-spread-xs, -4px)
|
|
5705
|
-
rgba(17, 17, 17, 0.1);
|
|
5706
|
-
|
|
5707
|
-
/* Width passed from props (desktop/tablet) */
|
|
5708
|
-
width: ${typeof width2 === "number" ? `${width2}px` : width2};
|
|
5709
|
-
|
|
5710
|
-
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
5711
|
-
width: 100vw;
|
|
5712
|
-
height: 100vh;
|
|
5713
|
-
max-height: 100vh;
|
|
5714
|
-
border-radius: 0;
|
|
5715
|
-
padding: var(--spacing-4);
|
|
5716
|
-
overflow: auto;
|
|
5717
|
-
}
|
|
5718
|
-
`;
|
|
5719
|
-
var headerRow = import_react34.css`
|
|
5720
|
-
display: flex;
|
|
5721
|
-
align-items: center;
|
|
5722
|
-
justify-content: space-between;
|
|
5723
|
-
gap: var(--spacing-4);
|
|
5724
|
-
`;
|
|
5725
|
-
var badge = import_react34.css`
|
|
5726
|
-
width: 42px;
|
|
5727
|
-
height: 42px;
|
|
5728
|
-
border-radius: 9999px;
|
|
5729
|
-
display: inline-flex;
|
|
5730
|
-
align-items: center;
|
|
5731
|
-
justify-content: center;
|
|
5732
|
-
background-color: var(--color-primary-500);
|
|
5733
|
-
color: var(--color-base-white);
|
|
5734
|
-
`;
|
|
5735
|
-
var closeButtonContent = import_react34.css`
|
|
5736
|
-
display: inline-flex;
|
|
5737
|
-
align-items: center;
|
|
5738
|
-
gap: var(--spacing-2);
|
|
5739
|
-
`;
|
|
5740
|
-
var closeButtonIcon = import_react34.css`
|
|
5741
|
-
display: block;
|
|
5742
|
-
`;
|
|
5743
|
-
var widgetTrigger = import_react34.css`
|
|
5744
|
-
margin: var(--spacing-1);
|
|
5745
|
-
`;
|
|
5746
|
-
|
|
5747
|
-
// src/Widget/Widget.tsx
|
|
5748
|
-
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
5749
|
-
var WidgetContext = (0, import_react35.createContext)(null);
|
|
5750
|
-
var useWidgetContext = () => {
|
|
5751
|
-
const ctx = (0, import_react35.useContext)(WidgetContext);
|
|
5752
|
-
if (!ctx)
|
|
5753
|
-
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
5754
|
-
return ctx;
|
|
5755
|
-
};
|
|
5756
|
-
var WidgetTrigger = () => {
|
|
5757
|
-
const { expanded, toggle, triggerRef, icon, expandedIcon } = useWidgetContext();
|
|
5758
|
-
const currentIcon = expanded ? expandedIcon : icon;
|
|
5759
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(import_jsx_runtime221.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5760
|
-
Button_default,
|
|
5761
|
-
{
|
|
5762
|
-
ref: triggerRef,
|
|
5763
|
-
"aria-expanded": expanded,
|
|
5764
|
-
"aria-haspopup": "dialog",
|
|
5765
|
-
onClick: toggle,
|
|
5766
|
-
size: "lg",
|
|
5767
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Icon_default, { variant: currentIcon, size: 8 }),
|
|
5768
|
-
css: widgetTrigger
|
|
5769
|
-
}
|
|
5770
|
-
) });
|
|
5771
|
-
};
|
|
5772
|
-
var WidgetPanel = ({ className, style, children }) => {
|
|
5773
|
-
const { expanded, panelWidth, header, icon, toggle } = useWidgetContext();
|
|
5774
|
-
if (!expanded)
|
|
5775
|
-
return null;
|
|
5776
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("div", { css: panelContainer, className, style, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(Box_default, { css: panelCard(panelWidth), role: "dialog", "aria-modal": true, children: [
|
|
5777
|
-
header && /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(import_jsx_runtime221.Fragment, { children: [
|
|
5778
|
-
/* @__PURE__ */ (0, import_jsx_runtime221.jsxs)("div", { css: headerRow, children: [
|
|
5779
|
-
/* @__PURE__ */ (0, import_jsx_runtime221.jsxs)("div", { style: { display: "flex", alignItems: "center", gap: 16 }, children: [
|
|
5780
|
-
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Icon_default, { variant: icon, size: 6 }) }),
|
|
5781
|
-
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", color: "gray.900", children: header })
|
|
5782
|
-
] }),
|
|
5783
|
-
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5784
|
-
Button_default,
|
|
5785
|
-
{
|
|
5786
|
-
variant: "text",
|
|
5787
|
-
size: "xs",
|
|
5788
|
-
"aria-label": "Close widget",
|
|
5789
|
-
onClick: toggle,
|
|
5790
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)("span", { css: closeButtonContent, children: [
|
|
5791
|
-
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Icon_default, { variant: "Xmark", size: 5, css: closeButtonIcon }),
|
|
5792
|
-
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)("span", { children: "Close" })
|
|
5793
|
-
] })
|
|
5794
|
-
}
|
|
5795
|
-
)
|
|
5796
|
-
] }),
|
|
5797
|
-
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Divider_default, {})
|
|
5798
|
-
] }),
|
|
5799
|
-
children
|
|
5800
|
-
] }) });
|
|
5801
|
-
};
|
|
5802
|
-
var WidgetRoot = ({
|
|
5803
|
-
ariaLabel,
|
|
5804
|
-
icon = "Plus",
|
|
5805
|
-
expandedIcon = "Xmark",
|
|
5806
|
-
defaultExpanded = false,
|
|
5807
|
-
expanded,
|
|
5808
|
-
onExpandedChange,
|
|
5809
|
-
size,
|
|
5810
|
-
panelWidth,
|
|
5811
|
-
className,
|
|
5812
|
-
children,
|
|
5813
|
-
header
|
|
5814
|
-
}) => {
|
|
5815
|
-
const [internalExpanded, setInternalExpanded] = (0, import_react35.useState)(defaultExpanded);
|
|
5816
|
-
const isControlled = typeof expanded === "boolean";
|
|
5817
|
-
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
5818
|
-
const triggerRef = (0, import_react35.useRef)(null);
|
|
5819
|
-
const containerRef = (0, import_react35.useRef)(null);
|
|
5820
|
-
const setExpanded = (0, import_react35.useCallback)(
|
|
5821
|
-
(next) => {
|
|
5822
|
-
if (!isControlled)
|
|
5823
|
-
setInternalExpanded(next);
|
|
5824
|
-
onExpandedChange == null ? void 0 : onExpandedChange(next);
|
|
5825
|
-
if (!next) {
|
|
5826
|
-
setTimeout(() => {
|
|
5827
|
-
var _a;
|
|
5828
|
-
return (_a = triggerRef.current) == null ? void 0 : _a.focus();
|
|
5829
|
-
}, 0);
|
|
5830
|
-
}
|
|
5831
|
-
},
|
|
5832
|
-
[isControlled, onExpandedChange]
|
|
5833
|
-
);
|
|
5834
|
-
const toggle = (0, import_react35.useCallback)(
|
|
5835
|
-
() => setExpanded(!isExpanded),
|
|
5836
|
-
[isExpanded, setExpanded]
|
|
5837
|
-
);
|
|
5838
|
-
(0, import_react35.useEffect)(() => {
|
|
5839
|
-
if (!isExpanded)
|
|
5840
|
-
return;
|
|
5841
|
-
const onDocClick = (e) => {
|
|
5842
|
-
const target = e.target;
|
|
5843
|
-
if (!containerRef.current)
|
|
5844
|
-
return;
|
|
5845
|
-
if (!containerRef.current.contains(target)) {
|
|
5846
|
-
setExpanded(false);
|
|
5847
|
-
}
|
|
5848
|
-
};
|
|
5849
|
-
document.addEventListener("mousedown", onDocClick);
|
|
5850
|
-
return () => document.removeEventListener("mousedown", onDocClick);
|
|
5851
|
-
}, [isExpanded, setExpanded]);
|
|
5852
|
-
(0, import_react35.useEffect)(() => {
|
|
5853
|
-
if (!isExpanded)
|
|
5854
|
-
return;
|
|
5855
|
-
const onKey = (e) => {
|
|
5856
|
-
if (e.key === "Escape")
|
|
5857
|
-
setExpanded(false);
|
|
5858
|
-
};
|
|
5859
|
-
document.addEventListener("keydown", onKey);
|
|
5860
|
-
return () => document.removeEventListener("keydown", onKey);
|
|
5861
|
-
}, [isExpanded, setExpanded]);
|
|
5862
|
-
const sizePx = (0, import_react35.useMemo)(() => {
|
|
5863
|
-
if (typeof size === "number")
|
|
5864
|
-
return size;
|
|
5865
|
-
return 56;
|
|
5866
|
-
}, [size]);
|
|
5867
|
-
const value = (0, import_react35.useMemo)(
|
|
5868
|
-
() => ({
|
|
5869
|
-
expanded: isExpanded,
|
|
5870
|
-
toggle,
|
|
5871
|
-
triggerRef,
|
|
5872
|
-
icon,
|
|
5873
|
-
expandedIcon,
|
|
5874
|
-
sizePx,
|
|
5875
|
-
panelWidth: panelWidth != null ? panelWidth : 360,
|
|
5876
|
-
header
|
|
5877
|
-
}),
|
|
5878
|
-
[expandedIcon, icon, isExpanded, panelWidth, sizePx, toggle, header]
|
|
5879
|
-
);
|
|
5880
|
-
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5881
|
-
"div",
|
|
5882
|
-
{
|
|
5883
|
-
ref: containerRef,
|
|
5884
|
-
css: fixedContainer,
|
|
5885
|
-
className,
|
|
5886
|
-
"aria-label": ariaLabel,
|
|
5887
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(WidgetContext.Provider, { value, children })
|
|
5888
|
-
}
|
|
5889
|
-
);
|
|
5890
|
-
};
|
|
5891
|
-
var Widget = Object.assign(WidgetRoot, {
|
|
5892
|
-
Trigger: WidgetTrigger,
|
|
5893
|
-
Panel: WidgetPanel
|
|
5894
|
-
});
|
|
5895
|
-
var Widget_default = Widget;
|
|
5896
6145
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5897
6146
|
0 && (module.exports = {
|
|
5898
6147
|
AIResponse,
|
|
5899
6148
|
AvailabilityChip,
|
|
5900
6149
|
Box,
|
|
5901
6150
|
Button,
|
|
6151
|
+
ChatWidget,
|
|
5902
6152
|
Column,
|
|
5903
6153
|
Container,
|
|
5904
6154
|
Divider,
|
|
@@ -5919,6 +6169,7 @@ var Widget_default = Widget;
|
|
|
5919
6169
|
Navigation,
|
|
5920
6170
|
PackageCard,
|
|
5921
6171
|
Select,
|
|
6172
|
+
Spinner,
|
|
5922
6173
|
TagChip,
|
|
5923
6174
|
Text,
|
|
5924
6175
|
TextArea,
|