@landtrustinc/design-system 1.2.27-beta.7 → 1.2.28
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 -217
- package/dist/index.js +1256 -741
- 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);
|
|
@@ -4319,6 +4803,7 @@ var markdownContentStyles = import_react10.css`
|
|
|
4319
4803
|
font-size: 0.75rem;
|
|
4320
4804
|
border-radius: var(--radius-md);
|
|
4321
4805
|
min-width: 100%;
|
|
4806
|
+
margin: var(--spacing-2) 0;
|
|
4322
4807
|
}
|
|
4323
4808
|
}
|
|
4324
4809
|
|
|
@@ -4328,6 +4813,7 @@ var markdownContentStyles = import_react10.css`
|
|
|
4328
4813
|
border-bottom: 1px solid var(--border-primary);
|
|
4329
4814
|
padding: var(--spacing-3);
|
|
4330
4815
|
text-align: left;
|
|
4816
|
+
min-width: var(--spacing-24);
|
|
4331
4817
|
|
|
4332
4818
|
&:last-child {
|
|
4333
4819
|
border-right: none;
|
|
@@ -4335,7 +4821,6 @@ var markdownContentStyles = import_react10.css`
|
|
|
4335
4821
|
|
|
4336
4822
|
@media (max-width: 768px) {
|
|
4337
4823
|
padding: var(--spacing-2);
|
|
4338
|
-
min-width: 120px;
|
|
4339
4824
|
}
|
|
4340
4825
|
}
|
|
4341
4826
|
|
|
@@ -4380,7 +4865,12 @@ var markdownContentStyles = import_react10.css`
|
|
|
4380
4865
|
font-weight: 600;
|
|
4381
4866
|
}
|
|
4382
4867
|
|
|
4383
|
-
|
|
4868
|
+
/* Scope link styles to prose content only, excluding component-based links */
|
|
4869
|
+
p a,
|
|
4870
|
+
li a,
|
|
4871
|
+
blockquote a,
|
|
4872
|
+
td a,
|
|
4873
|
+
th a {
|
|
4384
4874
|
color: var(--color-primary-500);
|
|
4385
4875
|
text-decoration: none;
|
|
4386
4876
|
|
|
@@ -4397,14 +4887,14 @@ var markdownContentStyles = import_react10.css`
|
|
|
4397
4887
|
font-style: italic;
|
|
4398
4888
|
}
|
|
4399
4889
|
`;
|
|
4400
|
-
var codeBlockStyles =
|
|
4890
|
+
var codeBlockStyles = import_react14.css`
|
|
4401
4891
|
position: relative;
|
|
4402
4892
|
margin: var(--spacing-4) 0;
|
|
4403
4893
|
border-radius: var(--radius-lg);
|
|
4404
4894
|
border: 1px solid var(--border-primary);
|
|
4405
4895
|
overflow: hidden;
|
|
4406
4896
|
`;
|
|
4407
|
-
var codeBlockHeaderStyles =
|
|
4897
|
+
var codeBlockHeaderStyles = import_react14.css`
|
|
4408
4898
|
display: flex;
|
|
4409
4899
|
justify-content: space-between;
|
|
4410
4900
|
align-items: center;
|
|
@@ -4413,13 +4903,13 @@ var codeBlockHeaderStyles = import_react10.css`
|
|
|
4413
4903
|
border-bottom: 1px solid var(--border-primary);
|
|
4414
4904
|
position: relative;
|
|
4415
4905
|
`;
|
|
4416
|
-
var codeBlockLanguageStyles =
|
|
4906
|
+
var codeBlockLanguageStyles = import_react14.css`
|
|
4417
4907
|
font-size: 0.75rem;
|
|
4418
4908
|
color: var(--text-secondary);
|
|
4419
4909
|
text-transform: uppercase;
|
|
4420
4910
|
font-weight: 500;
|
|
4421
4911
|
`;
|
|
4422
|
-
var getCodeBlockCopyButtonStyles = (isHovered, copySuccess) =>
|
|
4912
|
+
var getCodeBlockCopyButtonStyles = (isHovered, copySuccess) => import_react14.css`
|
|
4423
4913
|
position: absolute;
|
|
4424
4914
|
top: 50%;
|
|
4425
4915
|
right: var(--spacing-3);
|
|
@@ -4439,7 +4929,7 @@ var getCodeBlockCopyButtonStyles = (isHovered, copySuccess) => import_react10.cs
|
|
|
4439
4929
|
background: ${copySuccess ? "var(--color-success-600)" : "var(--surface-action-hover)"};
|
|
4440
4930
|
}
|
|
4441
4931
|
`;
|
|
4442
|
-
var codeBlockPreStyles =
|
|
4932
|
+
var codeBlockPreStyles = import_react14.css`
|
|
4443
4933
|
margin: 0;
|
|
4444
4934
|
padding: var(--spacing-3);
|
|
4445
4935
|
background-color: var(--surface-page);
|
|
@@ -4451,7 +4941,7 @@ var codeBlockPreStyles = import_react10.css`
|
|
|
4451
4941
|
overflow-x: auto;
|
|
4452
4942
|
white-space: pre-wrap;
|
|
4453
4943
|
`;
|
|
4454
|
-
var inlineCodeStyles =
|
|
4944
|
+
var inlineCodeStyles = import_react14.css`
|
|
4455
4945
|
background-color: var(--surface-neutral);
|
|
4456
4946
|
color: var(--text-primary);
|
|
4457
4947
|
font-weight: 500;
|
|
@@ -4461,24 +4951,25 @@ var inlineCodeStyles = import_react10.css`
|
|
|
4461
4951
|
monospace;
|
|
4462
4952
|
font-size: 0.9em;
|
|
4463
4953
|
`;
|
|
4464
|
-
var tableWrapperStyles =
|
|
4954
|
+
var tableWrapperStyles = import_react14.css`
|
|
4955
|
+
overflow-x: auto;
|
|
4956
|
+
-webkit-overflow-scrolling: touch;
|
|
4957
|
+
|
|
4465
4958
|
@media (max-width: 768px) {
|
|
4466
|
-
overflow-x: auto;
|
|
4467
|
-
-webkit-overflow-scrolling: touch;
|
|
4468
4959
|
margin: var(--spacing-4) calc(-1 * var(--spacing-3));
|
|
4469
4960
|
padding: 0 var(--spacing-3);
|
|
4470
4961
|
}
|
|
4471
4962
|
`;
|
|
4472
4963
|
|
|
4473
4964
|
// src/MarkdownContent/MarkdownContent.tsx
|
|
4474
|
-
var
|
|
4965
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
4475
4966
|
var CodeBlock = ({
|
|
4476
4967
|
children,
|
|
4477
4968
|
className,
|
|
4478
4969
|
enableCopy = true
|
|
4479
4970
|
}) => {
|
|
4480
|
-
const [isHovered, setIsHovered] = (0,
|
|
4481
|
-
const [copySuccess, setCopySuccess] = (0,
|
|
4971
|
+
const [isHovered, setIsHovered] = (0, import_react15.useState)(false);
|
|
4972
|
+
const [copySuccess, setCopySuccess] = (0, import_react15.useState)(false);
|
|
4482
4973
|
const language = (className == null ? void 0 : className.replace("language-", "")) || "text";
|
|
4483
4974
|
const handleCopy = async () => {
|
|
4484
4975
|
try {
|
|
@@ -4489,16 +4980,16 @@ var CodeBlock = ({
|
|
|
4489
4980
|
console.error("Failed to copy text: ", err);
|
|
4490
4981
|
}
|
|
4491
4982
|
};
|
|
4492
|
-
return /* @__PURE__ */ (0,
|
|
4983
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
4493
4984
|
"div",
|
|
4494
4985
|
{
|
|
4495
4986
|
css: codeBlockStyles,
|
|
4496
4987
|
onMouseEnter: () => setIsHovered(true),
|
|
4497
4988
|
onMouseLeave: () => setIsHovered(false),
|
|
4498
4989
|
children: [
|
|
4499
|
-
/* @__PURE__ */ (0,
|
|
4500
|
-
/* @__PURE__ */ (0,
|
|
4501
|
-
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)(
|
|
4502
4993
|
"button",
|
|
4503
4994
|
{
|
|
4504
4995
|
onClick: handleCopy,
|
|
@@ -4507,18 +4998,18 @@ var CodeBlock = ({
|
|
|
4507
4998
|
}
|
|
4508
4999
|
)
|
|
4509
5000
|
] }),
|
|
4510
|
-
/* @__PURE__ */ (0,
|
|
5001
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)("pre", { css: codeBlockPreStyles, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("code", { children }) })
|
|
4511
5002
|
]
|
|
4512
5003
|
}
|
|
4513
5004
|
);
|
|
4514
5005
|
};
|
|
4515
5006
|
var InlineCode = ({ children }) => {
|
|
4516
|
-
return /* @__PURE__ */ (0,
|
|
5007
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("code", { css: inlineCodeStyles, children });
|
|
4517
5008
|
};
|
|
4518
5009
|
var TableWrapper = ({
|
|
4519
5010
|
children
|
|
4520
5011
|
}) => {
|
|
4521
|
-
return /* @__PURE__ */ (0,
|
|
5012
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { css: tableWrapperStyles, children });
|
|
4522
5013
|
};
|
|
4523
5014
|
var MarkdownContent = ({
|
|
4524
5015
|
content,
|
|
@@ -4526,7 +5017,7 @@ var MarkdownContent = ({
|
|
|
4526
5017
|
enableCodeCopy = true,
|
|
4527
5018
|
customComponents = {}
|
|
4528
5019
|
}) => {
|
|
4529
|
-
return /* @__PURE__ */ (0,
|
|
5020
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { className, css: markdownContentStyles, children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4530
5021
|
import_markdown_to_jsx.default,
|
|
4531
5022
|
{
|
|
4532
5023
|
options: {
|
|
@@ -4535,11 +5026,12 @@ var MarkdownContent = ({
|
|
|
4535
5026
|
...customComponents,
|
|
4536
5027
|
// Headings - use design system Heading component with spacing
|
|
4537
5028
|
h1: {
|
|
4538
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5029
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4539
5030
|
Heading_default,
|
|
4540
5031
|
{
|
|
4541
|
-
size: "
|
|
5032
|
+
size: "sm",
|
|
4542
5033
|
as: "h1",
|
|
5034
|
+
fontWeight: "bold",
|
|
4543
5035
|
css: {
|
|
4544
5036
|
"&:not(:first-child)": { marginTop: "var(--spacing-6)" },
|
|
4545
5037
|
"& + *": { marginTop: "var(--spacing-3)" }
|
|
@@ -4549,11 +5041,12 @@ var MarkdownContent = ({
|
|
|
4549
5041
|
)
|
|
4550
5042
|
},
|
|
4551
5043
|
h2: {
|
|
4552
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5044
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4553
5045
|
Heading_default,
|
|
4554
5046
|
{
|
|
4555
|
-
size: "
|
|
5047
|
+
size: "xs",
|
|
4556
5048
|
as: "h2",
|
|
5049
|
+
fontWeight: "bold",
|
|
4557
5050
|
css: {
|
|
4558
5051
|
"&:not(:first-child)": { marginTop: "var(--spacing-6)" },
|
|
4559
5052
|
"& + *": { marginTop: "var(--spacing-3)" }
|
|
@@ -4563,11 +5056,12 @@ var MarkdownContent = ({
|
|
|
4563
5056
|
)
|
|
4564
5057
|
},
|
|
4565
5058
|
h3: {
|
|
4566
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5059
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4567
5060
|
Heading_default,
|
|
4568
5061
|
{
|
|
4569
|
-
size: "
|
|
5062
|
+
size: "2xs",
|
|
4570
5063
|
as: "h3",
|
|
5064
|
+
fontWeight: "bold",
|
|
4571
5065
|
css: {
|
|
4572
5066
|
"&:not(:first-child)": { marginTop: "var(--spacing-5)" },
|
|
4573
5067
|
"& + *": { marginTop: "var(--spacing-3)" }
|
|
@@ -4577,11 +5071,12 @@ var MarkdownContent = ({
|
|
|
4577
5071
|
)
|
|
4578
5072
|
},
|
|
4579
5073
|
h4: {
|
|
4580
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5074
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4581
5075
|
Heading_default,
|
|
4582
5076
|
{
|
|
4583
|
-
size: "
|
|
5077
|
+
size: "2xs",
|
|
4584
5078
|
as: "h4",
|
|
5079
|
+
fontWeight: "bold",
|
|
4585
5080
|
css: {
|
|
4586
5081
|
"&:not(:first-child)": { marginTop: "var(--spacing-5)" },
|
|
4587
5082
|
"& + *": { marginTop: "var(--spacing-3)" }
|
|
@@ -4591,11 +5086,12 @@ var MarkdownContent = ({
|
|
|
4591
5086
|
)
|
|
4592
5087
|
},
|
|
4593
5088
|
h5: {
|
|
4594
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5089
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4595
5090
|
Heading_default,
|
|
4596
5091
|
{
|
|
4597
5092
|
size: "2xs",
|
|
4598
5093
|
as: "h5",
|
|
5094
|
+
fontWeight: "bold",
|
|
4599
5095
|
css: {
|
|
4600
5096
|
"&:not(:first-child)": { marginTop: "var(--spacing-5)" },
|
|
4601
5097
|
"& + *": { marginTop: "var(--spacing-3)" }
|
|
@@ -4605,11 +5101,12 @@ var MarkdownContent = ({
|
|
|
4605
5101
|
)
|
|
4606
5102
|
},
|
|
4607
5103
|
h6: {
|
|
4608
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5104
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4609
5105
|
Heading_default,
|
|
4610
5106
|
{
|
|
4611
5107
|
size: "2xs",
|
|
4612
5108
|
as: "h6",
|
|
5109
|
+
fontWeight: "bold",
|
|
4613
5110
|
css: {
|
|
4614
5111
|
"&:not(:first-child)": { marginTop: "var(--spacing-5)" },
|
|
4615
5112
|
"& + *": { marginTop: "var(--spacing-3)" }
|
|
@@ -4620,7 +5117,7 @@ var MarkdownContent = ({
|
|
|
4620
5117
|
},
|
|
4621
5118
|
// Paragraphs - use design system Text component with spacing
|
|
4622
5119
|
p: {
|
|
4623
|
-
component: ({ children }) => /* @__PURE__ */ (0,
|
|
5120
|
+
component: ({ children }) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4624
5121
|
Text_default,
|
|
4625
5122
|
{
|
|
4626
5123
|
size: "md",
|
|
@@ -4636,7 +5133,7 @@ var MarkdownContent = ({
|
|
|
4636
5133
|
component: ({
|
|
4637
5134
|
children
|
|
4638
5135
|
}) => {
|
|
4639
|
-
const codeElement =
|
|
5136
|
+
const codeElement = import_react15.default.Children.only(
|
|
4640
5137
|
children
|
|
4641
5138
|
);
|
|
4642
5139
|
const codeProps = (codeElement == null ? void 0 : codeElement.props) || {};
|
|
@@ -4644,7 +5141,7 @@ var MarkdownContent = ({
|
|
|
4644
5141
|
const codeChildren = codeProps.children || "";
|
|
4645
5142
|
const match = /lang-(\w+)/.exec(codeClassName);
|
|
4646
5143
|
const language = match ? match[1] : "text";
|
|
4647
|
-
return /* @__PURE__ */ (0,
|
|
5144
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
4648
5145
|
CodeBlock,
|
|
4649
5146
|
{
|
|
4650
5147
|
className: `language-${language}`,
|
|
@@ -4657,14 +5154,14 @@ var MarkdownContent = ({
|
|
|
4657
5154
|
// Override code tag for inline code only
|
|
4658
5155
|
code: {
|
|
4659
5156
|
component: ({ children }) => {
|
|
4660
|
-
return /* @__PURE__ */ (0,
|
|
5157
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(InlineCode, { children });
|
|
4661
5158
|
}
|
|
4662
5159
|
},
|
|
4663
5160
|
table: {
|
|
4664
5161
|
component: ({
|
|
4665
5162
|
children,
|
|
4666
5163
|
...props
|
|
4667
|
-
}) => /* @__PURE__ */ (0,
|
|
5164
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(TableWrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("table", { ...props, children }) })
|
|
4668
5165
|
}
|
|
4669
5166
|
}
|
|
4670
5167
|
},
|
|
@@ -4675,8 +5172,8 @@ var MarkdownContent = ({
|
|
|
4675
5172
|
var MarkdownContent_default = MarkdownContent;
|
|
4676
5173
|
|
|
4677
5174
|
// src/AIResponse/AIResponse.styles.ts
|
|
4678
|
-
var
|
|
4679
|
-
var getBannerStyles = (variant) =>
|
|
5175
|
+
var import_react16 = require("@emotion/react");
|
|
5176
|
+
var getBannerStyles = (variant) => import_react16.css`
|
|
4680
5177
|
background-color: ${variant === "error" ? "var(--surface-error)" : "var(--surface-neutral)"};
|
|
4681
5178
|
border: ${variant === "error" ? "1px solid var(--border-error)" : "none"};
|
|
4682
5179
|
border-radius: var(--radius-lg);
|
|
@@ -4686,31 +5183,29 @@ var getBannerStyles = (variant) => import_react12.css`
|
|
|
4686
5183
|
gap: var(--spacing-5);
|
|
4687
5184
|
min-width: 335px;
|
|
4688
5185
|
`;
|
|
4689
|
-
var footerStyles =
|
|
5186
|
+
var footerStyles = import_react16.css`
|
|
4690
5187
|
display: flex;
|
|
4691
5188
|
gap: var(--spacing-4);
|
|
4692
5189
|
align-items: center;
|
|
4693
5190
|
`;
|
|
4694
|
-
var actionsStyles =
|
|
5191
|
+
var actionsStyles = import_react16.css`
|
|
4695
5192
|
display: flex;
|
|
4696
5193
|
align-items: center;
|
|
4697
5194
|
gap: var(--spacing-2);
|
|
4698
5195
|
`;
|
|
4699
|
-
var errorRetryStyles =
|
|
5196
|
+
var errorRetryStyles = import_react16.css`
|
|
4700
5197
|
display: flex;
|
|
4701
5198
|
align-items: center;
|
|
4702
5199
|
`;
|
|
4703
5200
|
|
|
4704
5201
|
// src/AIResponse/components/ContactLandownerButton/ContactLandownerButton.tsx
|
|
4705
|
-
var
|
|
5202
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
4706
5203
|
var ContactLandownerButton = ({
|
|
4707
|
-
|
|
4708
|
-
slug,
|
|
5204
|
+
url,
|
|
4709
5205
|
buttonText = "Contact Landowner",
|
|
4710
5206
|
className
|
|
4711
5207
|
}) => {
|
|
4712
|
-
|
|
4713
|
-
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5208
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { marginTop: "var(--spacing-4)", children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
4714
5209
|
Button_default,
|
|
4715
5210
|
{
|
|
4716
5211
|
variant: "primary",
|
|
@@ -4718,20 +5213,14 @@ var ContactLandownerButton = ({
|
|
|
4718
5213
|
as: "a",
|
|
4719
5214
|
href: url,
|
|
4720
5215
|
className,
|
|
4721
|
-
style: {
|
|
4722
|
-
alignSelf: "flex-start",
|
|
4723
|
-
marginTop: "var(--spacing-4)",
|
|
4724
|
-
textDecoration: "none",
|
|
4725
|
-
color: "var(--text-on-action)"
|
|
4726
|
-
},
|
|
4727
5216
|
children: buttonText
|
|
4728
5217
|
}
|
|
4729
|
-
);
|
|
5218
|
+
) });
|
|
4730
5219
|
};
|
|
4731
5220
|
|
|
4732
5221
|
// src/AIResponse/components/TopMatchingFieldNote/TopMatchingFieldNote.styles.ts
|
|
4733
|
-
var
|
|
4734
|
-
var imageStyles =
|
|
5222
|
+
var import_react17 = require("@emotion/react");
|
|
5223
|
+
var imageStyles = import_react17.css`
|
|
4735
5224
|
width: 100%;
|
|
4736
5225
|
height: 275px;
|
|
4737
5226
|
border-radius: var(--radius-lg);
|
|
@@ -4740,7 +5229,7 @@ var imageStyles = import_react13.css`
|
|
|
4740
5229
|
`;
|
|
4741
5230
|
|
|
4742
5231
|
// src/AIResponse/components/TopMatchingFieldNote/TopMatchingFieldNote.tsx
|
|
4743
|
-
var
|
|
5232
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
4744
5233
|
var TopMatchingFieldNote = ({
|
|
4745
5234
|
author,
|
|
4746
5235
|
datePosted,
|
|
@@ -4758,8 +5247,8 @@ var TopMatchingFieldNote = ({
|
|
|
4758
5247
|
parsedImages = [];
|
|
4759
5248
|
}
|
|
4760
5249
|
const displayContent = content || children;
|
|
4761
|
-
return /* @__PURE__ */ (0,
|
|
4762
|
-
/* @__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)(
|
|
4763
5252
|
Heading_default,
|
|
4764
5253
|
{
|
|
4765
5254
|
size: "2xs",
|
|
@@ -4769,7 +5258,7 @@ var TopMatchingFieldNote = ({
|
|
|
4769
5258
|
children: title
|
|
4770
5259
|
}
|
|
4771
5260
|
),
|
|
4772
|
-
/* @__PURE__ */ (0,
|
|
5261
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
|
|
4773
5262
|
Box_default,
|
|
4774
5263
|
{
|
|
4775
5264
|
display: "flex",
|
|
@@ -4781,8 +5270,8 @@ var TopMatchingFieldNote = ({
|
|
|
4781
5270
|
minWidth: "335px",
|
|
4782
5271
|
className,
|
|
4783
5272
|
children: [
|
|
4784
|
-
/* @__PURE__ */ (0,
|
|
4785
|
-
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)(
|
|
4786
5275
|
"div",
|
|
4787
5276
|
{
|
|
4788
5277
|
css: imageStyles,
|
|
@@ -4791,9 +5280,9 @@ var TopMatchingFieldNote = ({
|
|
|
4791
5280
|
}
|
|
4792
5281
|
}
|
|
4793
5282
|
),
|
|
4794
|
-
/* @__PURE__ */ (0,
|
|
4795
|
-
/* @__PURE__ */ (0,
|
|
4796
|
-
/* @__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: [
|
|
4797
5286
|
author,
|
|
4798
5287
|
" shared an update \u2022 ",
|
|
4799
5288
|
datePosted
|
|
@@ -4806,7 +5295,7 @@ var TopMatchingFieldNote = ({
|
|
|
4806
5295
|
};
|
|
4807
5296
|
|
|
4808
5297
|
// src/AIResponse/components/TopMatchingReview/TopMatchingReview.tsx
|
|
4809
|
-
var
|
|
5298
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
4810
5299
|
var TopMatchingReview = ({
|
|
4811
5300
|
author,
|
|
4812
5301
|
datePosted,
|
|
@@ -4818,8 +5307,8 @@ var TopMatchingReview = ({
|
|
|
4818
5307
|
}) => {
|
|
4819
5308
|
const parsedRating = typeof rating === "string" ? parseInt(rating, 10) : rating;
|
|
4820
5309
|
const displayContent = content || children;
|
|
4821
|
-
return /* @__PURE__ */ (0,
|
|
4822
|
-
/* @__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)(
|
|
4823
5312
|
Heading_default,
|
|
4824
5313
|
{
|
|
4825
5314
|
size: "2xs",
|
|
@@ -4829,7 +5318,7 @@ var TopMatchingReview = ({
|
|
|
4829
5318
|
children: title
|
|
4830
5319
|
}
|
|
4831
5320
|
),
|
|
4832
|
-
/* @__PURE__ */ (0,
|
|
5321
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
|
|
4833
5322
|
Box_default,
|
|
4834
5323
|
{
|
|
4835
5324
|
display: "flex",
|
|
@@ -4841,10 +5330,10 @@ var TopMatchingReview = ({
|
|
|
4841
5330
|
minWidth: "335px",
|
|
4842
5331
|
className,
|
|
4843
5332
|
children: [
|
|
4844
|
-
/* @__PURE__ */ (0,
|
|
4845
|
-
/* @__PURE__ */ (0,
|
|
4846
|
-
/* @__PURE__ */ (0,
|
|
4847
|
-
/* @__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: [
|
|
4848
5337
|
"This review was posted by ",
|
|
4849
5338
|
author,
|
|
4850
5339
|
" on ",
|
|
@@ -4861,7 +5350,7 @@ var TopMatchingReview = ({
|
|
|
4861
5350
|
};
|
|
4862
5351
|
|
|
4863
5352
|
// src/AIResponse/AIResponse.tsx
|
|
4864
|
-
var
|
|
5353
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
4865
5354
|
var AIResponse = ({
|
|
4866
5355
|
title = `Here's what I found`,
|
|
4867
5356
|
showTitle = true,
|
|
@@ -4877,10 +5366,10 @@ var AIResponse = ({
|
|
|
4877
5366
|
markdown = false,
|
|
4878
5367
|
enableCodeCopy = true
|
|
4879
5368
|
}) => {
|
|
4880
|
-
const [visualHelpful, setVisualHelpful] = (0,
|
|
5369
|
+
const [visualHelpful, setVisualHelpful] = (0, import_react18.useState)(
|
|
4881
5370
|
void 0
|
|
4882
5371
|
);
|
|
4883
|
-
const debounceTimerRef = (0,
|
|
5372
|
+
const debounceTimerRef = (0, import_react18.useRef)(null);
|
|
4884
5373
|
const DEBOUNCE_MS = helpfulDebounceMs;
|
|
4885
5374
|
const scheduleCallback = (next) => {
|
|
4886
5375
|
if (debounceTimerRef.current) {
|
|
@@ -4907,14 +5396,14 @@ var AIResponse = ({
|
|
|
4907
5396
|
setVisualHelpful(next);
|
|
4908
5397
|
scheduleCallback(next);
|
|
4909
5398
|
};
|
|
4910
|
-
(0,
|
|
5399
|
+
(0, import_react18.useEffect)(() => {
|
|
4911
5400
|
return () => {
|
|
4912
5401
|
if (debounceTimerRef.current) {
|
|
4913
5402
|
clearTimeout(debounceTimerRef.current);
|
|
4914
5403
|
}
|
|
4915
5404
|
};
|
|
4916
5405
|
}, []);
|
|
4917
|
-
return /* @__PURE__ */ (0,
|
|
5406
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(
|
|
4918
5407
|
Box_default,
|
|
4919
5408
|
{
|
|
4920
5409
|
className,
|
|
@@ -4922,9 +5411,9 @@ var AIResponse = ({
|
|
|
4922
5411
|
flexDirection: "column",
|
|
4923
5412
|
gap: "var(--spacing-4)",
|
|
4924
5413
|
children: [
|
|
4925
|
-
variant !== "error" && showTitle && /* @__PURE__ */ (0,
|
|
4926
|
-
/* @__PURE__ */ (0,
|
|
4927
|
-
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)(
|
|
4928
5417
|
MarkdownContent_default,
|
|
4929
5418
|
{
|
|
4930
5419
|
content: children,
|
|
@@ -4935,33 +5424,33 @@ var AIResponse = ({
|
|
|
4935
5424
|
ContactLandownerButton
|
|
4936
5425
|
}
|
|
4937
5426
|
}
|
|
4938
|
-
) : /* @__PURE__ */ (0,
|
|
4939
|
-
variant !== "error" && showDisclaimer && /* @__PURE__ */ (0,
|
|
4940
|
-
/* @__PURE__ */ (0,
|
|
4941
|
-
/* @__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." })
|
|
4942
5431
|
] }),
|
|
4943
|
-
variant === "error" && /* @__PURE__ */ (0,
|
|
5432
|
+
variant === "error" && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("div", { css: errorRetryStyles, children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4944
5433
|
Button_default,
|
|
4945
5434
|
{
|
|
4946
5435
|
variant: "secondary",
|
|
4947
5436
|
size: "md",
|
|
4948
5437
|
onClick: onErrorRetry,
|
|
4949
|
-
icon: /* @__PURE__ */ (0,
|
|
4950
|
-
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" })
|
|
4951
5440
|
}
|
|
4952
5441
|
) })
|
|
4953
5442
|
] }),
|
|
4954
|
-
showHelpfulQuestion && variant !== "error" && /* @__PURE__ */ (0,
|
|
4955
|
-
/* @__PURE__ */ (0,
|
|
4956
|
-
/* @__PURE__ */ (0,
|
|
4957
|
-
/* @__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)(
|
|
4958
5447
|
Button_default,
|
|
4959
5448
|
{
|
|
4960
5449
|
variant: "text",
|
|
4961
5450
|
size: "xs",
|
|
4962
5451
|
onClick: handleHelpfulYes,
|
|
4963
5452
|
"aria-pressed": visualHelpful === "yes",
|
|
4964
|
-
children: /* @__PURE__ */ (0,
|
|
5453
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4965
5454
|
IconLabel_default,
|
|
4966
5455
|
{
|
|
4967
5456
|
variant: visualHelpful === "yes" ? "ThumbsUpSolid" : "ThumbsUp",
|
|
@@ -4970,14 +5459,14 @@ var AIResponse = ({
|
|
|
4970
5459
|
)
|
|
4971
5460
|
}
|
|
4972
5461
|
),
|
|
4973
|
-
/* @__PURE__ */ (0,
|
|
5462
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4974
5463
|
Button_default,
|
|
4975
5464
|
{
|
|
4976
5465
|
variant: "text",
|
|
4977
5466
|
size: "xs",
|
|
4978
5467
|
onClick: handleHelpfulNo,
|
|
4979
5468
|
"aria-pressed": visualHelpful === "no",
|
|
4980
|
-
children: /* @__PURE__ */ (0,
|
|
5469
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
4981
5470
|
IconLabel_default,
|
|
4982
5471
|
{
|
|
4983
5472
|
variant: visualHelpful === "no" ? "ThumbsDownSolid" : "ThumbsDown",
|
|
@@ -4995,38 +5484,38 @@ var AIResponse = ({
|
|
|
4995
5484
|
var AIResponse_default = AIResponse;
|
|
4996
5485
|
|
|
4997
5486
|
// src/AvailabilityBadge/AvailabilityBadge.styles.ts
|
|
4998
|
-
var
|
|
5487
|
+
var import_react19 = require("@emotion/react");
|
|
4999
5488
|
var availabilityBadgeVariantStyles = {
|
|
5000
|
-
primary:
|
|
5489
|
+
primary: import_react19.css`
|
|
5001
5490
|
background-color: var(--color-primary-100);
|
|
5002
5491
|
color: var(--text-primary);
|
|
5003
5492
|
`,
|
|
5004
|
-
error:
|
|
5493
|
+
error: import_react19.css`
|
|
5005
5494
|
background-color: var(--surface-error);
|
|
5006
5495
|
color: var(--text-error);
|
|
5007
5496
|
`,
|
|
5008
|
-
action:
|
|
5497
|
+
action: import_react19.css`
|
|
5009
5498
|
background-color: var(--surface-action-2);
|
|
5010
5499
|
color: var(--text-primary);
|
|
5011
5500
|
`,
|
|
5012
|
-
warning:
|
|
5501
|
+
warning: import_react19.css`
|
|
5013
5502
|
background-color: var(--color-brown-200);
|
|
5014
5503
|
color: var(--text-primary);
|
|
5015
5504
|
`,
|
|
5016
|
-
neutral:
|
|
5505
|
+
neutral: import_react19.css`
|
|
5017
5506
|
background-color: var(--surface-neutral);
|
|
5018
5507
|
color: var(--text-primary);
|
|
5019
5508
|
`
|
|
5020
5509
|
};
|
|
5021
5510
|
|
|
5022
5511
|
// src/AvailabilityBadge/AvailabilityBadge.tsx
|
|
5023
|
-
var
|
|
5512
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5024
5513
|
var AvailabilityBadge = ({
|
|
5025
5514
|
children,
|
|
5026
5515
|
variant,
|
|
5027
5516
|
className
|
|
5028
5517
|
}) => {
|
|
5029
|
-
return /* @__PURE__ */ (0,
|
|
5518
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5030
5519
|
Box_default,
|
|
5031
5520
|
{
|
|
5032
5521
|
display: "inline-flex",
|
|
@@ -5036,46 +5525,46 @@ var AvailabilityBadge = ({
|
|
|
5036
5525
|
borderRadius: "var(--spacing-2)",
|
|
5037
5526
|
css: availabilityBadgeVariantStyles[variant],
|
|
5038
5527
|
className,
|
|
5039
|
-
children: /* @__PURE__ */ (0,
|
|
5528
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(Text_default, { size: "xs", fontWeight: "bold", children })
|
|
5040
5529
|
}
|
|
5041
5530
|
);
|
|
5042
5531
|
};
|
|
5043
5532
|
var AvailabilityBadge_default = AvailabilityBadge;
|
|
5044
5533
|
|
|
5045
5534
|
// src/Avatar/Avatar.tsx
|
|
5046
|
-
var
|
|
5047
|
-
var
|
|
5535
|
+
var import_react21 = require("@emotion/react");
|
|
5536
|
+
var import_react22 = require("react");
|
|
5048
5537
|
|
|
5049
5538
|
// src/Avatar/Avatar.styles.ts
|
|
5050
|
-
var
|
|
5539
|
+
var import_react20 = require("@emotion/react");
|
|
5051
5540
|
var avatarSizeStyles = {
|
|
5052
|
-
xs:
|
|
5541
|
+
xs: import_react20.css`
|
|
5053
5542
|
width: 24px;
|
|
5054
5543
|
height: 24px;
|
|
5055
5544
|
`,
|
|
5056
|
-
sm:
|
|
5545
|
+
sm: import_react20.css`
|
|
5057
5546
|
width: 32px;
|
|
5058
5547
|
height: 32px;
|
|
5059
5548
|
`,
|
|
5060
|
-
md:
|
|
5549
|
+
md: import_react20.css`
|
|
5061
5550
|
width: 60px;
|
|
5062
5551
|
height: 60px;
|
|
5063
5552
|
`,
|
|
5064
|
-
lg:
|
|
5553
|
+
lg: import_react20.css`
|
|
5065
5554
|
width: 80px;
|
|
5066
5555
|
height: 80px;
|
|
5067
5556
|
`,
|
|
5068
|
-
xl:
|
|
5557
|
+
xl: import_react20.css`
|
|
5069
5558
|
width: 120px;
|
|
5070
5559
|
height: 120px;
|
|
5071
5560
|
`
|
|
5072
5561
|
};
|
|
5073
|
-
var avatarBaseStyles =
|
|
5562
|
+
var avatarBaseStyles = import_react20.css`
|
|
5074
5563
|
border-radius: 50%;
|
|
5075
5564
|
object-fit: cover;
|
|
5076
5565
|
display: block;
|
|
5077
5566
|
`;
|
|
5078
|
-
var avatarTextStyles =
|
|
5567
|
+
var avatarTextStyles = import_react20.css`
|
|
5079
5568
|
border-radius: 50%;
|
|
5080
5569
|
background-color: var(--surface-action);
|
|
5081
5570
|
color: white;
|
|
@@ -5085,7 +5574,7 @@ var avatarTextStyles = import_react16.css`
|
|
|
5085
5574
|
font-weight: bold;
|
|
5086
5575
|
user-select: none;
|
|
5087
5576
|
`;
|
|
5088
|
-
var avatarFallbackStyles =
|
|
5577
|
+
var avatarFallbackStyles = import_react20.css`
|
|
5089
5578
|
border-radius: 50%;
|
|
5090
5579
|
background-color: var(--color-neutral-100);
|
|
5091
5580
|
color: var(--color-neutral-500);
|
|
@@ -5095,7 +5584,7 @@ var avatarFallbackStyles = import_react16.css`
|
|
|
5095
5584
|
`;
|
|
5096
5585
|
|
|
5097
5586
|
// src/Avatar/Avatar.tsx
|
|
5098
|
-
var
|
|
5587
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
5099
5588
|
var Avatar = ({
|
|
5100
5589
|
type = "image",
|
|
5101
5590
|
src,
|
|
@@ -5104,7 +5593,7 @@ var Avatar = ({
|
|
|
5104
5593
|
size = "md",
|
|
5105
5594
|
className
|
|
5106
5595
|
}) => {
|
|
5107
|
-
const [hasImageError, setHasImageError] = (0,
|
|
5596
|
+
const [hasImageError, setHasImageError] = (0, import_react22.useState)(false);
|
|
5108
5597
|
const handleImageError = () => {
|
|
5109
5598
|
setHasImageError(true);
|
|
5110
5599
|
};
|
|
@@ -5145,7 +5634,7 @@ var Avatar = ({
|
|
|
5145
5634
|
};
|
|
5146
5635
|
if (type === "text" && text) {
|
|
5147
5636
|
const initials = getInitials(text);
|
|
5148
|
-
return /* @__PURE__ */ (0,
|
|
5637
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5149
5638
|
"div",
|
|
5150
5639
|
{
|
|
5151
5640
|
css: [
|
|
@@ -5160,7 +5649,7 @@ var Avatar = ({
|
|
|
5160
5649
|
);
|
|
5161
5650
|
}
|
|
5162
5651
|
if (type === "image" && src && !hasImageError) {
|
|
5163
|
-
return /* @__PURE__ */ (0,
|
|
5652
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5164
5653
|
"img",
|
|
5165
5654
|
{
|
|
5166
5655
|
src,
|
|
@@ -5171,18 +5660,18 @@ var Avatar = ({
|
|
|
5171
5660
|
}
|
|
5172
5661
|
);
|
|
5173
5662
|
}
|
|
5174
|
-
return /* @__PURE__ */ (0,
|
|
5663
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5175
5664
|
"div",
|
|
5176
5665
|
{
|
|
5177
5666
|
css: [avatarFallbackStyles, avatarSizeStyles[size]],
|
|
5178
5667
|
className,
|
|
5179
5668
|
title: alt,
|
|
5180
|
-
children: /* @__PURE__ */ (0,
|
|
5669
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5181
5670
|
Icon_default,
|
|
5182
5671
|
{
|
|
5183
5672
|
variant: "User",
|
|
5184
5673
|
size: getIconSize(size),
|
|
5185
|
-
css: size === "lg" ?
|
|
5674
|
+
css: size === "lg" ? import_react21.css`
|
|
5186
5675
|
width: 28px;
|
|
5187
5676
|
height: 28px;
|
|
5188
5677
|
` : void 0
|
|
@@ -5194,15 +5683,15 @@ var Avatar = ({
|
|
|
5194
5683
|
var Avatar_default = Avatar;
|
|
5195
5684
|
|
|
5196
5685
|
// src/ChatWidget/ChatWidget.tsx
|
|
5197
|
-
var
|
|
5686
|
+
var import_react34 = __toESM(require("react"));
|
|
5198
5687
|
|
|
5199
5688
|
// src/Divider/Divider.tsx
|
|
5200
5689
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
5201
5690
|
var import_styled_system2 = require("styled-system");
|
|
5202
5691
|
|
|
5203
5692
|
// src/Divider/Divider.styles.ts
|
|
5204
|
-
var
|
|
5205
|
-
var dividerStyles =
|
|
5693
|
+
var import_react23 = require("@emotion/react");
|
|
5694
|
+
var dividerStyles = import_react23.css`
|
|
5206
5695
|
width: 100%;
|
|
5207
5696
|
height: 1px;
|
|
5208
5697
|
border: 0;
|
|
@@ -5210,28 +5699,28 @@ var dividerStyles = import_react19.css`
|
|
|
5210
5699
|
`;
|
|
5211
5700
|
|
|
5212
5701
|
// src/Divider/Divider.tsx
|
|
5213
|
-
var
|
|
5702
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
5214
5703
|
var StyledHr = import_styled4.default.hr`
|
|
5215
5704
|
${dividerStyles}
|
|
5216
5705
|
${import_styled_system2.space}
|
|
5217
5706
|
`;
|
|
5218
5707
|
var Divider = ({ className, ...rest }) => {
|
|
5219
|
-
return /* @__PURE__ */ (0,
|
|
5708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(StyledHr, { className, ...rest });
|
|
5220
5709
|
};
|
|
5221
5710
|
var Divider_default = Divider;
|
|
5222
5711
|
|
|
5223
5712
|
// src/Form/TextArea.tsx
|
|
5224
|
-
var
|
|
5225
|
-
var
|
|
5713
|
+
var import_react25 = require("@emotion/react");
|
|
5714
|
+
var import_react26 = require("react");
|
|
5226
5715
|
|
|
5227
5716
|
// src/Form/TextArea.styles.ts
|
|
5228
|
-
var
|
|
5229
|
-
var wrapperStyles =
|
|
5717
|
+
var import_react24 = require("@emotion/react");
|
|
5718
|
+
var wrapperStyles = import_react24.css`
|
|
5230
5719
|
position: relative;
|
|
5231
5720
|
display: inline-block;
|
|
5232
5721
|
width: 100%;
|
|
5233
5722
|
`;
|
|
5234
|
-
var textareaBase =
|
|
5723
|
+
var textareaBase = import_react24.css`
|
|
5235
5724
|
width: 100%;
|
|
5236
5725
|
box-sizing: border-box;
|
|
5237
5726
|
font: inherit;
|
|
@@ -5265,32 +5754,32 @@ var textareaBase = import_react20.css`
|
|
|
5265
5754
|
cursor: default;
|
|
5266
5755
|
}
|
|
5267
5756
|
`;
|
|
5268
|
-
var variantError =
|
|
5757
|
+
var variantError = import_react24.css`
|
|
5269
5758
|
border-color: var(--border-error);
|
|
5270
5759
|
&:focus {
|
|
5271
5760
|
border-color: var(--border-error);
|
|
5272
5761
|
box-shadow: 0 0 0 3px var(--color-error-100);
|
|
5273
5762
|
}
|
|
5274
5763
|
`;
|
|
5275
|
-
var variantSuccess =
|
|
5764
|
+
var variantSuccess = import_react24.css`
|
|
5276
5765
|
border-color: var(--color-success-500);
|
|
5277
5766
|
&:focus {
|
|
5278
5767
|
border-color: var(--color-success-500);
|
|
5279
5768
|
box-shadow: 0 0 0 3px var(--color-success-100);
|
|
5280
5769
|
}
|
|
5281
5770
|
`;
|
|
5282
|
-
var submitButtonContainer =
|
|
5771
|
+
var submitButtonContainer = import_react24.css`
|
|
5283
5772
|
position: absolute;
|
|
5284
5773
|
right: var(--spacing-4);
|
|
5285
5774
|
bottom: var(--spacing-4);
|
|
5286
5775
|
`;
|
|
5287
|
-
var textareaWithSubmit =
|
|
5776
|
+
var textareaWithSubmit = import_react24.css`
|
|
5288
5777
|
padding-right: var(--spacing-16);
|
|
5289
5778
|
`;
|
|
5290
5779
|
|
|
5291
5780
|
// src/Form/TextArea.tsx
|
|
5292
|
-
var
|
|
5293
|
-
var TextArea = (0,
|
|
5781
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
5782
|
+
var TextArea = (0, import_react26.forwardRef)(
|
|
5294
5783
|
({
|
|
5295
5784
|
rows = 3,
|
|
5296
5785
|
variant = "default",
|
|
@@ -5310,8 +5799,8 @@ var TextArea = (0, import_react22.forwardRef)(
|
|
|
5310
5799
|
submitOnEnter = true,
|
|
5311
5800
|
...props
|
|
5312
5801
|
}, ref) => {
|
|
5313
|
-
const innerRef = (0,
|
|
5314
|
-
(0,
|
|
5802
|
+
const innerRef = (0, import_react26.useRef)(null);
|
|
5803
|
+
(0, import_react26.useEffect)(() => {
|
|
5315
5804
|
const el = innerRef.current;
|
|
5316
5805
|
if (!el || !autoExpand)
|
|
5317
5806
|
return;
|
|
@@ -5347,8 +5836,8 @@ var TextArea = (0, import_react22.forwardRef)(
|
|
|
5347
5836
|
onSubmit();
|
|
5348
5837
|
}
|
|
5349
5838
|
};
|
|
5350
|
-
return /* @__PURE__ */ (0,
|
|
5351
|
-
/* @__PURE__ */ (0,
|
|
5839
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsxs)("div", { css: wrapperStyles, children: [
|
|
5840
|
+
/* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5352
5841
|
"textarea",
|
|
5353
5842
|
{
|
|
5354
5843
|
ref: (node) => {
|
|
@@ -5365,7 +5854,7 @@ var TextArea = (0, import_react22.forwardRef)(
|
|
|
5365
5854
|
textareaBase,
|
|
5366
5855
|
variant === "error" && variantError,
|
|
5367
5856
|
variant === "success" && variantSuccess,
|
|
5368
|
-
|
|
5857
|
+
import_react25.css`
|
|
5369
5858
|
resize: ${resize};
|
|
5370
5859
|
`,
|
|
5371
5860
|
showSubmit && textareaWithSubmit
|
|
@@ -5378,14 +5867,14 @@ var TextArea = (0, import_react22.forwardRef)(
|
|
|
5378
5867
|
...props
|
|
5379
5868
|
}
|
|
5380
5869
|
),
|
|
5381
|
-
showSubmit && /* @__PURE__ */ (0,
|
|
5870
|
+
showSubmit && /* @__PURE__ */ (0, import_jsx_runtime223.jsx)("div", { css: submitButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5382
5871
|
Button_default,
|
|
5383
5872
|
{
|
|
5384
5873
|
size: "xs",
|
|
5385
5874
|
"aria-label": submitAriaLabel,
|
|
5386
5875
|
onClick: onSubmit,
|
|
5387
5876
|
disabled: disabled || submitDisabled,
|
|
5388
|
-
icon: /* @__PURE__ */ (0,
|
|
5877
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(
|
|
5389
5878
|
Icon_default,
|
|
5390
5879
|
{
|
|
5391
5880
|
variant: "PaperPlane",
|
|
@@ -5402,14 +5891,14 @@ TextArea.displayName = "TextArea";
|
|
|
5402
5891
|
var TextArea_default = TextArea;
|
|
5403
5892
|
|
|
5404
5893
|
// src/MessageBubble/MessageBubble.styles.ts
|
|
5405
|
-
var
|
|
5406
|
-
var getRootStyles = (variant) =>
|
|
5894
|
+
var import_react27 = require("@emotion/react");
|
|
5895
|
+
var getRootStyles = (variant) => import_react27.css`
|
|
5407
5896
|
display: flex;
|
|
5408
5897
|
flex-direction: column;
|
|
5409
5898
|
gap: var(--spacing-1);
|
|
5410
5899
|
align-items: ${variant === "sent" ? "flex-end" : "flex-start"};
|
|
5411
5900
|
`;
|
|
5412
|
-
var getBubbleStyles = (variant) =>
|
|
5901
|
+
var getBubbleStyles = (variant) => import_react27.css`
|
|
5413
5902
|
max-width: 100%;
|
|
5414
5903
|
width: 100%;
|
|
5415
5904
|
box-sizing: border-box;
|
|
@@ -5426,22 +5915,22 @@ var getBubbleStyles = (variant) => import_react23.css`
|
|
|
5426
5915
|
border-bottom-left-radius: ${variant === "sent" ? "var(--radius-lg)" : "0"};
|
|
5427
5916
|
border-bottom-right-radius: ${variant === "sent" ? "0" : "var(--radius-lg)"};
|
|
5428
5917
|
`;
|
|
5429
|
-
var contentStyles =
|
|
5918
|
+
var contentStyles = import_react27.css`
|
|
5430
5919
|
flex: 1 1 auto;
|
|
5431
5920
|
min-width: 1px;
|
|
5432
5921
|
min-height: 1px;
|
|
5433
5922
|
`;
|
|
5434
5923
|
|
|
5435
5924
|
// src/MessageBubble/MessageBubble.tsx
|
|
5436
|
-
var
|
|
5925
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
5437
5926
|
var MessageBubble = ({
|
|
5438
5927
|
variant = "sent",
|
|
5439
5928
|
timestamp,
|
|
5440
5929
|
className,
|
|
5441
5930
|
children
|
|
5442
5931
|
}) => {
|
|
5443
|
-
return /* @__PURE__ */ (0,
|
|
5444
|
-
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)(
|
|
5445
5934
|
Text_default,
|
|
5446
5935
|
{
|
|
5447
5936
|
size: "xs",
|
|
@@ -5450,40 +5939,40 @@ var MessageBubble = ({
|
|
|
5450
5939
|
children: timestamp
|
|
5451
5940
|
}
|
|
5452
5941
|
),
|
|
5453
|
-
/* @__PURE__ */ (0,
|
|
5942
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { css: getBubbleStyles(variant), children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)("div", { css: contentStyles, children }) })
|
|
5454
5943
|
] });
|
|
5455
5944
|
};
|
|
5456
5945
|
var MessageBubble_default = MessageBubble;
|
|
5457
5946
|
|
|
5458
5947
|
// src/TagChip/TagChip.styles.ts
|
|
5459
|
-
var
|
|
5948
|
+
var import_react28 = require("@emotion/react");
|
|
5460
5949
|
var tagChipVariantStyles = {
|
|
5461
|
-
default:
|
|
5950
|
+
default: import_react28.css`
|
|
5462
5951
|
background-color: var(--surface-page);
|
|
5463
5952
|
border: 1px solid var(--border-primary);
|
|
5464
5953
|
color: var(--text-primary);
|
|
5465
5954
|
`,
|
|
5466
|
-
active:
|
|
5955
|
+
active: import_react28.css`
|
|
5467
5956
|
background-color: var(--text-primary);
|
|
5468
5957
|
border: 1px solid var(--border-secondary);
|
|
5469
5958
|
color: var(--color-base-white);
|
|
5470
5959
|
`,
|
|
5471
|
-
primary:
|
|
5960
|
+
primary: import_react28.css`
|
|
5472
5961
|
background-color: var(--surface-disabled);
|
|
5473
5962
|
border: 1px solid var(--surface-disabled);
|
|
5474
5963
|
color: var(--text-primary);
|
|
5475
5964
|
`,
|
|
5476
|
-
error:
|
|
5965
|
+
error: import_react28.css`
|
|
5477
5966
|
background-color: var(--surface-error);
|
|
5478
5967
|
border: 1px solid var(--color-red-300);
|
|
5479
5968
|
color: var(--text-error);
|
|
5480
5969
|
`,
|
|
5481
|
-
success:
|
|
5970
|
+
success: import_react28.css`
|
|
5482
5971
|
background-color: var(--surface-success);
|
|
5483
5972
|
border: 1px solid var(--color-green-300);
|
|
5484
5973
|
color: var(--text-primary);
|
|
5485
5974
|
`,
|
|
5486
|
-
warning:
|
|
5975
|
+
warning: import_react28.css`
|
|
5487
5976
|
background-color: var(--surface-subtle);
|
|
5488
5977
|
border: 1px solid var(--color-brown-200);
|
|
5489
5978
|
color: var(--text-primary);
|
|
@@ -5491,14 +5980,14 @@ var tagChipVariantStyles = {
|
|
|
5491
5980
|
};
|
|
5492
5981
|
|
|
5493
5982
|
// src/TagChip/TagChip.tsx
|
|
5494
|
-
var
|
|
5983
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
5495
5984
|
var TagChip = ({
|
|
5496
5985
|
variant = "primary",
|
|
5497
5986
|
className,
|
|
5498
5987
|
children,
|
|
5499
5988
|
...rest
|
|
5500
5989
|
}) => {
|
|
5501
|
-
return /* @__PURE__ */ (0,
|
|
5990
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
5502
5991
|
Box_default,
|
|
5503
5992
|
{
|
|
5504
5993
|
display: "inline-flex",
|
|
@@ -5509,18 +5998,18 @@ var TagChip = ({
|
|
|
5509
5998
|
css: tagChipVariantStyles[variant],
|
|
5510
5999
|
className,
|
|
5511
6000
|
...rest,
|
|
5512
|
-
children: /* @__PURE__ */ (0,
|
|
6001
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Text_default, { as: "span", size: "sm", fontWeight: "normal", children })
|
|
5513
6002
|
}
|
|
5514
6003
|
);
|
|
5515
6004
|
};
|
|
5516
6005
|
var TagChip_default = TagChip;
|
|
5517
6006
|
|
|
5518
6007
|
// src/Widget/Widget.tsx
|
|
5519
|
-
var
|
|
6008
|
+
var import_react30 = require("react");
|
|
5520
6009
|
|
|
5521
6010
|
// src/Widget/Widget.styles.ts
|
|
5522
|
-
var
|
|
5523
|
-
var panelContainer =
|
|
6011
|
+
var import_react29 = require("@emotion/react");
|
|
6012
|
+
var panelContainer = import_react29.css`
|
|
5524
6013
|
position: absolute;
|
|
5525
6014
|
right: 0;
|
|
5526
6015
|
bottom: calc(100% + var(--spacing-2));
|
|
@@ -5534,7 +6023,7 @@ var panelContainer = import_react25.css`
|
|
|
5534
6023
|
justify-content: stretch;
|
|
5535
6024
|
}
|
|
5536
6025
|
`;
|
|
5537
|
-
var panelCard = (width2) =>
|
|
6026
|
+
var panelCard = (width2) => import_react29.css`
|
|
5538
6027
|
background: var(--surface-page);
|
|
5539
6028
|
color: var(--text-primary);
|
|
5540
6029
|
border: 1px solid var(--border-primary);
|
|
@@ -5569,16 +6058,16 @@ var panelCard = (width2) => import_react25.css`
|
|
|
5569
6058
|
animation: none;
|
|
5570
6059
|
}
|
|
5571
6060
|
`;
|
|
5572
|
-
var widgetTrigger =
|
|
6061
|
+
var widgetTrigger = import_react29.css`
|
|
5573
6062
|
margin: var(--spacing-1);
|
|
5574
6063
|
box-shadow: var(--shadow-2xl);
|
|
5575
6064
|
`;
|
|
5576
6065
|
|
|
5577
6066
|
// src/Widget/Widget.tsx
|
|
5578
|
-
var
|
|
5579
|
-
var WidgetContext = (0,
|
|
6067
|
+
var import_jsx_runtime226 = require("@emotion/react/jsx-runtime");
|
|
6068
|
+
var WidgetContext = (0, import_react30.createContext)(null);
|
|
5580
6069
|
var useWidgetContext = () => {
|
|
5581
|
-
const ctx = (0,
|
|
6070
|
+
const ctx = (0, import_react30.useContext)(WidgetContext);
|
|
5582
6071
|
if (!ctx)
|
|
5583
6072
|
throw new Error("Widget subcomponents must be used within <Widget>");
|
|
5584
6073
|
return ctx;
|
|
@@ -5586,7 +6075,7 @@ var useWidgetContext = () => {
|
|
|
5586
6075
|
var WidgetTrigger = () => {
|
|
5587
6076
|
const { expanded, toggle, triggerRef, icon: icon2, expandedIcon } = useWidgetContext();
|
|
5588
6077
|
const currentIcon = expanded ? expandedIcon : icon2;
|
|
5589
|
-
return /* @__PURE__ */ (0,
|
|
6078
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(import_jsx_runtime226.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5590
6079
|
Button_default,
|
|
5591
6080
|
{
|
|
5592
6081
|
ref: triggerRef,
|
|
@@ -5594,7 +6083,7 @@ var WidgetTrigger = () => {
|
|
|
5594
6083
|
"aria-haspopup": "dialog",
|
|
5595
6084
|
onClick: toggle,
|
|
5596
6085
|
size: "lg",
|
|
5597
|
-
icon: /* @__PURE__ */ (0,
|
|
6086
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Icon_default, { variant: currentIcon, size: "xxlarge" }),
|
|
5598
6087
|
css: widgetTrigger
|
|
5599
6088
|
}
|
|
5600
6089
|
) });
|
|
@@ -5603,7 +6092,7 @@ var WidgetPanel = ({ className, style, children }) => {
|
|
|
5603
6092
|
const { expanded, panelWidth } = useWidgetContext();
|
|
5604
6093
|
if (!expanded)
|
|
5605
6094
|
return null;
|
|
5606
|
-
return /* @__PURE__ */ (0,
|
|
6095
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)("div", { css: panelContainer, className, style, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5607
6096
|
Box_default,
|
|
5608
6097
|
{
|
|
5609
6098
|
css: panelCard(panelWidth),
|
|
@@ -5627,12 +6116,12 @@ var WidgetRoot = ({
|
|
|
5627
6116
|
containerProps,
|
|
5628
6117
|
closeOnClickOutside = true
|
|
5629
6118
|
}) => {
|
|
5630
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
6119
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react30.useState)(defaultExpanded);
|
|
5631
6120
|
const isControlled = typeof expanded === "boolean";
|
|
5632
6121
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
5633
|
-
const triggerRef = (0,
|
|
5634
|
-
const containerRef = (0,
|
|
5635
|
-
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)(
|
|
5636
6125
|
(next) => {
|
|
5637
6126
|
if (!isControlled)
|
|
5638
6127
|
setInternalExpanded(next);
|
|
@@ -5646,11 +6135,11 @@ var WidgetRoot = ({
|
|
|
5646
6135
|
},
|
|
5647
6136
|
[isControlled, onExpandedChange]
|
|
5648
6137
|
);
|
|
5649
|
-
const toggle = (0,
|
|
6138
|
+
const toggle = (0, import_react30.useCallback)(
|
|
5650
6139
|
() => setExpanded(!isExpanded),
|
|
5651
6140
|
[isExpanded, setExpanded]
|
|
5652
6141
|
);
|
|
5653
|
-
(0,
|
|
6142
|
+
(0, import_react30.useEffect)(() => {
|
|
5654
6143
|
if (!isExpanded || !closeOnClickOutside)
|
|
5655
6144
|
return;
|
|
5656
6145
|
const onDocClick = (e) => {
|
|
@@ -5664,7 +6153,7 @@ var WidgetRoot = ({
|
|
|
5664
6153
|
document.addEventListener("mousedown", onDocClick);
|
|
5665
6154
|
return () => document.removeEventListener("mousedown", onDocClick);
|
|
5666
6155
|
}, [isExpanded, setExpanded, closeOnClickOutside]);
|
|
5667
|
-
(0,
|
|
6156
|
+
(0, import_react30.useEffect)(() => {
|
|
5668
6157
|
if (!isExpanded)
|
|
5669
6158
|
return;
|
|
5670
6159
|
const onKey = (e) => {
|
|
@@ -5674,7 +6163,7 @@ var WidgetRoot = ({
|
|
|
5674
6163
|
document.addEventListener("keydown", onKey);
|
|
5675
6164
|
return () => document.removeEventListener("keydown", onKey);
|
|
5676
6165
|
}, [isExpanded, setExpanded]);
|
|
5677
|
-
const value = (0,
|
|
6166
|
+
const value = (0, import_react30.useMemo)(
|
|
5678
6167
|
() => ({
|
|
5679
6168
|
expanded: isExpanded,
|
|
5680
6169
|
toggle,
|
|
@@ -5685,7 +6174,7 @@ var WidgetRoot = ({
|
|
|
5685
6174
|
}),
|
|
5686
6175
|
[expandedIcon, icon2, isExpanded, panelWidth, toggle]
|
|
5687
6176
|
);
|
|
5688
|
-
return /* @__PURE__ */ (0,
|
|
6177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
5689
6178
|
Box_default,
|
|
5690
6179
|
{
|
|
5691
6180
|
ref: containerRef,
|
|
@@ -5696,7 +6185,7 @@ var WidgetRoot = ({
|
|
|
5696
6185
|
bottom: "var(--spacing-6)",
|
|
5697
6186
|
zIndex: 100,
|
|
5698
6187
|
...containerProps,
|
|
5699
|
-
children: /* @__PURE__ */ (0,
|
|
6188
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(WidgetContext.Provider, { value, children })
|
|
5700
6189
|
}
|
|
5701
6190
|
);
|
|
5702
6191
|
};
|
|
@@ -5707,8 +6196,8 @@ var Widget = Object.assign(WidgetRoot, {
|
|
|
5707
6196
|
var Widget_default = Widget;
|
|
5708
6197
|
|
|
5709
6198
|
// src/ChatWidget/ChatWidget.styles.ts
|
|
5710
|
-
var
|
|
5711
|
-
var sentWrapperStyles =
|
|
6199
|
+
var import_react31 = require("@emotion/react");
|
|
6200
|
+
var sentWrapperStyles = import_react31.css`
|
|
5712
6201
|
align-self: flex-end;
|
|
5713
6202
|
max-width: 90%;
|
|
5714
6203
|
width: 100%;
|
|
@@ -5716,14 +6205,14 @@ var sentWrapperStyles = import_react27.css`
|
|
|
5716
6205
|
overflow-wrap: anywhere;
|
|
5717
6206
|
padding-top: var(--spacing-4);
|
|
5718
6207
|
`;
|
|
5719
|
-
var receivedWrapperStyles =
|
|
6208
|
+
var receivedWrapperStyles = import_react31.css`
|
|
5720
6209
|
align-self: flex-start;
|
|
5721
6210
|
width: 100%;
|
|
5722
6211
|
min-width: 0;
|
|
5723
6212
|
overflow-wrap: anywhere;
|
|
5724
6213
|
padding-top: var(--spacing-4);
|
|
5725
6214
|
`;
|
|
5726
|
-
var containerStyles =
|
|
6215
|
+
var containerStyles = import_react31.css`
|
|
5727
6216
|
display: flex;
|
|
5728
6217
|
flex-direction: column;
|
|
5729
6218
|
min-height: 0;
|
|
@@ -5735,13 +6224,13 @@ var containerStyles = import_react27.css`
|
|
|
5735
6224
|
max-height: 100%;
|
|
5736
6225
|
}
|
|
5737
6226
|
`;
|
|
5738
|
-
var thinkingRowStyles =
|
|
6227
|
+
var thinkingRowStyles = import_react31.css`
|
|
5739
6228
|
display: flex;
|
|
5740
6229
|
align-items: center;
|
|
5741
6230
|
gap: var(--spacing-2);
|
|
5742
6231
|
color: var(--text-primary);
|
|
5743
6232
|
`;
|
|
5744
|
-
var thinkingTextStyles =
|
|
6233
|
+
var thinkingTextStyles = import_react31.css`
|
|
5745
6234
|
animation: ltchat-pulse 1.6s ease-in-out infinite;
|
|
5746
6235
|
|
|
5747
6236
|
@keyframes ltchat-pulse {
|
|
@@ -5754,7 +6243,7 @@ var thinkingTextStyles = import_react27.css`
|
|
|
5754
6243
|
}
|
|
5755
6244
|
}
|
|
5756
6245
|
`;
|
|
5757
|
-
var badge =
|
|
6246
|
+
var badge = import_react31.css`
|
|
5758
6247
|
width: var(--spacing-11);
|
|
5759
6248
|
height: var(--spacing-11);
|
|
5760
6249
|
border-radius: var(--radius-round);
|
|
@@ -5764,18 +6253,18 @@ var badge = import_react27.css`
|
|
|
5764
6253
|
background-color: var(--color-primary-500);
|
|
5765
6254
|
color: var(--color-base-white);
|
|
5766
6255
|
`;
|
|
5767
|
-
var closeButtonContent =
|
|
6256
|
+
var closeButtonContent = import_react31.css`
|
|
5768
6257
|
display: inline-flex;
|
|
5769
6258
|
align-items: center;
|
|
5770
6259
|
gap: var(--spacing-2);
|
|
5771
6260
|
`;
|
|
5772
6261
|
|
|
5773
6262
|
// src/ChatWidget/components/AskBuckButton.tsx
|
|
5774
|
-
var
|
|
6263
|
+
var import_react33 = __toESM(require("react"));
|
|
5775
6264
|
|
|
5776
6265
|
// src/ChatWidget/components/AskBuckButton.styles.ts
|
|
5777
|
-
var
|
|
5778
|
-
var rotateGradient =
|
|
6266
|
+
var import_react32 = require("@emotion/react");
|
|
6267
|
+
var rotateGradient = import_react32.keyframes`
|
|
5779
6268
|
0% {
|
|
5780
6269
|
--gradient-angle: 0deg;
|
|
5781
6270
|
}
|
|
@@ -5783,7 +6272,7 @@ var rotateGradient = import_react28.keyframes`
|
|
|
5783
6272
|
--gradient-angle: 360deg;
|
|
5784
6273
|
}
|
|
5785
6274
|
`;
|
|
5786
|
-
var triggerWrapperStyles = (isAnimating) =>
|
|
6275
|
+
var triggerWrapperStyles = (isAnimating) => import_react32.css`
|
|
5787
6276
|
position: relative;
|
|
5788
6277
|
display: inline-block;
|
|
5789
6278
|
|
|
@@ -5797,7 +6286,7 @@ var triggerWrapperStyles = (isAnimating) => import_react28.css`
|
|
|
5797
6286
|
box-shadow: 0px 0px var(--shadow-blur-lg, 24px)
|
|
5798
6287
|
var(--shadow-spread-xs, -4px) rgba(17, 17, 17, 0.1);
|
|
5799
6288
|
|
|
5800
|
-
${isAnimating ?
|
|
6289
|
+
${isAnimating ? import_react32.css`
|
|
5801
6290
|
/* Register the custom property */
|
|
5802
6291
|
@property --gradient-angle {
|
|
5803
6292
|
syntax: '<angle>';
|
|
@@ -5815,13 +6304,13 @@ var triggerWrapperStyles = (isAnimating) => import_react28.css`
|
|
|
5815
6304
|
var(--color-primary-600) 100%
|
|
5816
6305
|
);
|
|
5817
6306
|
animation: ${rotateGradient} 3s linear infinite;
|
|
5818
|
-
` :
|
|
6307
|
+
` : import_react32.css`
|
|
5819
6308
|
/* Static border when not animating */
|
|
5820
6309
|
background: var(--color-primary-600);
|
|
5821
6310
|
`}
|
|
5822
6311
|
}
|
|
5823
6312
|
`;
|
|
5824
|
-
var badgeStyles =
|
|
6313
|
+
var badgeStyles = import_react32.css`
|
|
5825
6314
|
display: inline-flex;
|
|
5826
6315
|
align-items: center;
|
|
5827
6316
|
justify-content: center;
|
|
@@ -5836,7 +6325,7 @@ var badgeStyles = import_react28.css`
|
|
|
5836
6325
|
flex-shrink: 0;
|
|
5837
6326
|
margin-right: var(--spacing-1);
|
|
5838
6327
|
`;
|
|
5839
|
-
var buttonOverrideStyles =
|
|
6328
|
+
var buttonOverrideStyles = import_react32.css`
|
|
5840
6329
|
background: var(--surface-page);
|
|
5841
6330
|
border: none;
|
|
5842
6331
|
border-radius: var(--radius-round);
|
|
@@ -5864,23 +6353,23 @@ var buttonOverrideStyles = import_react28.css`
|
|
|
5864
6353
|
`;
|
|
5865
6354
|
|
|
5866
6355
|
// src/ChatWidget/components/AskBuckButton.tsx
|
|
5867
|
-
var
|
|
5868
|
-
var AskBuckButton =
|
|
6356
|
+
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6357
|
+
var AskBuckButton = import_react33.default.forwardRef(
|
|
5869
6358
|
({ isAnimating = true, children = "Ask Buck", badgeCount }, ref) => {
|
|
5870
6359
|
var _a;
|
|
5871
|
-
const widgetContext = (0,
|
|
6360
|
+
const widgetContext = (0, import_react33.useContext)(WidgetContext);
|
|
5872
6361
|
const isExpanded = (_a = widgetContext == null ? void 0 : widgetContext.expanded) != null ? _a : false;
|
|
5873
6362
|
const showBadge = !isExpanded && badgeCount !== void 0 && badgeCount > 0;
|
|
5874
|
-
return /* @__PURE__ */ (0,
|
|
6363
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsx)("div", { css: triggerWrapperStyles(isAnimating), children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
5875
6364
|
Button_default,
|
|
5876
6365
|
{
|
|
5877
6366
|
ref,
|
|
5878
6367
|
"aria-expanded": widgetContext == null ? void 0 : widgetContext.expanded,
|
|
5879
6368
|
"aria-haspopup": "dialog",
|
|
5880
6369
|
onClick: widgetContext == null ? void 0 : widgetContext.toggle,
|
|
5881
|
-
icon: /* @__PURE__ */ (0,
|
|
5882
|
-
showBadge && /* @__PURE__ */ (0,
|
|
5883
|
-
/* @__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)(
|
|
5884
6373
|
Icon_default,
|
|
5885
6374
|
{
|
|
5886
6375
|
variant: isExpanded ? "AngleDownSharp" : "ConversationalSearchAi",
|
|
@@ -5898,9 +6387,9 @@ AskBuckButton.displayName = "AskBuckButton";
|
|
|
5898
6387
|
var AskBuckButton_default = AskBuckButton;
|
|
5899
6388
|
|
|
5900
6389
|
// src/ChatWidget/ChatWidget.tsx
|
|
5901
|
-
var
|
|
6390
|
+
var import_jsx_runtime228 = require("@emotion/react/jsx-runtime");
|
|
5902
6391
|
var DEFAULT_EMPTY_STATE = [
|
|
5903
|
-
/* @__PURE__ */ (0,
|
|
6392
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
5904
6393
|
AIResponse_default,
|
|
5905
6394
|
{
|
|
5906
6395
|
showDisclaimer: false,
|
|
@@ -5933,14 +6422,14 @@ var ChatWidget = ({
|
|
|
5933
6422
|
notificationCount,
|
|
5934
6423
|
closeOnClickOutside = true
|
|
5935
6424
|
}) => {
|
|
5936
|
-
const [value, setValue] = (0,
|
|
5937
|
-
const scrollRef = (0,
|
|
5938
|
-
const savedScrollPosition = (0,
|
|
5939
|
-
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);
|
|
5940
6429
|
const isControlled = typeof expanded === "boolean";
|
|
5941
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
6430
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react34.useState)(defaultExpanded);
|
|
5942
6431
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
5943
|
-
const setExpanded = (0,
|
|
6432
|
+
const setExpanded = (0, import_react34.useCallback)(
|
|
5944
6433
|
(next) => {
|
|
5945
6434
|
if (!next && scrollRef.current) {
|
|
5946
6435
|
savedScrollPosition.current = scrollRef.current.scrollTop;
|
|
@@ -5951,7 +6440,7 @@ var ChatWidget = ({
|
|
|
5951
6440
|
},
|
|
5952
6441
|
[isControlled, onExpandedChange]
|
|
5953
6442
|
);
|
|
5954
|
-
(0,
|
|
6443
|
+
(0, import_react34.useEffect)(() => {
|
|
5955
6444
|
const el = scrollRef.current;
|
|
5956
6445
|
if (!el || !isExpanded)
|
|
5957
6446
|
return;
|
|
@@ -5961,7 +6450,7 @@ var ChatWidget = ({
|
|
|
5961
6450
|
}
|
|
5962
6451
|
});
|
|
5963
6452
|
}, [isExpanded]);
|
|
5964
|
-
(0,
|
|
6453
|
+
(0, import_react34.useEffect)(() => {
|
|
5965
6454
|
const el = scrollRef.current;
|
|
5966
6455
|
if (!el || !isExpanded)
|
|
5967
6456
|
return;
|
|
@@ -5975,17 +6464,17 @@ var ChatWidget = ({
|
|
|
5975
6464
|
}
|
|
5976
6465
|
}, [messages, isThinking, isExpanded]);
|
|
5977
6466
|
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
5978
|
-
const renderedMessages = (0,
|
|
6467
|
+
const renderedMessages = (0, import_react34.useMemo)(
|
|
5979
6468
|
() => messagesToRender.map((element, index) => {
|
|
5980
6469
|
var _a;
|
|
5981
6470
|
const key = (_a = element.key) != null ? _a : index;
|
|
5982
6471
|
if (element.type === AIResponse_default) {
|
|
5983
|
-
return /* @__PURE__ */ (0,
|
|
6472
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: receivedWrapperStyles, children: element }, key);
|
|
5984
6473
|
}
|
|
5985
6474
|
if (element.type === MessageBubble_default) {
|
|
5986
|
-
return /* @__PURE__ */ (0,
|
|
6475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
5987
6476
|
}
|
|
5988
|
-
return /* @__PURE__ */ (0,
|
|
6477
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(import_react34.default.Fragment, { children: element }, key);
|
|
5989
6478
|
}),
|
|
5990
6479
|
[messagesToRender]
|
|
5991
6480
|
);
|
|
@@ -5996,7 +6485,7 @@ var ChatWidget = ({
|
|
|
5996
6485
|
onSubmit(trimmed);
|
|
5997
6486
|
setValue("");
|
|
5998
6487
|
};
|
|
5999
|
-
return /* @__PURE__ */ (0,
|
|
6488
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6000
6489
|
Widget_default,
|
|
6001
6490
|
{
|
|
6002
6491
|
ariaLabel,
|
|
@@ -6008,10 +6497,10 @@ var ChatWidget = ({
|
|
|
6008
6497
|
containerProps,
|
|
6009
6498
|
closeOnClickOutside,
|
|
6010
6499
|
children: [
|
|
6011
|
-
/* @__PURE__ */ (0,
|
|
6012
|
-
/* @__PURE__ */ (0,
|
|
6013
|
-
/* @__PURE__ */ (0,
|
|
6014
|
-
/* @__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)(
|
|
6015
6504
|
Box_default,
|
|
6016
6505
|
{
|
|
6017
6506
|
display: "flex",
|
|
@@ -6019,9 +6508,9 @@ var ChatWidget = ({
|
|
|
6019
6508
|
justifyContent: "space-between",
|
|
6020
6509
|
gap: "var(--spacing-4)",
|
|
6021
6510
|
children: [
|
|
6022
|
-
/* @__PURE__ */ (0,
|
|
6023
|
-
/* @__PURE__ */ (0,
|
|
6024
|
-
/* @__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)(
|
|
6025
6514
|
Heading_default,
|
|
6026
6515
|
{
|
|
6027
6516
|
size: "2xs",
|
|
@@ -6031,25 +6520,25 @@ var ChatWidget = ({
|
|
|
6031
6520
|
}
|
|
6032
6521
|
)
|
|
6033
6522
|
] }),
|
|
6034
|
-
/* @__PURE__ */ (0,
|
|
6523
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6035
6524
|
Button_default,
|
|
6036
6525
|
{
|
|
6037
6526
|
variant: "text",
|
|
6038
6527
|
size: "xs",
|
|
6039
6528
|
"aria-label": "Close widget",
|
|
6040
6529
|
onClick: () => setExpanded(false),
|
|
6041
|
-
children: /* @__PURE__ */ (0,
|
|
6042
|
-
/* @__PURE__ */ (0,
|
|
6043
|
-
/* @__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" })
|
|
6044
6533
|
] })
|
|
6045
6534
|
}
|
|
6046
6535
|
)
|
|
6047
6536
|
]
|
|
6048
6537
|
}
|
|
6049
6538
|
),
|
|
6050
|
-
/* @__PURE__ */ (0,
|
|
6539
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
6051
6540
|
] }),
|
|
6052
|
-
/* @__PURE__ */ (0,
|
|
6541
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6053
6542
|
Box_default,
|
|
6054
6543
|
{
|
|
6055
6544
|
ref: scrollRef,
|
|
@@ -6062,27 +6551,27 @@ var ChatWidget = ({
|
|
|
6062
6551
|
flexDirection: "column",
|
|
6063
6552
|
gap: "var(--spacing-2)",
|
|
6064
6553
|
children: [
|
|
6065
|
-
/* @__PURE__ */ (0,
|
|
6066
|
-
isThinking && /* @__PURE__ */ (0,
|
|
6067
|
-
/* @__PURE__ */ (0,
|
|
6068
|
-
/* @__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 })
|
|
6069
6558
|
] }) }),
|
|
6070
|
-
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)(
|
|
6071
6560
|
Box_default,
|
|
6072
6561
|
{
|
|
6073
6562
|
display: "flex",
|
|
6074
6563
|
flexDirection: "column",
|
|
6075
6564
|
gap: "var(--spacing-4)",
|
|
6076
6565
|
children: [
|
|
6077
|
-
/* @__PURE__ */ (0,
|
|
6078
|
-
/* @__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)(
|
|
6079
6568
|
Box_default,
|
|
6080
6569
|
{
|
|
6081
6570
|
display: "flex",
|
|
6082
6571
|
flexWrap: "wrap",
|
|
6083
6572
|
gap: "var(--spacing-4)",
|
|
6084
6573
|
alignItems: "flex-start",
|
|
6085
|
-
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0,
|
|
6574
|
+
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6086
6575
|
TagChip_default,
|
|
6087
6576
|
{
|
|
6088
6577
|
variant: "success",
|
|
@@ -6103,7 +6592,7 @@ var ChatWidget = ({
|
|
|
6103
6592
|
]
|
|
6104
6593
|
}
|
|
6105
6594
|
),
|
|
6106
|
-
/* @__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)(
|
|
6107
6596
|
TextArea_default,
|
|
6108
6597
|
{
|
|
6109
6598
|
rows: 3,
|
|
@@ -6126,9 +6615,9 @@ var ChatWidget = ({
|
|
|
6126
6615
|
var ChatWidget_default = ChatWidget;
|
|
6127
6616
|
|
|
6128
6617
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
6129
|
-
var
|
|
6618
|
+
var import_react35 = require("@emotion/react");
|
|
6130
6619
|
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
6131
|
-
var
|
|
6620
|
+
var import_jsx_runtime229 = require("@emotion/react/jsx-runtime");
|
|
6132
6621
|
var FeatureListItem = ({
|
|
6133
6622
|
iconVariant,
|
|
6134
6623
|
label,
|
|
@@ -6143,8 +6632,8 @@ var FeatureListItem = ({
|
|
|
6143
6632
|
}) => {
|
|
6144
6633
|
const iconDimensions = IconSizeMap[iconSize];
|
|
6145
6634
|
if (isLoading) {
|
|
6146
|
-
return /* @__PURE__ */ (0,
|
|
6147
|
-
/* @__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)(
|
|
6148
6637
|
Box_default,
|
|
6149
6638
|
{
|
|
6150
6639
|
display: "flex",
|
|
@@ -6154,7 +6643,7 @@ var FeatureListItem = ({
|
|
|
6154
6643
|
className,
|
|
6155
6644
|
...rest,
|
|
6156
6645
|
children: [
|
|
6157
|
-
/* @__PURE__ */ (0,
|
|
6646
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6158
6647
|
import_react_loading_skeleton.default,
|
|
6159
6648
|
{
|
|
6160
6649
|
circle: true,
|
|
@@ -6163,24 +6652,24 @@ var FeatureListItem = ({
|
|
|
6163
6652
|
borderRadius: 4
|
|
6164
6653
|
}
|
|
6165
6654
|
),
|
|
6166
|
-
/* @__PURE__ */ (0,
|
|
6655
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
6167
6656
|
]
|
|
6168
6657
|
}
|
|
6169
6658
|
),
|
|
6170
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6171
|
-
/* @__PURE__ */ (0,
|
|
6172
|
-
/* @__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 })
|
|
6173
6662
|
] })
|
|
6174
6663
|
] });
|
|
6175
6664
|
}
|
|
6176
|
-
return /* @__PURE__ */ (0,
|
|
6177
|
-
/* @__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: [
|
|
6178
6667
|
label,
|
|
6179
6668
|
" "
|
|
6180
6669
|
] }),
|
|
6181
6670
|
subtitle
|
|
6182
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
6183
|
-
/* @__PURE__ */ (0,
|
|
6671
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(import_jsx_runtime229.Fragment, { children: [
|
|
6672
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6184
6673
|
Box_default,
|
|
6185
6674
|
{
|
|
6186
6675
|
display: "flex",
|
|
@@ -6189,33 +6678,33 @@ var FeatureListItem = ({
|
|
|
6189
6678
|
className,
|
|
6190
6679
|
...rest,
|
|
6191
6680
|
children: [
|
|
6192
|
-
iconVariant && /* @__PURE__ */ (0,
|
|
6681
|
+
iconVariant && /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6193
6682
|
Icon_default,
|
|
6194
6683
|
{
|
|
6195
6684
|
variant: iconVariant,
|
|
6196
6685
|
size: iconSize,
|
|
6197
6686
|
fill: iconColor,
|
|
6198
|
-
css:
|
|
6687
|
+
css: import_react35.css`
|
|
6199
6688
|
flex-shrink: 0;
|
|
6200
6689
|
`
|
|
6201
6690
|
}
|
|
6202
6691
|
),
|
|
6203
|
-
/* @__PURE__ */ (0,
|
|
6692
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(Text_default, { fontWeight: "semibold", size: labelSize, children: label })
|
|
6204
6693
|
]
|
|
6205
6694
|
}
|
|
6206
6695
|
),
|
|
6207
|
-
subtitle && /* @__PURE__ */ (0,
|
|
6208
|
-
/* @__PURE__ */ (0,
|
|
6209
|
-
/* @__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 })
|
|
6210
6699
|
] })
|
|
6211
6700
|
] }) });
|
|
6212
6701
|
};
|
|
6213
6702
|
var FeatureListItem_default = FeatureListItem;
|
|
6214
6703
|
|
|
6215
6704
|
// src/FeatureList/FeatureList.tsx
|
|
6216
|
-
var
|
|
6705
|
+
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6217
6706
|
var FeatureList = ({ heading, items, className }) => {
|
|
6218
|
-
return /* @__PURE__ */ (0,
|
|
6707
|
+
return /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6219
6708
|
Box_default,
|
|
6220
6709
|
{
|
|
6221
6710
|
display: "flex",
|
|
@@ -6223,8 +6712,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6223
6712
|
gap: "var(--spacing-2)",
|
|
6224
6713
|
className,
|
|
6225
6714
|
children: [
|
|
6226
|
-
heading && /* @__PURE__ */ (0,
|
|
6227
|
-
/* @__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}`)) })
|
|
6228
6717
|
]
|
|
6229
6718
|
}
|
|
6230
6719
|
);
|
|
@@ -6232,8 +6721,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
6232
6721
|
var FeatureList_default = FeatureList;
|
|
6233
6722
|
|
|
6234
6723
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
6235
|
-
var
|
|
6236
|
-
var cardContainerStyles =
|
|
6724
|
+
var import_react36 = require("@emotion/react");
|
|
6725
|
+
var cardContainerStyles = import_react36.css`
|
|
6237
6726
|
position: relative;
|
|
6238
6727
|
height: 335px;
|
|
6239
6728
|
|
|
@@ -6241,12 +6730,12 @@ var cardContainerStyles = import_react32.css`
|
|
|
6241
6730
|
height: 480px;
|
|
6242
6731
|
}
|
|
6243
6732
|
`;
|
|
6244
|
-
var cardContentStyles =
|
|
6733
|
+
var cardContentStyles = import_react36.css`
|
|
6245
6734
|
position: relative;
|
|
6246
6735
|
border-radius: var(--spacing-4);
|
|
6247
6736
|
overflow: hidden;
|
|
6248
6737
|
`;
|
|
6249
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
6738
|
+
var getBackgroundWithGradient = (imageUrl) => import_react36.css`
|
|
6250
6739
|
background-image: linear-gradient(
|
|
6251
6740
|
180deg,
|
|
6252
6741
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -6260,7 +6749,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react32.css`
|
|
|
6260
6749
|
`;
|
|
6261
6750
|
|
|
6262
6751
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
6263
|
-
var
|
|
6752
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6264
6753
|
var FieldNoteCard = ({
|
|
6265
6754
|
backgroundImage,
|
|
6266
6755
|
title,
|
|
@@ -6269,14 +6758,14 @@ var FieldNoteCard = ({
|
|
|
6269
6758
|
className,
|
|
6270
6759
|
...rest
|
|
6271
6760
|
}) => {
|
|
6272
|
-
return /* @__PURE__ */ (0,
|
|
6761
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6273
6762
|
Box_default,
|
|
6274
6763
|
{
|
|
6275
6764
|
display: "flex",
|
|
6276
6765
|
css: cardContainerStyles,
|
|
6277
6766
|
className,
|
|
6278
6767
|
...rest,
|
|
6279
|
-
children: /* @__PURE__ */ (0,
|
|
6768
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6280
6769
|
Box_default,
|
|
6281
6770
|
{
|
|
6282
6771
|
display: "flex",
|
|
@@ -6284,9 +6773,9 @@ var FieldNoteCard = ({
|
|
|
6284
6773
|
justifyContent: "flex-end",
|
|
6285
6774
|
p: 6,
|
|
6286
6775
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
6287
|
-
children: /* @__PURE__ */ (0,
|
|
6288
|
-
/* @__PURE__ */ (0,
|
|
6289
|
-
/* @__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 })
|
|
6290
6779
|
] })
|
|
6291
6780
|
}
|
|
6292
6781
|
)
|
|
@@ -6296,14 +6785,14 @@ var FieldNoteCard = ({
|
|
|
6296
6785
|
var FieldNoteCard_default = FieldNoteCard;
|
|
6297
6786
|
|
|
6298
6787
|
// src/Form/FormField.tsx
|
|
6299
|
-
var
|
|
6300
|
-
var
|
|
6301
|
-
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`
|
|
6302
6791
|
display: flex;
|
|
6303
6792
|
flex-direction: column;
|
|
6304
6793
|
gap: ${space["2"]};
|
|
6305
6794
|
`;
|
|
6306
|
-
var labelStyles2 =
|
|
6795
|
+
var labelStyles2 = import_react37.css`
|
|
6307
6796
|
font-family: ${fonts.base};
|
|
6308
6797
|
font-size: ${fontSizes.sm};
|
|
6309
6798
|
font-weight: ${fontWeights.medium};
|
|
@@ -6311,17 +6800,17 @@ var labelStyles2 = import_react33.css`
|
|
|
6311
6800
|
color: ${colors.gray["900"]};
|
|
6312
6801
|
margin-bottom: ${space["1"]};
|
|
6313
6802
|
`;
|
|
6314
|
-
var requiredIndicatorStyles =
|
|
6803
|
+
var requiredIndicatorStyles = import_react37.css`
|
|
6315
6804
|
color: ${colors.red["500"]};
|
|
6316
6805
|
margin-left: ${space["1"]};
|
|
6317
6806
|
`;
|
|
6318
|
-
var helpTextStyles =
|
|
6807
|
+
var helpTextStyles = import_react37.css`
|
|
6319
6808
|
font-family: ${fonts.base};
|
|
6320
6809
|
font-size: ${fontSizes.sm};
|
|
6321
6810
|
line-height: ${lineHeights.tight};
|
|
6322
6811
|
color: ${colors.gray["600"]};
|
|
6323
6812
|
`;
|
|
6324
|
-
var errorTextStyles =
|
|
6813
|
+
var errorTextStyles = import_react37.css`
|
|
6325
6814
|
font-family: ${fonts.base};
|
|
6326
6815
|
font-size: ${fontSizes.sm};
|
|
6327
6816
|
line-height: ${lineHeights.tight};
|
|
@@ -6330,7 +6819,7 @@ var errorTextStyles = import_react33.css`
|
|
|
6330
6819
|
align-items: center;
|
|
6331
6820
|
gap: ${space["1"]};
|
|
6332
6821
|
`;
|
|
6333
|
-
var successTextStyles =
|
|
6822
|
+
var successTextStyles = import_react37.css`
|
|
6334
6823
|
font-family: ${fonts.base};
|
|
6335
6824
|
font-size: ${fontSizes.sm};
|
|
6336
6825
|
line-height: ${lineHeights.tight};
|
|
@@ -6339,7 +6828,7 @@ var successTextStyles = import_react33.css`
|
|
|
6339
6828
|
align-items: center;
|
|
6340
6829
|
gap: ${space["1"]};
|
|
6341
6830
|
`;
|
|
6342
|
-
var visuallyHiddenStyles =
|
|
6831
|
+
var visuallyHiddenStyles = import_react37.css`
|
|
6343
6832
|
position: absolute;
|
|
6344
6833
|
width: 1px;
|
|
6345
6834
|
height: 1px;
|
|
@@ -6364,21 +6853,21 @@ var FormField = ({
|
|
|
6364
6853
|
const hasError = !!error;
|
|
6365
6854
|
const hasSuccess = !!success && !hasError;
|
|
6366
6855
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
6367
|
-
return /* @__PURE__ */ (0,
|
|
6368
|
-
label && /* @__PURE__ */ (0,
|
|
6856
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
6857
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6369
6858
|
"label",
|
|
6370
6859
|
{
|
|
6371
6860
|
htmlFor,
|
|
6372
6861
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
6373
6862
|
children: [
|
|
6374
6863
|
label,
|
|
6375
|
-
required && /* @__PURE__ */ (0,
|
|
6864
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
6376
6865
|
]
|
|
6377
6866
|
}
|
|
6378
6867
|
),
|
|
6379
6868
|
children,
|
|
6380
|
-
hasError && /* @__PURE__ */ (0,
|
|
6381
|
-
/* @__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)(
|
|
6382
6871
|
"path",
|
|
6383
6872
|
{
|
|
6384
6873
|
fillRule: "evenodd",
|
|
@@ -6388,8 +6877,8 @@ var FormField = ({
|
|
|
6388
6877
|
) }),
|
|
6389
6878
|
error
|
|
6390
6879
|
] }),
|
|
6391
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
6392
|
-
/* @__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)(
|
|
6393
6882
|
"path",
|
|
6394
6883
|
{
|
|
6395
6884
|
fillRule: "evenodd",
|
|
@@ -6399,15 +6888,15 @@ var FormField = ({
|
|
|
6399
6888
|
) }),
|
|
6400
6889
|
success
|
|
6401
6890
|
] }),
|
|
6402
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
6891
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime232.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
6403
6892
|
] });
|
|
6404
6893
|
};
|
|
6405
6894
|
|
|
6406
6895
|
// src/Form/Input.tsx
|
|
6407
|
-
var
|
|
6408
|
-
var
|
|
6409
|
-
var
|
|
6410
|
-
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`
|
|
6411
6900
|
position: relative;
|
|
6412
6901
|
width: 100%;
|
|
6413
6902
|
font-family: ${fonts.base};
|
|
@@ -6444,19 +6933,19 @@ var inputStyles = import_react34.css`
|
|
|
6444
6933
|
}
|
|
6445
6934
|
`;
|
|
6446
6935
|
var sizeStyles = {
|
|
6447
|
-
sm:
|
|
6936
|
+
sm: import_react38.css`
|
|
6448
6937
|
padding: ${space["2"]} ${space["3"]};
|
|
6449
6938
|
font-size: ${fontSizes.sm};
|
|
6450
6939
|
line-height: ${lineHeights.tight};
|
|
6451
6940
|
height: ${space["8"]};
|
|
6452
6941
|
`,
|
|
6453
|
-
md:
|
|
6942
|
+
md: import_react38.css`
|
|
6454
6943
|
padding: ${space["3"]} ${space["4"]};
|
|
6455
6944
|
font-size: ${fontSizes.base};
|
|
6456
6945
|
line-height: ${lineHeights.normal};
|
|
6457
6946
|
height: ${space["10"]};
|
|
6458
6947
|
`,
|
|
6459
|
-
lg:
|
|
6948
|
+
lg: import_react38.css`
|
|
6460
6949
|
padding: ${space["4"]} ${space["5"]};
|
|
6461
6950
|
font-size: ${fontSizes.lg};
|
|
6462
6951
|
line-height: ${lineHeights.normal};
|
|
@@ -6464,8 +6953,8 @@ var sizeStyles = {
|
|
|
6464
6953
|
`
|
|
6465
6954
|
};
|
|
6466
6955
|
var variantStyles = {
|
|
6467
|
-
default:
|
|
6468
|
-
error:
|
|
6956
|
+
default: import_react38.css``,
|
|
6957
|
+
error: import_react38.css`
|
|
6469
6958
|
border-color: ${colors.red["500"]};
|
|
6470
6959
|
|
|
6471
6960
|
&:focus {
|
|
@@ -6473,7 +6962,7 @@ var variantStyles = {
|
|
|
6473
6962
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
6474
6963
|
}
|
|
6475
6964
|
`,
|
|
6476
|
-
success:
|
|
6965
|
+
success: import_react38.css`
|
|
6477
6966
|
border-color: ${colors.accent.green};
|
|
6478
6967
|
|
|
6479
6968
|
&:focus {
|
|
@@ -6482,7 +6971,7 @@ var variantStyles = {
|
|
|
6482
6971
|
}
|
|
6483
6972
|
`
|
|
6484
6973
|
};
|
|
6485
|
-
var inputWithIconStyles =
|
|
6974
|
+
var inputWithIconStyles = import_react38.css`
|
|
6486
6975
|
padding-left: ${space["10"]};
|
|
6487
6976
|
|
|
6488
6977
|
&.has-end-icon {
|
|
@@ -6493,7 +6982,7 @@ var inputWithIconStyles = import_react34.css`
|
|
|
6493
6982
|
padding-left: ${space["10"]};
|
|
6494
6983
|
}
|
|
6495
6984
|
`;
|
|
6496
|
-
var iconContainerStyles =
|
|
6985
|
+
var iconContainerStyles = import_react38.css`
|
|
6497
6986
|
position: absolute;
|
|
6498
6987
|
top: 50%;
|
|
6499
6988
|
transform: translateY(-50%);
|
|
@@ -6504,20 +6993,20 @@ var iconContainerStyles = import_react34.css`
|
|
|
6504
6993
|
pointer-events: none;
|
|
6505
6994
|
z-index: 1;
|
|
6506
6995
|
`;
|
|
6507
|
-
var startIconStyles =
|
|
6996
|
+
var startIconStyles = import_react38.css`
|
|
6508
6997
|
${iconContainerStyles}
|
|
6509
6998
|
left: ${space["3"]};
|
|
6510
6999
|
`;
|
|
6511
|
-
var endIconStyles =
|
|
7000
|
+
var endIconStyles = import_react38.css`
|
|
6512
7001
|
${iconContainerStyles}
|
|
6513
7002
|
right: ${space["3"]};
|
|
6514
7003
|
`;
|
|
6515
|
-
var inputWrapperStyles =
|
|
7004
|
+
var inputWrapperStyles = import_react38.css`
|
|
6516
7005
|
position: relative;
|
|
6517
7006
|
display: inline-block;
|
|
6518
7007
|
width: 100%;
|
|
6519
7008
|
`;
|
|
6520
|
-
var Input = (0,
|
|
7009
|
+
var Input = (0, import_react39.forwardRef)(
|
|
6521
7010
|
({
|
|
6522
7011
|
size = "md",
|
|
6523
7012
|
variant = "default",
|
|
@@ -6536,9 +7025,9 @@ var Input = (0, import_react35.forwardRef)(
|
|
|
6536
7025
|
hasEndIcon && "has-end-icon",
|
|
6537
7026
|
className
|
|
6538
7027
|
].filter(Boolean).join(" ");
|
|
6539
|
-
return /* @__PURE__ */ (0,
|
|
6540
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
6541
|
-
/* @__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)(
|
|
6542
7031
|
"input",
|
|
6543
7032
|
{
|
|
6544
7033
|
ref,
|
|
@@ -6555,17 +7044,17 @@ var Input = (0, import_react35.forwardRef)(
|
|
|
6555
7044
|
...props
|
|
6556
7045
|
}
|
|
6557
7046
|
),
|
|
6558
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
7047
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
6559
7048
|
] });
|
|
6560
7049
|
}
|
|
6561
7050
|
);
|
|
6562
7051
|
Input.displayName = "Input";
|
|
6563
7052
|
|
|
6564
7053
|
// src/Form/Select.tsx
|
|
6565
|
-
var
|
|
6566
|
-
var
|
|
6567
|
-
var
|
|
6568
|
-
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`
|
|
6569
7058
|
position: relative;
|
|
6570
7059
|
width: 100%;
|
|
6571
7060
|
font-family: ${fonts.base};
|
|
@@ -6604,19 +7093,19 @@ var selectStyles = import_react36.css`
|
|
|
6604
7093
|
}
|
|
6605
7094
|
`;
|
|
6606
7095
|
var sizeStyles2 = {
|
|
6607
|
-
sm:
|
|
7096
|
+
sm: import_react40.css`
|
|
6608
7097
|
padding: ${space["2"]} ${space["3"]};
|
|
6609
7098
|
font-size: ${fontSizes.sm};
|
|
6610
7099
|
line-height: ${lineHeights.tight};
|
|
6611
7100
|
height: ${space["8"]};
|
|
6612
7101
|
`,
|
|
6613
|
-
md:
|
|
7102
|
+
md: import_react40.css`
|
|
6614
7103
|
padding: ${space["3"]} ${space["4"]};
|
|
6615
7104
|
font-size: ${fontSizes.base};
|
|
6616
7105
|
line-height: ${lineHeights.normal};
|
|
6617
7106
|
height: ${space["10"]};
|
|
6618
7107
|
`,
|
|
6619
|
-
lg:
|
|
7108
|
+
lg: import_react40.css`
|
|
6620
7109
|
padding: ${space["4"]} ${space["5"]};
|
|
6621
7110
|
font-size: ${fontSizes.lg};
|
|
6622
7111
|
line-height: ${lineHeights.normal};
|
|
@@ -6624,8 +7113,8 @@ var sizeStyles2 = {
|
|
|
6624
7113
|
`
|
|
6625
7114
|
};
|
|
6626
7115
|
var variantStyles2 = {
|
|
6627
|
-
default:
|
|
6628
|
-
error:
|
|
7116
|
+
default: import_react40.css``,
|
|
7117
|
+
error: import_react40.css`
|
|
6629
7118
|
border-color: ${colors.red["500"]};
|
|
6630
7119
|
|
|
6631
7120
|
&:focus {
|
|
@@ -6633,7 +7122,7 @@ var variantStyles2 = {
|
|
|
6633
7122
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
6634
7123
|
}
|
|
6635
7124
|
`,
|
|
6636
|
-
success:
|
|
7125
|
+
success: import_react40.css`
|
|
6637
7126
|
border-color: ${colors.accent.green};
|
|
6638
7127
|
|
|
6639
7128
|
&:focus {
|
|
@@ -6642,7 +7131,7 @@ var variantStyles2 = {
|
|
|
6642
7131
|
}
|
|
6643
7132
|
`
|
|
6644
7133
|
};
|
|
6645
|
-
var optionStyles =
|
|
7134
|
+
var optionStyles = import_react40.css`
|
|
6646
7135
|
background-color: ${colors.light["100"]};
|
|
6647
7136
|
color: ${colors.gray["900"]};
|
|
6648
7137
|
|
|
@@ -6651,7 +7140,7 @@ var optionStyles = import_react36.css`
|
|
|
6651
7140
|
background-color: ${colors.gray["100"]};
|
|
6652
7141
|
}
|
|
6653
7142
|
`;
|
|
6654
|
-
var Select = (0,
|
|
7143
|
+
var Select = (0, import_react41.forwardRef)(
|
|
6655
7144
|
({
|
|
6656
7145
|
size = "md",
|
|
6657
7146
|
variant = "default",
|
|
@@ -6661,7 +7150,7 @@ var Select = (0, import_react37.forwardRef)(
|
|
|
6661
7150
|
className = "",
|
|
6662
7151
|
...props
|
|
6663
7152
|
}, ref) => {
|
|
6664
|
-
return /* @__PURE__ */ (0,
|
|
7153
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
6665
7154
|
"select",
|
|
6666
7155
|
{
|
|
6667
7156
|
ref,
|
|
@@ -6670,8 +7159,8 @@ var Select = (0, import_react37.forwardRef)(
|
|
|
6670
7159
|
className,
|
|
6671
7160
|
...props,
|
|
6672
7161
|
children: [
|
|
6673
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
6674
|
-
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)(
|
|
6675
7164
|
"option",
|
|
6676
7165
|
{
|
|
6677
7166
|
value: option.value,
|
|
@@ -6689,10 +7178,10 @@ var Select = (0, import_react37.forwardRef)(
|
|
|
6689
7178
|
Select.displayName = "Select";
|
|
6690
7179
|
|
|
6691
7180
|
// src/Grid/Column.tsx
|
|
6692
|
-
var
|
|
7181
|
+
var import_react43 = require("@emotion/react");
|
|
6693
7182
|
|
|
6694
7183
|
// src/Grid/utils.ts
|
|
6695
|
-
var
|
|
7184
|
+
var import_react42 = require("@emotion/react");
|
|
6696
7185
|
var LayoutTokens = {
|
|
6697
7186
|
containers: {
|
|
6698
7187
|
sm: screens.sm,
|
|
@@ -6732,11 +7221,11 @@ var getResponsiveValue = (value) => {
|
|
|
6732
7221
|
var generateGridColumns = (columns) => {
|
|
6733
7222
|
const baseColumns = getResponsiveValue(columns);
|
|
6734
7223
|
if (typeof columns === "number") {
|
|
6735
|
-
return
|
|
7224
|
+
return import_react42.css`
|
|
6736
7225
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
6737
7226
|
`;
|
|
6738
7227
|
}
|
|
6739
|
-
return
|
|
7228
|
+
return import_react42.css`
|
|
6740
7229
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
6741
7230
|
|
|
6742
7231
|
${media.sm} {
|
|
@@ -6768,11 +7257,11 @@ var generateGridColumns = (columns) => {
|
|
|
6768
7257
|
var generateGapStyles = (gap2) => {
|
|
6769
7258
|
const baseGap = getResponsiveValue(gap2);
|
|
6770
7259
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
6771
|
-
return
|
|
7260
|
+
return import_react42.css`
|
|
6772
7261
|
gap: ${space[gap2]};
|
|
6773
7262
|
`;
|
|
6774
7263
|
}
|
|
6775
|
-
return
|
|
7264
|
+
return import_react42.css`
|
|
6776
7265
|
gap: ${space[baseGap]};
|
|
6777
7266
|
|
|
6778
7267
|
${media.sm} {
|
|
@@ -6795,11 +7284,11 @@ var generateGapStyles = (gap2) => {
|
|
|
6795
7284
|
var generateRowGapStyles = (rowGap) => {
|
|
6796
7285
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
6797
7286
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
6798
|
-
return
|
|
7287
|
+
return import_react42.css`
|
|
6799
7288
|
row-gap: ${space[rowGap]};
|
|
6800
7289
|
`;
|
|
6801
7290
|
}
|
|
6802
|
-
return
|
|
7291
|
+
return import_react42.css`
|
|
6803
7292
|
row-gap: ${space[baseRowGap]};
|
|
6804
7293
|
|
|
6805
7294
|
${media.sm} {
|
|
@@ -6822,11 +7311,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
6822
7311
|
var generateColumnGapStyles = (columnGap) => {
|
|
6823
7312
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
6824
7313
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
6825
|
-
return
|
|
7314
|
+
return import_react42.css`
|
|
6826
7315
|
column-gap: ${space[columnGap]};
|
|
6827
7316
|
`;
|
|
6828
7317
|
}
|
|
6829
|
-
return
|
|
7318
|
+
return import_react42.css`
|
|
6830
7319
|
column-gap: ${space[baseColumnGap]};
|
|
6831
7320
|
|
|
6832
7321
|
${media.sm} {
|
|
@@ -6849,11 +7338,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
6849
7338
|
var generateColumnSpan = (span) => {
|
|
6850
7339
|
const baseSpan = getResponsiveValue(span);
|
|
6851
7340
|
if (typeof span === "string" || typeof span === "number") {
|
|
6852
|
-
return
|
|
7341
|
+
return import_react42.css`
|
|
6853
7342
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
6854
7343
|
`;
|
|
6855
7344
|
}
|
|
6856
|
-
return
|
|
7345
|
+
return import_react42.css`
|
|
6857
7346
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
6858
7347
|
|
|
6859
7348
|
${media.sm} {
|
|
@@ -6876,11 +7365,11 @@ var generateColumnSpan = (span) => {
|
|
|
6876
7365
|
var generateAlignItems = (alignItems) => {
|
|
6877
7366
|
const baseAlign = getResponsiveValue(alignItems);
|
|
6878
7367
|
if (typeof alignItems === "string") {
|
|
6879
|
-
return
|
|
7368
|
+
return import_react42.css`
|
|
6880
7369
|
align-items: ${alignItems};
|
|
6881
7370
|
`;
|
|
6882
7371
|
}
|
|
6883
|
-
return
|
|
7372
|
+
return import_react42.css`
|
|
6884
7373
|
align-items: ${baseAlign};
|
|
6885
7374
|
|
|
6886
7375
|
${media.sm} {
|
|
@@ -6903,11 +7392,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
6903
7392
|
var generateJustifyItems = (justifyItems) => {
|
|
6904
7393
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
6905
7394
|
if (typeof justifyItems === "string") {
|
|
6906
|
-
return
|
|
7395
|
+
return import_react42.css`
|
|
6907
7396
|
justify-items: ${justifyItems};
|
|
6908
7397
|
`;
|
|
6909
7398
|
}
|
|
6910
|
-
return
|
|
7399
|
+
return import_react42.css`
|
|
6911
7400
|
justify-items: ${baseJustify};
|
|
6912
7401
|
|
|
6913
7402
|
${media.sm} {
|
|
@@ -6929,7 +7418,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
6929
7418
|
};
|
|
6930
7419
|
|
|
6931
7420
|
// src/Grid/Column.tsx
|
|
6932
|
-
var
|
|
7421
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
6933
7422
|
var Column = ({
|
|
6934
7423
|
span,
|
|
6935
7424
|
start,
|
|
@@ -6942,30 +7431,30 @@ var Column = ({
|
|
|
6942
7431
|
}) => {
|
|
6943
7432
|
const columnStyles = [
|
|
6944
7433
|
span && generateColumnSpan(span),
|
|
6945
|
-
start &&
|
|
7434
|
+
start && import_react43.css`
|
|
6946
7435
|
grid-column-start: ${start};
|
|
6947
7436
|
`,
|
|
6948
|
-
end &&
|
|
7437
|
+
end && import_react43.css`
|
|
6949
7438
|
grid-column-end: ${end};
|
|
6950
7439
|
`,
|
|
6951
|
-
row &&
|
|
7440
|
+
row && import_react43.css`
|
|
6952
7441
|
grid-row: ${row};
|
|
6953
7442
|
`,
|
|
6954
|
-
rowSpan &&
|
|
7443
|
+
rowSpan && import_react43.css`
|
|
6955
7444
|
grid-row: span ${rowSpan};
|
|
6956
7445
|
`,
|
|
6957
|
-
area &&
|
|
7446
|
+
area && import_react43.css`
|
|
6958
7447
|
grid-area: ${area};
|
|
6959
7448
|
`
|
|
6960
7449
|
].filter(Boolean);
|
|
6961
|
-
return /* @__PURE__ */ (0,
|
|
7450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
6962
7451
|
};
|
|
6963
7452
|
var Column_default = Column;
|
|
6964
7453
|
|
|
6965
7454
|
// src/Grid/Grid.tsx
|
|
6966
|
-
var
|
|
6967
|
-
var
|
|
6968
|
-
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`
|
|
6969
7458
|
display: grid;
|
|
6970
7459
|
`;
|
|
6971
7460
|
var Grid = ({
|
|
@@ -6990,27 +7479,27 @@ var Grid = ({
|
|
|
6990
7479
|
columnGap && generateColumnGapStyles(columnGap),
|
|
6991
7480
|
alignItems && generateAlignItems(alignItems),
|
|
6992
7481
|
justifyItems && generateJustifyItems(justifyItems),
|
|
6993
|
-
autoRows &&
|
|
7482
|
+
autoRows && import_react44.css`
|
|
6994
7483
|
grid-auto-rows: ${autoRows};
|
|
6995
7484
|
`,
|
|
6996
|
-
autoColumns &&
|
|
7485
|
+
autoColumns && import_react44.css`
|
|
6997
7486
|
grid-auto-columns: ${autoColumns};
|
|
6998
7487
|
`,
|
|
6999
|
-
templateAreas &&
|
|
7488
|
+
templateAreas && import_react44.css`
|
|
7000
7489
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
7001
7490
|
`,
|
|
7002
|
-
justifyContent &&
|
|
7491
|
+
justifyContent && import_react44.css`
|
|
7003
7492
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
7004
7493
|
`
|
|
7005
7494
|
].filter(Boolean);
|
|
7006
|
-
return /* @__PURE__ */ (0,
|
|
7495
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
7007
7496
|
};
|
|
7008
7497
|
var Grid_default = Grid;
|
|
7009
7498
|
|
|
7010
7499
|
// src/Grid/GridContainer.tsx
|
|
7011
|
-
var
|
|
7012
|
-
var
|
|
7013
|
-
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`
|
|
7014
7503
|
width: 100%;
|
|
7015
7504
|
margin: 0 auto;
|
|
7016
7505
|
padding-left: 1rem;
|
|
@@ -7018,14 +7507,14 @@ var baseContainerStyles = import_react41.css`
|
|
|
7018
7507
|
`;
|
|
7019
7508
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
7020
7509
|
if (maxWidth === "full") {
|
|
7021
|
-
return
|
|
7510
|
+
return import_react45.css`
|
|
7022
7511
|
max-width: 100%;
|
|
7023
7512
|
padding-left: 0;
|
|
7024
7513
|
padding-right: 0;
|
|
7025
7514
|
`;
|
|
7026
7515
|
}
|
|
7027
7516
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
7028
|
-
return
|
|
7517
|
+
return import_react45.css`
|
|
7029
7518
|
max-width: ${width2};
|
|
7030
7519
|
|
|
7031
7520
|
${media.sm} {
|
|
@@ -7054,13 +7543,13 @@ var GridContainer = ({
|
|
|
7054
7543
|
baseContainerStyles,
|
|
7055
7544
|
generateMaxWidthStyles(maxWidth)
|
|
7056
7545
|
];
|
|
7057
|
-
return /* @__PURE__ */ (0,
|
|
7546
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
7058
7547
|
};
|
|
7059
7548
|
var GridContainer_default = GridContainer;
|
|
7060
7549
|
|
|
7061
7550
|
// src/HuntCard/HuntCard.styles.ts
|
|
7062
|
-
var
|
|
7063
|
-
var cardContainerStyles2 =
|
|
7551
|
+
var import_react46 = require("@emotion/react");
|
|
7552
|
+
var cardContainerStyles2 = import_react46.css`
|
|
7064
7553
|
position: relative;
|
|
7065
7554
|
height: 335px;
|
|
7066
7555
|
|
|
@@ -7068,12 +7557,12 @@ var cardContainerStyles2 = import_react42.css`
|
|
|
7068
7557
|
height: 480px;
|
|
7069
7558
|
}
|
|
7070
7559
|
`;
|
|
7071
|
-
var cardContentStyles2 =
|
|
7560
|
+
var cardContentStyles2 = import_react46.css`
|
|
7072
7561
|
position: relative;
|
|
7073
7562
|
border-radius: var(--spacing-4);
|
|
7074
7563
|
overflow: hidden;
|
|
7075
7564
|
`;
|
|
7076
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
7565
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react46.css`
|
|
7077
7566
|
background-image: linear-gradient(
|
|
7078
7567
|
180deg,
|
|
7079
7568
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -7087,7 +7576,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react42.css`
|
|
|
7087
7576
|
`;
|
|
7088
7577
|
|
|
7089
7578
|
// src/HuntCard/HuntCard.tsx
|
|
7090
|
-
var
|
|
7579
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7091
7580
|
var HuntCard = ({
|
|
7092
7581
|
backgroundImage,
|
|
7093
7582
|
title,
|
|
@@ -7096,14 +7585,14 @@ var HuntCard = ({
|
|
|
7096
7585
|
className,
|
|
7097
7586
|
...rest
|
|
7098
7587
|
}) => {
|
|
7099
|
-
return /* @__PURE__ */ (0,
|
|
7588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
7100
7589
|
Box_default,
|
|
7101
7590
|
{
|
|
7102
7591
|
display: "flex",
|
|
7103
7592
|
css: cardContainerStyles2,
|
|
7104
7593
|
className,
|
|
7105
7594
|
...rest,
|
|
7106
|
-
children: /* @__PURE__ */ (0,
|
|
7595
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
7107
7596
|
Box_default,
|
|
7108
7597
|
{
|
|
7109
7598
|
display: "flex",
|
|
@@ -7111,9 +7600,9 @@ var HuntCard = ({
|
|
|
7111
7600
|
justifyContent: "flex-end",
|
|
7112
7601
|
p: 6,
|
|
7113
7602
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
7114
|
-
children: /* @__PURE__ */ (0,
|
|
7115
|
-
/* @__PURE__ */ (0,
|
|
7116
|
-
/* @__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 })
|
|
7117
7606
|
] })
|
|
7118
7607
|
}
|
|
7119
7608
|
)
|
|
@@ -7123,9 +7612,9 @@ var HuntCard = ({
|
|
|
7123
7612
|
var HuntCard_default = HuntCard;
|
|
7124
7613
|
|
|
7125
7614
|
// src/InfoBox/InfoBox.tsx
|
|
7126
|
-
var
|
|
7615
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
7127
7616
|
var InfoBox = ({ heading, features, className }) => {
|
|
7128
|
-
return /* @__PURE__ */ (0,
|
|
7617
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
|
|
7129
7618
|
Box_default,
|
|
7130
7619
|
{
|
|
7131
7620
|
display: "flex",
|
|
@@ -7134,8 +7623,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7134
7623
|
className,
|
|
7135
7624
|
color: "var(--text-primary)",
|
|
7136
7625
|
children: [
|
|
7137
|
-
/* @__PURE__ */ (0,
|
|
7138
|
-
/* @__PURE__ */ (0,
|
|
7626
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
7627
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7139
7628
|
Box_default,
|
|
7140
7629
|
{
|
|
7141
7630
|
display: "flex",
|
|
@@ -7145,7 +7634,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7145
7634
|
borderRadius: "var(--radius-lg)",
|
|
7146
7635
|
bg: "var(--surface-neutral)",
|
|
7147
7636
|
className,
|
|
7148
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
7637
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7149
7638
|
FeatureList_default,
|
|
7150
7639
|
{
|
|
7151
7640
|
heading: section.heading,
|
|
@@ -7162,7 +7651,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
7162
7651
|
var InfoBox_default = InfoBox;
|
|
7163
7652
|
|
|
7164
7653
|
// src/StarRating/StarRating.tsx
|
|
7165
|
-
var
|
|
7654
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7166
7655
|
var starSize = {
|
|
7167
7656
|
sm: {
|
|
7168
7657
|
size: "medium",
|
|
@@ -7181,7 +7670,7 @@ var StarRating = ({
|
|
|
7181
7670
|
const stars = [];
|
|
7182
7671
|
for (let i = 1; i <= 5; i++) {
|
|
7183
7672
|
stars.push(
|
|
7184
|
-
/* @__PURE__ */ (0,
|
|
7673
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
7185
7674
|
Icon_default,
|
|
7186
7675
|
{
|
|
7187
7676
|
variant: "StarSolid",
|
|
@@ -7192,7 +7681,7 @@ var StarRating = ({
|
|
|
7192
7681
|
)
|
|
7193
7682
|
);
|
|
7194
7683
|
}
|
|
7195
|
-
return /* @__PURE__ */ (0,
|
|
7684
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
7196
7685
|
Box_default,
|
|
7197
7686
|
{
|
|
7198
7687
|
className,
|
|
@@ -7206,7 +7695,7 @@ var StarRating = ({
|
|
|
7206
7695
|
var StarRating_default = StarRating;
|
|
7207
7696
|
|
|
7208
7697
|
// src/UserCard/UserCard.tsx
|
|
7209
|
-
var
|
|
7698
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7210
7699
|
var UserCard = ({
|
|
7211
7700
|
avatarSrc,
|
|
7212
7701
|
title,
|
|
@@ -7216,7 +7705,7 @@ var UserCard = ({
|
|
|
7216
7705
|
isVerified = false,
|
|
7217
7706
|
className
|
|
7218
7707
|
}) => {
|
|
7219
|
-
return /* @__PURE__ */ (0,
|
|
7708
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7220
7709
|
Box_default,
|
|
7221
7710
|
{
|
|
7222
7711
|
display: "flex",
|
|
@@ -7225,8 +7714,8 @@ var UserCard = ({
|
|
|
7225
7714
|
gap: "var(--spacing-4)",
|
|
7226
7715
|
className,
|
|
7227
7716
|
children: [
|
|
7228
|
-
/* @__PURE__ */ (0,
|
|
7229
|
-
/* @__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)(
|
|
7230
7719
|
Avatar_default,
|
|
7231
7720
|
{
|
|
7232
7721
|
type: avatarSrc ? "image" : "text",
|
|
@@ -7235,13 +7724,13 @@ var UserCard = ({
|
|
|
7235
7724
|
alt: `${title}'s avatar`
|
|
7236
7725
|
}
|
|
7237
7726
|
),
|
|
7238
|
-
/* @__PURE__ */ (0,
|
|
7239
|
-
/* @__PURE__ */ (0,
|
|
7240
|
-
subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ (0,
|
|
7241
|
-
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 })
|
|
7242
7731
|
] })
|
|
7243
7732
|
] }),
|
|
7244
|
-
isVerified && /* @__PURE__ */ (0,
|
|
7733
|
+
isVerified && /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7245
7734
|
Box_default,
|
|
7246
7735
|
{
|
|
7247
7736
|
display: "flex",
|
|
@@ -7250,8 +7739,8 @@ var UserCard = ({
|
|
|
7250
7739
|
gap: "var(--spacing-1)",
|
|
7251
7740
|
flexShrink: 0,
|
|
7252
7741
|
children: [
|
|
7253
|
-
/* @__PURE__ */ (0,
|
|
7254
|
-
/* @__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" })
|
|
7255
7744
|
]
|
|
7256
7745
|
}
|
|
7257
7746
|
)
|
|
@@ -7262,19 +7751,19 @@ var UserCard = ({
|
|
|
7262
7751
|
var UserCard_default = UserCard;
|
|
7263
7752
|
|
|
7264
7753
|
// src/LandownerProfile/components/ProfileSubtitle.tsx
|
|
7265
|
-
var
|
|
7754
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7266
7755
|
var ProfileSubtitle = ({
|
|
7267
7756
|
yearsHosting = 1,
|
|
7268
7757
|
featureReviewItem
|
|
7269
7758
|
}) => {
|
|
7270
|
-
return /* @__PURE__ */ (0,
|
|
7271
|
-
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: [
|
|
7272
7761
|
yearsHosting,
|
|
7273
7762
|
" ",
|
|
7274
7763
|
yearsHosting === 1 ? "Year" : "Years",
|
|
7275
7764
|
" Hosting"
|
|
7276
7765
|
] }),
|
|
7277
|
-
featureReviewItem && /* @__PURE__ */ (0,
|
|
7766
|
+
featureReviewItem && /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(FeatureListItem_default, { ...featureReviewItem })
|
|
7278
7767
|
] });
|
|
7279
7768
|
};
|
|
7280
7769
|
var ProfileSubtitle_default = ProfileSubtitle;
|
|
@@ -7289,7 +7778,7 @@ var hasTextContent = (html) => {
|
|
|
7289
7778
|
};
|
|
7290
7779
|
|
|
7291
7780
|
// src/LandownerProfile/LandownerProfile.tsx
|
|
7292
|
-
var
|
|
7781
|
+
var import_jsx_runtime243 = require("@emotion/react/jsx-runtime");
|
|
7293
7782
|
var LandownerProfile = ({
|
|
7294
7783
|
heading,
|
|
7295
7784
|
avatarSrc,
|
|
@@ -7313,7 +7802,7 @@ var LandownerProfile = ({
|
|
|
7313
7802
|
iconVariant: "Bolt",
|
|
7314
7803
|
label: `Response Time: ${responseTime}`
|
|
7315
7804
|
} : void 0;
|
|
7316
|
-
return /* @__PURE__ */ (0,
|
|
7805
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
7317
7806
|
Box_default,
|
|
7318
7807
|
{
|
|
7319
7808
|
display: "flex",
|
|
@@ -7322,8 +7811,8 @@ var LandownerProfile = ({
|
|
|
7322
7811
|
color: "var(--text-primary)",
|
|
7323
7812
|
className,
|
|
7324
7813
|
children: [
|
|
7325
|
-
heading && /* @__PURE__ */ (0,
|
|
7326
|
-
/* @__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)(
|
|
7327
7816
|
Box_default,
|
|
7328
7817
|
{
|
|
7329
7818
|
display: "flex",
|
|
@@ -7333,12 +7822,12 @@ var LandownerProfile = ({
|
|
|
7333
7822
|
p: "var(--spacing-4)",
|
|
7334
7823
|
borderRadius: "var(--radius-lg)",
|
|
7335
7824
|
children: [
|
|
7336
|
-
/* @__PURE__ */ (0,
|
|
7825
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7337
7826
|
UserCard_default,
|
|
7338
7827
|
{
|
|
7339
7828
|
avatarSrc,
|
|
7340
7829
|
title: name,
|
|
7341
|
-
subtitle: /* @__PURE__ */ (0,
|
|
7830
|
+
subtitle: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7342
7831
|
ProfileSubtitle_default,
|
|
7343
7832
|
{
|
|
7344
7833
|
yearsHosting,
|
|
@@ -7349,9 +7838,9 @@ var LandownerProfile = ({
|
|
|
7349
7838
|
isVerified
|
|
7350
7839
|
}
|
|
7351
7840
|
),
|
|
7352
|
-
hasTextContent(bio) && !!bio && /* @__PURE__ */ (0,
|
|
7353
|
-
/* @__PURE__ */ (0,
|
|
7354
|
-
/* @__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)(
|
|
7355
7844
|
Text_default,
|
|
7356
7845
|
{
|
|
7357
7846
|
dangerouslySetInnerHTML: {
|
|
@@ -7360,14 +7849,14 @@ var LandownerProfile = ({
|
|
|
7360
7849
|
}
|
|
7361
7850
|
)
|
|
7362
7851
|
] }),
|
|
7363
|
-
(!!responseRateFeature || !!responseTimeFeature) && /* @__PURE__ */ (0,
|
|
7364
|
-
/* @__PURE__ */ (0,
|
|
7365
|
-
/* @__PURE__ */ (0,
|
|
7366
|
-
!!responseRateFeature && /* @__PURE__ */ (0,
|
|
7367
|
-
!!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 })
|
|
7368
7857
|
] })
|
|
7369
7858
|
] }),
|
|
7370
|
-
/* @__PURE__ */ (0,
|
|
7859
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Box_default, { alignSelf: "flex-start", children: /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7371
7860
|
Button_default,
|
|
7372
7861
|
{
|
|
7373
7862
|
variant: "secondary",
|
|
@@ -7386,11 +7875,11 @@ var LandownerProfile = ({
|
|
|
7386
7875
|
var LandownerProfile_default = LandownerProfile;
|
|
7387
7876
|
|
|
7388
7877
|
// src/ListingChat/ListingChat.tsx
|
|
7389
|
-
var
|
|
7878
|
+
var import_react48 = require("react");
|
|
7390
7879
|
|
|
7391
7880
|
// src/ListingChat/ListingChat.styles.ts
|
|
7392
|
-
var
|
|
7393
|
-
var containerStyles2 =
|
|
7881
|
+
var import_react47 = require("@emotion/react");
|
|
7882
|
+
var containerStyles2 = import_react47.css`
|
|
7394
7883
|
display: flex;
|
|
7395
7884
|
flex-direction: column;
|
|
7396
7885
|
gap: var(--spacing-4);
|
|
@@ -7398,13 +7887,13 @@ var containerStyles2 = import_react43.css`
|
|
|
7398
7887
|
border-radius: var(--radius-lg);
|
|
7399
7888
|
background: var(--surface-success);
|
|
7400
7889
|
`;
|
|
7401
|
-
var headerStyles =
|
|
7890
|
+
var headerStyles = import_react47.css`
|
|
7402
7891
|
display: flex;
|
|
7403
7892
|
align-items: flex-start;
|
|
7404
7893
|
justify-content: space-between;
|
|
7405
7894
|
gap: var(--spacing-2);
|
|
7406
7895
|
`;
|
|
7407
|
-
var chipsContainerStyles =
|
|
7896
|
+
var chipsContainerStyles = import_react47.css`
|
|
7408
7897
|
display: flex;
|
|
7409
7898
|
flex-wrap: wrap;
|
|
7410
7899
|
gap: var(--spacing-4);
|
|
@@ -7417,15 +7906,15 @@ var chipsContainerStyles = import_react43.css`
|
|
|
7417
7906
|
cursor: pointer;
|
|
7418
7907
|
}
|
|
7419
7908
|
`;
|
|
7420
|
-
var textAreaStyles =
|
|
7909
|
+
var textAreaStyles = import_react47.css`
|
|
7421
7910
|
min-height: 62px;
|
|
7422
7911
|
`;
|
|
7423
|
-
var inputWrapperStyles2 =
|
|
7912
|
+
var inputWrapperStyles2 = import_react47.css`
|
|
7424
7913
|
position: relative;
|
|
7425
7914
|
`;
|
|
7426
7915
|
|
|
7427
7916
|
// src/ListingChat/ListingChat.tsx
|
|
7428
|
-
var
|
|
7917
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
7429
7918
|
var ListingChat = ({
|
|
7430
7919
|
onSubmit,
|
|
7431
7920
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -7435,15 +7924,15 @@ var ListingChat = ({
|
|
|
7435
7924
|
disabled = false,
|
|
7436
7925
|
...rest
|
|
7437
7926
|
}) => {
|
|
7438
|
-
const [value, setValue] = (0,
|
|
7439
|
-
const handleSubmit = (0,
|
|
7927
|
+
const [value, setValue] = (0, import_react48.useState)("");
|
|
7928
|
+
const handleSubmit = (0, import_react48.useCallback)(() => {
|
|
7440
7929
|
const trimmed = value.trim();
|
|
7441
7930
|
if (!trimmed)
|
|
7442
7931
|
return;
|
|
7443
7932
|
onSubmit(trimmed);
|
|
7444
7933
|
setValue("");
|
|
7445
7934
|
}, [onSubmit, value]);
|
|
7446
|
-
const handleTagClick = (0,
|
|
7935
|
+
const handleTagClick = (0, import_react48.useCallback)(
|
|
7447
7936
|
(tag) => () => {
|
|
7448
7937
|
const trimmed = tag.trim();
|
|
7449
7938
|
if (!trimmed)
|
|
@@ -7452,18 +7941,18 @@ var ListingChat = ({
|
|
|
7452
7941
|
},
|
|
7453
7942
|
[onSubmit]
|
|
7454
7943
|
);
|
|
7455
|
-
return /* @__PURE__ */ (0,
|
|
7456
|
-
/* @__PURE__ */ (0,
|
|
7457
|
-
/* @__PURE__ */ (0,
|
|
7458
|
-
/* @__PURE__ */ (0,
|
|
7459
|
-
/* @__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." })
|
|
7460
7949
|
] }),
|
|
7461
|
-
/* @__PURE__ */ (0,
|
|
7462
|
-
/* @__PURE__ */ (0,
|
|
7463
|
-
/* @__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" })
|
|
7464
7953
|
] })
|
|
7465
7954
|
] }),
|
|
7466
|
-
/* @__PURE__ */ (0,
|
|
7955
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
7467
7956
|
TextArea,
|
|
7468
7957
|
{
|
|
7469
7958
|
rows: 1,
|
|
@@ -7478,14 +7967,14 @@ var ListingChat = ({
|
|
|
7478
7967
|
css: textAreaStyles
|
|
7479
7968
|
}
|
|
7480
7969
|
) }),
|
|
7481
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
7482
|
-
/* @__PURE__ */ (0,
|
|
7483
|
-
/* @__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)(
|
|
7484
7973
|
"button",
|
|
7485
7974
|
{
|
|
7486
7975
|
onClick: handleTagClick(tag),
|
|
7487
7976
|
disabled,
|
|
7488
|
-
children: /* @__PURE__ */ (0,
|
|
7977
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(TagChip_default, { children: tag })
|
|
7489
7978
|
},
|
|
7490
7979
|
tag
|
|
7491
7980
|
)) })
|
|
@@ -7495,11 +7984,11 @@ var ListingChat = ({
|
|
|
7495
7984
|
var ListingChat_default = ListingChat;
|
|
7496
7985
|
|
|
7497
7986
|
// src/Logo/Logo.tsx
|
|
7498
|
-
var
|
|
7987
|
+
var import_react49 = require("@emotion/react");
|
|
7499
7988
|
|
|
7500
7989
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
7501
|
-
var
|
|
7502
|
-
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)(
|
|
7503
7992
|
"svg",
|
|
7504
7993
|
{
|
|
7505
7994
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7507,14 +7996,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7507
7996
|
fill: "none",
|
|
7508
7997
|
...props,
|
|
7509
7998
|
children: [
|
|
7510
|
-
/* @__PURE__ */ (0,
|
|
7999
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7511
8000
|
"path",
|
|
7512
8001
|
{
|
|
7513
8002
|
fill: "#000",
|
|
7514
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"
|
|
7515
8004
|
}
|
|
7516
8005
|
) }),
|
|
7517
|
-
/* @__PURE__ */ (0,
|
|
8006
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7518
8007
|
"path",
|
|
7519
8008
|
{
|
|
7520
8009
|
fill: "#FAD44E",
|
|
@@ -7523,14 +8012,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7523
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"
|
|
7524
8013
|
}
|
|
7525
8014
|
),
|
|
7526
|
-
/* @__PURE__ */ (0,
|
|
8015
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7527
8016
|
"path",
|
|
7528
8017
|
{
|
|
7529
8018
|
fill: "#fff",
|
|
7530
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"
|
|
7531
8020
|
}
|
|
7532
8021
|
),
|
|
7533
|
-
/* @__PURE__ */ (0,
|
|
8022
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime245.jsxs)(
|
|
7534
8023
|
"filter",
|
|
7535
8024
|
{
|
|
7536
8025
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -7541,8 +8030,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7541
8030
|
colorInterpolationFilters: "sRGB",
|
|
7542
8031
|
filterUnits: "userSpaceOnUse",
|
|
7543
8032
|
children: [
|
|
7544
|
-
/* @__PURE__ */ (0,
|
|
7545
|
-
/* @__PURE__ */ (0,
|
|
8033
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
8034
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7546
8035
|
"feColorMatrix",
|
|
7547
8036
|
{
|
|
7548
8037
|
in: "SourceAlpha",
|
|
@@ -7550,18 +8039,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7550
8039
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
7551
8040
|
}
|
|
7552
8041
|
),
|
|
7553
|
-
/* @__PURE__ */ (0,
|
|
7554
|
-
/* @__PURE__ */ (0,
|
|
7555
|
-
/* @__PURE__ */ (0,
|
|
7556
|
-
/* @__PURE__ */ (0,
|
|
7557
|
-
/* @__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)(
|
|
7558
8047
|
"feBlend",
|
|
7559
8048
|
{
|
|
7560
8049
|
in2: "BackgroundImageFix",
|
|
7561
8050
|
result: "effect1_dropShadow_257_2540"
|
|
7562
8051
|
}
|
|
7563
8052
|
),
|
|
7564
|
-
/* @__PURE__ */ (0,
|
|
8053
|
+
/* @__PURE__ */ (0, import_jsx_runtime245.jsx)(
|
|
7565
8054
|
"feBlend",
|
|
7566
8055
|
{
|
|
7567
8056
|
in: "SourceGraphic",
|
|
@@ -7578,8 +8067,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime243.
|
|
|
7578
8067
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
7579
8068
|
|
|
7580
8069
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
7581
|
-
var
|
|
7582
|
-
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)(
|
|
7583
8072
|
"svg",
|
|
7584
8073
|
{
|
|
7585
8074
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7587,14 +8076,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7587
8076
|
fill: "none",
|
|
7588
8077
|
...props,
|
|
7589
8078
|
children: [
|
|
7590
|
-
/* @__PURE__ */ (0,
|
|
8079
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7591
8080
|
"path",
|
|
7592
8081
|
{
|
|
7593
8082
|
fill: "#000",
|
|
7594
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"
|
|
7595
8084
|
}
|
|
7596
8085
|
) }),
|
|
7597
|
-
/* @__PURE__ */ (0,
|
|
8086
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7598
8087
|
"path",
|
|
7599
8088
|
{
|
|
7600
8089
|
fill: "#FAD44E",
|
|
@@ -7603,14 +8092,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7603
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"
|
|
7604
8093
|
}
|
|
7605
8094
|
),
|
|
7606
|
-
/* @__PURE__ */ (0,
|
|
8095
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7607
8096
|
"path",
|
|
7608
8097
|
{
|
|
7609
8098
|
fill: "#1A202C",
|
|
7610
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"
|
|
7611
8100
|
}
|
|
7612
8101
|
),
|
|
7613
|
-
/* @__PURE__ */ (0,
|
|
8102
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime246.jsxs)(
|
|
7614
8103
|
"filter",
|
|
7615
8104
|
{
|
|
7616
8105
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -7621,8 +8110,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7621
8110
|
colorInterpolationFilters: "sRGB",
|
|
7622
8111
|
filterUnits: "userSpaceOnUse",
|
|
7623
8112
|
children: [
|
|
7624
|
-
/* @__PURE__ */ (0,
|
|
7625
|
-
/* @__PURE__ */ (0,
|
|
8113
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
8114
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7626
8115
|
"feColorMatrix",
|
|
7627
8116
|
{
|
|
7628
8117
|
in: "SourceAlpha",
|
|
@@ -7630,18 +8119,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7630
8119
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
7631
8120
|
}
|
|
7632
8121
|
),
|
|
7633
|
-
/* @__PURE__ */ (0,
|
|
7634
|
-
/* @__PURE__ */ (0,
|
|
7635
|
-
/* @__PURE__ */ (0,
|
|
7636
|
-
/* @__PURE__ */ (0,
|
|
7637
|
-
/* @__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)(
|
|
7638
8127
|
"feBlend",
|
|
7639
8128
|
{
|
|
7640
8129
|
in2: "BackgroundImageFix",
|
|
7641
8130
|
result: "effect1_dropShadow_257_2538"
|
|
7642
8131
|
}
|
|
7643
8132
|
),
|
|
7644
|
-
/* @__PURE__ */ (0,
|
|
8133
|
+
/* @__PURE__ */ (0, import_jsx_runtime246.jsx)(
|
|
7645
8134
|
"feBlend",
|
|
7646
8135
|
{
|
|
7647
8136
|
in: "SourceGraphic",
|
|
@@ -7658,8 +8147,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime244
|
|
|
7658
8147
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
7659
8148
|
|
|
7660
8149
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
7661
|
-
var
|
|
7662
|
-
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)(
|
|
7663
8152
|
"svg",
|
|
7664
8153
|
{
|
|
7665
8154
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7667,14 +8156,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
7667
8156
|
fill: "none",
|
|
7668
8157
|
...props,
|
|
7669
8158
|
children: [
|
|
7670
|
-
/* @__PURE__ */ (0,
|
|
8159
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
7671
8160
|
"path",
|
|
7672
8161
|
{
|
|
7673
8162
|
fill: "#E2430C",
|
|
7674
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"
|
|
7675
8164
|
}
|
|
7676
8165
|
),
|
|
7677
|
-
/* @__PURE__ */ (0,
|
|
8166
|
+
/* @__PURE__ */ (0, import_jsx_runtime247.jsx)(
|
|
7678
8167
|
"path",
|
|
7679
8168
|
{
|
|
7680
8169
|
fill: "#fff",
|
|
@@ -7687,8 +8176,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
7687
8176
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
7688
8177
|
|
|
7689
8178
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
7690
|
-
var
|
|
7691
|
-
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)(
|
|
7692
8181
|
"svg",
|
|
7693
8182
|
{
|
|
7694
8183
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7696,14 +8185,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
7696
8185
|
fill: "none",
|
|
7697
8186
|
...props,
|
|
7698
8187
|
children: [
|
|
7699
|
-
/* @__PURE__ */ (0,
|
|
8188
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
7700
8189
|
"path",
|
|
7701
8190
|
{
|
|
7702
8191
|
fill: "#E2430C",
|
|
7703
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"
|
|
7704
8193
|
}
|
|
7705
8194
|
),
|
|
7706
|
-
/* @__PURE__ */ (0,
|
|
8195
|
+
/* @__PURE__ */ (0, import_jsx_runtime248.jsx)(
|
|
7707
8196
|
"path",
|
|
7708
8197
|
{
|
|
7709
8198
|
fill: "#000",
|
|
@@ -7716,8 +8205,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
7716
8205
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
7717
8206
|
|
|
7718
8207
|
// src/Logo/Logo.tsx
|
|
7719
|
-
var
|
|
7720
|
-
var logoStyles = (size) =>
|
|
8208
|
+
var import_jsx_runtime249 = require("@emotion/react/jsx-runtime");
|
|
8209
|
+
var logoStyles = (size) => import_react49.css`
|
|
7721
8210
|
width: ${space[size]};
|
|
7722
8211
|
height: auto;
|
|
7723
8212
|
display: block;
|
|
@@ -7745,18 +8234,18 @@ var Logo = ({
|
|
|
7745
8234
|
return LandtrustStandardLight_default;
|
|
7746
8235
|
};
|
|
7747
8236
|
const LogoComponent = getLogoComponent();
|
|
7748
|
-
return /* @__PURE__ */ (0,
|
|
8237
|
+
return /* @__PURE__ */ (0, import_jsx_runtime249.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
7749
8238
|
};
|
|
7750
8239
|
var Logo_default = Logo;
|
|
7751
8240
|
|
|
7752
8241
|
// src/Navigation/Navigation.styles.ts
|
|
7753
|
-
var
|
|
7754
|
-
var navigationStyles =
|
|
8242
|
+
var import_react50 = require("@emotion/react");
|
|
8243
|
+
var navigationStyles = import_react50.css`
|
|
7755
8244
|
width: 100%;
|
|
7756
8245
|
background-color: white;
|
|
7757
8246
|
border-bottom: 1px solid #e5e5e5;
|
|
7758
8247
|
`;
|
|
7759
|
-
var hamburgerButtonStyles =
|
|
8248
|
+
var hamburgerButtonStyles = import_react50.css`
|
|
7760
8249
|
cursor: pointer;
|
|
7761
8250
|
&:focus {
|
|
7762
8251
|
outline: 2px solid #4f46e5;
|
|
@@ -7767,7 +8256,7 @@ var hamburgerButtonStyles = import_react46.css`
|
|
|
7767
8256
|
display: none;
|
|
7768
8257
|
}
|
|
7769
8258
|
`;
|
|
7770
|
-
var centeredLogoStyles =
|
|
8259
|
+
var centeredLogoStyles = import_react50.css`
|
|
7771
8260
|
transform: translate(-50%, -50%);
|
|
7772
8261
|
max-width: 150px;
|
|
7773
8262
|
|
|
@@ -7775,27 +8264,27 @@ var centeredLogoStyles = import_react46.css`
|
|
|
7775
8264
|
display: none;
|
|
7776
8265
|
}
|
|
7777
8266
|
`;
|
|
7778
|
-
var desktopLogoStyles =
|
|
8267
|
+
var desktopLogoStyles = import_react50.css`
|
|
7779
8268
|
display: none;
|
|
7780
8269
|
|
|
7781
8270
|
@media (min-width: 768px) {
|
|
7782
8271
|
display: block;
|
|
7783
8272
|
}
|
|
7784
8273
|
`;
|
|
7785
|
-
var containerStyles3 =
|
|
8274
|
+
var containerStyles3 = import_react50.css`
|
|
7786
8275
|
@media (min-width: 768px) {
|
|
7787
8276
|
justify-content: space-between;
|
|
7788
8277
|
position: static;
|
|
7789
8278
|
}
|
|
7790
8279
|
`;
|
|
7791
|
-
var logoStyles2 =
|
|
8280
|
+
var logoStyles2 = import_react50.css`
|
|
7792
8281
|
width: 100%;
|
|
7793
8282
|
|
|
7794
8283
|
@media (min-width: 768px) {
|
|
7795
8284
|
width: initial;
|
|
7796
8285
|
}
|
|
7797
8286
|
`;
|
|
7798
|
-
var desktopNavStyles =
|
|
8287
|
+
var desktopNavStyles = import_react50.css`
|
|
7799
8288
|
display: none;
|
|
7800
8289
|
|
|
7801
8290
|
@media (min-width: 768px) {
|
|
@@ -7804,7 +8293,7 @@ var desktopNavStyles = import_react46.css`
|
|
|
7804
8293
|
gap: 32px;
|
|
7805
8294
|
}
|
|
7806
8295
|
`;
|
|
7807
|
-
var navLinksStyles =
|
|
8296
|
+
var navLinksStyles = import_react50.css`
|
|
7808
8297
|
display: flex;
|
|
7809
8298
|
align-items: center;
|
|
7810
8299
|
gap: 24px;
|
|
@@ -7812,7 +8301,7 @@ var navLinksStyles = import_react46.css`
|
|
|
7812
8301
|
margin: 0;
|
|
7813
8302
|
padding: 0;
|
|
7814
8303
|
`;
|
|
7815
|
-
var navLinkStyles =
|
|
8304
|
+
var navLinkStyles = import_react50.css`
|
|
7816
8305
|
text-decoration: none;
|
|
7817
8306
|
color: #374151;
|
|
7818
8307
|
font-weight: 500;
|
|
@@ -7828,7 +8317,7 @@ var navLinkStyles = import_react46.css`
|
|
|
7828
8317
|
outline-offset: 2px;
|
|
7829
8318
|
}
|
|
7830
8319
|
`;
|
|
7831
|
-
var avatarPlaceholderStyles =
|
|
8320
|
+
var avatarPlaceholderStyles = import_react50.css`
|
|
7832
8321
|
width: 32px;
|
|
7833
8322
|
height: 32px;
|
|
7834
8323
|
border-radius: 50%;
|
|
@@ -7853,7 +8342,7 @@ var avatarPlaceholderStyles = import_react46.css`
|
|
|
7853
8342
|
`;
|
|
7854
8343
|
|
|
7855
8344
|
// src/Navigation/Navigation.tsx
|
|
7856
|
-
var
|
|
8345
|
+
var import_jsx_runtime250 = require("@emotion/react/jsx-runtime");
|
|
7857
8346
|
var Navigation = ({
|
|
7858
8347
|
onMenuToggle,
|
|
7859
8348
|
className,
|
|
@@ -7867,7 +8356,7 @@ var Navigation = ({
|
|
|
7867
8356
|
onAvatarClick,
|
|
7868
8357
|
...rest
|
|
7869
8358
|
}) => {
|
|
7870
|
-
return /* @__PURE__ */ (0,
|
|
8359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime250.jsxs)(
|
|
7871
8360
|
Box_default,
|
|
7872
8361
|
{
|
|
7873
8362
|
display: "flex",
|
|
@@ -7876,7 +8365,7 @@ var Navigation = ({
|
|
|
7876
8365
|
position: "relative",
|
|
7877
8366
|
css: containerStyles3,
|
|
7878
8367
|
children: [
|
|
7879
|
-
/* @__PURE__ */ (0,
|
|
8368
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
7880
8369
|
Box_default,
|
|
7881
8370
|
{
|
|
7882
8371
|
as: "button",
|
|
@@ -7888,11 +8377,11 @@ var Navigation = ({
|
|
|
7888
8377
|
border: "none",
|
|
7889
8378
|
padding: space[2],
|
|
7890
8379
|
css: hamburgerButtonStyles,
|
|
7891
|
-
children: /* @__PURE__ */ (0,
|
|
8380
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime250.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
7892
8381
|
}
|
|
7893
8382
|
),
|
|
7894
|
-
/* @__PURE__ */ (0,
|
|
7895
|
-
/* @__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)(
|
|
7896
8385
|
Logo_default,
|
|
7897
8386
|
{
|
|
7898
8387
|
variant: logoVariant,
|
|
@@ -7901,8 +8390,8 @@ var Navigation = ({
|
|
|
7901
8390
|
css: logoStyles2
|
|
7902
8391
|
}
|
|
7903
8392
|
) }),
|
|
7904
|
-
/* @__PURE__ */ (0,
|
|
7905
|
-
/* @__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)(
|
|
7906
8395
|
"a",
|
|
7907
8396
|
{
|
|
7908
8397
|
href: link.href,
|
|
@@ -7911,7 +8400,7 @@ var Navigation = ({
|
|
|
7911
8400
|
children: link.label
|
|
7912
8401
|
}
|
|
7913
8402
|
) }, link.href)) }) }),
|
|
7914
|
-
/* @__PURE__ */ (0,
|
|
8403
|
+
/* @__PURE__ */ (0, import_jsx_runtime250.jsx)(
|
|
7915
8404
|
Box_default,
|
|
7916
8405
|
{
|
|
7917
8406
|
as: "button",
|
|
@@ -7930,21 +8419,21 @@ var Navigation = ({
|
|
|
7930
8419
|
var Navigation_default = Navigation;
|
|
7931
8420
|
|
|
7932
8421
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
7933
|
-
var
|
|
8422
|
+
var import_react53 = require("react");
|
|
7934
8423
|
var import_react_intersection_observer = require("react-intersection-observer");
|
|
7935
8424
|
|
|
7936
8425
|
// src/ScrollingCarousel/context/CarouselContext.tsx
|
|
7937
|
-
var
|
|
7938
|
-
var CarouselContext =
|
|
8426
|
+
var import_react51 = __toESM(require("react"));
|
|
8427
|
+
var CarouselContext = import_react51.default.createContext(
|
|
7939
8428
|
null
|
|
7940
8429
|
);
|
|
7941
8430
|
|
|
7942
8431
|
// src/ScrollingCarousel/ScrollingCarousel.styles.ts
|
|
7943
|
-
var
|
|
7944
|
-
var carouselRoot =
|
|
8432
|
+
var import_react52 = require("@emotion/react");
|
|
8433
|
+
var carouselRoot = import_react52.css`
|
|
7945
8434
|
position: relative;
|
|
7946
8435
|
`;
|
|
7947
|
-
var carousel =
|
|
8436
|
+
var carousel = import_react52.css`
|
|
7948
8437
|
display: flex;
|
|
7949
8438
|
overflow-y: hidden;
|
|
7950
8439
|
overflow-x: scroll;
|
|
@@ -7956,7 +8445,7 @@ var carousel = import_react48.css`
|
|
|
7956
8445
|
display: none;
|
|
7957
8446
|
}
|
|
7958
8447
|
`;
|
|
7959
|
-
var step =
|
|
8448
|
+
var step = import_react52.css`
|
|
7960
8449
|
scroll-snap-align: center;
|
|
7961
8450
|
flex-basis: 100%;
|
|
7962
8451
|
flex-shrink: 0;
|
|
@@ -7969,7 +8458,7 @@ var step = import_react48.css`
|
|
|
7969
8458
|
flex-basis: 100%;
|
|
7970
8459
|
}
|
|
7971
8460
|
`;
|
|
7972
|
-
var controls = (position2) =>
|
|
8461
|
+
var controls = (position2) => import_react52.css`
|
|
7973
8462
|
${(position2 === "left-right" || position2 === "top-right") && `
|
|
7974
8463
|
display: none;
|
|
7975
8464
|
|
|
@@ -7978,7 +8467,7 @@ var controls = (position2) => import_react48.css`
|
|
|
7978
8467
|
}
|
|
7979
8468
|
`}
|
|
7980
8469
|
`;
|
|
7981
|
-
var iconWrapper =
|
|
8470
|
+
var iconWrapper = import_react52.css`
|
|
7982
8471
|
display: flex;
|
|
7983
8472
|
width: var(--spacing-7);
|
|
7984
8473
|
height: var(--spacing-7);
|
|
@@ -7988,7 +8477,7 @@ var iconWrapper = import_react48.css`
|
|
|
7988
8477
|
justify-content: center;
|
|
7989
8478
|
box-shadow: var(--shadow-md);
|
|
7990
8479
|
`;
|
|
7991
|
-
var button = (position2) =>
|
|
8480
|
+
var button = (position2) => import_react52.css`
|
|
7992
8481
|
background: transparent;
|
|
7993
8482
|
border-color: transparent;
|
|
7994
8483
|
outline: none;
|
|
@@ -8018,7 +8507,7 @@ var button = (position2) => import_react48.css`
|
|
|
8018
8507
|
bottom: calc(-1 * var(--spacing-1));
|
|
8019
8508
|
`}
|
|
8020
8509
|
`;
|
|
8021
|
-
var buttonLeft = (position2) =>
|
|
8510
|
+
var buttonLeft = (position2) => import_react52.css`
|
|
8022
8511
|
${button(position2)}
|
|
8023
8512
|
|
|
8024
8513
|
${position2 === "left-right" && `
|
|
@@ -8038,7 +8527,7 @@ var buttonLeft = (position2) => import_react48.css`
|
|
|
8038
8527
|
left: calc(50% - var(--spacing-16));
|
|
8039
8528
|
`}
|
|
8040
8529
|
`;
|
|
8041
|
-
var customButtonLeft = (position2) =>
|
|
8530
|
+
var customButtonLeft = (position2) => import_react52.css`
|
|
8042
8531
|
${button(position2)}
|
|
8043
8532
|
|
|
8044
8533
|
${position2 === "left-right" && `
|
|
@@ -8058,7 +8547,7 @@ var customButtonLeft = (position2) => import_react48.css`
|
|
|
8058
8547
|
left: calc(50% - var(--spacing-16));
|
|
8059
8548
|
`}
|
|
8060
8549
|
`;
|
|
8061
|
-
var buttonRight = (position2) =>
|
|
8550
|
+
var buttonRight = (position2) => import_react52.css`
|
|
8062
8551
|
${button(position2)}
|
|
8063
8552
|
|
|
8064
8553
|
${position2 === "left-right" && `
|
|
@@ -8078,12 +8567,12 @@ var buttonRight = (position2) => import_react48.css`
|
|
|
8078
8567
|
right: calc(50% - var(--spacing-16));
|
|
8079
8568
|
`}
|
|
8080
8569
|
`;
|
|
8081
|
-
var icon =
|
|
8570
|
+
var icon = import_react52.css`
|
|
8082
8571
|
width: var(--spacing-3);
|
|
8083
8572
|
height: var(--spacing-3);
|
|
8084
8573
|
color: var(--color-base-black);
|
|
8085
8574
|
`;
|
|
8086
|
-
var dots =
|
|
8575
|
+
var dots = import_react52.css`
|
|
8087
8576
|
position: absolute;
|
|
8088
8577
|
bottom: var(--spacing-2);
|
|
8089
8578
|
left: 0;
|
|
@@ -8093,11 +8582,11 @@ var dots = import_react48.css`
|
|
|
8093
8582
|
align-items: center;
|
|
8094
8583
|
justify-content: center;
|
|
8095
8584
|
`;
|
|
8096
|
-
var dotsInner =
|
|
8585
|
+
var dotsInner = import_react52.css`
|
|
8097
8586
|
display: flex;
|
|
8098
8587
|
overflow: hidden;
|
|
8099
8588
|
`;
|
|
8100
|
-
var dot = (dotsColor) =>
|
|
8589
|
+
var dot = (dotsColor) => import_react52.css`
|
|
8101
8590
|
position: relative;
|
|
8102
8591
|
flex-shrink: 0;
|
|
8103
8592
|
flex-grow: 0;
|
|
@@ -8136,22 +8625,22 @@ var dot = (dotsColor) => import_react48.css`
|
|
|
8136
8625
|
`}
|
|
8137
8626
|
}
|
|
8138
8627
|
`;
|
|
8139
|
-
var dotDistance2 =
|
|
8628
|
+
var dotDistance2 = import_react52.css`
|
|
8140
8629
|
&::after {
|
|
8141
8630
|
transform: translate(-50%, -50%) scale(0.9);
|
|
8142
8631
|
}
|
|
8143
8632
|
`;
|
|
8144
|
-
var dotDistance3 =
|
|
8633
|
+
var dotDistance3 = import_react52.css`
|
|
8145
8634
|
&::after {
|
|
8146
8635
|
transform: translate(-50%, -50%) scale(0.8);
|
|
8147
8636
|
}
|
|
8148
8637
|
`;
|
|
8149
|
-
var dotDistanceGreaterThan3 =
|
|
8638
|
+
var dotDistanceGreaterThan3 = import_react52.css`
|
|
8150
8639
|
&::after {
|
|
8151
8640
|
transform: translate(-50%, -50%) scale(0.7);
|
|
8152
8641
|
}
|
|
8153
8642
|
`;
|
|
8154
|
-
var dotVisible =
|
|
8643
|
+
var dotVisible = import_react52.css`
|
|
8155
8644
|
&::after {
|
|
8156
8645
|
opacity: 1;
|
|
8157
8646
|
transform: translate(-50%, -50%) scale(1.2);
|
|
@@ -8159,7 +8648,7 @@ var dotVisible = import_react48.css`
|
|
|
8159
8648
|
`;
|
|
8160
8649
|
|
|
8161
8650
|
// src/ScrollingCarousel/components/ScrollingCarouselStep.tsx
|
|
8162
|
-
var
|
|
8651
|
+
var import_jsx_runtime251 = require("@emotion/react/jsx-runtime");
|
|
8163
8652
|
var ScrollingCarouselStep = ({
|
|
8164
8653
|
children,
|
|
8165
8654
|
index,
|
|
@@ -8167,7 +8656,7 @@ var ScrollingCarouselStep = ({
|
|
|
8167
8656
|
parentId,
|
|
8168
8657
|
onClick
|
|
8169
8658
|
}) => {
|
|
8170
|
-
const context = (0,
|
|
8659
|
+
const context = (0, import_react53.useContext)(CarouselContext);
|
|
8171
8660
|
if (!context) {
|
|
8172
8661
|
throw new Error(
|
|
8173
8662
|
"ScrollingCarouselStep must be used within ScrollingCarousel"
|
|
@@ -8178,7 +8667,7 @@ var ScrollingCarouselStep = ({
|
|
|
8178
8667
|
threshold: 0.75,
|
|
8179
8668
|
root: carousel2.current
|
|
8180
8669
|
});
|
|
8181
|
-
(0,
|
|
8670
|
+
(0, import_react53.useEffect)(() => {
|
|
8182
8671
|
if (typeof index !== "undefined") {
|
|
8183
8672
|
dispatch({
|
|
8184
8673
|
type: "set_child_visibility",
|
|
@@ -8187,7 +8676,7 @@ var ScrollingCarouselStep = ({
|
|
|
8187
8676
|
}
|
|
8188
8677
|
}, [inView, index, dispatch]);
|
|
8189
8678
|
const dataStep = { [`data-step-${parentId}`]: index };
|
|
8190
|
-
return /* @__PURE__ */ (0,
|
|
8679
|
+
return /* @__PURE__ */ (0, import_jsx_runtime251.jsx)(
|
|
8191
8680
|
"div",
|
|
8192
8681
|
{
|
|
8193
8682
|
ref,
|
|
@@ -8204,10 +8693,10 @@ var ScrollingCarouselStep = ({
|
|
|
8204
8693
|
ScrollingCarouselStep.displayName = "ScrollingCarouselStep";
|
|
8205
8694
|
|
|
8206
8695
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
8207
|
-
var
|
|
8696
|
+
var import_react57 = __toESM(require("react"));
|
|
8208
8697
|
|
|
8209
8698
|
// src/ScrollingCarousel/hooks/useCarouselDots.ts
|
|
8210
|
-
var
|
|
8699
|
+
var import_react54 = require("react");
|
|
8211
8700
|
|
|
8212
8701
|
// src/ScrollingCarousel/ScrollingCarousel.helpers.ts
|
|
8213
8702
|
var childVisibilityReducer = (state, action) => {
|
|
@@ -8238,7 +8727,7 @@ var useCarouselDots = ({
|
|
|
8238
8727
|
anyItemsVisible,
|
|
8239
8728
|
numberOfDots
|
|
8240
8729
|
}) => {
|
|
8241
|
-
const dotOffset = (0,
|
|
8730
|
+
const dotOffset = (0, import_react54.useRef)(0);
|
|
8242
8731
|
const dotWidth = 12;
|
|
8243
8732
|
const totalDots = childVisibility.length;
|
|
8244
8733
|
const dotToCenterIndex = Math.round(
|
|
@@ -8270,7 +8759,7 @@ var useCarouselDots = ({
|
|
|
8270
8759
|
};
|
|
8271
8760
|
|
|
8272
8761
|
// src/ScrollingCarousel/hooks/useCarouselNavigation.ts
|
|
8273
|
-
var
|
|
8762
|
+
var import_react55 = require("react");
|
|
8274
8763
|
|
|
8275
8764
|
// src/shared/helpers.ts
|
|
8276
8765
|
var import_seamless_scroll_polyfill = require("seamless-scroll-polyfill");
|
|
@@ -8304,7 +8793,7 @@ var useCarouselNavigation = ({
|
|
|
8304
8793
|
infiniteScroll,
|
|
8305
8794
|
childVisibilityLength
|
|
8306
8795
|
}) => {
|
|
8307
|
-
const getStepEl = (0,
|
|
8796
|
+
const getStepEl = (0, import_react55.useCallback)(
|
|
8308
8797
|
(index) => {
|
|
8309
8798
|
if (carousel2.current) {
|
|
8310
8799
|
return carousel2.current.querySelectorAll(`[data-step-${id}]`)[index] || null;
|
|
@@ -8313,7 +8802,7 @@ var useCarouselNavigation = ({
|
|
|
8313
8802
|
},
|
|
8314
8803
|
[carousel2, id]
|
|
8315
8804
|
);
|
|
8316
|
-
const next = (0,
|
|
8805
|
+
const next = (0, import_react55.useCallback)(
|
|
8317
8806
|
(e) => {
|
|
8318
8807
|
e.preventDefault();
|
|
8319
8808
|
if (lastItemIsVisible && !infiniteScroll)
|
|
@@ -8341,7 +8830,7 @@ var useCarouselNavigation = ({
|
|
|
8341
8830
|
carousel2
|
|
8342
8831
|
]
|
|
8343
8832
|
);
|
|
8344
|
-
const back = (0,
|
|
8833
|
+
const back = (0, import_react55.useCallback)(
|
|
8345
8834
|
(e) => {
|
|
8346
8835
|
e.preventDefault();
|
|
8347
8836
|
if (firstItemIsVisible && !infiniteScroll)
|
|
@@ -8369,7 +8858,7 @@ var useCarouselNavigation = ({
|
|
|
8369
8858
|
carousel2
|
|
8370
8859
|
]
|
|
8371
8860
|
);
|
|
8372
|
-
const goTo = (0,
|
|
8861
|
+
const goTo = (0, import_react55.useCallback)(
|
|
8373
8862
|
(e, i) => {
|
|
8374
8863
|
e.preventDefault();
|
|
8375
8864
|
const el = getStepEl(i);
|
|
@@ -8387,12 +8876,12 @@ var useCarouselNavigation = ({
|
|
|
8387
8876
|
};
|
|
8388
8877
|
|
|
8389
8878
|
// src/ScrollingCarousel/hooks/useCarouselVisibility.ts
|
|
8390
|
-
var
|
|
8879
|
+
var import_react56 = require("react");
|
|
8391
8880
|
var useCarouselVisibility = (carousel2) => {
|
|
8392
|
-
const [state, dispatch] = (0,
|
|
8881
|
+
const [state, dispatch] = (0, import_react56.useReducer)(childVisibilityReducer, {
|
|
8393
8882
|
childVisibility: []
|
|
8394
8883
|
});
|
|
8395
|
-
const carouselContextApi = (0,
|
|
8884
|
+
const carouselContextApi = (0, import_react56.useMemo)(
|
|
8396
8885
|
() => ({ carousel: carousel2, dispatch }),
|
|
8397
8886
|
[carousel2]
|
|
8398
8887
|
);
|
|
@@ -8413,7 +8902,7 @@ var useCarouselVisibility = (carousel2) => {
|
|
|
8413
8902
|
};
|
|
8414
8903
|
|
|
8415
8904
|
// src/ScrollingCarousel/ScrollingCarousel.tsx
|
|
8416
|
-
var
|
|
8905
|
+
var import_jsx_runtime252 = require("@emotion/react/jsx-runtime");
|
|
8417
8906
|
var ScrollingCarousel = ({
|
|
8418
8907
|
className,
|
|
8419
8908
|
children,
|
|
@@ -8430,8 +8919,8 @@ var ScrollingCarousel = ({
|
|
|
8430
8919
|
id,
|
|
8431
8920
|
current
|
|
8432
8921
|
}) => {
|
|
8433
|
-
const carousel2 = (0,
|
|
8434
|
-
const [isHovering, setIsHovering] = (0,
|
|
8922
|
+
const carousel2 = (0, import_react57.useRef)(null);
|
|
8923
|
+
const [isHovering, setIsHovering] = (0, import_react57.useState)(false);
|
|
8435
8924
|
const {
|
|
8436
8925
|
state,
|
|
8437
8926
|
carouselContextApi,
|
|
@@ -8451,7 +8940,7 @@ var ScrollingCarousel = ({
|
|
|
8451
8940
|
infiniteScroll,
|
|
8452
8941
|
childVisibilityLength: state.childVisibility.length
|
|
8453
8942
|
});
|
|
8454
|
-
(0,
|
|
8943
|
+
(0, import_react57.useEffect)(() => {
|
|
8455
8944
|
if (carousel2.current && typeof current === "number" && current >= 0) {
|
|
8456
8945
|
const childrenArray = Array.from(carousel2.current.children);
|
|
8457
8946
|
const selectedItem = childrenArray[current];
|
|
@@ -8466,9 +8955,9 @@ var ScrollingCarousel = ({
|
|
|
8466
8955
|
}
|
|
8467
8956
|
}
|
|
8468
8957
|
}, [current]);
|
|
8469
|
-
const childrenWithIndex =
|
|
8958
|
+
const childrenWithIndex = import_react57.default.Children.map(
|
|
8470
8959
|
children,
|
|
8471
|
-
(child, index) =>
|
|
8960
|
+
(child, index) => import_react57.default.cloneElement(child, { index })
|
|
8472
8961
|
);
|
|
8473
8962
|
const { dotOffset, dotDistances, dotWidth } = useCarouselDots({
|
|
8474
8963
|
childVisibility: state.childVisibility,
|
|
@@ -8479,7 +8968,7 @@ var ScrollingCarousel = ({
|
|
|
8479
8968
|
});
|
|
8480
8969
|
const hasMultipleChildren = state.childVisibility.length > 1;
|
|
8481
8970
|
const shouldShowNavigation = showNavigationOnHover ? isHovering : true;
|
|
8482
|
-
return /* @__PURE__ */ (0,
|
|
8971
|
+
return /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)(
|
|
8483
8972
|
"div",
|
|
8484
8973
|
{
|
|
8485
8974
|
css: carouselRoot,
|
|
@@ -8487,7 +8976,7 @@ var ScrollingCarousel = ({
|
|
|
8487
8976
|
onMouseEnter: () => setIsHovering(true),
|
|
8488
8977
|
onMouseLeave: () => setIsHovering(false),
|
|
8489
8978
|
children: [
|
|
8490
|
-
/* @__PURE__ */ (0,
|
|
8979
|
+
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8491
8980
|
"div",
|
|
8492
8981
|
{
|
|
8493
8982
|
css: carousel,
|
|
@@ -8496,11 +8985,11 @@ var ScrollingCarousel = ({
|
|
|
8496
8985
|
role: "region",
|
|
8497
8986
|
"aria-roledescription": "carousel",
|
|
8498
8987
|
"aria-label": "Scrolling carousel",
|
|
8499
|
-
children: /* @__PURE__ */ (0,
|
|
8988
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(CarouselContext.Provider, { value: carouselContextApi, children: childrenWithIndex })
|
|
8500
8989
|
}
|
|
8501
8990
|
),
|
|
8502
|
-
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0,
|
|
8503
|
-
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
8991
|
+
hasMultipleChildren && shouldShowNavigation && /* @__PURE__ */ (0, import_jsx_runtime252.jsxs)("div", { css: controls(buttonsPosition), children: [
|
|
8992
|
+
showButtons && (!firstItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8504
8993
|
"button",
|
|
8505
8994
|
{
|
|
8506
8995
|
"aria-label": "Previous",
|
|
@@ -8508,10 +8997,10 @@ var ScrollingCarousel = ({
|
|
|
8508
8997
|
onClick: back,
|
|
8509
8998
|
css: customLeftButton ? customButtonLeft(buttonsPosition) : buttonLeft(buttonsPosition),
|
|
8510
8999
|
"data-testid": `scrolling-carousel-button-back-${id}`,
|
|
8511
|
-
children: customBackIcon ? customBackIcon : /* @__PURE__ */ (0,
|
|
9000
|
+
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 }) })
|
|
8512
9001
|
}
|
|
8513
9002
|
),
|
|
8514
|
-
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0,
|
|
9003
|
+
showButtons && (!lastItemIsVisible || infiniteScroll) && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8515
9004
|
"button",
|
|
8516
9005
|
{
|
|
8517
9006
|
"aria-label": "Next",
|
|
@@ -8519,11 +9008,11 @@ var ScrollingCarousel = ({
|
|
|
8519
9008
|
onClick: next,
|
|
8520
9009
|
css: buttonRight(buttonsPosition),
|
|
8521
9010
|
"data-testid": `scrolling-carousel-button-next-${id}`,
|
|
8522
|
-
children: customNextIcon ? customNextIcon : /* @__PURE__ */ (0,
|
|
9011
|
+
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 }) })
|
|
8523
9012
|
}
|
|
8524
9013
|
)
|
|
8525
9014
|
] }),
|
|
8526
|
-
showDots && /* @__PURE__ */ (0,
|
|
9015
|
+
showDots && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)("div", { css: dots, children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8527
9016
|
"div",
|
|
8528
9017
|
{
|
|
8529
9018
|
css: dotsInner,
|
|
@@ -8531,7 +9020,7 @@ var ScrollingCarousel = ({
|
|
|
8531
9020
|
children: state.childVisibility.map((childVisibility, i) => {
|
|
8532
9021
|
var _a;
|
|
8533
9022
|
const distance = (_a = dotDistances[i]) != null ? _a : 0;
|
|
8534
|
-
return /* @__PURE__ */ (0,
|
|
9023
|
+
return /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
8535
9024
|
"button",
|
|
8536
9025
|
{
|
|
8537
9026
|
type: "button",
|
|
@@ -8562,8 +9051,8 @@ var ScrollingCarousel = ({
|
|
|
8562
9051
|
ScrollingCarousel.displayName = "ScrollingCarousel";
|
|
8563
9052
|
|
|
8564
9053
|
// src/PackageCard/PackageCard.styles.ts
|
|
8565
|
-
var
|
|
8566
|
-
var cardContainerStyles3 =
|
|
9054
|
+
var import_react58 = require("@emotion/react");
|
|
9055
|
+
var cardContainerStyles3 = (orientation, hasContentBackground) => import_react58.css`
|
|
8567
9056
|
color: var(--text-primary);
|
|
8568
9057
|
position: relative;
|
|
8569
9058
|
width: 100%;
|
|
@@ -8571,27 +9060,42 @@ var cardContainerStyles3 = import_react54.css`
|
|
|
8571
9060
|
background: white;
|
|
8572
9061
|
overflow: hidden;
|
|
8573
9062
|
transition: all 0.2s ease;
|
|
9063
|
+
|
|
9064
|
+
${orientation === "horizontal" && import_react58.css`
|
|
9065
|
+
box-shadow: 0 0 var(--shadow-blur-lg, 24px) var(--shadow-spread-xs, -4px)
|
|
9066
|
+
rgba(17, 17, 17, 0.1);
|
|
9067
|
+
`}
|
|
9068
|
+
|
|
9069
|
+
${hasContentBackground ? `
|
|
9070
|
+
border-radius: var(--spacing-4);
|
|
9071
|
+
` : `
|
|
9072
|
+
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
9073
|
+
`}
|
|
9074
|
+
|
|
9075
|
+
${orientation === "horizontal" && `
|
|
9076
|
+
border-radius: var(--spacing-4);
|
|
9077
|
+
`}
|
|
8574
9078
|
`;
|
|
8575
|
-
var imageStyles2 =
|
|
9079
|
+
var imageStyles2 = import_react58.css`
|
|
8576
9080
|
background-size: cover;
|
|
8577
9081
|
background-position: center;
|
|
8578
9082
|
background-repeat: no-repeat;
|
|
8579
9083
|
position: relative;
|
|
8580
9084
|
background-color: lightgray;
|
|
8581
9085
|
`;
|
|
8582
|
-
var badgeTopLeftStyles =
|
|
9086
|
+
var badgeTopLeftStyles = import_react58.css`
|
|
8583
9087
|
position: absolute;
|
|
8584
9088
|
top: var(--spacing-3);
|
|
8585
9089
|
left: var(--spacing-3);
|
|
8586
9090
|
z-index: 2;
|
|
8587
9091
|
`;
|
|
8588
|
-
var badgeBottomRightStyles =
|
|
9092
|
+
var badgeBottomRightStyles = import_react58.css`
|
|
8589
9093
|
position: absolute;
|
|
8590
9094
|
bottom: var(--spacing-3);
|
|
8591
9095
|
right: var(--spacing-3);
|
|
8592
9096
|
z-index: 2;
|
|
8593
9097
|
`;
|
|
8594
|
-
var heartIconStyles =
|
|
9098
|
+
var heartIconStyles = import_react58.css`
|
|
8595
9099
|
position: absolute;
|
|
8596
9100
|
top: var(--spacing-3);
|
|
8597
9101
|
right: var(--spacing-3);
|
|
@@ -8613,14 +9117,20 @@ var heartIconStyles = import_react54.css`
|
|
|
8613
9117
|
transform: scale(1.1);
|
|
8614
9118
|
}
|
|
8615
9119
|
`;
|
|
8616
|
-
var
|
|
9120
|
+
var actionMenuStyles = import_react58.css`
|
|
9121
|
+
position: absolute;
|
|
9122
|
+
top: var(--spacing-3);
|
|
9123
|
+
right: var(--spacing-3);
|
|
9124
|
+
z-index: 3;
|
|
9125
|
+
`;
|
|
9126
|
+
var contentWithBackgroundStyles = import_react58.css`
|
|
8617
9127
|
padding: 0 var(--spacing-3) var(--spacing-4) var(--spacing-3);
|
|
8618
9128
|
background-color: var(--surface-page);
|
|
8619
9129
|
`;
|
|
8620
|
-
var contentWithoutBackgroundStyles =
|
|
9130
|
+
var contentWithoutBackgroundStyles = import_react58.css`
|
|
8621
9131
|
padding-top: 0 var(--spacing-2) var(--spacing-2) var(--spacing-2);
|
|
8622
9132
|
`;
|
|
8623
|
-
var overlayStyles =
|
|
9133
|
+
var overlayStyles = import_react58.css`
|
|
8624
9134
|
position: absolute;
|
|
8625
9135
|
top: 0;
|
|
8626
9136
|
left: 0;
|
|
@@ -8634,7 +9144,7 @@ var overlayStyles = import_react54.css`
|
|
|
8634
9144
|
`;
|
|
8635
9145
|
|
|
8636
9146
|
// src/PackageCard/PackageCard.tsx
|
|
8637
|
-
var
|
|
9147
|
+
var import_jsx_runtime253 = require("@emotion/react/jsx-runtime");
|
|
8638
9148
|
var PackageCard = ({
|
|
8639
9149
|
images,
|
|
8640
9150
|
title,
|
|
@@ -8649,24 +9159,25 @@ var PackageCard = ({
|
|
|
8649
9159
|
id,
|
|
8650
9160
|
hasContentBackground = false,
|
|
8651
9161
|
orientation = "vertical",
|
|
9162
|
+
actions,
|
|
8652
9163
|
...rest
|
|
8653
9164
|
}) => {
|
|
8654
9165
|
const carouselId = id || `package-card-${title.replace(/\s+/g, "-")}`;
|
|
8655
9166
|
const shouldShowOverlay = availabilityBadges == null ? void 0 : availabilityBadges.some(
|
|
8656
9167
|
(badge2) => badge2.showOverlay
|
|
8657
9168
|
);
|
|
8658
|
-
return /* @__PURE__ */ (0,
|
|
9169
|
+
return /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
8659
9170
|
Box_default,
|
|
8660
9171
|
{
|
|
9172
|
+
position: "relative",
|
|
8661
9173
|
display: "flex",
|
|
8662
9174
|
flexDirection: orientation === "horizontal" ? "row" : "column",
|
|
8663
9175
|
gap: orientation === "horizontal" ? "var(--spacing-4)" : "var(--spacing-2)",
|
|
8664
|
-
css: cardContainerStyles3,
|
|
9176
|
+
css: cardContainerStyles3(orientation, hasContentBackground),
|
|
8665
9177
|
className,
|
|
8666
9178
|
...rest,
|
|
8667
|
-
borderRadius: hasContentBackground ? "var(--spacing-4)" : "var(--spacing-4) var(--spacing-4) 0 0",
|
|
8668
9179
|
children: [
|
|
8669
|
-
/* @__PURE__ */ (0,
|
|
9180
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
8670
9181
|
Box_default,
|
|
8671
9182
|
{
|
|
8672
9183
|
position: "relative",
|
|
@@ -8675,7 +9186,7 @@ var PackageCard = ({
|
|
|
8675
9186
|
overflow: "hidden",
|
|
8676
9187
|
borderRadius: "var(--spacing-4)",
|
|
8677
9188
|
children: [
|
|
8678
|
-
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
9189
|
+
availabilityBadges == null ? void 0 : availabilityBadges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8679
9190
|
AvailabilityBadge_default,
|
|
8680
9191
|
{
|
|
8681
9192
|
variant: badge2.variant,
|
|
@@ -8684,19 +9195,19 @@ var PackageCard = ({
|
|
|
8684
9195
|
},
|
|
8685
9196
|
`availability-${index}`
|
|
8686
9197
|
)),
|
|
8687
|
-
shouldShowOverlay && /* @__PURE__ */ (0,
|
|
8688
|
-
/* @__PURE__ */ (0,
|
|
9198
|
+
shouldShowOverlay && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { css: overlayStyles }),
|
|
9199
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8689
9200
|
ScrollingCarousel,
|
|
8690
9201
|
{
|
|
8691
9202
|
showDots: images.length > 1,
|
|
8692
9203
|
showNavigationOnHover: true,
|
|
8693
9204
|
id: carouselId,
|
|
8694
|
-
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0,
|
|
9205
|
+
children: images.filter((image) => !!image).map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8695
9206
|
ScrollingCarouselStep,
|
|
8696
9207
|
{
|
|
8697
9208
|
parentId: carouselId,
|
|
8698
9209
|
onClick,
|
|
8699
|
-
children: /* @__PURE__ */ (0,
|
|
9210
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8700
9211
|
Box_default,
|
|
8701
9212
|
{
|
|
8702
9213
|
width: "100%",
|
|
@@ -8714,7 +9225,7 @@ var PackageCard = ({
|
|
|
8714
9225
|
))
|
|
8715
9226
|
}
|
|
8716
9227
|
),
|
|
8717
|
-
onFavoriteClick && /* @__PURE__ */ (0,
|
|
9228
|
+
onFavoriteClick && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8718
9229
|
Box_default,
|
|
8719
9230
|
{
|
|
8720
9231
|
css: heartIconStyles,
|
|
@@ -8723,14 +9234,14 @@ var PackageCard = ({
|
|
|
8723
9234
|
e.stopPropagation();
|
|
8724
9235
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
8725
9236
|
},
|
|
8726
|
-
children: isFavorited ? /* @__PURE__ */ (0,
|
|
9237
|
+
children: isFavorited ? /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8727
9238
|
Icon_default,
|
|
8728
9239
|
{
|
|
8729
9240
|
variant: "HeartSolid",
|
|
8730
9241
|
size: "small",
|
|
8731
9242
|
fill: "var(--color-error-500)"
|
|
8732
9243
|
}
|
|
8733
|
-
) : /* @__PURE__ */ (0,
|
|
9244
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8734
9245
|
Icon_default,
|
|
8735
9246
|
{
|
|
8736
9247
|
variant: "Heart",
|
|
@@ -8739,11 +9250,13 @@ var PackageCard = ({
|
|
|
8739
9250
|
}
|
|
8740
9251
|
)
|
|
8741
9252
|
}
|
|
8742
|
-
)
|
|
9253
|
+
),
|
|
9254
|
+
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 }) })
|
|
8743
9255
|
]
|
|
8744
9256
|
}
|
|
8745
9257
|
),
|
|
8746
|
-
/* @__PURE__ */ (0,
|
|
9258
|
+
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 }) }),
|
|
9259
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
8747
9260
|
Box_default,
|
|
8748
9261
|
{
|
|
8749
9262
|
css: hasContentBackground ? contentWithBackgroundStyles : contentWithoutBackgroundStyles,
|
|
@@ -8752,7 +9265,7 @@ var PackageCard = ({
|
|
|
8752
9265
|
flexDirection: "column",
|
|
8753
9266
|
justifyContent: orientation === "horizontal" ? "center" : "flex-start",
|
|
8754
9267
|
children: [
|
|
8755
|
-
/* @__PURE__ */ (0,
|
|
9268
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(
|
|
8756
9269
|
Box_default,
|
|
8757
9270
|
{
|
|
8758
9271
|
onClick,
|
|
@@ -8761,9 +9274,9 @@ var PackageCard = ({
|
|
|
8761
9274
|
gap: "var(--spacing-1)",
|
|
8762
9275
|
mb: "var(--spacing-1)",
|
|
8763
9276
|
children: [
|
|
8764
|
-
/* @__PURE__ */ (0,
|
|
8765
|
-
/* @__PURE__ */ (0,
|
|
8766
|
-
/* @__PURE__ */ (0,
|
|
9277
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
9278
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Text_default, { size: "sm", fontWeight: "bold", children: subtitle }) }),
|
|
9279
|
+
/* @__PURE__ */ (0, import_jsx_runtime253.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime253.jsxs)(Text_default, { size: "sm", fontWeight: "normal", children: [
|
|
8767
9280
|
"Starting Price ",
|
|
8768
9281
|
startingPrice,
|
|
8769
9282
|
" / Guest"
|
|
@@ -8771,14 +9284,14 @@ var PackageCard = ({
|
|
|
8771
9284
|
]
|
|
8772
9285
|
}
|
|
8773
9286
|
),
|
|
8774
|
-
badges && badges.length > 0 && /* @__PURE__ */ (0,
|
|
9287
|
+
badges && badges.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8775
9288
|
Box_default,
|
|
8776
9289
|
{
|
|
8777
9290
|
display: "flex",
|
|
8778
9291
|
gap: "var(--spacing-2) var(--spacing-4)",
|
|
8779
9292
|
alignItems: "center",
|
|
8780
9293
|
flexWrap: "wrap",
|
|
8781
|
-
children: badges.map((badge2, index) => /* @__PURE__ */ (0,
|
|
9294
|
+
children: badges.map((badge2, index) => /* @__PURE__ */ (0, import_jsx_runtime253.jsx)(
|
|
8782
9295
|
IconLabel_default,
|
|
8783
9296
|
{
|
|
8784
9297
|
iconSize: badge2.iconSize || "medium",
|
|
@@ -8799,14 +9312,14 @@ var PackageCard = ({
|
|
|
8799
9312
|
var PackageCard_default = PackageCard;
|
|
8800
9313
|
|
|
8801
9314
|
// src/PackageHeader/PackageHeader.tsx
|
|
8802
|
-
var
|
|
9315
|
+
var import_jsx_runtime254 = require("@emotion/react/jsx-runtime");
|
|
8803
9316
|
var PackageHeader = ({
|
|
8804
9317
|
header,
|
|
8805
9318
|
subheader,
|
|
8806
9319
|
features,
|
|
8807
9320
|
className
|
|
8808
9321
|
}) => {
|
|
8809
|
-
return /* @__PURE__ */ (0,
|
|
9322
|
+
return /* @__PURE__ */ (0, import_jsx_runtime254.jsxs)(
|
|
8810
9323
|
Box_default,
|
|
8811
9324
|
{
|
|
8812
9325
|
display: "flex",
|
|
@@ -8815,9 +9328,9 @@ var PackageHeader = ({
|
|
|
8815
9328
|
color: "var(--text-primary)",
|
|
8816
9329
|
className,
|
|
8817
9330
|
children: [
|
|
8818
|
-
/* @__PURE__ */ (0,
|
|
8819
|
-
subheader && /* @__PURE__ */ (0,
|
|
8820
|
-
features && /* @__PURE__ */ (0,
|
|
9331
|
+
/* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
9332
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(Text_default, { children: subheader }),
|
|
9333
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime254.jsx)(FeatureList_default, { items: features })
|
|
8821
9334
|
]
|
|
8822
9335
|
}
|
|
8823
9336
|
);
|
|
@@ -8825,8 +9338,8 @@ var PackageHeader = ({
|
|
|
8825
9338
|
var PackageHeader_default = PackageHeader;
|
|
8826
9339
|
|
|
8827
9340
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
8828
|
-
var
|
|
8829
|
-
var imageStyles3 =
|
|
9341
|
+
var import_react59 = require("@emotion/react");
|
|
9342
|
+
var imageStyles3 = import_react59.css`
|
|
8830
9343
|
flex: 1;
|
|
8831
9344
|
min-width: 0;
|
|
8832
9345
|
max-width: 100%;
|
|
@@ -8837,13 +9350,13 @@ var imageStyles3 = import_react55.css`
|
|
|
8837
9350
|
`;
|
|
8838
9351
|
|
|
8839
9352
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
8840
|
-
var
|
|
9353
|
+
var import_jsx_runtime255 = require("@emotion/react/jsx-runtime");
|
|
8841
9354
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
8842
9355
|
const displayImages = images.slice(0, maxImages);
|
|
8843
9356
|
if (displayImages.length === 0) {
|
|
8844
9357
|
return null;
|
|
8845
9358
|
}
|
|
8846
|
-
return /* @__PURE__ */ (0,
|
|
9359
|
+
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)(
|
|
8847
9360
|
"img",
|
|
8848
9361
|
{
|
|
8849
9362
|
src: image,
|
|
@@ -8856,7 +9369,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
8856
9369
|
var ReviewImages_default = ReviewImages;
|
|
8857
9370
|
|
|
8858
9371
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
8859
|
-
var
|
|
9372
|
+
var import_jsx_runtime256 = require("@emotion/react/jsx-runtime");
|
|
8860
9373
|
var ReviewReply = ({
|
|
8861
9374
|
avatarSrc,
|
|
8862
9375
|
name,
|
|
@@ -8865,7 +9378,7 @@ var ReviewReply = ({
|
|
|
8865
9378
|
label,
|
|
8866
9379
|
rating
|
|
8867
9380
|
}) => {
|
|
8868
|
-
return /* @__PURE__ */ (0,
|
|
9381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
|
|
8869
9382
|
Box_default,
|
|
8870
9383
|
{
|
|
8871
9384
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -8875,7 +9388,7 @@ var ReviewReply = ({
|
|
|
8875
9388
|
flexDirection: "column",
|
|
8876
9389
|
gap: "var(--spacing-3)",
|
|
8877
9390
|
children: [
|
|
8878
|
-
/* @__PURE__ */ (0,
|
|
9391
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsxs)(
|
|
8879
9392
|
Box_default,
|
|
8880
9393
|
{
|
|
8881
9394
|
display: "flex",
|
|
@@ -8883,7 +9396,7 @@ var ReviewReply = ({
|
|
|
8883
9396
|
justifyContent: "space-between",
|
|
8884
9397
|
gap: "var(--spacing-2)",
|
|
8885
9398
|
children: [
|
|
8886
|
-
/* @__PURE__ */ (0,
|
|
9399
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(
|
|
8887
9400
|
UserCard_default,
|
|
8888
9401
|
{
|
|
8889
9402
|
avatarSrc,
|
|
@@ -8892,11 +9405,11 @@ var ReviewReply = ({
|
|
|
8892
9405
|
rating
|
|
8893
9406
|
}
|
|
8894
9407
|
),
|
|
8895
|
-
/* @__PURE__ */ (0,
|
|
9408
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
8896
9409
|
]
|
|
8897
9410
|
}
|
|
8898
9411
|
),
|
|
8899
|
-
/* @__PURE__ */ (0,
|
|
9412
|
+
/* @__PURE__ */ (0, import_jsx_runtime256.jsx)(Text_default, { children: content })
|
|
8900
9413
|
]
|
|
8901
9414
|
}
|
|
8902
9415
|
);
|
|
@@ -8904,7 +9417,7 @@ var ReviewReply = ({
|
|
|
8904
9417
|
var ReviewReply_default = ReviewReply;
|
|
8905
9418
|
|
|
8906
9419
|
// src/ReviewCard/ReviewCard.tsx
|
|
8907
|
-
var
|
|
9420
|
+
var import_jsx_runtime257 = require("@emotion/react/jsx-runtime");
|
|
8908
9421
|
var ReviewCard = ({
|
|
8909
9422
|
avatarSrc,
|
|
8910
9423
|
name,
|
|
@@ -8916,7 +9429,7 @@ var ReviewCard = ({
|
|
|
8916
9429
|
replies = [],
|
|
8917
9430
|
className
|
|
8918
9431
|
}) => {
|
|
8919
|
-
return /* @__PURE__ */ (0,
|
|
9432
|
+
return /* @__PURE__ */ (0, import_jsx_runtime257.jsxs)(
|
|
8920
9433
|
Box_default,
|
|
8921
9434
|
{
|
|
8922
9435
|
backgroundColor: "white",
|
|
@@ -8927,7 +9440,7 @@ var ReviewCard = ({
|
|
|
8927
9440
|
gap: "var(--spacing-4)",
|
|
8928
9441
|
className,
|
|
8929
9442
|
children: [
|
|
8930
|
-
/* @__PURE__ */ (0,
|
|
9443
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(
|
|
8931
9444
|
UserCard_default,
|
|
8932
9445
|
{
|
|
8933
9446
|
avatarSrc,
|
|
@@ -8936,10 +9449,10 @@ var ReviewCard = ({
|
|
|
8936
9449
|
rating
|
|
8937
9450
|
}
|
|
8938
9451
|
),
|
|
8939
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
8940
|
-
/* @__PURE__ */ (0,
|
|
8941
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
8942
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
9452
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
9453
|
+
/* @__PURE__ */ (0, import_jsx_runtime257.jsx)(Text_default, { size: "md", children: content }),
|
|
9454
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime257.jsx)(ReviewImages_default, { images }),
|
|
9455
|
+
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)(
|
|
8943
9456
|
ReviewReply_default,
|
|
8944
9457
|
{
|
|
8945
9458
|
avatarSrc: reply.avatarSrc,
|
|
@@ -8958,12 +9471,12 @@ var ReviewCard = ({
|
|
|
8958
9471
|
var ReviewCard_default = ReviewCard;
|
|
8959
9472
|
|
|
8960
9473
|
// src/Reviews/Reviews.tsx
|
|
8961
|
-
var
|
|
9474
|
+
var import_react60 = require("@emotion/react");
|
|
8962
9475
|
|
|
8963
9476
|
// src/Reviews/components/ReviewItem.tsx
|
|
8964
|
-
var
|
|
9477
|
+
var import_jsx_runtime258 = require("@emotion/react/jsx-runtime");
|
|
8965
9478
|
var ReviewItem = ({ label, rating }) => {
|
|
8966
|
-
return /* @__PURE__ */ (0,
|
|
9479
|
+
return /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
|
|
8967
9480
|
Box_default,
|
|
8968
9481
|
{
|
|
8969
9482
|
display: "flex",
|
|
@@ -8971,10 +9484,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
8971
9484
|
alignItems: "center",
|
|
8972
9485
|
width: "100%",
|
|
8973
9486
|
children: [
|
|
8974
|
-
/* @__PURE__ */ (0,
|
|
8975
|
-
/* @__PURE__ */ (0,
|
|
8976
|
-
/* @__PURE__ */ (0,
|
|
8977
|
-
/* @__PURE__ */ (0,
|
|
9487
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
9488
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
9489
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
9490
|
+
/* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(Text_default, { fontWeight: "semibold", children: [
|
|
8978
9491
|
rating,
|
|
8979
9492
|
"/5"
|
|
8980
9493
|
] })
|
|
@@ -8986,14 +9499,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
8986
9499
|
var ReviewItem_default = ReviewItem;
|
|
8987
9500
|
|
|
8988
9501
|
// src/Reviews/Reviews.tsx
|
|
8989
|
-
var
|
|
9502
|
+
var import_jsx_runtime259 = require("@emotion/react/jsx-runtime");
|
|
8990
9503
|
var Reviews = ({
|
|
8991
9504
|
averageRating,
|
|
8992
9505
|
totalReviews,
|
|
8993
9506
|
items,
|
|
8994
9507
|
className
|
|
8995
9508
|
}) => {
|
|
8996
|
-
return /* @__PURE__ */ (0,
|
|
9509
|
+
return /* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
8997
9510
|
Box_default,
|
|
8998
9511
|
{
|
|
8999
9512
|
width: "100%",
|
|
@@ -9006,7 +9519,7 @@ var Reviews = ({
|
|
|
9006
9519
|
p: "var(--spacing-4)",
|
|
9007
9520
|
className,
|
|
9008
9521
|
children: [
|
|
9009
|
-
/* @__PURE__ */ (0,
|
|
9522
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(
|
|
9010
9523
|
Box_default,
|
|
9011
9524
|
{
|
|
9012
9525
|
display: "flex",
|
|
@@ -9014,12 +9527,12 @@ var Reviews = ({
|
|
|
9014
9527
|
alignItems: "center",
|
|
9015
9528
|
gap: "var(--spacing-2)",
|
|
9016
9529
|
children: [
|
|
9017
|
-
/* @__PURE__ */ (0,
|
|
9018
|
-
/* @__PURE__ */ (0,
|
|
9530
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
9531
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9019
9532
|
StarRating_default,
|
|
9020
9533
|
{
|
|
9021
9534
|
rating: Math.floor(averageRating),
|
|
9022
|
-
css:
|
|
9535
|
+
css: import_react60.css`
|
|
9023
9536
|
> svg {
|
|
9024
9537
|
height: 40px;
|
|
9025
9538
|
width: 40px;
|
|
@@ -9027,7 +9540,7 @@ var Reviews = ({
|
|
|
9027
9540
|
`
|
|
9028
9541
|
}
|
|
9029
9542
|
),
|
|
9030
|
-
/* @__PURE__ */ (0,
|
|
9543
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
9031
9544
|
"Overall Rating \u2022 ",
|
|
9032
9545
|
totalReviews,
|
|
9033
9546
|
" Review",
|
|
@@ -9036,14 +9549,14 @@ var Reviews = ({
|
|
|
9036
9549
|
]
|
|
9037
9550
|
}
|
|
9038
9551
|
),
|
|
9039
|
-
/* @__PURE__ */ (0,
|
|
9552
|
+
/* @__PURE__ */ (0, import_jsx_runtime259.jsx)(
|
|
9040
9553
|
Box_default,
|
|
9041
9554
|
{
|
|
9042
9555
|
display: "flex",
|
|
9043
9556
|
flexDirection: "column",
|
|
9044
9557
|
gap: "var(--spacing-2)",
|
|
9045
9558
|
width: "100%",
|
|
9046
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
9559
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime259.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
9047
9560
|
}
|
|
9048
9561
|
)
|
|
9049
9562
|
]
|
|
@@ -9053,7 +9566,7 @@ var Reviews = ({
|
|
|
9053
9566
|
var Reviews_default = Reviews;
|
|
9054
9567
|
|
|
9055
9568
|
// src/Reviews/ReviewsShowcase.tsx
|
|
9056
|
-
var
|
|
9569
|
+
var import_jsx_runtime260 = require("@emotion/react/jsx-runtime");
|
|
9057
9570
|
var ReviewsShowcase = () => {
|
|
9058
9571
|
const sampleData = {
|
|
9059
9572
|
averageRating: 4,
|
|
@@ -9075,7 +9588,7 @@ var ReviewsShowcase = () => {
|
|
|
9075
9588
|
{ label: "Game Abundance", rating: 5 }
|
|
9076
9589
|
]
|
|
9077
9590
|
};
|
|
9078
|
-
return /* @__PURE__ */ (0,
|
|
9591
|
+
return /* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(
|
|
9079
9592
|
Box_default,
|
|
9080
9593
|
{
|
|
9081
9594
|
display: "flex",
|
|
@@ -9083,24 +9596,24 @@ var ReviewsShowcase = () => {
|
|
|
9083
9596
|
gap: "var(--spacing-8)",
|
|
9084
9597
|
p: "var(--spacing-6)",
|
|
9085
9598
|
children: [
|
|
9086
|
-
/* @__PURE__ */ (0,
|
|
9087
|
-
/* @__PURE__ */ (0,
|
|
9088
|
-
/* @__PURE__ */ (0,
|
|
9089
|
-
/* @__PURE__ */ (0,
|
|
9599
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
9600
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
9601
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
9602
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Reviews_default, { ...sampleData }) })
|
|
9090
9603
|
] }),
|
|
9091
|
-
/* @__PURE__ */ (0,
|
|
9092
|
-
/* @__PURE__ */ (0,
|
|
9093
|
-
/* @__PURE__ */ (0,
|
|
9604
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
9605
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
9606
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Reviews_default, { ...highRatingData }) })
|
|
9094
9607
|
] }),
|
|
9095
|
-
/* @__PURE__ */ (0,
|
|
9096
|
-
/* @__PURE__ */ (0,
|
|
9097
|
-
/* @__PURE__ */ (0,
|
|
9608
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
9609
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
9610
|
+
/* @__PURE__ */ (0, import_jsx_runtime260.jsx)(
|
|
9098
9611
|
Box_default,
|
|
9099
9612
|
{
|
|
9100
9613
|
maxWidth: "320px",
|
|
9101
9614
|
border: "1px solid var(--color-neutral-200)",
|
|
9102
9615
|
p: "var(--spacing-4)",
|
|
9103
|
-
children: /* @__PURE__ */ (0,
|
|
9616
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime260.jsx)(Reviews_default, { ...sampleData })
|
|
9104
9617
|
}
|
|
9105
9618
|
)
|
|
9106
9619
|
] })
|
|
@@ -9112,6 +9625,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
9112
9625
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9113
9626
|
0 && (module.exports = {
|
|
9114
9627
|
AIResponse,
|
|
9628
|
+
ActionMenu,
|
|
9115
9629
|
AvailabilityBadge,
|
|
9116
9630
|
Avatar,
|
|
9117
9631
|
Box,
|
|
@@ -9156,6 +9670,7 @@ var ReviewsShowcase_default = ReviewsShowcase;
|
|
|
9156
9670
|
Text,
|
|
9157
9671
|
TextArea,
|
|
9158
9672
|
ThemeTokens,
|
|
9673
|
+
Tooltip,
|
|
9159
9674
|
TopMatchingFieldNote,
|
|
9160
9675
|
TopMatchingReview,
|
|
9161
9676
|
UserCard,
|