@landtrustinc/design-system 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +57 -28
- package/dist/index.js +1218 -984
- 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,
|
|
@@ -517,12 +519,12 @@ var GlobalStyle = import_react.css`
|
|
|
517
519
|
`;
|
|
518
520
|
|
|
519
521
|
// src/AIResponse/AIResponse.tsx
|
|
520
|
-
var
|
|
522
|
+
var import_react11 = require("react");
|
|
521
523
|
|
|
522
524
|
// src/Button/Button.tsx
|
|
523
|
-
var
|
|
525
|
+
var import_react5 = require("@emotion/react");
|
|
524
526
|
var import_lodash = require("lodash");
|
|
525
|
-
var
|
|
527
|
+
var import_react6 = __toESM(require("react"));
|
|
526
528
|
|
|
527
529
|
// src/Icon/Icon.tsx
|
|
528
530
|
var import_react2 = require("@emotion/react");
|
|
@@ -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),
|
|
@@ -2786,8 +2785,39 @@ var Icon = ({
|
|
|
2786
2785
|
};
|
|
2787
2786
|
var Icon_default = Icon;
|
|
2788
2787
|
|
|
2789
|
-
// src/
|
|
2788
|
+
// src/Spinner/Spinner.styles.ts
|
|
2790
2789
|
var import_react3 = require("@emotion/react");
|
|
2790
|
+
var spinnerStyles = import_react3.css`
|
|
2791
|
+
animation: lt-spin 1s linear infinite;
|
|
2792
|
+
|
|
2793
|
+
@keyframes lt-spin {
|
|
2794
|
+
from {
|
|
2795
|
+
transform: rotate(0deg);
|
|
2796
|
+
}
|
|
2797
|
+
to {
|
|
2798
|
+
transform: rotate(360deg);
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
`;
|
|
2802
|
+
|
|
2803
|
+
// src/Spinner/Spinner.tsx
|
|
2804
|
+
var import_jsx_runtime196 = require("@emotion/react/jsx-runtime");
|
|
2805
|
+
var Spinner = ({ size = 5, className, fill }) => {
|
|
2806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
|
|
2807
|
+
Icon_default,
|
|
2808
|
+
{
|
|
2809
|
+
variant: "Spinner",
|
|
2810
|
+
size,
|
|
2811
|
+
className,
|
|
2812
|
+
css: spinnerStyles,
|
|
2813
|
+
fill
|
|
2814
|
+
}
|
|
2815
|
+
);
|
|
2816
|
+
};
|
|
2817
|
+
var Spinner_default2 = Spinner;
|
|
2818
|
+
|
|
2819
|
+
// src/Button/Button.styles.ts
|
|
2820
|
+
var import_react4 = require("@emotion/react");
|
|
2791
2821
|
|
|
2792
2822
|
// src/Button/TopoPattern.ts
|
|
2793
2823
|
var topoPattern = `data:image/svg+xml;base64,${btoa(`
|
|
@@ -2831,7 +2861,7 @@ var topoPattern = `data:image/svg+xml;base64,${btoa(`
|
|
|
2831
2861
|
var TopoPattern_default = topoPattern;
|
|
2832
2862
|
|
|
2833
2863
|
// src/Button/Button.styles.ts
|
|
2834
|
-
var rootStyles =
|
|
2864
|
+
var rootStyles = import_react4.css`
|
|
2835
2865
|
position: relative;
|
|
2836
2866
|
padding: ${space["4"]} ${space["10"]};
|
|
2837
2867
|
max-height: ${space["12"]};
|
|
@@ -2860,40 +2890,40 @@ var rootStyles = import_react3.css`
|
|
|
2860
2890
|
}
|
|
2861
2891
|
`;
|
|
2862
2892
|
var styles = {
|
|
2863
|
-
primary:
|
|
2864
|
-
background-color:
|
|
2865
|
-
color:
|
|
2866
|
-
border-color:
|
|
2893
|
+
primary: import_react4.css`
|
|
2894
|
+
background-color: var(--surface-action);
|
|
2895
|
+
color: var(--text-on-action);
|
|
2896
|
+
border-color: var(--border-action);
|
|
2867
2897
|
|
|
2868
2898
|
&:hover {
|
|
2869
|
-
background-color:
|
|
2870
|
-
border-color:
|
|
2899
|
+
background-color: var(--surface-action-hover);
|
|
2900
|
+
border-color: var(--border-action-hover);
|
|
2871
2901
|
}
|
|
2872
2902
|
|
|
2873
2903
|
&:active {
|
|
2874
|
-
background-color:
|
|
2875
|
-
border-color:
|
|
2904
|
+
background-color: var(--surface-action-hover);
|
|
2905
|
+
border-color: var(--border-action-hover);
|
|
2876
2906
|
}
|
|
2877
2907
|
|
|
2878
2908
|
&:focus {
|
|
2879
|
-
outline: 2px solid
|
|
2909
|
+
outline: 2px solid var(--color-primary-100);
|
|
2880
2910
|
}
|
|
2881
2911
|
`,
|
|
2882
|
-
secondary:
|
|
2912
|
+
secondary: import_react4.css`
|
|
2883
2913
|
background-color: transparent;
|
|
2884
|
-
color:
|
|
2885
|
-
border-color:
|
|
2914
|
+
color: var(--text-primary);
|
|
2915
|
+
border-color: var(--border-secondary);
|
|
2886
2916
|
|
|
2887
2917
|
&:hover {
|
|
2888
|
-
background-color:
|
|
2889
|
-
color:
|
|
2918
|
+
background-color: var(--surface-action-3-hover);
|
|
2919
|
+
color: var(--text-primary);
|
|
2890
2920
|
}
|
|
2891
2921
|
|
|
2892
2922
|
&:focus {
|
|
2893
|
-
outline: 2px solid
|
|
2923
|
+
outline: 2px solid var(--color-neutral-700);
|
|
2894
2924
|
}
|
|
2895
2925
|
`,
|
|
2896
|
-
tertiary:
|
|
2926
|
+
tertiary: import_react4.css`
|
|
2897
2927
|
background-color: ${colors.gray["900"]};
|
|
2898
2928
|
color: ${colors.light["100"]};
|
|
2899
2929
|
border-color: ${colors.gray["900"]};
|
|
@@ -2912,25 +2942,25 @@ var styles = {
|
|
|
2912
2942
|
outline: 2px solid ${colors.olive["600"]};
|
|
2913
2943
|
}
|
|
2914
2944
|
`,
|
|
2915
|
-
plus:
|
|
2916
|
-
background-color:
|
|
2917
|
-
color:
|
|
2918
|
-
border-color:
|
|
2919
|
-
box-shadow:
|
|
2945
|
+
plus: import_react4.css`
|
|
2946
|
+
background-color: var(--surface-action-2);
|
|
2947
|
+
color: var(--text-primary);
|
|
2948
|
+
border-color: var(--border-secondary);
|
|
2949
|
+
box-shadow: var(--shadow-md);
|
|
2920
2950
|
|
|
2921
2951
|
&:hover {
|
|
2922
|
-
background-color:
|
|
2952
|
+
background-color: var(--surface-action-2-hover);
|
|
2923
2953
|
}
|
|
2924
2954
|
|
|
2925
2955
|
&:active {
|
|
2926
|
-
background-color:
|
|
2956
|
+
background-color: var(--surface-action-2-hover);
|
|
2927
2957
|
}
|
|
2928
2958
|
|
|
2929
2959
|
&:focus {
|
|
2930
|
-
outline: 2px solid
|
|
2960
|
+
outline: 2px solid var(--surface-action-2);
|
|
2931
2961
|
}
|
|
2932
2962
|
`,
|
|
2933
|
-
simple:
|
|
2963
|
+
simple: import_react4.css`
|
|
2934
2964
|
background-color: ${colors.light["100"]};
|
|
2935
2965
|
color: ${colors.dark["900"]};
|
|
2936
2966
|
border-color: ${colors.gray["200"]};
|
|
@@ -2947,37 +2977,22 @@ var styles = {
|
|
|
2947
2977
|
outline: 2px solid ${colors.gray["300"]};
|
|
2948
2978
|
}
|
|
2949
2979
|
`,
|
|
2950
|
-
text:
|
|
2980
|
+
text: import_react4.css`
|
|
2951
2981
|
text-decoration: none;
|
|
2952
2982
|
border-color: transparent;
|
|
2953
|
-
color:
|
|
2983
|
+
color: var(--text-primary);
|
|
2954
2984
|
|
|
2955
2985
|
&:hover {
|
|
2956
2986
|
text-decoration: none;
|
|
2957
|
-
background-color:
|
|
2958
|
-
border-color:
|
|
2959
|
-
}
|
|
2960
|
-
|
|
2961
|
-
&:focus {
|
|
2962
|
-
outline: 2px solid ${colors.gray["900"]};
|
|
2963
|
-
}
|
|
2964
|
-
`,
|
|
2965
|
-
"text-underline": import_react3.css`
|
|
2966
|
-
text-decoration: underline;
|
|
2967
|
-
border-color: transparent;
|
|
2968
|
-
color: ${colors.dark["900"]};
|
|
2969
|
-
|
|
2970
|
-
&:hover {
|
|
2971
|
-
text-decoration: underline;
|
|
2972
|
-
background-color: ${colors.gray["100"]};
|
|
2973
|
-
border-color: ${colors.gray["100"]};
|
|
2987
|
+
background-color: var(--surface-action-3-hover);
|
|
2988
|
+
border-color: var(--surface-action-3-hover);
|
|
2974
2989
|
}
|
|
2975
2990
|
|
|
2976
2991
|
&:focus {
|
|
2977
|
-
outline: 2px solid
|
|
2992
|
+
outline: 2px solid var(--border-secondary);
|
|
2978
2993
|
}
|
|
2979
2994
|
`,
|
|
2980
|
-
topo:
|
|
2995
|
+
topo: import_react4.css`
|
|
2981
2996
|
background-color: ${colors.gray["900"]};
|
|
2982
2997
|
background-image: url(${TopoPattern_default});
|
|
2983
2998
|
background-size: cover;
|
|
@@ -2998,10 +3013,10 @@ var styles = {
|
|
|
2998
3013
|
outline: 2px solid ${colors.olive["500"]};
|
|
2999
3014
|
}
|
|
3000
3015
|
`,
|
|
3001
|
-
fullWidth:
|
|
3016
|
+
fullWidth: import_react4.css`
|
|
3002
3017
|
width: 100%;
|
|
3003
3018
|
`,
|
|
3004
|
-
sizeXs:
|
|
3019
|
+
sizeXs: import_react4.css`
|
|
3005
3020
|
padding-top: ${space["2"]};
|
|
3006
3021
|
padding-bottom: ${space["2"]};
|
|
3007
3022
|
padding-left: ${space["3"]};
|
|
@@ -3010,12 +3025,12 @@ var styles = {
|
|
|
3010
3025
|
font-size: ${fontSizes.xs};
|
|
3011
3026
|
font-weight: ${fontWeights.bold};
|
|
3012
3027
|
`,
|
|
3013
|
-
sizeSm:
|
|
3028
|
+
sizeSm: import_react4.css`
|
|
3014
3029
|
padding-top: ${space["3"]};
|
|
3015
3030
|
padding-bottom: ${space["3"]};
|
|
3016
3031
|
`,
|
|
3017
|
-
sizeBase: () =>
|
|
3018
|
-
sizeLg:
|
|
3032
|
+
sizeBase: () => import_react4.css``,
|
|
3033
|
+
sizeLg: import_react4.css`
|
|
3019
3034
|
padding-top: ${space["5"]};
|
|
3020
3035
|
padding-bottom: ${space["5"]};
|
|
3021
3036
|
padding-left: ${space["12"]};
|
|
@@ -3023,58 +3038,55 @@ var styles = {
|
|
|
3023
3038
|
max-height: ${space["14"]};
|
|
3024
3039
|
font-size: ${fontSizes.base};
|
|
3025
3040
|
`,
|
|
3026
|
-
iconOnly:
|
|
3041
|
+
iconOnly: import_react4.css`
|
|
3027
3042
|
height: var(--spacing-11);
|
|
3028
3043
|
min-width: var(--spacing-11);
|
|
3029
3044
|
max-height: var(--spacing-11);
|
|
3030
3045
|
padding: 0;
|
|
3031
3046
|
border-radius: var(--radius-round);
|
|
3032
3047
|
`,
|
|
3033
|
-
iconOnlyLg:
|
|
3048
|
+
iconOnlyLg: import_react4.css`
|
|
3034
3049
|
height: var(--spacing-20);
|
|
3035
3050
|
min-width: var(--spacing-20);
|
|
3036
3051
|
max-height: var(--spacing-20);
|
|
3037
3052
|
padding: 0;
|
|
3038
3053
|
border-radius: var(--radius-round);
|
|
3039
3054
|
`,
|
|
3040
|
-
disabled:
|
|
3055
|
+
disabled: import_react4.css`
|
|
3041
3056
|
opacity: ${opacity["50"]};
|
|
3042
3057
|
pointer-events: none;
|
|
3058
|
+
`,
|
|
3059
|
+
withIcon: import_react4.css`
|
|
3060
|
+
gap: var(--spacing-3);
|
|
3043
3061
|
`
|
|
3044
3062
|
};
|
|
3045
|
-
var
|
|
3063
|
+
var spinnerStyles2 = (variant) => import_react4.css`
|
|
3046
3064
|
position: absolute;
|
|
3047
|
-
left: calc(50% -
|
|
3048
|
-
stroke: ${colors.light["100"]};
|
|
3049
|
-
stroke-width: 3px;
|
|
3065
|
+
left: calc(50% - var(--spacing-2));
|
|
3050
3066
|
|
|
3051
3067
|
${variant === "secondary" && `
|
|
3052
|
-
|
|
3068
|
+
fill: var(--text-primary);
|
|
3053
3069
|
`}
|
|
3054
3070
|
|
|
3055
3071
|
${variant === "plus" && `
|
|
3056
|
-
|
|
3072
|
+
fill: var(--text-primary);
|
|
3057
3073
|
`}
|
|
3058
3074
|
|
|
3059
3075
|
${variant === "text" && `
|
|
3060
|
-
|
|
3061
|
-
`}
|
|
3062
|
-
|
|
3063
|
-
${variant === "text-underline" && `
|
|
3064
|
-
stroke: ${colors.gray["900"]};
|
|
3076
|
+
fill: var(--text-primary);
|
|
3065
3077
|
`}
|
|
3066
|
-
|
|
3078
|
+
|
|
3067
3079
|
${variant === "simple" && `
|
|
3068
|
-
|
|
3080
|
+
fill: var(--text-primary);
|
|
3069
3081
|
`}
|
|
3070
3082
|
`;
|
|
3071
|
-
var labelStyles = (isVisible) => () =>
|
|
3083
|
+
var labelStyles = (isVisible) => () => import_react4.css`
|
|
3072
3084
|
visibility: ${isVisible ? "visible" : "hidden"};
|
|
3073
3085
|
`;
|
|
3074
3086
|
|
|
3075
3087
|
// src/Button/Button.tsx
|
|
3076
|
-
var
|
|
3077
|
-
var Button =
|
|
3088
|
+
var import_jsx_runtime197 = require("@emotion/react/jsx-runtime");
|
|
3089
|
+
var Button = import_react6.default.forwardRef(
|
|
3078
3090
|
({
|
|
3079
3091
|
as: Component = "button",
|
|
3080
3092
|
variant = "primary",
|
|
@@ -3085,14 +3097,14 @@ var Button = import_react5.default.forwardRef(
|
|
|
3085
3097
|
type = "button",
|
|
3086
3098
|
isLoading = false,
|
|
3087
3099
|
className = "",
|
|
3088
|
-
labelStyleOverrides =
|
|
3100
|
+
labelStyleOverrides = import_react5.css``,
|
|
3089
3101
|
icon,
|
|
3090
3102
|
...props
|
|
3091
3103
|
}, ref) => {
|
|
3092
3104
|
const componentType = Component === "button" ? type : void 0;
|
|
3093
3105
|
const sizeKey = `size${(0, import_lodash.upperFirst)(size)}`;
|
|
3094
3106
|
const isIconOnly = icon && !children;
|
|
3095
|
-
return /* @__PURE__ */ (0,
|
|
3107
|
+
return /* @__PURE__ */ (0, import_jsx_runtime197.jsxs)(
|
|
3096
3108
|
Component,
|
|
3097
3109
|
{
|
|
3098
3110
|
ref,
|
|
@@ -3105,13 +3117,14 @@ var Button = import_react5.default.forwardRef(
|
|
|
3105
3117
|
size && styles[sizeKey],
|
|
3106
3118
|
isIconOnly && size === "lg" && styles.iconOnlyLg,
|
|
3107
3119
|
isIconOnly && size !== "lg" && styles.iconOnly,
|
|
3108
|
-
(isLoading || disabled) && styles.disabled
|
|
3120
|
+
(isLoading || disabled) && styles.disabled,
|
|
3121
|
+
icon && children && styles.withIcon
|
|
3109
3122
|
],
|
|
3110
3123
|
...props,
|
|
3111
3124
|
children: [
|
|
3112
3125
|
icon,
|
|
3113
|
-
children && /* @__PURE__ */ (0,
|
|
3114
|
-
isLoading && /* @__PURE__ */ (0,
|
|
3126
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)("span", { css: [labelStyles(!isLoading), labelStyleOverrides], children }),
|
|
3127
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(Spinner_default2, { css: spinnerStyles2(variant) })
|
|
3115
3128
|
]
|
|
3116
3129
|
}
|
|
3117
3130
|
);
|
|
@@ -3144,9 +3157,9 @@ var Box = import_styled.default.div`
|
|
|
3144
3157
|
var Box_default = Box;
|
|
3145
3158
|
|
|
3146
3159
|
// src/Box/Container.tsx
|
|
3147
|
-
var
|
|
3148
|
-
var
|
|
3149
|
-
var baseStyles =
|
|
3160
|
+
var import_react7 = require("@emotion/react");
|
|
3161
|
+
var import_jsx_runtime198 = require("@emotion/react/jsx-runtime");
|
|
3162
|
+
var baseStyles = import_react7.css`
|
|
3150
3163
|
width: 100%;
|
|
3151
3164
|
margin: 0 auto;
|
|
3152
3165
|
padding-left: 1rem;
|
|
@@ -3168,7 +3181,7 @@ var baseStyles = import_react6.css`
|
|
|
3168
3181
|
max-width: ${screens.xl};
|
|
3169
3182
|
}
|
|
3170
3183
|
`;
|
|
3171
|
-
var fullWidthStyles =
|
|
3184
|
+
var fullWidthStyles = import_react7.css`
|
|
3172
3185
|
${media.sm} {
|
|
3173
3186
|
max-width: 100%;
|
|
3174
3187
|
}
|
|
@@ -3179,7 +3192,7 @@ var Container = ({
|
|
|
3179
3192
|
isFullWidth = false,
|
|
3180
3193
|
...props
|
|
3181
3194
|
}) => {
|
|
3182
|
-
return /* @__PURE__ */ (0,
|
|
3195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime198.jsx)(
|
|
3183
3196
|
Box_default,
|
|
3184
3197
|
{
|
|
3185
3198
|
css: [baseStyles, isFullWidth && fullWidthStyles],
|
|
@@ -3215,9 +3228,9 @@ var resolveColor = (colorToken) => {
|
|
|
3215
3228
|
};
|
|
3216
3229
|
|
|
3217
3230
|
// src/Typography/Heading.styles.ts
|
|
3218
|
-
var
|
|
3231
|
+
var import_react8 = require("@emotion/react");
|
|
3219
3232
|
var { fontWeights: fontWeights2, media: media2 } = ThemeTokens;
|
|
3220
|
-
var headingXl =
|
|
3233
|
+
var headingXl = import_react8.css`
|
|
3221
3234
|
letter-spacing: 0;
|
|
3222
3235
|
font-size: 32px;
|
|
3223
3236
|
line-height: 40px;
|
|
@@ -3235,7 +3248,7 @@ var headingXl = import_react7.css`
|
|
|
3235
3248
|
line-height: 72px;
|
|
3236
3249
|
}
|
|
3237
3250
|
`;
|
|
3238
|
-
var headingLg =
|
|
3251
|
+
var headingLg = import_react8.css`
|
|
3239
3252
|
letter-spacing: 0;
|
|
3240
3253
|
font-size: 28px;
|
|
3241
3254
|
line-height: 32px;
|
|
@@ -3253,7 +3266,7 @@ var headingLg = import_react7.css`
|
|
|
3253
3266
|
line-height: 56px;
|
|
3254
3267
|
}
|
|
3255
3268
|
`;
|
|
3256
|
-
var headingMd =
|
|
3269
|
+
var headingMd = import_react8.css`
|
|
3257
3270
|
letter-spacing: 0;
|
|
3258
3271
|
font-size: 24px;
|
|
3259
3272
|
line-height: 28px;
|
|
@@ -3271,7 +3284,7 @@ var headingMd = import_react7.css`
|
|
|
3271
3284
|
line-height: 48px;
|
|
3272
3285
|
}
|
|
3273
3286
|
`;
|
|
3274
|
-
var headingSm =
|
|
3287
|
+
var headingSm = import_react8.css`
|
|
3275
3288
|
letter-spacing: 0;
|
|
3276
3289
|
font-size: 24px;
|
|
3277
3290
|
line-height: 24px;
|
|
@@ -3289,7 +3302,7 @@ var headingSm = import_react7.css`
|
|
|
3289
3302
|
line-height: 40px;
|
|
3290
3303
|
}
|
|
3291
3304
|
`;
|
|
3292
|
-
var headingXs =
|
|
3305
|
+
var headingXs = import_react8.css`
|
|
3293
3306
|
letter-spacing: 0;
|
|
3294
3307
|
font-size: 20px;
|
|
3295
3308
|
line-height: 24px;
|
|
@@ -3307,7 +3320,7 @@ var headingXs = import_react7.css`
|
|
|
3307
3320
|
line-height: 28px;
|
|
3308
3321
|
}
|
|
3309
3322
|
`;
|
|
3310
|
-
var heading2xs =
|
|
3323
|
+
var heading2xs = import_react8.css`
|
|
3311
3324
|
letter-spacing: 0;
|
|
3312
3325
|
font-size: 20px;
|
|
3313
3326
|
line-height: 24px;
|
|
@@ -3325,37 +3338,37 @@ var heading2xs = import_react7.css`
|
|
|
3325
3338
|
line-height: 24px;
|
|
3326
3339
|
}
|
|
3327
3340
|
`;
|
|
3328
|
-
var headingUppercase =
|
|
3341
|
+
var headingUppercase = import_react8.css`
|
|
3329
3342
|
text-transform: uppercase;
|
|
3330
3343
|
`;
|
|
3331
|
-
var headingBold =
|
|
3344
|
+
var headingBold = import_react8.css`
|
|
3332
3345
|
font-weight: 500;
|
|
3333
3346
|
`;
|
|
3334
|
-
var textNormal =
|
|
3347
|
+
var textNormal = import_react8.css`
|
|
3335
3348
|
font-weight: ${fontWeights2.normal};
|
|
3336
3349
|
`;
|
|
3337
|
-
var textSemibold =
|
|
3350
|
+
var textSemibold = import_react8.css`
|
|
3338
3351
|
font-weight: ${fontWeights2.medium};
|
|
3339
3352
|
`;
|
|
3340
|
-
var textBold =
|
|
3353
|
+
var textBold = import_react8.css`
|
|
3341
3354
|
font-weight: ${fontWeights2.bold};
|
|
3342
3355
|
`;
|
|
3343
|
-
var textExtrabold =
|
|
3356
|
+
var textExtrabold = import_react8.css`
|
|
3344
3357
|
font-weight: ${fontWeights2.bolder};
|
|
3345
3358
|
`;
|
|
3346
|
-
var wrapPretty =
|
|
3359
|
+
var wrapPretty = import_react8.css`
|
|
3347
3360
|
text-wrap: pretty;
|
|
3348
3361
|
`;
|
|
3349
|
-
var wrapBalance =
|
|
3362
|
+
var wrapBalance = import_react8.css`
|
|
3350
3363
|
text-wrap: balance;
|
|
3351
3364
|
`;
|
|
3352
|
-
var wrapNowrap =
|
|
3365
|
+
var wrapNowrap = import_react8.css`
|
|
3353
3366
|
text-wrap: nowrap;
|
|
3354
3367
|
`;
|
|
3355
|
-
var wrapWrap =
|
|
3368
|
+
var wrapWrap = import_react8.css`
|
|
3356
3369
|
text-wrap: wrap;
|
|
3357
3370
|
`;
|
|
3358
|
-
var wrapStable =
|
|
3371
|
+
var wrapStable = import_react8.css`
|
|
3359
3372
|
text-wrap: stable;
|
|
3360
3373
|
`;
|
|
3361
3374
|
var headingSizeStyles = {
|
|
@@ -3381,7 +3394,7 @@ var textFontWeightStyles = {
|
|
|
3381
3394
|
};
|
|
3382
3395
|
|
|
3383
3396
|
// src/Typography/Heading.tsx
|
|
3384
|
-
var
|
|
3397
|
+
var import_jsx_runtime199 = require("@emotion/react/jsx-runtime");
|
|
3385
3398
|
var SIZE_TO_ELEMENT_MAP = {
|
|
3386
3399
|
xl: "h1",
|
|
3387
3400
|
lg: "h2",
|
|
@@ -3411,7 +3424,7 @@ var Heading = ({
|
|
|
3411
3424
|
...props
|
|
3412
3425
|
}) => {
|
|
3413
3426
|
const elementType = as != null ? as : SIZE_TO_ELEMENT_MAP[size];
|
|
3414
|
-
return /* @__PURE__ */ (0,
|
|
3427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime199.jsx)(
|
|
3415
3428
|
StyledHeading,
|
|
3416
3429
|
{
|
|
3417
3430
|
as: elementType,
|
|
@@ -3433,9 +3446,9 @@ var Heading_default = Heading;
|
|
|
3433
3446
|
var import_styled3 = __toESM(require("@emotion/styled"));
|
|
3434
3447
|
|
|
3435
3448
|
// src/Typography/Text.styles.ts
|
|
3436
|
-
var
|
|
3449
|
+
var import_react9 = require("@emotion/react");
|
|
3437
3450
|
var { fontWeights: fontWeights3, media: media3 } = ThemeTokens;
|
|
3438
|
-
var textMd =
|
|
3451
|
+
var textMd = import_react9.css`
|
|
3439
3452
|
font-size: 16px;
|
|
3440
3453
|
line-height: 22px;
|
|
3441
3454
|
letter-spacing: 0;
|
|
@@ -3453,7 +3466,7 @@ var textMd = import_react8.css`
|
|
|
3453
3466
|
line-height: 22px;
|
|
3454
3467
|
}
|
|
3455
3468
|
`;
|
|
3456
|
-
var textSm =
|
|
3469
|
+
var textSm = import_react9.css`
|
|
3457
3470
|
font-size: 14px;
|
|
3458
3471
|
line-height: 20px;
|
|
3459
3472
|
letter-spacing: 0;
|
|
@@ -3471,7 +3484,7 @@ var textSm = import_react8.css`
|
|
|
3471
3484
|
line-height: 20px;
|
|
3472
3485
|
}
|
|
3473
3486
|
`;
|
|
3474
|
-
var textXs =
|
|
3487
|
+
var textXs = import_react9.css`
|
|
3475
3488
|
font-size: 14px;
|
|
3476
3489
|
line-height: 16px;
|
|
3477
3490
|
letter-spacing: 0;
|
|
@@ -3489,7 +3502,7 @@ var textXs = import_react8.css`
|
|
|
3489
3502
|
line-height: 16px;
|
|
3490
3503
|
}
|
|
3491
3504
|
`;
|
|
3492
|
-
var text2xs =
|
|
3505
|
+
var text2xs = import_react9.css`
|
|
3493
3506
|
font-size: 10px;
|
|
3494
3507
|
line-height: 24px;
|
|
3495
3508
|
letter-spacing: 0;
|
|
@@ -3507,34 +3520,34 @@ var text2xs = import_react8.css`
|
|
|
3507
3520
|
line-height: 14px;
|
|
3508
3521
|
}
|
|
3509
3522
|
`;
|
|
3510
|
-
var textNormal2 =
|
|
3523
|
+
var textNormal2 = import_react9.css`
|
|
3511
3524
|
font-weight: ${fontWeights3.normal};
|
|
3512
3525
|
`;
|
|
3513
|
-
var textSemibold2 =
|
|
3526
|
+
var textSemibold2 = import_react9.css`
|
|
3514
3527
|
font-weight: ${fontWeights3.medium};
|
|
3515
3528
|
`;
|
|
3516
|
-
var textBold2 =
|
|
3529
|
+
var textBold2 = import_react9.css`
|
|
3517
3530
|
font-weight: ${fontWeights3.bold};
|
|
3518
3531
|
`;
|
|
3519
|
-
var textExtrabold2 =
|
|
3532
|
+
var textExtrabold2 = import_react9.css`
|
|
3520
3533
|
font-weight: ${fontWeights3.bolder};
|
|
3521
3534
|
`;
|
|
3522
|
-
var textUppercase =
|
|
3535
|
+
var textUppercase = import_react9.css`
|
|
3523
3536
|
text-transform: uppercase;
|
|
3524
3537
|
`;
|
|
3525
|
-
var wrapPretty2 =
|
|
3538
|
+
var wrapPretty2 = import_react9.css`
|
|
3526
3539
|
text-wrap: pretty;
|
|
3527
3540
|
`;
|
|
3528
|
-
var wrapBalance2 =
|
|
3541
|
+
var wrapBalance2 = import_react9.css`
|
|
3529
3542
|
text-wrap: balance;
|
|
3530
3543
|
`;
|
|
3531
|
-
var wrapNowrap2 =
|
|
3544
|
+
var wrapNowrap2 = import_react9.css`
|
|
3532
3545
|
text-wrap: nowrap;
|
|
3533
3546
|
`;
|
|
3534
|
-
var wrapWrap2 =
|
|
3547
|
+
var wrapWrap2 = import_react9.css`
|
|
3535
3548
|
text-wrap: wrap;
|
|
3536
3549
|
`;
|
|
3537
|
-
var wrapStable2 =
|
|
3550
|
+
var wrapStable2 = import_react9.css`
|
|
3538
3551
|
text-wrap: stable;
|
|
3539
3552
|
`;
|
|
3540
3553
|
var textSizeStyles = {
|
|
@@ -3558,7 +3571,7 @@ var textWrapStyles2 = {
|
|
|
3558
3571
|
};
|
|
3559
3572
|
|
|
3560
3573
|
// src/Typography/Text.tsx
|
|
3561
|
-
var
|
|
3574
|
+
var import_jsx_runtime200 = require("@emotion/react/jsx-runtime");
|
|
3562
3575
|
var StyledText = (0, import_styled3.default)("p")`
|
|
3563
3576
|
${({ size = "md" }) => textSizeStyles[size]}
|
|
3564
3577
|
${({ fontWeight = "normal" }) => textFontWeightStyles2[fontWeight]}
|
|
@@ -3580,7 +3593,7 @@ var Text = ({
|
|
|
3580
3593
|
...props
|
|
3581
3594
|
}) => {
|
|
3582
3595
|
const elementType = as;
|
|
3583
|
-
return /* @__PURE__ */ (0,
|
|
3596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(
|
|
3584
3597
|
StyledText,
|
|
3585
3598
|
{
|
|
3586
3599
|
as: elementType,
|
|
@@ -3599,7 +3612,7 @@ var Text = ({
|
|
|
3599
3612
|
var Text_default = Text;
|
|
3600
3613
|
|
|
3601
3614
|
// src/IconLabel/IconLabel.tsx
|
|
3602
|
-
var
|
|
3615
|
+
var import_jsx_runtime201 = require("@emotion/react/jsx-runtime");
|
|
3603
3616
|
var IconLabel = ({
|
|
3604
3617
|
variant,
|
|
3605
3618
|
label,
|
|
@@ -3607,7 +3620,7 @@ var IconLabel = ({
|
|
|
3607
3620
|
className,
|
|
3608
3621
|
...rest
|
|
3609
3622
|
}) => {
|
|
3610
|
-
return /* @__PURE__ */ (0,
|
|
3623
|
+
return /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(
|
|
3611
3624
|
Box_default,
|
|
3612
3625
|
{
|
|
3613
3626
|
display: "flex",
|
|
@@ -3616,8 +3629,8 @@ var IconLabel = ({
|
|
|
3616
3629
|
className,
|
|
3617
3630
|
...rest,
|
|
3618
3631
|
children: [
|
|
3619
|
-
/* @__PURE__ */ (0,
|
|
3620
|
-
/* @__PURE__ */ (0,
|
|
3632
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Icon_default, { variant, size: iconSize }),
|
|
3633
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(Text_default, { size: "xs", children: label })
|
|
3621
3634
|
]
|
|
3622
3635
|
}
|
|
3623
3636
|
);
|
|
@@ -3625,13 +3638,13 @@ var IconLabel = ({
|
|
|
3625
3638
|
var IconLabel_default = IconLabel;
|
|
3626
3639
|
|
|
3627
3640
|
// src/AIResponse/AIResponse.styles.ts
|
|
3628
|
-
var
|
|
3629
|
-
var rootStyles2 =
|
|
3641
|
+
var import_react10 = require("@emotion/react");
|
|
3642
|
+
var rootStyles2 = import_react10.css`
|
|
3630
3643
|
display: flex;
|
|
3631
3644
|
flex-direction: column;
|
|
3632
3645
|
gap: var(--spacing-4);
|
|
3633
3646
|
`;
|
|
3634
|
-
var getBannerStyles = (variant) =>
|
|
3647
|
+
var getBannerStyles = (variant) => import_react10.css`
|
|
3635
3648
|
background-color: ${variant === "error" ? "var(--surface-error)" : "var(--surface-neutral)"};
|
|
3636
3649
|
border: ${variant === "error" ? "1px solid var(--border-error)" : "none"};
|
|
3637
3650
|
border-radius: var(--radius-lg);
|
|
@@ -3641,23 +3654,23 @@ var getBannerStyles = (variant) => import_react9.css`
|
|
|
3641
3654
|
gap: var(--spacing-5);
|
|
3642
3655
|
min-width: 335px;
|
|
3643
3656
|
`;
|
|
3644
|
-
var footerStyles =
|
|
3657
|
+
var footerStyles = import_react10.css`
|
|
3645
3658
|
display: flex;
|
|
3646
3659
|
gap: var(--spacing-4);
|
|
3647
3660
|
align-items: center;
|
|
3648
3661
|
`;
|
|
3649
|
-
var actionsStyles =
|
|
3662
|
+
var actionsStyles = import_react10.css`
|
|
3650
3663
|
display: flex;
|
|
3651
3664
|
align-items: center;
|
|
3652
3665
|
gap: var(--spacing-2);
|
|
3653
3666
|
`;
|
|
3654
|
-
var errorRetryStyles =
|
|
3667
|
+
var errorRetryStyles = import_react10.css`
|
|
3655
3668
|
display: flex;
|
|
3656
3669
|
align-items: center;
|
|
3657
3670
|
`;
|
|
3658
3671
|
|
|
3659
3672
|
// src/AIResponse/AIResponse.tsx
|
|
3660
|
-
var
|
|
3673
|
+
var import_jsx_runtime202 = require("@emotion/react/jsx-runtime");
|
|
3661
3674
|
var AIResponse = ({
|
|
3662
3675
|
title = `Here\u2019s what I found`,
|
|
3663
3676
|
showDisclaimer = true,
|
|
@@ -3670,8 +3683,10 @@ var AIResponse = ({
|
|
|
3670
3683
|
onErrorRetry,
|
|
3671
3684
|
helpfulDebounceMs = 1e3
|
|
3672
3685
|
}) => {
|
|
3673
|
-
const [
|
|
3674
|
-
|
|
3686
|
+
const [visualHelpful, setVisualHelpful] = (0, import_react11.useState)(
|
|
3687
|
+
void 0
|
|
3688
|
+
);
|
|
3689
|
+
const debounceTimerRef = (0, import_react11.useRef)(null);
|
|
3675
3690
|
const DEBOUNCE_MS = helpfulDebounceMs;
|
|
3676
3691
|
const scheduleCallback = (next) => {
|
|
3677
3692
|
if (debounceTimerRef.current) {
|
|
@@ -3689,66 +3704,66 @@ var AIResponse = ({
|
|
|
3689
3704
|
}
|
|
3690
3705
|
};
|
|
3691
3706
|
const handleHelpfulYes = () => {
|
|
3692
|
-
const next =
|
|
3693
|
-
|
|
3707
|
+
const next = visualHelpful === "yes" ? void 0 : "yes";
|
|
3708
|
+
setVisualHelpful(next);
|
|
3694
3709
|
scheduleCallback(next);
|
|
3695
3710
|
};
|
|
3696
3711
|
const handleHelpfulNo = () => {
|
|
3697
|
-
const next =
|
|
3698
|
-
|
|
3712
|
+
const next = visualHelpful === "no" ? void 0 : "no";
|
|
3713
|
+
setVisualHelpful(next);
|
|
3699
3714
|
scheduleCallback(next);
|
|
3700
3715
|
};
|
|
3701
|
-
(0,
|
|
3716
|
+
(0, import_react11.useEffect)(() => {
|
|
3702
3717
|
return () => {
|
|
3703
3718
|
if (debounceTimerRef.current) {
|
|
3704
3719
|
clearTimeout(debounceTimerRef.current);
|
|
3705
3720
|
}
|
|
3706
3721
|
};
|
|
3707
3722
|
}, []);
|
|
3708
|
-
return /* @__PURE__ */ (0,
|
|
3709
|
-
variant !== "error" && /* @__PURE__ */ (0,
|
|
3710
|
-
/* @__PURE__ */ (0,
|
|
3711
|
-
/* @__PURE__ */ (0,
|
|
3712
|
-
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0,
|
|
3723
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("div", { className, css: rootStyles2, children: [
|
|
3724
|
+
variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", color: "var(--text-primary)", children: title }),
|
|
3725
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("div", { css: getBannerStyles(variant), children: [
|
|
3726
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: variant === "error" ? "An error occurred while generating your summary. Please try again." : children }),
|
|
3727
|
+
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3713
3728
|
IconLabel_default,
|
|
3714
3729
|
{
|
|
3715
3730
|
variant: "AiMagic",
|
|
3716
3731
|
label: "This AI summary was generated from the property information from this package. This answer may display incorrect information.",
|
|
3717
|
-
iconSize:
|
|
3732
|
+
iconSize: 10
|
|
3718
3733
|
}
|
|
3719
3734
|
),
|
|
3720
|
-
variant === "error" && /* @__PURE__ */ (0,
|
|
3735
|
+
variant === "error" && /* @__PURE__ */ (0, import_jsx_runtime202.jsx)("div", { css: errorRetryStyles, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Button_default, { variant: "secondary", size: "xs", onClick: onErrorRetry, children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(IconLabel_default, { variant: "ArrowRotateLeft", label: "Try Again" }) }) })
|
|
3721
3736
|
] }),
|
|
3722
|
-
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0,
|
|
3723
|
-
/* @__PURE__ */ (0,
|
|
3724
|
-
/* @__PURE__ */ (0,
|
|
3725
|
-
/* @__PURE__ */ (0,
|
|
3737
|
+
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("div", { css: footerStyles, children: [
|
|
3738
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: "Was this helpful?" }),
|
|
3739
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsxs)("div", { css: actionsStyles, children: [
|
|
3740
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3726
3741
|
Button_default,
|
|
3727
3742
|
{
|
|
3728
3743
|
variant: "text",
|
|
3729
3744
|
size: "xs",
|
|
3730
3745
|
onClick: handleHelpfulYes,
|
|
3731
|
-
"aria-pressed":
|
|
3732
|
-
children: /* @__PURE__ */ (0,
|
|
3746
|
+
"aria-pressed": visualHelpful === "yes",
|
|
3747
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3733
3748
|
IconLabel_default,
|
|
3734
3749
|
{
|
|
3735
|
-
variant:
|
|
3750
|
+
variant: visualHelpful === "yes" ? "ThumbsUpSolid" : "ThumbsUp",
|
|
3736
3751
|
label: "Yes"
|
|
3737
3752
|
}
|
|
3738
3753
|
)
|
|
3739
3754
|
}
|
|
3740
3755
|
),
|
|
3741
|
-
/* @__PURE__ */ (0,
|
|
3756
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3742
3757
|
Button_default,
|
|
3743
3758
|
{
|
|
3744
3759
|
variant: "text",
|
|
3745
3760
|
size: "xs",
|
|
3746
3761
|
onClick: handleHelpfulNo,
|
|
3747
|
-
"aria-pressed":
|
|
3748
|
-
children: /* @__PURE__ */ (0,
|
|
3762
|
+
"aria-pressed": visualHelpful === "no",
|
|
3763
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
3749
3764
|
IconLabel_default,
|
|
3750
3765
|
{
|
|
3751
|
-
variant:
|
|
3766
|
+
variant: visualHelpful === "no" ? "ThumbsDownSolid" : "ThumbsDown",
|
|
3752
3767
|
label: "No"
|
|
3753
3768
|
}
|
|
3754
3769
|
)
|
|
@@ -3761,34 +3776,34 @@ var AIResponse = ({
|
|
|
3761
3776
|
var AIResponse_default = AIResponse;
|
|
3762
3777
|
|
|
3763
3778
|
// src/AvailabilityChip/AvailabilityChip.styles.ts
|
|
3764
|
-
var
|
|
3779
|
+
var import_react12 = require("@emotion/react");
|
|
3765
3780
|
var availabilityChipVariantStyles = {
|
|
3766
|
-
primary:
|
|
3781
|
+
primary: import_react12.css`
|
|
3767
3782
|
background-color: var(--color-primary-100);
|
|
3768
3783
|
color: var(--text-primary);
|
|
3769
3784
|
`,
|
|
3770
|
-
error:
|
|
3785
|
+
error: import_react12.css`
|
|
3771
3786
|
background-color: var(--surface-error);
|
|
3772
3787
|
color: var(--text-error);
|
|
3773
3788
|
`,
|
|
3774
|
-
action:
|
|
3789
|
+
action: import_react12.css`
|
|
3775
3790
|
background-color: var(--surface-action-2);
|
|
3776
3791
|
color: var(--text-primary);
|
|
3777
3792
|
`,
|
|
3778
|
-
warning:
|
|
3793
|
+
warning: import_react12.css`
|
|
3779
3794
|
background-color: var(--color-brown-200);
|
|
3780
3795
|
color: var(--text-primary);
|
|
3781
3796
|
`
|
|
3782
3797
|
};
|
|
3783
3798
|
|
|
3784
3799
|
// src/AvailabilityChip/AvailabilityChip.tsx
|
|
3785
|
-
var
|
|
3800
|
+
var import_jsx_runtime203 = require("@emotion/react/jsx-runtime");
|
|
3786
3801
|
var AvailabilityChip = ({
|
|
3787
3802
|
children,
|
|
3788
3803
|
variant,
|
|
3789
3804
|
className
|
|
3790
3805
|
}) => {
|
|
3791
|
-
return /* @__PURE__ */ (0,
|
|
3806
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
3792
3807
|
Box_default,
|
|
3793
3808
|
{
|
|
3794
3809
|
display: "inline-flex",
|
|
@@ -3798,15 +3813,22 @@ var AvailabilityChip = ({
|
|
|
3798
3813
|
borderRadius: "var(--spacing-2)",
|
|
3799
3814
|
css: availabilityChipVariantStyles[variant],
|
|
3800
3815
|
className,
|
|
3801
|
-
children: /* @__PURE__ */ (0,
|
|
3816
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(Text_default, { size: "xs", fontWeight: "bold", children })
|
|
3802
3817
|
}
|
|
3803
3818
|
);
|
|
3804
3819
|
};
|
|
3805
3820
|
var AvailabilityChip_default = AvailabilityChip;
|
|
3806
3821
|
|
|
3822
|
+
// src/ChatWidget/ChatWidget.tsx
|
|
3823
|
+
var import_react21 = __toESM(require("react"));
|
|
3824
|
+
|
|
3825
|
+
// src/Divider/Divider.tsx
|
|
3826
|
+
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
3827
|
+
var import_styled_system2 = require("styled-system");
|
|
3828
|
+
|
|
3807
3829
|
// src/Divider/Divider.styles.ts
|
|
3808
|
-
var
|
|
3809
|
-
var dividerStyles =
|
|
3830
|
+
var import_react13 = require("@emotion/react");
|
|
3831
|
+
var dividerStyles = import_react13.css`
|
|
3810
3832
|
width: 100%;
|
|
3811
3833
|
height: 1px;
|
|
3812
3834
|
border: 0;
|
|
@@ -3814,103 +3836,758 @@ var dividerStyles = import_react12.css`
|
|
|
3814
3836
|
`;
|
|
3815
3837
|
|
|
3816
3838
|
// src/Divider/Divider.tsx
|
|
3817
|
-
var
|
|
3818
|
-
var
|
|
3819
|
-
|
|
3839
|
+
var import_jsx_runtime204 = require("@emotion/react/jsx-runtime");
|
|
3840
|
+
var StyledHr = import_styled4.default.hr`
|
|
3841
|
+
${dividerStyles}
|
|
3842
|
+
${import_styled_system2.space}
|
|
3843
|
+
`;
|
|
3844
|
+
var Divider = ({ className, ...rest }) => {
|
|
3845
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(StyledHr, { className, ...rest });
|
|
3820
3846
|
};
|
|
3821
3847
|
var Divider_default = Divider;
|
|
3822
3848
|
|
|
3823
|
-
// src/
|
|
3824
|
-
var
|
|
3825
|
-
var
|
|
3826
|
-
position: relative;
|
|
3827
|
-
height: 335px;
|
|
3849
|
+
// src/Form/TextArea.tsx
|
|
3850
|
+
var import_react15 = require("@emotion/react");
|
|
3851
|
+
var import_react16 = require("react");
|
|
3828
3852
|
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
`;
|
|
3833
|
-
var cardContentStyles = import_react13.css`
|
|
3853
|
+
// src/Form/TextArea.styles.ts
|
|
3854
|
+
var import_react14 = require("@emotion/react");
|
|
3855
|
+
var wrapperStyles = import_react14.css`
|
|
3834
3856
|
position: relative;
|
|
3835
|
-
|
|
3836
|
-
|
|
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;
|
|
3857
|
+
display: inline-block;
|
|
3858
|
+
width: 100%;
|
|
3849
3859
|
`;
|
|
3860
|
+
var textareaBase = import_react14.css`
|
|
3861
|
+
width: 100%;
|
|
3862
|
+
box-sizing: border-box;
|
|
3863
|
+
font: inherit;
|
|
3864
|
+
color: var(--text-primary);
|
|
3865
|
+
background-color: var(--surface-page);
|
|
3866
|
+
border: 1px solid var(--border-primary);
|
|
3867
|
+
border-radius: var(--radius-lg);
|
|
3868
|
+
padding: var(--spacing-4);
|
|
3869
|
+
transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
3870
|
+
outline: none;
|
|
3871
|
+
resize: none;
|
|
3850
3872
|
|
|
3851
|
-
|
|
3852
|
-
var
|
|
3853
|
-
|
|
3854
|
-
backgroundImage,
|
|
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;
|
|
3873
|
+
&::placeholder {
|
|
3874
|
+
color: var(--text-secondary);
|
|
3875
|
+
}
|
|
3886
3876
|
|
|
3887
|
-
|
|
3888
|
-
var
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3877
|
+
&:focus {
|
|
3878
|
+
border-color: var(--border-focus);
|
|
3879
|
+
box-shadow: 0 0 0 3px var(--surface-success, rgba(50, 90, 60, 0.1));
|
|
3880
|
+
}
|
|
3881
|
+
|
|
3882
|
+
&:disabled {
|
|
3883
|
+
background-color: var(--surface-disabled-2);
|
|
3884
|
+
color: var(--text-on-disabled);
|
|
3885
|
+
cursor: not-allowed;
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
&:read-only {
|
|
3889
|
+
background-color: var(--surface-disabled-2);
|
|
3890
|
+
color: var(--text-secondary);
|
|
3891
|
+
cursor: default;
|
|
3892
|
+
}
|
|
3902
3893
|
`;
|
|
3903
|
-
var
|
|
3904
|
-
color:
|
|
3905
|
-
|
|
3894
|
+
var variantError = import_react14.css`
|
|
3895
|
+
border-color: var(--border-error);
|
|
3896
|
+
&:focus {
|
|
3897
|
+
border-color: var(--border-error);
|
|
3898
|
+
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
3899
|
+
}
|
|
3906
3900
|
`;
|
|
3907
|
-
var
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3901
|
+
var variantSuccess = import_react14.css`
|
|
3902
|
+
border-color: var(--color-success-500);
|
|
3903
|
+
&:focus {
|
|
3904
|
+
border-color: var(--color-success-500);
|
|
3905
|
+
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
3906
|
+
}
|
|
3912
3907
|
`;
|
|
3913
|
-
var
|
|
3908
|
+
var submitButtonContainer = import_react14.css`
|
|
3909
|
+
position: absolute;
|
|
3910
|
+
right: var(--spacing-4);
|
|
3911
|
+
bottom: var(--spacing-4);
|
|
3912
|
+
`;
|
|
3913
|
+
var textareaWithSubmit = import_react14.css`
|
|
3914
|
+
padding-right: var(--spacing-16);
|
|
3915
|
+
`;
|
|
3916
|
+
|
|
3917
|
+
// src/Form/TextArea.tsx
|
|
3918
|
+
var import_jsx_runtime205 = require("@emotion/react/jsx-runtime");
|
|
3919
|
+
var TextArea = (0, import_react16.forwardRef)(
|
|
3920
|
+
({
|
|
3921
|
+
rows = 3,
|
|
3922
|
+
variant = "default",
|
|
3923
|
+
disabled = false,
|
|
3924
|
+
readOnly = false,
|
|
3925
|
+
className,
|
|
3926
|
+
autoExpand = true,
|
|
3927
|
+
maxHeight,
|
|
3928
|
+
resize = "none",
|
|
3929
|
+
value,
|
|
3930
|
+
onChange,
|
|
3931
|
+
onKeyDown: onKeyDownProp,
|
|
3932
|
+
showSubmit = false,
|
|
3933
|
+
onSubmit,
|
|
3934
|
+
submitAriaLabel = "Submit",
|
|
3935
|
+
submitDisabled,
|
|
3936
|
+
submitOnEnter = true,
|
|
3937
|
+
...props
|
|
3938
|
+
}, ref) => {
|
|
3939
|
+
const innerRef = (0, import_react16.useRef)(null);
|
|
3940
|
+
(0, import_react16.useEffect)(() => {
|
|
3941
|
+
const el = innerRef.current;
|
|
3942
|
+
if (!el || !autoExpand)
|
|
3943
|
+
return;
|
|
3944
|
+
if (value === "" || value === void 0 || value === null) {
|
|
3945
|
+
el.style.height = "";
|
|
3946
|
+
el.style.overflowY = maxHeight ? "auto" : "hidden";
|
|
3947
|
+
}
|
|
3948
|
+
}, [value, autoExpand, maxHeight]);
|
|
3949
|
+
const handleChange = (e) => {
|
|
3950
|
+
if (autoExpand && innerRef.current) {
|
|
3951
|
+
const el = innerRef.current;
|
|
3952
|
+
if (typeof maxHeight === "number") {
|
|
3953
|
+
el.style.maxHeight = `${maxHeight}px`;
|
|
3954
|
+
} else if (typeof maxHeight === "string") {
|
|
3955
|
+
el.style.maxHeight = maxHeight;
|
|
3956
|
+
}
|
|
3957
|
+
el.style.height = "auto";
|
|
3958
|
+
el.style.overflowY = maxHeight ? "auto" : "hidden";
|
|
3959
|
+
el.style.height = `${el.scrollHeight}px`;
|
|
3960
|
+
}
|
|
3961
|
+
onChange == null ? void 0 : onChange(e);
|
|
3962
|
+
};
|
|
3963
|
+
const handleKeyDown = (e) => {
|
|
3964
|
+
onKeyDownProp == null ? void 0 : onKeyDownProp(e);
|
|
3965
|
+
if (e.defaultPrevented)
|
|
3966
|
+
return;
|
|
3967
|
+
const isEnter = e.key === "Enter";
|
|
3968
|
+
const hasModifier = e.shiftKey || e.altKey || e.ctrlKey || e.metaKey;
|
|
3969
|
+
const isComposing = e.nativeEvent.isComposing;
|
|
3970
|
+
const canSubmit = !disabled && !readOnly && !submitDisabled;
|
|
3971
|
+
if (submitOnEnter && showSubmit && onSubmit && isEnter && !hasModifier && !isComposing && canSubmit) {
|
|
3972
|
+
e.preventDefault();
|
|
3973
|
+
onSubmit();
|
|
3974
|
+
}
|
|
3975
|
+
};
|
|
3976
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)("div", { css: wrapperStyles, children: [
|
|
3977
|
+
/* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
3978
|
+
"textarea",
|
|
3979
|
+
{
|
|
3980
|
+
ref: (node) => {
|
|
3981
|
+
innerRef.current = node;
|
|
3982
|
+
if (typeof ref === "function")
|
|
3983
|
+
ref(node);
|
|
3984
|
+
else if (ref)
|
|
3985
|
+
ref.current = node;
|
|
3986
|
+
},
|
|
3987
|
+
rows,
|
|
3988
|
+
disabled,
|
|
3989
|
+
readOnly,
|
|
3990
|
+
css: [
|
|
3991
|
+
textareaBase,
|
|
3992
|
+
variant === "error" && variantError,
|
|
3993
|
+
variant === "success" && variantSuccess,
|
|
3994
|
+
import_react15.css`
|
|
3995
|
+
resize: ${resize};
|
|
3996
|
+
`,
|
|
3997
|
+
showSubmit && textareaWithSubmit
|
|
3998
|
+
],
|
|
3999
|
+
className,
|
|
4000
|
+
value,
|
|
4001
|
+
onChange: handleChange,
|
|
4002
|
+
onKeyDown: handleKeyDown,
|
|
4003
|
+
"aria-multiline": "true",
|
|
4004
|
+
...props
|
|
4005
|
+
}
|
|
4006
|
+
),
|
|
4007
|
+
showSubmit && /* @__PURE__ */ (0, import_jsx_runtime205.jsx)("div", { css: submitButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4008
|
+
Button_default,
|
|
4009
|
+
{
|
|
4010
|
+
size: "xs",
|
|
4011
|
+
"aria-label": submitAriaLabel,
|
|
4012
|
+
onClick: onSubmit,
|
|
4013
|
+
disabled: disabled || submitDisabled,
|
|
4014
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(
|
|
4015
|
+
Icon_default,
|
|
4016
|
+
{
|
|
4017
|
+
variant: "PaperPlane",
|
|
4018
|
+
size: 6,
|
|
4019
|
+
fill: "var(--color-base-white)"
|
|
4020
|
+
}
|
|
4021
|
+
)
|
|
4022
|
+
}
|
|
4023
|
+
) })
|
|
4024
|
+
] });
|
|
4025
|
+
}
|
|
4026
|
+
);
|
|
4027
|
+
TextArea.displayName = "TextArea";
|
|
4028
|
+
var TextArea_default = TextArea;
|
|
4029
|
+
|
|
4030
|
+
// src/MessageBubble/MessageBubble.styles.ts
|
|
4031
|
+
var import_react17 = require("@emotion/react");
|
|
4032
|
+
var getRootStyles = (variant) => import_react17.css`
|
|
4033
|
+
display: flex;
|
|
4034
|
+
flex-direction: column;
|
|
4035
|
+
gap: var(--spacing-1);
|
|
4036
|
+
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
4037
|
+
`;
|
|
4038
|
+
var getBubbleStyles = (variant) => import_react17.css`
|
|
4039
|
+
max-width: 100%;
|
|
4040
|
+
width: 100%;
|
|
4041
|
+
box-sizing: border-box;
|
|
4042
|
+
display: flex;
|
|
4043
|
+
gap: var(--spacing-3);
|
|
4044
|
+
align-items: center;
|
|
4045
|
+
justify-content: center;
|
|
4046
|
+
padding: var(--spacing-4);
|
|
4047
|
+
background-color: ${variant === "sent" ? "var(--color-neutral-900)" : "var(--surface-neutral)"};
|
|
4048
|
+
color: ${variant === "sent" ? "var(--color-base-white)" : "var(--text-primary)"};
|
|
4049
|
+
border: ${variant === "sent" ? "1px solid transparent" : "none"};
|
|
4050
|
+
border-top-left-radius: var(--radius-lg);
|
|
4051
|
+
border-top-right-radius: var(--radius-lg);
|
|
4052
|
+
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
4053
|
+
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
4054
|
+
`;
|
|
4055
|
+
var contentStyles = import_react17.css`
|
|
4056
|
+
flex: 1 1 auto;
|
|
4057
|
+
min-width: 1px;
|
|
4058
|
+
min-height: 1px;
|
|
4059
|
+
`;
|
|
4060
|
+
|
|
4061
|
+
// src/MessageBubble/MessageBubble.tsx
|
|
4062
|
+
var import_jsx_runtime206 = require("@emotion/react/jsx-runtime");
|
|
4063
|
+
var MessageBubble = ({
|
|
4064
|
+
variant = "sent",
|
|
4065
|
+
timestamp,
|
|
4066
|
+
className,
|
|
4067
|
+
children
|
|
4068
|
+
}) => {
|
|
4069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime206.jsxs)("div", { className, css: getRootStyles(variant), children: [
|
|
4070
|
+
timestamp && /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
4071
|
+
Text_default,
|
|
4072
|
+
{
|
|
4073
|
+
size: "xs",
|
|
4074
|
+
color: "var(--text-secondary)",
|
|
4075
|
+
textAlign: variant === "sent" ? "right" : "left",
|
|
4076
|
+
children: timestamp
|
|
4077
|
+
}
|
|
4078
|
+
),
|
|
4079
|
+
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { css: getBubbleStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime206.jsx)("div", { css: contentStyles, children }) })
|
|
4080
|
+
] });
|
|
4081
|
+
};
|
|
4082
|
+
var MessageBubble_default = MessageBubble;
|
|
4083
|
+
|
|
4084
|
+
// src/Widget/Widget.tsx
|
|
4085
|
+
var import_react19 = require("react");
|
|
4086
|
+
|
|
4087
|
+
// src/Widget/Widget.styles.ts
|
|
4088
|
+
var import_react18 = require("@emotion/react");
|
|
4089
|
+
var panelContainer = import_react18.css`
|
|
4090
|
+
position: absolute;
|
|
4091
|
+
right: 0;
|
|
4092
|
+
bottom: 0;
|
|
4093
|
+
z-index: 1;
|
|
4094
|
+
|
|
4095
|
+
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
4096
|
+
position: fixed;
|
|
4097
|
+
inset: 0;
|
|
4098
|
+
right: 0;
|
|
4099
|
+
bottom: 0;
|
|
4100
|
+
display: flex;
|
|
4101
|
+
align-items: stretch;
|
|
4102
|
+
justify-content: stretch;
|
|
4103
|
+
}
|
|
4104
|
+
`;
|
|
4105
|
+
var panelCard = (width2) => import_react18.css`
|
|
4106
|
+
background: var(--surface-page);
|
|
4107
|
+
color: var(--text-primary);
|
|
4108
|
+
border: 1px solid var(--border-primary);
|
|
4109
|
+
border-radius: var(--radius-lg);
|
|
4110
|
+
padding: var(--spacing-4);
|
|
4111
|
+
overflow: auto;
|
|
4112
|
+
box-shadow: 0 0 var(--shadow-blur-lg, 24px) var(--shadow-spread-xs, -4px)
|
|
4113
|
+
rgba(17, 17, 17, 0.1);
|
|
4114
|
+
|
|
4115
|
+
/* Width passed from props (desktop/tablet) */
|
|
4116
|
+
width: ${typeof width2 === "number" ? `${width2}px` : width2};
|
|
4117
|
+
|
|
4118
|
+
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
4119
|
+
width: 100vw;
|
|
4120
|
+
height: 100vh;
|
|
4121
|
+
border-radius: 0;
|
|
4122
|
+
padding: var(--spacing-4);
|
|
4123
|
+
overflow: auto;
|
|
4124
|
+
}
|
|
4125
|
+
`;
|
|
4126
|
+
var widgetTrigger = import_react18.css`
|
|
4127
|
+
margin: var(--spacing-1);
|
|
4128
|
+
box-shadow: var(--shadow-2xl);
|
|
4129
|
+
`;
|
|
4130
|
+
|
|
4131
|
+
// src/Widget/Widget.tsx
|
|
4132
|
+
var import_jsx_runtime207 = require("@emotion/react/jsx-runtime");
|
|
4133
|
+
var WidgetContext = (0, import_react19.createContext)(null);
|
|
4134
|
+
var useWidgetContext = () => {
|
|
4135
|
+
const ctx = (0, import_react19.useContext)(WidgetContext);
|
|
4136
|
+
if (!ctx)
|
|
4137
|
+
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
4138
|
+
return ctx;
|
|
4139
|
+
};
|
|
4140
|
+
var WidgetTrigger = () => {
|
|
4141
|
+
const { expanded, toggle, triggerRef, icon, expandedIcon } = useWidgetContext();
|
|
4142
|
+
const currentIcon = expanded ? expandedIcon : icon;
|
|
4143
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(import_jsx_runtime207.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4144
|
+
Button_default,
|
|
4145
|
+
{
|
|
4146
|
+
ref: triggerRef,
|
|
4147
|
+
"aria-expanded": expanded,
|
|
4148
|
+
"aria-haspopup": "dialog",
|
|
4149
|
+
onClick: toggle,
|
|
4150
|
+
size: "lg",
|
|
4151
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(Icon_default, { variant: currentIcon, size: 12 }),
|
|
4152
|
+
css: widgetTrigger
|
|
4153
|
+
}
|
|
4154
|
+
) });
|
|
4155
|
+
};
|
|
4156
|
+
var WidgetPanel = ({ className, style, children }) => {
|
|
4157
|
+
var _a;
|
|
4158
|
+
const { expanded, panelWidth } = useWidgetContext();
|
|
4159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4160
|
+
"div",
|
|
4161
|
+
{
|
|
4162
|
+
css: panelContainer,
|
|
4163
|
+
className,
|
|
4164
|
+
style: {
|
|
4165
|
+
...style,
|
|
4166
|
+
display: expanded ? (_a = style == null ? void 0 : style.display) != null ? _a : void 0 : "none"
|
|
4167
|
+
},
|
|
4168
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4169
|
+
Box_default,
|
|
4170
|
+
{
|
|
4171
|
+
css: panelCard(panelWidth),
|
|
4172
|
+
role: "dialog",
|
|
4173
|
+
"aria-modal": expanded ? true : false,
|
|
4174
|
+
"aria-hidden": !expanded,
|
|
4175
|
+
children
|
|
4176
|
+
}
|
|
4177
|
+
)
|
|
4178
|
+
}
|
|
4179
|
+
);
|
|
4180
|
+
};
|
|
4181
|
+
var WidgetRoot = ({
|
|
4182
|
+
ariaLabel,
|
|
4183
|
+
icon = "Plus",
|
|
4184
|
+
expandedIcon = "Xmark",
|
|
4185
|
+
defaultExpanded = false,
|
|
4186
|
+
expanded,
|
|
4187
|
+
onExpandedChange,
|
|
4188
|
+
panelWidth,
|
|
4189
|
+
className,
|
|
4190
|
+
children,
|
|
4191
|
+
containerProps
|
|
4192
|
+
}) => {
|
|
4193
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react19.useState)(defaultExpanded);
|
|
4194
|
+
const isControlled = typeof expanded === "boolean";
|
|
4195
|
+
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4196
|
+
const triggerRef = (0, import_react19.useRef)(null);
|
|
4197
|
+
const containerRef = (0, import_react19.useRef)(null);
|
|
4198
|
+
const setExpanded = (0, import_react19.useCallback)(
|
|
4199
|
+
(next) => {
|
|
4200
|
+
if (!isControlled)
|
|
4201
|
+
setInternalExpanded(next);
|
|
4202
|
+
onExpandedChange == null ? void 0 : onExpandedChange(next);
|
|
4203
|
+
if (!next) {
|
|
4204
|
+
setTimeout(() => {
|
|
4205
|
+
var _a;
|
|
4206
|
+
return (_a = triggerRef.current) == null ? void 0 : _a.focus();
|
|
4207
|
+
}, 0);
|
|
4208
|
+
}
|
|
4209
|
+
},
|
|
4210
|
+
[isControlled, onExpandedChange]
|
|
4211
|
+
);
|
|
4212
|
+
const toggle = (0, import_react19.useCallback)(
|
|
4213
|
+
() => setExpanded(!isExpanded),
|
|
4214
|
+
[isExpanded, setExpanded]
|
|
4215
|
+
);
|
|
4216
|
+
(0, import_react19.useEffect)(() => {
|
|
4217
|
+
if (!isExpanded)
|
|
4218
|
+
return;
|
|
4219
|
+
const onDocClick = (e) => {
|
|
4220
|
+
const target = e.target;
|
|
4221
|
+
if (!containerRef.current)
|
|
4222
|
+
return;
|
|
4223
|
+
if (!containerRef.current.contains(target)) {
|
|
4224
|
+
setExpanded(false);
|
|
4225
|
+
}
|
|
4226
|
+
};
|
|
4227
|
+
document.addEventListener("mousedown", onDocClick);
|
|
4228
|
+
return () => document.removeEventListener("mousedown", onDocClick);
|
|
4229
|
+
}, [isExpanded, setExpanded]);
|
|
4230
|
+
(0, import_react19.useEffect)(() => {
|
|
4231
|
+
if (!isExpanded)
|
|
4232
|
+
return;
|
|
4233
|
+
const onKey = (e) => {
|
|
4234
|
+
if (e.key === "Escape")
|
|
4235
|
+
setExpanded(false);
|
|
4236
|
+
};
|
|
4237
|
+
document.addEventListener("keydown", onKey);
|
|
4238
|
+
return () => document.removeEventListener("keydown", onKey);
|
|
4239
|
+
}, [isExpanded, setExpanded]);
|
|
4240
|
+
const value = (0, import_react19.useMemo)(
|
|
4241
|
+
() => ({
|
|
4242
|
+
expanded: isExpanded,
|
|
4243
|
+
toggle,
|
|
4244
|
+
triggerRef,
|
|
4245
|
+
icon,
|
|
4246
|
+
expandedIcon,
|
|
4247
|
+
panelWidth: panelWidth != null ? panelWidth : 480
|
|
4248
|
+
}),
|
|
4249
|
+
[expandedIcon, icon, isExpanded, panelWidth, toggle]
|
|
4250
|
+
);
|
|
4251
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
4252
|
+
Box_default,
|
|
4253
|
+
{
|
|
4254
|
+
ref: containerRef,
|
|
4255
|
+
className,
|
|
4256
|
+
"aria-label": ariaLabel,
|
|
4257
|
+
position: "fixed",
|
|
4258
|
+
right: "var(--spacing-6)",
|
|
4259
|
+
bottom: "var(--spacing-6)",
|
|
4260
|
+
zIndex: 100,
|
|
4261
|
+
...containerProps,
|
|
4262
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(WidgetContext.Provider, { value, children })
|
|
4263
|
+
}
|
|
4264
|
+
);
|
|
4265
|
+
};
|
|
4266
|
+
var Widget = Object.assign(WidgetRoot, {
|
|
4267
|
+
Trigger: WidgetTrigger,
|
|
4268
|
+
Panel: WidgetPanel
|
|
4269
|
+
});
|
|
4270
|
+
var Widget_default = Widget;
|
|
4271
|
+
|
|
4272
|
+
// src/ChatWidget/ChatWidget.styles.ts
|
|
4273
|
+
var import_react20 = require("@emotion/react");
|
|
4274
|
+
var sentWrapperStyles = import_react20.css`
|
|
4275
|
+
align-self: flex-end;
|
|
4276
|
+
max-width: 90%;
|
|
4277
|
+
width: 100%;
|
|
4278
|
+
min-width: 0;
|
|
4279
|
+
overflow-wrap: anywhere;
|
|
4280
|
+
padding-top: var(--spacing-4);
|
|
4281
|
+
`;
|
|
4282
|
+
var receivedWrapperStyles = import_react20.css`
|
|
4283
|
+
align-self: flex-start;
|
|
4284
|
+
width: 100%;
|
|
4285
|
+
min-width: 0;
|
|
4286
|
+
overflow-wrap: anywhere;
|
|
4287
|
+
padding-top: var(--spacing-4);
|
|
4288
|
+
`;
|
|
4289
|
+
var containerStyles = import_react20.css`
|
|
4290
|
+
display: flex;
|
|
4291
|
+
flex-direction: column;
|
|
4292
|
+
min-height: 0;
|
|
4293
|
+
height: 765px;
|
|
4294
|
+
|
|
4295
|
+
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
4296
|
+
height: 100%;
|
|
4297
|
+
}
|
|
4298
|
+
`;
|
|
4299
|
+
var thinkingRowStyles = import_react20.css`
|
|
4300
|
+
display: flex;
|
|
4301
|
+
align-items: center;
|
|
4302
|
+
gap: var(--spacing-2);
|
|
4303
|
+
color: var(--text-primary);
|
|
4304
|
+
`;
|
|
4305
|
+
var thinkingTextStyles = import_react20.css`
|
|
4306
|
+
animation: ltchat-pulse 1.6s ease-in-out infinite;
|
|
4307
|
+
|
|
4308
|
+
@keyframes ltchat-pulse {
|
|
4309
|
+
0%,
|
|
4310
|
+
100% {
|
|
4311
|
+
opacity: 0.6;
|
|
4312
|
+
}
|
|
4313
|
+
50% {
|
|
4314
|
+
opacity: 1;
|
|
4315
|
+
}
|
|
4316
|
+
}
|
|
4317
|
+
`;
|
|
4318
|
+
var badge = import_react20.css`
|
|
4319
|
+
width: var(--spacing-11);
|
|
4320
|
+
height: var(--spacing-11);
|
|
4321
|
+
border-radius: var(--radius-round);
|
|
4322
|
+
display: inline-flex;
|
|
4323
|
+
align-items: center;
|
|
4324
|
+
justify-content: center;
|
|
4325
|
+
background-color: var(--color-primary-500);
|
|
4326
|
+
color: var(--color-base-white);
|
|
4327
|
+
`;
|
|
4328
|
+
var closeButtonContent = import_react20.css`
|
|
4329
|
+
display: inline-flex;
|
|
4330
|
+
align-items: center;
|
|
4331
|
+
gap: var(--spacing-2);
|
|
4332
|
+
`;
|
|
4333
|
+
|
|
4334
|
+
// src/ChatWidget/ChatWidget.tsx
|
|
4335
|
+
var import_jsx_runtime208 = require("@emotion/react/jsx-runtime");
|
|
4336
|
+
var DEFAULT_EMPTY_STATE = [
|
|
4337
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4338
|
+
AIResponse_default,
|
|
4339
|
+
{
|
|
4340
|
+
showDisclaimer: false,
|
|
4341
|
+
showHelpfulQuestion: false,
|
|
4342
|
+
title: "Have a question?",
|
|
4343
|
+
children: "I can answer questions about this package\u2014species, seasons, rules, access, and more. What would you like to know?"
|
|
4344
|
+
},
|
|
4345
|
+
"default-empty"
|
|
4346
|
+
)
|
|
4347
|
+
];
|
|
4348
|
+
var ChatWidget = ({
|
|
4349
|
+
title,
|
|
4350
|
+
messages,
|
|
4351
|
+
onSubmit,
|
|
4352
|
+
placeholder = "Type your question",
|
|
4353
|
+
disabled = false,
|
|
4354
|
+
className,
|
|
4355
|
+
ariaLabel = "Open Chat",
|
|
4356
|
+
panelWidth = 480,
|
|
4357
|
+
expanded,
|
|
4358
|
+
defaultExpanded = false,
|
|
4359
|
+
onExpandedChange,
|
|
4360
|
+
isThinking = false,
|
|
4361
|
+
emptyState = DEFAULT_EMPTY_STATE,
|
|
4362
|
+
containerProps
|
|
4363
|
+
}) => {
|
|
4364
|
+
const [value, setValue] = (0, import_react21.useState)("");
|
|
4365
|
+
const scrollRef = (0, import_react21.useRef)(null);
|
|
4366
|
+
const isControlled = typeof expanded === "boolean";
|
|
4367
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react21.useState)(defaultExpanded);
|
|
4368
|
+
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
4369
|
+
const setExpanded = (0, import_react21.useCallback)(
|
|
4370
|
+
(next) => {
|
|
4371
|
+
if (!isControlled)
|
|
4372
|
+
setInternalExpanded(next);
|
|
4373
|
+
onExpandedChange == null ? void 0 : onExpandedChange(next);
|
|
4374
|
+
},
|
|
4375
|
+
[isControlled, onExpandedChange]
|
|
4376
|
+
);
|
|
4377
|
+
(0, import_react21.useEffect)(() => {
|
|
4378
|
+
const el = scrollRef.current;
|
|
4379
|
+
if (!el)
|
|
4380
|
+
return;
|
|
4381
|
+
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
4382
|
+
}, [messages, isThinking]);
|
|
4383
|
+
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
4384
|
+
const renderedMessages = (0, import_react21.useMemo)(
|
|
4385
|
+
() => messagesToRender.map((element, index) => {
|
|
4386
|
+
var _a;
|
|
4387
|
+
const key = (_a = element.key) != null ? _a : index;
|
|
4388
|
+
if (element.type === AIResponse_default) {
|
|
4389
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { css: receivedWrapperStyles, children: element }, key);
|
|
4390
|
+
}
|
|
4391
|
+
if (element.type === MessageBubble_default) {
|
|
4392
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
4393
|
+
}
|
|
4394
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(import_react21.default.Fragment, { children: element }, key);
|
|
4395
|
+
}),
|
|
4396
|
+
[messagesToRender]
|
|
4397
|
+
);
|
|
4398
|
+
const handleSubmit = () => {
|
|
4399
|
+
const trimmed = value.trim();
|
|
4400
|
+
if (!trimmed)
|
|
4401
|
+
return;
|
|
4402
|
+
onSubmit(trimmed);
|
|
4403
|
+
setValue("");
|
|
4404
|
+
};
|
|
4405
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
|
|
4406
|
+
Widget_default,
|
|
4407
|
+
{
|
|
4408
|
+
ariaLabel,
|
|
4409
|
+
icon: "ConversationalSearchAi",
|
|
4410
|
+
expanded: isExpanded,
|
|
4411
|
+
onExpandedChange: setExpanded,
|
|
4412
|
+
panelWidth,
|
|
4413
|
+
className,
|
|
4414
|
+
containerProps,
|
|
4415
|
+
children: [
|
|
4416
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Widget_default.Trigger, {}),
|
|
4417
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Widget_default.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(Box_default, { css: containerStyles, children: [
|
|
4418
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(Box_default, { position: "sticky", top: 0, zIndex: 1, children: [
|
|
4419
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
|
|
4420
|
+
Box_default,
|
|
4421
|
+
{
|
|
4422
|
+
display: "flex",
|
|
4423
|
+
alignItems: "center",
|
|
4424
|
+
justifyContent: "space-between",
|
|
4425
|
+
gap: "var(--spacing-4)",
|
|
4426
|
+
children: [
|
|
4427
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
|
|
4428
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: 6 }) }),
|
|
4429
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4430
|
+
Heading_default,
|
|
4431
|
+
{
|
|
4432
|
+
size: "2xs",
|
|
4433
|
+
fontWeight: "bold",
|
|
4434
|
+
color: "var(--text-primary)",
|
|
4435
|
+
children: title
|
|
4436
|
+
}
|
|
4437
|
+
)
|
|
4438
|
+
] }),
|
|
4439
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4440
|
+
Button_default,
|
|
4441
|
+
{
|
|
4442
|
+
variant: "text",
|
|
4443
|
+
size: "xs",
|
|
4444
|
+
"aria-label": "Close widget",
|
|
4445
|
+
onClick: () => setExpanded(false),
|
|
4446
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)("span", { css: closeButtonContent, children: [
|
|
4447
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: "Xmark", size: 5 }),
|
|
4448
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)("span", { children: "Close" })
|
|
4449
|
+
] })
|
|
4450
|
+
}
|
|
4451
|
+
)
|
|
4452
|
+
]
|
|
4453
|
+
}
|
|
4454
|
+
),
|
|
4455
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
4456
|
+
] }),
|
|
4457
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
|
|
4458
|
+
Box_default,
|
|
4459
|
+
{
|
|
4460
|
+
ref: scrollRef,
|
|
4461
|
+
flex: "1 1 auto",
|
|
4462
|
+
minHeight: 0,
|
|
4463
|
+
overflowY: "auto",
|
|
4464
|
+
p: 0,
|
|
4465
|
+
pb: 4,
|
|
4466
|
+
display: "flex",
|
|
4467
|
+
flexDirection: "column",
|
|
4468
|
+
gap: "var(--spacing-2)",
|
|
4469
|
+
children: [
|
|
4470
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
4471
|
+
isThinking && /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
4472
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Spinner_default2, { size: 5 }),
|
|
4473
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)("span", { css: thinkingTextStyles, children: "Thinking..." })
|
|
4474
|
+
] }) })
|
|
4475
|
+
]
|
|
4476
|
+
}
|
|
4477
|
+
),
|
|
4478
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Box_default, { position: "sticky", bottom: 0, zIndex: 1, p: 0, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
4479
|
+
TextArea_default,
|
|
4480
|
+
{
|
|
4481
|
+
rows: 3,
|
|
4482
|
+
value,
|
|
4483
|
+
maxHeight: 250,
|
|
4484
|
+
autoExpand: true,
|
|
4485
|
+
onChange: (e) => setValue(e.target.value),
|
|
4486
|
+
showSubmit: true,
|
|
4487
|
+
onSubmit: handleSubmit,
|
|
4488
|
+
disabled,
|
|
4489
|
+
submitDisabled: !value.trim() || isThinking,
|
|
4490
|
+
placeholder
|
|
4491
|
+
}
|
|
4492
|
+
) })
|
|
4493
|
+
] }) })
|
|
4494
|
+
]
|
|
4495
|
+
}
|
|
4496
|
+
);
|
|
4497
|
+
};
|
|
4498
|
+
var ChatWidget_default = ChatWidget;
|
|
4499
|
+
|
|
4500
|
+
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
4501
|
+
var import_react22 = require("@emotion/react");
|
|
4502
|
+
var cardContainerStyles = import_react22.css`
|
|
4503
|
+
position: relative;
|
|
4504
|
+
height: 335px;
|
|
4505
|
+
|
|
4506
|
+
${media.md} {
|
|
4507
|
+
height: 480px;
|
|
4508
|
+
}
|
|
4509
|
+
`;
|
|
4510
|
+
var cardContentStyles = import_react22.css`
|
|
4511
|
+
position: relative;
|
|
4512
|
+
border-radius: var(--spacing-4);
|
|
4513
|
+
overflow: hidden;
|
|
4514
|
+
`;
|
|
4515
|
+
var getBackgroundWithGradient = (imageUrl) => import_react22.css`
|
|
4516
|
+
background-image: linear-gradient(
|
|
4517
|
+
180deg,
|
|
4518
|
+
rgba(0, 0, 0, 0) 48.36%,
|
|
4519
|
+
rgba(0, 0, 0, 0.6) 76.64%
|
|
4520
|
+
),
|
|
4521
|
+
url(${imageUrl});
|
|
4522
|
+
background-size: cover;
|
|
4523
|
+
background-position: center;
|
|
4524
|
+
background-repeat: no-repeat;
|
|
4525
|
+
background-color: #fff;
|
|
4526
|
+
`;
|
|
4527
|
+
|
|
4528
|
+
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
4529
|
+
var import_jsx_runtime209 = require("@emotion/react/jsx-runtime");
|
|
4530
|
+
var FieldNoteCard = ({
|
|
4531
|
+
backgroundImage,
|
|
4532
|
+
title,
|
|
4533
|
+
buttonLabel,
|
|
4534
|
+
onClick,
|
|
4535
|
+
className,
|
|
4536
|
+
...rest
|
|
4537
|
+
}) => {
|
|
4538
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4539
|
+
Box_default,
|
|
4540
|
+
{
|
|
4541
|
+
display: "flex",
|
|
4542
|
+
css: cardContainerStyles,
|
|
4543
|
+
className,
|
|
4544
|
+
...rest,
|
|
4545
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
4546
|
+
Box_default,
|
|
4547
|
+
{
|
|
4548
|
+
display: "flex",
|
|
4549
|
+
flexDirection: "column",
|
|
4550
|
+
justifyContent: "flex-end",
|
|
4551
|
+
p: 6,
|
|
4552
|
+
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
4553
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime209.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
4554
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
4555
|
+
/* @__PURE__ */ (0, import_jsx_runtime209.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
4556
|
+
] })
|
|
4557
|
+
}
|
|
4558
|
+
)
|
|
4559
|
+
}
|
|
4560
|
+
);
|
|
4561
|
+
};
|
|
4562
|
+
var FieldNoteCard_default = FieldNoteCard;
|
|
4563
|
+
|
|
4564
|
+
// src/Form/FormField.tsx
|
|
4565
|
+
var import_react23 = require("@emotion/react");
|
|
4566
|
+
var import_jsx_runtime210 = require("@emotion/react/jsx-runtime");
|
|
4567
|
+
var fieldContainerStyles = import_react23.css`
|
|
4568
|
+
display: flex;
|
|
4569
|
+
flex-direction: column;
|
|
4570
|
+
gap: ${space["2"]};
|
|
4571
|
+
`;
|
|
4572
|
+
var labelStyles2 = import_react23.css`
|
|
4573
|
+
font-family: ${fonts.base};
|
|
4574
|
+
font-size: ${fontSizes.sm};
|
|
4575
|
+
font-weight: ${fontWeights.medium};
|
|
4576
|
+
line-height: ${lineHeights.tight};
|
|
4577
|
+
color: ${colors.gray["900"]};
|
|
4578
|
+
margin-bottom: ${space["1"]};
|
|
4579
|
+
`;
|
|
4580
|
+
var requiredIndicatorStyles = import_react23.css`
|
|
4581
|
+
color: ${colors.red["500"]};
|
|
4582
|
+
margin-left: ${space["1"]};
|
|
4583
|
+
`;
|
|
4584
|
+
var helpTextStyles = import_react23.css`
|
|
4585
|
+
font-family: ${fonts.base};
|
|
4586
|
+
font-size: ${fontSizes.sm};
|
|
4587
|
+
line-height: ${lineHeights.tight};
|
|
4588
|
+
color: ${colors.gray["600"]};
|
|
4589
|
+
`;
|
|
4590
|
+
var errorTextStyles = import_react23.css`
|
|
3914
4591
|
font-family: ${fonts.base};
|
|
3915
4592
|
font-size: ${fontSizes.sm};
|
|
3916
4593
|
line-height: ${lineHeights.tight};
|
|
@@ -3919,7 +4596,7 @@ var errorTextStyles = import_react14.css`
|
|
|
3919
4596
|
align-items: center;
|
|
3920
4597
|
gap: ${space["1"]};
|
|
3921
4598
|
`;
|
|
3922
|
-
var successTextStyles =
|
|
4599
|
+
var successTextStyles = import_react23.css`
|
|
3923
4600
|
font-family: ${fonts.base};
|
|
3924
4601
|
font-size: ${fontSizes.sm};
|
|
3925
4602
|
line-height: ${lineHeights.tight};
|
|
@@ -3928,7 +4605,7 @@ var successTextStyles = import_react14.css`
|
|
|
3928
4605
|
align-items: center;
|
|
3929
4606
|
gap: ${space["1"]};
|
|
3930
4607
|
`;
|
|
3931
|
-
var visuallyHiddenStyles =
|
|
4608
|
+
var visuallyHiddenStyles = import_react23.css`
|
|
3932
4609
|
position: absolute;
|
|
3933
4610
|
width: 1px;
|
|
3934
4611
|
height: 1px;
|
|
@@ -3953,21 +4630,21 @@ var FormField = ({
|
|
|
3953
4630
|
const hasError = !!error;
|
|
3954
4631
|
const hasSuccess = !!success && !hasError;
|
|
3955
4632
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
3956
|
-
return /* @__PURE__ */ (0,
|
|
3957
|
-
label && /* @__PURE__ */ (0,
|
|
4633
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
4634
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
|
|
3958
4635
|
"label",
|
|
3959
4636
|
{
|
|
3960
4637
|
htmlFor,
|
|
3961
4638
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
3962
4639
|
children: [
|
|
3963
4640
|
label,
|
|
3964
|
-
required && /* @__PURE__ */ (0,
|
|
4641
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
3965
4642
|
]
|
|
3966
4643
|
}
|
|
3967
4644
|
),
|
|
3968
4645
|
children,
|
|
3969
|
-
hasError && /* @__PURE__ */ (0,
|
|
3970
|
-
/* @__PURE__ */ (0,
|
|
4646
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
4647
|
+
/* @__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)(
|
|
3971
4648
|
"path",
|
|
3972
4649
|
{
|
|
3973
4650
|
fillRule: "evenodd",
|
|
@@ -3977,8 +4654,8 @@ var FormField = ({
|
|
|
3977
4654
|
) }),
|
|
3978
4655
|
error
|
|
3979
4656
|
] }),
|
|
3980
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
3981
|
-
/* @__PURE__ */ (0,
|
|
4657
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)("div", { css: successTextStyles, children: [
|
|
4658
|
+
/* @__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
4659
|
"path",
|
|
3983
4660
|
{
|
|
3984
4661
|
fillRule: "evenodd",
|
|
@@ -3988,15 +4665,15 @@ var FormField = ({
|
|
|
3988
4665
|
) }),
|
|
3989
4666
|
success
|
|
3990
4667
|
] }),
|
|
3991
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
4668
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
3992
4669
|
] });
|
|
3993
4670
|
};
|
|
3994
4671
|
|
|
3995
4672
|
// src/Form/Input.tsx
|
|
3996
|
-
var
|
|
3997
|
-
var
|
|
3998
|
-
var
|
|
3999
|
-
var inputStyles =
|
|
4673
|
+
var import_react24 = require("@emotion/react");
|
|
4674
|
+
var import_react25 = require("react");
|
|
4675
|
+
var import_jsx_runtime211 = require("@emotion/react/jsx-runtime");
|
|
4676
|
+
var inputStyles = import_react24.css`
|
|
4000
4677
|
position: relative;
|
|
4001
4678
|
width: 100%;
|
|
4002
4679
|
font-family: ${fonts.base};
|
|
@@ -4033,19 +4710,19 @@ var inputStyles = import_react15.css`
|
|
|
4033
4710
|
}
|
|
4034
4711
|
`;
|
|
4035
4712
|
var sizeStyles = {
|
|
4036
|
-
sm:
|
|
4713
|
+
sm: import_react24.css`
|
|
4037
4714
|
padding: ${space["2"]} ${space["3"]};
|
|
4038
4715
|
font-size: ${fontSizes.sm};
|
|
4039
4716
|
line-height: ${lineHeights.tight};
|
|
4040
4717
|
height: ${space["8"]};
|
|
4041
4718
|
`,
|
|
4042
|
-
md:
|
|
4719
|
+
md: import_react24.css`
|
|
4043
4720
|
padding: ${space["3"]} ${space["4"]};
|
|
4044
4721
|
font-size: ${fontSizes.base};
|
|
4045
4722
|
line-height: ${lineHeights.normal};
|
|
4046
4723
|
height: ${space["10"]};
|
|
4047
4724
|
`,
|
|
4048
|
-
lg:
|
|
4725
|
+
lg: import_react24.css`
|
|
4049
4726
|
padding: ${space["4"]} ${space["5"]};
|
|
4050
4727
|
font-size: ${fontSizes.lg};
|
|
4051
4728
|
line-height: ${lineHeights.normal};
|
|
@@ -4053,8 +4730,8 @@ var sizeStyles = {
|
|
|
4053
4730
|
`
|
|
4054
4731
|
};
|
|
4055
4732
|
var variantStyles = {
|
|
4056
|
-
default:
|
|
4057
|
-
error:
|
|
4733
|
+
default: import_react24.css``,
|
|
4734
|
+
error: import_react24.css`
|
|
4058
4735
|
border-color: ${colors.red["500"]};
|
|
4059
4736
|
|
|
4060
4737
|
&:focus {
|
|
@@ -4062,7 +4739,7 @@ var variantStyles = {
|
|
|
4062
4739
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
4063
4740
|
}
|
|
4064
4741
|
`,
|
|
4065
|
-
success:
|
|
4742
|
+
success: import_react24.css`
|
|
4066
4743
|
border-color: ${colors.accent.green};
|
|
4067
4744
|
|
|
4068
4745
|
&:focus {
|
|
@@ -4071,7 +4748,7 @@ var variantStyles = {
|
|
|
4071
4748
|
}
|
|
4072
4749
|
`
|
|
4073
4750
|
};
|
|
4074
|
-
var inputWithIconStyles =
|
|
4751
|
+
var inputWithIconStyles = import_react24.css`
|
|
4075
4752
|
padding-left: ${space["10"]};
|
|
4076
4753
|
|
|
4077
4754
|
&.has-end-icon {
|
|
@@ -4082,7 +4759,7 @@ var inputWithIconStyles = import_react15.css`
|
|
|
4082
4759
|
padding-left: ${space["10"]};
|
|
4083
4760
|
}
|
|
4084
4761
|
`;
|
|
4085
|
-
var iconContainerStyles =
|
|
4762
|
+
var iconContainerStyles = import_react24.css`
|
|
4086
4763
|
position: absolute;
|
|
4087
4764
|
top: 50%;
|
|
4088
4765
|
transform: translateY(-50%);
|
|
@@ -4093,20 +4770,20 @@ var iconContainerStyles = import_react15.css`
|
|
|
4093
4770
|
pointer-events: none;
|
|
4094
4771
|
z-index: 1;
|
|
4095
4772
|
`;
|
|
4096
|
-
var startIconStyles =
|
|
4773
|
+
var startIconStyles = import_react24.css`
|
|
4097
4774
|
${iconContainerStyles}
|
|
4098
4775
|
left: ${space["3"]};
|
|
4099
4776
|
`;
|
|
4100
|
-
var endIconStyles =
|
|
4777
|
+
var endIconStyles = import_react24.css`
|
|
4101
4778
|
${iconContainerStyles}
|
|
4102
4779
|
right: ${space["3"]};
|
|
4103
4780
|
`;
|
|
4104
|
-
var inputWrapperStyles =
|
|
4781
|
+
var inputWrapperStyles = import_react24.css`
|
|
4105
4782
|
position: relative;
|
|
4106
4783
|
display: inline-block;
|
|
4107
4784
|
width: 100%;
|
|
4108
4785
|
`;
|
|
4109
|
-
var Input = (0,
|
|
4786
|
+
var Input = (0, import_react25.forwardRef)(
|
|
4110
4787
|
({
|
|
4111
4788
|
size = "md",
|
|
4112
4789
|
variant = "default",
|
|
@@ -4125,9 +4802,9 @@ var Input = (0, import_react16.forwardRef)(
|
|
|
4125
4802
|
hasEndIcon && "has-end-icon",
|
|
4126
4803
|
className
|
|
4127
4804
|
].filter(Boolean).join(" ");
|
|
4128
|
-
return /* @__PURE__ */ (0,
|
|
4129
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
4130
|
-
/* @__PURE__ */ (0,
|
|
4805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
4806
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
4807
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
4131
4808
|
"input",
|
|
4132
4809
|
{
|
|
4133
4810
|
ref,
|
|
@@ -4144,17 +4821,17 @@ var Input = (0, import_react16.forwardRef)(
|
|
|
4144
4821
|
...props
|
|
4145
4822
|
}
|
|
4146
4823
|
),
|
|
4147
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
4824
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
4148
4825
|
] });
|
|
4149
4826
|
}
|
|
4150
4827
|
);
|
|
4151
4828
|
Input.displayName = "Input";
|
|
4152
4829
|
|
|
4153
4830
|
// src/Form/Select.tsx
|
|
4154
|
-
var
|
|
4155
|
-
var
|
|
4156
|
-
var
|
|
4157
|
-
var selectStyles =
|
|
4831
|
+
var import_react26 = require("@emotion/react");
|
|
4832
|
+
var import_react27 = require("react");
|
|
4833
|
+
var import_jsx_runtime212 = require("@emotion/react/jsx-runtime");
|
|
4834
|
+
var selectStyles = import_react26.css`
|
|
4158
4835
|
position: relative;
|
|
4159
4836
|
width: 100%;
|
|
4160
4837
|
font-family: ${fonts.base};
|
|
@@ -4193,19 +4870,19 @@ var selectStyles = import_react17.css`
|
|
|
4193
4870
|
}
|
|
4194
4871
|
`;
|
|
4195
4872
|
var sizeStyles2 = {
|
|
4196
|
-
sm:
|
|
4873
|
+
sm: import_react26.css`
|
|
4197
4874
|
padding: ${space["2"]} ${space["3"]};
|
|
4198
4875
|
font-size: ${fontSizes.sm};
|
|
4199
4876
|
line-height: ${lineHeights.tight};
|
|
4200
4877
|
height: ${space["8"]};
|
|
4201
4878
|
`,
|
|
4202
|
-
md:
|
|
4879
|
+
md: import_react26.css`
|
|
4203
4880
|
padding: ${space["3"]} ${space["4"]};
|
|
4204
4881
|
font-size: ${fontSizes.base};
|
|
4205
4882
|
line-height: ${lineHeights.normal};
|
|
4206
4883
|
height: ${space["10"]};
|
|
4207
4884
|
`,
|
|
4208
|
-
lg:
|
|
4885
|
+
lg: import_react26.css`
|
|
4209
4886
|
padding: ${space["4"]} ${space["5"]};
|
|
4210
4887
|
font-size: ${fontSizes.lg};
|
|
4211
4888
|
line-height: ${lineHeights.normal};
|
|
@@ -4213,8 +4890,8 @@ var sizeStyles2 = {
|
|
|
4213
4890
|
`
|
|
4214
4891
|
};
|
|
4215
4892
|
var variantStyles2 = {
|
|
4216
|
-
default:
|
|
4217
|
-
error:
|
|
4893
|
+
default: import_react26.css``,
|
|
4894
|
+
error: import_react26.css`
|
|
4218
4895
|
border-color: ${colors.red["500"]};
|
|
4219
4896
|
|
|
4220
4897
|
&:focus {
|
|
@@ -4222,7 +4899,7 @@ var variantStyles2 = {
|
|
|
4222
4899
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
4223
4900
|
}
|
|
4224
4901
|
`,
|
|
4225
|
-
success:
|
|
4902
|
+
success: import_react26.css`
|
|
4226
4903
|
border-color: ${colors.accent.green};
|
|
4227
4904
|
|
|
4228
4905
|
&:focus {
|
|
@@ -4231,7 +4908,7 @@ var variantStyles2 = {
|
|
|
4231
4908
|
}
|
|
4232
4909
|
`
|
|
4233
4910
|
};
|
|
4234
|
-
var optionStyles =
|
|
4911
|
+
var optionStyles = import_react26.css`
|
|
4235
4912
|
background-color: ${colors.light["100"]};
|
|
4236
4913
|
color: ${colors.gray["900"]};
|
|
4237
4914
|
|
|
@@ -4240,7 +4917,7 @@ var optionStyles = import_react17.css`
|
|
|
4240
4917
|
background-color: ${colors.gray["100"]};
|
|
4241
4918
|
}
|
|
4242
4919
|
`;
|
|
4243
|
-
var Select = (0,
|
|
4920
|
+
var Select = (0, import_react27.forwardRef)(
|
|
4244
4921
|
({
|
|
4245
4922
|
size = "md",
|
|
4246
4923
|
variant = "default",
|
|
@@ -4250,7 +4927,7 @@ var Select = (0, import_react18.forwardRef)(
|
|
|
4250
4927
|
className = "",
|
|
4251
4928
|
...props
|
|
4252
4929
|
}, ref) => {
|
|
4253
|
-
return /* @__PURE__ */ (0,
|
|
4930
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsxs)(
|
|
4254
4931
|
"select",
|
|
4255
4932
|
{
|
|
4256
4933
|
ref,
|
|
@@ -4259,8 +4936,8 @@ var Select = (0, import_react18.forwardRef)(
|
|
|
4259
4936
|
className,
|
|
4260
4937
|
...props,
|
|
4261
4938
|
children: [
|
|
4262
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
4263
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
4939
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
4940
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
4264
4941
|
"option",
|
|
4265
4942
|
{
|
|
4266
4943
|
value: option.value,
|
|
@@ -4272,179 +4949,16 @@ var Select = (0, import_react18.forwardRef)(
|
|
|
4272
4949
|
))
|
|
4273
4950
|
]
|
|
4274
4951
|
}
|
|
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
|
-
] });
|
|
4952
|
+
);
|
|
4439
4953
|
}
|
|
4440
4954
|
);
|
|
4441
|
-
|
|
4955
|
+
Select.displayName = "Select";
|
|
4442
4956
|
|
|
4443
4957
|
// src/Grid/Column.tsx
|
|
4444
|
-
var
|
|
4958
|
+
var import_react29 = require("@emotion/react");
|
|
4445
4959
|
|
|
4446
4960
|
// src/Grid/utils.ts
|
|
4447
|
-
var
|
|
4961
|
+
var import_react28 = require("@emotion/react");
|
|
4448
4962
|
var LayoutTokens = {
|
|
4449
4963
|
containers: {
|
|
4450
4964
|
sm: screens.sm,
|
|
@@ -4484,11 +4998,11 @@ var getResponsiveValue = (value) => {
|
|
|
4484
4998
|
var generateGridColumns = (columns) => {
|
|
4485
4999
|
const baseColumns = getResponsiveValue(columns);
|
|
4486
5000
|
if (typeof columns === "number") {
|
|
4487
|
-
return
|
|
5001
|
+
return import_react28.css`
|
|
4488
5002
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
4489
5003
|
`;
|
|
4490
5004
|
}
|
|
4491
|
-
return
|
|
5005
|
+
return import_react28.css`
|
|
4492
5006
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
4493
5007
|
|
|
4494
5008
|
${media.sm} {
|
|
@@ -4520,11 +5034,11 @@ var generateGridColumns = (columns) => {
|
|
|
4520
5034
|
var generateGapStyles = (gap2) => {
|
|
4521
5035
|
const baseGap = getResponsiveValue(gap2);
|
|
4522
5036
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
4523
|
-
return
|
|
5037
|
+
return import_react28.css`
|
|
4524
5038
|
gap: ${space[gap2]};
|
|
4525
5039
|
`;
|
|
4526
5040
|
}
|
|
4527
|
-
return
|
|
5041
|
+
return import_react28.css`
|
|
4528
5042
|
gap: ${space[baseGap]};
|
|
4529
5043
|
|
|
4530
5044
|
${media.sm} {
|
|
@@ -4547,11 +5061,11 @@ var generateGapStyles = (gap2) => {
|
|
|
4547
5061
|
var generateRowGapStyles = (rowGap) => {
|
|
4548
5062
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
4549
5063
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
4550
|
-
return
|
|
5064
|
+
return import_react28.css`
|
|
4551
5065
|
row-gap: ${space[rowGap]};
|
|
4552
5066
|
`;
|
|
4553
5067
|
}
|
|
4554
|
-
return
|
|
5068
|
+
return import_react28.css`
|
|
4555
5069
|
row-gap: ${space[baseRowGap]};
|
|
4556
5070
|
|
|
4557
5071
|
${media.sm} {
|
|
@@ -4574,11 +5088,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
4574
5088
|
var generateColumnGapStyles = (columnGap) => {
|
|
4575
5089
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
4576
5090
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
4577
|
-
return
|
|
5091
|
+
return import_react28.css`
|
|
4578
5092
|
column-gap: ${space[columnGap]};
|
|
4579
5093
|
`;
|
|
4580
5094
|
}
|
|
4581
|
-
return
|
|
5095
|
+
return import_react28.css`
|
|
4582
5096
|
column-gap: ${space[baseColumnGap]};
|
|
4583
5097
|
|
|
4584
5098
|
${media.sm} {
|
|
@@ -4601,11 +5115,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
4601
5115
|
var generateColumnSpan = (span) => {
|
|
4602
5116
|
const baseSpan = getResponsiveValue(span);
|
|
4603
5117
|
if (typeof span === "string" || typeof span === "number") {
|
|
4604
|
-
return
|
|
5118
|
+
return import_react28.css`
|
|
4605
5119
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
4606
5120
|
`;
|
|
4607
5121
|
}
|
|
4608
|
-
return
|
|
5122
|
+
return import_react28.css`
|
|
4609
5123
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
4610
5124
|
|
|
4611
5125
|
${media.sm} {
|
|
@@ -4628,11 +5142,11 @@ var generateColumnSpan = (span) => {
|
|
|
4628
5142
|
var generateAlignItems = (alignItems) => {
|
|
4629
5143
|
const baseAlign = getResponsiveValue(alignItems);
|
|
4630
5144
|
if (typeof alignItems === "string") {
|
|
4631
|
-
return
|
|
5145
|
+
return import_react28.css`
|
|
4632
5146
|
align-items: ${alignItems};
|
|
4633
5147
|
`;
|
|
4634
5148
|
}
|
|
4635
|
-
return
|
|
5149
|
+
return import_react28.css`
|
|
4636
5150
|
align-items: ${baseAlign};
|
|
4637
5151
|
|
|
4638
5152
|
${media.sm} {
|
|
@@ -4655,11 +5169,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
4655
5169
|
var generateJustifyItems = (justifyItems) => {
|
|
4656
5170
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
4657
5171
|
if (typeof justifyItems === "string") {
|
|
4658
|
-
return
|
|
5172
|
+
return import_react28.css`
|
|
4659
5173
|
justify-items: ${justifyItems};
|
|
4660
5174
|
`;
|
|
4661
5175
|
}
|
|
4662
|
-
return
|
|
5176
|
+
return import_react28.css`
|
|
4663
5177
|
justify-items: ${baseJustify};
|
|
4664
5178
|
|
|
4665
5179
|
${media.sm} {
|
|
@@ -4681,7 +5195,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
4681
5195
|
};
|
|
4682
5196
|
|
|
4683
5197
|
// src/Grid/Column.tsx
|
|
4684
|
-
var
|
|
5198
|
+
var import_jsx_runtime213 = require("@emotion/react/jsx-runtime");
|
|
4685
5199
|
var Column = ({
|
|
4686
5200
|
span,
|
|
4687
5201
|
start,
|
|
@@ -4694,30 +5208,30 @@ var Column = ({
|
|
|
4694
5208
|
}) => {
|
|
4695
5209
|
const columnStyles = [
|
|
4696
5210
|
span && generateColumnSpan(span),
|
|
4697
|
-
start &&
|
|
5211
|
+
start && import_react29.css`
|
|
4698
5212
|
grid-column-start: ${start};
|
|
4699
5213
|
`,
|
|
4700
|
-
end &&
|
|
5214
|
+
end && import_react29.css`
|
|
4701
5215
|
grid-column-end: ${end};
|
|
4702
5216
|
`,
|
|
4703
|
-
row &&
|
|
5217
|
+
row && import_react29.css`
|
|
4704
5218
|
grid-row: ${row};
|
|
4705
5219
|
`,
|
|
4706
|
-
rowSpan &&
|
|
5220
|
+
rowSpan && import_react29.css`
|
|
4707
5221
|
grid-row: span ${rowSpan};
|
|
4708
5222
|
`,
|
|
4709
|
-
area &&
|
|
5223
|
+
area && import_react29.css`
|
|
4710
5224
|
grid-area: ${area};
|
|
4711
5225
|
`
|
|
4712
5226
|
].filter(Boolean);
|
|
4713
|
-
return /* @__PURE__ */ (0,
|
|
5227
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
4714
5228
|
};
|
|
4715
5229
|
var Column_default = Column;
|
|
4716
5230
|
|
|
4717
5231
|
// src/Grid/Grid.tsx
|
|
4718
|
-
var
|
|
4719
|
-
var
|
|
4720
|
-
var baseGridStyles =
|
|
5232
|
+
var import_react30 = require("@emotion/react");
|
|
5233
|
+
var import_jsx_runtime214 = require("@emotion/react/jsx-runtime");
|
|
5234
|
+
var baseGridStyles = import_react30.css`
|
|
4721
5235
|
display: grid;
|
|
4722
5236
|
`;
|
|
4723
5237
|
var Grid = ({
|
|
@@ -4742,27 +5256,27 @@ var Grid = ({
|
|
|
4742
5256
|
columnGap && generateColumnGapStyles(columnGap),
|
|
4743
5257
|
alignItems && generateAlignItems(alignItems),
|
|
4744
5258
|
justifyItems && generateJustifyItems(justifyItems),
|
|
4745
|
-
autoRows &&
|
|
5259
|
+
autoRows && import_react30.css`
|
|
4746
5260
|
grid-auto-rows: ${autoRows};
|
|
4747
5261
|
`,
|
|
4748
|
-
autoColumns &&
|
|
5262
|
+
autoColumns && import_react30.css`
|
|
4749
5263
|
grid-auto-columns: ${autoColumns};
|
|
4750
5264
|
`,
|
|
4751
|
-
templateAreas &&
|
|
5265
|
+
templateAreas && import_react30.css`
|
|
4752
5266
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
4753
5267
|
`,
|
|
4754
|
-
justifyContent &&
|
|
5268
|
+
justifyContent && import_react30.css`
|
|
4755
5269
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
4756
5270
|
`
|
|
4757
5271
|
].filter(Boolean);
|
|
4758
|
-
return /* @__PURE__ */ (0,
|
|
5272
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
4759
5273
|
};
|
|
4760
5274
|
var Grid_default = Grid;
|
|
4761
5275
|
|
|
4762
5276
|
// src/Grid/GridContainer.tsx
|
|
4763
|
-
var
|
|
4764
|
-
var
|
|
4765
|
-
var baseContainerStyles =
|
|
5277
|
+
var import_react31 = require("@emotion/react");
|
|
5278
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
5279
|
+
var baseContainerStyles = import_react31.css`
|
|
4766
5280
|
width: 100%;
|
|
4767
5281
|
margin: 0 auto;
|
|
4768
5282
|
padding-left: 1rem;
|
|
@@ -4770,14 +5284,14 @@ var baseContainerStyles = import_react25.css`
|
|
|
4770
5284
|
`;
|
|
4771
5285
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
4772
5286
|
if (maxWidth === "full") {
|
|
4773
|
-
return
|
|
5287
|
+
return import_react31.css`
|
|
4774
5288
|
max-width: 100%;
|
|
4775
5289
|
padding-left: 0;
|
|
4776
5290
|
padding-right: 0;
|
|
4777
5291
|
`;
|
|
4778
5292
|
}
|
|
4779
5293
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
4780
|
-
return
|
|
5294
|
+
return import_react31.css`
|
|
4781
5295
|
max-width: ${width2};
|
|
4782
5296
|
|
|
4783
5297
|
${media.sm} {
|
|
@@ -4802,17 +5316,17 @@ var GridContainer = ({
|
|
|
4802
5316
|
className,
|
|
4803
5317
|
...props
|
|
4804
5318
|
}) => {
|
|
4805
|
-
const
|
|
5319
|
+
const containerStyles4 = [
|
|
4806
5320
|
baseContainerStyles,
|
|
4807
5321
|
generateMaxWidthStyles(maxWidth)
|
|
4808
5322
|
];
|
|
4809
|
-
return /* @__PURE__ */ (0,
|
|
5323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
4810
5324
|
};
|
|
4811
5325
|
var GridContainer_default = GridContainer;
|
|
4812
5326
|
|
|
4813
5327
|
// src/HuntCard/HuntCard.styles.ts
|
|
4814
|
-
var
|
|
4815
|
-
var cardContainerStyles2 =
|
|
5328
|
+
var import_react32 = require("@emotion/react");
|
|
5329
|
+
var cardContainerStyles2 = import_react32.css`
|
|
4816
5330
|
position: relative;
|
|
4817
5331
|
height: 335px;
|
|
4818
5332
|
|
|
@@ -4820,12 +5334,12 @@ var cardContainerStyles2 = import_react26.css`
|
|
|
4820
5334
|
height: 480px;
|
|
4821
5335
|
}
|
|
4822
5336
|
`;
|
|
4823
|
-
var cardContentStyles2 =
|
|
5337
|
+
var cardContentStyles2 = import_react32.css`
|
|
4824
5338
|
position: relative;
|
|
4825
5339
|
border-radius: var(--spacing-4);
|
|
4826
5340
|
overflow: hidden;
|
|
4827
5341
|
`;
|
|
4828
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
5342
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react32.css`
|
|
4829
5343
|
background-image: linear-gradient(
|
|
4830
5344
|
180deg,
|
|
4831
5345
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -4839,7 +5353,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react26.css`
|
|
|
4839
5353
|
`;
|
|
4840
5354
|
|
|
4841
5355
|
// src/HuntCard/HuntCard.tsx
|
|
4842
|
-
var
|
|
5356
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
4843
5357
|
var HuntCard = ({
|
|
4844
5358
|
backgroundImage,
|
|
4845
5359
|
title,
|
|
@@ -4848,14 +5362,14 @@ var HuntCard = ({
|
|
|
4848
5362
|
className,
|
|
4849
5363
|
...rest
|
|
4850
5364
|
}) => {
|
|
4851
|
-
return /* @__PURE__ */ (0,
|
|
5365
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4852
5366
|
Box_default,
|
|
4853
5367
|
{
|
|
4854
5368
|
display: "flex",
|
|
4855
5369
|
css: cardContainerStyles2,
|
|
4856
5370
|
className,
|
|
4857
5371
|
...rest,
|
|
4858
|
-
children: /* @__PURE__ */ (0,
|
|
5372
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4859
5373
|
Box_default,
|
|
4860
5374
|
{
|
|
4861
5375
|
display: "flex",
|
|
@@ -4863,9 +5377,9 @@ var HuntCard = ({
|
|
|
4863
5377
|
justifyContent: "flex-end",
|
|
4864
5378
|
p: 6,
|
|
4865
5379
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
4866
|
-
children: /* @__PURE__ */ (0,
|
|
4867
|
-
/* @__PURE__ */ (0,
|
|
4868
|
-
/* @__PURE__ */ (0,
|
|
5380
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
5381
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
5382
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
4869
5383
|
] })
|
|
4870
5384
|
}
|
|
4871
5385
|
)
|
|
@@ -4875,27 +5389,27 @@ var HuntCard = ({
|
|
|
4875
5389
|
var HuntCard_default = HuntCard;
|
|
4876
5390
|
|
|
4877
5391
|
// src/ListingChat/ListingChat.tsx
|
|
4878
|
-
var
|
|
5392
|
+
var import_react35 = require("react");
|
|
4879
5393
|
|
|
4880
5394
|
// src/TagChip/TagChip.styles.ts
|
|
4881
|
-
var
|
|
5395
|
+
var import_react33 = require("@emotion/react");
|
|
4882
5396
|
var tagChipVariantStyles = {
|
|
4883
|
-
primary:
|
|
5397
|
+
primary: import_react33.css`
|
|
4884
5398
|
background-color: var(--surface-disabled);
|
|
4885
5399
|
border: 1px solid var(--surface-disabled);
|
|
4886
5400
|
color: var(--text-primary);
|
|
4887
5401
|
`,
|
|
4888
|
-
error:
|
|
5402
|
+
error: import_react33.css`
|
|
4889
5403
|
background-color: var(--surface-error);
|
|
4890
5404
|
border: 1px solid var(--color-red-300);
|
|
4891
5405
|
color: var(--text-error);
|
|
4892
5406
|
`,
|
|
4893
|
-
success:
|
|
5407
|
+
success: import_react33.css`
|
|
4894
5408
|
background-color: var(--surface-success);
|
|
4895
5409
|
border: 1px solid var(--color-green-300);
|
|
4896
5410
|
color: var(--text-success);
|
|
4897
5411
|
`,
|
|
4898
|
-
warning:
|
|
5412
|
+
warning: import_react33.css`
|
|
4899
5413
|
background-color: var(--surface-subtle);
|
|
4900
5414
|
border: 1px solid var(--color-brown-200);
|
|
4901
5415
|
color: var(--text-primary);
|
|
@@ -4903,14 +5417,14 @@ var tagChipVariantStyles = {
|
|
|
4903
5417
|
};
|
|
4904
5418
|
|
|
4905
5419
|
// src/TagChip/TagChip.tsx
|
|
4906
|
-
var
|
|
5420
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
4907
5421
|
var TagChip = ({
|
|
4908
5422
|
variant = "primary",
|
|
4909
5423
|
className,
|
|
4910
5424
|
children,
|
|
4911
5425
|
...rest
|
|
4912
5426
|
}) => {
|
|
4913
|
-
return /* @__PURE__ */ (0,
|
|
5427
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
4914
5428
|
Box_default,
|
|
4915
5429
|
{
|
|
4916
5430
|
display: "inline-flex",
|
|
@@ -4921,15 +5435,15 @@ var TagChip = ({
|
|
|
4921
5435
|
css: tagChipVariantStyles[variant],
|
|
4922
5436
|
className,
|
|
4923
5437
|
...rest,
|
|
4924
|
-
children: /* @__PURE__ */ (0,
|
|
5438
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Text_default, { as: "span", size: "sm", fontWeight: "normal", children })
|
|
4925
5439
|
}
|
|
4926
5440
|
);
|
|
4927
5441
|
};
|
|
4928
5442
|
var TagChip_default = TagChip;
|
|
4929
5443
|
|
|
4930
5444
|
// src/ListingChat/ListingChat.styles.ts
|
|
4931
|
-
var
|
|
4932
|
-
var
|
|
5445
|
+
var import_react34 = require("@emotion/react");
|
|
5446
|
+
var containerStyles2 = import_react34.css`
|
|
4933
5447
|
display: flex;
|
|
4934
5448
|
flex-direction: column;
|
|
4935
5449
|
gap: var(--spacing-4);
|
|
@@ -4937,13 +5451,13 @@ var containerStyles = import_react28.css`
|
|
|
4937
5451
|
border-radius: var(--radius-lg);
|
|
4938
5452
|
background: var(--surface-success);
|
|
4939
5453
|
`;
|
|
4940
|
-
var headerStyles =
|
|
5454
|
+
var headerStyles = import_react34.css`
|
|
4941
5455
|
display: flex;
|
|
4942
5456
|
align-items: flex-start;
|
|
4943
5457
|
justify-content: space-between;
|
|
4944
5458
|
gap: var(--spacing-2);
|
|
4945
5459
|
`;
|
|
4946
|
-
var chipsContainerStyles =
|
|
5460
|
+
var chipsContainerStyles = import_react34.css`
|
|
4947
5461
|
display: flex;
|
|
4948
5462
|
flex-wrap: wrap;
|
|
4949
5463
|
gap: var(--spacing-4);
|
|
@@ -4956,15 +5470,15 @@ var chipsContainerStyles = import_react28.css`
|
|
|
4956
5470
|
cursor: pointer;
|
|
4957
5471
|
}
|
|
4958
5472
|
`;
|
|
4959
|
-
var textAreaStyles =
|
|
5473
|
+
var textAreaStyles = import_react34.css`
|
|
4960
5474
|
min-height: 62px;
|
|
4961
5475
|
`;
|
|
4962
|
-
var inputWrapperStyles2 =
|
|
5476
|
+
var inputWrapperStyles2 = import_react34.css`
|
|
4963
5477
|
position: relative;
|
|
4964
5478
|
`;
|
|
4965
5479
|
|
|
4966
5480
|
// src/ListingChat/ListingChat.tsx
|
|
4967
|
-
var
|
|
5481
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
4968
5482
|
var ListingChat = ({
|
|
4969
5483
|
onSubmit,
|
|
4970
5484
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -4974,15 +5488,15 @@ var ListingChat = ({
|
|
|
4974
5488
|
disabled = false,
|
|
4975
5489
|
...rest
|
|
4976
5490
|
}) => {
|
|
4977
|
-
const [value, setValue] = (0,
|
|
4978
|
-
const handleSubmit = (0,
|
|
5491
|
+
const [value, setValue] = (0, import_react35.useState)("");
|
|
5492
|
+
const handleSubmit = (0, import_react35.useCallback)(() => {
|
|
4979
5493
|
const trimmed = value.trim();
|
|
4980
5494
|
if (!trimmed)
|
|
4981
5495
|
return;
|
|
4982
5496
|
onSubmit(trimmed);
|
|
4983
5497
|
setValue("");
|
|
4984
5498
|
}, [onSubmit, value]);
|
|
4985
|
-
const handleTagClick = (0,
|
|
5499
|
+
const handleTagClick = (0, import_react35.useCallback)(
|
|
4986
5500
|
(tag) => () => {
|
|
4987
5501
|
const trimmed = tag.trim();
|
|
4988
5502
|
if (!trimmed)
|
|
@@ -4991,18 +5505,18 @@ var ListingChat = ({
|
|
|
4991
5505
|
},
|
|
4992
5506
|
[onSubmit]
|
|
4993
5507
|
);
|
|
4994
|
-
return /* @__PURE__ */ (0,
|
|
4995
|
-
/* @__PURE__ */ (0,
|
|
4996
|
-
/* @__PURE__ */ (0,
|
|
4997
|
-
/* @__PURE__ */ (0,
|
|
4998
|
-
/* @__PURE__ */ (0,
|
|
5508
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
5509
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { css: headerStyles, children: [
|
|
5510
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { children: [
|
|
5511
|
+
/* @__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 }) }),
|
|
5512
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
4999
5513
|
] }),
|
|
5000
|
-
/* @__PURE__ */ (0,
|
|
5001
|
-
/* @__PURE__ */ (0,
|
|
5002
|
-
/* @__PURE__ */ (0,
|
|
5514
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
5515
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Icon_default, { variant: "AiMagic", size: 5 }),
|
|
5516
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
5003
5517
|
] })
|
|
5004
5518
|
] }),
|
|
5005
|
-
/* @__PURE__ */ (0,
|
|
5519
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5006
5520
|
TextArea,
|
|
5007
5521
|
{
|
|
5008
5522
|
rows: 1,
|
|
@@ -5017,14 +5531,14 @@ var ListingChat = ({
|
|
|
5017
5531
|
css: textAreaStyles
|
|
5018
5532
|
}
|
|
5019
5533
|
) }),
|
|
5020
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
5021
|
-
/* @__PURE__ */ (0,
|
|
5022
|
-
/* @__PURE__ */ (0,
|
|
5534
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(import_jsx_runtime218.Fragment, { children: [
|
|
5535
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
5536
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5023
5537
|
"button",
|
|
5024
5538
|
{
|
|
5025
5539
|
onClick: handleTagClick(tag),
|
|
5026
5540
|
disabled,
|
|
5027
|
-
children: /* @__PURE__ */ (0,
|
|
5541
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(TagChip_default, { children: tag })
|
|
5028
5542
|
},
|
|
5029
5543
|
tag
|
|
5030
5544
|
)) })
|
|
@@ -5034,11 +5548,11 @@ var ListingChat = ({
|
|
|
5034
5548
|
var ListingChat_default = ListingChat;
|
|
5035
5549
|
|
|
5036
5550
|
// src/Logo/Logo.tsx
|
|
5037
|
-
var
|
|
5551
|
+
var import_react36 = require("@emotion/react");
|
|
5038
5552
|
|
|
5039
5553
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
5040
|
-
var
|
|
5041
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
5554
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
5555
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
5042
5556
|
"svg",
|
|
5043
5557
|
{
|
|
5044
5558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5046,14 +5560,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5046
5560
|
fill: "none",
|
|
5047
5561
|
...props,
|
|
5048
5562
|
children: [
|
|
5049
|
-
/* @__PURE__ */ (0,
|
|
5563
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5050
5564
|
"path",
|
|
5051
5565
|
{
|
|
5052
5566
|
fill: "#000",
|
|
5053
5567
|
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
5568
|
}
|
|
5055
5569
|
) }),
|
|
5056
|
-
/* @__PURE__ */ (0,
|
|
5570
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5057
5571
|
"path",
|
|
5058
5572
|
{
|
|
5059
5573
|
fill: "#FAD44E",
|
|
@@ -5062,14 +5576,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5062
5576
|
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
5577
|
}
|
|
5064
5578
|
),
|
|
5065
|
-
/* @__PURE__ */ (0,
|
|
5579
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5066
5580
|
"path",
|
|
5067
5581
|
{
|
|
5068
5582
|
fill: "#fff",
|
|
5069
5583
|
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
5584
|
}
|
|
5071
5585
|
),
|
|
5072
|
-
/* @__PURE__ */ (0,
|
|
5586
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
5073
5587
|
"filter",
|
|
5074
5588
|
{
|
|
5075
5589
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -5080,8 +5594,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5080
5594
|
colorInterpolationFilters: "sRGB",
|
|
5081
5595
|
filterUnits: "userSpaceOnUse",
|
|
5082
5596
|
children: [
|
|
5083
|
-
/* @__PURE__ */ (0,
|
|
5084
|
-
/* @__PURE__ */ (0,
|
|
5597
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
5598
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5085
5599
|
"feColorMatrix",
|
|
5086
5600
|
{
|
|
5087
5601
|
in: "SourceAlpha",
|
|
@@ -5089,18 +5603,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5089
5603
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5090
5604
|
}
|
|
5091
5605
|
),
|
|
5092
|
-
/* @__PURE__ */ (0,
|
|
5093
|
-
/* @__PURE__ */ (0,
|
|
5094
|
-
/* @__PURE__ */ (0,
|
|
5095
|
-
/* @__PURE__ */ (0,
|
|
5096
|
-
/* @__PURE__ */ (0,
|
|
5606
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feOffset", { dy: 1 }),
|
|
5607
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
5608
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
5609
|
+
/* @__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" }),
|
|
5610
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5097
5611
|
"feBlend",
|
|
5098
5612
|
{
|
|
5099
5613
|
in2: "BackgroundImageFix",
|
|
5100
5614
|
result: "effect1_dropShadow_257_2540"
|
|
5101
5615
|
}
|
|
5102
5616
|
),
|
|
5103
|
-
/* @__PURE__ */ (0,
|
|
5617
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5104
5618
|
"feBlend",
|
|
5105
5619
|
{
|
|
5106
5620
|
in: "SourceGraphic",
|
|
@@ -5117,8 +5631,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime213.
|
|
|
5117
5631
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
5118
5632
|
|
|
5119
5633
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
5120
|
-
var
|
|
5121
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
5634
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5635
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
5122
5636
|
"svg",
|
|
5123
5637
|
{
|
|
5124
5638
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5126,14 +5640,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5126
5640
|
fill: "none",
|
|
5127
5641
|
...props,
|
|
5128
5642
|
children: [
|
|
5129
|
-
/* @__PURE__ */ (0,
|
|
5643
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5130
5644
|
"path",
|
|
5131
5645
|
{
|
|
5132
5646
|
fill: "#000",
|
|
5133
5647
|
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
5648
|
}
|
|
5135
5649
|
) }),
|
|
5136
|
-
/* @__PURE__ */ (0,
|
|
5650
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5137
5651
|
"path",
|
|
5138
5652
|
{
|
|
5139
5653
|
fill: "#FAD44E",
|
|
@@ -5142,14 +5656,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5142
5656
|
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
5657
|
}
|
|
5144
5658
|
),
|
|
5145
|
-
/* @__PURE__ */ (0,
|
|
5659
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5146
5660
|
"path",
|
|
5147
5661
|
{
|
|
5148
5662
|
fill: "#1A202C",
|
|
5149
5663
|
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
5664
|
}
|
|
5151
5665
|
),
|
|
5152
|
-
/* @__PURE__ */ (0,
|
|
5666
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
5153
5667
|
"filter",
|
|
5154
5668
|
{
|
|
5155
5669
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -5160,8 +5674,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5160
5674
|
colorInterpolationFilters: "sRGB",
|
|
5161
5675
|
filterUnits: "userSpaceOnUse",
|
|
5162
5676
|
children: [
|
|
5163
|
-
/* @__PURE__ */ (0,
|
|
5164
|
-
/* @__PURE__ */ (0,
|
|
5677
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
5678
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5165
5679
|
"feColorMatrix",
|
|
5166
5680
|
{
|
|
5167
5681
|
in: "SourceAlpha",
|
|
@@ -5169,18 +5683,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5169
5683
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
5170
5684
|
}
|
|
5171
5685
|
),
|
|
5172
|
-
/* @__PURE__ */ (0,
|
|
5173
|
-
/* @__PURE__ */ (0,
|
|
5174
|
-
/* @__PURE__ */ (0,
|
|
5175
|
-
/* @__PURE__ */ (0,
|
|
5176
|
-
/* @__PURE__ */ (0,
|
|
5686
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feOffset", { dy: 1 }),
|
|
5687
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
5688
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
5689
|
+
/* @__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" }),
|
|
5690
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5177
5691
|
"feBlend",
|
|
5178
5692
|
{
|
|
5179
5693
|
in2: "BackgroundImageFix",
|
|
5180
5694
|
result: "effect1_dropShadow_257_2538"
|
|
5181
5695
|
}
|
|
5182
5696
|
),
|
|
5183
|
-
/* @__PURE__ */ (0,
|
|
5697
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5184
5698
|
"feBlend",
|
|
5185
5699
|
{
|
|
5186
5700
|
in: "SourceGraphic",
|
|
@@ -5197,8 +5711,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime214
|
|
|
5197
5711
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
5198
5712
|
|
|
5199
5713
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
5200
|
-
var
|
|
5201
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
5714
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
5715
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)(
|
|
5202
5716
|
"svg",
|
|
5203
5717
|
{
|
|
5204
5718
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5206,14 +5720,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
5206
5720
|
fill: "none",
|
|
5207
5721
|
...props,
|
|
5208
5722
|
children: [
|
|
5209
|
-
/* @__PURE__ */ (0,
|
|
5723
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5210
5724
|
"path",
|
|
5211
5725
|
{
|
|
5212
5726
|
fill: "#E2430C",
|
|
5213
5727
|
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
5728
|
}
|
|
5215
5729
|
),
|
|
5216
|
-
/* @__PURE__ */ (0,
|
|
5730
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5217
5731
|
"path",
|
|
5218
5732
|
{
|
|
5219
5733
|
fill: "#fff",
|
|
@@ -5226,8 +5740,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
5226
5740
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
5227
5741
|
|
|
5228
5742
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
5229
|
-
var
|
|
5230
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
5743
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
5744
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
|
|
5231
5745
|
"svg",
|
|
5232
5746
|
{
|
|
5233
5747
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -5235,14 +5749,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
5235
5749
|
fill: "none",
|
|
5236
5750
|
...props,
|
|
5237
5751
|
children: [
|
|
5238
|
-
/* @__PURE__ */ (0,
|
|
5752
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
5239
5753
|
"path",
|
|
5240
5754
|
{
|
|
5241
5755
|
fill: "#E2430C",
|
|
5242
5756
|
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
5757
|
}
|
|
5244
5758
|
),
|
|
5245
|
-
/* @__PURE__ */ (0,
|
|
5759
|
+
/* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
5246
5760
|
"path",
|
|
5247
5761
|
{
|
|
5248
5762
|
fill: "#000",
|
|
@@ -5255,8 +5769,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
5255
5769
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
5256
5770
|
|
|
5257
5771
|
// src/Logo/Logo.tsx
|
|
5258
|
-
var
|
|
5259
|
-
var logoStyles = (size) =>
|
|
5772
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
5773
|
+
var logoStyles = (size) => import_react36.css`
|
|
5260
5774
|
width: ${space[size]};
|
|
5261
5775
|
height: auto;
|
|
5262
5776
|
display: block;
|
|
@@ -5284,72 +5798,18 @@ var Logo = ({
|
|
|
5284
5798
|
return LandtrustStandardLight_default;
|
|
5285
5799
|
};
|
|
5286
5800
|
const LogoComponent = getLogoComponent();
|
|
5287
|
-
return /* @__PURE__ */ (0,
|
|
5801
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
5288
5802
|
};
|
|
5289
5803
|
var Logo_default = Logo;
|
|
5290
5804
|
|
|
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
5805
|
// src/Navigation/Navigation.styles.ts
|
|
5346
|
-
var
|
|
5347
|
-
var navigationStyles =
|
|
5806
|
+
var import_react37 = require("@emotion/react");
|
|
5807
|
+
var navigationStyles = import_react37.css`
|
|
5348
5808
|
width: 100%;
|
|
5349
5809
|
background-color: white;
|
|
5350
5810
|
border-bottom: 1px solid #e5e5e5;
|
|
5351
5811
|
`;
|
|
5352
|
-
var hamburgerButtonStyles =
|
|
5812
|
+
var hamburgerButtonStyles = import_react37.css`
|
|
5353
5813
|
cursor: pointer;
|
|
5354
5814
|
&:focus {
|
|
5355
5815
|
outline: 2px solid #4f46e5;
|
|
@@ -5360,7 +5820,7 @@ var hamburgerButtonStyles = import_react32.css`
|
|
|
5360
5820
|
display: none;
|
|
5361
5821
|
}
|
|
5362
5822
|
`;
|
|
5363
|
-
var centeredLogoStyles =
|
|
5823
|
+
var centeredLogoStyles = import_react37.css`
|
|
5364
5824
|
transform: translate(-50%, -50%);
|
|
5365
5825
|
max-width: 150px;
|
|
5366
5826
|
|
|
@@ -5368,27 +5828,27 @@ var centeredLogoStyles = import_react32.css`
|
|
|
5368
5828
|
display: none;
|
|
5369
5829
|
}
|
|
5370
5830
|
`;
|
|
5371
|
-
var desktopLogoStyles =
|
|
5831
|
+
var desktopLogoStyles = import_react37.css`
|
|
5372
5832
|
display: none;
|
|
5373
5833
|
|
|
5374
5834
|
@media (min-width: 768px) {
|
|
5375
5835
|
display: block;
|
|
5376
5836
|
}
|
|
5377
5837
|
`;
|
|
5378
|
-
var
|
|
5838
|
+
var containerStyles3 = import_react37.css`
|
|
5379
5839
|
@media (min-width: 768px) {
|
|
5380
5840
|
justify-content: space-between;
|
|
5381
5841
|
position: static;
|
|
5382
5842
|
}
|
|
5383
5843
|
`;
|
|
5384
|
-
var logoStyles2 =
|
|
5844
|
+
var logoStyles2 = import_react37.css`
|
|
5385
5845
|
width: 100%;
|
|
5386
5846
|
|
|
5387
5847
|
@media (min-width: 768px) {
|
|
5388
5848
|
width: initial;
|
|
5389
5849
|
}
|
|
5390
5850
|
`;
|
|
5391
|
-
var desktopNavStyles =
|
|
5851
|
+
var desktopNavStyles = import_react37.css`
|
|
5392
5852
|
display: none;
|
|
5393
5853
|
|
|
5394
5854
|
@media (min-width: 768px) {
|
|
@@ -5397,7 +5857,7 @@ var desktopNavStyles = import_react32.css`
|
|
|
5397
5857
|
gap: 32px;
|
|
5398
5858
|
}
|
|
5399
5859
|
`;
|
|
5400
|
-
var navLinksStyles =
|
|
5860
|
+
var navLinksStyles = import_react37.css`
|
|
5401
5861
|
display: flex;
|
|
5402
5862
|
align-items: center;
|
|
5403
5863
|
gap: 24px;
|
|
@@ -5405,7 +5865,7 @@ var navLinksStyles = import_react32.css`
|
|
|
5405
5865
|
margin: 0;
|
|
5406
5866
|
padding: 0;
|
|
5407
5867
|
`;
|
|
5408
|
-
var navLinkStyles =
|
|
5868
|
+
var navLinkStyles = import_react37.css`
|
|
5409
5869
|
text-decoration: none;
|
|
5410
5870
|
color: #374151;
|
|
5411
5871
|
font-weight: 500;
|
|
@@ -5421,7 +5881,7 @@ var navLinkStyles = import_react32.css`
|
|
|
5421
5881
|
outline-offset: 2px;
|
|
5422
5882
|
}
|
|
5423
5883
|
`;
|
|
5424
|
-
var avatarPlaceholderStyles =
|
|
5884
|
+
var avatarPlaceholderStyles = import_react37.css`
|
|
5425
5885
|
width: 32px;
|
|
5426
5886
|
height: 32px;
|
|
5427
5887
|
border-radius: 50%;
|
|
@@ -5446,7 +5906,7 @@ var avatarPlaceholderStyles = import_react32.css`
|
|
|
5446
5906
|
`;
|
|
5447
5907
|
|
|
5448
5908
|
// src/Navigation/Navigation.tsx
|
|
5449
|
-
var
|
|
5909
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
5450
5910
|
var Navigation = ({
|
|
5451
5911
|
onMenuToggle,
|
|
5452
5912
|
className,
|
|
@@ -5460,16 +5920,16 @@ var Navigation = ({
|
|
|
5460
5920
|
onAvatarClick,
|
|
5461
5921
|
...rest
|
|
5462
5922
|
}) => {
|
|
5463
|
-
return /* @__PURE__ */ (0,
|
|
5923
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(
|
|
5464
5924
|
Box_default,
|
|
5465
5925
|
{
|
|
5466
5926
|
display: "flex",
|
|
5467
5927
|
alignItems: "center",
|
|
5468
5928
|
padding: space[4],
|
|
5469
5929
|
position: "relative",
|
|
5470
|
-
css:
|
|
5930
|
+
css: containerStyles3,
|
|
5471
5931
|
children: [
|
|
5472
|
-
/* @__PURE__ */ (0,
|
|
5932
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5473
5933
|
Box_default,
|
|
5474
5934
|
{
|
|
5475
5935
|
as: "button",
|
|
@@ -5481,11 +5941,11 @@ var Navigation = ({
|
|
|
5481
5941
|
border: "none",
|
|
5482
5942
|
padding: space[2],
|
|
5483
5943
|
css: hamburgerButtonStyles,
|
|
5484
|
-
children: /* @__PURE__ */ (0,
|
|
5944
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Icon_default, { variant: "Bars", size: 6 })
|
|
5485
5945
|
}
|
|
5486
5946
|
),
|
|
5487
|
-
/* @__PURE__ */ (0,
|
|
5488
|
-
/* @__PURE__ */ (0,
|
|
5947
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
5948
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5489
5949
|
Logo_default,
|
|
5490
5950
|
{
|
|
5491
5951
|
variant: logoVariant,
|
|
@@ -5494,8 +5954,8 @@ var Navigation = ({
|
|
|
5494
5954
|
css: logoStyles2
|
|
5495
5955
|
}
|
|
5496
5956
|
) }),
|
|
5497
|
-
/* @__PURE__ */ (0,
|
|
5498
|
-
/* @__PURE__ */ (0,
|
|
5957
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
5958
|
+
/* @__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
5959
|
"a",
|
|
5500
5960
|
{
|
|
5501
5961
|
href: link.href,
|
|
@@ -5504,7 +5964,7 @@ var Navigation = ({
|
|
|
5504
5964
|
children: link.label
|
|
5505
5965
|
}
|
|
5506
5966
|
) }, link.href)) }) }),
|
|
5507
|
-
/* @__PURE__ */ (0,
|
|
5967
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5508
5968
|
Box_default,
|
|
5509
5969
|
{
|
|
5510
5970
|
as: "button",
|
|
@@ -5523,8 +5983,8 @@ var Navigation = ({
|
|
|
5523
5983
|
var Navigation_default = Navigation;
|
|
5524
5984
|
|
|
5525
5985
|
// src/PackageCard/PackageCard.styles.ts
|
|
5526
|
-
var
|
|
5527
|
-
var cardContainerStyles3 =
|
|
5986
|
+
var import_react38 = require("@emotion/react");
|
|
5987
|
+
var cardContainerStyles3 = import_react38.css`
|
|
5528
5988
|
color: var(--text-primary);
|
|
5529
5989
|
position: relative;
|
|
5530
5990
|
width: 100%;
|
|
@@ -5541,14 +6001,14 @@ var cardContainerStyles3 = import_react33.css`
|
|
|
5541
6001
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
5542
6002
|
}
|
|
5543
6003
|
`;
|
|
5544
|
-
var imageContainerStyles =
|
|
6004
|
+
var imageContainerStyles = import_react38.css`
|
|
5545
6005
|
position: relative;
|
|
5546
6006
|
width: 100%;
|
|
5547
6007
|
height: 200px;
|
|
5548
6008
|
overflow: hidden;
|
|
5549
6009
|
border-radius: var(--spacing-4);
|
|
5550
6010
|
`;
|
|
5551
|
-
var imageStyles =
|
|
6011
|
+
var imageStyles = import_react38.css`
|
|
5552
6012
|
width: 100%;
|
|
5553
6013
|
height: 100%;
|
|
5554
6014
|
background-size: cover;
|
|
@@ -5556,13 +6016,13 @@ var imageStyles = import_react33.css`
|
|
|
5556
6016
|
background-repeat: no-repeat;
|
|
5557
6017
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
5558
6018
|
`;
|
|
5559
|
-
var badgeStyles =
|
|
6019
|
+
var badgeStyles = import_react38.css`
|
|
5560
6020
|
position: absolute;
|
|
5561
6021
|
top: var(--spacing-3);
|
|
5562
6022
|
left: var(--spacing-3);
|
|
5563
6023
|
z-index: 2;
|
|
5564
6024
|
`;
|
|
5565
|
-
var heartIconStyles =
|
|
6025
|
+
var heartIconStyles = import_react38.css`
|
|
5566
6026
|
position: absolute;
|
|
5567
6027
|
top: var(--spacing-3);
|
|
5568
6028
|
right: var(--spacing-3);
|
|
@@ -5584,12 +6044,12 @@ var heartIconStyles = import_react33.css`
|
|
|
5584
6044
|
transform: scale(1.1);
|
|
5585
6045
|
}
|
|
5586
6046
|
`;
|
|
5587
|
-
var contentStyles2 =
|
|
6047
|
+
var contentStyles2 = import_react38.css`
|
|
5588
6048
|
padding: var(--spacing-3);
|
|
5589
6049
|
`;
|
|
5590
6050
|
|
|
5591
6051
|
// src/PackageCard/PackageCard.tsx
|
|
5592
|
-
var
|
|
6052
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
5593
6053
|
var PackageCard = ({
|
|
5594
6054
|
images,
|
|
5595
6055
|
title,
|
|
@@ -5606,13 +6066,13 @@ var PackageCard = ({
|
|
|
5606
6066
|
...rest
|
|
5607
6067
|
}) => {
|
|
5608
6068
|
const mainImage = images[0] || "";
|
|
5609
|
-
return /* @__PURE__ */ (0,
|
|
5610
|
-
/* @__PURE__ */ (0,
|
|
5611
|
-
tripsLeft && /* @__PURE__ */ (0,
|
|
6069
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: cardContainerStyles3, className, ...rest, children: [
|
|
6070
|
+
/* @__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: [
|
|
6071
|
+
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(AvailabilityChip_default, { variant: "warning", css: badgeStyles, children: [
|
|
5612
6072
|
tripsLeft,
|
|
5613
6073
|
" Trips Left"
|
|
5614
6074
|
] }),
|
|
5615
|
-
/* @__PURE__ */ (0,
|
|
6075
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5616
6076
|
Box_default,
|
|
5617
6077
|
{
|
|
5618
6078
|
css: heartIconStyles,
|
|
@@ -5620,12 +6080,12 @@ var PackageCard = ({
|
|
|
5620
6080
|
e.stopPropagation();
|
|
5621
6081
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
5622
6082
|
},
|
|
5623
|
-
children: /* @__PURE__ */ (0,
|
|
6083
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Icon_default, { variant: isFavorited ? "HeartSolid" : "Heart", size: 5 })
|
|
5624
6084
|
}
|
|
5625
6085
|
)
|
|
5626
6086
|
] }) }),
|
|
5627
|
-
/* @__PURE__ */ (0,
|
|
5628
|
-
/* @__PURE__ */ (0,
|
|
6087
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
6088
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
|
|
5629
6089
|
Box_default,
|
|
5630
6090
|
{
|
|
5631
6091
|
onClick,
|
|
@@ -5634,9 +6094,9 @@ var PackageCard = ({
|
|
|
5634
6094
|
gap: "var(--spacing-1)",
|
|
5635
6095
|
mb: "var(--spacing-4)",
|
|
5636
6096
|
children: [
|
|
5637
|
-
/* @__PURE__ */ (0,
|
|
5638
|
-
/* @__PURE__ */ (0,
|
|
5639
|
-
/* @__PURE__ */ (0,
|
|
6097
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
6098
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { size: "xs", fontWeight: "bold", children: subtitle }) }),
|
|
6099
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Text_default, { size: "xs", fontWeight: "normal", children: [
|
|
5640
6100
|
"Starting Price ",
|
|
5641
6101
|
startingPrice,
|
|
5642
6102
|
" / Guest"
|
|
@@ -5644,261 +6104,34 @@ var PackageCard = ({
|
|
|
5644
6104
|
]
|
|
5645
6105
|
}
|
|
5646
6106
|
),
|
|
5647
|
-
/* @__PURE__ */ (0,
|
|
5648
|
-
days && /* @__PURE__ */ (0,
|
|
6107
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(Box_default, { display: "flex", gap: "var(--spacing-3)", alignItems: "center", children: [
|
|
6108
|
+
days && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5649
6109
|
IconLabel_default,
|
|
5650
6110
|
{
|
|
5651
6111
|
variant: "Calendar",
|
|
5652
6112
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
5653
6113
|
}
|
|
5654
6114
|
),
|
|
5655
|
-
guests && /* @__PURE__ */ (0,
|
|
6115
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5656
6116
|
IconLabel_default,
|
|
5657
6117
|
{
|
|
5658
6118
|
variant: "User",
|
|
5659
6119
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
5660
6120
|
}
|
|
5661
6121
|
),
|
|
5662
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
6122
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
5663
6123
|
] })
|
|
5664
6124
|
] })
|
|
5665
6125
|
] });
|
|
5666
6126
|
};
|
|
5667
6127
|
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
6128
|
// Annotate the CommonJS export names for ESM import in node:
|
|
5897
6129
|
0 && (module.exports = {
|
|
5898
6130
|
AIResponse,
|
|
5899
6131
|
AvailabilityChip,
|
|
5900
6132
|
Box,
|
|
5901
6133
|
Button,
|
|
6134
|
+
ChatWidget,
|
|
5902
6135
|
Column,
|
|
5903
6136
|
Container,
|
|
5904
6137
|
Divider,
|
|
@@ -5919,6 +6152,7 @@ var Widget_default = Widget;
|
|
|
5919
6152
|
Navigation,
|
|
5920
6153
|
PackageCard,
|
|
5921
6154
|
Select,
|
|
6155
|
+
Spinner,
|
|
5922
6156
|
TagChip,
|
|
5923
6157
|
Text,
|
|
5924
6158
|
TextArea,
|