@landtrustinc/design-system 1.2.6 → 1.2.7
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 +24 -2
- package/dist/index.js +530 -371
- package/dist/index.js.map +1 -1
- package/dist/styles.ts +3 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -88,6 +88,7 @@ __export(styles_exports, {
|
|
|
88
88
|
ThemeTokens: () => ThemeTokens,
|
|
89
89
|
borderRadius: () => borderRadius,
|
|
90
90
|
boxShadow: () => boxShadow,
|
|
91
|
+
breakpoints: () => breakpoints,
|
|
91
92
|
colors: () => colors,
|
|
92
93
|
fontSizes: () => fontSizes,
|
|
93
94
|
fontWeights: () => fontWeights,
|
|
@@ -115,6 +116,7 @@ var media = {
|
|
|
115
116
|
lg: `@media (min-width: ${screens.lg})`,
|
|
116
117
|
xl: `@media (min-width: ${screens.xl})`
|
|
117
118
|
};
|
|
119
|
+
var breakpoints = [screens.sm, screens.md, screens.lg, screens.xl];
|
|
118
120
|
var colors = {
|
|
119
121
|
gray: {
|
|
120
122
|
100: "#f7fafc",
|
|
@@ -438,6 +440,7 @@ var zIndex = {
|
|
|
438
440
|
var ThemeTokens = {
|
|
439
441
|
screens,
|
|
440
442
|
media,
|
|
443
|
+
breakpoints,
|
|
441
444
|
colors,
|
|
442
445
|
fonts,
|
|
443
446
|
fontWeights,
|
|
@@ -4747,7 +4750,7 @@ var Avatar = ({
|
|
|
4747
4750
|
var Avatar_default = Avatar;
|
|
4748
4751
|
|
|
4749
4752
|
// src/ChatWidget/ChatWidget.tsx
|
|
4750
|
-
var
|
|
4753
|
+
var import_react30 = __toESM(require("react"));
|
|
4751
4754
|
|
|
4752
4755
|
// src/Divider/Divider.tsx
|
|
4753
4756
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
@@ -5066,14 +5069,12 @@ var import_react25 = require("@emotion/react");
|
|
|
5066
5069
|
var panelContainer = import_react25.css`
|
|
5067
5070
|
position: absolute;
|
|
5068
5071
|
right: 0;
|
|
5069
|
-
bottom:
|
|
5072
|
+
bottom: calc(100% + var(--spacing-2));
|
|
5070
5073
|
z-index: 1;
|
|
5071
5074
|
|
|
5072
|
-
@media (max-width: calc(${screens.
|
|
5075
|
+
@media (max-width: calc(${screens.lg} - 1px)) {
|
|
5073
5076
|
position: fixed;
|
|
5074
5077
|
inset: 0;
|
|
5075
|
-
right: 0;
|
|
5076
|
-
bottom: 0;
|
|
5077
5078
|
display: flex;
|
|
5078
5079
|
align-items: stretch;
|
|
5079
5080
|
justify-content: stretch;
|
|
@@ -5085,19 +5086,33 @@ var panelCard = (width2) => import_react25.css`
|
|
|
5085
5086
|
border: 1px solid var(--border-primary);
|
|
5086
5087
|
border-radius: var(--radius-lg);
|
|
5087
5088
|
padding: var(--spacing-4);
|
|
5088
|
-
overflow: auto;
|
|
5089
5089
|
box-shadow: 0 0 var(--shadow-blur-lg, 24px) var(--shadow-spread-xs, -4px)
|
|
5090
5090
|
rgba(17, 17, 17, 0.1);
|
|
5091
5091
|
|
|
5092
5092
|
/* Width passed from props (desktop/tablet) */
|
|
5093
5093
|
width: ${typeof width2 === "number" ? `${width2}px` : width2};
|
|
5094
5094
|
|
|
5095
|
-
|
|
5095
|
+
/* Scale animation on open */
|
|
5096
|
+
transform-origin: bottom right;
|
|
5097
|
+
animation: widgetScaleIn 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
|
|
5098
|
+
|
|
5099
|
+
@keyframes widgetScaleIn {
|
|
5100
|
+
from {
|
|
5101
|
+
transform: scale(0.7);
|
|
5102
|
+
}
|
|
5103
|
+
to {
|
|
5104
|
+
transform: scale(1);
|
|
5105
|
+
}
|
|
5106
|
+
}
|
|
5107
|
+
|
|
5108
|
+
@media (max-width: calc(${screens.lg} - 1px)) {
|
|
5096
5109
|
width: 100vw;
|
|
5097
5110
|
height: 100vh;
|
|
5111
|
+
max-height: 100vh;
|
|
5098
5112
|
border-radius: 0;
|
|
5099
5113
|
padding: var(--spacing-4);
|
|
5100
5114
|
overflow: auto;
|
|
5115
|
+
animation: none;
|
|
5101
5116
|
}
|
|
5102
5117
|
`;
|
|
5103
5118
|
var widgetTrigger = import_react25.css`
|
|
@@ -5131,29 +5146,19 @@ var WidgetTrigger = () => {
|
|
|
5131
5146
|
) });
|
|
5132
5147
|
};
|
|
5133
5148
|
var WidgetPanel = ({ className, style, children }) => {
|
|
5134
|
-
var _a;
|
|
5135
5149
|
const { expanded, panelWidth } = useWidgetContext();
|
|
5136
|
-
|
|
5137
|
-
|
|
5150
|
+
if (!expanded)
|
|
5151
|
+
return null;
|
|
5152
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)("div", { css: panelContainer, className, style, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5153
|
+
Box_default,
|
|
5138
5154
|
{
|
|
5139
|
-
css:
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
},
|
|
5145
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5146
|
-
Box_default,
|
|
5147
|
-
{
|
|
5148
|
-
css: panelCard(panelWidth),
|
|
5149
|
-
role: "dialog",
|
|
5150
|
-
"aria-modal": expanded ? true : false,
|
|
5151
|
-
"aria-hidden": !expanded,
|
|
5152
|
-
children
|
|
5153
|
-
}
|
|
5154
|
-
)
|
|
5155
|
+
css: panelCard(panelWidth),
|
|
5156
|
+
role: "dialog",
|
|
5157
|
+
"aria-modal": true,
|
|
5158
|
+
"aria-hidden": false,
|
|
5159
|
+
children
|
|
5155
5160
|
}
|
|
5156
|
-
);
|
|
5161
|
+
) });
|
|
5157
5162
|
};
|
|
5158
5163
|
var WidgetRoot = ({
|
|
5159
5164
|
ariaLabel,
|
|
@@ -5165,7 +5170,8 @@ var WidgetRoot = ({
|
|
|
5165
5170
|
panelWidth,
|
|
5166
5171
|
className,
|
|
5167
5172
|
children,
|
|
5168
|
-
containerProps
|
|
5173
|
+
containerProps,
|
|
5174
|
+
closeOnClickOutside = true
|
|
5169
5175
|
}) => {
|
|
5170
5176
|
const [internalExpanded, setInternalExpanded] = (0, import_react26.useState)(defaultExpanded);
|
|
5171
5177
|
const isControlled = typeof expanded === "boolean";
|
|
@@ -5191,7 +5197,7 @@ var WidgetRoot = ({
|
|
|
5191
5197
|
[isExpanded, setExpanded]
|
|
5192
5198
|
);
|
|
5193
5199
|
(0, import_react26.useEffect)(() => {
|
|
5194
|
-
if (!isExpanded)
|
|
5200
|
+
if (!isExpanded || !closeOnClickOutside)
|
|
5195
5201
|
return;
|
|
5196
5202
|
const onDocClick = (e) => {
|
|
5197
5203
|
const target = e.target;
|
|
@@ -5203,7 +5209,7 @@ var WidgetRoot = ({
|
|
|
5203
5209
|
};
|
|
5204
5210
|
document.addEventListener("mousedown", onDocClick);
|
|
5205
5211
|
return () => document.removeEventListener("mousedown", onDocClick);
|
|
5206
|
-
}, [isExpanded, setExpanded]);
|
|
5212
|
+
}, [isExpanded, setExpanded, closeOnClickOutside]);
|
|
5207
5213
|
(0, import_react26.useEffect)(() => {
|
|
5208
5214
|
if (!isExpanded)
|
|
5209
5215
|
return;
|
|
@@ -5268,9 +5274,11 @@ var containerStyles = import_react27.css`
|
|
|
5268
5274
|
flex-direction: column;
|
|
5269
5275
|
min-height: 0;
|
|
5270
5276
|
height: 765px;
|
|
5277
|
+
max-height: 80vh;
|
|
5271
5278
|
|
|
5272
|
-
@media (max-width: calc(${screens.
|
|
5279
|
+
@media (max-width: calc(${screens.lg} - 1px)) {
|
|
5273
5280
|
height: 100%;
|
|
5281
|
+
max-height: 100%;
|
|
5274
5282
|
}
|
|
5275
5283
|
`;
|
|
5276
5284
|
var thinkingRowStyles = import_react27.css`
|
|
@@ -5308,10 +5316,137 @@ var closeButtonContent = import_react27.css`
|
|
|
5308
5316
|
gap: var(--spacing-2);
|
|
5309
5317
|
`;
|
|
5310
5318
|
|
|
5311
|
-
// src/ChatWidget/
|
|
5319
|
+
// src/ChatWidget/components/AskBuckButton.tsx
|
|
5320
|
+
var import_react29 = __toESM(require("react"));
|
|
5321
|
+
|
|
5322
|
+
// src/ChatWidget/components/AskBuckButton.styles.ts
|
|
5323
|
+
var import_react28 = require("@emotion/react");
|
|
5324
|
+
var rotateGradient = import_react28.keyframes`
|
|
5325
|
+
0% {
|
|
5326
|
+
--gradient-angle: 0deg;
|
|
5327
|
+
}
|
|
5328
|
+
100% {
|
|
5329
|
+
--gradient-angle: 360deg;
|
|
5330
|
+
}
|
|
5331
|
+
`;
|
|
5332
|
+
var triggerWrapperStyles = (isAnimating) => import_react28.css`
|
|
5333
|
+
position: relative;
|
|
5334
|
+
display: inline-block;
|
|
5335
|
+
|
|
5336
|
+
/* Pseudo-element creates the animated gradient border */
|
|
5337
|
+
&::before {
|
|
5338
|
+
content: '';
|
|
5339
|
+
position: absolute;
|
|
5340
|
+
inset: -3px; /* 3px larger on all sides = border width */
|
|
5341
|
+
border-radius: var(--radius-round);
|
|
5342
|
+
z-index: -1; /* Behind the button */
|
|
5343
|
+
box-shadow: 0px 0px var(--shadow-blur-lg, 24px)
|
|
5344
|
+
var(--shadow-spread-xs, -4px) rgba(17, 17, 17, 0.1);
|
|
5345
|
+
|
|
5346
|
+
${isAnimating ? import_react28.css`
|
|
5347
|
+
/* Register the custom property */
|
|
5348
|
+
@property --gradient-angle {
|
|
5349
|
+
syntax: '<angle>';
|
|
5350
|
+
initial-value: 0deg;
|
|
5351
|
+
inherits: false;
|
|
5352
|
+
}
|
|
5353
|
+
|
|
5354
|
+
/* Animated gradient background */
|
|
5355
|
+
background: conic-gradient(
|
|
5356
|
+
from var(--gradient-angle, 0deg),
|
|
5357
|
+
var(--color-primary-600) 0%,
|
|
5358
|
+
var(--color-primary-600) 25%,
|
|
5359
|
+
var(--color-primary-300) 50%,
|
|
5360
|
+
var(--color-primary-600) 75%,
|
|
5361
|
+
var(--color-primary-600) 100%
|
|
5362
|
+
);
|
|
5363
|
+
animation: ${rotateGradient} 3s linear infinite;
|
|
5364
|
+
` : import_react28.css`
|
|
5365
|
+
/* Static border when not animating */
|
|
5366
|
+
background: var(--color-primary-600);
|
|
5367
|
+
`}
|
|
5368
|
+
}
|
|
5369
|
+
`;
|
|
5370
|
+
var badgeStyles = import_react28.css`
|
|
5371
|
+
display: inline-flex;
|
|
5372
|
+
align-items: center;
|
|
5373
|
+
justify-content: center;
|
|
5374
|
+
width: 16px;
|
|
5375
|
+
height: 16px;
|
|
5376
|
+
border-radius: 50%;
|
|
5377
|
+
background-color: var(--text-primary);
|
|
5378
|
+
color: var(--surface-page);
|
|
5379
|
+
font-size: 10px;
|
|
5380
|
+
font-weight: 700;
|
|
5381
|
+
line-height: 1;
|
|
5382
|
+
flex-shrink: 0;
|
|
5383
|
+
margin-right: var(--spacing-1);
|
|
5384
|
+
`;
|
|
5385
|
+
var buttonOverrideStyles = import_react28.css`
|
|
5386
|
+
background: var(--surface-page);
|
|
5387
|
+
border: none;
|
|
5388
|
+
border-radius: var(--radius-round);
|
|
5389
|
+
padding: var(--spacing-2) var(--spacing-7);
|
|
5390
|
+
box-shadow: none;
|
|
5391
|
+
color: var(--text-primary);
|
|
5392
|
+
font-weight: 700;
|
|
5393
|
+
gap: var(--spacing-2);
|
|
5394
|
+
|
|
5395
|
+
&:hover {
|
|
5396
|
+
background-color: var(--surface-action-3-hover);
|
|
5397
|
+
}
|
|
5398
|
+
|
|
5399
|
+
&:active {
|
|
5400
|
+
background-color: var(--surface-action-3-hover);
|
|
5401
|
+
}
|
|
5402
|
+
|
|
5403
|
+
&:focus {
|
|
5404
|
+
outline-offset: 3px;
|
|
5405
|
+
}
|
|
5406
|
+
|
|
5407
|
+
svg {
|
|
5408
|
+
color: var(--icon-primary);
|
|
5409
|
+
}
|
|
5410
|
+
`;
|
|
5411
|
+
|
|
5412
|
+
// src/ChatWidget/components/AskBuckButton.tsx
|
|
5312
5413
|
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
5414
|
+
var AskBuckButton = import_react29.default.forwardRef(
|
|
5415
|
+
({ isAnimating = true, children = "Ask Buck", badgeCount }, ref) => {
|
|
5416
|
+
var _a;
|
|
5417
|
+
const widgetContext = (0, import_react29.useContext)(WidgetContext);
|
|
5418
|
+
const isExpanded = (_a = widgetContext == null ? void 0 : widgetContext.expanded) != null ? _a : false;
|
|
5419
|
+
const showBadge = !isExpanded && badgeCount !== void 0 && badgeCount > 0;
|
|
5420
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("div", { css: triggerWrapperStyles(isAnimating), children: /* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
5421
|
+
Button_default,
|
|
5422
|
+
{
|
|
5423
|
+
ref,
|
|
5424
|
+
"aria-expanded": widgetContext == null ? void 0 : widgetContext.expanded,
|
|
5425
|
+
"aria-haspopup": "dialog",
|
|
5426
|
+
onClick: widgetContext == null ? void 0 : widgetContext.toggle,
|
|
5427
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(import_jsx_runtime215.Fragment, { children: [
|
|
5428
|
+
showBadge && /* @__PURE__ */ (0, import_jsx_runtime215.jsx)("span", { css: badgeStyles, children: badgeCount }),
|
|
5429
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
5430
|
+
Icon_default,
|
|
5431
|
+
{
|
|
5432
|
+
variant: isExpanded ? "AngleDownSharp" : "ConversationalSearchAi",
|
|
5433
|
+
size: "large"
|
|
5434
|
+
}
|
|
5435
|
+
)
|
|
5436
|
+
] }),
|
|
5437
|
+
css: buttonOverrideStyles,
|
|
5438
|
+
children: isExpanded ? "Close" : children
|
|
5439
|
+
}
|
|
5440
|
+
) });
|
|
5441
|
+
}
|
|
5442
|
+
);
|
|
5443
|
+
AskBuckButton.displayName = "AskBuckButton";
|
|
5444
|
+
var AskBuckButton_default = AskBuckButton;
|
|
5445
|
+
|
|
5446
|
+
// src/ChatWidget/ChatWidget.tsx
|
|
5447
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
5313
5448
|
var DEFAULT_EMPTY_STATE = [
|
|
5314
|
-
/* @__PURE__ */ (0,
|
|
5449
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
5315
5450
|
AIResponse_default,
|
|
5316
5451
|
{
|
|
5317
5452
|
showDisclaimer: false,
|
|
@@ -5335,43 +5470,66 @@ var ChatWidget = ({
|
|
|
5335
5470
|
defaultExpanded = false,
|
|
5336
5471
|
onExpandedChange,
|
|
5337
5472
|
isThinking = false,
|
|
5473
|
+
thinkingText = "Thinking...",
|
|
5338
5474
|
emptyState = DEFAULT_EMPTY_STATE,
|
|
5339
5475
|
containerProps,
|
|
5340
5476
|
suggestedPrompts,
|
|
5341
5477
|
onPromptClick,
|
|
5342
|
-
suggestedPromptsTitle = "Other Helpful Topics"
|
|
5478
|
+
suggestedPromptsTitle = "Other Helpful Topics",
|
|
5479
|
+
notificationCount,
|
|
5480
|
+
closeOnClickOutside = true
|
|
5343
5481
|
}) => {
|
|
5344
|
-
const [value, setValue] = (0,
|
|
5345
|
-
const scrollRef = (0,
|
|
5482
|
+
const [value, setValue] = (0, import_react30.useState)("");
|
|
5483
|
+
const scrollRef = (0, import_react30.useRef)(null);
|
|
5484
|
+
const savedScrollPosition = (0, import_react30.useRef)(0);
|
|
5485
|
+
const previousMessagesLength = (0, import_react30.useRef)(messages.length);
|
|
5346
5486
|
const isControlled = typeof expanded === "boolean";
|
|
5347
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
5487
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react30.useState)(defaultExpanded);
|
|
5348
5488
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
5349
|
-
const setExpanded = (0,
|
|
5489
|
+
const setExpanded = (0, import_react30.useCallback)(
|
|
5350
5490
|
(next) => {
|
|
5491
|
+
if (!next && scrollRef.current) {
|
|
5492
|
+
savedScrollPosition.current = scrollRef.current.scrollTop;
|
|
5493
|
+
}
|
|
5351
5494
|
if (!isControlled)
|
|
5352
5495
|
setInternalExpanded(next);
|
|
5353
5496
|
onExpandedChange == null ? void 0 : onExpandedChange(next);
|
|
5354
5497
|
},
|
|
5355
5498
|
[isControlled, onExpandedChange]
|
|
5356
5499
|
);
|
|
5357
|
-
(0,
|
|
5500
|
+
(0, import_react30.useEffect)(() => {
|
|
5501
|
+
const el = scrollRef.current;
|
|
5502
|
+
if (!el || !isExpanded)
|
|
5503
|
+
return;
|
|
5504
|
+
requestAnimationFrame(() => {
|
|
5505
|
+
if (savedScrollPosition.current > 0) {
|
|
5506
|
+
el.scrollTop = savedScrollPosition.current;
|
|
5507
|
+
}
|
|
5508
|
+
});
|
|
5509
|
+
}, [isExpanded]);
|
|
5510
|
+
(0, import_react30.useEffect)(() => {
|
|
5358
5511
|
const el = scrollRef.current;
|
|
5359
|
-
if (!el)
|
|
5512
|
+
if (!el || !isExpanded)
|
|
5360
5513
|
return;
|
|
5361
|
-
|
|
5362
|
-
|
|
5514
|
+
const messagesChanged = messages.length !== previousMessagesLength.current;
|
|
5515
|
+
previousMessagesLength.current = messages.length;
|
|
5516
|
+
if (messagesChanged || isThinking) {
|
|
5517
|
+
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
5518
|
+
savedScrollPosition.current = el.scrollHeight;
|
|
5519
|
+
}
|
|
5520
|
+
}, [messages, isThinking, isExpanded]);
|
|
5363
5521
|
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
5364
|
-
const renderedMessages = (0,
|
|
5522
|
+
const renderedMessages = (0, import_react30.useMemo)(
|
|
5365
5523
|
() => messagesToRender.map((element, index) => {
|
|
5366
5524
|
var _a;
|
|
5367
5525
|
const key = (_a = element.key) != null ? _a : index;
|
|
5368
5526
|
if (element.type === AIResponse_default) {
|
|
5369
|
-
return /* @__PURE__ */ (0,
|
|
5527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { css: receivedWrapperStyles, children: element }, key);
|
|
5370
5528
|
}
|
|
5371
5529
|
if (element.type === MessageBubble_default) {
|
|
5372
|
-
return /* @__PURE__ */ (0,
|
|
5530
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
5373
5531
|
}
|
|
5374
|
-
return /* @__PURE__ */ (0,
|
|
5532
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(import_react30.default.Fragment, { children: element }, key);
|
|
5375
5533
|
}),
|
|
5376
5534
|
[messagesToRender]
|
|
5377
5535
|
);
|
|
@@ -5382,7 +5540,7 @@ var ChatWidget = ({
|
|
|
5382
5540
|
onSubmit(trimmed);
|
|
5383
5541
|
setValue("");
|
|
5384
5542
|
};
|
|
5385
|
-
return /* @__PURE__ */ (0,
|
|
5543
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
|
|
5386
5544
|
Widget_default,
|
|
5387
5545
|
{
|
|
5388
5546
|
ariaLabel,
|
|
@@ -5392,11 +5550,12 @@ var ChatWidget = ({
|
|
|
5392
5550
|
panelWidth,
|
|
5393
5551
|
className,
|
|
5394
5552
|
containerProps,
|
|
5553
|
+
closeOnClickOutside,
|
|
5395
5554
|
children: [
|
|
5396
|
-
/* @__PURE__ */ (0,
|
|
5397
|
-
/* @__PURE__ */ (0,
|
|
5398
|
-
/* @__PURE__ */ (0,
|
|
5399
|
-
/* @__PURE__ */ (0,
|
|
5555
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { mt: 2, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(AskBuckButton_default, { badgeCount: notificationCount }) }),
|
|
5556
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Widget_default.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Box_default, { css: containerStyles, children: [
|
|
5557
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Box_default, { position: "sticky", top: 0, zIndex: 1, children: [
|
|
5558
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
|
|
5400
5559
|
Box_default,
|
|
5401
5560
|
{
|
|
5402
5561
|
display: "flex",
|
|
@@ -5404,9 +5563,9 @@ var ChatWidget = ({
|
|
|
5404
5563
|
justifyContent: "space-between",
|
|
5405
5564
|
gap: "var(--spacing-4)",
|
|
5406
5565
|
children: [
|
|
5407
|
-
/* @__PURE__ */ (0,
|
|
5408
|
-
/* @__PURE__ */ (0,
|
|
5409
|
-
/* @__PURE__ */ (0,
|
|
5566
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
|
|
5567
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: "large" }) }),
|
|
5568
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
5410
5569
|
Heading_default,
|
|
5411
5570
|
{
|
|
5412
5571
|
size: "2xs",
|
|
@@ -5416,25 +5575,25 @@ var ChatWidget = ({
|
|
|
5416
5575
|
}
|
|
5417
5576
|
)
|
|
5418
5577
|
] }),
|
|
5419
|
-
/* @__PURE__ */ (0,
|
|
5578
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
5420
5579
|
Button_default,
|
|
5421
5580
|
{
|
|
5422
5581
|
variant: "text",
|
|
5423
5582
|
size: "xs",
|
|
5424
5583
|
"aria-label": "Close widget",
|
|
5425
5584
|
onClick: () => setExpanded(false),
|
|
5426
|
-
children: /* @__PURE__ */ (0,
|
|
5427
|
-
/* @__PURE__ */ (0,
|
|
5428
|
-
/* @__PURE__ */ (0,
|
|
5585
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("span", { css: closeButtonContent, children: [
|
|
5586
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Icon_default, { variant: "Xmark", size: "medium" }),
|
|
5587
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)("span", { children: "Close" })
|
|
5429
5588
|
] })
|
|
5430
5589
|
}
|
|
5431
5590
|
)
|
|
5432
5591
|
]
|
|
5433
5592
|
}
|
|
5434
5593
|
),
|
|
5435
|
-
/* @__PURE__ */ (0,
|
|
5594
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
5436
5595
|
] }),
|
|
5437
|
-
/* @__PURE__ */ (0,
|
|
5596
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
|
|
5438
5597
|
Box_default,
|
|
5439
5598
|
{
|
|
5440
5599
|
ref: scrollRef,
|
|
@@ -5447,27 +5606,27 @@ var ChatWidget = ({
|
|
|
5447
5606
|
flexDirection: "column",
|
|
5448
5607
|
gap: "var(--spacing-2)",
|
|
5449
5608
|
children: [
|
|
5450
|
-
/* @__PURE__ */ (0,
|
|
5451
|
-
isThinking && /* @__PURE__ */ (0,
|
|
5452
|
-
/* @__PURE__ */ (0,
|
|
5453
|
-
/* @__PURE__ */ (0,
|
|
5609
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
5610
|
+
isThinking && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
5611
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Spinner_default2, { size: "medium" }),
|
|
5612
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)("span", { css: thinkingTextStyles, children: thinkingText })
|
|
5454
5613
|
] }) }),
|
|
5455
|
-
suggestedPrompts && suggestedPrompts.length > 0 && /* @__PURE__ */ (0,
|
|
5614
|
+
suggestedPrompts && suggestedPrompts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
|
|
5456
5615
|
Box_default,
|
|
5457
5616
|
{
|
|
5458
5617
|
display: "flex",
|
|
5459
5618
|
flexDirection: "column",
|
|
5460
5619
|
gap: "var(--spacing-4)",
|
|
5461
5620
|
children: [
|
|
5462
|
-
/* @__PURE__ */ (0,
|
|
5463
|
-
/* @__PURE__ */ (0,
|
|
5621
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Text_default, { size: "md", fontWeight: "bold", color: "var(--text-primary)", children: suggestedPromptsTitle }),
|
|
5622
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
5464
5623
|
Box_default,
|
|
5465
5624
|
{
|
|
5466
5625
|
display: "flex",
|
|
5467
5626
|
flexWrap: "wrap",
|
|
5468
5627
|
gap: "var(--spacing-4)",
|
|
5469
5628
|
alignItems: "flex-start",
|
|
5470
|
-
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0,
|
|
5629
|
+
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
5471
5630
|
TagChip_default,
|
|
5472
5631
|
{
|
|
5473
5632
|
variant: "success",
|
|
@@ -5488,7 +5647,7 @@ var ChatWidget = ({
|
|
|
5488
5647
|
]
|
|
5489
5648
|
}
|
|
5490
5649
|
),
|
|
5491
|
-
/* @__PURE__ */ (0,
|
|
5650
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { position: "sticky", bottom: 0, zIndex: 1, p: 0, children: /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(
|
|
5492
5651
|
TextArea_default,
|
|
5493
5652
|
{
|
|
5494
5653
|
rows: 3,
|
|
@@ -5512,7 +5671,7 @@ var ChatWidget_default = ChatWidget;
|
|
|
5512
5671
|
|
|
5513
5672
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
5514
5673
|
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
5515
|
-
var
|
|
5674
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5516
5675
|
var FeatureListItem = ({
|
|
5517
5676
|
iconVariant,
|
|
5518
5677
|
label,
|
|
@@ -5526,8 +5685,8 @@ var FeatureListItem = ({
|
|
|
5526
5685
|
}) => {
|
|
5527
5686
|
const iconDimensions = IconSizeMap[iconSize];
|
|
5528
5687
|
if (isLoading) {
|
|
5529
|
-
return /* @__PURE__ */ (0,
|
|
5530
|
-
/* @__PURE__ */ (0,
|
|
5688
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
5689
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
|
|
5531
5690
|
Box_default,
|
|
5532
5691
|
{
|
|
5533
5692
|
display: "flex",
|
|
@@ -5536,7 +5695,7 @@ var FeatureListItem = ({
|
|
|
5536
5695
|
className,
|
|
5537
5696
|
...rest,
|
|
5538
5697
|
children: [
|
|
5539
|
-
/* @__PURE__ */ (0,
|
|
5698
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5540
5699
|
import_react_loading_skeleton.default,
|
|
5541
5700
|
{
|
|
5542
5701
|
circle: true,
|
|
@@ -5545,24 +5704,24 @@ var FeatureListItem = ({
|
|
|
5545
5704
|
borderRadius: 4
|
|
5546
5705
|
}
|
|
5547
5706
|
),
|
|
5548
|
-
/* @__PURE__ */ (0,
|
|
5707
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
5549
5708
|
]
|
|
5550
5709
|
}
|
|
5551
5710
|
),
|
|
5552
|
-
subtitle && /* @__PURE__ */ (0,
|
|
5553
|
-
/* @__PURE__ */ (0,
|
|
5554
|
-
/* @__PURE__ */ (0,
|
|
5711
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
5712
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
5713
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(import_react_loading_skeleton.default, { width: 150, height: 14, borderRadius: 4 })
|
|
5555
5714
|
] })
|
|
5556
5715
|
] });
|
|
5557
5716
|
}
|
|
5558
|
-
return /* @__PURE__ */ (0,
|
|
5559
|
-
/* @__PURE__ */ (0,
|
|
5717
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: isInline ? /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Text_default, { as: "span", children: [
|
|
5718
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Text_default, { as: "span", fontWeight: "bold", children: [
|
|
5560
5719
|
label,
|
|
5561
5720
|
" "
|
|
5562
5721
|
] }),
|
|
5563
5722
|
subtitle
|
|
5564
|
-
] }) }) : /* @__PURE__ */ (0,
|
|
5565
|
-
/* @__PURE__ */ (0,
|
|
5723
|
+
] }) }) : /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(import_jsx_runtime217.Fragment, { children: [
|
|
5724
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(
|
|
5566
5725
|
Box_default,
|
|
5567
5726
|
{
|
|
5568
5727
|
display: "flex",
|
|
@@ -5571,23 +5730,23 @@ var FeatureListItem = ({
|
|
|
5571
5730
|
className,
|
|
5572
5731
|
...rest,
|
|
5573
5732
|
children: [
|
|
5574
|
-
iconVariant && /* @__PURE__ */ (0,
|
|
5575
|
-
/* @__PURE__ */ (0,
|
|
5733
|
+
iconVariant && /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Icon_default, { variant: iconVariant, size: iconSize, fill: iconColor }),
|
|
5734
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Text_default, { fontWeight: "semibold", children: label })
|
|
5576
5735
|
]
|
|
5577
5736
|
}
|
|
5578
5737
|
),
|
|
5579
|
-
subtitle && /* @__PURE__ */ (0,
|
|
5580
|
-
/* @__PURE__ */ (0,
|
|
5581
|
-
/* @__PURE__ */ (0,
|
|
5738
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
5739
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
5740
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
5582
5741
|
] })
|
|
5583
5742
|
] }) });
|
|
5584
5743
|
};
|
|
5585
5744
|
var FeatureListItem_default = FeatureListItem;
|
|
5586
5745
|
|
|
5587
5746
|
// src/FeatureList/FeatureList.tsx
|
|
5588
|
-
var
|
|
5747
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
5589
5748
|
var FeatureList = ({ heading, items, className }) => {
|
|
5590
|
-
return /* @__PURE__ */ (0,
|
|
5749
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
|
|
5591
5750
|
Box_default,
|
|
5592
5751
|
{
|
|
5593
5752
|
display: "flex",
|
|
@@ -5595,8 +5754,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
5595
5754
|
gap: "var(--spacing-2)",
|
|
5596
5755
|
className,
|
|
5597
5756
|
children: [
|
|
5598
|
-
heading && /* @__PURE__ */ (0,
|
|
5599
|
-
/* @__PURE__ */ (0,
|
|
5757
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
5758
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(FeatureListItem_default, { ...item }, `${item.iconVariant}-${index}`)) })
|
|
5600
5759
|
]
|
|
5601
5760
|
}
|
|
5602
5761
|
);
|
|
@@ -5604,8 +5763,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
5604
5763
|
var FeatureList_default = FeatureList;
|
|
5605
5764
|
|
|
5606
5765
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
5607
|
-
var
|
|
5608
|
-
var cardContainerStyles =
|
|
5766
|
+
var import_react31 = require("@emotion/react");
|
|
5767
|
+
var cardContainerStyles = import_react31.css`
|
|
5609
5768
|
position: relative;
|
|
5610
5769
|
height: 335px;
|
|
5611
5770
|
|
|
@@ -5613,12 +5772,12 @@ var cardContainerStyles = import_react29.css`
|
|
|
5613
5772
|
height: 480px;
|
|
5614
5773
|
}
|
|
5615
5774
|
`;
|
|
5616
|
-
var cardContentStyles =
|
|
5775
|
+
var cardContentStyles = import_react31.css`
|
|
5617
5776
|
position: relative;
|
|
5618
5777
|
border-radius: var(--spacing-4);
|
|
5619
5778
|
overflow: hidden;
|
|
5620
5779
|
`;
|
|
5621
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
5780
|
+
var getBackgroundWithGradient = (imageUrl) => import_react31.css`
|
|
5622
5781
|
background-image: linear-gradient(
|
|
5623
5782
|
180deg,
|
|
5624
5783
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -5632,7 +5791,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react29.css`
|
|
|
5632
5791
|
`;
|
|
5633
5792
|
|
|
5634
5793
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
5635
|
-
var
|
|
5794
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
5636
5795
|
var FieldNoteCard = ({
|
|
5637
5796
|
backgroundImage,
|
|
5638
5797
|
title,
|
|
@@ -5641,14 +5800,14 @@ var FieldNoteCard = ({
|
|
|
5641
5800
|
className,
|
|
5642
5801
|
...rest
|
|
5643
5802
|
}) => {
|
|
5644
|
-
return /* @__PURE__ */ (0,
|
|
5803
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5645
5804
|
Box_default,
|
|
5646
5805
|
{
|
|
5647
5806
|
display: "flex",
|
|
5648
5807
|
css: cardContainerStyles,
|
|
5649
5808
|
className,
|
|
5650
5809
|
...rest,
|
|
5651
|
-
children: /* @__PURE__ */ (0,
|
|
5810
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5652
5811
|
Box_default,
|
|
5653
5812
|
{
|
|
5654
5813
|
display: "flex",
|
|
@@ -5656,9 +5815,9 @@ var FieldNoteCard = ({
|
|
|
5656
5815
|
justifyContent: "flex-end",
|
|
5657
5816
|
p: 6,
|
|
5658
5817
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
5659
|
-
children: /* @__PURE__ */ (0,
|
|
5660
|
-
/* @__PURE__ */ (0,
|
|
5661
|
-
/* @__PURE__ */ (0,
|
|
5818
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
5819
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
5820
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
5662
5821
|
] })
|
|
5663
5822
|
}
|
|
5664
5823
|
)
|
|
@@ -5668,14 +5827,14 @@ var FieldNoteCard = ({
|
|
|
5668
5827
|
var FieldNoteCard_default = FieldNoteCard;
|
|
5669
5828
|
|
|
5670
5829
|
// src/Form/FormField.tsx
|
|
5671
|
-
var
|
|
5672
|
-
var
|
|
5673
|
-
var fieldContainerStyles =
|
|
5830
|
+
var import_react32 = require("@emotion/react");
|
|
5831
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5832
|
+
var fieldContainerStyles = import_react32.css`
|
|
5674
5833
|
display: flex;
|
|
5675
5834
|
flex-direction: column;
|
|
5676
5835
|
gap: ${space["2"]};
|
|
5677
5836
|
`;
|
|
5678
|
-
var labelStyles2 =
|
|
5837
|
+
var labelStyles2 = import_react32.css`
|
|
5679
5838
|
font-family: ${fonts.base};
|
|
5680
5839
|
font-size: ${fontSizes.sm};
|
|
5681
5840
|
font-weight: ${fontWeights.medium};
|
|
@@ -5683,17 +5842,17 @@ var labelStyles2 = import_react30.css`
|
|
|
5683
5842
|
color: ${colors.gray["900"]};
|
|
5684
5843
|
margin-bottom: ${space["1"]};
|
|
5685
5844
|
`;
|
|
5686
|
-
var requiredIndicatorStyles =
|
|
5845
|
+
var requiredIndicatorStyles = import_react32.css`
|
|
5687
5846
|
color: ${colors.red["500"]};
|
|
5688
5847
|
margin-left: ${space["1"]};
|
|
5689
5848
|
`;
|
|
5690
|
-
var helpTextStyles =
|
|
5849
|
+
var helpTextStyles = import_react32.css`
|
|
5691
5850
|
font-family: ${fonts.base};
|
|
5692
5851
|
font-size: ${fontSizes.sm};
|
|
5693
5852
|
line-height: ${lineHeights.tight};
|
|
5694
5853
|
color: ${colors.gray["600"]};
|
|
5695
5854
|
`;
|
|
5696
|
-
var errorTextStyles =
|
|
5855
|
+
var errorTextStyles = import_react32.css`
|
|
5697
5856
|
font-family: ${fonts.base};
|
|
5698
5857
|
font-size: ${fontSizes.sm};
|
|
5699
5858
|
line-height: ${lineHeights.tight};
|
|
@@ -5702,7 +5861,7 @@ var errorTextStyles = import_react30.css`
|
|
|
5702
5861
|
align-items: center;
|
|
5703
5862
|
gap: ${space["1"]};
|
|
5704
5863
|
`;
|
|
5705
|
-
var successTextStyles =
|
|
5864
|
+
var successTextStyles = import_react32.css`
|
|
5706
5865
|
font-family: ${fonts.base};
|
|
5707
5866
|
font-size: ${fontSizes.sm};
|
|
5708
5867
|
line-height: ${lineHeights.tight};
|
|
@@ -5711,7 +5870,7 @@ var successTextStyles = import_react30.css`
|
|
|
5711
5870
|
align-items: center;
|
|
5712
5871
|
gap: ${space["1"]};
|
|
5713
5872
|
`;
|
|
5714
|
-
var visuallyHiddenStyles =
|
|
5873
|
+
var visuallyHiddenStyles = import_react32.css`
|
|
5715
5874
|
position: absolute;
|
|
5716
5875
|
width: 1px;
|
|
5717
5876
|
height: 1px;
|
|
@@ -5736,21 +5895,21 @@ var FormField = ({
|
|
|
5736
5895
|
const hasError = !!error;
|
|
5737
5896
|
const hasSuccess = !!success && !hasError;
|
|
5738
5897
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
5739
|
-
return /* @__PURE__ */ (0,
|
|
5740
|
-
label && /* @__PURE__ */ (0,
|
|
5898
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
5899
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
5741
5900
|
"label",
|
|
5742
5901
|
{
|
|
5743
5902
|
htmlFor,
|
|
5744
5903
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
5745
5904
|
children: [
|
|
5746
5905
|
label,
|
|
5747
|
-
required && /* @__PURE__ */ (0,
|
|
5906
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime220.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
5748
5907
|
]
|
|
5749
5908
|
}
|
|
5750
5909
|
),
|
|
5751
5910
|
children,
|
|
5752
|
-
hasError && /* @__PURE__ */ (0,
|
|
5753
|
-
/* @__PURE__ */ (0,
|
|
5911
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
5912
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5754
5913
|
"path",
|
|
5755
5914
|
{
|
|
5756
5915
|
fillRule: "evenodd",
|
|
@@ -5760,8 +5919,8 @@ var FormField = ({
|
|
|
5760
5919
|
) }),
|
|
5761
5920
|
error
|
|
5762
5921
|
] }),
|
|
5763
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
5764
|
-
/* @__PURE__ */ (0,
|
|
5922
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)("div", { css: successTextStyles, children: [
|
|
5923
|
+
/* @__PURE__ */ (0, import_jsx_runtime220.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5765
5924
|
"path",
|
|
5766
5925
|
{
|
|
5767
5926
|
fillRule: "evenodd",
|
|
@@ -5771,15 +5930,15 @@ var FormField = ({
|
|
|
5771
5930
|
) }),
|
|
5772
5931
|
success
|
|
5773
5932
|
] }),
|
|
5774
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
5933
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime220.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
5775
5934
|
] });
|
|
5776
5935
|
};
|
|
5777
5936
|
|
|
5778
5937
|
// src/Form/Input.tsx
|
|
5779
|
-
var
|
|
5780
|
-
var
|
|
5781
|
-
var
|
|
5782
|
-
var inputStyles =
|
|
5938
|
+
var import_react33 = require("@emotion/react");
|
|
5939
|
+
var import_react34 = require("react");
|
|
5940
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
5941
|
+
var inputStyles = import_react33.css`
|
|
5783
5942
|
position: relative;
|
|
5784
5943
|
width: 100%;
|
|
5785
5944
|
font-family: ${fonts.base};
|
|
@@ -5816,19 +5975,19 @@ var inputStyles = import_react31.css`
|
|
|
5816
5975
|
}
|
|
5817
5976
|
`;
|
|
5818
5977
|
var sizeStyles = {
|
|
5819
|
-
sm:
|
|
5978
|
+
sm: import_react33.css`
|
|
5820
5979
|
padding: ${space["2"]} ${space["3"]};
|
|
5821
5980
|
font-size: ${fontSizes.sm};
|
|
5822
5981
|
line-height: ${lineHeights.tight};
|
|
5823
5982
|
height: ${space["8"]};
|
|
5824
5983
|
`,
|
|
5825
|
-
md:
|
|
5984
|
+
md: import_react33.css`
|
|
5826
5985
|
padding: ${space["3"]} ${space["4"]};
|
|
5827
5986
|
font-size: ${fontSizes.base};
|
|
5828
5987
|
line-height: ${lineHeights.normal};
|
|
5829
5988
|
height: ${space["10"]};
|
|
5830
5989
|
`,
|
|
5831
|
-
lg:
|
|
5990
|
+
lg: import_react33.css`
|
|
5832
5991
|
padding: ${space["4"]} ${space["5"]};
|
|
5833
5992
|
font-size: ${fontSizes.lg};
|
|
5834
5993
|
line-height: ${lineHeights.normal};
|
|
@@ -5836,8 +5995,8 @@ var sizeStyles = {
|
|
|
5836
5995
|
`
|
|
5837
5996
|
};
|
|
5838
5997
|
var variantStyles = {
|
|
5839
|
-
default:
|
|
5840
|
-
error:
|
|
5998
|
+
default: import_react33.css``,
|
|
5999
|
+
error: import_react33.css`
|
|
5841
6000
|
border-color: ${colors.red["500"]};
|
|
5842
6001
|
|
|
5843
6002
|
&:focus {
|
|
@@ -5845,7 +6004,7 @@ var variantStyles = {
|
|
|
5845
6004
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5846
6005
|
}
|
|
5847
6006
|
`,
|
|
5848
|
-
success:
|
|
6007
|
+
success: import_react33.css`
|
|
5849
6008
|
border-color: ${colors.accent.green};
|
|
5850
6009
|
|
|
5851
6010
|
&:focus {
|
|
@@ -5854,7 +6013,7 @@ var variantStyles = {
|
|
|
5854
6013
|
}
|
|
5855
6014
|
`
|
|
5856
6015
|
};
|
|
5857
|
-
var inputWithIconStyles =
|
|
6016
|
+
var inputWithIconStyles = import_react33.css`
|
|
5858
6017
|
padding-left: ${space["10"]};
|
|
5859
6018
|
|
|
5860
6019
|
&.has-end-icon {
|
|
@@ -5865,7 +6024,7 @@ var inputWithIconStyles = import_react31.css`
|
|
|
5865
6024
|
padding-left: ${space["10"]};
|
|
5866
6025
|
}
|
|
5867
6026
|
`;
|
|
5868
|
-
var iconContainerStyles =
|
|
6027
|
+
var iconContainerStyles = import_react33.css`
|
|
5869
6028
|
position: absolute;
|
|
5870
6029
|
top: 50%;
|
|
5871
6030
|
transform: translateY(-50%);
|
|
@@ -5876,20 +6035,20 @@ var iconContainerStyles = import_react31.css`
|
|
|
5876
6035
|
pointer-events: none;
|
|
5877
6036
|
z-index: 1;
|
|
5878
6037
|
`;
|
|
5879
|
-
var startIconStyles =
|
|
6038
|
+
var startIconStyles = import_react33.css`
|
|
5880
6039
|
${iconContainerStyles}
|
|
5881
6040
|
left: ${space["3"]};
|
|
5882
6041
|
`;
|
|
5883
|
-
var endIconStyles =
|
|
6042
|
+
var endIconStyles = import_react33.css`
|
|
5884
6043
|
${iconContainerStyles}
|
|
5885
6044
|
right: ${space["3"]};
|
|
5886
6045
|
`;
|
|
5887
|
-
var inputWrapperStyles =
|
|
6046
|
+
var inputWrapperStyles = import_react33.css`
|
|
5888
6047
|
position: relative;
|
|
5889
6048
|
display: inline-block;
|
|
5890
6049
|
width: 100%;
|
|
5891
6050
|
`;
|
|
5892
|
-
var Input = (0,
|
|
6051
|
+
var Input = (0, import_react34.forwardRef)(
|
|
5893
6052
|
({
|
|
5894
6053
|
size = "md",
|
|
5895
6054
|
variant = "default",
|
|
@@ -5908,9 +6067,9 @@ var Input = (0, import_react32.forwardRef)(
|
|
|
5908
6067
|
hasEndIcon && "has-end-icon",
|
|
5909
6068
|
className
|
|
5910
6069
|
].filter(Boolean).join(" ");
|
|
5911
|
-
return /* @__PURE__ */ (0,
|
|
5912
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
5913
|
-
/* @__PURE__ */ (0,
|
|
6070
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
6071
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
6072
|
+
/* @__PURE__ */ (0, import_jsx_runtime221.jsx)(
|
|
5914
6073
|
"input",
|
|
5915
6074
|
{
|
|
5916
6075
|
ref,
|
|
@@ -5927,17 +6086,17 @@ var Input = (0, import_react32.forwardRef)(
|
|
|
5927
6086
|
...props
|
|
5928
6087
|
}
|
|
5929
6088
|
),
|
|
5930
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
6089
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime221.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
5931
6090
|
] });
|
|
5932
6091
|
}
|
|
5933
6092
|
);
|
|
5934
6093
|
Input.displayName = "Input";
|
|
5935
6094
|
|
|
5936
6095
|
// src/Form/Select.tsx
|
|
5937
|
-
var
|
|
5938
|
-
var
|
|
5939
|
-
var
|
|
5940
|
-
var selectStyles =
|
|
6096
|
+
var import_react35 = require("@emotion/react");
|
|
6097
|
+
var import_react36 = require("react");
|
|
6098
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
6099
|
+
var selectStyles = import_react35.css`
|
|
5941
6100
|
position: relative;
|
|
5942
6101
|
width: 100%;
|
|
5943
6102
|
font-family: ${fonts.base};
|
|
@@ -5976,19 +6135,19 @@ var selectStyles = import_react33.css`
|
|
|
5976
6135
|
}
|
|
5977
6136
|
`;
|
|
5978
6137
|
var sizeStyles2 = {
|
|
5979
|
-
sm:
|
|
6138
|
+
sm: import_react35.css`
|
|
5980
6139
|
padding: ${space["2"]} ${space["3"]};
|
|
5981
6140
|
font-size: ${fontSizes.sm};
|
|
5982
6141
|
line-height: ${lineHeights.tight};
|
|
5983
6142
|
height: ${space["8"]};
|
|
5984
6143
|
`,
|
|
5985
|
-
md:
|
|
6144
|
+
md: import_react35.css`
|
|
5986
6145
|
padding: ${space["3"]} ${space["4"]};
|
|
5987
6146
|
font-size: ${fontSizes.base};
|
|
5988
6147
|
line-height: ${lineHeights.normal};
|
|
5989
6148
|
height: ${space["10"]};
|
|
5990
6149
|
`,
|
|
5991
|
-
lg:
|
|
6150
|
+
lg: import_react35.css`
|
|
5992
6151
|
padding: ${space["4"]} ${space["5"]};
|
|
5993
6152
|
font-size: ${fontSizes.lg};
|
|
5994
6153
|
line-height: ${lineHeights.normal};
|
|
@@ -5996,8 +6155,8 @@ var sizeStyles2 = {
|
|
|
5996
6155
|
`
|
|
5997
6156
|
};
|
|
5998
6157
|
var variantStyles2 = {
|
|
5999
|
-
default:
|
|
6000
|
-
error:
|
|
6158
|
+
default: import_react35.css``,
|
|
6159
|
+
error: import_react35.css`
|
|
6001
6160
|
border-color: ${colors.red["500"]};
|
|
6002
6161
|
|
|
6003
6162
|
&:focus {
|
|
@@ -6005,7 +6164,7 @@ var variantStyles2 = {
|
|
|
6005
6164
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
6006
6165
|
}
|
|
6007
6166
|
`,
|
|
6008
|
-
success:
|
|
6167
|
+
success: import_react35.css`
|
|
6009
6168
|
border-color: ${colors.accent.green};
|
|
6010
6169
|
|
|
6011
6170
|
&:focus {
|
|
@@ -6014,7 +6173,7 @@ var variantStyles2 = {
|
|
|
6014
6173
|
}
|
|
6015
6174
|
`
|
|
6016
6175
|
};
|
|
6017
|
-
var optionStyles =
|
|
6176
|
+
var optionStyles = import_react35.css`
|
|
6018
6177
|
background-color: ${colors.light["100"]};
|
|
6019
6178
|
color: ${colors.gray["900"]};
|
|
6020
6179
|
|
|
@@ -6023,7 +6182,7 @@ var optionStyles = import_react33.css`
|
|
|
6023
6182
|
background-color: ${colors.gray["100"]};
|
|
6024
6183
|
}
|
|
6025
6184
|
`;
|
|
6026
|
-
var Select = (0,
|
|
6185
|
+
var Select = (0, import_react36.forwardRef)(
|
|
6027
6186
|
({
|
|
6028
6187
|
size = "md",
|
|
6029
6188
|
variant = "default",
|
|
@@ -6033,7 +6192,7 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
6033
6192
|
className = "",
|
|
6034
6193
|
...props
|
|
6035
6194
|
}, ref) => {
|
|
6036
|
-
return /* @__PURE__ */ (0,
|
|
6195
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsxs)(
|
|
6037
6196
|
"select",
|
|
6038
6197
|
{
|
|
6039
6198
|
ref,
|
|
@@ -6042,8 +6201,8 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
6042
6201
|
className,
|
|
6043
6202
|
...props,
|
|
6044
6203
|
children: [
|
|
6045
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
6046
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
6204
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime222.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
6205
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(
|
|
6047
6206
|
"option",
|
|
6048
6207
|
{
|
|
6049
6208
|
value: option.value,
|
|
@@ -6061,10 +6220,10 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
6061
6220
|
Select.displayName = "Select";
|
|
6062
6221
|
|
|
6063
6222
|
// src/Grid/Column.tsx
|
|
6064
|
-
var
|
|
6223
|
+
var import_react38 = require("@emotion/react");
|
|
6065
6224
|
|
|
6066
6225
|
// src/Grid/utils.ts
|
|
6067
|
-
var
|
|
6226
|
+
var import_react37 = require("@emotion/react");
|
|
6068
6227
|
var LayoutTokens = {
|
|
6069
6228
|
containers: {
|
|
6070
6229
|
sm: screens.sm,
|
|
@@ -6104,11 +6263,11 @@ var getResponsiveValue = (value) => {
|
|
|
6104
6263
|
var generateGridColumns = (columns) => {
|
|
6105
6264
|
const baseColumns = getResponsiveValue(columns);
|
|
6106
6265
|
if (typeof columns === "number") {
|
|
6107
|
-
return
|
|
6266
|
+
return import_react37.css`
|
|
6108
6267
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
6109
6268
|
`;
|
|
6110
6269
|
}
|
|
6111
|
-
return
|
|
6270
|
+
return import_react37.css`
|
|
6112
6271
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
6113
6272
|
|
|
6114
6273
|
${media.sm} {
|
|
@@ -6140,11 +6299,11 @@ var generateGridColumns = (columns) => {
|
|
|
6140
6299
|
var generateGapStyles = (gap2) => {
|
|
6141
6300
|
const baseGap = getResponsiveValue(gap2);
|
|
6142
6301
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
6143
|
-
return
|
|
6302
|
+
return import_react37.css`
|
|
6144
6303
|
gap: ${space[gap2]};
|
|
6145
6304
|
`;
|
|
6146
6305
|
}
|
|
6147
|
-
return
|
|
6306
|
+
return import_react37.css`
|
|
6148
6307
|
gap: ${space[baseGap]};
|
|
6149
6308
|
|
|
6150
6309
|
${media.sm} {
|
|
@@ -6167,11 +6326,11 @@ var generateGapStyles = (gap2) => {
|
|
|
6167
6326
|
var generateRowGapStyles = (rowGap) => {
|
|
6168
6327
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
6169
6328
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
6170
|
-
return
|
|
6329
|
+
return import_react37.css`
|
|
6171
6330
|
row-gap: ${space[rowGap]};
|
|
6172
6331
|
`;
|
|
6173
6332
|
}
|
|
6174
|
-
return
|
|
6333
|
+
return import_react37.css`
|
|
6175
6334
|
row-gap: ${space[baseRowGap]};
|
|
6176
6335
|
|
|
6177
6336
|
${media.sm} {
|
|
@@ -6194,11 +6353,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
6194
6353
|
var generateColumnGapStyles = (columnGap) => {
|
|
6195
6354
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
6196
6355
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
6197
|
-
return
|
|
6356
|
+
return import_react37.css`
|
|
6198
6357
|
column-gap: ${space[columnGap]};
|
|
6199
6358
|
`;
|
|
6200
6359
|
}
|
|
6201
|
-
return
|
|
6360
|
+
return import_react37.css`
|
|
6202
6361
|
column-gap: ${space[baseColumnGap]};
|
|
6203
6362
|
|
|
6204
6363
|
${media.sm} {
|
|
@@ -6221,11 +6380,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
6221
6380
|
var generateColumnSpan = (span) => {
|
|
6222
6381
|
const baseSpan = getResponsiveValue(span);
|
|
6223
6382
|
if (typeof span === "string" || typeof span === "number") {
|
|
6224
|
-
return
|
|
6383
|
+
return import_react37.css`
|
|
6225
6384
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
6226
6385
|
`;
|
|
6227
6386
|
}
|
|
6228
|
-
return
|
|
6387
|
+
return import_react37.css`
|
|
6229
6388
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
6230
6389
|
|
|
6231
6390
|
${media.sm} {
|
|
@@ -6248,11 +6407,11 @@ var generateColumnSpan = (span) => {
|
|
|
6248
6407
|
var generateAlignItems = (alignItems) => {
|
|
6249
6408
|
const baseAlign = getResponsiveValue(alignItems);
|
|
6250
6409
|
if (typeof alignItems === "string") {
|
|
6251
|
-
return
|
|
6410
|
+
return import_react37.css`
|
|
6252
6411
|
align-items: ${alignItems};
|
|
6253
6412
|
`;
|
|
6254
6413
|
}
|
|
6255
|
-
return
|
|
6414
|
+
return import_react37.css`
|
|
6256
6415
|
align-items: ${baseAlign};
|
|
6257
6416
|
|
|
6258
6417
|
${media.sm} {
|
|
@@ -6275,11 +6434,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
6275
6434
|
var generateJustifyItems = (justifyItems) => {
|
|
6276
6435
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
6277
6436
|
if (typeof justifyItems === "string") {
|
|
6278
|
-
return
|
|
6437
|
+
return import_react37.css`
|
|
6279
6438
|
justify-items: ${justifyItems};
|
|
6280
6439
|
`;
|
|
6281
6440
|
}
|
|
6282
|
-
return
|
|
6441
|
+
return import_react37.css`
|
|
6283
6442
|
justify-items: ${baseJustify};
|
|
6284
6443
|
|
|
6285
6444
|
${media.sm} {
|
|
@@ -6301,7 +6460,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
6301
6460
|
};
|
|
6302
6461
|
|
|
6303
6462
|
// src/Grid/Column.tsx
|
|
6304
|
-
var
|
|
6463
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
6305
6464
|
var Column = ({
|
|
6306
6465
|
span,
|
|
6307
6466
|
start,
|
|
@@ -6314,30 +6473,30 @@ var Column = ({
|
|
|
6314
6473
|
}) => {
|
|
6315
6474
|
const columnStyles = [
|
|
6316
6475
|
span && generateColumnSpan(span),
|
|
6317
|
-
start &&
|
|
6476
|
+
start && import_react38.css`
|
|
6318
6477
|
grid-column-start: ${start};
|
|
6319
6478
|
`,
|
|
6320
|
-
end &&
|
|
6479
|
+
end && import_react38.css`
|
|
6321
6480
|
grid-column-end: ${end};
|
|
6322
6481
|
`,
|
|
6323
|
-
row &&
|
|
6482
|
+
row && import_react38.css`
|
|
6324
6483
|
grid-row: ${row};
|
|
6325
6484
|
`,
|
|
6326
|
-
rowSpan &&
|
|
6485
|
+
rowSpan && import_react38.css`
|
|
6327
6486
|
grid-row: span ${rowSpan};
|
|
6328
6487
|
`,
|
|
6329
|
-
area &&
|
|
6488
|
+
area && import_react38.css`
|
|
6330
6489
|
grid-area: ${area};
|
|
6331
6490
|
`
|
|
6332
6491
|
].filter(Boolean);
|
|
6333
|
-
return /* @__PURE__ */ (0,
|
|
6492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
6334
6493
|
};
|
|
6335
6494
|
var Column_default = Column;
|
|
6336
6495
|
|
|
6337
6496
|
// src/Grid/Grid.tsx
|
|
6338
|
-
var
|
|
6339
|
-
var
|
|
6340
|
-
var baseGridStyles =
|
|
6497
|
+
var import_react39 = require("@emotion/react");
|
|
6498
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
6499
|
+
var baseGridStyles = import_react39.css`
|
|
6341
6500
|
display: grid;
|
|
6342
6501
|
`;
|
|
6343
6502
|
var Grid = ({
|
|
@@ -6362,27 +6521,27 @@ var Grid = ({
|
|
|
6362
6521
|
columnGap && generateColumnGapStyles(columnGap),
|
|
6363
6522
|
alignItems && generateAlignItems(alignItems),
|
|
6364
6523
|
justifyItems && generateJustifyItems(justifyItems),
|
|
6365
|
-
autoRows &&
|
|
6524
|
+
autoRows && import_react39.css`
|
|
6366
6525
|
grid-auto-rows: ${autoRows};
|
|
6367
6526
|
`,
|
|
6368
|
-
autoColumns &&
|
|
6527
|
+
autoColumns && import_react39.css`
|
|
6369
6528
|
grid-auto-columns: ${autoColumns};
|
|
6370
6529
|
`,
|
|
6371
|
-
templateAreas &&
|
|
6530
|
+
templateAreas && import_react39.css`
|
|
6372
6531
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
6373
6532
|
`,
|
|
6374
|
-
justifyContent &&
|
|
6533
|
+
justifyContent && import_react39.css`
|
|
6375
6534
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
6376
6535
|
`
|
|
6377
6536
|
].filter(Boolean);
|
|
6378
|
-
return /* @__PURE__ */ (0,
|
|
6537
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
6379
6538
|
};
|
|
6380
6539
|
var Grid_default = Grid;
|
|
6381
6540
|
|
|
6382
6541
|
// src/Grid/GridContainer.tsx
|
|
6383
|
-
var
|
|
6384
|
-
var
|
|
6385
|
-
var baseContainerStyles =
|
|
6542
|
+
var import_react40 = require("@emotion/react");
|
|
6543
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
6544
|
+
var baseContainerStyles = import_react40.css`
|
|
6386
6545
|
width: 100%;
|
|
6387
6546
|
margin: 0 auto;
|
|
6388
6547
|
padding-left: 1rem;
|
|
@@ -6390,14 +6549,14 @@ var baseContainerStyles = import_react38.css`
|
|
|
6390
6549
|
`;
|
|
6391
6550
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
6392
6551
|
if (maxWidth === "full") {
|
|
6393
|
-
return
|
|
6552
|
+
return import_react40.css`
|
|
6394
6553
|
max-width: 100%;
|
|
6395
6554
|
padding-left: 0;
|
|
6396
6555
|
padding-right: 0;
|
|
6397
6556
|
`;
|
|
6398
6557
|
}
|
|
6399
6558
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
6400
|
-
return
|
|
6559
|
+
return import_react40.css`
|
|
6401
6560
|
max-width: ${width2};
|
|
6402
6561
|
|
|
6403
6562
|
${media.sm} {
|
|
@@ -6426,13 +6585,13 @@ var GridContainer = ({
|
|
|
6426
6585
|
baseContainerStyles,
|
|
6427
6586
|
generateMaxWidthStyles(maxWidth)
|
|
6428
6587
|
];
|
|
6429
|
-
return /* @__PURE__ */ (0,
|
|
6588
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
6430
6589
|
};
|
|
6431
6590
|
var GridContainer_default = GridContainer;
|
|
6432
6591
|
|
|
6433
6592
|
// src/HuntCard/HuntCard.styles.ts
|
|
6434
|
-
var
|
|
6435
|
-
var cardContainerStyles2 =
|
|
6593
|
+
var import_react41 = require("@emotion/react");
|
|
6594
|
+
var cardContainerStyles2 = import_react41.css`
|
|
6436
6595
|
position: relative;
|
|
6437
6596
|
height: 335px;
|
|
6438
6597
|
|
|
@@ -6440,12 +6599,12 @@ var cardContainerStyles2 = import_react39.css`
|
|
|
6440
6599
|
height: 480px;
|
|
6441
6600
|
}
|
|
6442
6601
|
`;
|
|
6443
|
-
var cardContentStyles2 =
|
|
6602
|
+
var cardContentStyles2 = import_react41.css`
|
|
6444
6603
|
position: relative;
|
|
6445
6604
|
border-radius: var(--spacing-4);
|
|
6446
6605
|
overflow: hidden;
|
|
6447
6606
|
`;
|
|
6448
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
6607
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react41.css`
|
|
6449
6608
|
background-image: linear-gradient(
|
|
6450
6609
|
180deg,
|
|
6451
6610
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -6459,7 +6618,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react39.css`
|
|
|
6459
6618
|
`;
|
|
6460
6619
|
|
|
6461
6620
|
// src/HuntCard/HuntCard.tsx
|
|
6462
|
-
var
|
|
6621
|
+
var import_jsx_runtime226 = require("@emotion/react/jsx-runtime");
|
|
6463
6622
|
var HuntCard = ({
|
|
6464
6623
|
backgroundImage,
|
|
6465
6624
|
title,
|
|
@@ -6468,14 +6627,14 @@ var HuntCard = ({
|
|
|
6468
6627
|
className,
|
|
6469
6628
|
...rest
|
|
6470
6629
|
}) => {
|
|
6471
|
-
return /* @__PURE__ */ (0,
|
|
6630
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6472
6631
|
Box_default,
|
|
6473
6632
|
{
|
|
6474
6633
|
display: "flex",
|
|
6475
6634
|
css: cardContainerStyles2,
|
|
6476
6635
|
className,
|
|
6477
6636
|
...rest,
|
|
6478
|
-
children: /* @__PURE__ */ (0,
|
|
6637
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6479
6638
|
Box_default,
|
|
6480
6639
|
{
|
|
6481
6640
|
display: "flex",
|
|
@@ -6483,9 +6642,9 @@ var HuntCard = ({
|
|
|
6483
6642
|
justifyContent: "flex-end",
|
|
6484
6643
|
p: 6,
|
|
6485
6644
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
6486
|
-
children: /* @__PURE__ */ (0,
|
|
6487
|
-
/* @__PURE__ */ (0,
|
|
6488
|
-
/* @__PURE__ */ (0,
|
|
6645
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
6646
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
6647
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
6489
6648
|
] })
|
|
6490
6649
|
}
|
|
6491
6650
|
)
|
|
@@ -6495,9 +6654,9 @@ var HuntCard = ({
|
|
|
6495
6654
|
var HuntCard_default = HuntCard;
|
|
6496
6655
|
|
|
6497
6656
|
// src/InfoBox/InfoBox.tsx
|
|
6498
|
-
var
|
|
6657
|
+
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6499
6658
|
var InfoBox = ({ heading, features, className }) => {
|
|
6500
|
-
return /* @__PURE__ */ (0,
|
|
6659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
6501
6660
|
Box_default,
|
|
6502
6661
|
{
|
|
6503
6662
|
display: "flex",
|
|
@@ -6506,8 +6665,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6506
6665
|
className,
|
|
6507
6666
|
color: "var(--text-primary)",
|
|
6508
6667
|
children: [
|
|
6509
|
-
/* @__PURE__ */ (0,
|
|
6510
|
-
/* @__PURE__ */ (0,
|
|
6668
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
6669
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6511
6670
|
Box_default,
|
|
6512
6671
|
{
|
|
6513
6672
|
display: "flex",
|
|
@@ -6517,7 +6676,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6517
6676
|
borderRadius: "var(--radius-lg)",
|
|
6518
6677
|
bg: "var(--surface-neutral)",
|
|
6519
6678
|
className,
|
|
6520
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
6679
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6521
6680
|
FeatureList_default,
|
|
6522
6681
|
{
|
|
6523
6682
|
heading: section.heading,
|
|
@@ -6534,11 +6693,11 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6534
6693
|
var InfoBox_default = InfoBox;
|
|
6535
6694
|
|
|
6536
6695
|
// src/ListingChat/ListingChat.tsx
|
|
6537
|
-
var
|
|
6696
|
+
var import_react43 = require("react");
|
|
6538
6697
|
|
|
6539
6698
|
// src/ListingChat/ListingChat.styles.ts
|
|
6540
|
-
var
|
|
6541
|
-
var containerStyles2 =
|
|
6699
|
+
var import_react42 = require("@emotion/react");
|
|
6700
|
+
var containerStyles2 = import_react42.css`
|
|
6542
6701
|
display: flex;
|
|
6543
6702
|
flex-direction: column;
|
|
6544
6703
|
gap: var(--spacing-4);
|
|
@@ -6546,13 +6705,13 @@ var containerStyles2 = import_react40.css`
|
|
|
6546
6705
|
border-radius: var(--radius-lg);
|
|
6547
6706
|
background: var(--surface-success);
|
|
6548
6707
|
`;
|
|
6549
|
-
var headerStyles =
|
|
6708
|
+
var headerStyles = import_react42.css`
|
|
6550
6709
|
display: flex;
|
|
6551
6710
|
align-items: flex-start;
|
|
6552
6711
|
justify-content: space-between;
|
|
6553
6712
|
gap: var(--spacing-2);
|
|
6554
6713
|
`;
|
|
6555
|
-
var chipsContainerStyles =
|
|
6714
|
+
var chipsContainerStyles = import_react42.css`
|
|
6556
6715
|
display: flex;
|
|
6557
6716
|
flex-wrap: wrap;
|
|
6558
6717
|
gap: var(--spacing-4);
|
|
@@ -6565,15 +6724,15 @@ var chipsContainerStyles = import_react40.css`
|
|
|
6565
6724
|
cursor: pointer;
|
|
6566
6725
|
}
|
|
6567
6726
|
`;
|
|
6568
|
-
var textAreaStyles =
|
|
6727
|
+
var textAreaStyles = import_react42.css`
|
|
6569
6728
|
min-height: 62px;
|
|
6570
6729
|
`;
|
|
6571
|
-
var inputWrapperStyles2 =
|
|
6730
|
+
var inputWrapperStyles2 = import_react42.css`
|
|
6572
6731
|
position: relative;
|
|
6573
6732
|
`;
|
|
6574
6733
|
|
|
6575
6734
|
// src/ListingChat/ListingChat.tsx
|
|
6576
|
-
var
|
|
6735
|
+
var import_jsx_runtime228 = require("@emotion/react/jsx-runtime");
|
|
6577
6736
|
var ListingChat = ({
|
|
6578
6737
|
onSubmit,
|
|
6579
6738
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -6583,15 +6742,15 @@ var ListingChat = ({
|
|
|
6583
6742
|
disabled = false,
|
|
6584
6743
|
...rest
|
|
6585
6744
|
}) => {
|
|
6586
|
-
const [value, setValue] = (0,
|
|
6587
|
-
const handleSubmit = (0,
|
|
6745
|
+
const [value, setValue] = (0, import_react43.useState)("");
|
|
6746
|
+
const handleSubmit = (0, import_react43.useCallback)(() => {
|
|
6588
6747
|
const trimmed = value.trim();
|
|
6589
6748
|
if (!trimmed)
|
|
6590
6749
|
return;
|
|
6591
6750
|
onSubmit(trimmed);
|
|
6592
6751
|
setValue("");
|
|
6593
6752
|
}, [onSubmit, value]);
|
|
6594
|
-
const handleTagClick = (0,
|
|
6753
|
+
const handleTagClick = (0, import_react43.useCallback)(
|
|
6595
6754
|
(tag) => () => {
|
|
6596
6755
|
const trimmed = tag.trim();
|
|
6597
6756
|
if (!trimmed)
|
|
@@ -6600,18 +6759,18 @@ var ListingChat = ({
|
|
|
6600
6759
|
},
|
|
6601
6760
|
[onSubmit]
|
|
6602
6761
|
);
|
|
6603
|
-
return /* @__PURE__ */ (0,
|
|
6604
|
-
/* @__PURE__ */ (0,
|
|
6605
|
-
/* @__PURE__ */ (0,
|
|
6606
|
-
/* @__PURE__ */ (0,
|
|
6607
|
-
/* @__PURE__ */ (0,
|
|
6762
|
+
return /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
6763
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(Box_default, { css: headerStyles, children: [
|
|
6764
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(Box_default, { children: [
|
|
6765
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
6766
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
6608
6767
|
] }),
|
|
6609
|
-
/* @__PURE__ */ (0,
|
|
6610
|
-
/* @__PURE__ */ (0,
|
|
6611
|
-
/* @__PURE__ */ (0,
|
|
6768
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
6769
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
6770
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
6612
6771
|
] })
|
|
6613
6772
|
] }),
|
|
6614
|
-
/* @__PURE__ */ (0,
|
|
6773
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6615
6774
|
TextArea,
|
|
6616
6775
|
{
|
|
6617
6776
|
rows: 1,
|
|
@@ -6626,14 +6785,14 @@ var ListingChat = ({
|
|
|
6626
6785
|
css: textAreaStyles
|
|
6627
6786
|
}
|
|
6628
6787
|
) }),
|
|
6629
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
6630
|
-
/* @__PURE__ */ (0,
|
|
6631
|
-
/* @__PURE__ */ (0,
|
|
6788
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(import_jsx_runtime228.Fragment, { children: [
|
|
6789
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
6790
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6632
6791
|
"button",
|
|
6633
6792
|
{
|
|
6634
6793
|
onClick: handleTagClick(tag),
|
|
6635
6794
|
disabled,
|
|
6636
|
-
children: /* @__PURE__ */ (0,
|
|
6795
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(TagChip_default, { children: tag })
|
|
6637
6796
|
},
|
|
6638
6797
|
tag
|
|
6639
6798
|
)) })
|
|
@@ -6643,11 +6802,11 @@ var ListingChat = ({
|
|
|
6643
6802
|
var ListingChat_default = ListingChat;
|
|
6644
6803
|
|
|
6645
6804
|
// src/Logo/Logo.tsx
|
|
6646
|
-
var
|
|
6805
|
+
var import_react44 = require("@emotion/react");
|
|
6647
6806
|
|
|
6648
6807
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
6649
|
-
var
|
|
6650
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
6808
|
+
var import_jsx_runtime229 = require("@emotion/react/jsx-runtime");
|
|
6809
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6651
6810
|
"svg",
|
|
6652
6811
|
{
|
|
6653
6812
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6655,14 +6814,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime228.
|
|
|
6655
6814
|
fill: "none",
|
|
6656
6815
|
...props,
|
|
6657
6816
|
children: [
|
|
6658
|
-
/* @__PURE__ */ (0,
|
|
6817
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6659
6818
|
"path",
|
|
6660
6819
|
{
|
|
6661
6820
|
fill: "#000",
|
|
6662
6821
|
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"
|
|
6663
6822
|
}
|
|
6664
6823
|
) }),
|
|
6665
|
-
/* @__PURE__ */ (0,
|
|
6824
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6666
6825
|
"path",
|
|
6667
6826
|
{
|
|
6668
6827
|
fill: "#FAD44E",
|
|
@@ -6671,14 +6830,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime228.
|
|
|
6671
6830
|
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"
|
|
6672
6831
|
}
|
|
6673
6832
|
),
|
|
6674
|
-
/* @__PURE__ */ (0,
|
|
6833
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6675
6834
|
"path",
|
|
6676
6835
|
{
|
|
6677
6836
|
fill: "#fff",
|
|
6678
6837
|
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"
|
|
6679
6838
|
}
|
|
6680
6839
|
),
|
|
6681
|
-
/* @__PURE__ */ (0,
|
|
6840
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6682
6841
|
"filter",
|
|
6683
6842
|
{
|
|
6684
6843
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -6689,8 +6848,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime228.
|
|
|
6689
6848
|
colorInterpolationFilters: "sRGB",
|
|
6690
6849
|
filterUnits: "userSpaceOnUse",
|
|
6691
6850
|
children: [
|
|
6692
|
-
/* @__PURE__ */ (0,
|
|
6693
|
-
/* @__PURE__ */ (0,
|
|
6851
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6852
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6694
6853
|
"feColorMatrix",
|
|
6695
6854
|
{
|
|
6696
6855
|
in: "SourceAlpha",
|
|
@@ -6698,18 +6857,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime228.
|
|
|
6698
6857
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
6699
6858
|
}
|
|
6700
6859
|
),
|
|
6701
|
-
/* @__PURE__ */ (0,
|
|
6702
|
-
/* @__PURE__ */ (0,
|
|
6703
|
-
/* @__PURE__ */ (0,
|
|
6704
|
-
/* @__PURE__ */ (0,
|
|
6705
|
-
/* @__PURE__ */ (0,
|
|
6860
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)("feOffset", { dy: 1 }),
|
|
6861
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6862
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6863
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
6864
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6706
6865
|
"feBlend",
|
|
6707
6866
|
{
|
|
6708
6867
|
in2: "BackgroundImageFix",
|
|
6709
6868
|
result: "effect1_dropShadow_257_2540"
|
|
6710
6869
|
}
|
|
6711
6870
|
),
|
|
6712
|
-
/* @__PURE__ */ (0,
|
|
6871
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6713
6872
|
"feBlend",
|
|
6714
6873
|
{
|
|
6715
6874
|
in: "SourceGraphic",
|
|
@@ -6726,8 +6885,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime228.
|
|
|
6726
6885
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
6727
6886
|
|
|
6728
6887
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
6729
|
-
var
|
|
6730
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
6888
|
+
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6889
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6731
6890
|
"svg",
|
|
6732
6891
|
{
|
|
6733
6892
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6735,14 +6894,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime229
|
|
|
6735
6894
|
fill: "none",
|
|
6736
6895
|
...props,
|
|
6737
6896
|
children: [
|
|
6738
|
-
/* @__PURE__ */ (0,
|
|
6897
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6739
6898
|
"path",
|
|
6740
6899
|
{
|
|
6741
6900
|
fill: "#000",
|
|
6742
6901
|
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"
|
|
6743
6902
|
}
|
|
6744
6903
|
) }),
|
|
6745
|
-
/* @__PURE__ */ (0,
|
|
6904
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6746
6905
|
"path",
|
|
6747
6906
|
{
|
|
6748
6907
|
fill: "#FAD44E",
|
|
@@ -6751,14 +6910,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime229
|
|
|
6751
6910
|
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"
|
|
6752
6911
|
}
|
|
6753
6912
|
),
|
|
6754
|
-
/* @__PURE__ */ (0,
|
|
6913
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6755
6914
|
"path",
|
|
6756
6915
|
{
|
|
6757
6916
|
fill: "#1A202C",
|
|
6758
6917
|
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"
|
|
6759
6918
|
}
|
|
6760
6919
|
),
|
|
6761
|
-
/* @__PURE__ */ (0,
|
|
6920
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6762
6921
|
"filter",
|
|
6763
6922
|
{
|
|
6764
6923
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -6769,8 +6928,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime229
|
|
|
6769
6928
|
colorInterpolationFilters: "sRGB",
|
|
6770
6929
|
filterUnits: "userSpaceOnUse",
|
|
6771
6930
|
children: [
|
|
6772
|
-
/* @__PURE__ */ (0,
|
|
6773
|
-
/* @__PURE__ */ (0,
|
|
6931
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6932
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6774
6933
|
"feColorMatrix",
|
|
6775
6934
|
{
|
|
6776
6935
|
in: "SourceAlpha",
|
|
@@ -6778,18 +6937,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime229
|
|
|
6778
6937
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
6779
6938
|
}
|
|
6780
6939
|
),
|
|
6781
|
-
/* @__PURE__ */ (0,
|
|
6782
|
-
/* @__PURE__ */ (0,
|
|
6783
|
-
/* @__PURE__ */ (0,
|
|
6784
|
-
/* @__PURE__ */ (0,
|
|
6785
|
-
/* @__PURE__ */ (0,
|
|
6940
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)("feOffset", { dy: 1 }),
|
|
6941
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6942
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6943
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
6944
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6786
6945
|
"feBlend",
|
|
6787
6946
|
{
|
|
6788
6947
|
in2: "BackgroundImageFix",
|
|
6789
6948
|
result: "effect1_dropShadow_257_2538"
|
|
6790
6949
|
}
|
|
6791
6950
|
),
|
|
6792
|
-
/* @__PURE__ */ (0,
|
|
6951
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6793
6952
|
"feBlend",
|
|
6794
6953
|
{
|
|
6795
6954
|
in: "SourceGraphic",
|
|
@@ -6806,8 +6965,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime229
|
|
|
6806
6965
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
6807
6966
|
|
|
6808
6967
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
6809
|
-
var
|
|
6810
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
6968
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6969
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime231.jsxs)(
|
|
6811
6970
|
"svg",
|
|
6812
6971
|
{
|
|
6813
6972
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6815,14 +6974,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6815
6974
|
fill: "none",
|
|
6816
6975
|
...props,
|
|
6817
6976
|
children: [
|
|
6818
|
-
/* @__PURE__ */ (0,
|
|
6977
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6819
6978
|
"path",
|
|
6820
6979
|
{
|
|
6821
6980
|
fill: "#E2430C",
|
|
6822
6981
|
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"
|
|
6823
6982
|
}
|
|
6824
6983
|
),
|
|
6825
|
-
/* @__PURE__ */ (0,
|
|
6984
|
+
/* @__PURE__ */ (0, import_jsx_runtime231.jsx)(
|
|
6826
6985
|
"path",
|
|
6827
6986
|
{
|
|
6828
6987
|
fill: "#fff",
|
|
@@ -6835,8 +6994,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6835
6994
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
6836
6995
|
|
|
6837
6996
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
6838
|
-
var
|
|
6839
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
6997
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6998
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6840
6999
|
"svg",
|
|
6841
7000
|
{
|
|
6842
7001
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6844,14 +7003,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6844
7003
|
fill: "none",
|
|
6845
7004
|
...props,
|
|
6846
7005
|
children: [
|
|
6847
|
-
/* @__PURE__ */ (0,
|
|
7006
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6848
7007
|
"path",
|
|
6849
7008
|
{
|
|
6850
7009
|
fill: "#E2430C",
|
|
6851
7010
|
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"
|
|
6852
7011
|
}
|
|
6853
7012
|
),
|
|
6854
|
-
/* @__PURE__ */ (0,
|
|
7013
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6855
7014
|
"path",
|
|
6856
7015
|
{
|
|
6857
7016
|
fill: "#000",
|
|
@@ -6864,8 +7023,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6864
7023
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
6865
7024
|
|
|
6866
7025
|
// src/Logo/Logo.tsx
|
|
6867
|
-
var
|
|
6868
|
-
var logoStyles = (size) =>
|
|
7026
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
7027
|
+
var logoStyles = (size) => import_react44.css`
|
|
6869
7028
|
width: ${space[size]};
|
|
6870
7029
|
height: auto;
|
|
6871
7030
|
display: block;
|
|
@@ -6893,18 +7052,18 @@ var Logo = ({
|
|
|
6893
7052
|
return LandtrustStandardLight_default;
|
|
6894
7053
|
};
|
|
6895
7054
|
const LogoComponent = getLogoComponent();
|
|
6896
|
-
return /* @__PURE__ */ (0,
|
|
7055
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
6897
7056
|
};
|
|
6898
7057
|
var Logo_default = Logo;
|
|
6899
7058
|
|
|
6900
7059
|
// src/Navigation/Navigation.styles.ts
|
|
6901
|
-
var
|
|
6902
|
-
var navigationStyles =
|
|
7060
|
+
var import_react45 = require("@emotion/react");
|
|
7061
|
+
var navigationStyles = import_react45.css`
|
|
6903
7062
|
width: 100%;
|
|
6904
7063
|
background-color: white;
|
|
6905
7064
|
border-bottom: 1px solid #e5e5e5;
|
|
6906
7065
|
`;
|
|
6907
|
-
var hamburgerButtonStyles =
|
|
7066
|
+
var hamburgerButtonStyles = import_react45.css`
|
|
6908
7067
|
cursor: pointer;
|
|
6909
7068
|
&:focus {
|
|
6910
7069
|
outline: 2px solid #4f46e5;
|
|
@@ -6915,7 +7074,7 @@ var hamburgerButtonStyles = import_react43.css`
|
|
|
6915
7074
|
display: none;
|
|
6916
7075
|
}
|
|
6917
7076
|
`;
|
|
6918
|
-
var centeredLogoStyles =
|
|
7077
|
+
var centeredLogoStyles = import_react45.css`
|
|
6919
7078
|
transform: translate(-50%, -50%);
|
|
6920
7079
|
max-width: 150px;
|
|
6921
7080
|
|
|
@@ -6923,27 +7082,27 @@ var centeredLogoStyles = import_react43.css`
|
|
|
6923
7082
|
display: none;
|
|
6924
7083
|
}
|
|
6925
7084
|
`;
|
|
6926
|
-
var desktopLogoStyles =
|
|
7085
|
+
var desktopLogoStyles = import_react45.css`
|
|
6927
7086
|
display: none;
|
|
6928
7087
|
|
|
6929
7088
|
@media (min-width: 768px) {
|
|
6930
7089
|
display: block;
|
|
6931
7090
|
}
|
|
6932
7091
|
`;
|
|
6933
|
-
var containerStyles3 =
|
|
7092
|
+
var containerStyles3 = import_react45.css`
|
|
6934
7093
|
@media (min-width: 768px) {
|
|
6935
7094
|
justify-content: space-between;
|
|
6936
7095
|
position: static;
|
|
6937
7096
|
}
|
|
6938
7097
|
`;
|
|
6939
|
-
var logoStyles2 =
|
|
7098
|
+
var logoStyles2 = import_react45.css`
|
|
6940
7099
|
width: 100%;
|
|
6941
7100
|
|
|
6942
7101
|
@media (min-width: 768px) {
|
|
6943
7102
|
width: initial;
|
|
6944
7103
|
}
|
|
6945
7104
|
`;
|
|
6946
|
-
var desktopNavStyles =
|
|
7105
|
+
var desktopNavStyles = import_react45.css`
|
|
6947
7106
|
display: none;
|
|
6948
7107
|
|
|
6949
7108
|
@media (min-width: 768px) {
|
|
@@ -6952,7 +7111,7 @@ var desktopNavStyles = import_react43.css`
|
|
|
6952
7111
|
gap: 32px;
|
|
6953
7112
|
}
|
|
6954
7113
|
`;
|
|
6955
|
-
var navLinksStyles =
|
|
7114
|
+
var navLinksStyles = import_react45.css`
|
|
6956
7115
|
display: flex;
|
|
6957
7116
|
align-items: center;
|
|
6958
7117
|
gap: 24px;
|
|
@@ -6960,7 +7119,7 @@ var navLinksStyles = import_react43.css`
|
|
|
6960
7119
|
margin: 0;
|
|
6961
7120
|
padding: 0;
|
|
6962
7121
|
`;
|
|
6963
|
-
var navLinkStyles =
|
|
7122
|
+
var navLinkStyles = import_react45.css`
|
|
6964
7123
|
text-decoration: none;
|
|
6965
7124
|
color: #374151;
|
|
6966
7125
|
font-weight: 500;
|
|
@@ -6976,7 +7135,7 @@ var navLinkStyles = import_react43.css`
|
|
|
6976
7135
|
outline-offset: 2px;
|
|
6977
7136
|
}
|
|
6978
7137
|
`;
|
|
6979
|
-
var avatarPlaceholderStyles =
|
|
7138
|
+
var avatarPlaceholderStyles = import_react45.css`
|
|
6980
7139
|
width: 32px;
|
|
6981
7140
|
height: 32px;
|
|
6982
7141
|
border-radius: 50%;
|
|
@@ -7001,7 +7160,7 @@ var avatarPlaceholderStyles = import_react43.css`
|
|
|
7001
7160
|
`;
|
|
7002
7161
|
|
|
7003
7162
|
// src/Navigation/Navigation.tsx
|
|
7004
|
-
var
|
|
7163
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
7005
7164
|
var Navigation = ({
|
|
7006
7165
|
onMenuToggle,
|
|
7007
7166
|
className,
|
|
@@ -7015,7 +7174,7 @@ var Navigation = ({
|
|
|
7015
7174
|
onAvatarClick,
|
|
7016
7175
|
...rest
|
|
7017
7176
|
}) => {
|
|
7018
|
-
return /* @__PURE__ */ (0,
|
|
7177
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
7019
7178
|
Box_default,
|
|
7020
7179
|
{
|
|
7021
7180
|
display: "flex",
|
|
@@ -7024,7 +7183,7 @@ var Navigation = ({
|
|
|
7024
7183
|
position: "relative",
|
|
7025
7184
|
css: containerStyles3,
|
|
7026
7185
|
children: [
|
|
7027
|
-
/* @__PURE__ */ (0,
|
|
7186
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7028
7187
|
Box_default,
|
|
7029
7188
|
{
|
|
7030
7189
|
as: "button",
|
|
@@ -7036,11 +7195,11 @@ var Navigation = ({
|
|
|
7036
7195
|
border: "none",
|
|
7037
7196
|
padding: space[2],
|
|
7038
7197
|
css: hamburgerButtonStyles,
|
|
7039
|
-
children: /* @__PURE__ */ (0,
|
|
7198
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
7040
7199
|
}
|
|
7041
7200
|
),
|
|
7042
|
-
/* @__PURE__ */ (0,
|
|
7043
|
-
/* @__PURE__ */ (0,
|
|
7201
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
7202
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7044
7203
|
Logo_default,
|
|
7045
7204
|
{
|
|
7046
7205
|
variant: logoVariant,
|
|
@@ -7049,8 +7208,8 @@ var Navigation = ({
|
|
|
7049
7208
|
css: logoStyles2
|
|
7050
7209
|
}
|
|
7051
7210
|
) }),
|
|
7052
|
-
/* @__PURE__ */ (0,
|
|
7053
|
-
/* @__PURE__ */ (0,
|
|
7211
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
7212
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7054
7213
|
"a",
|
|
7055
7214
|
{
|
|
7056
7215
|
href: link.href,
|
|
@@ -7059,7 +7218,7 @@ var Navigation = ({
|
|
|
7059
7218
|
children: link.label
|
|
7060
7219
|
}
|
|
7061
7220
|
) }, link.href)) }) }),
|
|
7062
|
-
/* @__PURE__ */ (0,
|
|
7221
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
7063
7222
|
Box_default,
|
|
7064
7223
|
{
|
|
7065
7224
|
as: "button",
|
|
@@ -7078,8 +7237,8 @@ var Navigation = ({
|
|
|
7078
7237
|
var Navigation_default = Navigation;
|
|
7079
7238
|
|
|
7080
7239
|
// src/PackageCard/PackageCard.styles.ts
|
|
7081
|
-
var
|
|
7082
|
-
var cardContainerStyles3 =
|
|
7240
|
+
var import_react46 = require("@emotion/react");
|
|
7241
|
+
var cardContainerStyles3 = import_react46.css`
|
|
7083
7242
|
color: var(--text-primary);
|
|
7084
7243
|
position: relative;
|
|
7085
7244
|
width: 100%;
|
|
@@ -7096,14 +7255,14 @@ var cardContainerStyles3 = import_react44.css`
|
|
|
7096
7255
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
7097
7256
|
}
|
|
7098
7257
|
`;
|
|
7099
|
-
var imageContainerStyles =
|
|
7258
|
+
var imageContainerStyles = import_react46.css`
|
|
7100
7259
|
position: relative;
|
|
7101
7260
|
width: 100%;
|
|
7102
7261
|
height: 200px;
|
|
7103
7262
|
overflow: hidden;
|
|
7104
7263
|
border-radius: var(--spacing-4);
|
|
7105
7264
|
`;
|
|
7106
|
-
var imageStyles2 =
|
|
7265
|
+
var imageStyles2 = import_react46.css`
|
|
7107
7266
|
width: 100%;
|
|
7108
7267
|
height: 100%;
|
|
7109
7268
|
background-size: cover;
|
|
@@ -7111,13 +7270,13 @@ var imageStyles2 = import_react44.css`
|
|
|
7111
7270
|
background-repeat: no-repeat;
|
|
7112
7271
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
7113
7272
|
`;
|
|
7114
|
-
var
|
|
7273
|
+
var badgeStyles2 = import_react46.css`
|
|
7115
7274
|
position: absolute;
|
|
7116
7275
|
top: var(--spacing-3);
|
|
7117
7276
|
left: var(--spacing-3);
|
|
7118
7277
|
z-index: 2;
|
|
7119
7278
|
`;
|
|
7120
|
-
var heartIconStyles =
|
|
7279
|
+
var heartIconStyles = import_react46.css`
|
|
7121
7280
|
position: absolute;
|
|
7122
7281
|
top: var(--spacing-3);
|
|
7123
7282
|
right: var(--spacing-3);
|
|
@@ -7139,12 +7298,12 @@ var heartIconStyles = import_react44.css`
|
|
|
7139
7298
|
transform: scale(1.1);
|
|
7140
7299
|
}
|
|
7141
7300
|
`;
|
|
7142
|
-
var contentStyles2 =
|
|
7301
|
+
var contentStyles2 = import_react46.css`
|
|
7143
7302
|
padding: var(--spacing-3);
|
|
7144
7303
|
`;
|
|
7145
7304
|
|
|
7146
7305
|
// src/PackageCard/PackageCard.tsx
|
|
7147
|
-
var
|
|
7306
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
7148
7307
|
var PackageCard = ({
|
|
7149
7308
|
images,
|
|
7150
7309
|
title,
|
|
@@ -7161,13 +7320,13 @@ var PackageCard = ({
|
|
|
7161
7320
|
...rest
|
|
7162
7321
|
}) => {
|
|
7163
7322
|
const mainImage = images[0] || "";
|
|
7164
|
-
return /* @__PURE__ */ (0,
|
|
7165
|
-
/* @__PURE__ */ (0,
|
|
7166
|
-
tripsLeft && /* @__PURE__ */ (0,
|
|
7323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(Box_default, { css: cardContainerStyles3, className, ...rest, children: [
|
|
7324
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { css: imageContainerStyles, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(Box_default, { css: [imageStyles2, { backgroundImage: `url(${mainImage})` }], children: [
|
|
7325
|
+
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(AvailabilityBadge_default, { variant: "warning", css: badgeStyles2, children: [
|
|
7167
7326
|
tripsLeft,
|
|
7168
7327
|
" Trips Left"
|
|
7169
7328
|
] }),
|
|
7170
|
-
/* @__PURE__ */ (0,
|
|
7329
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7171
7330
|
Box_default,
|
|
7172
7331
|
{
|
|
7173
7332
|
css: heartIconStyles,
|
|
@@ -7175,7 +7334,7 @@ var PackageCard = ({
|
|
|
7175
7334
|
e.stopPropagation();
|
|
7176
7335
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
7177
7336
|
},
|
|
7178
|
-
children: /* @__PURE__ */ (0,
|
|
7337
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7179
7338
|
Icon_default,
|
|
7180
7339
|
{
|
|
7181
7340
|
variant: isFavorited ? "HeartSolid" : "Heart",
|
|
@@ -7185,8 +7344,8 @@ var PackageCard = ({
|
|
|
7185
7344
|
}
|
|
7186
7345
|
)
|
|
7187
7346
|
] }) }),
|
|
7188
|
-
/* @__PURE__ */ (0,
|
|
7189
|
-
/* @__PURE__ */ (0,
|
|
7347
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
7348
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(
|
|
7190
7349
|
Box_default,
|
|
7191
7350
|
{
|
|
7192
7351
|
onClick,
|
|
@@ -7195,9 +7354,9 @@ var PackageCard = ({
|
|
|
7195
7354
|
gap: "var(--spacing-1)",
|
|
7196
7355
|
mb: "var(--spacing-4)",
|
|
7197
7356
|
children: [
|
|
7198
|
-
/* @__PURE__ */ (0,
|
|
7199
|
-
/* @__PURE__ */ (0,
|
|
7200
|
-
/* @__PURE__ */ (0,
|
|
7357
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
7358
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Text_default, { size: "xs", fontWeight: "bold", children: subtitle }) }),
|
|
7359
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(Text_default, { size: "xs", fontWeight: "normal", children: [
|
|
7201
7360
|
"Starting Price ",
|
|
7202
7361
|
startingPrice,
|
|
7203
7362
|
" / Guest"
|
|
@@ -7205,22 +7364,22 @@ var PackageCard = ({
|
|
|
7205
7364
|
]
|
|
7206
7365
|
}
|
|
7207
7366
|
),
|
|
7208
|
-
/* @__PURE__ */ (0,
|
|
7209
|
-
days && /* @__PURE__ */ (0,
|
|
7367
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsxs)(Box_default, { display: "flex", gap: "var(--spacing-3)", alignItems: "center", children: [
|
|
7368
|
+
days && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7210
7369
|
IconLabel_default,
|
|
7211
7370
|
{
|
|
7212
7371
|
variant: "Calendar",
|
|
7213
7372
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
7214
7373
|
}
|
|
7215
7374
|
),
|
|
7216
|
-
guests && /* @__PURE__ */ (0,
|
|
7375
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7217
7376
|
IconLabel_default,
|
|
7218
7377
|
{
|
|
7219
7378
|
variant: "User",
|
|
7220
7379
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
7221
7380
|
}
|
|
7222
7381
|
),
|
|
7223
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
7382
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
7224
7383
|
] })
|
|
7225
7384
|
] })
|
|
7226
7385
|
] });
|
|
@@ -7228,14 +7387,14 @@ var PackageCard = ({
|
|
|
7228
7387
|
var PackageCard_default = PackageCard;
|
|
7229
7388
|
|
|
7230
7389
|
// src/PackageHeader/PackageHeader.tsx
|
|
7231
|
-
var
|
|
7390
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7232
7391
|
var PackageHeader = ({
|
|
7233
7392
|
header,
|
|
7234
7393
|
subheader,
|
|
7235
7394
|
features,
|
|
7236
7395
|
className
|
|
7237
7396
|
}) => {
|
|
7238
|
-
return /* @__PURE__ */ (0,
|
|
7397
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
|
|
7239
7398
|
Box_default,
|
|
7240
7399
|
{
|
|
7241
7400
|
display: "flex",
|
|
@@ -7244,9 +7403,9 @@ var PackageHeader = ({
|
|
|
7244
7403
|
color: "var(--text-primary)",
|
|
7245
7404
|
className,
|
|
7246
7405
|
children: [
|
|
7247
|
-
/* @__PURE__ */ (0,
|
|
7248
|
-
subheader && /* @__PURE__ */ (0,
|
|
7249
|
-
features && /* @__PURE__ */ (0,
|
|
7406
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
7407
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Text_default, { children: subheader }),
|
|
7408
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(FeatureList_default, { items: features })
|
|
7250
7409
|
]
|
|
7251
7410
|
}
|
|
7252
7411
|
);
|
|
@@ -7254,8 +7413,8 @@ var PackageHeader = ({
|
|
|
7254
7413
|
var PackageHeader_default = PackageHeader;
|
|
7255
7414
|
|
|
7256
7415
|
// src/StarRating/StarRating.tsx
|
|
7257
|
-
var
|
|
7258
|
-
var
|
|
7416
|
+
var import_react47 = require("@emotion/react");
|
|
7417
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
7259
7418
|
var starSize = {
|
|
7260
7419
|
sm: {
|
|
7261
7420
|
size: "medium",
|
|
@@ -7274,13 +7433,13 @@ var StarRating = ({
|
|
|
7274
7433
|
const stars = [];
|
|
7275
7434
|
for (let i = 1; i <= 5; i++) {
|
|
7276
7435
|
stars.push(
|
|
7277
|
-
/* @__PURE__ */ (0,
|
|
7436
|
+
/* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
7278
7437
|
Icon_default,
|
|
7279
7438
|
{
|
|
7280
7439
|
variant: "StarSolid",
|
|
7281
7440
|
size: starSize[size].size,
|
|
7282
7441
|
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)",
|
|
7283
|
-
css:
|
|
7442
|
+
css: import_react47.css`
|
|
7284
7443
|
${size === "md" && "width: 40px; height: 40px;"}
|
|
7285
7444
|
`
|
|
7286
7445
|
},
|
|
@@ -7288,7 +7447,7 @@ var StarRating = ({
|
|
|
7288
7447
|
)
|
|
7289
7448
|
);
|
|
7290
7449
|
}
|
|
7291
|
-
return /* @__PURE__ */ (0,
|
|
7450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
7292
7451
|
Box_default,
|
|
7293
7452
|
{
|
|
7294
7453
|
className,
|
|
@@ -7302,7 +7461,7 @@ var StarRating = ({
|
|
|
7302
7461
|
var StarRating_default = StarRating;
|
|
7303
7462
|
|
|
7304
7463
|
// src/UserCard/UserCard.tsx
|
|
7305
|
-
var
|
|
7464
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7306
7465
|
var UserCard = ({
|
|
7307
7466
|
avatarSrc,
|
|
7308
7467
|
title,
|
|
@@ -7311,7 +7470,7 @@ var UserCard = ({
|
|
|
7311
7470
|
showRating = true,
|
|
7312
7471
|
className
|
|
7313
7472
|
}) => {
|
|
7314
|
-
return /* @__PURE__ */ (0,
|
|
7473
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
7315
7474
|
Box_default,
|
|
7316
7475
|
{
|
|
7317
7476
|
display: "flex",
|
|
@@ -7319,11 +7478,11 @@ var UserCard = ({
|
|
|
7319
7478
|
gap: "var(--spacing-4)",
|
|
7320
7479
|
className,
|
|
7321
7480
|
children: [
|
|
7322
|
-
/* @__PURE__ */ (0,
|
|
7323
|
-
/* @__PURE__ */ (0,
|
|
7324
|
-
/* @__PURE__ */ (0,
|
|
7325
|
-
subtitle && /* @__PURE__ */ (0,
|
|
7326
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
7481
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Avatar_default, { type: "image", src: avatarSrc, alt: `${title}'s avatar` }),
|
|
7482
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
7483
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
7484
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }),
|
|
7485
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StarRating_default, { rating, size: "sm" })
|
|
7327
7486
|
] })
|
|
7328
7487
|
]
|
|
7329
7488
|
}
|
|
@@ -7332,8 +7491,8 @@ var UserCard = ({
|
|
|
7332
7491
|
var UserCard_default = UserCard;
|
|
7333
7492
|
|
|
7334
7493
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
7335
|
-
var
|
|
7336
|
-
var imageStyles3 =
|
|
7494
|
+
var import_react48 = require("@emotion/react");
|
|
7495
|
+
var imageStyles3 = import_react48.css`
|
|
7337
7496
|
flex: 1;
|
|
7338
7497
|
min-width: 0;
|
|
7339
7498
|
aspect-ratio: 1;
|
|
@@ -7343,13 +7502,13 @@ var imageStyles3 = import_react46.css`
|
|
|
7343
7502
|
`;
|
|
7344
7503
|
|
|
7345
7504
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
7346
|
-
var
|
|
7505
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
7347
7506
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
7348
7507
|
const displayImages = images.slice(0, maxImages);
|
|
7349
7508
|
if (displayImages.length === 0) {
|
|
7350
7509
|
return null;
|
|
7351
7510
|
}
|
|
7352
|
-
return /* @__PURE__ */ (0,
|
|
7511
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7353
7512
|
"img",
|
|
7354
7513
|
{
|
|
7355
7514
|
src: image,
|
|
@@ -7362,7 +7521,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
7362
7521
|
var ReviewImages_default = ReviewImages;
|
|
7363
7522
|
|
|
7364
7523
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
7365
|
-
var
|
|
7524
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7366
7525
|
var ReviewReply = ({
|
|
7367
7526
|
avatarSrc,
|
|
7368
7527
|
name,
|
|
@@ -7371,7 +7530,7 @@ var ReviewReply = ({
|
|
|
7371
7530
|
label,
|
|
7372
7531
|
rating
|
|
7373
7532
|
}) => {
|
|
7374
|
-
return /* @__PURE__ */ (0,
|
|
7533
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
|
|
7375
7534
|
Box_default,
|
|
7376
7535
|
{
|
|
7377
7536
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -7381,7 +7540,7 @@ var ReviewReply = ({
|
|
|
7381
7540
|
flexDirection: "column",
|
|
7382
7541
|
gap: "var(--spacing-3)",
|
|
7383
7542
|
children: [
|
|
7384
|
-
/* @__PURE__ */ (0,
|
|
7543
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
|
|
7385
7544
|
Box_default,
|
|
7386
7545
|
{
|
|
7387
7546
|
display: "flex",
|
|
@@ -7389,7 +7548,7 @@ var ReviewReply = ({
|
|
|
7389
7548
|
justifyContent: "space-between",
|
|
7390
7549
|
gap: "var(--spacing-2)",
|
|
7391
7550
|
children: [
|
|
7392
|
-
/* @__PURE__ */ (0,
|
|
7551
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
7393
7552
|
UserCard_default,
|
|
7394
7553
|
{
|
|
7395
7554
|
avatarSrc,
|
|
@@ -7398,11 +7557,11 @@ var ReviewReply = ({
|
|
|
7398
7557
|
rating
|
|
7399
7558
|
}
|
|
7400
7559
|
),
|
|
7401
|
-
/* @__PURE__ */ (0,
|
|
7560
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
7402
7561
|
]
|
|
7403
7562
|
}
|
|
7404
7563
|
),
|
|
7405
|
-
/* @__PURE__ */ (0,
|
|
7564
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Text_default, { children: content })
|
|
7406
7565
|
]
|
|
7407
7566
|
}
|
|
7408
7567
|
);
|
|
@@ -7410,7 +7569,7 @@ var ReviewReply = ({
|
|
|
7410
7569
|
var ReviewReply_default = ReviewReply;
|
|
7411
7570
|
|
|
7412
7571
|
// src/ReviewCard/ReviewCard.tsx
|
|
7413
|
-
var
|
|
7572
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7414
7573
|
var ReviewCard = ({
|
|
7415
7574
|
avatarSrc,
|
|
7416
7575
|
name,
|
|
@@ -7422,7 +7581,7 @@ var ReviewCard = ({
|
|
|
7422
7581
|
replies = [],
|
|
7423
7582
|
className
|
|
7424
7583
|
}) => {
|
|
7425
|
-
return /* @__PURE__ */ (0,
|
|
7584
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7426
7585
|
Box_default,
|
|
7427
7586
|
{
|
|
7428
7587
|
backgroundColor: "white",
|
|
@@ -7434,7 +7593,7 @@ var ReviewCard = ({
|
|
|
7434
7593
|
border: "1px solid var(--color-neutral-200)",
|
|
7435
7594
|
className,
|
|
7436
7595
|
children: [
|
|
7437
|
-
/* @__PURE__ */ (0,
|
|
7596
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7438
7597
|
UserCard_default,
|
|
7439
7598
|
{
|
|
7440
7599
|
avatarSrc,
|
|
@@ -7443,10 +7602,10 @@ var ReviewCard = ({
|
|
|
7443
7602
|
rating
|
|
7444
7603
|
}
|
|
7445
7604
|
),
|
|
7446
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
7447
|
-
/* @__PURE__ */ (0,
|
|
7448
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
7449
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
7605
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
7606
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Text_default, { size: "md", children: content }),
|
|
7607
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(ReviewImages_default, { images }),
|
|
7608
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7450
7609
|
ReviewReply_default,
|
|
7451
7610
|
{
|
|
7452
7611
|
avatarSrc: reply.avatarSrc,
|
|
@@ -7465,9 +7624,9 @@ var ReviewCard = ({
|
|
|
7465
7624
|
var ReviewCard_default = ReviewCard;
|
|
7466
7625
|
|
|
7467
7626
|
// src/Reviews/components/ReviewItem.tsx
|
|
7468
|
-
var
|
|
7627
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7469
7628
|
var ReviewItem = ({ label, rating }) => {
|
|
7470
|
-
return /* @__PURE__ */ (0,
|
|
7629
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
7471
7630
|
Box_default,
|
|
7472
7631
|
{
|
|
7473
7632
|
display: "flex",
|
|
@@ -7475,10 +7634,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
7475
7634
|
alignItems: "center",
|
|
7476
7635
|
width: "100%",
|
|
7477
7636
|
children: [
|
|
7478
|
-
/* @__PURE__ */ (0,
|
|
7479
|
-
/* @__PURE__ */ (0,
|
|
7480
|
-
/* @__PURE__ */ (0,
|
|
7481
|
-
/* @__PURE__ */ (0,
|
|
7637
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
7638
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
7639
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
7640
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Text_default, { fontWeight: "semibold", children: [
|
|
7482
7641
|
rating,
|
|
7483
7642
|
"/5"
|
|
7484
7643
|
] })
|
|
@@ -7490,14 +7649,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
7490
7649
|
var ReviewItem_default = ReviewItem;
|
|
7491
7650
|
|
|
7492
7651
|
// src/Reviews/Reviews.tsx
|
|
7493
|
-
var
|
|
7652
|
+
var import_jsx_runtime243 = require("@emotion/react/jsx-runtime");
|
|
7494
7653
|
var Reviews = ({
|
|
7495
7654
|
averageRating,
|
|
7496
7655
|
totalReviews,
|
|
7497
7656
|
items,
|
|
7498
7657
|
className
|
|
7499
7658
|
}) => {
|
|
7500
|
-
return /* @__PURE__ */ (0,
|
|
7659
|
+
return /* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
7501
7660
|
Box_default,
|
|
7502
7661
|
{
|
|
7503
7662
|
width: "100%",
|
|
@@ -7510,7 +7669,7 @@ var Reviews = ({
|
|
|
7510
7669
|
p: "var(--spacing-4)",
|
|
7511
7670
|
className,
|
|
7512
7671
|
children: [
|
|
7513
|
-
/* @__PURE__ */ (0,
|
|
7672
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(
|
|
7514
7673
|
Box_default,
|
|
7515
7674
|
{
|
|
7516
7675
|
display: "flex",
|
|
@@ -7518,9 +7677,9 @@ var Reviews = ({
|
|
|
7518
7677
|
alignItems: "center",
|
|
7519
7678
|
gap: "var(--spacing-2)",
|
|
7520
7679
|
children: [
|
|
7521
|
-
/* @__PURE__ */ (0,
|
|
7522
|
-
/* @__PURE__ */ (0,
|
|
7523
|
-
/* @__PURE__ */ (0,
|
|
7680
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
7681
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(StarRating_default, { rating: Math.floor(averageRating) }),
|
|
7682
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
7524
7683
|
"Overall Rating \u2022 ",
|
|
7525
7684
|
totalReviews,
|
|
7526
7685
|
" Review",
|
|
@@ -7529,14 +7688,14 @@ var Reviews = ({
|
|
|
7529
7688
|
]
|
|
7530
7689
|
}
|
|
7531
7690
|
),
|
|
7532
|
-
/* @__PURE__ */ (0,
|
|
7691
|
+
/* @__PURE__ */ (0, import_jsx_runtime243.jsx)(
|
|
7533
7692
|
Box_default,
|
|
7534
7693
|
{
|
|
7535
7694
|
display: "flex",
|
|
7536
7695
|
flexDirection: "column",
|
|
7537
7696
|
gap: "var(--spacing-2)",
|
|
7538
7697
|
width: "100%",
|
|
7539
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
7698
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime243.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
7540
7699
|
}
|
|
7541
7700
|
)
|
|
7542
7701
|
]
|
|
@@ -7546,7 +7705,7 @@ var Reviews = ({
|
|
|
7546
7705
|
var Reviews_default = Reviews;
|
|
7547
7706
|
|
|
7548
7707
|
// src/Reviews/ReviewsShowcase.tsx
|
|
7549
|
-
var
|
|
7708
|
+
var import_jsx_runtime244 = require("@emotion/react/jsx-runtime");
|
|
7550
7709
|
var ReviewsShowcase = () => {
|
|
7551
7710
|
const sampleData = {
|
|
7552
7711
|
averageRating: 4,
|
|
@@ -7568,7 +7727,7 @@ var ReviewsShowcase = () => {
|
|
|
7568
7727
|
{ label: "Game Abundance", rating: 5 }
|
|
7569
7728
|
]
|
|
7570
7729
|
};
|
|
7571
|
-
return /* @__PURE__ */ (0,
|
|
7730
|
+
return /* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(
|
|
7572
7731
|
Box_default,
|
|
7573
7732
|
{
|
|
7574
7733
|
display: "flex",
|
|
@@ -7576,24 +7735,24 @@ var ReviewsShowcase = () => {
|
|
|
7576
7735
|
gap: "var(--spacing-8)",
|
|
7577
7736
|
p: "var(--spacing-6)",
|
|
7578
7737
|
children: [
|
|
7579
|
-
/* @__PURE__ */ (0,
|
|
7580
|
-
/* @__PURE__ */ (0,
|
|
7581
|
-
/* @__PURE__ */ (0,
|
|
7582
|
-
/* @__PURE__ */ (0,
|
|
7738
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
7739
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7740
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
7741
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Reviews_default, { ...sampleData }) })
|
|
7583
7742
|
] }),
|
|
7584
|
-
/* @__PURE__ */ (0,
|
|
7585
|
-
/* @__PURE__ */ (0,
|
|
7586
|
-
/* @__PURE__ */ (0,
|
|
7743
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7744
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
7745
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Reviews_default, { ...highRatingData }) })
|
|
7587
7746
|
] }),
|
|
7588
|
-
/* @__PURE__ */ (0,
|
|
7589
|
-
/* @__PURE__ */ (0,
|
|
7590
|
-
/* @__PURE__ */ (0,
|
|
7747
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7748
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
7749
|
+
/* @__PURE__ */ (0, import_jsx_runtime244.jsx)(
|
|
7591
7750
|
Box_default,
|
|
7592
7751
|
{
|
|
7593
7752
|
maxWidth: "320px",
|
|
7594
7753
|
border: "1px solid var(--color-neutral-200)",
|
|
7595
7754
|
p: "var(--spacing-4)",
|
|
7596
|
-
children: /* @__PURE__ */ (0,
|
|
7755
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime244.jsx)(Reviews_default, { ...sampleData })
|
|
7597
7756
|
}
|
|
7598
7757
|
)
|
|
7599
7758
|
] })
|