@landtrustinc/design-system 1.2.27 → 1.2.29-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +295 -213
- package/dist/index.js +1237 -726
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,6 +31,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
31
31
|
var src_exports = {};
|
|
32
32
|
__export(src_exports, {
|
|
33
33
|
AIResponse: () => AIResponse_default,
|
|
34
|
+
ActionMenu: () => ActionMenu_default,
|
|
34
35
|
AvailabilityBadge: () => AvailabilityBadge_default,
|
|
35
36
|
Avatar: () => Avatar_default,
|
|
36
37
|
Box: () => Box_default,
|
|
@@ -75,6 +76,7 @@ __export(src_exports, {
|
|
|
75
76
|
Text: () => Text_default,
|
|
76
77
|
TextArea: () => TextArea,
|
|
77
78
|
ThemeTokens: () => ThemeTokens,
|
|
79
|
+
Tooltip: () => Tooltip_default,
|
|
78
80
|
TopMatchingFieldNote: () => TopMatchingFieldNote,
|
|
79
81
|
TopMatchingReview: () => TopMatchingReview,
|
|
80
82
|
UserCard: () => UserCard_default,
|
|
@@ -539,36 +541,9 @@ var GlobalStyle = import_react.css`
|
|
|
539
541
|
${globalStyles}
|
|
540
542
|
`;
|
|
541
543
|
|
|
542
|
-
// src/
|
|
543
|
-
var
|
|
544
|
-
|
|
545
|
-
// src/Box/Box.tsx
|
|
546
|
-
var import_styled = __toESM(require("@emotion/styled"));
|
|
547
|
-
var import_styled_system = require("styled-system");
|
|
548
|
-
var gap = (0, import_styled_system.system)({
|
|
549
|
-
gap: {
|
|
550
|
-
property: "gap",
|
|
551
|
-
scale: "space"
|
|
552
|
-
}
|
|
553
|
-
});
|
|
554
|
-
var Box = import_styled.default.div`
|
|
555
|
-
${import_styled_system.position}
|
|
556
|
-
${import_styled_system.color};
|
|
557
|
-
${import_styled_system.typography};
|
|
558
|
-
${import_styled_system.space};
|
|
559
|
-
${import_styled_system.width};
|
|
560
|
-
${import_styled_system.layout}
|
|
561
|
-
${import_styled_system.flexbox};
|
|
562
|
-
${import_styled_system.grid};
|
|
563
|
-
${gap};
|
|
564
|
-
${import_styled_system.border};
|
|
565
|
-
`;
|
|
566
|
-
var Box_default = Box;
|
|
567
|
-
|
|
568
|
-
// src/Button/Button.tsx
|
|
569
|
-
var import_react5 = require("@emotion/react");
|
|
570
|
-
var import_lodash = require("lodash");
|
|
571
|
-
var import_react6 = __toESM(require("react"));
|
|
544
|
+
// src/ActionMenu/ActionMenu.tsx
|
|
545
|
+
var import_react6 = require("react");
|
|
546
|
+
var import_react_dom2 = require("react-dom");
|
|
572
547
|
|
|
573
548
|
// src/Icon/Icon.tsx
|
|
574
549
|
var import_react2 = require("@emotion/react");
|
|
@@ -3402,9 +3377,518 @@ var Icon = ({
|
|
|
3402
3377
|
};
|
|
3403
3378
|
var Icon_default = Icon;
|
|
3404
3379
|
|
|
3405
|
-
// src/
|
|
3380
|
+
// src/Tooltip/Tooltip.tsx
|
|
3381
|
+
var import_react4 = require("react");
|
|
3382
|
+
var import_react_dom = require("react-dom");
|
|
3383
|
+
|
|
3384
|
+
// src/Tooltip/Tooltip.styles.ts
|
|
3406
3385
|
var import_react3 = require("@emotion/react");
|
|
3407
|
-
var
|
|
3386
|
+
var tooltipContainerStyles = import_react3.css`
|
|
3387
|
+
position: relative;
|
|
3388
|
+
display: inline-block;
|
|
3389
|
+
`;
|
|
3390
|
+
var tooltipContentStyles = import_react3.css`
|
|
3391
|
+
background: var(--color-base-black);
|
|
3392
|
+
color: var(--color-base-white);
|
|
3393
|
+
padding: var(--spacing-2) var(--spacing-3);
|
|
3394
|
+
border-radius: var(--spacing-1);
|
|
3395
|
+
font-size: var(--font-size-sm);
|
|
3396
|
+
white-space: nowrap;
|
|
3397
|
+
z-index: 1000;
|
|
3398
|
+
pointer-events: none;
|
|
3399
|
+
opacity: 0;
|
|
3400
|
+
transition: opacity 0.2s ease-in-out;
|
|
3401
|
+
|
|
3402
|
+
&[data-visible='true'] {
|
|
3403
|
+
opacity: 1;
|
|
3404
|
+
}
|
|
3405
|
+
|
|
3406
|
+
/* Arrow */
|
|
3407
|
+
&::after {
|
|
3408
|
+
content: '';
|
|
3409
|
+
position: absolute;
|
|
3410
|
+
border-style: solid;
|
|
3411
|
+
}
|
|
3412
|
+
|
|
3413
|
+
/* Arrow positioning for each position */
|
|
3414
|
+
&[data-position='top']::after {
|
|
3415
|
+
top: 100%;
|
|
3416
|
+
left: 50%;
|
|
3417
|
+
transform: translateX(-50%);
|
|
3418
|
+
border-width: 6px 6px 0 6px;
|
|
3419
|
+
border-color: var(--color-base-black) transparent transparent transparent;
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
&[data-position='bottom']::after {
|
|
3423
|
+
bottom: 100%;
|
|
3424
|
+
left: 50%;
|
|
3425
|
+
transform: translateX(-50%);
|
|
3426
|
+
border-width: 0 6px 6px 6px;
|
|
3427
|
+
border-color: transparent transparent var(--color-base-black) transparent;
|
|
3428
|
+
}
|
|
3429
|
+
|
|
3430
|
+
&[data-position='left']::after {
|
|
3431
|
+
left: 100%;
|
|
3432
|
+
top: 50%;
|
|
3433
|
+
transform: translateY(-50%);
|
|
3434
|
+
border-width: 6px 0 6px 6px;
|
|
3435
|
+
border-color: transparent transparent transparent var(--color-base-black);
|
|
3436
|
+
}
|
|
3437
|
+
|
|
3438
|
+
&[data-position='right']::after {
|
|
3439
|
+
right: 100%;
|
|
3440
|
+
top: 50%;
|
|
3441
|
+
transform: translateY(-50%);
|
|
3442
|
+
border-width: 6px 6px 6px 0;
|
|
3443
|
+
border-color: transparent var(--color-base-black) transparent transparent;
|
|
3444
|
+
}
|
|
3445
|
+
`;
|
|
3446
|
+
var positionStyles = {
|
|
3447
|
+
top: import_react3.css`
|
|
3448
|
+
bottom: calc(100% + var(--spacing-2));
|
|
3449
|
+
left: 50%;
|
|
3450
|
+
transform: translateX(-50%);
|
|
3451
|
+
|
|
3452
|
+
&::after {
|
|
3453
|
+
top: 100%;
|
|
3454
|
+
left: 50%;
|
|
3455
|
+
transform: translateX(-50%);
|
|
3456
|
+
border-width: 6px 6px 0 6px;
|
|
3457
|
+
border-color: var(--color-base-black) transparent transparent transparent;
|
|
3458
|
+
}
|
|
3459
|
+
`,
|
|
3460
|
+
bottom: import_react3.css`
|
|
3461
|
+
top: calc(100% + var(--spacing-2));
|
|
3462
|
+
left: 50%;
|
|
3463
|
+
transform: translateX(-50%);
|
|
3464
|
+
|
|
3465
|
+
&::after {
|
|
3466
|
+
bottom: 100%;
|
|
3467
|
+
left: 50%;
|
|
3468
|
+
transform: translateX(-50%);
|
|
3469
|
+
border-width: 0 6px 6px 6px;
|
|
3470
|
+
border-color: transparent transparent var(--color-base-black) transparent;
|
|
3471
|
+
}
|
|
3472
|
+
`,
|
|
3473
|
+
left: import_react3.css`
|
|
3474
|
+
right: calc(100% + var(--spacing-2));
|
|
3475
|
+
top: 50%;
|
|
3476
|
+
transform: translateY(-50%);
|
|
3477
|
+
|
|
3478
|
+
&::after {
|
|
3479
|
+
left: 100%;
|
|
3480
|
+
top: 50%;
|
|
3481
|
+
transform: translateY(-50%);
|
|
3482
|
+
border-width: 6px 0 6px 6px;
|
|
3483
|
+
border-color: transparent transparent transparent var(--color-base-black);
|
|
3484
|
+
}
|
|
3485
|
+
`,
|
|
3486
|
+
right: import_react3.css`
|
|
3487
|
+
left: calc(100% + var(--spacing-2));
|
|
3488
|
+
top: 50%;
|
|
3489
|
+
transform: translateY(-50%);
|
|
3490
|
+
|
|
3491
|
+
&::after {
|
|
3492
|
+
right: 100%;
|
|
3493
|
+
top: 50%;
|
|
3494
|
+
transform: translateY(-50%);
|
|
3495
|
+
border-width: 6px 6px 6px 0;
|
|
3496
|
+
border-color: transparent var(--color-base-black) transparent transparent;
|
|
3497
|
+
}
|
|
3498
|
+
`
|
|
3499
|
+
};
|
|
3500
|
+
|
|
3501
|
+
// src/Tooltip/Tooltip.tsx
|
|
3502
|
+
var import_jsx_runtime207 = require("@emotion/react/jsx-runtime");
|
|
3503
|
+
var Tooltip = ({
|
|
3504
|
+
content,
|
|
3505
|
+
position: position2 = "top",
|
|
3506
|
+
children,
|
|
3507
|
+
className,
|
|
3508
|
+
delay = 200
|
|
3509
|
+
}) => {
|
|
3510
|
+
const [isVisible, setIsVisible] = (0, import_react4.useState)(false);
|
|
3511
|
+
const [timeoutId, setTimeoutId] = (0, import_react4.useState)(null);
|
|
3512
|
+
const [tooltipPosition, setTooltipPosition] = (0, import_react4.useState)({ top: 0, left: 0 });
|
|
3513
|
+
const containerRef = (0, import_react4.useRef)(null);
|
|
3514
|
+
const tooltipRef = (0, import_react4.useRef)(null);
|
|
3515
|
+
const handleMouseEnter = () => {
|
|
3516
|
+
const id = setTimeout(() => {
|
|
3517
|
+
setIsVisible(true);
|
|
3518
|
+
}, delay);
|
|
3519
|
+
setTimeoutId(id);
|
|
3520
|
+
};
|
|
3521
|
+
const handleMouseLeave = () => {
|
|
3522
|
+
if (timeoutId) {
|
|
3523
|
+
clearTimeout(timeoutId);
|
|
3524
|
+
setTimeoutId(null);
|
|
3525
|
+
}
|
|
3526
|
+
setIsVisible(false);
|
|
3527
|
+
};
|
|
3528
|
+
(0, import_react4.useEffect)(() => {
|
|
3529
|
+
const updatePosition = () => {
|
|
3530
|
+
if (containerRef.current && tooltipRef.current && isVisible) {
|
|
3531
|
+
const containerRect = containerRef.current.getBoundingClientRect();
|
|
3532
|
+
const tooltipRect = tooltipRef.current.getBoundingClientRect();
|
|
3533
|
+
let top = 0;
|
|
3534
|
+
let left = 0;
|
|
3535
|
+
switch (position2) {
|
|
3536
|
+
case "top":
|
|
3537
|
+
top = containerRect.top - tooltipRect.height - 8;
|
|
3538
|
+
left = containerRect.left + containerRect.width / 2 - tooltipRect.width / 2;
|
|
3539
|
+
break;
|
|
3540
|
+
case "bottom":
|
|
3541
|
+
top = containerRect.bottom + 8;
|
|
3542
|
+
left = containerRect.left + containerRect.width / 2 - tooltipRect.width / 2;
|
|
3543
|
+
break;
|
|
3544
|
+
case "left":
|
|
3545
|
+
top = containerRect.top + containerRect.height / 2 - tooltipRect.height / 2;
|
|
3546
|
+
left = containerRect.left - tooltipRect.width - 8;
|
|
3547
|
+
break;
|
|
3548
|
+
case "right":
|
|
3549
|
+
top = containerRect.top + containerRect.height / 2 - tooltipRect.height / 2;
|
|
3550
|
+
left = containerRect.right + 8;
|
|
3551
|
+
break;
|
|
3552
|
+
}
|
|
3553
|
+
setTooltipPosition({ top, left });
|
|
3554
|
+
}
|
|
3555
|
+
};
|
|
3556
|
+
if (isVisible) {
|
|
3557
|
+
updatePosition();
|
|
3558
|
+
window.addEventListener("scroll", updatePosition, true);
|
|
3559
|
+
window.addEventListener("resize", updatePosition);
|
|
3560
|
+
}
|
|
3561
|
+
return () => {
|
|
3562
|
+
window.removeEventListener("scroll", updatePosition, true);
|
|
3563
|
+
window.removeEventListener("resize", updatePosition);
|
|
3564
|
+
};
|
|
3565
|
+
}, [isVisible, position2]);
|
|
3566
|
+
const tooltipContent = /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
3567
|
+
"div",
|
|
3568
|
+
{
|
|
3569
|
+
ref: tooltipRef,
|
|
3570
|
+
css: tooltipContentStyles,
|
|
3571
|
+
style: {
|
|
3572
|
+
position: "fixed",
|
|
3573
|
+
top: `${tooltipPosition.top}px`,
|
|
3574
|
+
left: `${tooltipPosition.left}px`
|
|
3575
|
+
},
|
|
3576
|
+
"data-visible": isVisible,
|
|
3577
|
+
"data-position": position2,
|
|
3578
|
+
role: "tooltip",
|
|
3579
|
+
"aria-hidden": !isVisible,
|
|
3580
|
+
children: content
|
|
3581
|
+
}
|
|
3582
|
+
);
|
|
3583
|
+
return /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(import_jsx_runtime207.Fragment, { children: [
|
|
3584
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
3585
|
+
"div",
|
|
3586
|
+
{
|
|
3587
|
+
ref: containerRef,
|
|
3588
|
+
css: tooltipContainerStyles,
|
|
3589
|
+
className,
|
|
3590
|
+
onMouseEnter: handleMouseEnter,
|
|
3591
|
+
onMouseLeave: handleMouseLeave,
|
|
3592
|
+
children
|
|
3593
|
+
}
|
|
3594
|
+
),
|
|
3595
|
+
typeof document !== "undefined" && (0, import_react_dom.createPortal)(tooltipContent, document.body)
|
|
3596
|
+
] });
|
|
3597
|
+
};
|
|
3598
|
+
Tooltip.displayName = "Tooltip";
|
|
3599
|
+
var Tooltip_default = Tooltip;
|
|
3600
|
+
|
|
3601
|
+
// src/ActionMenu/ActionMenu.styles.ts
|
|
3602
|
+
var import_react5 = require("@emotion/react");
|
|
3603
|
+
var actionMenuContainerStyles = import_react5.css`
|
|
3604
|
+
display: inline-block;
|
|
3605
|
+
`;
|
|
3606
|
+
var triggerButtonStyles = import_react5.css`
|
|
3607
|
+
background: var(--color-base-white);
|
|
3608
|
+
border: none;
|
|
3609
|
+
border-radius: 50%;
|
|
3610
|
+
width: 32px;
|
|
3611
|
+
height: 32px;
|
|
3612
|
+
display: flex;
|
|
3613
|
+
align-items: center;
|
|
3614
|
+
justify-content: center;
|
|
3615
|
+
cursor: pointer;
|
|
3616
|
+
padding: 0;
|
|
3617
|
+
transition: background-color 0.2s ease-in-out;
|
|
3618
|
+
|
|
3619
|
+
&:hover {
|
|
3620
|
+
background: var(--color-neutral-100);
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
&:focus {
|
|
3624
|
+
outline: 2px solid var(--color-brand-primary);
|
|
3625
|
+
outline-offset: 2px;
|
|
3626
|
+
}
|
|
3627
|
+
`;
|
|
3628
|
+
var menuDropdownStyles = import_react5.css`
|
|
3629
|
+
background: var(--color-base-white);
|
|
3630
|
+
border: 1px solid var(--color-neutral-200);
|
|
3631
|
+
border-radius: var(--spacing-2);
|
|
3632
|
+
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
|
|
3633
|
+
min-width: 160px;
|
|
3634
|
+
z-index: 9999;
|
|
3635
|
+
opacity: 0;
|
|
3636
|
+
visibility: hidden;
|
|
3637
|
+
transform: translateY(-8px);
|
|
3638
|
+
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out,
|
|
3639
|
+
visibility 0.2s;
|
|
3640
|
+
|
|
3641
|
+
&[data-visible='true'] {
|
|
3642
|
+
opacity: 1;
|
|
3643
|
+
visibility: visible;
|
|
3644
|
+
transform: translateY(0);
|
|
3645
|
+
}
|
|
3646
|
+
`;
|
|
3647
|
+
var menuItemStyles = import_react5.css`
|
|
3648
|
+
display: flex;
|
|
3649
|
+
align-items: center;
|
|
3650
|
+
gap: var(--spacing-2);
|
|
3651
|
+
padding: var(--spacing-3) var(--spacing-4);
|
|
3652
|
+
border: none;
|
|
3653
|
+
background: transparent;
|
|
3654
|
+
width: 100%;
|
|
3655
|
+
text-align: left;
|
|
3656
|
+
cursor: pointer;
|
|
3657
|
+
font-size: var(--font-size-sm);
|
|
3658
|
+
color: var(--color-text-primary);
|
|
3659
|
+
transition: background-color 0.15s ease-in-out;
|
|
3660
|
+
|
|
3661
|
+
&:first-of-type {
|
|
3662
|
+
border-radius: var(--spacing-2) var(--spacing-2) 0 0;
|
|
3663
|
+
}
|
|
3664
|
+
|
|
3665
|
+
&:last-of-type {
|
|
3666
|
+
border-radius: 0 0 var(--spacing-2) var(--spacing-2);
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
&:only-of-type {
|
|
3670
|
+
border-radius: var(--spacing-2);
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3673
|
+
&:hover {
|
|
3674
|
+
background: var(--color-neutral-50);
|
|
3675
|
+
}
|
|
3676
|
+
|
|
3677
|
+
&:focus {
|
|
3678
|
+
outline: 2px solid var(--color-brand-primary);
|
|
3679
|
+
outline-offset: -2px;
|
|
3680
|
+
}
|
|
3681
|
+
|
|
3682
|
+
&[data-danger='true'] {
|
|
3683
|
+
color: var(--color-error-500);
|
|
3684
|
+
|
|
3685
|
+
&:hover {
|
|
3686
|
+
background: var(--color-error-50);
|
|
3687
|
+
}
|
|
3688
|
+
}
|
|
3689
|
+
|
|
3690
|
+
&:disabled {
|
|
3691
|
+
opacity: 0.5;
|
|
3692
|
+
cursor: not-allowed;
|
|
3693
|
+
|
|
3694
|
+
&:hover {
|
|
3695
|
+
background: transparent;
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3698
|
+
`;
|
|
3699
|
+
var menuDividerStyles = import_react5.css`
|
|
3700
|
+
height: 1px;
|
|
3701
|
+
background: var(--color-neutral-200);
|
|
3702
|
+
margin: var(--spacing-1) 0;
|
|
3703
|
+
`;
|
|
3704
|
+
|
|
3705
|
+
// src/ActionMenu/ActionMenu.tsx
|
|
3706
|
+
var import_jsx_runtime208 = require("@emotion/react/jsx-runtime");
|
|
3707
|
+
var ActionMenu = ({
|
|
3708
|
+
actions,
|
|
3709
|
+
triggerTooltip = "",
|
|
3710
|
+
className,
|
|
3711
|
+
ariaLabel = "Open actions menu"
|
|
3712
|
+
}) => {
|
|
3713
|
+
const [isOpen, setIsOpen] = (0, import_react6.useState)(false);
|
|
3714
|
+
const [menuPosition, setMenuPosition] = (0, import_react6.useState)({ top: 0, left: 0 });
|
|
3715
|
+
const menuRef = (0, import_react6.useRef)(null);
|
|
3716
|
+
const buttonRef = (0, import_react6.useRef)(null);
|
|
3717
|
+
const wrapperRef = (0, import_react6.useRef)(null);
|
|
3718
|
+
(0, import_react6.useEffect)(() => {
|
|
3719
|
+
const updatePosition = () => {
|
|
3720
|
+
var _a;
|
|
3721
|
+
if (wrapperRef.current && isOpen) {
|
|
3722
|
+
const wrapperRect = wrapperRef.current.getBoundingClientRect();
|
|
3723
|
+
const menuWidth = ((_a = menuRef.current) == null ? void 0 : _a.offsetWidth) || 160;
|
|
3724
|
+
setMenuPosition({
|
|
3725
|
+
top: wrapperRect.bottom + 4,
|
|
3726
|
+
left: wrapperRect.right - menuWidth
|
|
3727
|
+
});
|
|
3728
|
+
}
|
|
3729
|
+
};
|
|
3730
|
+
if (isOpen) {
|
|
3731
|
+
updatePosition();
|
|
3732
|
+
window.addEventListener("scroll", updatePosition, true);
|
|
3733
|
+
window.addEventListener("resize", updatePosition);
|
|
3734
|
+
}
|
|
3735
|
+
return () => {
|
|
3736
|
+
window.removeEventListener("scroll", updatePosition, true);
|
|
3737
|
+
window.removeEventListener("resize", updatePosition);
|
|
3738
|
+
};
|
|
3739
|
+
}, [isOpen]);
|
|
3740
|
+
(0, import_react6.useEffect)(() => {
|
|
3741
|
+
const handleClickOutside = (event) => {
|
|
3742
|
+
if (menuRef.current && !menuRef.current.contains(event.target) && buttonRef.current && !buttonRef.current.contains(event.target)) {
|
|
3743
|
+
setIsOpen(false);
|
|
3744
|
+
}
|
|
3745
|
+
};
|
|
3746
|
+
const handleEscape = (event) => {
|
|
3747
|
+
var _a;
|
|
3748
|
+
if (event.key === "Escape") {
|
|
3749
|
+
setIsOpen(false);
|
|
3750
|
+
(_a = buttonRef.current) == null ? void 0 : _a.focus();
|
|
3751
|
+
}
|
|
3752
|
+
};
|
|
3753
|
+
if (isOpen) {
|
|
3754
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
3755
|
+
document.addEventListener("keydown", handleEscape);
|
|
3756
|
+
}
|
|
3757
|
+
return () => {
|
|
3758
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
3759
|
+
document.removeEventListener("keydown", handleEscape);
|
|
3760
|
+
};
|
|
3761
|
+
}, [isOpen]);
|
|
3762
|
+
const handleToggle = (e) => {
|
|
3763
|
+
e.preventDefault();
|
|
3764
|
+
e.stopPropagation();
|
|
3765
|
+
setIsOpen(!isOpen);
|
|
3766
|
+
};
|
|
3767
|
+
const handleActionClick = (action, e) => {
|
|
3768
|
+
e.preventDefault();
|
|
3769
|
+
e.stopPropagation();
|
|
3770
|
+
if (!action.disabled) {
|
|
3771
|
+
action.onClick();
|
|
3772
|
+
setIsOpen(false);
|
|
3773
|
+
}
|
|
3774
|
+
};
|
|
3775
|
+
const menuContent = /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
3776
|
+
"div",
|
|
3777
|
+
{
|
|
3778
|
+
ref: menuRef,
|
|
3779
|
+
css: menuDropdownStyles,
|
|
3780
|
+
style: {
|
|
3781
|
+
position: "fixed",
|
|
3782
|
+
top: `${menuPosition.top}px`,
|
|
3783
|
+
left: `${menuPosition.left}px`
|
|
3784
|
+
},
|
|
3785
|
+
"data-visible": isOpen,
|
|
3786
|
+
role: "menu",
|
|
3787
|
+
"aria-hidden": !isOpen,
|
|
3788
|
+
children: actions.map((item, index) => {
|
|
3789
|
+
if (item === "divider") {
|
|
3790
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
3791
|
+
"div",
|
|
3792
|
+
{
|
|
3793
|
+
css: menuDividerStyles,
|
|
3794
|
+
role: "separator"
|
|
3795
|
+
},
|
|
3796
|
+
`divider-${index}`
|
|
3797
|
+
);
|
|
3798
|
+
}
|
|
3799
|
+
const button2 = /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(
|
|
3800
|
+
"button",
|
|
3801
|
+
{
|
|
3802
|
+
css: menuItemStyles,
|
|
3803
|
+
onClick: (e) => handleActionClick(item, e),
|
|
3804
|
+
"data-danger": item.danger,
|
|
3805
|
+
disabled: item.disabled,
|
|
3806
|
+
role: "menuitem",
|
|
3807
|
+
type: "button",
|
|
3808
|
+
children: [
|
|
3809
|
+
item.icon && /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: item.icon, size: "small" }),
|
|
3810
|
+
item.label
|
|
3811
|
+
]
|
|
3812
|
+
},
|
|
3813
|
+
`action-${index}`
|
|
3814
|
+
);
|
|
3815
|
+
if (item.tooltip && !item.disabled) {
|
|
3816
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
3817
|
+
Tooltip_default,
|
|
3818
|
+
{
|
|
3819
|
+
content: item.tooltip,
|
|
3820
|
+
position: "left",
|
|
3821
|
+
children: button2
|
|
3822
|
+
},
|
|
3823
|
+
`action-${index}`
|
|
3824
|
+
);
|
|
3825
|
+
}
|
|
3826
|
+
return button2;
|
|
3827
|
+
})
|
|
3828
|
+
}
|
|
3829
|
+
);
|
|
3830
|
+
const triggerButton = /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
3831
|
+
"button",
|
|
3832
|
+
{
|
|
3833
|
+
ref: buttonRef,
|
|
3834
|
+
css: triggerButtonStyles,
|
|
3835
|
+
onClick: handleToggle,
|
|
3836
|
+
"aria-label": ariaLabel,
|
|
3837
|
+
"aria-expanded": isOpen,
|
|
3838
|
+
"aria-haspopup": "true",
|
|
3839
|
+
type: "button",
|
|
3840
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Icon_default, { variant: "Ellipsis", size: "small" })
|
|
3841
|
+
}
|
|
3842
|
+
);
|
|
3843
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsxs)(import_jsx_runtime208.Fragment, { children: [
|
|
3844
|
+
/* @__PURE__ */ (0, import_jsx_runtime208.jsx)("div", { css: actionMenuContainerStyles, className, children: /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
3845
|
+
"div",
|
|
3846
|
+
{
|
|
3847
|
+
ref: wrapperRef,
|
|
3848
|
+
style: { position: "relative", display: "inline-block" },
|
|
3849
|
+
children: triggerTooltip ? /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(Tooltip_default, { content: triggerTooltip, position: "top", children: triggerButton }) : triggerButton
|
|
3850
|
+
}
|
|
3851
|
+
) }),
|
|
3852
|
+
typeof document !== "undefined" && (0, import_react_dom2.createPortal)(menuContent, document.body)
|
|
3853
|
+
] });
|
|
3854
|
+
};
|
|
3855
|
+
ActionMenu.displayName = "ActionMenu";
|
|
3856
|
+
var ActionMenu_default = ActionMenu;
|
|
3857
|
+
|
|
3858
|
+
// src/AIResponse/AIResponse.tsx
|
|
3859
|
+
var import_react18 = require("react");
|
|
3860
|
+
|
|
3861
|
+
// src/Box/Box.tsx
|
|
3862
|
+
var import_styled = __toESM(require("@emotion/styled"));
|
|
3863
|
+
var import_styled_system = require("styled-system");
|
|
3864
|
+
var gap = (0, import_styled_system.system)({
|
|
3865
|
+
gap: {
|
|
3866
|
+
property: "gap",
|
|
3867
|
+
scale: "space"
|
|
3868
|
+
}
|
|
3869
|
+
});
|
|
3870
|
+
var Box = import_styled.default.div`
|
|
3871
|
+
${import_styled_system.position}
|
|
3872
|
+
${import_styled_system.color};
|
|
3873
|
+
${import_styled_system.typography};
|
|
3874
|
+
${import_styled_system.space};
|
|
3875
|
+
${import_styled_system.width};
|
|
3876
|
+
${import_styled_system.layout}
|
|
3877
|
+
${import_styled_system.flexbox};
|
|
3878
|
+
${import_styled_system.grid};
|
|
3879
|
+
${gap};
|
|
3880
|
+
${import_styled_system.border};
|
|
3881
|
+
`;
|
|
3882
|
+
var Box_default = Box;
|
|
3883
|
+
|
|
3884
|
+
// src/Button/Button.tsx
|
|
3885
|
+
var import_react9 = require("@emotion/react");
|
|
3886
|
+
var import_lodash = require("lodash");
|
|
3887
|
+
var import_react10 = __toESM(require("react"));
|
|
3888
|
+
|
|
3889
|
+
// src/Spinner/Spinner.styles.ts
|
|
3890
|
+
var import_react7 = require("@emotion/react");
|
|
3891
|
+
var spinnerStyles = import_react7.css`
|
|
3408
3892
|
animation: lt-spin 1s linear infinite;
|
|
3409
3893
|
|
|
3410
3894
|
@keyframes lt-spin {
|
|
@@ -3418,9 +3902,9 @@ var spinnerStyles = import_react3.css`
|
|
|
3418
3902
|
`;
|
|
3419
3903
|
|
|
3420
3904
|
// src/Spinner/Spinner.tsx
|
|
3421
|
-
var
|
|
3905
|
+
var import_jsx_runtime209 = require("@emotion/react/jsx-runtime");
|
|
3422
3906
|
var Spinner = ({ size = "medium", className, fill }) => {
|
|
3423
|
-
return /* @__PURE__ */ (0,
|
|
3907
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
3424
3908
|
Icon_default,
|
|
3425
3909
|
{
|
|
3426
3910
|
variant: "Spinner",
|
|
@@ -3434,7 +3918,7 @@ var Spinner = ({ size = "medium", className, fill }) => {
|
|
|
3434
3918
|
var Spinner_default2 = Spinner;
|
|
3435
3919
|
|
|
3436
3920
|
// src/Button/Button.styles.ts
|
|
3437
|
-
var
|
|
3921
|
+
var import_react8 = require("@emotion/react");
|
|
3438
3922
|
|
|
3439
3923
|
// src/Button/TopoPattern.ts
|
|
3440
3924
|
var topoPattern = `data:image/svg+xml;base64,${btoa(`
|
|
@@ -3478,7 +3962,7 @@ var topoPattern = `data:image/svg+xml;base64,${btoa(`
|
|
|
3478
3962
|
var TopoPattern_default = topoPattern;
|
|
3479
3963
|
|
|
3480
3964
|
// src/Button/Button.styles.ts
|
|
3481
|
-
var rootStyles =
|
|
3965
|
+
var rootStyles = import_react8.css`
|
|
3482
3966
|
position: relative;
|
|
3483
3967
|
padding: ${space["4"]} ${space["10"]};
|
|
3484
3968
|
max-height: ${space["12"]};
|
|
@@ -3507,7 +3991,7 @@ var rootStyles = import_react4.css`
|
|
|
3507
3991
|
}
|
|
3508
3992
|
`;
|
|
3509
3993
|
var styles = {
|
|
3510
|
-
primary:
|
|
3994
|
+
primary: import_react8.css`
|
|
3511
3995
|
background-color: var(--surface-action);
|
|
3512
3996
|
color: var(--text-on-action);
|
|
3513
3997
|
border-color: var(--border-action);
|
|
@@ -3526,7 +4010,7 @@ var styles = {
|
|
|
3526
4010
|
outline: 2px solid var(--color-primary-100);
|
|
3527
4011
|
}
|
|
3528
4012
|
`,
|
|
3529
|
-
secondary:
|
|
4013
|
+
secondary: import_react8.css`
|
|
3530
4014
|
background-color: transparent;
|
|
3531
4015
|
color: var(--text-primary);
|
|
3532
4016
|
border-color: var(--border-secondary);
|
|
@@ -3540,7 +4024,7 @@ var styles = {
|
|
|
3540
4024
|
outline: 2px solid var(--color-neutral-700);
|
|
3541
4025
|
}
|
|
3542
4026
|
`,
|
|
3543
|
-
tertiary:
|
|
4027
|
+
tertiary: import_react8.css`
|
|
3544
4028
|
background-color: ${colors.gray["900"]};
|
|
3545
4029
|
color: ${colors.light["100"]};
|
|
3546
4030
|
border-color: ${colors.gray["900"]};
|
|
@@ -3559,7 +4043,7 @@ var styles = {
|
|
|
3559
4043
|
outline: 2px solid ${colors.olive["600"]};
|
|
3560
4044
|
}
|
|
3561
4045
|
`,
|
|
3562
|
-
plus:
|
|
4046
|
+
plus: import_react8.css`
|
|
3563
4047
|
background-color: var(--surface-action-2);
|
|
3564
4048
|
color: var(--text-primary);
|
|
3565
4049
|
border-color: var(--border-secondary);
|
|
@@ -3577,7 +4061,7 @@ var styles = {
|
|
|
3577
4061
|
outline: 2px solid var(--surface-action-2);
|
|
3578
4062
|
}
|
|
3579
4063
|
`,
|
|
3580
|
-
simple:
|
|
4064
|
+
simple: import_react8.css`
|
|
3581
4065
|
background-color: ${colors.light["100"]};
|
|
3582
4066
|
color: ${colors.dark["900"]};
|
|
3583
4067
|
border-color: ${colors.gray["200"]};
|
|
@@ -3594,7 +4078,7 @@ var styles = {
|
|
|
3594
4078
|
outline: 2px solid ${colors.gray["300"]};
|
|
3595
4079
|
}
|
|
3596
4080
|
`,
|
|
3597
|
-
text:
|
|
4081
|
+
text: import_react8.css`
|
|
3598
4082
|
text-decoration: none;
|
|
3599
4083
|
border-color: transparent;
|
|
3600
4084
|
color: var(--text-primary);
|
|
@@ -3609,7 +4093,7 @@ var styles = {
|
|
|
3609
4093
|
outline: 2px solid var(--border-secondary);
|
|
3610
4094
|
}
|
|
3611
4095
|
`,
|
|
3612
|
-
topo:
|
|
4096
|
+
topo: import_react8.css`
|
|
3613
4097
|
background-color: ${colors.gray["900"]};
|
|
3614
4098
|
background-image: url(${TopoPattern_default});
|
|
3615
4099
|
background-size: cover;
|
|
@@ -3630,10 +4114,10 @@ var styles = {
|
|
|
3630
4114
|
outline: 2px solid ${colors.olive["500"]};
|
|
3631
4115
|
}
|
|
3632
4116
|
`,
|
|
3633
|
-
fullWidth:
|
|
4117
|
+
fullWidth: import_react8.css`
|
|
3634
4118
|
width: 100%;
|
|
3635
4119
|
`,
|
|
3636
|
-
sizeXs:
|
|
4120
|
+
sizeXs: import_react8.css`
|
|
3637
4121
|
padding-top: ${space["2"]};
|
|
3638
4122
|
padding-bottom: ${space["2"]};
|
|
3639
4123
|
padding-left: ${space["3"]};
|
|
@@ -3642,18 +4126,18 @@ var styles = {
|
|
|
3642
4126
|
font-size: ${fontSizes.xs};
|
|
3643
4127
|
font-weight: ${fontWeights.bold};
|
|
3644
4128
|
`,
|
|
3645
|
-
sizeSm:
|
|
4129
|
+
sizeSm: import_react8.css`
|
|
3646
4130
|
padding-top: ${space["3"]};
|
|
3647
4131
|
padding-bottom: ${space["3"]};
|
|
3648
4132
|
`,
|
|
3649
|
-
sizeBase: () =>
|
|
3650
|
-
sizeMd:
|
|
4133
|
+
sizeBase: () => import_react8.css``,
|
|
4134
|
+
sizeMd: import_react8.css`
|
|
3651
4135
|
padding-top: ${space["3"]};
|
|
3652
4136
|
padding-bottom: ${space["3"]};
|
|
3653
4137
|
padding-left: ${space["6"]};
|
|
3654
4138
|
padding-right: ${space["6"]};
|
|
3655
4139
|
`,
|
|
3656
|
-
sizeLg:
|
|
4140
|
+
sizeLg: import_react8.css`
|
|
3657
4141
|
padding-top: ${space["5"]};
|
|
3658
4142
|
padding-bottom: ${space["5"]};
|
|
3659
4143
|
padding-left: ${space["12"]};
|
|
@@ -3661,29 +4145,29 @@ var styles = {
|
|
|
3661
4145
|
max-height: ${space["14"]};
|
|
3662
4146
|
font-size: ${fontSizes.base};
|
|
3663
4147
|
`,
|
|
3664
|
-
iconOnly:
|
|
4148
|
+
iconOnly: import_react8.css`
|
|
3665
4149
|
height: var(--spacing-11);
|
|
3666
4150
|
min-width: var(--spacing-11);
|
|
3667
4151
|
max-height: var(--spacing-11);
|
|
3668
4152
|
padding: 0;
|
|
3669
4153
|
border-radius: var(--radius-round);
|
|
3670
4154
|
`,
|
|
3671
|
-
iconOnlyLg:
|
|
4155
|
+
iconOnlyLg: import_react8.css`
|
|
3672
4156
|
height: var(--spacing-20);
|
|
3673
4157
|
min-width: var(--spacing-20);
|
|
3674
4158
|
max-height: var(--spacing-20);
|
|
3675
4159
|
padding: 0;
|
|
3676
4160
|
border-radius: var(--radius-round);
|
|
3677
4161
|
`,
|
|
3678
|
-
disabled:
|
|
4162
|
+
disabled: import_react8.css`
|
|
3679
4163
|
opacity: ${opacity["50"]};
|
|
3680
4164
|
cursor: not-allowed;
|
|
3681
4165
|
`,
|
|
3682
|
-
withIcon:
|
|
4166
|
+
withIcon: import_react8.css`
|
|
3683
4167
|
gap: var(--spacing-2);
|
|
3684
4168
|
`
|
|
3685
4169
|
};
|
|
3686
|
-
var spinnerStyles2 = (variant) =>
|
|
4170
|
+
var spinnerStyles2 = (variant) => import_react8.css`
|
|
3687
4171
|
position: absolute;
|
|
3688
4172
|
left: calc(50% - var(--spacing-2));
|
|
3689
4173
|
|
|
@@ -3703,13 +4187,13 @@ var spinnerStyles2 = (variant) => import_react4.css`
|
|
|
3703
4187
|
fill: var(--text-primary);
|
|
3704
4188
|
`}
|
|
3705
4189
|
`;
|
|
3706
|
-
var labelStyles = (isVisible) => () =>
|
|
4190
|
+
var labelStyles = (isVisible) => () => import_react8.css`
|
|
3707
4191
|
visibility: ${isVisible ? "visible" : "hidden"};
|
|
3708
4192
|
`;
|
|
3709
4193
|
|
|
3710
4194
|
// src/Button/Button.tsx
|
|
3711
|
-
var
|
|
3712
|
-
var Button =
|
|
4195
|
+
var import_jsx_runtime210 = require("@emotion/react/jsx-runtime");
|
|
4196
|
+
var Button = import_react10.default.forwardRef(
|
|
3713
4197
|
({
|
|
3714
4198
|
as: Component = "button",
|
|
3715
4199
|
variant = "primary",
|
|
@@ -3720,14 +4204,14 @@ var Button = import_react6.default.forwardRef(
|
|
|
3720
4204
|
type = "button",
|
|
3721
4205
|
isLoading = false,
|
|
3722
4206
|
className = "",
|
|
3723
|
-
labelStyleOverrides =
|
|
4207
|
+
labelStyleOverrides = import_react9.css``,
|
|
3724
4208
|
icon: icon2,
|
|
3725
4209
|
...props
|
|
3726
4210
|
}, ref) => {
|
|
3727
4211
|
const componentType = Component === "button" ? type : void 0;
|
|
3728
4212
|
const sizeKey = `size${(0, import_lodash.upperFirst)(size)}`;
|
|
3729
4213
|
const isIconOnly = icon2 && !children;
|
|
3730
|
-
return /* @__PURE__ */ (0,
|
|
4214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(
|
|
3731
4215
|
Component,
|
|
3732
4216
|
{
|
|
3733
4217
|
ref,
|
|
@@ -3754,8 +4238,8 @@ var Button = import_react6.default.forwardRef(
|
|
|
3754
4238
|
},
|
|
3755
4239
|
children: [
|
|
3756
4240
|
icon2,
|
|
3757
|
-
children && /* @__PURE__ */ (0,
|
|
3758
|
-
isLoading && /* @__PURE__ */ (0,
|
|
4241
|
+
children && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)("span", { css: [labelStyles(!isLoading), labelStyleOverrides], children }),
|
|
4242
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime210.jsx)(Spinner_default2, { css: spinnerStyles2(variant) })
|
|
3759
4243
|
]
|
|
3760
4244
|
}
|
|
3761
4245
|
);
|
|
@@ -3765,9 +4249,9 @@ Button.displayName = "Button";
|
|
|
3765
4249
|
var Button_default = Button;
|
|
3766
4250
|
|
|
3767
4251
|
// src/Box/Container.tsx
|
|
3768
|
-
var
|
|
3769
|
-
var
|
|
3770
|
-
var baseStyles =
|
|
4252
|
+
var import_react11 = require("@emotion/react");
|
|
4253
|
+
var import_jsx_runtime211 = require("@emotion/react/jsx-runtime");
|
|
4254
|
+
var baseStyles = import_react11.css`
|
|
3771
4255
|
width: 100%;
|
|
3772
4256
|
margin: 0 auto;
|
|
3773
4257
|
padding-left: 1rem;
|
|
@@ -3789,7 +4273,7 @@ var baseStyles = import_react7.css`
|
|
|
3789
4273
|
max-width: ${screens.xl};
|
|
3790
4274
|
}
|
|
3791
4275
|
`;
|
|
3792
|
-
var fullWidthStyles =
|
|
4276
|
+
var fullWidthStyles = import_react11.css`
|
|
3793
4277
|
${media.sm} {
|
|
3794
4278
|
max-width: 100%;
|
|
3795
4279
|
}
|
|
@@ -3800,7 +4284,7 @@ var Container = ({
|
|
|
3800
4284
|
isFullWidth = false,
|
|
3801
4285
|
...props
|
|
3802
4286
|
}) => {
|
|
3803
|
-
return /* @__PURE__ */ (0,
|
|
4287
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
3804
4288
|
Box_default,
|
|
3805
4289
|
{
|
|
3806
4290
|
css: [baseStyles, isFullWidth && fullWidthStyles],
|
|
@@ -3836,9 +4320,9 @@ var resolveColor = (colorToken) => {
|
|
|
3836
4320
|
};
|
|
3837
4321
|
|
|
3838
4322
|
// src/Typography/Heading.styles.ts
|
|
3839
|
-
var
|
|
4323
|
+
var import_react12 = require("@emotion/react");
|
|
3840
4324
|
var { fontWeights: fontWeights2, media: media2 } = ThemeTokens;
|
|
3841
|
-
var headingXl =
|
|
4325
|
+
var headingXl = import_react12.css`
|
|
3842
4326
|
letter-spacing: 0;
|
|
3843
4327
|
font-size: 32px;
|
|
3844
4328
|
line-height: 40px;
|
|
@@ -3856,7 +4340,7 @@ var headingXl = import_react8.css`
|
|
|
3856
4340
|
line-height: 72px;
|
|
3857
4341
|
}
|
|
3858
4342
|
`;
|
|
3859
|
-
var headingLg =
|
|
4343
|
+
var headingLg = import_react12.css`
|
|
3860
4344
|
letter-spacing: 0;
|
|
3861
4345
|
font-size: 28px;
|
|
3862
4346
|
line-height: 32px;
|
|
@@ -3874,7 +4358,7 @@ var headingLg = import_react8.css`
|
|
|
3874
4358
|
line-height: 56px;
|
|
3875
4359
|
}
|
|
3876
4360
|
`;
|
|
3877
|
-
var headingMd =
|
|
4361
|
+
var headingMd = import_react12.css`
|
|
3878
4362
|
letter-spacing: 0;
|
|
3879
4363
|
font-size: 24px;
|
|
3880
4364
|
line-height: 28px;
|
|
@@ -3892,7 +4376,7 @@ var headingMd = import_react8.css`
|
|
|
3892
4376
|
line-height: 48px;
|
|
3893
4377
|
}
|
|
3894
4378
|
`;
|
|
3895
|
-
var headingSm =
|
|
4379
|
+
var headingSm = import_react12.css`
|
|
3896
4380
|
letter-spacing: 0;
|
|
3897
4381
|
font-size: 24px;
|
|
3898
4382
|
line-height: 24px;
|
|
@@ -3910,7 +4394,7 @@ var headingSm = import_react8.css`
|
|
|
3910
4394
|
line-height: 40px;
|
|
3911
4395
|
}
|
|
3912
4396
|
`;
|
|
3913
|
-
var headingXs =
|
|
4397
|
+
var headingXs = import_react12.css`
|
|
3914
4398
|
letter-spacing: 0;
|
|
3915
4399
|
font-size: 24px;
|
|
3916
4400
|
line-height: 28px;
|
|
@@ -3928,7 +4412,7 @@ var headingXs = import_react8.css`
|
|
|
3928
4412
|
line-height: 28px;
|
|
3929
4413
|
}
|
|
3930
4414
|
`;
|
|
3931
|
-
var heading2xs =
|
|
4415
|
+
var heading2xs = import_react12.css`
|
|
3932
4416
|
letter-spacing: 0;
|
|
3933
4417
|
font-size: 20px;
|
|
3934
4418
|
line-height: 24px;
|
|
@@ -3946,37 +4430,37 @@ var heading2xs = import_react8.css`
|
|
|
3946
4430
|
line-height: 24px;
|
|
3947
4431
|
}
|
|
3948
4432
|
`;
|
|
3949
|
-
var headingUppercase =
|
|
4433
|
+
var headingUppercase = import_react12.css`
|
|
3950
4434
|
text-transform: uppercase;
|
|
3951
4435
|
`;
|
|
3952
|
-
var headingBold =
|
|
4436
|
+
var headingBold = import_react12.css`
|
|
3953
4437
|
font-weight: 500;
|
|
3954
4438
|
`;
|
|
3955
|
-
var textNormal =
|
|
4439
|
+
var textNormal = import_react12.css`
|
|
3956
4440
|
font-weight: ${fontWeights2.normal};
|
|
3957
4441
|
`;
|
|
3958
|
-
var textSemibold =
|
|
4442
|
+
var textSemibold = import_react12.css`
|
|
3959
4443
|
font-weight: ${fontWeights2.medium};
|
|
3960
4444
|
`;
|
|
3961
|
-
var textBold =
|
|
4445
|
+
var textBold = import_react12.css`
|
|
3962
4446
|
font-weight: ${fontWeights2.bold};
|
|
3963
4447
|
`;
|
|
3964
|
-
var textExtrabold =
|
|
4448
|
+
var textExtrabold = import_react12.css`
|
|
3965
4449
|
font-weight: ${fontWeights2.bolder};
|
|
3966
4450
|
`;
|
|
3967
|
-
var wrapPretty =
|
|
4451
|
+
var wrapPretty = import_react12.css`
|
|
3968
4452
|
text-wrap: pretty;
|
|
3969
4453
|
`;
|
|
3970
|
-
var wrapBalance =
|
|
4454
|
+
var wrapBalance = import_react12.css`
|
|
3971
4455
|
text-wrap: balance;
|
|
3972
4456
|
`;
|
|
3973
|
-
var wrapNowrap =
|
|
4457
|
+
var wrapNowrap = import_react12.css`
|
|
3974
4458
|
text-wrap: nowrap;
|
|
3975
4459
|
`;
|
|
3976
|
-
var wrapWrap =
|
|
4460
|
+
var wrapWrap = import_react12.css`
|
|
3977
4461
|
text-wrap: wrap;
|
|
3978
4462
|
`;
|
|
3979
|
-
var wrapStable =
|
|
4463
|
+
var wrapStable = import_react12.css`
|
|
3980
4464
|
text-wrap: stable;
|
|
3981
4465
|
`;
|
|
3982
4466
|
var headingSizeStyles = {
|
|
@@ -4002,7 +4486,7 @@ var textFontWeightStyles = {
|
|
|
4002
4486
|
};
|
|
4003
4487
|
|
|
4004
4488
|
// src/Typography/Heading.tsx
|
|
4005
|
-
var
|
|
4489
|
+
var import_jsx_runtime212 = require("@emotion/react/jsx-runtime");
|
|
4006
4490
|
var SIZE_TO_ELEMENT_MAP = {
|
|
4007
4491
|
xl: "h1",
|
|
4008
4492
|
lg: "h2",
|
|
@@ -4032,7 +4516,7 @@ var Heading = ({
|
|
|
4032
4516
|
...props
|
|
4033
4517
|
}) => {
|
|
4034
4518
|
const elementType = as != null ? as : SIZE_TO_ELEMENT_MAP[size];
|
|
4035
|
-
return /* @__PURE__ */ (0,
|
|
4519
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
4036
4520
|
StyledHeading,
|
|
4037
4521
|
{
|
|
4038
4522
|
as: elementType,
|
|
@@ -4054,9 +4538,9 @@ var Heading_default = Heading;
|
|
|
4054
4538
|
var import_styled3 = __toESM(require("@emotion/styled"));
|
|
4055
4539
|
|
|
4056
4540
|
// src/Typography/Text.styles.ts
|
|
4057
|
-
var
|
|
4541
|
+
var import_react13 = require("@emotion/react");
|
|
4058
4542
|
var { fontWeights: fontWeights3, media: media3 } = ThemeTokens;
|
|
4059
|
-
var textMd =
|
|
4543
|
+
var textMd = import_react13.css`
|
|
4060
4544
|
font-size: 16px;
|
|
4061
4545
|
line-height: 22px;
|
|
4062
4546
|
letter-spacing: 0;
|
|
@@ -4074,7 +4558,7 @@ var textMd = import_react9.css`
|
|
|
4074
4558
|
line-height: 22px;
|
|
4075
4559
|
}
|
|
4076
4560
|
`;
|
|
4077
|
-
var textSm =
|
|
4561
|
+
var textSm = import_react13.css`
|
|
4078
4562
|
font-size: 14px;
|
|
4079
4563
|
line-height: 20px;
|
|
4080
4564
|
letter-spacing: 0;
|
|
@@ -4092,7 +4576,7 @@ var textSm = import_react9.css`
|
|
|
4092
4576
|
line-height: 20px;
|
|
4093
4577
|
}
|
|
4094
4578
|
`;
|
|
4095
|
-
var textXs =
|
|
4579
|
+
var textXs = import_react13.css`
|
|
4096
4580
|
font-size: 14px;
|
|
4097
4581
|
line-height: 16px;
|
|
4098
4582
|
letter-spacing: 0;
|
|
@@ -4110,7 +4594,7 @@ var textXs = import_react9.css`
|
|
|
4110
4594
|
line-height: 16px;
|
|
4111
4595
|
}
|
|
4112
4596
|
`;
|
|
4113
|
-
var text2xs =
|
|
4597
|
+
var text2xs = import_react13.css`
|
|
4114
4598
|
font-size: 10px;
|
|
4115
4599
|
line-height: 24px;
|
|
4116
4600
|
letter-spacing: 0;
|
|
@@ -4128,34 +4612,34 @@ var text2xs = import_react9.css`
|
|
|
4128
4612
|
line-height: 14px;
|
|
4129
4613
|
}
|
|
4130
4614
|
`;
|
|
4131
|
-
var textNormal2 =
|
|
4615
|
+
var textNormal2 = import_react13.css`
|
|
4132
4616
|
font-weight: ${fontWeights3.normal};
|
|
4133
4617
|
`;
|
|
4134
|
-
var textSemibold2 =
|
|
4618
|
+
var textSemibold2 = import_react13.css`
|
|
4135
4619
|
font-weight: ${fontWeights3.medium};
|
|
4136
4620
|
`;
|
|
4137
|
-
var textBold2 =
|
|
4621
|
+
var textBold2 = import_react13.css`
|
|
4138
4622
|
font-weight: ${fontWeights3.bold};
|
|
4139
4623
|
`;
|
|
4140
|
-
var textExtrabold2 =
|
|
4624
|
+
var textExtrabold2 = import_react13.css`
|
|
4141
4625
|
font-weight: ${fontWeights3.bolder};
|
|
4142
4626
|
`;
|
|
4143
|
-
var textUppercase =
|
|
4627
|
+
var textUppercase = import_react13.css`
|
|
4144
4628
|
text-transform: uppercase;
|
|
4145
4629
|
`;
|
|
4146
|
-
var wrapPretty2 =
|
|
4630
|
+
var wrapPretty2 = import_react13.css`
|
|
4147
4631
|
text-wrap: pretty;
|
|
4148
4632
|
`;
|
|
4149
|
-
var wrapBalance2 =
|
|
4633
|
+
var wrapBalance2 = import_react13.css`
|
|
4150
4634
|
text-wrap: balance;
|
|
4151
4635
|
`;
|
|
4152
|
-
var wrapNowrap2 =
|
|
4636
|
+
var wrapNowrap2 = import_react13.css`
|
|
4153
4637
|
text-wrap: nowrap;
|
|
4154
4638
|
`;
|
|
4155
|
-
var wrapWrap2 =
|
|
4639
|
+
var wrapWrap2 = import_react13.css`
|
|
4156
4640
|
text-wrap: wrap;
|
|
4157
4641
|
`;
|
|
4158
|
-
var wrapStable2 =
|
|
4642
|
+
var wrapStable2 = import_react13.css`
|
|
4159
4643
|
text-wrap: stable;
|
|
4160
4644
|
`;
|
|
4161
4645
|
var textSizeStyles = {
|
|
@@ -4179,7 +4663,7 @@ var textWrapStyles2 = {
|
|
|
4179
4663
|
};
|
|
4180
4664
|
|
|
4181
4665
|
// src/Typography/Text.tsx
|
|
4182
|
-
var
|
|
4666
|
+
var import_jsx_runtime213 = require("@emotion/react/jsx-runtime");
|
|
4183
4667
|
var StyledText = (0, import_styled3.default)("p")`
|
|
4184
4668
|
${({ size = "md" }) => textSizeStyles[size]}
|
|
4185
4669
|
${({ fontWeight = "normal" }) => textFontWeightStyles2[fontWeight]}
|
|
@@ -4201,7 +4685,7 @@ var Text = ({
|
|
|
4201
4685
|
...props
|
|
4202
4686
|
}) => {
|
|
4203
4687
|
const elementType = as;
|
|
4204
|
-
return /* @__PURE__ */ (0,
|
|
4688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
4205
4689
|
StyledText,
|
|
4206
4690
|
{
|
|
4207
4691
|
as: elementType,
|
|
@@ -4220,7 +4704,7 @@ var Text = ({
|
|
|
4220
4704
|
var Text_default = Text;
|
|
4221
4705
|
|
|
4222
4706
|
// src/IconLabel/IconLabel.tsx
|
|
4223
|
-
var
|
|
4707
|
+
var import_jsx_runtime214 = require("@emotion/react/jsx-runtime");
|
|
4224
4708
|
var IconLabel = ({
|
|
4225
4709
|
variant,
|
|
4226
4710
|
label,
|
|
@@ -4229,7 +4713,7 @@ var IconLabel = ({
|
|
|
4229
4713
|
className,
|
|
4230
4714
|
...rest
|
|
4231
4715
|
}) => {
|
|
4232
|
-
return /* @__PURE__ */ (0,
|
|
4716
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
4233
4717
|
Box_default,
|
|
4234
4718
|
{
|
|
4235
4719
|
display: "flex",
|
|
@@ -4238,8 +4722,8 @@ var IconLabel = ({
|
|
|
4238
4722
|
className,
|
|
4239
4723
|
...rest,
|
|
4240
4724
|
children: [
|
|
4241
|
-
/* @__PURE__ */ (0,
|
|
4242
|
-
/* @__PURE__ */ (0,
|
|
4725
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Icon_default, { variant, size: iconSize }),
|
|
4726
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Text_default, { size: labelSize, fontWeight: "semibold", children: label })
|
|
4243
4727
|
]
|
|
4244
4728
|
}
|
|
4245
4729
|
);
|
|
@@ -4248,11 +4732,11 @@ var IconLabel_default = IconLabel;
|
|
|
4248
4732
|
|
|
4249
4733
|
// src/MarkdownContent/MarkdownContent.tsx
|
|
4250
4734
|
var import_markdown_to_jsx = __toESM(require("markdown-to-jsx"));
|
|
4251
|
-
var
|
|
4735
|
+
var import_react15 = __toESM(require("react"));
|
|
4252
4736
|
|
|
4253
4737
|
// src/MarkdownContent/MarkdownContent.styles.ts
|
|
4254
|
-
var
|
|
4255
|
-
var markdownContentStyles =
|
|
4738
|
+
var import_react14 = require("@emotion/react");
|
|
4739
|
+
var markdownContentStyles = import_react14.css`
|
|
4256
4740
|
ul {
|
|
4257
4741
|
margin: var(--spacing-3) 0;
|
|
4258
4742
|
padding-left: var(--spacing-5);
|
|
@@ -4403,14 +4887,14 @@ var markdownContentStyles = import_react10.css`
|
|
|
4403
4887
|
font-style: italic;
|
|
4404
4888
|
}
|
|
4405
4889
|
`;
|
|
4406
|
-
var codeBlockStyles =
|
|
4890
|
+
var codeBlockStyles = import_react14.css`
|
|
4407
4891
|
position: relative;
|
|
4408
4892
|
margin: var(--spacing-4) 0;
|
|
4409
4893
|
border-radius: var(--radius-lg);
|
|
4410
4894
|
border: 1px solid var(--border-primary);
|
|
4411
4895
|
overflow: hidden;
|
|
4412
4896
|
`;
|
|
4413
|
-
var codeBlockHeaderStyles =
|
|
4897
|
+
var codeBlockHeaderStyles = import_react14.css`
|
|
4414
4898
|
display: flex;
|
|
4415
4899
|
justify-content: space-between;
|
|
4416
4900
|
align-items: center;
|
|
@@ -4419,13 +4903,13 @@ var codeBlockHeaderStyles = import_react10.css`
|
|
|
4419
4903
|
border-bottom: 1px solid var(--border-primary);
|
|
4420
4904
|
position: relative;
|
|
4421
4905
|
`;
|
|
4422
|
-
var codeBlockLanguageStyles =
|
|
4906
|
+
var codeBlockLanguageStyles = import_react14.css`
|
|
4423
4907
|
font-size: 0.75rem;
|
|
4424
4908
|
color: var(--text-secondary);
|
|
4425
4909
|
text-transform: uppercase;
|
|
4426
4910
|
font-weight: 500;
|
|
4427
4911
|
`;
|
|
4428
|
-
var getCodeBlockCopyButtonStyles = (isHovered, copySuccess) =>
|
|
4912
|
+
var getCodeBlockCopyButtonStyles = (isHovered, copySuccess) => import_react14.css`
|
|
4429
4913
|
position: absolute;
|
|
4430
4914
|
top: 50%;
|
|
4431
4915
|
right: var(--spacing-3);
|
|
@@ -4445,7 +4929,7 @@ var getCodeBlockCopyButtonStyles = (isHovered, copySuccess) => import_react10.cs
|
|
|
4445
4929
|
background: ${copySuccess ? "var(--color-success-600)" : "var(--surface-action-hover)"};
|
|
4446
4930
|
}
|
|
4447
4931
|
`;
|
|
4448
|
-
var codeBlockPreStyles =
|
|
4932
|
+
var codeBlockPreStyles = import_react14.css`
|
|
4449
4933
|
margin: 0;
|
|
4450
4934
|
padding: var(--spacing-3);
|
|
4451
4935
|
background-color: var(--surface-page);
|
|
@@ -4457,7 +4941,7 @@ var codeBlockPreStyles = import_react10.css`
|
|
|
4457
4941
|
overflow-x: auto;
|
|
4458
4942
|
white-space: pre-wrap;
|
|
4459
4943
|
`;
|
|
4460
|
-
var inlineCodeStyles =
|
|
4944
|
+
var inlineCodeStyles = import_react14.css`
|
|
4461
4945
|
background-color: var(--surface-neutral);
|
|
4462
4946
|
color: var(--text-primary);
|
|
4463
4947
|
font-weight: 500;
|
|
@@ -4467,7 +4951,7 @@ var inlineCodeStyles = import_react10.css`
|
|
|
4467
4951
|
monospace;
|
|
4468
4952
|
font-size: 0.9em;
|
|
4469
4953
|
`;
|
|
4470
|
-
var tableWrapperStyles =
|
|
4954
|
+
var tableWrapperStyles = import_react14.css`
|
|
4471
4955
|
overflow-x: auto;
|
|
4472
4956
|
-webkit-overflow-scrolling: touch;
|
|
4473
4957
|
|
|
@@ -4478,14 +4962,14 @@ var tableWrapperStyles = import_react10.css`
|
|
|
4478
4962
|
`;
|
|
4479
4963
|
|
|
4480
4964
|
// src/MarkdownContent/MarkdownContent.tsx
|
|
4481
|
-
var
|
|
4965
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
4482
4966
|
var CodeBlock = ({
|
|
4483
4967
|
children,
|
|
4484
4968
|
className,
|
|
4485
4969
|
enableCopy = true
|
|
4486
4970
|
}) => {
|
|
4487
|
-
const [isHovered, setIsHovered] = (0,
|
|
4488
|
-
const [copySuccess, setCopySuccess] = (0,
|
|
4971
|
+
const [isHovered, setIsHovered] = (0, import_react15.useState)(false);
|
|
4972
|
+
const [copySuccess, setCopySuccess] = (0, import_react15.useState)(false);
|
|
4489
4973
|
const language = (className == null ? void 0 : className.replace("language-", "")) || "text";
|
|
4490
4974
|
const handleCopy = async () => {
|
|
4491
4975
|
try {
|
|
@@ -4496,16 +4980,16 @@ var CodeBlock = ({
|
|
|
4496
4980
|
console.error("Failed to copy text: ", err);
|
|
4497
4981
|
}
|
|
4498
4982
|
};
|
|
4499
|
-
return /* @__PURE__ */ (0,
|
|
4983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
4500
4984
|
"div",
|
|
4501
4985
|
{
|
|
4502
4986
|
css: codeBlockStyles,
|
|
4503
4987
|
onMouseEnter: () => setIsHovered(true),
|
|
4504
4988
|
onMouseLeave: () => setIsHovered(false),
|
|
4505
4989
|
children: [
|
|
4506
|
-
/* @__PURE__ */ (0,
|
|
4507
|
-
/* @__PURE__ */ (0,
|
|
4508
|
-
enableCopy && /* @__PURE__ */ (0,
|
|
4990
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsxs)("div", { css: codeBlockHeaderStyles, children: [
|
|
4991
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)("span", { css: codeBlockLanguageStyles, children: language }),
|
|
4992
|
+
enableCopy && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4509
4993
|
"button",
|
|
4510
4994
|
{
|
|
4511
4995
|
onClick: handleCopy,
|
|
@@ -4514,18 +4998,18 @@ var CodeBlock = ({
|
|
|
4514
4998
|
}
|
|
4515
4999
|
)
|
|
4516
5000
|
] }),
|
|
4517
|
-
/* @__PURE__ */ (0,
|
|
5001
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)("pre", { css: codeBlockPreStyles, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("code", { children }) })
|
|
4518
5002
|
]
|
|
4519
5003
|
}
|
|
4520
5004
|
);
|
|
4521
5005
|
};
|
|
4522
5006
|
var InlineCode = ({ children }) => {
|
|
4523
|
-
return /* @__PURE__ */ (0,
|
|
5007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("code", { css: inlineCodeStyles, children });
|
|
4524
5008
|
};
|
|
4525
5009
|
var TableWrapper = ({
|
|
4526
5010
|
children
|
|
4527
5011
|
}) => {
|
|
4528
|
-
return /* @__PURE__ */ (0,
|
|
5012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { css: tableWrapperStyles, children });
|
|
4529
5013
|
};
|
|
4530
5014
|
var MarkdownContent = ({
|
|
4531
5015
|
content,
|
|
@@ -4533,7 +5017,7 @@ var MarkdownContent = ({
|
|
|
4533
5017
|
enableCodeCopy = true,
|
|
4534
5018
|
customComponents = {}
|
|
4535
5019
|
}) => {
|
|
4536
|
-
return /* @__PURE__ */ (0,
|
|
5020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { className, css: markdownContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4537
5021
|
import_markdown_to_jsx.default,
|
|
4538
5022
|
{
|
|
4539
5023
|
options: {
|
|
@@ -4542,7 +5026,7 @@ var MarkdownContent = ({
|
|
|
4542
5026
|
...customComponents,
|
|
4543
5027
|
// Headings - use design system Heading component with spacing
|
|
4544
5028
|
h1: {
|
|
4545
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5029
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4546
5030
|
Heading_default,
|
|
4547
5031
|
{
|
|
4548
5032
|
size: "sm",
|
|
@@ -4557,7 +5041,7 @@ var MarkdownContent = ({
|
|
|
4557
5041
|
)
|
|
4558
5042
|
},
|
|
4559
5043
|
h2: {
|
|
4560
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5044
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4561
5045
|
Heading_default,
|
|
4562
5046
|
{
|
|
4563
5047
|
size: "xs",
|
|
@@ -4572,7 +5056,7 @@ var MarkdownContent = ({
|
|
|
4572
5056
|
)
|
|
4573
5057
|
},
|
|
4574
5058
|
h3: {
|
|
4575
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5059
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4576
5060
|
Heading_default,
|
|
4577
5061
|
{
|
|
4578
5062
|
size: "2xs",
|
|
@@ -4587,7 +5071,7 @@ var MarkdownContent = ({
|
|
|
4587
5071
|
)
|
|
4588
5072
|
},
|
|
4589
5073
|
h4: {
|
|
4590
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5074
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4591
5075
|
Heading_default,
|
|
4592
5076
|
{
|
|
4593
5077
|
size: "2xs",
|
|
@@ -4602,7 +5086,7 @@ var MarkdownContent = ({
|
|
|
4602
5086
|
)
|
|
4603
5087
|
},
|
|
4604
5088
|
h5: {
|
|
4605
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5089
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4606
5090
|
Heading_default,
|
|
4607
5091
|
{
|
|
4608
5092
|
size: "2xs",
|
|
@@ -4617,7 +5101,7 @@ var MarkdownContent = ({
|
|
|
4617
5101
|
)
|
|
4618
5102
|
},
|
|
4619
5103
|
h6: {
|
|
4620
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5104
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4621
5105
|
Heading_default,
|
|
4622
5106
|
{
|
|
4623
5107
|
size: "2xs",
|
|
@@ -4633,7 +5117,7 @@ var MarkdownContent = ({
|
|
|
4633
5117
|
},
|
|
4634
5118
|
// Paragraphs - use design system Text component with spacing
|
|
4635
5119
|
p: {
|
|
4636
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5120
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4637
5121
|
Text_default,
|
|
4638
5122
|
{
|
|
4639
5123
|
size: "md",
|
|
@@ -4649,7 +5133,7 @@ var MarkdownContent = ({
|
|
|
4649
5133
|
component: ({
|
|
4650
5134
|
children
|
|
4651
5135
|
}) => {
|
|
4652
|
-
const codeElement =
|
|
5136
|
+
const codeElement = import_react15.default.Children.only(
|
|
4653
5137
|
children
|
|
4654
5138
|
);
|
|
4655
5139
|
const codeProps = (codeElement == null ? void 0 : codeElement.props) || {};
|
|
@@ -4657,7 +5141,7 @@ var MarkdownContent = ({
|
|
|
4657
5141
|
const codeChildren = codeProps.children || "";
|
|
4658
5142
|
const match = /lang-(\w+)/.exec(codeClassName);
|
|
4659
5143
|
const language = match ? match[1] : "text";
|
|
4660
|
-
return /* @__PURE__ */ (0,
|
|
5144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4661
5145
|
CodeBlock,
|
|
4662
5146
|
{
|
|
4663
5147
|
className: `language-${language}`,
|
|
@@ -4670,14 +5154,14 @@ var MarkdownContent = ({
|
|
|
4670
5154
|
// Override code tag for inline code only
|
|
4671
5155
|
code: {
|
|
4672
5156
|
component: ({ children }) => {
|
|
4673
|
-
return /* @__PURE__ */ (0,
|
|
5157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(InlineCode, { children });
|
|
4674
5158
|
}
|
|
4675
5159
|
},
|
|
4676
5160
|
table: {
|
|
4677
5161
|
component: ({
|
|
4678
5162
|
children,
|
|
4679
5163
|
...props
|
|
4680
|
-
}) => /* @__PURE__ */ (0,
|
|
5164
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(TableWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("table", { ...props, children }) })
|
|
4681
5165
|
}
|
|
4682
5166
|
}
|
|
4683
5167
|
},
|
|
@@ -4688,8 +5172,8 @@ var MarkdownContent = ({
|
|
|
4688
5172
|
var MarkdownContent_default = MarkdownContent;
|
|
4689
5173
|
|
|
4690
5174
|
// src/AIResponse/AIResponse.styles.ts
|
|
4691
|
-
var
|
|
4692
|
-
var getBannerStyles = (variant) =>
|
|
5175
|
+
var import_react16 = require("@emotion/react");
|
|
5176
|
+
var getBannerStyles = (variant) => import_react16.css`
|
|
4693
5177
|
background-color: ${variant === "error" ? "var(--surface-error)" : "var(--surface-neutral)"};
|
|
4694
5178
|
border: ${variant === "error" ? "1px solid var(--border-error)" : "none"};
|
|
4695
5179
|
border-radius: var(--radius-lg);
|
|
@@ -4699,29 +5183,29 @@ var getBannerStyles = (variant) => import_react12.css`
|
|
|
4699
5183
|
gap: var(--spacing-5);
|
|
4700
5184
|
min-width: 335px;
|
|
4701
5185
|
`;
|
|
4702
|
-
var footerStyles =
|
|
5186
|
+
var footerStyles = import_react16.css`
|
|
4703
5187
|
display: flex;
|
|
4704
5188
|
gap: var(--spacing-4);
|
|
4705
5189
|
align-items: center;
|
|
4706
5190
|
`;
|
|
4707
|
-
var actionsStyles =
|
|
5191
|
+
var actionsStyles = import_react16.css`
|
|
4708
5192
|
display: flex;
|
|
4709
5193
|
align-items: center;
|
|
4710
5194
|
gap: var(--spacing-2);
|
|
4711
5195
|
`;
|
|
4712
|
-
var errorRetryStyles =
|
|
5196
|
+
var errorRetryStyles = import_react16.css`
|
|
4713
5197
|
display: flex;
|
|
4714
5198
|
align-items: center;
|
|
4715
5199
|
`;
|
|
4716
5200
|
|
|
4717
5201
|
// src/AIResponse/components/ContactLandownerButton/ContactLandownerButton.tsx
|
|
4718
|
-
var
|
|
5202
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
4719
5203
|
var ContactLandownerButton = ({
|
|
4720
5204
|
url,
|
|
4721
5205
|
buttonText = "Contact Landowner",
|
|
4722
5206
|
className
|
|
4723
5207
|
}) => {
|
|
4724
|
-
return /* @__PURE__ */ (0,
|
|
5208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { marginTop: "var(--spacing-4)", children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4725
5209
|
Button_default,
|
|
4726
5210
|
{
|
|
4727
5211
|
variant: "primary",
|
|
@@ -4735,8 +5219,8 @@ var ContactLandownerButton = ({
|
|
|
4735
5219
|
};
|
|
4736
5220
|
|
|
4737
5221
|
// src/AIResponse/components/TopMatchingFieldNote/TopMatchingFieldNote.styles.ts
|
|
4738
|
-
var
|
|
4739
|
-
var imageStyles =
|
|
5222
|
+
var import_react17 = require("@emotion/react");
|
|
5223
|
+
var imageStyles = import_react17.css`
|
|
4740
5224
|
width: 100%;
|
|
4741
5225
|
height: 275px;
|
|
4742
5226
|
border-radius: var(--radius-lg);
|
|
@@ -4745,7 +5229,7 @@ var imageStyles = import_react13.css`
|
|
|
4745
5229
|
`;
|
|
4746
5230
|
|
|
4747
5231
|
// src/AIResponse/components/TopMatchingFieldNote/TopMatchingFieldNote.tsx
|
|
4748
|
-
var
|
|
5232
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
4749
5233
|
var TopMatchingFieldNote = ({
|
|
4750
5234
|
author,
|
|
4751
5235
|
datePosted,
|
|
@@ -4763,8 +5247,8 @@ var TopMatchingFieldNote = ({
|
|
|
4763
5247
|
parsedImages = [];
|
|
4764
5248
|
}
|
|
4765
5249
|
const displayContent = content || children;
|
|
4766
|
-
return /* @__PURE__ */ (0,
|
|
4767
|
-
/* @__PURE__ */ (0,
|
|
5250
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
5251
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
4768
5252
|
Heading_default,
|
|
4769
5253
|
{
|
|
4770
5254
|
size: "2xs",
|
|
@@ -4774,7 +5258,7 @@ var TopMatchingFieldNote = ({
|
|
|
4774
5258
|
children: title
|
|
4775
5259
|
}
|
|
4776
5260
|
),
|
|
4777
|
-
/* @__PURE__ */ (0,
|
|
5261
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
|
|
4778
5262
|
Box_default,
|
|
4779
5263
|
{
|
|
4780
5264
|
display: "flex",
|
|
@@ -4786,8 +5270,8 @@ var TopMatchingFieldNote = ({
|
|
|
4786
5270
|
minWidth: "335px",
|
|
4787
5271
|
className,
|
|
4788
5272
|
children: [
|
|
4789
|
-
/* @__PURE__ */ (0,
|
|
4790
|
-
parsedImages.length > 0 && /* @__PURE__ */ (0,
|
|
5273
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: displayContent }),
|
|
5274
|
+
parsedImages.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
4791
5275
|
"div",
|
|
4792
5276
|
{
|
|
4793
5277
|
css: imageStyles,
|
|
@@ -4796,9 +5280,9 @@ var TopMatchingFieldNote = ({
|
|
|
4796
5280
|
}
|
|
4797
5281
|
}
|
|
4798
5282
|
),
|
|
4799
|
-
/* @__PURE__ */ (0,
|
|
4800
|
-
/* @__PURE__ */ (0,
|
|
4801
|
-
/* @__PURE__ */ (0,
|
|
5283
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
5284
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Icon_default, { variant: "IconFieldNotesUpdates", size: "large" }),
|
|
5285
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Text_default, { size: "xs", color: "var(--text-primary)", children: [
|
|
4802
5286
|
author,
|
|
4803
5287
|
" shared an update \u2022 ",
|
|
4804
5288
|
datePosted
|
|
@@ -4811,7 +5295,7 @@ var TopMatchingFieldNote = ({
|
|
|
4811
5295
|
};
|
|
4812
5296
|
|
|
4813
5297
|
// src/AIResponse/components/TopMatchingReview/TopMatchingReview.tsx
|
|
4814
|
-
var
|
|
5298
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
4815
5299
|
var TopMatchingReview = ({
|
|
4816
5300
|
author,
|
|
4817
5301
|
datePosted,
|
|
@@ -4823,8 +5307,8 @@ var TopMatchingReview = ({
|
|
|
4823
5307
|
}) => {
|
|
4824
5308
|
const parsedRating = typeof rating === "string" ? parseInt(rating, 10) : rating;
|
|
4825
5309
|
const displayContent = content || children;
|
|
4826
|
-
return /* @__PURE__ */ (0,
|
|
4827
|
-
/* @__PURE__ */ (0,
|
|
5310
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
5311
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
4828
5312
|
Heading_default,
|
|
4829
5313
|
{
|
|
4830
5314
|
size: "2xs",
|
|
@@ -4834,7 +5318,7 @@ var TopMatchingReview = ({
|
|
|
4834
5318
|
children: title
|
|
4835
5319
|
}
|
|
4836
5320
|
),
|
|
4837
|
-
/* @__PURE__ */ (0,
|
|
5321
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
|
|
4838
5322
|
Box_default,
|
|
4839
5323
|
{
|
|
4840
5324
|
display: "flex",
|
|
@@ -4846,10 +5330,10 @@ var TopMatchingReview = ({
|
|
|
4846
5330
|
minWidth: "335px",
|
|
4847
5331
|
className,
|
|
4848
5332
|
children: [
|
|
4849
|
-
/* @__PURE__ */ (0,
|
|
4850
|
-
/* @__PURE__ */ (0,
|
|
4851
|
-
/* @__PURE__ */ (0,
|
|
4852
|
-
/* @__PURE__ */ (0,
|
|
5333
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: displayContent }),
|
|
5334
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
5335
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Icon_default, { variant: "StarSolid", size: "large" }),
|
|
5336
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(Text_default, { size: "xs", color: "var(--text-primary)", children: [
|
|
4853
5337
|
"This review was posted by ",
|
|
4854
5338
|
author,
|
|
4855
5339
|
" on ",
|
|
@@ -4866,7 +5350,7 @@ var TopMatchingReview = ({
|
|
|
4866
5350
|
};
|
|
4867
5351
|
|
|
4868
5352
|
// src/AIResponse/AIResponse.tsx
|
|
4869
|
-
var
|
|
5353
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
4870
5354
|
var AIResponse = ({
|
|
4871
5355
|
title = `Here's what I found`,
|
|
4872
5356
|
showTitle = true,
|
|
@@ -4882,10 +5366,10 @@ var AIResponse = ({
|
|
|
4882
5366
|
markdown = false,
|
|
4883
5367
|
enableCodeCopy = true
|
|
4884
5368
|
}) => {
|
|
4885
|
-
const [visualHelpful, setVisualHelpful] = (0,
|
|
5369
|
+
const [visualHelpful, setVisualHelpful] = (0, import_react18.useState)(
|
|
4886
5370
|
void 0
|
|
4887
5371
|
);
|
|
4888
|
-
const debounceTimerRef = (0,
|
|
5372
|
+
const debounceTimerRef = (0, import_react18.useRef)(null);
|
|
4889
5373
|
const DEBOUNCE_MS = helpfulDebounceMs;
|
|
4890
5374
|
const scheduleCallback = (next) => {
|
|
4891
5375
|
if (debounceTimerRef.current) {
|
|
@@ -4912,14 +5396,14 @@ var AIResponse = ({
|
|
|
4912
5396
|
setVisualHelpful(next);
|
|
4913
5397
|
scheduleCallback(next);
|
|
4914
5398
|
};
|
|
4915
|
-
(0,
|
|
5399
|
+
(0, import_react18.useEffect)(() => {
|
|
4916
5400
|
return () => {
|
|
4917
5401
|
if (debounceTimerRef.current) {
|
|
4918
5402
|
clearTimeout(debounceTimerRef.current);
|
|
4919
5403
|
}
|
|
4920
5404
|
};
|
|
4921
5405
|
}, []);
|
|
4922
|
-
return /* @__PURE__ */ (0,
|
|
5406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
4923
5407
|
Box_default,
|
|
4924
5408
|
{
|
|
4925
5409
|
className,
|
|
@@ -4927,9 +5411,9 @@ var AIResponse = ({
|
|
|
4927
5411
|
flexDirection: "column",
|
|
4928
5412
|
gap: "var(--spacing-4)",
|
|
4929
5413
|
children: [
|
|
4930
|
-
variant !== "error" && showTitle && /* @__PURE__ */ (0,
|
|
4931
|
-
/* @__PURE__ */ (0,
|
|
4932
|
-
variant === "error" ? /* @__PURE__ */ (0,
|
|
5414
|
+
variant !== "error" && showTitle && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", color: "var(--text-primary)", children: title }),
|
|
5415
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsxs)("div", { css: getBannerStyles(variant), children: [
|
|
5416
|
+
variant === "error" ? /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: children || "An error occurred while generating your summary. Please try again." }) : markdown && typeof children === "string" ? /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4933
5417
|
MarkdownContent_default,
|
|
4934
5418
|
{
|
|
4935
5419
|
content: children,
|
|
@@ -4940,33 +5424,33 @@ var AIResponse = ({
|
|
|
4940
5424
|
ContactLandownerButton
|
|
4941
5425
|
}
|
|
4942
5426
|
}
|
|
4943
|
-
) : /* @__PURE__ */ (0,
|
|
4944
|
-
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0,
|
|
4945
|
-
/* @__PURE__ */ (0,
|
|
4946
|
-
/* @__PURE__ */ (0,
|
|
5427
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children }),
|
|
5428
|
+
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(Box_default, { display: "flex", gap: "var(--spacing-1)", alignItems: "center", children: [
|
|
5429
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon_default, { variant: "AiMagic", size: "large" }),
|
|
5430
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Text_default, { size: "xs", color: "var(--text-primary)", children: "This AI summary was generated from the property information from this package. This answer may display incorrect information." })
|
|
4947
5431
|
] }),
|
|
4948
|
-
variant === "error" && /* @__PURE__ */ (0,
|
|
5432
|
+
variant === "error" && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("div", { css: errorRetryStyles, children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4949
5433
|
Button_default,
|
|
4950
5434
|
{
|
|
4951
5435
|
variant: "secondary",
|
|
4952
5436
|
size: "md",
|
|
4953
5437
|
onClick: onErrorRetry,
|
|
4954
|
-
icon: /* @__PURE__ */ (0,
|
|
4955
|
-
children: /* @__PURE__ */ (0,
|
|
5438
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Icon_default, { variant: "ArrowRotateLeft" }),
|
|
5439
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: "Try Again" })
|
|
4956
5440
|
}
|
|
4957
5441
|
) })
|
|
4958
5442
|
] }),
|
|
4959
|
-
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0,
|
|
4960
|
-
/* @__PURE__ */ (0,
|
|
4961
|
-
/* @__PURE__ */ (0,
|
|
4962
|
-
/* @__PURE__ */ (0,
|
|
5443
|
+
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)("div", { css: footerStyles, children: [
|
|
5444
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Text_default, { size: "md", color: "var(--text-primary)", children: "Was this helpful?" }),
|
|
5445
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsxs)("div", { css: actionsStyles, children: [
|
|
5446
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4963
5447
|
Button_default,
|
|
4964
5448
|
{
|
|
4965
5449
|
variant: "text",
|
|
4966
5450
|
size: "xs",
|
|
4967
5451
|
onClick: handleHelpfulYes,
|
|
4968
5452
|
"aria-pressed": visualHelpful === "yes",
|
|
4969
|
-
children: /* @__PURE__ */ (0,
|
|
5453
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4970
5454
|
IconLabel_default,
|
|
4971
5455
|
{
|
|
4972
5456
|
variant: visualHelpful === "yes" ? "ThumbsUpSolid" : "ThumbsUp",
|
|
@@ -4975,14 +5459,14 @@ var AIResponse = ({
|
|
|
4975
5459
|
)
|
|
4976
5460
|
}
|
|
4977
5461
|
),
|
|
4978
|
-
/* @__PURE__ */ (0,
|
|
5462
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4979
5463
|
Button_default,
|
|
4980
5464
|
{
|
|
4981
5465
|
variant: "text",
|
|
4982
5466
|
size: "xs",
|
|
4983
5467
|
onClick: handleHelpfulNo,
|
|
4984
5468
|
"aria-pressed": visualHelpful === "no",
|
|
4985
|
-
children: /* @__PURE__ */ (0,
|
|
5469
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4986
5470
|
IconLabel_default,
|
|
4987
5471
|
{
|
|
4988
5472
|
variant: visualHelpful === "no" ? "ThumbsDownSolid" : "ThumbsDown",
|
|
@@ -5000,38 +5484,38 @@ var AIResponse = ({
|
|
|
5000
5484
|
var AIResponse_default = AIResponse;
|
|
5001
5485
|
|
|
5002
5486
|
// src/AvailabilityBadge/AvailabilityBadge.styles.ts
|
|
5003
|
-
var
|
|
5487
|
+
var import_react19 = require("@emotion/react");
|
|
5004
5488
|
var availabilityBadgeVariantStyles = {
|
|
5005
|
-
primary:
|
|
5489
|
+
primary: import_react19.css`
|
|
5006
5490
|
background-color: var(--color-primary-100);
|
|
5007
5491
|
color: var(--text-primary);
|
|
5008
5492
|
`,
|
|
5009
|
-
error:
|
|
5493
|
+
error: import_react19.css`
|
|
5010
5494
|
background-color: var(--surface-error);
|
|
5011
5495
|
color: var(--text-error);
|
|
5012
5496
|
`,
|
|
5013
|
-
action:
|
|
5497
|
+
action: import_react19.css`
|
|
5014
5498
|
background-color: var(--surface-action-2);
|
|
5015
5499
|
color: var(--text-primary);
|
|
5016
5500
|
`,
|
|
5017
|
-
warning:
|
|
5501
|
+
warning: import_react19.css`
|
|
5018
5502
|
background-color: var(--color-brown-200);
|
|
5019
5503
|
color: var(--text-primary);
|
|
5020
5504
|
`,
|
|
5021
|
-
neutral:
|
|
5505
|
+
neutral: import_react19.css`
|
|
5022
5506
|
background-color: var(--surface-neutral);
|
|
5023
5507
|
color: var(--text-primary);
|
|
5024
5508
|
`
|
|
5025
5509
|
};
|
|
5026
5510
|
|
|
5027
5511
|
// src/AvailabilityBadge/AvailabilityBadge.tsx
|
|
5028
|
-
var
|
|
5512
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5029
5513
|
var AvailabilityBadge = ({
|
|
5030
5514
|
children,
|
|
5031
5515
|
variant,
|
|
5032
5516
|
className
|
|
5033
5517
|
}) => {
|
|
5034
|
-
return /* @__PURE__ */ (0,
|
|
5518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5035
5519
|
Box_default,
|
|
5036
5520
|
{
|
|
5037
5521
|
display: "inline-flex",
|
|
@@ -5041,46 +5525,46 @@ var AvailabilityBadge = ({
|
|
|
5041
5525
|
borderRadius: "var(--spacing-2)",
|
|
5042
5526
|
css: availabilityBadgeVariantStyles[variant],
|
|
5043
5527
|
className,
|
|
5044
|
-
children: /* @__PURE__ */ (0,
|
|
5528
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Text_default, { size: "xs", fontWeight: "bold", children })
|
|
5045
5529
|
}
|
|
5046
5530
|
);
|
|
5047
5531
|
};
|
|
5048
5532
|
var AvailabilityBadge_default = AvailabilityBadge;
|
|
5049
5533
|
|
|
5050
5534
|
// src/Avatar/Avatar.tsx
|
|
5051
|
-
var
|
|
5052
|
-
var
|
|
5535
|
+
var import_react21 = require("@emotion/react");
|
|
5536
|
+
var import_react22 = require("react");
|
|
5053
5537
|
|
|
5054
5538
|
// src/Avatar/Avatar.styles.ts
|
|
5055
|
-
var
|
|
5539
|
+
var import_react20 = require("@emotion/react");
|
|
5056
5540
|
var avatarSizeStyles = {
|
|
5057
|
-
xs:
|
|
5541
|
+
xs: import_react20.css`
|
|
5058
5542
|
width: 24px;
|
|
5059
5543
|
height: 24px;
|
|
5060
5544
|
`,
|
|
5061
|
-
sm:
|
|
5545
|
+
sm: import_react20.css`
|
|
5062
5546
|
width: 32px;
|
|
5063
5547
|
height: 32px;
|
|
5064
5548
|
`,
|
|
5065
|
-
md:
|
|
5549
|
+
md: import_react20.css`
|
|
5066
5550
|
width: 60px;
|
|
5067
5551
|
height: 60px;
|
|
5068
5552
|
`,
|
|
5069
|
-
lg:
|
|
5553
|
+
lg: import_react20.css`
|
|
5070
5554
|
width: 80px;
|
|
5071
5555
|
height: 80px;
|
|
5072
5556
|
`,
|
|
5073
|
-
xl:
|
|
5557
|
+
xl: import_react20.css`
|
|
5074
5558
|
width: 120px;
|
|
5075
5559
|
height: 120px;
|
|
5076
5560
|
`
|
|
5077
5561
|
};
|
|
5078
|
-
var avatarBaseStyles =
|
|
5562
|
+
var avatarBaseStyles = import_react20.css`
|
|
5079
5563
|
border-radius: 50%;
|
|
5080
5564
|
object-fit: cover;
|
|
5081
5565
|
display: block;
|
|
5082
5566
|
`;
|
|
5083
|
-
var avatarTextStyles =
|
|
5567
|
+
var avatarTextStyles = import_react20.css`
|
|
5084
5568
|
border-radius: 50%;
|
|
5085
5569
|
background-color: var(--surface-action);
|
|
5086
5570
|
color: white;
|
|
@@ -5090,7 +5574,7 @@ var avatarTextStyles = import_react16.css`
|
|
|
5090
5574
|
font-weight: bold;
|
|
5091
5575
|
user-select: none;
|
|
5092
5576
|
`;
|
|
5093
|
-
var avatarFallbackStyles =
|
|
5577
|
+
var avatarFallbackStyles = import_react20.css`
|
|
5094
5578
|
border-radius: 50%;
|
|
5095
5579
|
background-color: var(--color-neutral-100);
|
|
5096
5580
|
color: var(--color-neutral-500);
|
|
@@ -5100,7 +5584,7 @@ var avatarFallbackStyles = import_react16.css`
|
|
|
5100
5584
|
`;
|
|
5101
5585
|
|
|
5102
5586
|
// src/Avatar/Avatar.tsx
|
|
5103
|
-
var
|
|
5587
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
5104
5588
|
var Avatar = ({
|
|
5105
5589
|
type = "image",
|
|
5106
5590
|
src,
|
|
@@ -5109,7 +5593,7 @@ var Avatar = ({
|
|
|
5109
5593
|
size = "md",
|
|
5110
5594
|
className
|
|
5111
5595
|
}) => {
|
|
5112
|
-
const [hasImageError, setHasImageError] = (0,
|
|
5596
|
+
const [hasImageError, setHasImageError] = (0, import_react22.useState)(false);
|
|
5113
5597
|
const handleImageError = () => {
|
|
5114
5598
|
setHasImageError(true);
|
|
5115
5599
|
};
|
|
@@ -5150,7 +5634,7 @@ var Avatar = ({
|
|
|
5150
5634
|
};
|
|
5151
5635
|
if (type === "text" && text) {
|
|
5152
5636
|
const initials = getInitials(text);
|
|
5153
|
-
return /* @__PURE__ */ (0,
|
|
5637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5154
5638
|
"div",
|
|
5155
5639
|
{
|
|
5156
5640
|
css: [
|
|
@@ -5165,7 +5649,7 @@ var Avatar = ({
|
|
|
5165
5649
|
);
|
|
5166
5650
|
}
|
|
5167
5651
|
if (type === "image" && src && !hasImageError) {
|
|
5168
|
-
return /* @__PURE__ */ (0,
|
|
5652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5169
5653
|
"img",
|
|
5170
5654
|
{
|
|
5171
5655
|
src,
|
|
@@ -5176,18 +5660,18 @@ var Avatar = ({
|
|
|
5176
5660
|
}
|
|
5177
5661
|
);
|
|
5178
5662
|
}
|
|
5179
|
-
return /* @__PURE__ */ (0,
|
|
5663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5180
5664
|
"div",
|
|
5181
5665
|
{
|
|
5182
5666
|
css: [avatarFallbackStyles, avatarSizeStyles[size]],
|
|
5183
5667
|
className,
|
|
5184
5668
|
title: alt,
|
|
5185
|
-
children: /* @__PURE__ */ (0,
|
|
5669
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5186
5670
|
Icon_default,
|
|
5187
5671
|
{
|
|
5188
5672
|
variant: "User",
|
|
5189
5673
|
size: getIconSize(size),
|
|
5190
|
-
css: size === "lg" ?
|
|
5674
|
+
css: size === "lg" ? import_react21.css`
|
|
5191
5675
|
width: 28px;
|
|
5192
5676
|
height: 28px;
|
|
5193
5677
|
` : void 0
|
|
@@ -5199,15 +5683,15 @@ var Avatar = ({
|
|
|
5199
5683
|
var Avatar_default = Avatar;
|
|
5200
5684
|
|
|
5201
5685
|
// src/ChatWidget/ChatWidget.tsx
|
|
5202
|
-
var
|
|
5686
|
+
var import_react34 = __toESM(require("react"));
|
|
5203
5687
|
|
|
5204
5688
|
// src/Divider/Divider.tsx
|
|
5205
5689
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
5206
5690
|
var import_styled_system2 = require("styled-system");
|
|
5207
5691
|
|
|
5208
5692
|
// src/Divider/Divider.styles.ts
|
|
5209
|
-
var
|
|
5210
|
-
var dividerStyles =
|
|
5693
|
+
var import_react23 = require("@emotion/react");
|
|
5694
|
+
var dividerStyles = import_react23.css`
|
|
5211
5695
|
width: 100%;
|
|
5212
5696
|
height: 1px;
|
|
5213
5697
|
border: 0;
|
|
@@ -5215,28 +5699,28 @@ var dividerStyles = import_react19.css`
|
|
|
5215
5699
|
`;
|
|
5216
5700
|
|
|
5217
5701
|
// src/Divider/Divider.tsx
|
|
5218
|
-
var
|
|
5702
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
5219
5703
|
var StyledHr = import_styled4.default.hr`
|
|
5220
5704
|
${dividerStyles}
|
|
5221
5705
|
${import_styled_system2.space}
|
|
5222
5706
|
`;
|
|
5223
5707
|
var Divider = ({ className, ...rest }) => {
|
|
5224
|
-
return /* @__PURE__ */ (0,
|
|
5708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(StyledHr, { className, ...rest });
|
|
5225
5709
|
};
|
|
5226
5710
|
var Divider_default = Divider;
|
|
5227
5711
|
|
|
5228
5712
|
// src/Form/TextArea.tsx
|
|
5229
|
-
var
|
|
5230
|
-
var
|
|
5713
|
+
var import_react25 = require("@emotion/react");
|
|
5714
|
+
var import_react26 = require("react");
|
|
5231
5715
|
|
|
5232
5716
|
// src/Form/TextArea.styles.ts
|
|
5233
|
-
var
|
|
5234
|
-
var wrapperStyles =
|
|
5717
|
+
var import_react24 = require("@emotion/react");
|
|
5718
|
+
var wrapperStyles = import_react24.css`
|
|
5235
5719
|
position: relative;
|
|
5236
5720
|
display: inline-block;
|
|
5237
5721
|
width: 100%;
|
|
5238
5722
|
`;
|
|
5239
|
-
var textareaBase =
|
|
5723
|
+
var textareaBase = import_react24.css`
|
|
5240
5724
|
width: 100%;
|
|
5241
5725
|
box-sizing: border-box;
|
|
5242
5726
|
font: inherit;
|
|
@@ -5270,32 +5754,32 @@ var textareaBase = import_react20.css`
|
|
|
5270
5754
|
cursor: default;
|
|
5271
5755
|
}
|
|
5272
5756
|
`;
|
|
5273
|
-
var variantError =
|
|
5757
|
+
var variantError = import_react24.css`
|
|
5274
5758
|
border-color: var(--border-error);
|
|
5275
5759
|
&:focus {
|
|
5276
5760
|
border-color: var(--border-error);
|
|
5277
5761
|
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
5278
5762
|
}
|
|
5279
5763
|
`;
|
|
5280
|
-
var variantSuccess =
|
|
5764
|
+
var variantSuccess = import_react24.css`
|
|
5281
5765
|
border-color: var(--color-success-500);
|
|
5282
5766
|
&:focus {
|
|
5283
5767
|
border-color: var(--color-success-500);
|
|
5284
5768
|
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
5285
5769
|
}
|
|
5286
5770
|
`;
|
|
5287
|
-
var submitButtonContainer =
|
|
5771
|
+
var submitButtonContainer = import_react24.css`
|
|
5288
5772
|
position: absolute;
|
|
5289
5773
|
right: var(--spacing-4);
|
|
5290
5774
|
bottom: var(--spacing-4);
|
|
5291
5775
|
`;
|
|
5292
|
-
var textareaWithSubmit =
|
|
5776
|
+
var textareaWithSubmit = import_react24.css`
|
|
5293
5777
|
padding-right: var(--spacing-16);
|
|
5294
5778
|
`;
|
|
5295
5779
|
|
|
5296
5780
|
// src/Form/TextArea.tsx
|
|
5297
|
-
var
|
|
5298
|
-
var TextArea = (0,
|
|
5781
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
5782
|
+
var TextArea = (0, import_react26.forwardRef)(
|
|
5299
5783
|
({
|
|
5300
5784
|
rows = 3,
|
|
5301
5785
|
variant = "default",
|
|
@@ -5315,8 +5799,8 @@ var TextArea = (0, import_react22.forwardRef)(
|
|
|
5315
5799
|
submitOnEnter = true,
|
|
5316
5800
|
...props
|
|
5317
5801
|
}, ref) => {
|
|
5318
|
-
const innerRef = (0,
|
|
5319
|
-
(0,
|
|
5802
|
+
const innerRef = (0, import_react26.useRef)(null);
|
|
5803
|
+
(0, import_react26.useEffect)(() => {
|
|
5320
5804
|
const el = innerRef.current;
|
|
5321
5805
|
if (!el || !autoExpand)
|
|
5322
5806
|
return;
|
|
@@ -5352,8 +5836,8 @@ var TextArea = (0, import_react22.forwardRef)(
|
|
|
5352
5836
|
onSubmit();
|
|
5353
5837
|
}
|
|
5354
5838
|
};
|
|
5355
|
-
return /* @__PURE__ */ (0,
|
|
5356
|
-
/* @__PURE__ */ (0,
|
|
5839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)("div", { css: wrapperStyles, children: [
|
|
5840
|
+
/* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5357
5841
|
"textarea",
|
|
5358
5842
|
{
|
|
5359
5843
|
ref: (node) => {
|
|
@@ -5370,7 +5854,7 @@ var TextArea = (0, import_react22.forwardRef)(
|
|
|
5370
5854
|
textareaBase,
|
|
5371
5855
|
variant === "error" && variantError,
|
|
5372
5856
|
variant === "success" && variantSuccess,
|
|
5373
|
-
|
|
5857
|
+
import_react25.css`
|
|
5374
5858
|
resize: ${resize};
|
|
5375
5859
|
`,
|
|
5376
5860
|
showSubmit && textareaWithSubmit
|
|
@@ -5383,14 +5867,14 @@ var TextArea = (0, import_react22.forwardRef)(
|
|
|
5383
5867
|
...props
|
|
5384
5868
|
}
|
|
5385
5869
|
),
|
|
5386
|
-
showSubmit && /* @__PURE__ */ (0,
|
|
5870
|
+
showSubmit && /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("div", { css: submitButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5387
5871
|
Button_default,
|
|
5388
5872
|
{
|
|
5389
5873
|
size: "xs",
|
|
5390
5874
|
"aria-label": submitAriaLabel,
|
|
5391
5875
|
onClick: onSubmit,
|
|
5392
5876
|
disabled: disabled || submitDisabled,
|
|
5393
|
-
icon: /* @__PURE__ */ (0,
|
|
5877
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5394
5878
|
Icon_default,
|
|
5395
5879
|
{
|
|
5396
5880
|
variant: "PaperPlane",
|
|
@@ -5407,14 +5891,14 @@ TextArea.displayName = "TextArea";
|
|
|
5407
5891
|
var TextArea_default = TextArea;
|
|
5408
5892
|
|
|
5409
5893
|
// src/MessageBubble/MessageBubble.styles.ts
|
|
5410
|
-
var
|
|
5411
|
-
var getRootStyles = (variant) =>
|
|
5894
|
+
var import_react27 = require("@emotion/react");
|
|
5895
|
+
var getRootStyles = (variant) => import_react27.css`
|
|
5412
5896
|
display: flex;
|
|
5413
5897
|
flex-direction: column;
|
|
5414
5898
|
gap: var(--spacing-1);
|
|
5415
5899
|
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
5416
5900
|
`;
|
|
5417
|
-
var getBubbleStyles = (variant) =>
|
|
5901
|
+
var getBubbleStyles = (variant) => import_react27.css`
|
|
5418
5902
|
max-width: 100%;
|
|
5419
5903
|
width: 100%;
|
|
5420
5904
|
box-sizing: border-box;
|
|
@@ -5431,22 +5915,22 @@ var getBubbleStyles = (variant) => import_react23.css`
|
|
|
5431
5915
|
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
5432
5916
|
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
5433
5917
|
`;
|
|
5434
|
-
var contentStyles =
|
|
5918
|
+
var contentStyles = import_react27.css`
|
|
5435
5919
|
flex: 1 1 auto;
|
|
5436
5920
|
min-width: 1px;
|
|
5437
5921
|
min-height: 1px;
|
|
5438
5922
|
`;
|
|
5439
5923
|
|
|
5440
5924
|
// src/MessageBubble/MessageBubble.tsx
|
|
5441
|
-
var
|
|
5925
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
5442
5926
|
var MessageBubble = ({
|
|
5443
5927
|
variant = "sent",
|
|
5444
5928
|
timestamp,
|
|
5445
5929
|
className,
|
|
5446
5930
|
children
|
|
5447
5931
|
}) => {
|
|
5448
|
-
return /* @__PURE__ */ (0,
|
|
5449
|
-
timestamp && /* @__PURE__ */ (0,
|
|
5932
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)("div", { className, css: getRootStyles(variant), children: [
|
|
5933
|
+
timestamp && /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
5450
5934
|
Text_default,
|
|
5451
5935
|
{
|
|
5452
5936
|
size: "xs",
|
|
@@ -5455,40 +5939,40 @@ var MessageBubble = ({
|
|
|
5455
5939
|
children: timestamp
|
|
5456
5940
|
}
|
|
5457
5941
|
),
|
|
5458
|
-
/* @__PURE__ */ (0,
|
|
5942
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { css: getBubbleStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { css: contentStyles, children }) })
|
|
5459
5943
|
] });
|
|
5460
5944
|
};
|
|
5461
5945
|
var MessageBubble_default = MessageBubble;
|
|
5462
5946
|
|
|
5463
5947
|
// src/TagChip/TagChip.styles.ts
|
|
5464
|
-
var
|
|
5948
|
+
var import_react28 = require("@emotion/react");
|
|
5465
5949
|
var tagChipVariantStyles = {
|
|
5466
|
-
default:
|
|
5950
|
+
default: import_react28.css`
|
|
5467
5951
|
background-color: var(--surface-page);
|
|
5468
5952
|
border: 1px solid var(--border-primary);
|
|
5469
5953
|
color: var(--text-primary);
|
|
5470
5954
|
`,
|
|
5471
|
-
active:
|
|
5955
|
+
active: import_react28.css`
|
|
5472
5956
|
background-color: var(--text-primary);
|
|
5473
5957
|
border: 1px solid var(--border-secondary);
|
|
5474
5958
|
color: var(--color-base-white);
|
|
5475
5959
|
`,
|
|
5476
|
-
primary:
|
|
5960
|
+
primary: import_react28.css`
|
|
5477
5961
|
background-color: var(--surface-disabled);
|
|
5478
5962
|
border: 1px solid var(--surface-disabled);
|
|
5479
5963
|
color: var(--text-primary);
|
|
5480
5964
|
`,
|
|
5481
|
-
error:
|
|
5965
|
+
error: import_react28.css`
|
|
5482
5966
|
background-color: var(--surface-error);
|
|
5483
5967
|
border: 1px solid var(--color-red-300);
|
|
5484
5968
|
color: var(--text-error);
|
|
5485
5969
|
`,
|
|
5486
|
-
success:
|
|
5970
|
+
success: import_react28.css`
|
|
5487
5971
|
background-color: var(--surface-success);
|
|
5488
5972
|
border: 1px solid var(--color-green-300);
|
|
5489
5973
|
color: var(--text-primary);
|
|
5490
5974
|
`,
|
|
5491
|
-
warning:
|
|
5975
|
+
warning: import_react28.css`
|
|
5492
5976
|
background-color: var(--surface-subtle);
|
|
5493
5977
|
border: 1px solid var(--color-brown-200);
|
|
5494
5978
|
color: var(--text-primary);
|
|
@@ -5496,14 +5980,14 @@ var tagChipVariantStyles = {
|
|
|
5496
5980
|
};
|
|
5497
5981
|
|
|
5498
5982
|
// src/TagChip/TagChip.tsx
|
|
5499
|
-
var
|
|
5983
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
5500
5984
|
var TagChip = ({
|
|
5501
5985
|
variant = "primary",
|
|
5502
5986
|
className,
|
|
5503
5987
|
children,
|
|
5504
5988
|
...rest
|
|
5505
5989
|
}) => {
|
|
5506
|
-
return /* @__PURE__ */ (0,
|
|
5990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5507
5991
|
Box_default,
|
|
5508
5992
|
{
|
|
5509
5993
|
display: "inline-flex",
|
|
@@ -5514,18 +5998,18 @@ var TagChip = ({
|
|
|
5514
5998
|
css: tagChipVariantStyles[variant],
|
|
5515
5999
|
className,
|
|
5516
6000
|
...rest,
|
|
5517
|
-
children: /* @__PURE__ */ (0,
|
|
6001
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { as: "span", size: "sm", fontWeight: "normal", children })
|
|
5518
6002
|
}
|
|
5519
6003
|
);
|
|
5520
6004
|
};
|
|
5521
6005
|
var TagChip_default = TagChip;
|
|
5522
6006
|
|
|
5523
6007
|
// src/Widget/Widget.tsx
|
|
5524
|
-
var
|
|
6008
|
+
var import_react30 = require("react");
|
|
5525
6009
|
|
|
5526
6010
|
// src/Widget/Widget.styles.ts
|
|
5527
|
-
var
|
|
5528
|
-
var panelContainer =
|
|
6011
|
+
var import_react29 = require("@emotion/react");
|
|
6012
|
+
var panelContainer = import_react29.css`
|
|
5529
6013
|
position: absolute;
|
|
5530
6014
|
right: 0;
|
|
5531
6015
|
bottom: calc(100% + var(--spacing-2));
|
|
@@ -5539,7 +6023,7 @@ var panelContainer = import_react25.css`
|
|
|
5539
6023
|
justify-content: stretch;
|
|
5540
6024
|
}
|
|
5541
6025
|
`;
|
|
5542
|
-
var panelCard = (width2) =>
|
|
6026
|
+
var panelCard = (width2) => import_react29.css`
|
|
5543
6027
|
background: var(--surface-page);
|
|
5544
6028
|
color: var(--text-primary);
|
|
5545
6029
|
border: 1px solid var(--border-primary);
|
|
@@ -5574,16 +6058,16 @@ var panelCard = (width2) => import_react25.css`
|
|
|
5574
6058
|
animation: none;
|
|
5575
6059
|
}
|
|
5576
6060
|
`;
|
|
5577
|
-
var widgetTrigger =
|
|
6061
|
+
var widgetTrigger = import_react29.css`
|
|
5578
6062
|
margin: var(--spacing-1);
|
|
5579
6063
|
box-shadow: var(--shadow-2xl);
|
|
5580
6064
|
`;
|
|
5581
6065
|
|
|
5582
6066
|
// src/Widget/Widget.tsx
|
|
5583
|
-
var
|
|
5584
|
-
var WidgetContext = (0,
|
|
6067
|
+
var import_jsx_runtime226 = require("@emotion/react/jsx-runtime");
|
|
6068
|
+
var WidgetContext = (0, import_react30.createContext)(null);
|
|
5585
6069
|
var useWidgetContext = () => {
|
|
5586
|
-
const ctx = (0,
|
|
6070
|
+
const ctx = (0, import_react30.useContext)(WidgetContext);
|
|
5587
6071
|
if (!ctx)
|
|
5588
6072
|
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
5589
6073
|
return ctx;
|
|
@@ -5591,7 +6075,7 @@ var useWidgetContext = () => {
|
|
|
5591
6075
|
var WidgetTrigger = () => {
|
|
5592
6076
|
const { expanded, toggle, triggerRef, icon: icon2, expandedIcon } = useWidgetContext();
|
|
5593
6077
|
const currentIcon = expanded ? expandedIcon : icon2;
|
|
5594
|
-
return /* @__PURE__ */ (0,
|
|
6078
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(import_jsx_runtime226.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5595
6079
|
Button_default,
|
|
5596
6080
|
{
|
|
5597
6081
|
ref: triggerRef,
|
|
@@ -5599,7 +6083,7 @@ var WidgetTrigger = () => {
|
|
|
5599
6083
|
"aria-haspopup": "dialog",
|
|
5600
6084
|
onClick: toggle,
|
|
5601
6085
|
size: "lg",
|
|
5602
|
-
icon: /* @__PURE__ */ (0,
|
|
6086
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Icon_default, { variant: currentIcon, size: "xxlarge" }),
|
|
5603
6087
|
css: widgetTrigger
|
|
5604
6088
|
}
|
|
5605
6089
|
) });
|
|
@@ -5608,7 +6092,7 @@ var WidgetPanel = ({ className, style, children }) => {
|
|
|
5608
6092
|
const { expanded, panelWidth } = useWidgetContext();
|
|
5609
6093
|
if (!expanded)
|
|
5610
6094
|
return null;
|
|
5611
|
-
return /* @__PURE__ */ (0,
|
|
6095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { css: panelContainer, className, style, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5612
6096
|
Box_default,
|
|
5613
6097
|
{
|
|
5614
6098
|
css: panelCard(panelWidth),
|
|
@@ -5632,12 +6116,12 @@ var WidgetRoot = ({
|
|
|
5632
6116
|
containerProps,
|
|
5633
6117
|
closeOnClickOutside = true
|
|
5634
6118
|
}) => {
|
|
5635
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
6119
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react30.useState)(defaultExpanded);
|
|
5636
6120
|
const isControlled = typeof expanded === "boolean";
|
|
5637
6121
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
5638
|
-
const triggerRef = (0,
|
|
5639
|
-
const containerRef = (0,
|
|
5640
|
-
const setExpanded = (0,
|
|
6122
|
+
const triggerRef = (0, import_react30.useRef)(null);
|
|
6123
|
+
const containerRef = (0, import_react30.useRef)(null);
|
|
6124
|
+
const setExpanded = (0, import_react30.useCallback)(
|
|
5641
6125
|
(next) => {
|
|
5642
6126
|
if (!isControlled)
|
|
5643
6127
|
setInternalExpanded(next);
|
|
@@ -5651,11 +6135,11 @@ var WidgetRoot = ({
|
|
|
5651
6135
|
},
|
|
5652
6136
|
[isControlled, onExpandedChange]
|
|
5653
6137
|
);
|
|
5654
|
-
const toggle = (0,
|
|
6138
|
+
const toggle = (0, import_react30.useCallback)(
|
|
5655
6139
|
() => setExpanded(!isExpanded),
|
|
5656
6140
|
[isExpanded, setExpanded]
|
|
5657
6141
|
);
|
|
5658
|
-
(0,
|
|
6142
|
+
(0, import_react30.useEffect)(() => {
|
|
5659
6143
|
if (!isExpanded || !closeOnClickOutside)
|
|
5660
6144
|
return;
|
|
5661
6145
|
const onDocClick = (e) => {
|
|
@@ -5669,7 +6153,7 @@ var WidgetRoot = ({
|
|
|
5669
6153
|
document.addEventListener("mousedown", onDocClick);
|
|
5670
6154
|
return () => document.removeEventListener("mousedown", onDocClick);
|
|
5671
6155
|
}, [isExpanded, setExpanded, closeOnClickOutside]);
|
|
5672
|
-
(0,
|
|
6156
|
+
(0, import_react30.useEffect)(() => {
|
|
5673
6157
|
if (!isExpanded)
|
|
5674
6158
|
return;
|
|
5675
6159
|
const onKey = (e) => {
|
|
@@ -5679,7 +6163,7 @@ var WidgetRoot = ({
|
|
|
5679
6163
|
document.addEventListener("keydown", onKey);
|
|
5680
6164
|
return () => document.removeEventListener("keydown", onKey);
|
|
5681
6165
|
}, [isExpanded, setExpanded]);
|
|
5682
|
-
const value = (0,
|
|
6166
|
+
const value = (0, import_react30.useMemo)(
|
|
5683
6167
|
() => ({
|
|
5684
6168
|
expanded: isExpanded,
|
|
5685
6169
|
toggle,
|
|
@@ -5690,7 +6174,7 @@ var WidgetRoot = ({
|
|
|
5690
6174
|
}),
|
|
5691
6175
|
[expandedIcon, icon2, isExpanded, panelWidth, toggle]
|
|
5692
6176
|
);
|
|
5693
|
-
return /* @__PURE__ */ (0,
|
|
6177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5694
6178
|
Box_default,
|
|
5695
6179
|
{
|
|
5696
6180
|
ref: containerRef,
|
|
@@ -5701,7 +6185,7 @@ var WidgetRoot = ({
|
|
|
5701
6185
|
bottom: "var(--spacing-6)",
|
|
5702
6186
|
zIndex: 100,
|
|
5703
6187
|
...containerProps,
|
|
5704
|
-
children: /* @__PURE__ */ (0,
|
|
6188
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(WidgetContext.Provider, { value, children })
|
|
5705
6189
|
}
|
|
5706
6190
|
);
|
|
5707
6191
|
};
|
|
@@ -5712,8 +6196,8 @@ var Widget = Object.assign(WidgetRoot, {
|
|
|
5712
6196
|
var Widget_default = Widget;
|
|
5713
6197
|
|
|
5714
6198
|
// src/ChatWidget/ChatWidget.styles.ts
|
|
5715
|
-
var
|
|
5716
|
-
var sentWrapperStyles =
|
|
6199
|
+
var import_react31 = require("@emotion/react");
|
|
6200
|
+
var sentWrapperStyles = import_react31.css`
|
|
5717
6201
|
align-self: flex-end;
|
|
5718
6202
|
max-width: 90%;
|
|
5719
6203
|
width: 100%;
|
|
@@ -5721,14 +6205,14 @@ var sentWrapperStyles = import_react27.css`
|
|
|
5721
6205
|
overflow-wrap: anywhere;
|
|
5722
6206
|
padding-top: var(--spacing-4);
|
|
5723
6207
|
`;
|
|
5724
|
-
var receivedWrapperStyles =
|
|
6208
|
+
var receivedWrapperStyles = import_react31.css`
|
|
5725
6209
|
align-self: flex-start;
|
|
5726
6210
|
width: 100%;
|
|
5727
6211
|
min-width: 0;
|
|
5728
6212
|
overflow-wrap: anywhere;
|
|
5729
6213
|
padding-top: var(--spacing-4);
|
|
5730
6214
|
`;
|
|
5731
|
-
var containerStyles =
|
|
6215
|
+
var containerStyles = import_react31.css`
|
|
5732
6216
|
display: flex;
|
|
5733
6217
|
flex-direction: column;
|
|
5734
6218
|
min-height: 0;
|
|
@@ -5740,13 +6224,13 @@ var containerStyles = import_react27.css`
|
|
|
5740
6224
|
max-height: 100%;
|
|
5741
6225
|
}
|
|
5742
6226
|
`;
|
|
5743
|
-
var thinkingRowStyles =
|
|
6227
|
+
var thinkingRowStyles = import_react31.css`
|
|
5744
6228
|
display: flex;
|
|
5745
6229
|
align-items: center;
|
|
5746
6230
|
gap: var(--spacing-2);
|
|
5747
6231
|
color: var(--text-primary);
|
|
5748
6232
|
`;
|
|
5749
|
-
var thinkingTextStyles =
|
|
6233
|
+
var thinkingTextStyles = import_react31.css`
|
|
5750
6234
|
animation: ltchat-pulse 1.6s ease-in-out infinite;
|
|
5751
6235
|
|
|
5752
6236
|
@keyframes ltchat-pulse {
|
|
@@ -5759,7 +6243,7 @@ var thinkingTextStyles = import_react27.css`
|
|
|
5759
6243
|
}
|
|
5760
6244
|
}
|
|
5761
6245
|
`;
|
|
5762
|
-
var badge =
|
|
6246
|
+
var badge = import_react31.css`
|
|
5763
6247
|
width: var(--spacing-11);
|
|
5764
6248
|
height: var(--spacing-11);
|
|
5765
6249
|
border-radius: var(--radius-round);
|
|
@@ -5769,18 +6253,18 @@ var badge = import_react27.css`
|
|
|
5769
6253
|
background-color: var(--color-primary-500);
|
|
5770
6254
|
color: var(--color-base-white);
|
|
5771
6255
|
`;
|
|
5772
|
-
var closeButtonContent =
|
|
6256
|
+
var closeButtonContent = import_react31.css`
|
|
5773
6257
|
display: inline-flex;
|
|
5774
6258
|
align-items: center;
|
|
5775
6259
|
gap: var(--spacing-2);
|
|
5776
6260
|
`;
|
|
5777
6261
|
|
|
5778
6262
|
// src/ChatWidget/components/AskBuckButton.tsx
|
|
5779
|
-
var
|
|
6263
|
+
var import_react33 = __toESM(require("react"));
|
|
5780
6264
|
|
|
5781
6265
|
// src/ChatWidget/components/AskBuckButton.styles.ts
|
|
5782
|
-
var
|
|
5783
|
-
var rotateGradient =
|
|
6266
|
+
var import_react32 = require("@emotion/react");
|
|
6267
|
+
var rotateGradient = import_react32.keyframes`
|
|
5784
6268
|
0% {
|
|
5785
6269
|
--gradient-angle: 0deg;
|
|
5786
6270
|
}
|
|
@@ -5788,7 +6272,7 @@ var rotateGradient = import_react28.keyframes`
|
|
|
5788
6272
|
--gradient-angle: 360deg;
|
|
5789
6273
|
}
|
|
5790
6274
|
`;
|
|
5791
|
-
var triggerWrapperStyles = (isAnimating) =>
|
|
6275
|
+
var triggerWrapperStyles = (isAnimating) => import_react32.css`
|
|
5792
6276
|
position: relative;
|
|
5793
6277
|
display: inline-block;
|
|
5794
6278
|
|
|
@@ -5802,7 +6286,7 @@ var triggerWrapperStyles = (isAnimating) => import_react28.css`
|
|
|
5802
6286
|
box-shadow: 0px 0px var(--shadow-blur-lg, 24px)
|
|
5803
6287
|
var(--shadow-spread-xs, -4px) rgba(17, 17, 17, 0.1);
|
|
5804
6288
|
|
|
5805
|
-
${isAnimating ?
|
|
6289
|
+
${isAnimating ? import_react32.css`
|
|
5806
6290
|
/* Register the custom property */
|
|
5807
6291
|
@property --gradient-angle {
|
|
5808
6292
|
syntax: '<angle>';
|
|
@@ -5820,13 +6304,13 @@ var triggerWrapperStyles = (isAnimating) => import_react28.css`
|
|
|
5820
6304
|
var(--color-primary-600) 100%
|
|
5821
6305
|
);
|
|
5822
6306
|
animation: ${rotateGradient} 3s linear infinite;
|
|
5823
|
-
` :
|
|
6307
|
+
` : import_react32.css`
|
|
5824
6308
|
/* Static border when not animating */
|
|
5825
6309
|
background: var(--color-primary-600);
|
|
5826
6310
|
`}
|
|
5827
6311
|
}
|
|
5828
6312
|
`;
|
|
5829
|
-
var badgeStyles =
|
|
6313
|
+
var badgeStyles = import_react32.css`
|
|
5830
6314
|
display: inline-flex;
|
|
5831
6315
|
align-items: center;
|
|
5832
6316
|
justify-content: center;
|
|
@@ -5841,7 +6325,7 @@ var badgeStyles = import_react28.css`
|
|
|
5841
6325
|
flex-shrink: 0;
|
|
5842
6326
|
margin-right: var(--spacing-1);
|
|
5843
6327
|
`;
|
|
5844
|
-
var buttonOverrideStyles =
|
|
6328
|
+
var buttonOverrideStyles = import_react32.css`
|
|
5845
6329
|
background: var(--surface-page);
|
|
5846
6330
|
border: none;
|
|
5847
6331
|
border-radius: var(--radius-round);
|
|
@@ -5869,23 +6353,23 @@ var buttonOverrideStyles = import_react28.css`
|
|
|
5869
6353
|
`;
|
|
5870
6354
|
|
|
5871
6355
|
// src/ChatWidget/components/AskBuckButton.tsx
|
|
5872
|
-
var
|
|
5873
|
-
var AskBuckButton =
|
|
6356
|
+
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6357
|
+
var AskBuckButton = import_react33.default.forwardRef(
|
|
5874
6358
|
({ isAnimating = true, children = "Ask Buck", badgeCount }, ref) => {
|
|
5875
6359
|
var _a;
|
|
5876
|
-
const widgetContext = (0,
|
|
6360
|
+
const widgetContext = (0, import_react33.useContext)(WidgetContext);
|
|
5877
6361
|
const isExpanded = (_a = widgetContext == null ? void 0 : widgetContext.expanded) != null ? _a : false;
|
|
5878
6362
|
const showBadge = !isExpanded && badgeCount !== void 0 && badgeCount > 0;
|
|
5879
|
-
return /* @__PURE__ */ (0,
|
|
6363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", { css: triggerWrapperStyles(isAnimating), children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5880
6364
|
Button_default,
|
|
5881
6365
|
{
|
|
5882
6366
|
ref,
|
|
5883
6367
|
"aria-expanded": widgetContext == null ? void 0 : widgetContext.expanded,
|
|
5884
6368
|
"aria-haspopup": "dialog",
|
|
5885
6369
|
onClick: widgetContext == null ? void 0 : widgetContext.toggle,
|
|
5886
|
-
icon: /* @__PURE__ */ (0,
|
|
5887
|
-
showBadge && /* @__PURE__ */ (0,
|
|
5888
|
-
/* @__PURE__ */ (0,
|
|
6370
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(import_jsx_runtime227.Fragment, { children: [
|
|
6371
|
+
showBadge && /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("span", { css: badgeStyles, children: badgeCount }),
|
|
6372
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5889
6373
|
Icon_default,
|
|
5890
6374
|
{
|
|
5891
6375
|
variant: isExpanded ? "AngleDownSharp" : "ConversationalSearchAi",
|
|
@@ -5903,9 +6387,9 @@ AskBuckButton.displayName = "AskBuckButton";
|
|
|
5903
6387
|
var AskBuckButton_default = AskBuckButton;
|
|
5904
6388
|
|
|
5905
6389
|
// src/ChatWidget/ChatWidget.tsx
|
|
5906
|
-
var
|
|
6390
|
+
var import_jsx_runtime228 = require("@emotion/react/jsx-runtime");
|
|
5907
6391
|
var DEFAULT_EMPTY_STATE = [
|
|
5908
|
-
/* @__PURE__ */ (0,
|
|
6392
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
5909
6393
|
AIResponse_default,
|
|
5910
6394
|
{
|
|
5911
6395
|
showDisclaimer: false,
|
|
@@ -5938,14 +6422,14 @@ var ChatWidget = ({
|
|
|
5938
6422
|
notificationCount,
|
|
5939
6423
|
closeOnClickOutside = true
|
|
5940
6424
|
}) => {
|
|
5941
|
-
const [value, setValue] = (0,
|
|
5942
|
-
const scrollRef = (0,
|
|
5943
|
-
const savedScrollPosition = (0,
|
|
5944
|
-
const previousMessagesLength = (0,
|
|
6425
|
+
const [value, setValue] = (0, import_react34.useState)("");
|
|
6426
|
+
const scrollRef = (0, import_react34.useRef)(null);
|
|
6427
|
+
const savedScrollPosition = (0, import_react34.useRef)(0);
|
|
6428
|
+
const previousMessagesLength = (0, import_react34.useRef)(messages.length);
|
|
5945
6429
|
const isControlled = typeof expanded === "boolean";
|
|
5946
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
6430
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react34.useState)(defaultExpanded);
|
|
5947
6431
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
5948
|
-
const setExpanded = (0,
|
|
6432
|
+
const setExpanded = (0, import_react34.useCallback)(
|
|
5949
6433
|
(next) => {
|
|
5950
6434
|
if (!next && scrollRef.current) {
|
|
5951
6435
|
savedScrollPosition.current = scrollRef.current.scrollTop;
|
|
@@ -5956,7 +6440,7 @@ var ChatWidget = ({
|
|
|
5956
6440
|
},
|
|
5957
6441
|
[isControlled, onExpandedChange]
|
|
5958
6442
|
);
|
|
5959
|
-
(0,
|
|
6443
|
+
(0, import_react34.useEffect)(() => {
|
|
5960
6444
|
const el = scrollRef.current;
|
|
5961
6445
|
if (!el || !isExpanded)
|
|
5962
6446
|
return;
|
|
@@ -5966,7 +6450,7 @@ var ChatWidget = ({
|
|
|
5966
6450
|
}
|
|
5967
6451
|
});
|
|
5968
6452
|
}, [isExpanded]);
|
|
5969
|
-
(0,
|
|
6453
|
+
(0, import_react34.useEffect)(() => {
|
|
5970
6454
|
const el = scrollRef.current;
|
|
5971
6455
|
if (!el || !isExpanded)
|
|
5972
6456
|
return;
|
|
@@ -5980,17 +6464,17 @@ var ChatWidget = ({
|
|
|
5980
6464
|
}
|
|
5981
6465
|
}, [messages, isThinking, isExpanded]);
|
|
5982
6466
|
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
5983
|
-
const renderedMessages = (0,
|
|
6467
|
+
const renderedMessages = (0, import_react34.useMemo)(
|
|
5984
6468
|
() => messagesToRender.map((element, index) => {
|
|
5985
6469
|
var _a;
|
|
5986
6470
|
const key = (_a = element.key) != null ? _a : index;
|
|
5987
6471
|
if (element.type === AIResponse_default) {
|
|
5988
|
-
return /* @__PURE__ */ (0,
|
|
6472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: receivedWrapperStyles, children: element }, key);
|
|
5989
6473
|
}
|
|
5990
6474
|
if (element.type === MessageBubble_default) {
|
|
5991
|
-
return /* @__PURE__ */ (0,
|
|
6475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
5992
6476
|
}
|
|
5993
|
-
return /* @__PURE__ */ (0,
|
|
6477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(import_react34.default.Fragment, { children: element }, key);
|
|
5994
6478
|
}),
|
|
5995
6479
|
[messagesToRender]
|
|
5996
6480
|
);
|
|
@@ -6001,7 +6485,7 @@ var ChatWidget = ({
|
|
|
6001
6485
|
onSubmit(trimmed);
|
|
6002
6486
|
setValue("");
|
|
6003
6487
|
};
|
|
6004
|
-
return /* @__PURE__ */ (0,
|
|
6488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6005
6489
|
Widget_default,
|
|
6006
6490
|
{
|
|
6007
6491
|
ariaLabel,
|
|
@@ -6013,10 +6497,10 @@ var ChatWidget = ({
|
|
|
6013
6497
|
containerProps,
|
|
6014
6498
|
closeOnClickOutside,
|
|
6015
6499
|
children: [
|
|
6016
|
-
/* @__PURE__ */ (0,
|
|
6017
|
-
/* @__PURE__ */ (0,
|
|
6018
|
-
/* @__PURE__ */ (0,
|
|
6019
|
-
/* @__PURE__ */ (0,
|
|
6500
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { mt: 2, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(AskBuckButton_default, { badgeCount: notificationCount }) }),
|
|
6501
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Widget_default.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(Box_default, { css: containerStyles, children: [
|
|
6502
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(Box_default, { position: "sticky", top: 0, zIndex: 1, children: [
|
|
6503
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6020
6504
|
Box_default,
|
|
6021
6505
|
{
|
|
6022
6506
|
display: "flex",
|
|
@@ -6024,9 +6508,9 @@ var ChatWidget = ({
|
|
|
6024
6508
|
justifyContent: "space-between",
|
|
6025
6509
|
gap: "var(--spacing-4)",
|
|
6026
6510
|
children: [
|
|
6027
|
-
/* @__PURE__ */ (0,
|
|
6028
|
-
/* @__PURE__ */ (0,
|
|
6029
|
-
/* @__PURE__ */ (0,
|
|
6511
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
|
|
6512
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: "large" }) }),
|
|
6513
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6030
6514
|
Heading_default,
|
|
6031
6515
|
{
|
|
6032
6516
|
size: "2xs",
|
|
@@ -6036,25 +6520,25 @@ var ChatWidget = ({
|
|
|
6036
6520
|
}
|
|
6037
6521
|
)
|
|
6038
6522
|
] }),
|
|
6039
|
-
/* @__PURE__ */ (0,
|
|
6523
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6040
6524
|
Button_default,
|
|
6041
6525
|
{
|
|
6042
6526
|
variant: "text",
|
|
6043
6527
|
size: "xs",
|
|
6044
6528
|
"aria-label": "Close widget",
|
|
6045
6529
|
onClick: () => setExpanded(false),
|
|
6046
|
-
children: /* @__PURE__ */ (0,
|
|
6047
|
-
/* @__PURE__ */ (0,
|
|
6048
|
-
/* @__PURE__ */ (0,
|
|
6530
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)("span", { css: closeButtonContent, children: [
|
|
6531
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon_default, { variant: "Xmark", size: "medium" }),
|
|
6532
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("span", { children: "Close" })
|
|
6049
6533
|
] })
|
|
6050
6534
|
}
|
|
6051
6535
|
)
|
|
6052
6536
|
]
|
|
6053
6537
|
}
|
|
6054
6538
|
),
|
|
6055
|
-
/* @__PURE__ */ (0,
|
|
6539
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
6056
6540
|
] }),
|
|
6057
|
-
/* @__PURE__ */ (0,
|
|
6541
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6058
6542
|
Box_default,
|
|
6059
6543
|
{
|
|
6060
6544
|
ref: scrollRef,
|
|
@@ -6067,27 +6551,27 @@ var ChatWidget = ({
|
|
|
6067
6551
|
flexDirection: "column",
|
|
6068
6552
|
gap: "var(--spacing-2)",
|
|
6069
6553
|
children: [
|
|
6070
|
-
/* @__PURE__ */ (0,
|
|
6071
|
-
isThinking && /* @__PURE__ */ (0,
|
|
6072
|
-
/* @__PURE__ */ (0,
|
|
6073
|
-
/* @__PURE__ */ (0,
|
|
6554
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
6555
|
+
isThinking && /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
6556
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Spinner_default2, { size: "medium" }),
|
|
6557
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("span", { css: thinkingTextStyles, children: thinkingText })
|
|
6074
6558
|
] }) }),
|
|
6075
|
-
suggestedPrompts && suggestedPrompts.length > 0 && /* @__PURE__ */ (0,
|
|
6559
|
+
suggestedPrompts && suggestedPrompts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6076
6560
|
Box_default,
|
|
6077
6561
|
{
|
|
6078
6562
|
display: "flex",
|
|
6079
6563
|
flexDirection: "column",
|
|
6080
6564
|
gap: "var(--spacing-4)",
|
|
6081
6565
|
children: [
|
|
6082
|
-
/* @__PURE__ */ (0,
|
|
6083
|
-
/* @__PURE__ */ (0,
|
|
6566
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Text_default, { size: "md", fontWeight: "bold", color: "var(--text-primary)", children: suggestedPromptsTitle }),
|
|
6567
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6084
6568
|
Box_default,
|
|
6085
6569
|
{
|
|
6086
6570
|
display: "flex",
|
|
6087
6571
|
flexWrap: "wrap",
|
|
6088
6572
|
gap: "var(--spacing-4)",
|
|
6089
6573
|
alignItems: "flex-start",
|
|
6090
|
-
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0,
|
|
6574
|
+
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6091
6575
|
TagChip_default,
|
|
6092
6576
|
{
|
|
6093
6577
|
variant: "success",
|
|
@@ -6108,7 +6592,7 @@ var ChatWidget = ({
|
|
|
6108
6592
|
]
|
|
6109
6593
|
}
|
|
6110
6594
|
),
|
|
6111
|
-
/* @__PURE__ */ (0,
|
|
6595
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { position: "sticky", bottom: 0, zIndex: 1, p: 0, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6112
6596
|
TextArea_default,
|
|
6113
6597
|
{
|
|
6114
6598
|
rows: 3,
|
|
@@ -6131,9 +6615,9 @@ var ChatWidget = ({
|
|
|
6131
6615
|
var ChatWidget_default = ChatWidget;
|
|
6132
6616
|
|
|
6133
6617
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
6134
|
-
var
|
|
6618
|
+
var import_react35 = require("@emotion/react");
|
|
6135
6619
|
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
6136
|
-
var
|
|
6620
|
+
var import_jsx_runtime229 = require("@emotion/react/jsx-runtime");
|
|
6137
6621
|
var FeatureListItem = ({
|
|
6138
6622
|
iconVariant,
|
|
6139
6623
|
label,
|
|
@@ -6148,8 +6632,8 @@ var FeatureListItem = ({
|
|
|
6148
6632
|
}) => {
|
|
6149
6633
|
const iconDimensions = IconSizeMap[iconSize];
|
|
6150
6634
|
if (isLoading) {
|
|
6151
|
-
return /* @__PURE__ */ (0,
|
|
6152
|
-
/* @__PURE__ */ (0,
|
|
6635
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
6636
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6153
6637
|
Box_default,
|
|
6154
6638
|
{
|
|
6155
6639
|
display: "flex",
|
|
@@ -6159,7 +6643,7 @@ var FeatureListItem = ({
|
|
|
6159
6643
|
className,
|
|
6160
6644
|
...rest,
|
|
6161
6645
|
children: [
|
|
6162
|
-
/* @__PURE__ */ (0,
|
|
6646
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6163
6647
|
import_react_loading_skeleton.default,
|
|
6164
6648
|
{
|
|
6165
6649
|
circle: true,
|
|
@@ -6168,24 +6652,24 @@ var FeatureListItem = ({
|
|
|
6168
6652
|
borderRadius: 4
|
|
6169
6653
|
}
|
|
6170
6654
|
),
|
|
6171
|
-
/* @__PURE__ */ (0,
|
|
6655
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
6172
6656
|
]
|
|
6173
6657
|
}
|
|
6174
6658
|
),
|
|
6175
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6176
|
-
/* @__PURE__ */ (0,
|
|
6177
|
-
/* @__PURE__ */ (0,
|
|
6659
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
6660
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
6661
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(import_react_loading_skeleton.default, { width: 150, height: 14, borderRadius: 4 })
|
|
6178
6662
|
] })
|
|
6179
6663
|
] });
|
|
6180
6664
|
}
|
|
6181
|
-
return /* @__PURE__ */ (0,
|
|
6182
|
-
/* @__PURE__ */ (0,
|
|
6665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: isInline ? /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(Text_default, { as: "span", children: [
|
|
6666
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(Text_default, { as: "span", fontWeight: "bold", children: [
|
|
6183
6667
|
label,
|
|
6184
6668
|
" "
|
|
6185
6669
|
] }),
|
|
6186
6670
|
subtitle
|
|
6187
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
6188
|
-
/* @__PURE__ */ (0,
|
|
6671
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, { children: [
|
|
6672
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6189
6673
|
Box_default,
|
|
6190
6674
|
{
|
|
6191
6675
|
display: "flex",
|
|
@@ -6194,33 +6678,33 @@ var FeatureListItem = ({
|
|
|
6194
6678
|
className,
|
|
6195
6679
|
...rest,
|
|
6196
6680
|
children: [
|
|
6197
|
-
iconVariant && /* @__PURE__ */ (0,
|
|
6681
|
+
iconVariant && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6198
6682
|
Icon_default,
|
|
6199
6683
|
{
|
|
6200
6684
|
variant: iconVariant,
|
|
6201
6685
|
size: iconSize,
|
|
6202
6686
|
fill: iconColor,
|
|
6203
|
-
css:
|
|
6687
|
+
css: import_react35.css`
|
|
6204
6688
|
flex-shrink: 0;
|
|
6205
6689
|
`
|
|
6206
6690
|
}
|
|
6207
6691
|
),
|
|
6208
|
-
/* @__PURE__ */ (0,
|
|
6692
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Text_default, { fontWeight: "semibold", size: labelSize, children: label })
|
|
6209
6693
|
]
|
|
6210
6694
|
}
|
|
6211
6695
|
),
|
|
6212
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6213
|
-
/* @__PURE__ */ (0,
|
|
6214
|
-
/* @__PURE__ */ (0,
|
|
6696
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
6697
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Box_default, { minWidth: "var(--spacing-6)", children: "\xA0" }),
|
|
6698
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
6215
6699
|
] })
|
|
6216
6700
|
] }) });
|
|
6217
6701
|
};
|
|
6218
6702
|
var FeatureListItem_default = FeatureListItem;
|
|
6219
6703
|
|
|
6220
6704
|
// src/FeatureList/FeatureList.tsx
|
|
6221
|
-
var
|
|
6705
|
+
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6222
6706
|
var FeatureList = ({ heading, items, className }) => {
|
|
6223
|
-
return /* @__PURE__ */ (0,
|
|
6707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6224
6708
|
Box_default,
|
|
6225
6709
|
{
|
|
6226
6710
|
display: "flex",
|
|
@@ -6228,8 +6712,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6228
6712
|
gap: "var(--spacing-2)",
|
|
6229
6713
|
className,
|
|
6230
6714
|
children: [
|
|
6231
|
-
heading && /* @__PURE__ */ (0,
|
|
6232
|
-
/* @__PURE__ */ (0,
|
|
6715
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
6716
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(FeatureListItem_default, { ...item }, `${item.iconVariant}-${index}`)) })
|
|
6233
6717
|
]
|
|
6234
6718
|
}
|
|
6235
6719
|
);
|
|
@@ -6237,8 +6721,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6237
6721
|
var FeatureList_default = FeatureList;
|
|
6238
6722
|
|
|
6239
6723
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
6240
|
-
var
|
|
6241
|
-
var cardContainerStyles =
|
|
6724
|
+
var import_react36 = require("@emotion/react");
|
|
6725
|
+
var cardContainerStyles = import_react36.css`
|
|
6242
6726
|
position: relative;
|
|
6243
6727
|
height: 335px;
|
|
6244
6728
|
|
|
@@ -6246,12 +6730,12 @@ var cardContainerStyles = import_react32.css`
|
|
|
6246
6730
|
height: 480px;
|
|
6247
6731
|
}
|
|
6248
6732
|
`;
|
|
6249
|
-
var cardContentStyles =
|
|
6733
|
+
var cardContentStyles = import_react36.css`
|
|
6250
6734
|
position: relative;
|
|
6251
6735
|
border-radius: var(--spacing-4);
|
|
6252
6736
|
overflow: hidden;
|
|
6253
6737
|
`;
|
|
6254
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
6738
|
+
var getBackgroundWithGradient = (imageUrl) => import_react36.css`
|
|
6255
6739
|
background-image: linear-gradient(
|
|
6256
6740
|
180deg,
|
|
6257
6741
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -6265,7 +6749,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react32.css`
|
|
|
6265
6749
|
`;
|
|
6266
6750
|
|
|
6267
6751
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
6268
|
-
var
|
|
6752
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6269
6753
|
var FieldNoteCard = ({
|
|
6270
6754
|
backgroundImage,
|
|
6271
6755
|
title,
|
|
@@ -6274,14 +6758,14 @@ var FieldNoteCard = ({
|
|
|
6274
6758
|
className,
|
|
6275
6759
|
...rest
|
|
6276
6760
|
}) => {
|
|
6277
|
-
return /* @__PURE__ */ (0,
|
|
6761
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6278
6762
|
Box_default,
|
|
6279
6763
|
{
|
|
6280
6764
|
display: "flex",
|
|
6281
6765
|
css: cardContainerStyles,
|
|
6282
6766
|
className,
|
|
6283
6767
|
...rest,
|
|
6284
|
-
children: /* @__PURE__ */ (0,
|
|
6768
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6285
6769
|
Box_default,
|
|
6286
6770
|
{
|
|
6287
6771
|
display: "flex",
|
|
@@ -6289,9 +6773,9 @@ var FieldNoteCard = ({
|
|
|
6289
6773
|
justifyContent: "flex-end",
|
|
6290
6774
|
p: 6,
|
|
6291
6775
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
6292
|
-
children: /* @__PURE__ */ (0,
|
|
6293
|
-
/* @__PURE__ */ (0,
|
|
6294
|
-
/* @__PURE__ */ (0,
|
|
6776
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
6777
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
6778
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
6295
6779
|
] })
|
|
6296
6780
|
}
|
|
6297
6781
|
)
|
|
@@ -6301,14 +6785,14 @@ var FieldNoteCard = ({
|
|
|
6301
6785
|
var FieldNoteCard_default = FieldNoteCard;
|
|
6302
6786
|
|
|
6303
6787
|
// src/Form/FormField.tsx
|
|
6304
|
-
var
|
|
6305
|
-
var
|
|
6306
|
-
var fieldContainerStyles =
|
|
6788
|
+
var import_react37 = require("@emotion/react");
|
|
6789
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6790
|
+
var fieldContainerStyles = import_react37.css`
|
|
6307
6791
|
display: flex;
|
|
6308
6792
|
flex-direction: column;
|
|
6309
6793
|
gap: ${space["2"]};
|
|
6310
6794
|
`;
|
|
6311
|
-
var labelStyles2 =
|
|
6795
|
+
var labelStyles2 = import_react37.css`
|
|
6312
6796
|
font-family: ${fonts.base};
|
|
6313
6797
|
font-size: ${fontSizes.sm};
|
|
6314
6798
|
font-weight: ${fontWeights.medium};
|
|
@@ -6316,17 +6800,17 @@ var labelStyles2 = import_react33.css`
|
|
|
6316
6800
|
color: ${colors.gray["900"]};
|
|
6317
6801
|
margin-bottom: ${space["1"]};
|
|
6318
6802
|
`;
|
|
6319
|
-
var requiredIndicatorStyles =
|
|
6803
|
+
var requiredIndicatorStyles = import_react37.css`
|
|
6320
6804
|
color: ${colors.red["500"]};
|
|
6321
6805
|
margin-left: ${space["1"]};
|
|
6322
6806
|
`;
|
|
6323
|
-
var helpTextStyles =
|
|
6807
|
+
var helpTextStyles = import_react37.css`
|
|
6324
6808
|
font-family: ${fonts.base};
|
|
6325
6809
|
font-size: ${fontSizes.sm};
|
|
6326
6810
|
line-height: ${lineHeights.tight};
|
|
6327
6811
|
color: ${colors.gray["600"]};
|
|
6328
6812
|
`;
|
|
6329
|
-
var errorTextStyles =
|
|
6813
|
+
var errorTextStyles = import_react37.css`
|
|
6330
6814
|
font-family: ${fonts.base};
|
|
6331
6815
|
font-size: ${fontSizes.sm};
|
|
6332
6816
|
line-height: ${lineHeights.tight};
|
|
@@ -6335,7 +6819,7 @@ var errorTextStyles = import_react33.css`
|
|
|
6335
6819
|
align-items: center;
|
|
6336
6820
|
gap: ${space["1"]};
|
|
6337
6821
|
`;
|
|
6338
|
-
var successTextStyles =
|
|
6822
|
+
var successTextStyles = import_react37.css`
|
|
6339
6823
|
font-family: ${fonts.base};
|
|
6340
6824
|
font-size: ${fontSizes.sm};
|
|
6341
6825
|
line-height: ${lineHeights.tight};
|
|
@@ -6344,7 +6828,7 @@ var successTextStyles = import_react33.css`
|
|
|
6344
6828
|
align-items: center;
|
|
6345
6829
|
gap: ${space["1"]};
|
|
6346
6830
|
`;
|
|
6347
|
-
var visuallyHiddenStyles =
|
|
6831
|
+
var visuallyHiddenStyles = import_react37.css`
|
|
6348
6832
|
position: absolute;
|
|
6349
6833
|
width: 1px;
|
|
6350
6834
|
height: 1px;
|
|
@@ -6369,21 +6853,21 @@ var FormField = ({
|
|
|
6369
6853
|
const hasError = !!error;
|
|
6370
6854
|
const hasSuccess = !!success && !hasError;
|
|
6371
6855
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
6372
|
-
return /* @__PURE__ */ (0,
|
|
6373
|
-
label && /* @__PURE__ */ (0,
|
|
6856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
6857
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6374
6858
|
"label",
|
|
6375
6859
|
{
|
|
6376
6860
|
htmlFor,
|
|
6377
6861
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
6378
6862
|
children: [
|
|
6379
6863
|
label,
|
|
6380
|
-
required && /* @__PURE__ */ (0,
|
|
6864
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
6381
6865
|
]
|
|
6382
6866
|
}
|
|
6383
6867
|
),
|
|
6384
6868
|
children,
|
|
6385
|
-
hasError && /* @__PURE__ */ (0,
|
|
6386
|
-
/* @__PURE__ */ (0,
|
|
6869
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
6870
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6387
6871
|
"path",
|
|
6388
6872
|
{
|
|
6389
6873
|
fillRule: "evenodd",
|
|
@@ -6393,8 +6877,8 @@ var FormField = ({
|
|
|
6393
6877
|
) }),
|
|
6394
6878
|
error
|
|
6395
6879
|
] }),
|
|
6396
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
6397
|
-
/* @__PURE__ */ (0,
|
|
6880
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { css: successTextStyles, children: [
|
|
6881
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6398
6882
|
"path",
|
|
6399
6883
|
{
|
|
6400
6884
|
fillRule: "evenodd",
|
|
@@ -6404,15 +6888,15 @@ var FormField = ({
|
|
|
6404
6888
|
) }),
|
|
6405
6889
|
success
|
|
6406
6890
|
] }),
|
|
6407
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
6891
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
6408
6892
|
] });
|
|
6409
6893
|
};
|
|
6410
6894
|
|
|
6411
6895
|
// src/Form/Input.tsx
|
|
6412
|
-
var
|
|
6413
|
-
var
|
|
6414
|
-
var
|
|
6415
|
-
var inputStyles =
|
|
6896
|
+
var import_react38 = require("@emotion/react");
|
|
6897
|
+
var import_react39 = require("react");
|
|
6898
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
6899
|
+
var inputStyles = import_react38.css`
|
|
6416
6900
|
position: relative;
|
|
6417
6901
|
width: 100%;
|
|
6418
6902
|
font-family: ${fonts.base};
|
|
@@ -6449,19 +6933,19 @@ var inputStyles = import_react34.css`
|
|
|
6449
6933
|
}
|
|
6450
6934
|
`;
|
|
6451
6935
|
var sizeStyles = {
|
|
6452
|
-
sm:
|
|
6936
|
+
sm: import_react38.css`
|
|
6453
6937
|
padding: ${space["2"]} ${space["3"]};
|
|
6454
6938
|
font-size: ${fontSizes.sm};
|
|
6455
6939
|
line-height: ${lineHeights.tight};
|
|
6456
6940
|
height: ${space["8"]};
|
|
6457
6941
|
`,
|
|
6458
|
-
md:
|
|
6942
|
+
md: import_react38.css`
|
|
6459
6943
|
padding: ${space["3"]} ${space["4"]};
|
|
6460
6944
|
font-size: ${fontSizes.base};
|
|
6461
6945
|
line-height: ${lineHeights.normal};
|
|
6462
6946
|
height: ${space["10"]};
|
|
6463
6947
|
`,
|
|
6464
|
-
lg:
|
|
6948
|
+
lg: import_react38.css`
|
|
6465
6949
|
padding: ${space["4"]} ${space["5"]};
|
|
6466
6950
|
font-size: ${fontSizes.lg};
|
|
6467
6951
|
line-height: ${lineHeights.normal};
|
|
@@ -6469,8 +6953,8 @@ var sizeStyles = {
|
|
|
6469
6953
|
`
|
|
6470
6954
|
};
|
|
6471
6955
|
var variantStyles = {
|
|
6472
|
-
default:
|
|
6473
|
-
error:
|
|
6956
|
+
default: import_react38.css``,
|
|
6957
|
+
error: import_react38.css`
|
|
6474
6958
|
border-color: ${colors.red["500"]};
|
|
6475
6959
|
|
|
6476
6960
|
&:focus {
|
|
@@ -6478,7 +6962,7 @@ var variantStyles = {
|
|
|
6478
6962
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
6479
6963
|
}
|
|
6480
6964
|
`,
|
|
6481
|
-
success:
|
|
6965
|
+
success: import_react38.css`
|
|
6482
6966
|
border-color: ${colors.accent.green};
|
|
6483
6967
|
|
|
6484
6968
|
&:focus {
|
|
@@ -6487,7 +6971,7 @@ var variantStyles = {
|
|
|
6487
6971
|
}
|
|
6488
6972
|
`
|
|
6489
6973
|
};
|
|
6490
|
-
var inputWithIconStyles =
|
|
6974
|
+
var inputWithIconStyles = import_react38.css`
|
|
6491
6975
|
padding-left: ${space["10"]};
|
|
6492
6976
|
|
|
6493
6977
|
&.has-end-icon {
|
|
@@ -6498,7 +6982,7 @@ var inputWithIconStyles = import_react34.css`
|
|
|
6498
6982
|
padding-left: ${space["10"]};
|
|
6499
6983
|
}
|
|
6500
6984
|
`;
|
|
6501
|
-
var iconContainerStyles =
|
|
6985
|
+
var iconContainerStyles = import_react38.css`
|
|
6502
6986
|
position: absolute;
|
|
6503
6987
|
top: 50%;
|
|
6504
6988
|
transform: translateY(-50%);
|
|
@@ -6509,20 +6993,20 @@ var iconContainerStyles = import_react34.css`
|
|
|
6509
6993
|
pointer-events: none;
|
|
6510
6994
|
z-index: 1;
|
|
6511
6995
|
`;
|
|
6512
|
-
var startIconStyles =
|
|
6996
|
+
var startIconStyles = import_react38.css`
|
|
6513
6997
|
${iconContainerStyles}
|
|
6514
6998
|
left: ${space["3"]};
|
|
6515
6999
|
`;
|
|
6516
|
-
var endIconStyles =
|
|
7000
|
+
var endIconStyles = import_react38.css`
|
|
6517
7001
|
${iconContainerStyles}
|
|
6518
7002
|
right: ${space["3"]};
|
|
6519
7003
|
`;
|
|
6520
|
-
var inputWrapperStyles =
|
|
7004
|
+
var inputWrapperStyles = import_react38.css`
|
|
6521
7005
|
position: relative;
|
|
6522
7006
|
display: inline-block;
|
|
6523
7007
|
width: 100%;
|
|
6524
7008
|
`;
|
|
6525
|
-
var Input = (0,
|
|
7009
|
+
var Input = (0, import_react39.forwardRef)(
|
|
6526
7010
|
({
|
|
6527
7011
|
size = "md",
|
|
6528
7012
|
variant = "default",
|
|
@@ -6541,9 +7025,9 @@ var Input = (0, import_react35.forwardRef)(
|
|
|
6541
7025
|
hasEndIcon && "has-end-icon",
|
|
6542
7026
|
className
|
|
6543
7027
|
].filter(Boolean).join(" ");
|
|
6544
|
-
return /* @__PURE__ */ (0,
|
|
6545
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
6546
|
-
/* @__PURE__ */ (0,
|
|
7028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
7029
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
7030
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6547
7031
|
"input",
|
|
6548
7032
|
{
|
|
6549
7033
|
ref,
|
|
@@ -6560,17 +7044,17 @@ var Input = (0, import_react35.forwardRef)(
|
|
|
6560
7044
|
...props
|
|
6561
7045
|
}
|
|
6562
7046
|
),
|
|
6563
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
7047
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
6564
7048
|
] });
|
|
6565
7049
|
}
|
|
6566
7050
|
);
|
|
6567
7051
|
Input.displayName = "Input";
|
|
6568
7052
|
|
|
6569
7053
|
// src/Form/Select.tsx
|
|
6570
|
-
var
|
|
6571
|
-
var
|
|
6572
|
-
var
|
|
6573
|
-
var selectStyles =
|
|
7054
|
+
var import_react40 = require("@emotion/react");
|
|
7055
|
+
var import_react41 = require("react");
|
|
7056
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
7057
|
+
var selectStyles = import_react40.css`
|
|
6574
7058
|
position: relative;
|
|
6575
7059
|
width: 100%;
|
|
6576
7060
|
font-family: ${fonts.base};
|
|
@@ -6609,19 +7093,19 @@ var selectStyles = import_react36.css`
|
|
|
6609
7093
|
}
|
|
6610
7094
|
`;
|
|
6611
7095
|
var sizeStyles2 = {
|
|
6612
|
-
sm:
|
|
7096
|
+
sm: import_react40.css`
|
|
6613
7097
|
padding: ${space["2"]} ${space["3"]};
|
|
6614
7098
|
font-size: ${fontSizes.sm};
|
|
6615
7099
|
line-height: ${lineHeights.tight};
|
|
6616
7100
|
height: ${space["8"]};
|
|
6617
7101
|
`,
|
|
6618
|
-
md:
|
|
7102
|
+
md: import_react40.css`
|
|
6619
7103
|
padding: ${space["3"]} ${space["4"]};
|
|
6620
7104
|
font-size: ${fontSizes.base};
|
|
6621
7105
|
line-height: ${lineHeights.normal};
|
|
6622
7106
|
height: ${space["10"]};
|
|
6623
7107
|
`,
|
|
6624
|
-
lg:
|
|
7108
|
+
lg: import_react40.css`
|
|
6625
7109
|
padding: ${space["4"]} ${space["5"]};
|
|
6626
7110
|
font-size: ${fontSizes.lg};
|
|
6627
7111
|
line-height: ${lineHeights.normal};
|
|
@@ -6629,8 +7113,8 @@ var sizeStyles2 = {
|
|
|
6629
7113
|
`
|
|
6630
7114
|
};
|
|
6631
7115
|
var variantStyles2 = {
|
|
6632
|
-
default:
|
|
6633
|
-
error:
|
|
7116
|
+
default: import_react40.css``,
|
|
7117
|
+
error: import_react40.css`
|
|
6634
7118
|
border-color: ${colors.red["500"]};
|
|
6635
7119
|
|
|
6636
7120
|
&:focus {
|
|
@@ -6638,7 +7122,7 @@ var variantStyles2 = {
|
|
|
6638
7122
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
6639
7123
|
}
|
|
6640
7124
|
`,
|
|
6641
|
-
success:
|
|
7125
|
+
success: import_react40.css`
|
|
6642
7126
|
border-color: ${colors.accent.green};
|
|
6643
7127
|
|
|
6644
7128
|
&:focus {
|
|
@@ -6647,7 +7131,7 @@ var variantStyles2 = {
|
|
|
6647
7131
|
}
|
|
6648
7132
|
`
|
|
6649
7133
|
};
|
|
6650
|
-
var optionStyles =
|
|
7134
|
+
var optionStyles = import_react40.css`
|
|
6651
7135
|
background-color: ${colors.light["100"]};
|
|
6652
7136
|
color: ${colors.gray["900"]};
|
|
6653
7137
|
|
|
@@ -6656,7 +7140,7 @@ var optionStyles = import_react36.css`
|
|
|
6656
7140
|
background-color: ${colors.gray["100"]};
|
|
6657
7141
|
}
|
|
6658
7142
|
`;
|
|
6659
|
-
var Select = (0,
|
|
7143
|
+
var Select = (0, import_react41.forwardRef)(
|
|
6660
7144
|
({
|
|
6661
7145
|
size = "md",
|
|
6662
7146
|
variant = "default",
|
|
@@ -6666,7 +7150,7 @@ var Select = (0, import_react37.forwardRef)(
|
|
|
6666
7150
|
className = "",
|
|
6667
7151
|
...props
|
|
6668
7152
|
}, ref) => {
|
|
6669
|
-
return /* @__PURE__ */ (0,
|
|
7153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
6670
7154
|
"select",
|
|
6671
7155
|
{
|
|
6672
7156
|
ref,
|
|
@@ -6675,8 +7159,8 @@ var Select = (0, import_react37.forwardRef)(
|
|
|
6675
7159
|
className,
|
|
6676
7160
|
...props,
|
|
6677
7161
|
children: [
|
|
6678
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
6679
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
7162
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
7163
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
6680
7164
|
"option",
|
|
6681
7165
|
{
|
|
6682
7166
|
value: option.value,
|
|
@@ -6694,10 +7178,10 @@ var Select = (0, import_react37.forwardRef)(
|
|
|
6694
7178
|
Select.displayName = "Select";
|
|
6695
7179
|
|
|
6696
7180
|
// src/Grid/Column.tsx
|
|
6697
|
-
var
|
|
7181
|
+
var import_react43 = require("@emotion/react");
|
|
6698
7182
|
|
|
6699
7183
|
// src/Grid/utils.ts
|
|
6700
|
-
var
|
|
7184
|
+
var import_react42 = require("@emotion/react");
|
|
6701
7185
|
var LayoutTokens = {
|
|
6702
7186
|
containers: {
|
|
6703
7187
|
sm: screens.sm,
|
|
@@ -6737,11 +7221,11 @@ var getResponsiveValue = (value) => {
|
|
|
6737
7221
|
var generateGridColumns = (columns) => {
|
|
6738
7222
|
const baseColumns = getResponsiveValue(columns);
|
|
6739
7223
|
if (typeof columns === "number") {
|
|
6740
|
-
return
|
|
7224
|
+
return import_react42.css`
|
|
6741
7225
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
6742
7226
|
`;
|
|
6743
7227
|
}
|
|
6744
|
-
return
|
|
7228
|
+
return import_react42.css`
|
|
6745
7229
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
6746
7230
|
|
|
6747
7231
|
${media.sm} {
|
|
@@ -6773,11 +7257,11 @@ var generateGridColumns = (columns) => {
|
|
|
6773
7257
|
var generateGapStyles = (gap2) => {
|
|
6774
7258
|
const baseGap = getResponsiveValue(gap2);
|
|
6775
7259
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
6776
|
-
return
|
|
7260
|
+
return import_react42.css`
|
|
6777
7261
|
gap: ${space[gap2]};
|
|
6778
7262
|
`;
|
|
6779
7263
|
}
|
|
6780
|
-
return
|
|
7264
|
+
return import_react42.css`
|
|
6781
7265
|
gap: ${space[baseGap]};
|
|
6782
7266
|
|
|
6783
7267
|
${media.sm} {
|
|
@@ -6800,11 +7284,11 @@ var generateGapStyles = (gap2) => {
|
|
|
6800
7284
|
var generateRowGapStyles = (rowGap) => {
|
|
6801
7285
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
6802
7286
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
6803
|
-
return
|
|
7287
|
+
return import_react42.css`
|
|
6804
7288
|
row-gap: ${space[rowGap]};
|
|
6805
7289
|
`;
|
|
6806
7290
|
}
|
|
6807
|
-
return
|
|
7291
|
+
return import_react42.css`
|
|
6808
7292
|
row-gap: ${space[baseRowGap]};
|
|
6809
7293
|
|
|
6810
7294
|
${media.sm} {
|
|
@@ -6827,11 +7311,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
6827
7311
|
var generateColumnGapStyles = (columnGap) => {
|
|
6828
7312
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
6829
7313
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
6830
|
-
return
|
|
7314
|
+
return import_react42.css`
|
|
6831
7315
|
column-gap: ${space[columnGap]};
|
|
6832
7316
|
`;
|
|
6833
7317
|
}
|
|
6834
|
-
return
|
|
7318
|
+
return import_react42.css`
|
|
6835
7319
|
column-gap: ${space[baseColumnGap]};
|
|
6836
7320
|
|
|
6837
7321
|
${media.sm} {
|
|
@@ -6854,11 +7338,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
6854
7338
|
var generateColumnSpan = (span) => {
|
|
6855
7339
|
const baseSpan = getResponsiveValue(span);
|
|
6856
7340
|
if (typeof span === "string" || typeof span === "number") {
|
|
6857
|
-
return
|
|
7341
|
+
return import_react42.css`
|
|
6858
7342
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
6859
7343
|
`;
|
|
6860
7344
|
}
|
|
6861
|
-
return
|
|
7345
|
+
return import_react42.css`
|
|
6862
7346
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
6863
7347
|
|
|
6864
7348
|
${media.sm} {
|
|
@@ -6881,11 +7365,11 @@ var generateColumnSpan = (span) => {
|
|
|
6881
7365
|
var generateAlignItems = (alignItems) => {
|
|
6882
7366
|
const baseAlign = getResponsiveValue(alignItems);
|
|
6883
7367
|
if (typeof alignItems === "string") {
|
|
6884
|
-
return
|
|
7368
|
+
return import_react42.css`
|
|
6885
7369
|
align-items: ${alignItems};
|
|
6886
7370
|
`;
|
|
6887
7371
|
}
|
|
6888
|
-
return
|
|
7372
|
+
return import_react42.css`
|
|
6889
7373
|
align-items: ${baseAlign};
|
|
6890
7374
|
|
|
6891
7375
|
${media.sm} {
|
|
@@ -6908,11 +7392,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
6908
7392
|
var generateJustifyItems = (justifyItems) => {
|
|
6909
7393
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
6910
7394
|
if (typeof justifyItems === "string") {
|
|
6911
|
-
return
|
|
7395
|
+
return import_react42.css`
|
|
6912
7396
|
justify-items: ${justifyItems};
|
|
6913
7397
|
`;
|
|
6914
7398
|
}
|
|
6915
|
-
return
|
|
7399
|
+
return import_react42.css`
|
|
6916
7400
|
justify-items: ${baseJustify};
|
|
6917
7401
|
|
|
6918
7402
|
${media.sm} {
|
|
@@ -6934,7 +7418,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
6934
7418
|
};
|
|
6935
7419
|
|
|
6936
7420
|
// src/Grid/Column.tsx
|
|
6937
|
-
var
|
|
7421
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
6938
7422
|
var Column = ({
|
|
6939
7423
|
span,
|
|
6940
7424
|
start,
|
|
@@ -6947,30 +7431,30 @@ var Column = ({
|
|
|
6947
7431
|
}) => {
|
|
6948
7432
|
const columnStyles = [
|
|
6949
7433
|
span && generateColumnSpan(span),
|
|
6950
|
-
start &&
|
|
7434
|
+
start && import_react43.css`
|
|
6951
7435
|
grid-column-start: ${start};
|
|
6952
7436
|
`,
|
|
6953
|
-
end &&
|
|
7437
|
+
end && import_react43.css`
|
|
6954
7438
|
grid-column-end: ${end};
|
|
6955
7439
|
`,
|
|
6956
|
-
row &&
|
|
7440
|
+
row && import_react43.css`
|
|
6957
7441
|
grid-row: ${row};
|
|
6958
7442
|
`,
|
|
6959
|
-
rowSpan &&
|
|
7443
|
+
rowSpan && import_react43.css`
|
|
6960
7444
|
grid-row: span ${rowSpan};
|
|
6961
7445
|
`,
|
|
6962
|
-
area &&
|
|
7446
|
+
area && import_react43.css`
|
|
6963
7447
|
grid-area: ${area};
|
|
6964
7448
|
`
|
|
6965
7449
|
].filter(Boolean);
|
|
6966
|
-
return /* @__PURE__ */ (0,
|
|
7450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
6967
7451
|
};
|
|
6968
7452
|
var Column_default = Column;
|
|
6969
7453
|
|
|
6970
7454
|
// src/Grid/Grid.tsx
|
|
6971
|
-
var
|
|
6972
|
-
var
|
|
6973
|
-
var baseGridStyles =
|
|
7455
|
+
var import_react44 = require("@emotion/react");
|
|
7456
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7457
|
+
var baseGridStyles = import_react44.css`
|
|
6974
7458
|
display: grid;
|
|
6975
7459
|
`;
|
|
6976
7460
|
var Grid = ({
|
|
@@ -6995,27 +7479,27 @@ var Grid = ({
|
|
|
6995
7479
|
columnGap && generateColumnGapStyles(columnGap),
|
|
6996
7480
|
alignItems && generateAlignItems(alignItems),
|
|
6997
7481
|
justifyItems && generateJustifyItems(justifyItems),
|
|
6998
|
-
autoRows &&
|
|
7482
|
+
autoRows && import_react44.css`
|
|
6999
7483
|
grid-auto-rows: ${autoRows};
|
|
7000
7484
|
`,
|
|
7001
|
-
autoColumns &&
|
|
7485
|
+
autoColumns && import_react44.css`
|
|
7002
7486
|
grid-auto-columns: ${autoColumns};
|
|
7003
7487
|
`,
|
|
7004
|
-
templateAreas &&
|
|
7488
|
+
templateAreas && import_react44.css`
|
|
7005
7489
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
7006
7490
|
`,
|
|
7007
|
-
justifyContent &&
|
|
7491
|
+
justifyContent && import_react44.css`
|
|
7008
7492
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
7009
7493
|
`
|
|
7010
7494
|
].filter(Boolean);
|
|
7011
|
-
return /* @__PURE__ */ (0,
|
|
7495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
7012
7496
|
};
|
|
7013
7497
|
var Grid_default = Grid;
|
|
7014
7498
|
|
|
7015
7499
|
// src/Grid/GridContainer.tsx
|
|
7016
|
-
var
|
|
7017
|
-
var
|
|
7018
|
-
var baseContainerStyles =
|
|
7500
|
+
var import_react45 = require("@emotion/react");
|
|
7501
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
7502
|
+
var baseContainerStyles = import_react45.css`
|
|
7019
7503
|
width: 100%;
|
|
7020
7504
|
margin: 0 auto;
|
|
7021
7505
|
padding-left: 1rem;
|
|
@@ -7023,14 +7507,14 @@ var baseContainerStyles = import_react41.css`
|
|
|
7023
7507
|
`;
|
|
7024
7508
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
7025
7509
|
if (maxWidth === "full") {
|
|
7026
|
-
return
|
|
7510
|
+
return import_react45.css`
|
|
7027
7511
|
max-width: 100%;
|
|
7028
7512
|
padding-left: 0;
|
|
7029
7513
|
padding-right: 0;
|
|
7030
7514
|
`;
|
|
7031
7515
|
}
|
|
7032
7516
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
7033
|
-
return
|
|
7517
|
+
return import_react45.css`
|
|
7034
7518
|
max-width: ${width2};
|
|
7035
7519
|
|
|
7036
7520
|
${media.sm} {
|
|
@@ -7059,13 +7543,13 @@ var GridContainer = ({
|
|
|
7059
7543
|
baseContainerStyles,
|
|
7060
7544
|
generateMaxWidthStyles(maxWidth)
|
|
7061
7545
|
];
|
|
7062
|
-
return /* @__PURE__ */ (0,
|
|
7546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
7063
7547
|
};
|
|
7064
7548
|
var GridContainer_default = GridContainer;
|
|
7065
7549
|
|
|
7066
7550
|
// src/HuntCard/HuntCard.styles.ts
|
|
7067
|
-
var
|
|
7068
|
-
var cardContainerStyles2 =
|
|
7551
|
+
var import_react46 = require("@emotion/react");
|
|
7552
|
+
var cardContainerStyles2 = import_react46.css`
|
|
7069
7553
|
position: relative;
|
|
7070
7554
|
height: 335px;
|
|
7071
7555
|
|
|
@@ -7073,12 +7557,12 @@ var cardContainerStyles2 = import_react42.css`
|
|
|
7073
7557
|
height: 480px;
|
|
7074
7558
|
}
|
|
7075
7559
|
`;
|
|
7076
|
-
var cardContentStyles2 =
|
|
7560
|
+
var cardContentStyles2 = import_react46.css`
|
|
7077
7561
|
position: relative;
|
|
7078
7562
|
border-radius: var(--spacing-4);
|
|
7079
7563
|
overflow: hidden;
|
|
7080
7564
|
`;
|
|
7081
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
7565
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react46.css`
|
|
7082
7566
|
background-image: linear-gradient(
|
|
7083
7567
|
180deg,
|
|
7084
7568
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -7092,7 +7576,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react42.css`
|
|
|
7092
7576
|
`;
|
|
7093
7577
|
|
|
7094
7578
|
// src/HuntCard/HuntCard.tsx
|
|
7095
|
-
var
|
|
7579
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7096
7580
|
var HuntCard = ({
|
|
7097
7581
|
backgroundImage,
|
|
7098
7582
|
title,
|
|
@@ -7101,14 +7585,14 @@ var HuntCard = ({
|
|
|
7101
7585
|
className,
|
|
7102
7586
|
...rest
|
|
7103
7587
|
}) => {
|
|
7104
|
-
return /* @__PURE__ */ (0,
|
|
7588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
7105
7589
|
Box_default,
|
|
7106
7590
|
{
|
|
7107
7591
|
display: "flex",
|
|
7108
7592
|
css: cardContainerStyles2,
|
|
7109
7593
|
className,
|
|
7110
7594
|
...rest,
|
|
7111
|
-
children: /* @__PURE__ */ (0,
|
|
7595
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
7112
7596
|
Box_default,
|
|
7113
7597
|
{
|
|
7114
7598
|
display: "flex",
|
|
@@ -7116,9 +7600,9 @@ var HuntCard = ({
|
|
|
7116
7600
|
justifyContent: "flex-end",
|
|
7117
7601
|
p: 6,
|
|
7118
7602
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
7119
|
-
children: /* @__PURE__ */ (0,
|
|
7120
|
-
/* @__PURE__ */ (0,
|
|
7121
|
-
/* @__PURE__ */ (0,
|
|
7603
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
7604
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
7605
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
7122
7606
|
] })
|
|
7123
7607
|
}
|
|
7124
7608
|
)
|
|
@@ -7128,9 +7612,9 @@ var HuntCard = ({
|
|
|
7128
7612
|
var HuntCard_default = HuntCard;
|
|
7129
7613
|
|
|
7130
7614
|
// src/InfoBox/InfoBox.tsx
|
|
7131
|
-
var
|
|
7615
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
7132
7616
|
var InfoBox = ({ heading, features, className }) => {
|
|
7133
|
-
return /* @__PURE__ */ (0,
|
|
7617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
|
|
7134
7618
|
Box_default,
|
|
7135
7619
|
{
|
|
7136
7620
|
display: "flex",
|
|
@@ -7139,8 +7623,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7139
7623
|
className,
|
|
7140
7624
|
color: "var(--text-primary)",
|
|
7141
7625
|
children: [
|
|
7142
|
-
/* @__PURE__ */ (0,
|
|
7143
|
-
/* @__PURE__ */ (0,
|
|
7626
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
7627
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7144
7628
|
Box_default,
|
|
7145
7629
|
{
|
|
7146
7630
|
display: "flex",
|
|
@@ -7150,7 +7634,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7150
7634
|
borderRadius: "var(--radius-lg)",
|
|
7151
7635
|
bg: "var(--surface-neutral)",
|
|
7152
7636
|
className,
|
|
7153
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
7637
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7154
7638
|
FeatureList_default,
|
|
7155
7639
|
{
|
|
7156
7640
|
heading: section.heading,
|
|
@@ -7167,7 +7651,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7167
7651
|
var InfoBox_default = InfoBox;
|
|
7168
7652
|
|
|
7169
7653
|
// src/StarRating/StarRating.tsx
|
|
7170
|
-
var
|
|
7654
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7171
7655
|
var starSize = {
|
|
7172
7656
|
sm: {
|
|
7173
7657
|
size: "medium",
|
|
@@ -7186,7 +7670,7 @@ var StarRating = ({
|
|
|
7186
7670
|
const stars = [];
|
|
7187
7671
|
for (let i = 1; i <= 5; i++) {
|
|
7188
7672
|
stars.push(
|
|
7189
|
-
/* @__PURE__ */ (0,
|
|
7673
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
7190
7674
|
Icon_default,
|
|
7191
7675
|
{
|
|
7192
7676
|
variant: "StarSolid",
|
|
@@ -7197,7 +7681,7 @@ var StarRating = ({
|
|
|
7197
7681
|
)
|
|
7198
7682
|
);
|
|
7199
7683
|
}
|
|
7200
|
-
return /* @__PURE__ */ (0,
|
|
7684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
7201
7685
|
Box_default,
|
|
7202
7686
|
{
|
|
7203
7687
|
className,
|
|
@@ -7211,7 +7695,7 @@ var StarRating = ({
|
|
|
7211
7695
|
var StarRating_default = StarRating;
|
|
7212
7696
|
|
|
7213
7697
|
// src/UserCard/UserCard.tsx
|
|
7214
|
-
var
|
|
7698
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7215
7699
|
var UserCard = ({
|
|
7216
7700
|
avatarSrc,
|
|
7217
7701
|
title,
|
|
@@ -7221,7 +7705,7 @@ var UserCard = ({
|
|
|
7221
7705
|
isVerified = false,
|
|
7222
7706
|
className
|
|
7223
7707
|
}) => {
|
|
7224
|
-
return /* @__PURE__ */ (0,
|
|
7708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7225
7709
|
Box_default,
|
|
7226
7710
|
{
|
|
7227
7711
|
display: "flex",
|
|
@@ -7230,8 +7714,8 @@ var UserCard = ({
|
|
|
7230
7714
|
gap: "var(--spacing-4)",
|
|
7231
7715
|
className,
|
|
7232
7716
|
children: [
|
|
7233
|
-
/* @__PURE__ */ (0,
|
|
7234
|
-
/* @__PURE__ */ (0,
|
|
7717
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", alignItems: "flex-start", gap: "var(--spacing-4)", children: [
|
|
7718
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7235
7719
|
Avatar_default,
|
|
7236
7720
|
{
|
|
7237
7721
|
type: avatarSrc ? "image" : "text",
|
|
@@ -7240,13 +7724,13 @@ var UserCard = ({
|
|
|
7240
7724
|
alt: `${title}'s avatar`
|
|
7241
7725
|
}
|
|
7242
7726
|
),
|
|
7243
|
-
/* @__PURE__ */ (0,
|
|
7244
|
-
/* @__PURE__ */ (0,
|
|
7245
|
-
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0,
|
|
7246
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
7727
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
7728
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
7729
|
+
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }) : subtitle),
|
|
7730
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(StarRating_default, { rating })
|
|
7247
7731
|
] })
|
|
7248
7732
|
] }),
|
|
7249
|
-
isVerified && /* @__PURE__ */ (0,
|
|
7733
|
+
isVerified && /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7250
7734
|
Box_default,
|
|
7251
7735
|
{
|
|
7252
7736
|
display: "flex",
|
|
@@ -7255,8 +7739,8 @@ var UserCard = ({
|
|
|
7255
7739
|
gap: "var(--spacing-1)",
|
|
7256
7740
|
flexShrink: 0,
|
|
7257
7741
|
children: [
|
|
7258
|
-
/* @__PURE__ */ (0,
|
|
7259
|
-
/* @__PURE__ */ (0,
|
|
7742
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Icon_default, { variant: "ShieldCheckSolid", fill: "var(--icon-success)" }),
|
|
7743
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Text_default, { size: "xs", fontWeight: "bold", color: "text-primary", children: "Verified" })
|
|
7260
7744
|
]
|
|
7261
7745
|
}
|
|
7262
7746
|
)
|
|
@@ -7267,19 +7751,19 @@ var UserCard = ({
|
|
|
7267
7751
|
var UserCard_default = UserCard;
|
|
7268
7752
|
|
|
7269
7753
|
// src/LandownerProfile/components/ProfileSubtitle.tsx
|
|
7270
|
-
var
|
|
7754
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7271
7755
|
var ProfileSubtitle = ({
|
|
7272
7756
|
yearsHosting = 1,
|
|
7273
7757
|
featureReviewItem
|
|
7274
7758
|
}) => {
|
|
7275
|
-
return /* @__PURE__ */ (0,
|
|
7276
|
-
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0,
|
|
7759
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
7760
|
+
yearsHosting && yearsHosting > 0 && /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
7277
7761
|
yearsHosting,
|
|
7278
7762
|
" ",
|
|
7279
7763
|
yearsHosting === 1 ? "Year" : "Years",
|
|
7280
7764
|
" Hosting"
|
|
7281
7765
|
] }),
|
|
7282
|
-
featureReviewItem && /* @__PURE__ */ (0,
|
|
7766
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
7283
7767
|
] });
|
|
7284
7768
|
};
|
|
7285
7769
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -7294,7 +7778,7 @@ var hasTextContent = (html) => {
|
|
|
7294
7778
|
};
|
|
7295
7779
|
|
|
7296
7780
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
7297
|
-
var
|
|
7781
|
+
var import_jsx_runtime243 = require("@emotion/react/jsx-runtime");
|
|
7298
7782
|
var LandownerProfile = ({
|
|
7299
7783
|
heading,
|
|
7300
7784
|
avatarSrc,
|
|
@@ -7318,7 +7802,7 @@ var LandownerProfile = ({
|
|
|
7318
7802
|
iconVariant: "Bolt",
|
|
7319
7803
|
label: `Response Time: ${responseTime}`
|
|
7320
7804
|
} : void 0;
|
|
7321
|
-
return /* @__PURE__ */ (0,
|
|
7805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
7322
7806
|
Box_default,
|
|
7323
7807
|
{
|
|
7324
7808
|
display: "flex",
|
|
@@ -7327,8 +7811,8 @@ var LandownerProfile = ({
|
|
|
7327
7811
|
color: "var(--text-primary)",
|
|
7328
7812
|
className,
|
|
7329
7813
|
children: [
|
|
7330
|
-
heading && /* @__PURE__ */ (0,
|
|
7331
|
-
/* @__PURE__ */ (0,
|
|
7814
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
7815
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
7332
7816
|
Box_default,
|
|
7333
7817
|
{
|
|
7334
7818
|
display: "flex",
|
|
@@ -7338,12 +7822,12 @@ var LandownerProfile = ({
|
|
|
7338
7822
|
p: "var(--spacing-4)",
|
|
7339
7823
|
borderRadius: "var(--radius-lg)",
|
|
7340
7824
|
children: [
|
|
7341
|
-
/* @__PURE__ */ (0,
|
|
7825
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7342
7826
|
UserCard_default,
|
|
7343
7827
|
{
|
|
7344
7828
|
avatarSrc,
|
|
7345
7829
|
title: name,
|
|
7346
|
-
subtitle: /* @__PURE__ */ (0,
|
|
7830
|
+
subtitle: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7347
7831
|
ProfileSubtitle_default,
|
|
7348
7832
|
{
|
|
7349
7833
|
yearsHosting,
|
|
@@ -7354,9 +7838,9 @@ var LandownerProfile = ({
|
|
|
7354
7838
|
isVerified
|
|
7355
7839
|
}
|
|
7356
7840
|
),
|
|
7357
|
-
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0,
|
|
7358
|
-
/* @__PURE__ */ (0,
|
|
7359
|
-
/* @__PURE__ */ (0,
|
|
7841
|
+
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
7842
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Text_default, { fontWeight: "bold", children: "Bio" }),
|
|
7843
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7360
7844
|
Text_default,
|
|
7361
7845
|
{
|
|
7362
7846
|
dangerouslySetInnerHTML: {
|
|
@@ -7365,14 +7849,14 @@ var LandownerProfile = ({
|
|
|
7365
7849
|
}
|
|
7366
7850
|
)
|
|
7367
7851
|
] }),
|
|
7368
|
-
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0,
|
|
7369
|
-
/* @__PURE__ */ (0,
|
|
7370
|
-
/* @__PURE__ */ (0,
|
|
7371
|
-
!!responseRateFeature && /* @__PURE__ */ (0,
|
|
7372
|
-
!!responseTimeFeature && /* @__PURE__ */ (0,
|
|
7852
|
+
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
7853
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Text_default, { fontWeight: "bold", children: "Landowner Details" }),
|
|
7854
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: [
|
|
7855
|
+
!!responseRateFeature && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(FeatureListItem_default, { ...responseRateFeature }),
|
|
7856
|
+
!!responseTimeFeature && /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(FeatureListItem_default, { ...responseTimeFeature })
|
|
7373
7857
|
] })
|
|
7374
7858
|
] }),
|
|
7375
|
-
/* @__PURE__ */ (0,
|
|
7859
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7376
7860
|
Button_default,
|
|
7377
7861
|
{
|
|
7378
7862
|
variant: "secondary",
|
|
@@ -7391,11 +7875,11 @@ var LandownerProfile = ({
|
|
|
7391
7875
|
var LandownerProfile_default = LandownerProfile;
|
|
7392
7876
|
|
|
7393
7877
|
// src/ListingChat/ListingChat.tsx
|
|
7394
|
-
var
|
|
7878
|
+
var import_react48 = require("react");
|
|
7395
7879
|
|
|
7396
7880
|
// src/ListingChat/ListingChat.styles.ts
|
|
7397
|
-
var
|
|
7398
|
-
var containerStyles2 =
|
|
7881
|
+
var import_react47 = require("@emotion/react");
|
|
7882
|
+
var containerStyles2 = import_react47.css`
|
|
7399
7883
|
display: flex;
|
|
7400
7884
|
flex-direction: column;
|
|
7401
7885
|
gap: var(--spacing-4);
|
|
@@ -7403,13 +7887,13 @@ var containerStyles2 = import_react43.css`
|
|
|
7403
7887
|
border-radius: var(--radius-lg);
|
|
7404
7888
|
background: var(--surface-success);
|
|
7405
7889
|
`;
|
|
7406
|
-
var headerStyles =
|
|
7890
|
+
var headerStyles = import_react47.css`
|
|
7407
7891
|
display: flex;
|
|
7408
7892
|
align-items: flex-start;
|
|
7409
7893
|
justify-content: space-between;
|
|
7410
7894
|
gap: var(--spacing-2);
|
|
7411
7895
|
`;
|
|
7412
|
-
var chipsContainerStyles =
|
|
7896
|
+
var chipsContainerStyles = import_react47.css`
|
|
7413
7897
|
display: flex;
|
|
7414
7898
|
flex-wrap: wrap;
|
|
7415
7899
|
gap: var(--spacing-4);
|
|
@@ -7422,15 +7906,15 @@ var chipsContainerStyles = import_react43.css`
|
|
|
7422
7906
|
cursor: pointer;
|
|
7423
7907
|
}
|
|
7424
7908
|
`;
|
|
7425
|
-
var textAreaStyles =
|
|
7909
|
+
var textAreaStyles = import_react47.css`
|
|
7426
7910
|
min-height: 62px;
|
|
7427
7911
|
`;
|
|
7428
|
-
var inputWrapperStyles2 =
|
|
7912
|
+
var inputWrapperStyles2 = import_react47.css`
|
|
7429
7913
|
position: relative;
|
|
7430
7914
|
`;
|
|
7431
7915
|
|
|
7432
7916
|
// src/ListingChat/ListingChat.tsx
|
|
7433
|
-
var
|
|
7917
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
7434
7918
|
var ListingChat = ({
|
|
7435
7919
|
onSubmit,
|
|
7436
7920
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -7440,15 +7924,15 @@ var ListingChat = ({
|
|
|
7440
7924
|
disabled = false,
|
|
7441
7925
|
...rest
|
|
7442
7926
|
}) => {
|
|
7443
|
-
const [value, setValue] = (0,
|
|
7444
|
-
const handleSubmit = (0,
|
|
7927
|
+
const [value, setValue] = (0, import_react48.useState)("");
|
|
7928
|
+
const handleSubmit = (0, import_react48.useCallback)(() => {
|
|
7445
7929
|
const trimmed = value.trim();
|
|
7446
7930
|
if (!trimmed)
|
|
7447
7931
|
return;
|
|
7448
7932
|
onSubmit(trimmed);
|
|
7449
7933
|
setValue("");
|
|
7450
7934
|
}, [onSubmit, value]);
|
|
7451
|
-
const handleTagClick = (0,
|
|
7935
|
+
const handleTagClick = (0, import_react48.useCallback)(
|
|
7452
7936
|
(tag) => () => {
|
|
7453
7937
|
const trimmed = tag.trim();
|
|
7454
7938
|
if (!trimmed)
|
|
@@ -7457,18 +7941,18 @@ var ListingChat = ({
|
|
|
7457
7941
|
},
|
|
7458
7942
|
[onSubmit]
|
|
7459
7943
|
);
|
|
7460
|
-
return /* @__PURE__ */ (0,
|
|
7461
|
-
/* @__PURE__ */ (0,
|
|
7462
|
-
/* @__PURE__ */ (0,
|
|
7463
|
-
/* @__PURE__ */ (0,
|
|
7464
|
-
/* @__PURE__ */ (0,
|
|
7944
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
7945
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(Box_default, { css: headerStyles, children: [
|
|
7946
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(Box_default, { children: [
|
|
7947
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
7948
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
7465
7949
|
] }),
|
|
7466
|
-
/* @__PURE__ */ (0,
|
|
7467
|
-
/* @__PURE__ */ (0,
|
|
7468
|
-
/* @__PURE__ */ (0,
|
|
7950
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
7951
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
7952
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
7469
7953
|
] })
|
|
7470
7954
|
] }),
|
|
7471
|
-
/* @__PURE__ */ (0,
|
|
7955
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
7472
7956
|
TextArea,
|
|
7473
7957
|
{
|
|
7474
7958
|
rows: 1,
|
|
@@ -7483,14 +7967,14 @@ var ListingChat = ({
|
|
|
7483
7967
|
css: textAreaStyles
|
|
7484
7968
|
}
|
|
7485
7969
|
) }),
|
|
7486
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
7487
|
-
/* @__PURE__ */ (0,
|
|
7488
|
-
/* @__PURE__ */ (0,
|
|
7970
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(import_jsx_runtime244.Fragment, { children: [
|
|
7971
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
7972
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
7489
7973
|
"button",
|
|
7490
7974
|
{
|
|
7491
7975
|
onClick: handleTagClick(tag),
|
|
7492
7976
|
disabled,
|
|
7493
|
-
children: /* @__PURE__ */ (0,
|
|
7977
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(TagChip_default, { children: tag })
|
|
7494
7978
|
},
|
|
7495
7979
|
tag
|
|
7496
7980
|
)) })
|
|
@@ -7500,11 +7984,11 @@ var ListingChat = ({
|
|
|
7500
7984
|
var ListingChat_default = ListingChat;
|
|
7501
7985
|
|
|
7502
7986
|
// src/Logo/Logo.tsx
|
|
7503
|
-
var
|
|
7987
|
+
var import_react49 = require("@emotion/react");
|
|
7504
7988
|
|
|
7505
7989
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
7506
|
-
var
|
|
7507
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
7990
|
+
var import_jsx_runtime245 = require("@emotion/react/jsx-runtime");
|
|
7991
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
|
|
7508
7992
|
"svg",
|
|
7509
7993
|
{
|
|
7510
7994
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7512,14 +7996,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7512
7996
|
fill: "none",
|
|
7513
7997
|
...props,
|
|
7514
7998
|
children: [
|
|
7515
|
-
/* @__PURE__ */ (0,
|
|
7999
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7516
8000
|
"path",
|
|
7517
8001
|
{
|
|
7518
8002
|
fill: "#000",
|
|
7519
8003
|
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"
|
|
7520
8004
|
}
|
|
7521
8005
|
) }),
|
|
7522
|
-
/* @__PURE__ */ (0,
|
|
8006
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7523
8007
|
"path",
|
|
7524
8008
|
{
|
|
7525
8009
|
fill: "#FAD44E",
|
|
@@ -7528,14 +8012,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7528
8012
|
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"
|
|
7529
8013
|
}
|
|
7530
8014
|
),
|
|
7531
|
-
/* @__PURE__ */ (0,
|
|
8015
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7532
8016
|
"path",
|
|
7533
8017
|
{
|
|
7534
8018
|
fill: "#fff",
|
|
7535
8019
|
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"
|
|
7536
8020
|
}
|
|
7537
8021
|
),
|
|
7538
|
-
/* @__PURE__ */ (0,
|
|
8022
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
|
|
7539
8023
|
"filter",
|
|
7540
8024
|
{
|
|
7541
8025
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -7546,8 +8030,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7546
8030
|
colorInterpolationFilters: "sRGB",
|
|
7547
8031
|
filterUnits: "userSpaceOnUse",
|
|
7548
8032
|
children: [
|
|
7549
|
-
/* @__PURE__ */ (0,
|
|
7550
|
-
/* @__PURE__ */ (0,
|
|
8033
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
8034
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7551
8035
|
"feColorMatrix",
|
|
7552
8036
|
{
|
|
7553
8037
|
in: "SourceAlpha",
|
|
@@ -7555,18 +8039,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7555
8039
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
7556
8040
|
}
|
|
7557
8041
|
),
|
|
7558
|
-
/* @__PURE__ */ (0,
|
|
7559
|
-
/* @__PURE__ */ (0,
|
|
7560
|
-
/* @__PURE__ */ (0,
|
|
7561
|
-
/* @__PURE__ */ (0,
|
|
7562
|
-
/* @__PURE__ */ (0,
|
|
8042
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("feOffset", { dy: 1 }),
|
|
8043
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
8044
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
8045
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
8046
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7563
8047
|
"feBlend",
|
|
7564
8048
|
{
|
|
7565
8049
|
in2: "BackgroundImageFix",
|
|
7566
8050
|
result: "effect1_dropShadow_257_2540"
|
|
7567
8051
|
}
|
|
7568
8052
|
),
|
|
7569
|
-
/* @__PURE__ */ (0,
|
|
8053
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7570
8054
|
"feBlend",
|
|
7571
8055
|
{
|
|
7572
8056
|
in: "SourceGraphic",
|
|
@@ -7583,8 +8067,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7583
8067
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
7584
8068
|
|
|
7585
8069
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
7586
|
-
var
|
|
7587
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
8070
|
+
var import_jsx_runtime246 = require("@emotion/react/jsx-runtime");
|
|
8071
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
|
|
7588
8072
|
"svg",
|
|
7589
8073
|
{
|
|
7590
8074
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7592,14 +8076,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7592
8076
|
fill: "none",
|
|
7593
8077
|
...props,
|
|
7594
8078
|
children: [
|
|
7595
|
-
/* @__PURE__ */ (0,
|
|
8079
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7596
8080
|
"path",
|
|
7597
8081
|
{
|
|
7598
8082
|
fill: "#000",
|
|
7599
8083
|
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"
|
|
7600
8084
|
}
|
|
7601
8085
|
) }),
|
|
7602
|
-
/* @__PURE__ */ (0,
|
|
8086
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7603
8087
|
"path",
|
|
7604
8088
|
{
|
|
7605
8089
|
fill: "#FAD44E",
|
|
@@ -7608,14 +8092,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7608
8092
|
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"
|
|
7609
8093
|
}
|
|
7610
8094
|
),
|
|
7611
|
-
/* @__PURE__ */ (0,
|
|
8095
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7612
8096
|
"path",
|
|
7613
8097
|
{
|
|
7614
8098
|
fill: "#1A202C",
|
|
7615
8099
|
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"
|
|
7616
8100
|
}
|
|
7617
8101
|
),
|
|
7618
|
-
/* @__PURE__ */ (0,
|
|
8102
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
|
|
7619
8103
|
"filter",
|
|
7620
8104
|
{
|
|
7621
8105
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -7626,8 +8110,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7626
8110
|
colorInterpolationFilters: "sRGB",
|
|
7627
8111
|
filterUnits: "userSpaceOnUse",
|
|
7628
8112
|
children: [
|
|
7629
|
-
/* @__PURE__ */ (0,
|
|
7630
|
-
/* @__PURE__ */ (0,
|
|
8113
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
8114
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7631
8115
|
"feColorMatrix",
|
|
7632
8116
|
{
|
|
7633
8117
|
in: "SourceAlpha",
|
|
@@ -7635,18 +8119,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7635
8119
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
7636
8120
|
}
|
|
7637
8121
|
),
|
|
7638
|
-
/* @__PURE__ */ (0,
|
|
7639
|
-
/* @__PURE__ */ (0,
|
|
7640
|
-
/* @__PURE__ */ (0,
|
|
7641
|
-
/* @__PURE__ */ (0,
|
|
7642
|
-
/* @__PURE__ */ (0,
|
|
8122
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("feOffset", { dy: 1 }),
|
|
8123
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
8124
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
8125
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
8126
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7643
8127
|
"feBlend",
|
|
7644
8128
|
{
|
|
7645
8129
|
in2: "BackgroundImageFix",
|
|
7646
8130
|
result: "effect1_dropShadow_257_2538"
|
|
7647
8131
|
}
|
|
7648
8132
|
),
|
|
7649
|
-
/* @__PURE__ */ (0,
|
|
8133
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7650
8134
|
"feBlend",
|
|
7651
8135
|
{
|
|
7652
8136
|
in: "SourceGraphic",
|
|
@@ -7663,8 +8147,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7663
8147
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
7664
8148
|
|
|
7665
8149
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
7666
|
-
var
|
|
7667
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
8150
|
+
var import_jsx_runtime247 = require("@emotion/react/jsx-runtime");
|
|
8151
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime247.jsxs)(
|
|
7668
8152
|
"svg",
|
|
7669
8153
|
{
|
|
7670
8154
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7672,14 +8156,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
7672
8156
|
fill: "none",
|
|
7673
8157
|
...props,
|
|
7674
8158
|
children: [
|
|
7675
|
-
/* @__PURE__ */ (0,
|
|
8159
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
7676
8160
|
"path",
|
|
7677
8161
|
{
|
|
7678
8162
|
fill: "#E2430C",
|
|
7679
8163
|
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"
|
|
7680
8164
|
}
|
|
7681
8165
|
),
|
|
7682
|
-
/* @__PURE__ */ (0,
|
|
8166
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
7683
8167
|
"path",
|
|
7684
8168
|
{
|
|
7685
8169
|
fill: "#fff",
|
|
@@ -7692,8 +8176,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
7692
8176
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
7693
8177
|
|
|
7694
8178
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
7695
|
-
var
|
|
7696
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
8179
|
+
var import_jsx_runtime248 = require("@emotion/react/jsx-runtime");
|
|
8180
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime248.jsxs)(
|
|
7697
8181
|
"svg",
|
|
7698
8182
|
{
|
|
7699
8183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7701,14 +8185,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
7701
8185
|
fill: "none",
|
|
7702
8186
|
...props,
|
|
7703
8187
|
children: [
|
|
7704
|
-
/* @__PURE__ */ (0,
|
|
8188
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
7705
8189
|
"path",
|
|
7706
8190
|
{
|
|
7707
8191
|
fill: "#E2430C",
|
|
7708
8192
|
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"
|
|
7709
8193
|
}
|
|
7710
8194
|
),
|
|
7711
|
-
/* @__PURE__ */ (0,
|
|
8195
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
7712
8196
|
"path",
|
|
7713
8197
|
{
|
|
7714
8198
|
fill: "#000",
|
|
@@ -7721,8 +8205,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
7721
8205
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
7722
8206
|
|
|
7723
8207
|
// src/Logo/Logo.tsx
|
|
7724
|
-
var
|
|
7725
|
-
var logoStyles = (size) =>
|
|
8208
|
+
var import_jsx_runtime249 = require("@emotion/react/jsx-runtime");
|
|
8209
|
+
var logoStyles = (size) => import_react49.css`
|
|
7726
8210
|
width: ${space[size]};
|
|
7727
8211
|
height: auto;
|
|
7728
8212
|
display: block;
|
|
@@ -7750,18 +8234,18 @@ var Logo = ({
|
|
|
7750
8234
|
return LandtrustStandardLight_default;
|
|
7751
8235
|
};
|
|
7752
8236
|
const LogoComponent = getLogoComponent();
|
|
7753
|
-
return /* @__PURE__ */ (0,
|
|
8237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
7754
8238
|
};
|
|
7755
8239
|
var Logo_default = Logo;
|
|
7756
8240
|
|
|
7757
8241
|
// src/Navigation/Navigation.styles.ts
|
|
7758
|
-
var
|
|
7759
|
-
var navigationStyles =
|
|
8242
|
+
var import_react50 = require("@emotion/react");
|
|
8243
|
+
var navigationStyles = import_react50.css`
|
|
7760
8244
|
width: 100%;
|
|
7761
8245
|
background-color: white;
|
|
7762
8246
|
border-bottom: 1px solid #e5e5e5;
|
|
7763
8247
|
`;
|
|
7764
|
-
var hamburgerButtonStyles =
|
|
8248
|
+
var hamburgerButtonStyles = import_react50.css`
|
|
7765
8249
|
cursor: pointer;
|
|
7766
8250
|
&:focus {
|
|
7767
8251
|
outline: 2px solid #4f46e5;
|
|
@@ -7772,7 +8256,7 @@ var hamburgerButtonStyles = import_react46.css`
|
|
|
7772
8256
|
display: none;
|
|
7773
8257
|
}
|
|
7774
8258
|
`;
|
|
7775
|
-
var centeredLogoStyles =
|
|
8259
|
+
var centeredLogoStyles = import_react50.css`
|
|
7776
8260
|
transform: translate(-50%, -50%);
|
|
7777
8261
|
max-width: 150px;
|
|
7778
8262
|
|
|
@@ -7780,27 +8264,27 @@ var centeredLogoStyles = import_react46.css`
|
|
|
7780
8264
|
display: none;
|
|
7781
8265
|
}
|
|
7782
8266
|
`;
|
|
7783
|
-
var desktopLogoStyles =
|
|
8267
|
+
var desktopLogoStyles = import_react50.css`
|
|
7784
8268
|
display: none;
|
|
7785
8269
|
|
|
7786
8270
|
@media (min-width: 768px) {
|
|
7787
8271
|
display: block;
|
|
7788
8272
|
}
|
|
7789
8273
|
`;
|
|
7790
|
-
var containerStyles3 =
|
|
8274
|
+
var containerStyles3 = import_react50.css`
|
|
7791
8275
|
@media (min-width: 768px) {
|
|
7792
8276
|
justify-content: space-between;
|
|
7793
8277
|
position: static;
|
|
7794
8278
|
}
|
|
7795
8279
|
`;
|
|
7796
|
-
var logoStyles2 =
|
|
8280
|
+
var logoStyles2 = import_react50.css`
|
|
7797
8281
|
width: 100%;
|
|
7798
8282
|
|
|
7799
8283
|
@media (min-width: 768px) {
|
|
7800
8284
|
width: initial;
|
|
7801
8285
|
}
|
|
7802
8286
|
`;
|
|
7803
|
-
var desktopNavStyles =
|
|
8287
|
+
var desktopNavStyles = import_react50.css`
|
|
7804
8288
|
display: none;
|
|
7805
8289
|
|
|
7806
8290
|
@media (min-width: 768px) {
|
|
@@ -7809,7 +8293,7 @@ var desktopNavStyles = import_react46.css`
|
|
|
7809
8293
|
gap: 32px;
|
|
7810
8294
|
}
|
|
7811
8295
|
`;
|
|
7812
|
-
var navLinksStyles =
|
|
8296
|
+
var navLinksStyles = import_react50.css`
|
|
7813
8297
|
display: flex;
|
|
7814
8298
|
align-items: center;
|
|
7815
8299
|
gap: 24px;
|
|
@@ -7817,7 +8301,7 @@ var navLinksStyles = import_react46.css`
|
|
|
7817
8301
|
margin: 0;
|
|
7818
8302
|
padding: 0;
|
|
7819
8303
|
`;
|
|
7820
|
-
var navLinkStyles =
|
|
8304
|
+
var navLinkStyles = import_react50.css`
|
|
7821
8305
|
text-decoration: none;
|
|
7822
8306
|
color: #374151;
|
|
7823
8307
|
font-weight: 500;
|
|
@@ -7833,7 +8317,7 @@ var navLinkStyles = import_react46.css`
|
|
|
7833
8317
|
outline-offset: 2px;
|
|
7834
8318
|
}
|
|
7835
8319
|
`;
|
|
7836
|
-
var avatarPlaceholderStyles =
|
|
8320
|
+
var avatarPlaceholderStyles = import_react50.css`
|
|
7837
8321
|
width: 32px;
|
|
7838
8322
|
height: 32px;
|
|
7839
8323
|
border-radius: 50%;
|
|
@@ -7858,7 +8342,7 @@ var avatarPlaceholderStyles = import_react46.css`
|
|
|
7858
8342
|
`;
|
|
7859
8343
|
|
|
7860
8344
|
// src/Navigation/Navigation.tsx
|
|
7861
|
-
var
|
|
8345
|
+
var import_jsx_runtime250 = require("@emotion/react/jsx-runtime");
|
|
7862
8346
|
var Navigation = ({
|
|
7863
8347
|
onMenuToggle,
|
|
7864
8348
|
className,
|
|
@@ -7872,7 +8356,7 @@ var Navigation = ({
|
|
|
7872
8356
|
onAvatarClick,
|
|
7873
8357
|
...rest
|
|
7874
8358
|
}) => {
|
|
7875
|
-
return /* @__PURE__ */ (0,
|
|
8359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
7876
8360
|
Box_default,
|
|
7877
8361
|
{
|
|
7878
8362
|
display: "flex",
|
|
@@ -7881,7 +8365,7 @@ var Navigation = ({
|
|
|
7881
8365
|
position: "relative",
|
|
7882
8366
|
css: containerStyles3,
|
|
7883
8367
|
children: [
|
|
7884
|
-
/* @__PURE__ */ (0,
|
|
8368
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
7885
8369
|
Box_default,
|
|
7886
8370
|
{
|
|
7887
8371
|
as: "button",
|
|
@@ -7893,11 +8377,11 @@ var Navigation = ({
|
|
|
7893
8377
|
border: "none",
|
|
7894
8378
|
padding: space[2],
|
|
7895
8379
|
css: hamburgerButtonStyles,
|
|
7896
|
-
children: /* @__PURE__ */ (0,
|
|
8380
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
7897
8381
|
}
|
|
7898
8382
|
),
|
|
7899
|
-
/* @__PURE__ */ (0,
|
|
7900
|
-
/* @__PURE__ */ (0,
|
|
8383
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
8384
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
7901
8385
|
Logo_default,
|
|
7902
8386
|
{
|
|
7903
8387
|
variant: logoVariant,
|
|
@@ -7906,8 +8390,8 @@ var Navigation = ({
|
|
|
7906
8390
|
css: logoStyles2
|
|
7907
8391
|
}
|
|
7908
8392
|
) }),
|
|
7909
|
-
/* @__PURE__ */ (0,
|
|
7910
|
-
/* @__PURE__ */ (0,
|
|
8393
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
8394
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
7911
8395
|
"a",
|
|
7912
8396
|
{
|
|
7913
8397
|
href: link.href,
|
|
@@ -7916,7 +8400,7 @@ var Navigation = ({
|
|
|
7916
8400
|
children: link.label
|
|
7917
8401
|
}
|
|
7918
8402
|
) }, link.href)) }) }),
|
|
7919
|
-
/* @__PURE__ */ (0,
|
|
8403
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
7920
8404
|
Box_default,
|
|
7921
8405
|
{
|
|
7922
8406
|
as: "button",
|
|
@@ -7935,21 +8419,21 @@ var Navigation = ({
|
|
|
7935
8419
|
var Navigation_default = Navigation;
|
|
7936
8420
|
|
|
7937
8421
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
7938
|
-
var
|
|
8422
|
+
var import_react53 = require("react");
|
|
7939
8423
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
7940
8424
|
|
|
7941
8425
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
7942
|
-
var
|
|
7943
|
-
var CarouselContext =
|
|
8426
|
+
var import_react51 = __toESM(require("react"));
|
|
8427
|
+
var CarouselContext = import_react51.default.createContext(
|
|
7944
8428
|
null
|
|
7945
8429
|
);
|
|
7946
8430
|
|
|
7947
8431
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
7948
|
-
var
|
|
7949
|
-
var carouselRoot =
|
|
8432
|
+
var import_react52 = require("@emotion/react");
|
|
8433
|
+
var carouselRoot = import_react52.css`
|
|
7950
8434
|
position: relative;
|
|
7951
8435
|
`;
|
|
7952
|
-
var carousel =
|
|
8436
|
+
var carousel = import_react52.css`
|
|
7953
8437
|
display: flex;
|
|
7954
8438
|
overflow-y: hidden;
|
|
7955
8439
|
overflow-x: scroll;
|
|
@@ -7961,7 +8445,7 @@ var carousel = import_react48.css`
|
|
|
7961
8445
|
display: none;
|
|
7962
8446
|
}
|
|
7963
8447
|
`;
|
|
7964
|
-
var step =
|
|
8448
|
+
var step = import_react52.css`
|
|
7965
8449
|
scroll-snap-align: center;
|
|
7966
8450
|
flex-basis: 100%;
|
|
7967
8451
|
flex-shrink: 0;
|
|
@@ -7974,7 +8458,7 @@ var step = import_react48.css`
|
|
|
7974
8458
|
flex-basis: 100%;
|
|
7975
8459
|
}
|
|
7976
8460
|
`;
|
|
7977
|
-
var controls = (position2) =>
|
|
8461
|
+
var controls = (position2) => import_react52.css`
|
|
7978
8462
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
7979
8463
|
display: none;
|
|
7980
8464
|
|
|
@@ -7983,7 +8467,7 @@ var controls = (position2) => import_react48.css`
|
|
|
7983
8467
|
}
|
|
7984
8468
|
`}
|
|
7985
8469
|
`;
|
|
7986
|
-
var iconWrapper =
|
|
8470
|
+
var iconWrapper = import_react52.css`
|
|
7987
8471
|
display: flex;
|
|
7988
8472
|
width: var(--spacing-7);
|
|
7989
8473
|
height: var(--spacing-7);
|
|
@@ -7993,7 +8477,7 @@ var iconWrapper = import_react48.css`
|
|
|
7993
8477
|
justify-content: center;
|
|
7994
8478
|
box-shadow: var(--shadow-md);
|
|
7995
8479
|
`;
|
|
7996
|
-
var button = (position2) =>
|
|
8480
|
+
var button = (position2) => import_react52.css`
|
|
7997
8481
|
background: transparent;
|
|
7998
8482
|
border-color: transparent;
|
|
7999
8483
|
outline: none;
|
|
@@ -8002,6 +8486,8 @@ var button = (position2) => import_react48.css`
|
|
|
8002
8486
|
position: absolute;
|
|
8003
8487
|
opacity: 0.9;
|
|
8004
8488
|
transition: transform 0.3s ease, opacity 0.3s ease;
|
|
8489
|
+
padding: 0;
|
|
8490
|
+
border-width: 0;
|
|
8005
8491
|
|
|
8006
8492
|
${position2 === "left-right" && `
|
|
8007
8493
|
top: calc(50% - (var(--spacing-12) / 2));
|
|
@@ -8023,11 +8509,11 @@ var button = (position2) => import_react48.css`
|
|
|
8023
8509
|
bottom: calc(-1 * var(--spacing-1));
|
|
8024
8510
|
`}
|
|
8025
8511
|
`;
|
|
8026
|
-
var buttonLeft = (position2) =>
|
|
8512
|
+
var buttonLeft = (position2) => import_react52.css`
|
|
8027
8513
|
${button(position2)}
|
|
8028
8514
|
|
|
8029
8515
|
${position2 === "left-right" && `
|
|
8030
|
-
left:
|
|
8516
|
+
left: var(--spacing-2);
|
|
8031
8517
|
`}
|
|
8032
8518
|
|
|
8033
8519
|
${position2 === "bottom" && `
|
|
@@ -8043,7 +8529,7 @@ var buttonLeft = (position2) => import_react48.css`
|
|
|
8043
8529
|
left: calc(50% - var(--spacing-16));
|
|
8044
8530
|
`}
|
|
8045
8531
|
`;
|
|
8046
|
-
var customButtonLeft = (position2) =>
|
|
8532
|
+
var customButtonLeft = (position2) => import_react52.css`
|
|
8047
8533
|
${button(position2)}
|
|
8048
8534
|
|
|
8049
8535
|
${position2 === "left-right" && `
|
|
@@ -8063,11 +8549,11 @@ var customButtonLeft = (position2) => import_react48.css`
|
|
|
8063
8549
|
left: calc(50% - var(--spacing-16));
|
|
8064
8550
|
`}
|
|
8065
8551
|
`;
|
|
8066
|
-
var buttonRight = (position2) =>
|
|
8552
|
+
var buttonRight = (position2) => import_react52.css`
|
|
8067
8553
|
${button(position2)}
|
|
8068
8554
|
|
|
8069
8555
|
${position2 === "left-right" && `
|
|
8070
|
-
right:
|
|
8556
|
+
right: var(--spacing-2);
|
|
8071
8557
|
`}
|
|
8072
8558
|
|
|
8073
8559
|
${position2 === "bottom" && `
|
|
@@ -8083,12 +8569,12 @@ var buttonRight = (position2) => import_react48.css`
|
|
|
8083
8569
|
right: calc(50% - var(--spacing-16));
|
|
8084
8570
|
`}
|
|
8085
8571
|
`;
|
|
8086
|
-
var icon =
|
|
8572
|
+
var icon = import_react52.css`
|
|
8087
8573
|
width: var(--spacing-3);
|
|
8088
8574
|
height: var(--spacing-3);
|
|
8089
8575
|
color: var(--color-base-black);
|
|
8090
8576
|
`;
|
|
8091
|
-
var dots =
|
|
8577
|
+
var dots = import_react52.css`
|
|
8092
8578
|
position: absolute;
|
|
8093
8579
|
bottom: var(--spacing-2);
|
|
8094
8580
|
left: 0;
|
|
@@ -8098,11 +8584,11 @@ var dots = import_react48.css`
|
|
|
8098
8584
|
align-items: center;
|
|
8099
8585
|
justify-content: center;
|
|
8100
8586
|
`;
|
|
8101
|
-
var dotsInner =
|
|
8587
|
+
var dotsInner = import_react52.css`
|
|
8102
8588
|
display: flex;
|
|
8103
8589
|
overflow: hidden;
|
|
8104
8590
|
`;
|
|
8105
|
-
var dot = (dotsColor) =>
|
|
8591
|
+
var dot = (dotsColor) => import_react52.css`
|
|
8106
8592
|
position: relative;
|
|
8107
8593
|
flex-shrink: 0;
|
|
8108
8594
|
flex-grow: 0;
|
|
@@ -8141,22 +8627,22 @@ var dot = (dotsColor) => import_react48.css`
|
|
|
8141
8627
|
`}
|
|
8142
8628
|
}
|
|
8143
8629
|
`;
|
|
8144
|
-
var dotDistance2 =
|
|
8630
|
+
var dotDistance2 = import_react52.css`
|
|
8145
8631
|
&::after {
|
|
8146
8632
|
transform: translate(-50%, -50%) scale(0.9);
|
|
8147
8633
|
}
|
|
8148
8634
|
`;
|
|
8149
|
-
var dotDistance3 =
|
|
8635
|
+
var dotDistance3 = import_react52.css`
|
|
8150
8636
|
&::after {
|
|
8151
8637
|
transform: translate(-50%, -50%) scale(0.8);
|
|
8152
8638
|
}
|
|
8153
8639
|
`;
|
|
8154
|
-
var dotDistanceGreaterThan3 =
|
|
8640
|
+
var dotDistanceGreaterThan3 = import_react52.css`
|
|
8155
8641
|
&::after {
|
|
8156
8642
|
transform: translate(-50%, -50%) scale(0.7);
|
|
8157
8643
|
}
|
|
8158
8644
|
`;
|
|
8159
|
-
var dotVisible =
|
|
8645
|
+
var dotVisible = import_react52.css`
|
|
8160
8646
|
&::after {
|
|
8161
8647
|
opacity: 1;
|
|
8162
8648
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -8164,7 +8650,7 @@ var dotVisible = import_react48.css`
|
|
|
8164
8650
|
`;
|
|
8165
8651
|
|
|
8166
8652
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
8167
|
-
var
|
|
8653
|
+
var import_jsx_runtime251 = require("@emotion/react/jsx-runtime");
|
|
8168
8654
|
var ScrollingCarouselStep = ({
|
|
8169
8655
|
children,
|
|
8170
8656
|
index,
|
|
@@ -8172,7 +8658,7 @@ var ScrollingCarouselStep = ({
|
|
|
8172
8658
|
parentId,
|
|
8173
8659
|
onClick
|
|
8174
8660
|
}) => {
|
|
8175
|
-
const context = (0,
|
|
8661
|
+
const context = (0, import_react53.useContext)(CarouselContext);
|
|
8176
8662
|
if (!context) {
|
|
8177
8663
|
throw new Error(
|
|
8178
8664
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -8183,7 +8669,7 @@ var ScrollingCarouselStep = ({
|
|
|
8183
8669
|
threshold: 0.75,
|
|
8184
8670
|
root: carousel2.current
|
|
8185
8671
|
});
|
|
8186
|
-
(0,
|
|
8672
|
+
(0, import_react53.useEffect)(() => {
|
|
8187
8673
|
if (typeof index !== "undefined") {
|
|
8188
8674
|
dispatch({
|
|
8189
8675
|
type: "set_child_visibility",
|
|
@@ -8192,7 +8678,7 @@ var ScrollingCarouselStep = ({
|
|
|
8192
8678
|
}
|
|
8193
8679
|
}, [inView, index, dispatch]);
|
|
8194
8680
|
const dataStep = { [`data-step-${parentId}`]: index };
|
|
8195
|
-
return /* @__PURE__ */ (0,
|
|
8681
|
+
return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8196
8682
|
"div",
|
|
8197
8683
|
{
|
|
8198
8684
|
ref,
|
|
@@ -8209,10 +8695,10 @@ var ScrollingCarouselStep = ({
|
|
|
8209
8695
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
8210
8696
|
|
|
8211
8697
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
8212
|
-
var
|
|
8698
|
+
var import_react57 = __toESM(require("react"));
|
|
8213
8699
|
|
|
8214
8700
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
8215
|
-
var
|
|
8701
|
+
var import_react54 = require("react");
|
|
8216
8702
|
|
|
8217
8703
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
8218
8704
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -8243,7 +8729,7 @@ var useCarouselDots = ({
|
|
|
8243
8729
|
anyItemsVisible,
|
|
8244
8730
|
numberOfDots
|
|
8245
8731
|
}) => {
|
|
8246
|
-
const dotOffset = (0,
|
|
8732
|
+
const dotOffset = (0, import_react54.useRef)(0);
|
|
8247
8733
|
const dotWidth = 12;
|
|
8248
8734
|
const totalDots = childVisibility.length;
|
|
8249
8735
|
const dotToCenterIndex = Math.round(
|
|
@@ -8275,7 +8761,7 @@ var useCarouselDots = ({
|
|
|
8275
8761
|
};
|
|
8276
8762
|
|
|
8277
8763
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
8278
|
-
var
|
|
8764
|
+
var import_react55 = require("react");
|
|
8279
8765
|
|
|
8280
8766
|
// src/shared/helpers.ts
|
|
8281
8767
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -8309,7 +8795,7 @@ var useCarouselNavigation = ({
|
|
|
8309
8795
|
infiniteScroll,
|
|
8310
8796
|
childVisibilityLength
|
|
8311
8797
|
}) => {
|
|
8312
|
-
const getStepEl = (0,
|
|
8798
|
+
const getStepEl = (0, import_react55.useCallback)(
|
|
8313
8799
|
(index) => {
|
|
8314
8800
|
if (carousel2.current) {
|
|
8315
8801
|
return carousel2.current.querySelectorAll(`[data-step-${id}]`)[index] || null;
|
|
@@ -8318,7 +8804,7 @@ var useCarouselNavigation = ({
|
|
|
8318
8804
|
},
|
|
8319
8805
|
[carousel2, id]
|
|
8320
8806
|
);
|
|
8321
|
-
const next = (0,
|
|
8807
|
+
const next = (0, import_react55.useCallback)(
|
|
8322
8808
|
(e) => {
|
|
8323
8809
|
e.preventDefault();
|
|
8324
8810
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -8346,7 +8832,7 @@ var useCarouselNavigation = ({
|
|
|
8346
8832
|
carousel2
|
|
8347
8833
|
]
|
|
8348
8834
|
);
|
|
8349
|
-
const back = (0,
|
|
8835
|
+
const back = (0, import_react55.useCallback)(
|
|
8350
8836
|
(e) => {
|
|
8351
8837
|
e.preventDefault();
|
|
8352
8838
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -8374,7 +8860,7 @@ var useCarouselNavigation = ({
|
|
|
8374
8860
|
carousel2
|
|
8375
8861
|
]
|
|
8376
8862
|
);
|
|
8377
|
-
const goTo = (0,
|
|
8863
|
+
const goTo = (0, import_react55.useCallback)(
|
|
8378
8864
|
(e, i) => {
|
|
8379
8865
|
e.preventDefault();
|
|
8380
8866
|
const el = getStepEl(i);
|
|
@@ -8392,12 +8878,12 @@ var useCarouselNavigation = ({
|
|
|
8392
8878
|
};
|
|
8393
8879
|
|
|
8394
8880
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
8395
|
-
var
|
|
8881
|
+
var import_react56 = require("react");
|
|
8396
8882
|
var useCarouselVisibility = (carousel2) => {
|
|
8397
|
-
const [state, dispatch] = (0,
|
|
8883
|
+
const [state, dispatch] = (0, import_react56.useReducer)(childVisibilityReducer, {
|
|
8398
8884
|
childVisibility: []
|
|
8399
8885
|
});
|
|
8400
|
-
const carouselContextApi = (0,
|
|
8886
|
+
const carouselContextApi = (0, import_react56.useMemo)(
|
|
8401
8887
|
() => ({ carousel: carousel2, dispatch }),
|
|
8402
8888
|
[carousel2]
|
|
8403
8889
|
);
|
|
@@ -8418,7 +8904,7 @@ var useCarouselVisibility = (carousel2) => {
|
|
|
8418
8904
|
};
|
|
8419
8905
|
|
|
8420
8906
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
8421
|
-
var
|
|
8907
|
+
var import_jsx_runtime252 = require("@emotion/react/jsx-runtime");
|
|
8422
8908
|
var ScrollingCarousel = ({
|
|
8423
8909
|
className,
|
|
8424
8910
|
children,
|
|
@@ -8435,8 +8921,8 @@ var ScrollingCarousel = ({
|
|
|
8435
8921
|
id,
|
|
8436
8922
|
current
|
|
8437
8923
|
}) => {
|
|
8438
|
-
const carousel2 = (0,
|
|
8439
|
-
const [isHovering, setIsHovering] = (0,
|
|
8924
|
+
const carousel2 = (0, import_react57.useRef)(null);
|
|
8925
|
+
const [isHovering, setIsHovering] = (0, import_react57.useState)(false);
|
|
8440
8926
|
const {
|
|
8441
8927
|
state,
|
|
8442
8928
|
carouselContextApi,
|
|
@@ -8456,7 +8942,7 @@ var ScrollingCarousel = ({
|
|
|
8456
8942
|
infiniteScroll,
|
|
8457
8943
|
childVisibilityLength: state.childVisibility.length
|
|
8458
8944
|
});
|
|
8459
|
-
(0,
|
|
8945
|
+
(0, import_react57.useEffect)(() => {
|
|
8460
8946
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
8461
8947
|
const childrenArray = Array.from(carousel2.current.children);
|
|
8462
8948
|
const selectedItem = childrenArray[current];
|
|
@@ -8471,9 +8957,9 @@ var ScrollingCarousel = ({
|
|
|
8471
8957
|
}
|
|
8472
8958
|
}
|
|
8473
8959
|
}, [current]);
|
|
8474
|
-
const childrenWithIndex =
|
|
8960
|
+
const childrenWithIndex = import_react57.default.Children.map(
|
|
8475
8961
|
children,
|
|
8476
|
-
(child, index) =>
|
|
8962
|
+
(child, index) => import_react57.default.cloneElement(child, { index })
|
|
8477
8963
|
);
|
|
8478
8964
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
8479
8965
|
childVisibility: state.childVisibility,
|
|
@@ -8484,7 +8970,7 @@ var ScrollingCarousel = ({
|
|
|
8484
8970
|
});
|
|
8485
8971
|
const hasMultipleChildren = state.childVisibility.length > 1;
|
|
8486
8972
|
const shouldShowNavigation = showNavigationOnHover ? isHovering : true;
|
|
8487
|
-
return /* @__PURE__ */ (0,
|
|
8973
|
+
return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
8488
8974
|
"div",
|
|
8489
8975
|
{
|
|
8490
8976
|
css: carouselRoot,
|
|
@@ -8492,7 +8978,7 @@ var ScrollingCarousel = ({
|
|
|
8492
8978
|
onMouseEnter: () => setIsHovering(true),
|
|
8493
8979
|
onMouseLeave: () => setIsHovering(false),
|
|
8494
8980
|
children: [
|
|
8495
|
-
/* @__PURE__ */ (0,
|
|
8981
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8496
8982
|
"div",
|
|
8497
8983
|
{
|
|
8498
8984
|
css: carousel,
|
|
@@ -8501,11 +8987,11 @@ var ScrollingCarousel = ({
|
|
|
8501
8987
|
role: "region",
|
|
8502
8988
|
"aria-roledescription": "carousel",
|
|
8503
8989
|
"aria-label": "Scrolling carousel",
|
|
8504
|
-
children: /* @__PURE__ */ (0,
|
|
8990
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(CarouselContext.Provider, { value: carouselContextApi, children: childrenWithIndex })
|
|
8505
8991
|
}
|
|
8506
8992
|
),
|
|
8507
|
-
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0,
|
|
8508
|
-
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
8993
|
+
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)("div", { css: controls(buttonsPosition), children: [
|
|
8994
|
+
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8509
8995
|
"button",
|
|
8510
8996
|
{
|
|
8511
8997
|
"aria-label": "Previous",
|
|
@@ -8513,10 +8999,10 @@ var ScrollingCarousel = ({
|
|
|
8513
8999
|
onClick: back,
|
|
8514
9000
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
8515
9001
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
8516
|
-
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0,
|
|
9002
|
+
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon_default, { variant: "AngleLeft", css: icon }) })
|
|
8517
9003
|
}
|
|
8518
9004
|
),
|
|
8519
|
-
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
9005
|
+
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8520
9006
|
"button",
|
|
8521
9007
|
{
|
|
8522
9008
|
"aria-label": "Next",
|
|
@@ -8524,11 +9010,11 @@ var ScrollingCarousel = ({
|
|
|
8524
9010
|
onClick: next,
|
|
8525
9011
|
css: buttonRight(buttonsPosition),
|
|
8526
9012
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
8527
|
-
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0,
|
|
9013
|
+
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("span", { css: iconWrapper, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(Icon_default, { variant: "AngleRight", css: icon }) })
|
|
8528
9014
|
}
|
|
8529
9015
|
)
|
|
8530
9016
|
] }),
|
|
8531
|
-
showDots && /* @__PURE__ */ (0,
|
|
9017
|
+
showDots && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("div", { css: dots, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8532
9018
|
"div",
|
|
8533
9019
|
{
|
|
8534
9020
|
css: dotsInner,
|
|
@@ -8536,7 +9022,7 @@ var ScrollingCarousel = ({
|
|
|
8536
9022
|
children: state.childVisibility.map((childVisibility, i) => {
|
|
8537
9023
|
var _a;
|
|
8538
9024
|
const distance = (_a = dotDistances[i]) != null ? _a : 0;
|
|
8539
|
-
return /* @__PURE__ */ (0,
|
|
9025
|
+
return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8540
9026
|
"button",
|
|
8541
9027
|
{
|
|
8542
9028
|
type: "button",
|
|
@@ -8567,8 +9053,8 @@ var ScrollingCarousel = ({
|
|
|
8567
9053
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
8568
9054
|
|
|
8569
9055
|
// src/PackageCard/PackageCard.styles.ts
|
|
8570
|
-
var
|
|
8571
|
-
var cardContainerStyles3 =
|
|
9056
|
+
var import_react58 = require("@emotion/react");
|
|
9057
|
+
var cardContainerStyles3 = (orientation, hasContentBackground) => import_react58.css`
|
|
8572
9058
|
color: var(--text-primary);
|
|
8573
9059
|
position: relative;
|
|
8574
9060
|
width: 100%;
|
|
@@ -8576,27 +9062,42 @@ var cardContainerStyles3 = import_react54.css`
|
|
|
8576
9062
|
background: white;
|
|
8577
9063
|
overflow: hidden;
|
|
8578
9064
|
transition: all 0.2s ease;
|
|
9065
|
+
|
|
9066
|
+
${orientation === "horizontal" && import_react58.css`
|
|
9067
|
+
box-shadow: 0 0 var(--shadow-blur-lg, 24px) var(--shadow-spread-xs, -4px)
|
|
9068
|
+
rgba(17, 17, 17, 0.1);
|
|
9069
|
+
`}
|
|
9070
|
+
|
|
9071
|
+
${hasContentBackground ? `
|
|
9072
|
+
border-radius: var(--spacing-4);
|
|
9073
|
+
` : `
|
|
9074
|
+
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
9075
|
+
`}
|
|
9076
|
+
|
|
9077
|
+
${orientation === "horizontal" && `
|
|
9078
|
+
border-radius: var(--spacing-4);
|
|
9079
|
+
`}
|
|
8579
9080
|
`;
|
|
8580
|
-
var imageStyles2 =
|
|
9081
|
+
var imageStyles2 = import_react58.css`
|
|
8581
9082
|
background-size: cover;
|
|
8582
9083
|
background-position: center;
|
|
8583
9084
|
background-repeat: no-repeat;
|
|
8584
9085
|
position: relative;
|
|
8585
9086
|
background-color: lightgray;
|
|
8586
9087
|
`;
|
|
8587
|
-
var badgeTopLeftStyles =
|
|
9088
|
+
var badgeTopLeftStyles = import_react58.css`
|
|
8588
9089
|
position: absolute;
|
|
8589
9090
|
top: var(--spacing-3);
|
|
8590
9091
|
left: var(--spacing-3);
|
|
8591
9092
|
z-index: 2;
|
|
8592
9093
|
`;
|
|
8593
|
-
var badgeBottomRightStyles =
|
|
9094
|
+
var badgeBottomRightStyles = import_react58.css`
|
|
8594
9095
|
position: absolute;
|
|
8595
9096
|
bottom: var(--spacing-3);
|
|
8596
9097
|
right: var(--spacing-3);
|
|
8597
9098
|
z-index: 2;
|
|
8598
9099
|
`;
|
|
8599
|
-
var heartIconStyles =
|
|
9100
|
+
var heartIconStyles = import_react58.css`
|
|
8600
9101
|
position: absolute;
|
|
8601
9102
|
top: var(--spacing-3);
|
|
8602
9103
|
right: var(--spacing-3);
|
|
@@ -8618,14 +9119,20 @@ var heartIconStyles = import_react54.css`
|
|
|
8618
9119
|
transform: scale(1.1);
|
|
8619
9120
|
}
|
|
8620
9121
|
`;
|
|
8621
|
-
var
|
|
9122
|
+
var actionMenuStyles = import_react58.css`
|
|
9123
|
+
position: absolute;
|
|
9124
|
+
top: var(--spacing-3);
|
|
9125
|
+
right: var(--spacing-3);
|
|
9126
|
+
z-index: 3;
|
|
9127
|
+
`;
|
|
9128
|
+
var contentWithBackgroundStyles = import_react58.css`
|
|
8622
9129
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
8623
9130
|
background-color: var(--surface-page);
|
|
8624
9131
|
`;
|
|
8625
|
-
var contentWithoutBackgroundStyles =
|
|
9132
|
+
var contentWithoutBackgroundStyles = import_react58.css`
|
|
8626
9133
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
8627
9134
|
`;
|
|
8628
|
-
var overlayStyles =
|
|
9135
|
+
var overlayStyles = import_react58.css`
|
|
8629
9136
|
position: absolute;
|
|
8630
9137
|
top: 0;
|
|
8631
9138
|
left: 0;
|
|
@@ -8639,7 +9146,7 @@ var overlayStyles = import_react54.css`
|
|
|
8639
9146
|
`;
|
|
8640
9147
|
|
|
8641
9148
|
// src/PackageCard/PackageCard.tsx
|
|
8642
|
-
var
|
|
9149
|
+
var import_jsx_runtime253 = require("@emotion/react/jsx-runtime");
|
|
8643
9150
|
var PackageCard = ({
|
|
8644
9151
|
images,
|
|
8645
9152
|
title,
|
|
@@ -8654,24 +9161,25 @@ var PackageCard = ({
|
|
|
8654
9161
|
id,
|
|
8655
9162
|
hasContentBackground = false,
|
|
8656
9163
|
orientation = "vertical",
|
|
9164
|
+
actions,
|
|
8657
9165
|
...rest
|
|
8658
9166
|
}) => {
|
|
8659
9167
|
const carouselId = id || `package-card-${title.replace(/\s+/g, "-")}`;
|
|
8660
9168
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
8661
9169
|
(badge2) => badge2.showOverlay
|
|
8662
9170
|
);
|
|
8663
|
-
return /* @__PURE__ */ (0,
|
|
9171
|
+
return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
8664
9172
|
Box_default,
|
|
8665
9173
|
{
|
|
9174
|
+
position: "relative",
|
|
8666
9175
|
display: "flex",
|
|
8667
9176
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
8668
9177
|
gap: orientation === "horizontal" ? "var(--spacing-4)" : "var(--spacing-2)",
|
|
8669
|
-
css: cardContainerStyles3,
|
|
9178
|
+
css: cardContainerStyles3(orientation, hasContentBackground),
|
|
8670
9179
|
className,
|
|
8671
9180
|
...rest,
|
|
8672
|
-
borderRadius: hasContentBackground ? "var(--spacing-4)" : "var(--spacing-4) var(--spacing-4) 0 0",
|
|
8673
9181
|
children: [
|
|
8674
|
-
/* @__PURE__ */ (0,
|
|
9182
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
8675
9183
|
Box_default,
|
|
8676
9184
|
{
|
|
8677
9185
|
position: "relative",
|
|
@@ -8680,7 +9188,7 @@ var PackageCard = ({
|
|
|
8680
9188
|
overflow: "hidden",
|
|
8681
9189
|
borderRadius: "var(--spacing-4)",
|
|
8682
9190
|
children: [
|
|
8683
|
-
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
9191
|
+
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8684
9192
|
AvailabilityBadge_default,
|
|
8685
9193
|
{
|
|
8686
9194
|
variant: badge2.variant,
|
|
@@ -8689,19 +9197,18 @@ var PackageCard = ({
|
|
|
8689
9197
|
},
|
|
8690
9198
|
`availability-${index}`
|
|
8691
9199
|
)),
|
|
8692
|
-
shouldShowOverlay && /* @__PURE__ */ (0,
|
|
8693
|
-
/* @__PURE__ */ (0,
|
|
9200
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { css: overlayStyles }),
|
|
9201
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8694
9202
|
ScrollingCarousel,
|
|
8695
9203
|
{
|
|
8696
9204
|
showDots: images.length > 1,
|
|
8697
|
-
showNavigationOnHover: true,
|
|
8698
9205
|
id: carouselId,
|
|
8699
|
-
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0,
|
|
9206
|
+
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8700
9207
|
ScrollingCarouselStep,
|
|
8701
9208
|
{
|
|
8702
9209
|
parentId: carouselId,
|
|
8703
9210
|
onClick,
|
|
8704
|
-
children: /* @__PURE__ */ (0,
|
|
9211
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8705
9212
|
Box_default,
|
|
8706
9213
|
{
|
|
8707
9214
|
width: "100%",
|
|
@@ -8719,7 +9226,7 @@ var PackageCard = ({
|
|
|
8719
9226
|
))
|
|
8720
9227
|
}
|
|
8721
9228
|
),
|
|
8722
|
-
onFavoriteClick && /* @__PURE__ */ (0,
|
|
9229
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8723
9230
|
Box_default,
|
|
8724
9231
|
{
|
|
8725
9232
|
css: heartIconStyles,
|
|
@@ -8728,14 +9235,14 @@ var PackageCard = ({
|
|
|
8728
9235
|
e.stopPropagation();
|
|
8729
9236
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
8730
9237
|
},
|
|
8731
|
-
children: isFavorited ? /* @__PURE__ */ (0,
|
|
9238
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8732
9239
|
Icon_default,
|
|
8733
9240
|
{
|
|
8734
9241
|
variant: "HeartSolid",
|
|
8735
9242
|
size: "small",
|
|
8736
9243
|
fill: "var(--color-error-500)"
|
|
8737
9244
|
}
|
|
8738
|
-
) : /* @__PURE__ */ (0,
|
|
9245
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8739
9246
|
Icon_default,
|
|
8740
9247
|
{
|
|
8741
9248
|
variant: "Heart",
|
|
@@ -8744,11 +9251,13 @@ var PackageCard = ({
|
|
|
8744
9251
|
}
|
|
8745
9252
|
)
|
|
8746
9253
|
}
|
|
8747
|
-
)
|
|
9254
|
+
),
|
|
9255
|
+
actions && actions.length > 0 && orientation === "vertical" && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(ActionMenu_default, { actions }) })
|
|
8748
9256
|
]
|
|
8749
9257
|
}
|
|
8750
9258
|
),
|
|
8751
|
-
/* @__PURE__ */ (0,
|
|
9259
|
+
actions && actions.length > 0 && orientation === "horizontal" && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { css: actionMenuStyles, children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(ActionMenu_default, { actions }) }),
|
|
9260
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
8752
9261
|
Box_default,
|
|
8753
9262
|
{
|
|
8754
9263
|
css: hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles,
|
|
@@ -8757,7 +9266,7 @@ var PackageCard = ({
|
|
|
8757
9266
|
flexDirection: "column",
|
|
8758
9267
|
justifyContent: orientation === "horizontal" ? "center" : "flex-start",
|
|
8759
9268
|
children: [
|
|
8760
|
-
/* @__PURE__ */ (0,
|
|
9269
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
8761
9270
|
Box_default,
|
|
8762
9271
|
{
|
|
8763
9272
|
onClick,
|
|
@@ -8766,9 +9275,9 @@ var PackageCard = ({
|
|
|
8766
9275
|
gap: "var(--spacing-1)",
|
|
8767
9276
|
mb: "var(--spacing-1)",
|
|
8768
9277
|
children: [
|
|
8769
|
-
/* @__PURE__ */ (0,
|
|
8770
|
-
/* @__PURE__ */ (0,
|
|
8771
|
-
/* @__PURE__ */ (0,
|
|
9278
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
9279
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: subtitle }) }),
|
|
9280
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(Text_default, { size: "sm", fontWeight: "normal", children: [
|
|
8772
9281
|
"Starting Price ",
|
|
8773
9282
|
startingPrice,
|
|
8774
9283
|
" / Guest"
|
|
@@ -8776,14 +9285,14 @@ var PackageCard = ({
|
|
|
8776
9285
|
]
|
|
8777
9286
|
}
|
|
8778
9287
|
),
|
|
8779
|
-
badges && badges.length > 0 && /* @__PURE__ */ (0,
|
|
9288
|
+
badges && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8780
9289
|
Box_default,
|
|
8781
9290
|
{
|
|
8782
9291
|
display: "flex",
|
|
8783
9292
|
gap: "var(--spacing-2) var(--spacing-4)",
|
|
8784
9293
|
alignItems: "center",
|
|
8785
9294
|
flexWrap: "wrap",
|
|
8786
|
-
children: badges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
9295
|
+
children: badges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8787
9296
|
IconLabel_default,
|
|
8788
9297
|
{
|
|
8789
9298
|
iconSize: badge2.iconSize || "medium",
|
|
@@ -8804,14 +9313,14 @@ var PackageCard = ({
|
|
|
8804
9313
|
var PackageCard_default = PackageCard;
|
|
8805
9314
|
|
|
8806
9315
|
// src/PackageHeader/PackageHeader.tsx
|
|
8807
|
-
var
|
|
9316
|
+
var import_jsx_runtime254 = require("@emotion/react/jsx-runtime");
|
|
8808
9317
|
var PackageHeader = ({
|
|
8809
9318
|
header,
|
|
8810
9319
|
subheader,
|
|
8811
9320
|
features,
|
|
8812
9321
|
className
|
|
8813
9322
|
}) => {
|
|
8814
|
-
return /* @__PURE__ */ (0,
|
|
9323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
8815
9324
|
Box_default,
|
|
8816
9325
|
{
|
|
8817
9326
|
display: "flex",
|
|
@@ -8820,9 +9329,9 @@ var PackageHeader = ({
|
|
|
8820
9329
|
color: "var(--text-primary)",
|
|
8821
9330
|
className,
|
|
8822
9331
|
children: [
|
|
8823
|
-
/* @__PURE__ */ (0,
|
|
8824
|
-
subheader && /* @__PURE__ */ (0,
|
|
8825
|
-
features && /* @__PURE__ */ (0,
|
|
9332
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
9333
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Text_default, { children: subheader }),
|
|
9334
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(FeatureList_default, { items: features })
|
|
8826
9335
|
]
|
|
8827
9336
|
}
|
|
8828
9337
|
);
|
|
@@ -8830,8 +9339,8 @@ var PackageHeader = ({
|
|
|
8830
9339
|
var PackageHeader_default = PackageHeader;
|
|
8831
9340
|
|
|
8832
9341
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
8833
|
-
var
|
|
8834
|
-
var imageStyles3 =
|
|
9342
|
+
var import_react59 = require("@emotion/react");
|
|
9343
|
+
var imageStyles3 = import_react59.css`
|
|
8835
9344
|
flex: 1;
|
|
8836
9345
|
min-width: 0;
|
|
8837
9346
|
max-width: 100%;
|
|
@@ -8842,13 +9351,13 @@ var imageStyles3 = import_react55.css`
|
|
|
8842
9351
|
`;
|
|
8843
9352
|
|
|
8844
9353
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
8845
|
-
var
|
|
9354
|
+
var import_jsx_runtime255 = require("@emotion/react/jsx-runtime");
|
|
8846
9355
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
8847
9356
|
const displayImages = images.slice(0, maxImages);
|
|
8848
9357
|
if (displayImages.length === 0) {
|
|
8849
9358
|
return null;
|
|
8850
9359
|
}
|
|
8851
|
-
return /* @__PURE__ */ (0,
|
|
9360
|
+
return /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime255.jsx)(
|
|
8852
9361
|
"img",
|
|
8853
9362
|
{
|
|
8854
9363
|
src: image,
|
|
@@ -8861,7 +9370,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
8861
9370
|
var ReviewImages_default = ReviewImages;
|
|
8862
9371
|
|
|
8863
9372
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
8864
|
-
var
|
|
9373
|
+
var import_jsx_runtime256 = require("@emotion/react/jsx-runtime");
|
|
8865
9374
|
var ReviewReply = ({
|
|
8866
9375
|
avatarSrc,
|
|
8867
9376
|
name,
|
|
@@ -8870,7 +9379,7 @@ var ReviewReply = ({
|
|
|
8870
9379
|
label,
|
|
8871
9380
|
rating
|
|
8872
9381
|
}) => {
|
|
8873
|
-
return /* @__PURE__ */ (0,
|
|
9382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
|
|
8874
9383
|
Box_default,
|
|
8875
9384
|
{
|
|
8876
9385
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -8880,7 +9389,7 @@ var ReviewReply = ({
|
|
|
8880
9389
|
flexDirection: "column",
|
|
8881
9390
|
gap: "var(--spacing-3)",
|
|
8882
9391
|
children: [
|
|
8883
|
-
/* @__PURE__ */ (0,
|
|
9392
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
|
|
8884
9393
|
Box_default,
|
|
8885
9394
|
{
|
|
8886
9395
|
display: "flex",
|
|
@@ -8888,7 +9397,7 @@ var ReviewReply = ({
|
|
|
8888
9397
|
justifyContent: "space-between",
|
|
8889
9398
|
gap: "var(--spacing-2)",
|
|
8890
9399
|
children: [
|
|
8891
|
-
/* @__PURE__ */ (0,
|
|
9400
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
8892
9401
|
UserCard_default,
|
|
8893
9402
|
{
|
|
8894
9403
|
avatarSrc,
|
|
@@ -8897,11 +9406,11 @@ var ReviewReply = ({
|
|
|
8897
9406
|
rating
|
|
8898
9407
|
}
|
|
8899
9408
|
),
|
|
8900
|
-
/* @__PURE__ */ (0,
|
|
9409
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
8901
9410
|
]
|
|
8902
9411
|
}
|
|
8903
9412
|
),
|
|
8904
|
-
/* @__PURE__ */ (0,
|
|
9413
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Text_default, { children: content })
|
|
8905
9414
|
]
|
|
8906
9415
|
}
|
|
8907
9416
|
);
|
|
@@ -8909,7 +9418,7 @@ var ReviewReply = ({
|
|
|
8909
9418
|
var ReviewReply_default = ReviewReply;
|
|
8910
9419
|
|
|
8911
9420
|
// src/ReviewCard/ReviewCard.tsx
|
|
8912
|
-
var
|
|
9421
|
+
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
8913
9422
|
var ReviewCard = ({
|
|
8914
9423
|
avatarSrc,
|
|
8915
9424
|
name,
|
|
@@ -8921,7 +9430,7 @@ var ReviewCard = ({
|
|
|
8921
9430
|
replies = [],
|
|
8922
9431
|
className
|
|
8923
9432
|
}) => {
|
|
8924
|
-
return /* @__PURE__ */ (0,
|
|
9433
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
8925
9434
|
Box_default,
|
|
8926
9435
|
{
|
|
8927
9436
|
backgroundColor: "white",
|
|
@@ -8932,7 +9441,7 @@ var ReviewCard = ({
|
|
|
8932
9441
|
gap: "var(--spacing-4)",
|
|
8933
9442
|
className,
|
|
8934
9443
|
children: [
|
|
8935
|
-
/* @__PURE__ */ (0,
|
|
9444
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
8936
9445
|
UserCard_default,
|
|
8937
9446
|
{
|
|
8938
9447
|
avatarSrc,
|
|
@@ -8941,10 +9450,10 @@ var ReviewCard = ({
|
|
|
8941
9450
|
rating
|
|
8942
9451
|
}
|
|
8943
9452
|
),
|
|
8944
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
8945
|
-
/* @__PURE__ */ (0,
|
|
8946
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
8947
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
9453
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
9454
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Text_default, { size: "md", children: content }),
|
|
9455
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(ReviewImages_default, { images }),
|
|
9456
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
8948
9457
|
ReviewReply_default,
|
|
8949
9458
|
{
|
|
8950
9459
|
avatarSrc: reply.avatarSrc,
|
|
@@ -8963,12 +9472,12 @@ var ReviewCard = ({
|
|
|
8963
9472
|
var ReviewCard_default = ReviewCard;
|
|
8964
9473
|
|
|
8965
9474
|
// src/Reviews/Reviews.tsx
|
|
8966
|
-
var
|
|
9475
|
+
var import_react60 = require("@emotion/react");
|
|
8967
9476
|
|
|
8968
9477
|
// src/Reviews/components/ReviewItem.tsx
|
|
8969
|
-
var
|
|
9478
|
+
var import_jsx_runtime258 = require("@emotion/react/jsx-runtime");
|
|
8970
9479
|
var ReviewItem = ({ label, rating }) => {
|
|
8971
|
-
return /* @__PURE__ */ (0,
|
|
9480
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
|
|
8972
9481
|
Box_default,
|
|
8973
9482
|
{
|
|
8974
9483
|
display: "flex",
|
|
@@ -8976,10 +9485,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
8976
9485
|
alignItems: "center",
|
|
8977
9486
|
width: "100%",
|
|
8978
9487
|
children: [
|
|
8979
|
-
/* @__PURE__ */ (0,
|
|
8980
|
-
/* @__PURE__ */ (0,
|
|
8981
|
-
/* @__PURE__ */ (0,
|
|
8982
|
-
/* @__PURE__ */ (0,
|
|
9488
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
9489
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
9490
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
9491
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(Text_default, { fontWeight: "semibold", children: [
|
|
8983
9492
|
rating,
|
|
8984
9493
|
"/5"
|
|
8985
9494
|
] })
|
|
@@ -8991,14 +9500,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
8991
9500
|
var ReviewItem_default = ReviewItem;
|
|
8992
9501
|
|
|
8993
9502
|
// src/Reviews/Reviews.tsx
|
|
8994
|
-
var
|
|
9503
|
+
var import_jsx_runtime259 = require("@emotion/react/jsx-runtime");
|
|
8995
9504
|
var Reviews = ({
|
|
8996
9505
|
averageRating,
|
|
8997
9506
|
totalReviews,
|
|
8998
9507
|
items,
|
|
8999
9508
|
className
|
|
9000
9509
|
}) => {
|
|
9001
|
-
return /* @__PURE__ */ (0,
|
|
9510
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9002
9511
|
Box_default,
|
|
9003
9512
|
{
|
|
9004
9513
|
width: "100%",
|
|
@@ -9011,7 +9520,7 @@ var Reviews = ({
|
|
|
9011
9520
|
p: "var(--spacing-4)",
|
|
9012
9521
|
className,
|
|
9013
9522
|
children: [
|
|
9014
|
-
/* @__PURE__ */ (0,
|
|
9523
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9015
9524
|
Box_default,
|
|
9016
9525
|
{
|
|
9017
9526
|
display: "flex",
|
|
@@ -9019,12 +9528,12 @@ var Reviews = ({
|
|
|
9019
9528
|
alignItems: "center",
|
|
9020
9529
|
gap: "var(--spacing-2)",
|
|
9021
9530
|
children: [
|
|
9022
|
-
/* @__PURE__ */ (0,
|
|
9023
|
-
/* @__PURE__ */ (0,
|
|
9531
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
9532
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9024
9533
|
StarRating_default,
|
|
9025
9534
|
{
|
|
9026
9535
|
rating: Math.floor(averageRating),
|
|
9027
|
-
css:
|
|
9536
|
+
css: import_react60.css`
|
|
9028
9537
|
> svg {
|
|
9029
9538
|
height: 40px;
|
|
9030
9539
|
width: 40px;
|
|
@@ -9032,7 +9541,7 @@ var Reviews = ({
|
|
|
9032
9541
|
`
|
|
9033
9542
|
}
|
|
9034
9543
|
),
|
|
9035
|
-
/* @__PURE__ */ (0,
|
|
9544
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
9036
9545
|
"Overall Rating \u2022 ",
|
|
9037
9546
|
totalReviews,
|
|
9038
9547
|
" Review",
|
|
@@ -9041,14 +9550,14 @@ var Reviews = ({
|
|
|
9041
9550
|
]
|
|
9042
9551
|
}
|
|
9043
9552
|
),
|
|
9044
|
-
/* @__PURE__ */ (0,
|
|
9553
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9045
9554
|
Box_default,
|
|
9046
9555
|
{
|
|
9047
9556
|
display: "flex",
|
|
9048
9557
|
flexDirection: "column",
|
|
9049
9558
|
gap: "var(--spacing-2)",
|
|
9050
9559
|
width: "100%",
|
|
9051
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
9560
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
9052
9561
|
}
|
|
9053
9562
|
)
|
|
9054
9563
|
]
|
|
@@ -9058,7 +9567,7 @@ var Reviews = ({
|
|
|
9058
9567
|
var Reviews_default = Reviews;
|
|
9059
9568
|
|
|
9060
9569
|
// src/Reviews/ReviewsShowcase.tsx
|
|
9061
|
-
var
|
|
9570
|
+
var import_jsx_runtime260 = require("@emotion/react/jsx-runtime");
|
|
9062
9571
|
var ReviewsShowcase = () => {
|
|
9063
9572
|
const sampleData = {
|
|
9064
9573
|
averageRating: 4,
|
|
@@ -9080,7 +9589,7 @@ var ReviewsShowcase = () => {
|
|
|
9080
9589
|
{ label: "Game Abundance", rating: 5 }
|
|
9081
9590
|
]
|
|
9082
9591
|
};
|
|
9083
|
-
return /* @__PURE__ */ (0,
|
|
9592
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
9084
9593
|
Box_default,
|
|
9085
9594
|
{
|
|
9086
9595
|
display: "flex",
|
|
@@ -9088,24 +9597,24 @@ var ReviewsShowcase = () => {
|
|
|
9088
9597
|
gap: "var(--spacing-8)",
|
|
9089
9598
|
p: "var(--spacing-6)",
|
|
9090
9599
|
children: [
|
|
9091
|
-
/* @__PURE__ */ (0,
|
|
9092
|
-
/* @__PURE__ */ (0,
|
|
9093
|
-
/* @__PURE__ */ (0,
|
|
9094
|
-
/* @__PURE__ */ (0,
|
|
9600
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
9601
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
9602
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
9603
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Reviews_default, { ...sampleData }) })
|
|
9095
9604
|
] }),
|
|
9096
|
-
/* @__PURE__ */ (0,
|
|
9097
|
-
/* @__PURE__ */ (0,
|
|
9098
|
-
/* @__PURE__ */ (0,
|
|
9605
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
9606
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
9607
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Reviews_default, { ...highRatingData }) })
|
|
9099
9608
|
] }),
|
|
9100
|
-
/* @__PURE__ */ (0,
|
|
9101
|
-
/* @__PURE__ */ (0,
|
|
9102
|
-
/* @__PURE__ */ (0,
|
|
9609
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
9610
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
9611
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
9103
9612
|
Box_default,
|
|
9104
9613
|
{
|
|
9105
9614
|
maxWidth: "320px",
|
|
9106
9615
|
border: "1px solid var(--color-neutral-200)",
|
|
9107
9616
|
p: "var(--spacing-4)",
|
|
9108
|
-
children: /* @__PURE__ */ (0,
|
|
9617
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Reviews_default, { ...sampleData })
|
|
9109
9618
|
}
|
|
9110
9619
|
)
|
|
9111
9620
|
] })
|
|
@@ -9117,6 +9626,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
9117
9626
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9118
9627
|
0 && (module.exports = {
|
|
9119
9628
|
AIResponse,
|
|
9629
|
+
ActionMenu,
|
|
9120
9630
|
AvailabilityBadge,
|
|
9121
9631
|
Avatar,
|
|
9122
9632
|
Box,
|
|
@@ -9161,6 +9671,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
9161
9671
|
Text,
|
|
9162
9672
|
TextArea,
|
|
9163
9673
|
ThemeTokens,
|
|
9674
|
+
Tooltip,
|
|
9164
9675
|
TopMatchingFieldNote,
|
|
9165
9676
|
TopMatchingReview,
|
|
9166
9677
|
UserCard,
|