@landtrustinc/design-system 1.2.4 → 1.2.5-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +14 -2
- package/dist/index.js +494 -357
- 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,
|
|
@@ -4607,7 +4610,7 @@ var Avatar = ({
|
|
|
4607
4610
|
var Avatar_default = Avatar;
|
|
4608
4611
|
|
|
4609
4612
|
// src/ChatWidget/ChatWidget.tsx
|
|
4610
|
-
var
|
|
4613
|
+
var import_react30 = __toESM(require("react"));
|
|
4611
4614
|
|
|
4612
4615
|
// src/Divider/Divider.tsx
|
|
4613
4616
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
@@ -4926,7 +4929,7 @@ var import_react25 = require("@emotion/react");
|
|
|
4926
4929
|
var panelContainer = import_react25.css`
|
|
4927
4930
|
position: absolute;
|
|
4928
4931
|
right: 0;
|
|
4929
|
-
bottom:
|
|
4932
|
+
bottom: calc(100% + var(--spacing-2));
|
|
4930
4933
|
z-index: 1;
|
|
4931
4934
|
|
|
4932
4935
|
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
@@ -4951,6 +4954,20 @@ var panelCard = (width2) => import_react25.css`
|
|
|
4951
4954
|
|
|
4952
4955
|
/* Width passed from props (desktop/tablet) */
|
|
4953
4956
|
width: ${typeof width2 === "number" ? `${width2}px` : width2};
|
|
4957
|
+
max-height: 90vh;
|
|
4958
|
+
|
|
4959
|
+
/* Scale animation on open */
|
|
4960
|
+
transform-origin: bottom right;
|
|
4961
|
+
animation: widgetScaleIn 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
|
|
4962
|
+
|
|
4963
|
+
@keyframes widgetScaleIn {
|
|
4964
|
+
from {
|
|
4965
|
+
transform: scale(0.7);
|
|
4966
|
+
}
|
|
4967
|
+
to {
|
|
4968
|
+
transform: scale(1);
|
|
4969
|
+
}
|
|
4970
|
+
}
|
|
4954
4971
|
|
|
4955
4972
|
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
4956
4973
|
width: 100vw;
|
|
@@ -4958,6 +4975,7 @@ var panelCard = (width2) => import_react25.css`
|
|
|
4958
4975
|
border-radius: 0;
|
|
4959
4976
|
padding: var(--spacing-4);
|
|
4960
4977
|
overflow: auto;
|
|
4978
|
+
transform-origin: center;
|
|
4961
4979
|
}
|
|
4962
4980
|
`;
|
|
4963
4981
|
var widgetTrigger = import_react25.css`
|
|
@@ -4991,29 +5009,19 @@ var WidgetTrigger = () => {
|
|
|
4991
5009
|
) });
|
|
4992
5010
|
};
|
|
4993
5011
|
var WidgetPanel = ({ className, style, children }) => {
|
|
4994
|
-
var _a;
|
|
4995
5012
|
const { expanded, panelWidth } = useWidgetContext();
|
|
4996
|
-
|
|
4997
|
-
|
|
5013
|
+
if (!expanded)
|
|
5014
|
+
return null;
|
|
5015
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { css: panelContainer, className, style, children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
5016
|
+
Box_default,
|
|
4998
5017
|
{
|
|
4999
|
-
css:
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
},
|
|
5005
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
5006
|
-
Box_default,
|
|
5007
|
-
{
|
|
5008
|
-
css: panelCard(panelWidth),
|
|
5009
|
-
role: "dialog",
|
|
5010
|
-
"aria-modal": expanded ? true : false,
|
|
5011
|
-
"aria-hidden": !expanded,
|
|
5012
|
-
children
|
|
5013
|
-
}
|
|
5014
|
-
)
|
|
5018
|
+
css: panelCard(panelWidth),
|
|
5019
|
+
role: "dialog",
|
|
5020
|
+
"aria-modal": true,
|
|
5021
|
+
"aria-hidden": false,
|
|
5022
|
+
children
|
|
5015
5023
|
}
|
|
5016
|
-
);
|
|
5024
|
+
) });
|
|
5017
5025
|
};
|
|
5018
5026
|
var WidgetRoot = ({
|
|
5019
5027
|
ariaLabel,
|
|
@@ -5168,10 +5176,137 @@ var closeButtonContent = import_react27.css`
|
|
|
5168
5176
|
gap: var(--spacing-2);
|
|
5169
5177
|
`;
|
|
5170
5178
|
|
|
5171
|
-
// src/ChatWidget/
|
|
5179
|
+
// src/ChatWidget/components/AskBuckButton.tsx
|
|
5180
|
+
var import_react29 = __toESM(require("react"));
|
|
5181
|
+
|
|
5182
|
+
// src/ChatWidget/components/AskBuckButton.styles.ts
|
|
5183
|
+
var import_react28 = require("@emotion/react");
|
|
5184
|
+
var rotateGradient = import_react28.keyframes`
|
|
5185
|
+
0% {
|
|
5186
|
+
--gradient-angle: 0deg;
|
|
5187
|
+
}
|
|
5188
|
+
100% {
|
|
5189
|
+
--gradient-angle: 360deg;
|
|
5190
|
+
}
|
|
5191
|
+
`;
|
|
5192
|
+
var triggerWrapperStyles = (isAnimating) => import_react28.css`
|
|
5193
|
+
position: relative;
|
|
5194
|
+
display: inline-block;
|
|
5195
|
+
|
|
5196
|
+
/* Pseudo-element creates the animated gradient border */
|
|
5197
|
+
&::before {
|
|
5198
|
+
content: '';
|
|
5199
|
+
position: absolute;
|
|
5200
|
+
inset: -3px; /* 3px larger on all sides = border width */
|
|
5201
|
+
border-radius: var(--radius-round);
|
|
5202
|
+
z-index: -1; /* Behind the button */
|
|
5203
|
+
box-shadow: 0px 0px var(--shadow-blur-lg, 24px)
|
|
5204
|
+
var(--shadow-spread-xs, -4px) rgba(17, 17, 17, 0.1);
|
|
5205
|
+
|
|
5206
|
+
${isAnimating ? import_react28.css`
|
|
5207
|
+
/* Register the custom property */
|
|
5208
|
+
@property --gradient-angle {
|
|
5209
|
+
syntax: '<angle>';
|
|
5210
|
+
initial-value: 0deg;
|
|
5211
|
+
inherits: false;
|
|
5212
|
+
}
|
|
5213
|
+
|
|
5214
|
+
/* Animated gradient background */
|
|
5215
|
+
background: conic-gradient(
|
|
5216
|
+
from var(--gradient-angle, 0deg),
|
|
5217
|
+
var(--color-primary-600) 0%,
|
|
5218
|
+
var(--color-primary-600) 25%,
|
|
5219
|
+
var(--color-primary-300) 50%,
|
|
5220
|
+
var(--color-primary-600) 75%,
|
|
5221
|
+
var(--color-primary-600) 100%
|
|
5222
|
+
);
|
|
5223
|
+
animation: ${rotateGradient} 3s linear infinite;
|
|
5224
|
+
` : import_react28.css`
|
|
5225
|
+
/* Static border when not animating */
|
|
5226
|
+
background: var(--color-primary-600);
|
|
5227
|
+
`}
|
|
5228
|
+
}
|
|
5229
|
+
`;
|
|
5230
|
+
var badgeStyles = import_react28.css`
|
|
5231
|
+
display: inline-flex;
|
|
5232
|
+
align-items: center;
|
|
5233
|
+
justify-content: center;
|
|
5234
|
+
width: 16px;
|
|
5235
|
+
height: 16px;
|
|
5236
|
+
border-radius: 50%;
|
|
5237
|
+
background-color: var(--text-primary);
|
|
5238
|
+
color: var(--surface-page);
|
|
5239
|
+
font-size: 10px;
|
|
5240
|
+
font-weight: 700;
|
|
5241
|
+
line-height: 1;
|
|
5242
|
+
flex-shrink: 0;
|
|
5243
|
+
margin-right: var(--spacing-1);
|
|
5244
|
+
`;
|
|
5245
|
+
var buttonOverrideStyles = import_react28.css`
|
|
5246
|
+
background: var(--surface-page);
|
|
5247
|
+
border: none;
|
|
5248
|
+
border-radius: var(--radius-round);
|
|
5249
|
+
padding: var(--spacing-2) var(--spacing-7);
|
|
5250
|
+
box-shadow: none;
|
|
5251
|
+
color: var(--text-primary);
|
|
5252
|
+
font-weight: 700;
|
|
5253
|
+
gap: var(--spacing-2);
|
|
5254
|
+
|
|
5255
|
+
&:hover {
|
|
5256
|
+
background-color: var(--surface-action-3-hover);
|
|
5257
|
+
}
|
|
5258
|
+
|
|
5259
|
+
&:active {
|
|
5260
|
+
background-color: var(--surface-action-3-hover);
|
|
5261
|
+
}
|
|
5262
|
+
|
|
5263
|
+
&:focus {
|
|
5264
|
+
outline-offset: 3px;
|
|
5265
|
+
}
|
|
5266
|
+
|
|
5267
|
+
svg {
|
|
5268
|
+
color: var(--icon-primary);
|
|
5269
|
+
}
|
|
5270
|
+
`;
|
|
5271
|
+
|
|
5272
|
+
// src/ChatWidget/components/AskBuckButton.tsx
|
|
5172
5273
|
var import_jsx_runtime213 = require("@emotion/react/jsx-runtime");
|
|
5274
|
+
var AskBuckButton = import_react29.default.forwardRef(
|
|
5275
|
+
({ isAnimating = true, children = "Ask Buck", badgeCount }, ref) => {
|
|
5276
|
+
var _a;
|
|
5277
|
+
const widgetContext = (0, import_react29.useContext)(WidgetContext);
|
|
5278
|
+
const isExpanded = (_a = widgetContext == null ? void 0 : widgetContext.expanded) != null ? _a : false;
|
|
5279
|
+
const showBadge = !isExpanded && badgeCount !== void 0 && badgeCount > 0;
|
|
5280
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsx)("div", { css: triggerWrapperStyles(isAnimating), children: /* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
5281
|
+
Button_default,
|
|
5282
|
+
{
|
|
5283
|
+
ref,
|
|
5284
|
+
"aria-expanded": widgetContext == null ? void 0 : widgetContext.expanded,
|
|
5285
|
+
"aria-haspopup": "dialog",
|
|
5286
|
+
onClick: widgetContext == null ? void 0 : widgetContext.toggle,
|
|
5287
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(import_jsx_runtime213.Fragment, { children: [
|
|
5288
|
+
showBadge && /* @__PURE__ */ (0, import_jsx_runtime213.jsx)("span", { css: badgeStyles, children: badgeCount }),
|
|
5289
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
5290
|
+
Icon_default,
|
|
5291
|
+
{
|
|
5292
|
+
variant: isExpanded ? "AngleDownSharp" : "ConversationalSearchAi",
|
|
5293
|
+
size: "large"
|
|
5294
|
+
}
|
|
5295
|
+
)
|
|
5296
|
+
] }),
|
|
5297
|
+
css: buttonOverrideStyles,
|
|
5298
|
+
children: isExpanded ? "Close" : children
|
|
5299
|
+
}
|
|
5300
|
+
) });
|
|
5301
|
+
}
|
|
5302
|
+
);
|
|
5303
|
+
AskBuckButton.displayName = "AskBuckButton";
|
|
5304
|
+
var AskBuckButton_default = AskBuckButton;
|
|
5305
|
+
|
|
5306
|
+
// src/ChatWidget/ChatWidget.tsx
|
|
5307
|
+
var import_jsx_runtime214 = require("@emotion/react/jsx-runtime");
|
|
5173
5308
|
var DEFAULT_EMPTY_STATE = [
|
|
5174
|
-
/* @__PURE__ */ (0,
|
|
5309
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5175
5310
|
AIResponse_default,
|
|
5176
5311
|
{
|
|
5177
5312
|
showDisclaimer: false,
|
|
@@ -5195,18 +5330,20 @@ var ChatWidget = ({
|
|
|
5195
5330
|
defaultExpanded = false,
|
|
5196
5331
|
onExpandedChange,
|
|
5197
5332
|
isThinking = false,
|
|
5333
|
+
thinkingText = "Thinking...",
|
|
5198
5334
|
emptyState = DEFAULT_EMPTY_STATE,
|
|
5199
5335
|
containerProps,
|
|
5200
5336
|
suggestedPrompts,
|
|
5201
5337
|
onPromptClick,
|
|
5202
|
-
suggestedPromptsTitle = "Other Helpful Topics"
|
|
5338
|
+
suggestedPromptsTitle = "Other Helpful Topics",
|
|
5339
|
+
notificationCount
|
|
5203
5340
|
}) => {
|
|
5204
|
-
const [value, setValue] = (0,
|
|
5205
|
-
const scrollRef = (0,
|
|
5341
|
+
const [value, setValue] = (0, import_react30.useState)("");
|
|
5342
|
+
const scrollRef = (0, import_react30.useRef)(null);
|
|
5206
5343
|
const isControlled = typeof expanded === "boolean";
|
|
5207
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
5344
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react30.useState)(defaultExpanded);
|
|
5208
5345
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
5209
|
-
const setExpanded = (0,
|
|
5346
|
+
const setExpanded = (0, import_react30.useCallback)(
|
|
5210
5347
|
(next) => {
|
|
5211
5348
|
if (!isControlled)
|
|
5212
5349
|
setInternalExpanded(next);
|
|
@@ -5214,24 +5351,24 @@ var ChatWidget = ({
|
|
|
5214
5351
|
},
|
|
5215
5352
|
[isControlled, onExpandedChange]
|
|
5216
5353
|
);
|
|
5217
|
-
(0,
|
|
5354
|
+
(0, import_react30.useEffect)(() => {
|
|
5218
5355
|
const el = scrollRef.current;
|
|
5219
5356
|
if (!el)
|
|
5220
5357
|
return;
|
|
5221
5358
|
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
5222
5359
|
}, [messages, isThinking]);
|
|
5223
5360
|
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
5224
|
-
const renderedMessages = (0,
|
|
5361
|
+
const renderedMessages = (0, import_react30.useMemo)(
|
|
5225
5362
|
() => messagesToRender.map((element, index) => {
|
|
5226
5363
|
var _a;
|
|
5227
5364
|
const key = (_a = element.key) != null ? _a : index;
|
|
5228
5365
|
if (element.type === AIResponse_default) {
|
|
5229
|
-
return /* @__PURE__ */ (0,
|
|
5366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: receivedWrapperStyles, children: element }, key);
|
|
5230
5367
|
}
|
|
5231
5368
|
if (element.type === MessageBubble_default) {
|
|
5232
|
-
return /* @__PURE__ */ (0,
|
|
5369
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
5233
5370
|
}
|
|
5234
|
-
return /* @__PURE__ */ (0,
|
|
5371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(import_react30.default.Fragment, { children: element }, key);
|
|
5235
5372
|
}),
|
|
5236
5373
|
[messagesToRender]
|
|
5237
5374
|
);
|
|
@@ -5242,7 +5379,7 @@ var ChatWidget = ({
|
|
|
5242
5379
|
onSubmit(trimmed);
|
|
5243
5380
|
setValue("");
|
|
5244
5381
|
};
|
|
5245
|
-
return /* @__PURE__ */ (0,
|
|
5382
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
5246
5383
|
Widget_default,
|
|
5247
5384
|
{
|
|
5248
5385
|
ariaLabel,
|
|
@@ -5253,10 +5390,10 @@ var ChatWidget = ({
|
|
|
5253
5390
|
className,
|
|
5254
5391
|
containerProps,
|
|
5255
5392
|
children: [
|
|
5256
|
-
/* @__PURE__ */ (0,
|
|
5257
|
-
/* @__PURE__ */ (0,
|
|
5258
|
-
/* @__PURE__ */ (0,
|
|
5259
|
-
/* @__PURE__ */ (0,
|
|
5393
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { mt: 2, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(AskBuckButton_default, { badgeCount: notificationCount }) }),
|
|
5394
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Widget_default.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { css: containerStyles, children: [
|
|
5395
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { position: "sticky", top: 0, zIndex: 1, children: [
|
|
5396
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
5260
5397
|
Box_default,
|
|
5261
5398
|
{
|
|
5262
5399
|
display: "flex",
|
|
@@ -5264,9 +5401,9 @@ var ChatWidget = ({
|
|
|
5264
5401
|
justifyContent: "space-between",
|
|
5265
5402
|
gap: "var(--spacing-4)",
|
|
5266
5403
|
children: [
|
|
5267
|
-
/* @__PURE__ */ (0,
|
|
5268
|
-
/* @__PURE__ */ (0,
|
|
5269
|
-
/* @__PURE__ */ (0,
|
|
5404
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
|
|
5405
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: "large" }) }),
|
|
5406
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5270
5407
|
Heading_default,
|
|
5271
5408
|
{
|
|
5272
5409
|
size: "2xs",
|
|
@@ -5276,25 +5413,25 @@ var ChatWidget = ({
|
|
|
5276
5413
|
}
|
|
5277
5414
|
)
|
|
5278
5415
|
] }),
|
|
5279
|
-
/* @__PURE__ */ (0,
|
|
5416
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5280
5417
|
Button_default,
|
|
5281
5418
|
{
|
|
5282
5419
|
variant: "text",
|
|
5283
5420
|
size: "xs",
|
|
5284
5421
|
"aria-label": "Close widget",
|
|
5285
5422
|
onClick: () => setExpanded(false),
|
|
5286
|
-
children: /* @__PURE__ */ (0,
|
|
5287
|
-
/* @__PURE__ */ (0,
|
|
5288
|
-
/* @__PURE__ */ (0,
|
|
5423
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)("span", { css: closeButtonContent, children: [
|
|
5424
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Icon_default, { variant: "Xmark", size: "medium" }),
|
|
5425
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)("span", { children: "Close" })
|
|
5289
5426
|
] })
|
|
5290
5427
|
}
|
|
5291
5428
|
)
|
|
5292
5429
|
]
|
|
5293
5430
|
}
|
|
5294
5431
|
),
|
|
5295
|
-
/* @__PURE__ */ (0,
|
|
5432
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
5296
5433
|
] }),
|
|
5297
|
-
/* @__PURE__ */ (0,
|
|
5434
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
5298
5435
|
Box_default,
|
|
5299
5436
|
{
|
|
5300
5437
|
ref: scrollRef,
|
|
@@ -5307,27 +5444,27 @@ var ChatWidget = ({
|
|
|
5307
5444
|
flexDirection: "column",
|
|
5308
5445
|
gap: "var(--spacing-2)",
|
|
5309
5446
|
children: [
|
|
5310
|
-
/* @__PURE__ */ (0,
|
|
5311
|
-
isThinking && /* @__PURE__ */ (0,
|
|
5312
|
-
/* @__PURE__ */ (0,
|
|
5313
|
-
/* @__PURE__ */ (0,
|
|
5447
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
5448
|
+
isThinking && /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
5449
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Spinner_default2, { size: "medium" }),
|
|
5450
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)("span", { css: thinkingTextStyles, children: thinkingText })
|
|
5314
5451
|
] }) }),
|
|
5315
|
-
suggestedPrompts && suggestedPrompts.length > 0 && /* @__PURE__ */ (0,
|
|
5452
|
+
suggestedPrompts && suggestedPrompts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
5316
5453
|
Box_default,
|
|
5317
5454
|
{
|
|
5318
5455
|
display: "flex",
|
|
5319
5456
|
flexDirection: "column",
|
|
5320
5457
|
gap: "var(--spacing-4)",
|
|
5321
5458
|
children: [
|
|
5322
|
-
/* @__PURE__ */ (0,
|
|
5323
|
-
/* @__PURE__ */ (0,
|
|
5459
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Text_default, { size: "md", fontWeight: "bold", color: "var(--text-primary)", children: suggestedPromptsTitle }),
|
|
5460
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5324
5461
|
Box_default,
|
|
5325
5462
|
{
|
|
5326
5463
|
display: "flex",
|
|
5327
5464
|
flexWrap: "wrap",
|
|
5328
5465
|
gap: "var(--spacing-4)",
|
|
5329
5466
|
alignItems: "flex-start",
|
|
5330
|
-
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0,
|
|
5467
|
+
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5331
5468
|
TagChip_default,
|
|
5332
5469
|
{
|
|
5333
5470
|
variant: "success",
|
|
@@ -5348,7 +5485,7 @@ var ChatWidget = ({
|
|
|
5348
5485
|
]
|
|
5349
5486
|
}
|
|
5350
5487
|
),
|
|
5351
|
-
/* @__PURE__ */ (0,
|
|
5488
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { position: "sticky", bottom: 0, zIndex: 1, p: 0, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5352
5489
|
TextArea_default,
|
|
5353
5490
|
{
|
|
5354
5491
|
rows: 3,
|
|
@@ -5372,7 +5509,7 @@ var ChatWidget_default = ChatWidget;
|
|
|
5372
5509
|
|
|
5373
5510
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
5374
5511
|
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
5375
|
-
var
|
|
5512
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
5376
5513
|
var FeatureListItem = ({
|
|
5377
5514
|
iconVariant,
|
|
5378
5515
|
label,
|
|
@@ -5385,8 +5522,8 @@ var FeatureListItem = ({
|
|
|
5385
5522
|
}) => {
|
|
5386
5523
|
const iconDimensions = IconSizeMap[iconSize];
|
|
5387
5524
|
if (isLoading) {
|
|
5388
|
-
return /* @__PURE__ */ (0,
|
|
5389
|
-
/* @__PURE__ */ (0,
|
|
5525
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
5526
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
5390
5527
|
Box_default,
|
|
5391
5528
|
{
|
|
5392
5529
|
display: "flex",
|
|
@@ -5395,7 +5532,7 @@ var FeatureListItem = ({
|
|
|
5395
5532
|
className,
|
|
5396
5533
|
...rest,
|
|
5397
5534
|
children: [
|
|
5398
|
-
/* @__PURE__ */ (0,
|
|
5535
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
5399
5536
|
import_react_loading_skeleton.default,
|
|
5400
5537
|
{
|
|
5401
5538
|
circle: true,
|
|
@@ -5404,18 +5541,18 @@ var FeatureListItem = ({
|
|
|
5404
5541
|
borderRadius: 4
|
|
5405
5542
|
}
|
|
5406
5543
|
),
|
|
5407
|
-
/* @__PURE__ */ (0,
|
|
5544
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
5408
5545
|
]
|
|
5409
5546
|
}
|
|
5410
5547
|
),
|
|
5411
|
-
subtitle && /* @__PURE__ */ (0,
|
|
5412
|
-
/* @__PURE__ */ (0,
|
|
5413
|
-
/* @__PURE__ */ (0,
|
|
5548
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
5549
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
5550
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(import_react_loading_skeleton.default, { width: 150, height: 14, borderRadius: 4 })
|
|
5414
5551
|
] })
|
|
5415
5552
|
] });
|
|
5416
5553
|
}
|
|
5417
|
-
return /* @__PURE__ */ (0,
|
|
5418
|
-
/* @__PURE__ */ (0,
|
|
5554
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
5555
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
5419
5556
|
Box_default,
|
|
5420
5557
|
{
|
|
5421
5558
|
display: "flex",
|
|
@@ -5424,23 +5561,23 @@ var FeatureListItem = ({
|
|
|
5424
5561
|
className,
|
|
5425
5562
|
...rest,
|
|
5426
5563
|
children: [
|
|
5427
|
-
/* @__PURE__ */ (0,
|
|
5428
|
-
/* @__PURE__ */ (0,
|
|
5564
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Icon_default, { variant: iconVariant, size: iconSize, fill: iconColor }),
|
|
5565
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Text_default, { fontWeight: "semibold", children: label })
|
|
5429
5566
|
]
|
|
5430
5567
|
}
|
|
5431
5568
|
),
|
|
5432
|
-
subtitle && /* @__PURE__ */ (0,
|
|
5433
|
-
/* @__PURE__ */ (0,
|
|
5434
|
-
/* @__PURE__ */ (0,
|
|
5569
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
5570
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
5571
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
5435
5572
|
] })
|
|
5436
5573
|
] });
|
|
5437
5574
|
};
|
|
5438
5575
|
var FeatureListItem_default = FeatureListItem;
|
|
5439
5576
|
|
|
5440
5577
|
// src/FeatureList/FeatureList.tsx
|
|
5441
|
-
var
|
|
5578
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
5442
5579
|
var FeatureList = ({ heading, items, className }) => {
|
|
5443
|
-
return /* @__PURE__ */ (0,
|
|
5580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
|
|
5444
5581
|
Box_default,
|
|
5445
5582
|
{
|
|
5446
5583
|
display: "flex",
|
|
@@ -5448,8 +5585,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
5448
5585
|
gap: "var(--spacing-2)",
|
|
5449
5586
|
className,
|
|
5450
5587
|
children: [
|
|
5451
|
-
heading && /* @__PURE__ */ (0,
|
|
5452
|
-
/* @__PURE__ */ (0,
|
|
5588
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
5589
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(FeatureListItem_default, { ...item }, `${item.iconVariant}-${index}`)) })
|
|
5453
5590
|
]
|
|
5454
5591
|
}
|
|
5455
5592
|
);
|
|
@@ -5457,8 +5594,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
5457
5594
|
var FeatureList_default = FeatureList;
|
|
5458
5595
|
|
|
5459
5596
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
5460
|
-
var
|
|
5461
|
-
var cardContainerStyles =
|
|
5597
|
+
var import_react31 = require("@emotion/react");
|
|
5598
|
+
var cardContainerStyles = import_react31.css`
|
|
5462
5599
|
position: relative;
|
|
5463
5600
|
height: 335px;
|
|
5464
5601
|
|
|
@@ -5466,12 +5603,12 @@ var cardContainerStyles = import_react29.css`
|
|
|
5466
5603
|
height: 480px;
|
|
5467
5604
|
}
|
|
5468
5605
|
`;
|
|
5469
|
-
var cardContentStyles =
|
|
5606
|
+
var cardContentStyles = import_react31.css`
|
|
5470
5607
|
position: relative;
|
|
5471
5608
|
border-radius: var(--spacing-4);
|
|
5472
5609
|
overflow: hidden;
|
|
5473
5610
|
`;
|
|
5474
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
5611
|
+
var getBackgroundWithGradient = (imageUrl) => import_react31.css`
|
|
5475
5612
|
background-image: linear-gradient(
|
|
5476
5613
|
180deg,
|
|
5477
5614
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -5485,7 +5622,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react29.css`
|
|
|
5485
5622
|
`;
|
|
5486
5623
|
|
|
5487
5624
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
5488
|
-
var
|
|
5625
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5489
5626
|
var FieldNoteCard = ({
|
|
5490
5627
|
backgroundImage,
|
|
5491
5628
|
title,
|
|
@@ -5494,14 +5631,14 @@ var FieldNoteCard = ({
|
|
|
5494
5631
|
className,
|
|
5495
5632
|
...rest
|
|
5496
5633
|
}) => {
|
|
5497
|
-
return /* @__PURE__ */ (0,
|
|
5634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5498
5635
|
Box_default,
|
|
5499
5636
|
{
|
|
5500
5637
|
display: "flex",
|
|
5501
5638
|
css: cardContainerStyles,
|
|
5502
5639
|
className,
|
|
5503
5640
|
...rest,
|
|
5504
|
-
children: /* @__PURE__ */ (0,
|
|
5641
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5505
5642
|
Box_default,
|
|
5506
5643
|
{
|
|
5507
5644
|
display: "flex",
|
|
@@ -5509,9 +5646,9 @@ var FieldNoteCard = ({
|
|
|
5509
5646
|
justifyContent: "flex-end",
|
|
5510
5647
|
p: 6,
|
|
5511
5648
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
5512
|
-
children: /* @__PURE__ */ (0,
|
|
5513
|
-
/* @__PURE__ */ (0,
|
|
5514
|
-
/* @__PURE__ */ (0,
|
|
5649
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
5650
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
5651
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
5515
5652
|
] })
|
|
5516
5653
|
}
|
|
5517
5654
|
)
|
|
@@ -5521,14 +5658,14 @@ var FieldNoteCard = ({
|
|
|
5521
5658
|
var FieldNoteCard_default = FieldNoteCard;
|
|
5522
5659
|
|
|
5523
5660
|
// src/Form/FormField.tsx
|
|
5524
|
-
var
|
|
5525
|
-
var
|
|
5526
|
-
var fieldContainerStyles =
|
|
5661
|
+
var import_react32 = require("@emotion/react");
|
|
5662
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
5663
|
+
var fieldContainerStyles = import_react32.css`
|
|
5527
5664
|
display: flex;
|
|
5528
5665
|
flex-direction: column;
|
|
5529
5666
|
gap: ${space["2"]};
|
|
5530
5667
|
`;
|
|
5531
|
-
var labelStyles2 =
|
|
5668
|
+
var labelStyles2 = import_react32.css`
|
|
5532
5669
|
font-family: ${fonts.base};
|
|
5533
5670
|
font-size: ${fontSizes.sm};
|
|
5534
5671
|
font-weight: ${fontWeights.medium};
|
|
@@ -5536,17 +5673,17 @@ var labelStyles2 = import_react30.css`
|
|
|
5536
5673
|
color: ${colors.gray["900"]};
|
|
5537
5674
|
margin-bottom: ${space["1"]};
|
|
5538
5675
|
`;
|
|
5539
|
-
var requiredIndicatorStyles =
|
|
5676
|
+
var requiredIndicatorStyles = import_react32.css`
|
|
5540
5677
|
color: ${colors.red["500"]};
|
|
5541
5678
|
margin-left: ${space["1"]};
|
|
5542
5679
|
`;
|
|
5543
|
-
var helpTextStyles =
|
|
5680
|
+
var helpTextStyles = import_react32.css`
|
|
5544
5681
|
font-family: ${fonts.base};
|
|
5545
5682
|
font-size: ${fontSizes.sm};
|
|
5546
5683
|
line-height: ${lineHeights.tight};
|
|
5547
5684
|
color: ${colors.gray["600"]};
|
|
5548
5685
|
`;
|
|
5549
|
-
var errorTextStyles =
|
|
5686
|
+
var errorTextStyles = import_react32.css`
|
|
5550
5687
|
font-family: ${fonts.base};
|
|
5551
5688
|
font-size: ${fontSizes.sm};
|
|
5552
5689
|
line-height: ${lineHeights.tight};
|
|
@@ -5555,7 +5692,7 @@ var errorTextStyles = import_react30.css`
|
|
|
5555
5692
|
align-items: center;
|
|
5556
5693
|
gap: ${space["1"]};
|
|
5557
5694
|
`;
|
|
5558
|
-
var successTextStyles =
|
|
5695
|
+
var successTextStyles = import_react32.css`
|
|
5559
5696
|
font-family: ${fonts.base};
|
|
5560
5697
|
font-size: ${fontSizes.sm};
|
|
5561
5698
|
line-height: ${lineHeights.tight};
|
|
@@ -5564,7 +5701,7 @@ var successTextStyles = import_react30.css`
|
|
|
5564
5701
|
align-items: center;
|
|
5565
5702
|
gap: ${space["1"]};
|
|
5566
5703
|
`;
|
|
5567
|
-
var visuallyHiddenStyles =
|
|
5704
|
+
var visuallyHiddenStyles = import_react32.css`
|
|
5568
5705
|
position: absolute;
|
|
5569
5706
|
width: 1px;
|
|
5570
5707
|
height: 1px;
|
|
@@ -5589,21 +5726,21 @@ var FormField = ({
|
|
|
5589
5726
|
const hasError = !!error;
|
|
5590
5727
|
const hasSuccess = !!success && !hasError;
|
|
5591
5728
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
5592
|
-
return /* @__PURE__ */ (0,
|
|
5593
|
-
label && /* @__PURE__ */ (0,
|
|
5729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
5730
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
|
|
5594
5731
|
"label",
|
|
5595
5732
|
{
|
|
5596
5733
|
htmlFor,
|
|
5597
5734
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
5598
5735
|
children: [
|
|
5599
5736
|
label,
|
|
5600
|
-
required && /* @__PURE__ */ (0,
|
|
5737
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
5601
5738
|
]
|
|
5602
5739
|
}
|
|
5603
5740
|
),
|
|
5604
5741
|
children,
|
|
5605
|
-
hasError && /* @__PURE__ */ (0,
|
|
5606
|
-
/* @__PURE__ */ (0,
|
|
5742
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
5743
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5607
5744
|
"path",
|
|
5608
5745
|
{
|
|
5609
5746
|
fillRule: "evenodd",
|
|
@@ -5613,8 +5750,8 @@ var FormField = ({
|
|
|
5613
5750
|
) }),
|
|
5614
5751
|
error
|
|
5615
5752
|
] }),
|
|
5616
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
5617
|
-
/* @__PURE__ */ (0,
|
|
5753
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { css: successTextStyles, children: [
|
|
5754
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5618
5755
|
"path",
|
|
5619
5756
|
{
|
|
5620
5757
|
fillRule: "evenodd",
|
|
@@ -5624,15 +5761,15 @@ var FormField = ({
|
|
|
5624
5761
|
) }),
|
|
5625
5762
|
success
|
|
5626
5763
|
] }),
|
|
5627
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
5764
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
5628
5765
|
] });
|
|
5629
5766
|
};
|
|
5630
5767
|
|
|
5631
5768
|
// src/Form/Input.tsx
|
|
5632
|
-
var
|
|
5633
|
-
var
|
|
5634
|
-
var
|
|
5635
|
-
var inputStyles =
|
|
5769
|
+
var import_react33 = require("@emotion/react");
|
|
5770
|
+
var import_react34 = require("react");
|
|
5771
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
5772
|
+
var inputStyles = import_react33.css`
|
|
5636
5773
|
position: relative;
|
|
5637
5774
|
width: 100%;
|
|
5638
5775
|
font-family: ${fonts.base};
|
|
@@ -5669,19 +5806,19 @@ var inputStyles = import_react31.css`
|
|
|
5669
5806
|
}
|
|
5670
5807
|
`;
|
|
5671
5808
|
var sizeStyles = {
|
|
5672
|
-
sm:
|
|
5809
|
+
sm: import_react33.css`
|
|
5673
5810
|
padding: ${space["2"]} ${space["3"]};
|
|
5674
5811
|
font-size: ${fontSizes.sm};
|
|
5675
5812
|
line-height: ${lineHeights.tight};
|
|
5676
5813
|
height: ${space["8"]};
|
|
5677
5814
|
`,
|
|
5678
|
-
md:
|
|
5815
|
+
md: import_react33.css`
|
|
5679
5816
|
padding: ${space["3"]} ${space["4"]};
|
|
5680
5817
|
font-size: ${fontSizes.base};
|
|
5681
5818
|
line-height: ${lineHeights.normal};
|
|
5682
5819
|
height: ${space["10"]};
|
|
5683
5820
|
`,
|
|
5684
|
-
lg:
|
|
5821
|
+
lg: import_react33.css`
|
|
5685
5822
|
padding: ${space["4"]} ${space["5"]};
|
|
5686
5823
|
font-size: ${fontSizes.lg};
|
|
5687
5824
|
line-height: ${lineHeights.normal};
|
|
@@ -5689,8 +5826,8 @@ var sizeStyles = {
|
|
|
5689
5826
|
`
|
|
5690
5827
|
};
|
|
5691
5828
|
var variantStyles = {
|
|
5692
|
-
default:
|
|
5693
|
-
error:
|
|
5829
|
+
default: import_react33.css``,
|
|
5830
|
+
error: import_react33.css`
|
|
5694
5831
|
border-color: ${colors.red["500"]};
|
|
5695
5832
|
|
|
5696
5833
|
&:focus {
|
|
@@ -5698,7 +5835,7 @@ var variantStyles = {
|
|
|
5698
5835
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5699
5836
|
}
|
|
5700
5837
|
`,
|
|
5701
|
-
success:
|
|
5838
|
+
success: import_react33.css`
|
|
5702
5839
|
border-color: ${colors.accent.green};
|
|
5703
5840
|
|
|
5704
5841
|
&:focus {
|
|
@@ -5707,7 +5844,7 @@ var variantStyles = {
|
|
|
5707
5844
|
}
|
|
5708
5845
|
`
|
|
5709
5846
|
};
|
|
5710
|
-
var inputWithIconStyles =
|
|
5847
|
+
var inputWithIconStyles = import_react33.css`
|
|
5711
5848
|
padding-left: ${space["10"]};
|
|
5712
5849
|
|
|
5713
5850
|
&.has-end-icon {
|
|
@@ -5718,7 +5855,7 @@ var inputWithIconStyles = import_react31.css`
|
|
|
5718
5855
|
padding-left: ${space["10"]};
|
|
5719
5856
|
}
|
|
5720
5857
|
`;
|
|
5721
|
-
var iconContainerStyles =
|
|
5858
|
+
var iconContainerStyles = import_react33.css`
|
|
5722
5859
|
position: absolute;
|
|
5723
5860
|
top: 50%;
|
|
5724
5861
|
transform: translateY(-50%);
|
|
@@ -5729,20 +5866,20 @@ var iconContainerStyles = import_react31.css`
|
|
|
5729
5866
|
pointer-events: none;
|
|
5730
5867
|
z-index: 1;
|
|
5731
5868
|
`;
|
|
5732
|
-
var startIconStyles =
|
|
5869
|
+
var startIconStyles = import_react33.css`
|
|
5733
5870
|
${iconContainerStyles}
|
|
5734
5871
|
left: ${space["3"]};
|
|
5735
5872
|
`;
|
|
5736
|
-
var endIconStyles =
|
|
5873
|
+
var endIconStyles = import_react33.css`
|
|
5737
5874
|
${iconContainerStyles}
|
|
5738
5875
|
right: ${space["3"]};
|
|
5739
5876
|
`;
|
|
5740
|
-
var inputWrapperStyles =
|
|
5877
|
+
var inputWrapperStyles = import_react33.css`
|
|
5741
5878
|
position: relative;
|
|
5742
5879
|
display: inline-block;
|
|
5743
5880
|
width: 100%;
|
|
5744
5881
|
`;
|
|
5745
|
-
var Input = (0,
|
|
5882
|
+
var Input = (0, import_react34.forwardRef)(
|
|
5746
5883
|
({
|
|
5747
5884
|
size = "md",
|
|
5748
5885
|
variant = "default",
|
|
@@ -5761,9 +5898,9 @@ var Input = (0, import_react32.forwardRef)(
|
|
|
5761
5898
|
hasEndIcon && "has-end-icon",
|
|
5762
5899
|
className
|
|
5763
5900
|
].filter(Boolean).join(" ");
|
|
5764
|
-
return /* @__PURE__ */ (0,
|
|
5765
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
5766
|
-
/* @__PURE__ */ (0,
|
|
5901
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
5902
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
5903
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5767
5904
|
"input",
|
|
5768
5905
|
{
|
|
5769
5906
|
ref,
|
|
@@ -5780,17 +5917,17 @@ var Input = (0, import_react32.forwardRef)(
|
|
|
5780
5917
|
...props
|
|
5781
5918
|
}
|
|
5782
5919
|
),
|
|
5783
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
5920
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
5784
5921
|
] });
|
|
5785
5922
|
}
|
|
5786
5923
|
);
|
|
5787
5924
|
Input.displayName = "Input";
|
|
5788
5925
|
|
|
5789
5926
|
// src/Form/Select.tsx
|
|
5790
|
-
var
|
|
5791
|
-
var
|
|
5792
|
-
var
|
|
5793
|
-
var selectStyles =
|
|
5927
|
+
var import_react35 = require("@emotion/react");
|
|
5928
|
+
var import_react36 = require("react");
|
|
5929
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5930
|
+
var selectStyles = import_react35.css`
|
|
5794
5931
|
position: relative;
|
|
5795
5932
|
width: 100%;
|
|
5796
5933
|
font-family: ${fonts.base};
|
|
@@ -5829,19 +5966,19 @@ var selectStyles = import_react33.css`
|
|
|
5829
5966
|
}
|
|
5830
5967
|
`;
|
|
5831
5968
|
var sizeStyles2 = {
|
|
5832
|
-
sm:
|
|
5969
|
+
sm: import_react35.css`
|
|
5833
5970
|
padding: ${space["2"]} ${space["3"]};
|
|
5834
5971
|
font-size: ${fontSizes.sm};
|
|
5835
5972
|
line-height: ${lineHeights.tight};
|
|
5836
5973
|
height: ${space["8"]};
|
|
5837
5974
|
`,
|
|
5838
|
-
md:
|
|
5975
|
+
md: import_react35.css`
|
|
5839
5976
|
padding: ${space["3"]} ${space["4"]};
|
|
5840
5977
|
font-size: ${fontSizes.base};
|
|
5841
5978
|
line-height: ${lineHeights.normal};
|
|
5842
5979
|
height: ${space["10"]};
|
|
5843
5980
|
`,
|
|
5844
|
-
lg:
|
|
5981
|
+
lg: import_react35.css`
|
|
5845
5982
|
padding: ${space["4"]} ${space["5"]};
|
|
5846
5983
|
font-size: ${fontSizes.lg};
|
|
5847
5984
|
line-height: ${lineHeights.normal};
|
|
@@ -5849,8 +5986,8 @@ var sizeStyles2 = {
|
|
|
5849
5986
|
`
|
|
5850
5987
|
};
|
|
5851
5988
|
var variantStyles2 = {
|
|
5852
|
-
default:
|
|
5853
|
-
error:
|
|
5989
|
+
default: import_react35.css``,
|
|
5990
|
+
error: import_react35.css`
|
|
5854
5991
|
border-color: ${colors.red["500"]};
|
|
5855
5992
|
|
|
5856
5993
|
&:focus {
|
|
@@ -5858,7 +5995,7 @@ var variantStyles2 = {
|
|
|
5858
5995
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5859
5996
|
}
|
|
5860
5997
|
`,
|
|
5861
|
-
success:
|
|
5998
|
+
success: import_react35.css`
|
|
5862
5999
|
border-color: ${colors.accent.green};
|
|
5863
6000
|
|
|
5864
6001
|
&:focus {
|
|
@@ -5867,7 +6004,7 @@ var variantStyles2 = {
|
|
|
5867
6004
|
}
|
|
5868
6005
|
`
|
|
5869
6006
|
};
|
|
5870
|
-
var optionStyles =
|
|
6007
|
+
var optionStyles = import_react35.css`
|
|
5871
6008
|
background-color: ${colors.light["100"]};
|
|
5872
6009
|
color: ${colors.gray["900"]};
|
|
5873
6010
|
|
|
@@ -5876,7 +6013,7 @@ var optionStyles = import_react33.css`
|
|
|
5876
6013
|
background-color: ${colors.gray["100"]};
|
|
5877
6014
|
}
|
|
5878
6015
|
`;
|
|
5879
|
-
var Select = (0,
|
|
6016
|
+
var Select = (0, import_react36.forwardRef)(
|
|
5880
6017
|
({
|
|
5881
6018
|
size = "md",
|
|
5882
6019
|
variant = "default",
|
|
@@ -5886,7 +6023,7 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
5886
6023
|
className = "",
|
|
5887
6024
|
...props
|
|
5888
6025
|
}, ref) => {
|
|
5889
|
-
return /* @__PURE__ */ (0,
|
|
6026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
5890
6027
|
"select",
|
|
5891
6028
|
{
|
|
5892
6029
|
ref,
|
|
@@ -5895,8 +6032,8 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
5895
6032
|
className,
|
|
5896
6033
|
...props,
|
|
5897
6034
|
children: [
|
|
5898
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
5899
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
6035
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime220.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
6036
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5900
6037
|
"option",
|
|
5901
6038
|
{
|
|
5902
6039
|
value: option.value,
|
|
@@ -5914,10 +6051,10 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
5914
6051
|
Select.displayName = "Select";
|
|
5915
6052
|
|
|
5916
6053
|
// src/Grid/Column.tsx
|
|
5917
|
-
var
|
|
6054
|
+
var import_react38 = require("@emotion/react");
|
|
5918
6055
|
|
|
5919
6056
|
// src/Grid/utils.ts
|
|
5920
|
-
var
|
|
6057
|
+
var import_react37 = require("@emotion/react");
|
|
5921
6058
|
var LayoutTokens = {
|
|
5922
6059
|
containers: {
|
|
5923
6060
|
sm: screens.sm,
|
|
@@ -5957,11 +6094,11 @@ var getResponsiveValue = (value) => {
|
|
|
5957
6094
|
var generateGridColumns = (columns) => {
|
|
5958
6095
|
const baseColumns = getResponsiveValue(columns);
|
|
5959
6096
|
if (typeof columns === "number") {
|
|
5960
|
-
return
|
|
6097
|
+
return import_react37.css`
|
|
5961
6098
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
5962
6099
|
`;
|
|
5963
6100
|
}
|
|
5964
|
-
return
|
|
6101
|
+
return import_react37.css`
|
|
5965
6102
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
5966
6103
|
|
|
5967
6104
|
${media.sm} {
|
|
@@ -5993,11 +6130,11 @@ var generateGridColumns = (columns) => {
|
|
|
5993
6130
|
var generateGapStyles = (gap2) => {
|
|
5994
6131
|
const baseGap = getResponsiveValue(gap2);
|
|
5995
6132
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
5996
|
-
return
|
|
6133
|
+
return import_react37.css`
|
|
5997
6134
|
gap: ${space[gap2]};
|
|
5998
6135
|
`;
|
|
5999
6136
|
}
|
|
6000
|
-
return
|
|
6137
|
+
return import_react37.css`
|
|
6001
6138
|
gap: ${space[baseGap]};
|
|
6002
6139
|
|
|
6003
6140
|
${media.sm} {
|
|
@@ -6020,11 +6157,11 @@ var generateGapStyles = (gap2) => {
|
|
|
6020
6157
|
var generateRowGapStyles = (rowGap) => {
|
|
6021
6158
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
6022
6159
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
6023
|
-
return
|
|
6160
|
+
return import_react37.css`
|
|
6024
6161
|
row-gap: ${space[rowGap]};
|
|
6025
6162
|
`;
|
|
6026
6163
|
}
|
|
6027
|
-
return
|
|
6164
|
+
return import_react37.css`
|
|
6028
6165
|
row-gap: ${space[baseRowGap]};
|
|
6029
6166
|
|
|
6030
6167
|
${media.sm} {
|
|
@@ -6047,11 +6184,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
6047
6184
|
var generateColumnGapStyles = (columnGap) => {
|
|
6048
6185
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
6049
6186
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
6050
|
-
return
|
|
6187
|
+
return import_react37.css`
|
|
6051
6188
|
column-gap: ${space[columnGap]};
|
|
6052
6189
|
`;
|
|
6053
6190
|
}
|
|
6054
|
-
return
|
|
6191
|
+
return import_react37.css`
|
|
6055
6192
|
column-gap: ${space[baseColumnGap]};
|
|
6056
6193
|
|
|
6057
6194
|
${media.sm} {
|
|
@@ -6074,11 +6211,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
6074
6211
|
var generateColumnSpan = (span) => {
|
|
6075
6212
|
const baseSpan = getResponsiveValue(span);
|
|
6076
6213
|
if (typeof span === "string" || typeof span === "number") {
|
|
6077
|
-
return
|
|
6214
|
+
return import_react37.css`
|
|
6078
6215
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
6079
6216
|
`;
|
|
6080
6217
|
}
|
|
6081
|
-
return
|
|
6218
|
+
return import_react37.css`
|
|
6082
6219
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
6083
6220
|
|
|
6084
6221
|
${media.sm} {
|
|
@@ -6101,11 +6238,11 @@ var generateColumnSpan = (span) => {
|
|
|
6101
6238
|
var generateAlignItems = (alignItems) => {
|
|
6102
6239
|
const baseAlign = getResponsiveValue(alignItems);
|
|
6103
6240
|
if (typeof alignItems === "string") {
|
|
6104
|
-
return
|
|
6241
|
+
return import_react37.css`
|
|
6105
6242
|
align-items: ${alignItems};
|
|
6106
6243
|
`;
|
|
6107
6244
|
}
|
|
6108
|
-
return
|
|
6245
|
+
return import_react37.css`
|
|
6109
6246
|
align-items: ${baseAlign};
|
|
6110
6247
|
|
|
6111
6248
|
${media.sm} {
|
|
@@ -6128,11 +6265,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
6128
6265
|
var generateJustifyItems = (justifyItems) => {
|
|
6129
6266
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
6130
6267
|
if (typeof justifyItems === "string") {
|
|
6131
|
-
return
|
|
6268
|
+
return import_react37.css`
|
|
6132
6269
|
justify-items: ${justifyItems};
|
|
6133
6270
|
`;
|
|
6134
6271
|
}
|
|
6135
|
-
return
|
|
6272
|
+
return import_react37.css`
|
|
6136
6273
|
justify-items: ${baseJustify};
|
|
6137
6274
|
|
|
6138
6275
|
${media.sm} {
|
|
@@ -6154,7 +6291,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
6154
6291
|
};
|
|
6155
6292
|
|
|
6156
6293
|
// src/Grid/Column.tsx
|
|
6157
|
-
var
|
|
6294
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
6158
6295
|
var Column = ({
|
|
6159
6296
|
span,
|
|
6160
6297
|
start,
|
|
@@ -6167,30 +6304,30 @@ var Column = ({
|
|
|
6167
6304
|
}) => {
|
|
6168
6305
|
const columnStyles = [
|
|
6169
6306
|
span && generateColumnSpan(span),
|
|
6170
|
-
start &&
|
|
6307
|
+
start && import_react38.css`
|
|
6171
6308
|
grid-column-start: ${start};
|
|
6172
6309
|
`,
|
|
6173
|
-
end &&
|
|
6310
|
+
end && import_react38.css`
|
|
6174
6311
|
grid-column-end: ${end};
|
|
6175
6312
|
`,
|
|
6176
|
-
row &&
|
|
6313
|
+
row && import_react38.css`
|
|
6177
6314
|
grid-row: ${row};
|
|
6178
6315
|
`,
|
|
6179
|
-
rowSpan &&
|
|
6316
|
+
rowSpan && import_react38.css`
|
|
6180
6317
|
grid-row: span ${rowSpan};
|
|
6181
6318
|
`,
|
|
6182
|
-
area &&
|
|
6319
|
+
area && import_react38.css`
|
|
6183
6320
|
grid-area: ${area};
|
|
6184
6321
|
`
|
|
6185
6322
|
].filter(Boolean);
|
|
6186
|
-
return /* @__PURE__ */ (0,
|
|
6323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
6187
6324
|
};
|
|
6188
6325
|
var Column_default = Column;
|
|
6189
6326
|
|
|
6190
6327
|
// src/Grid/Grid.tsx
|
|
6191
|
-
var
|
|
6192
|
-
var
|
|
6193
|
-
var baseGridStyles =
|
|
6328
|
+
var import_react39 = require("@emotion/react");
|
|
6329
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
6330
|
+
var baseGridStyles = import_react39.css`
|
|
6194
6331
|
display: grid;
|
|
6195
6332
|
`;
|
|
6196
6333
|
var Grid = ({
|
|
@@ -6215,27 +6352,27 @@ var Grid = ({
|
|
|
6215
6352
|
columnGap && generateColumnGapStyles(columnGap),
|
|
6216
6353
|
alignItems && generateAlignItems(alignItems),
|
|
6217
6354
|
justifyItems && generateJustifyItems(justifyItems),
|
|
6218
|
-
autoRows &&
|
|
6355
|
+
autoRows && import_react39.css`
|
|
6219
6356
|
grid-auto-rows: ${autoRows};
|
|
6220
6357
|
`,
|
|
6221
|
-
autoColumns &&
|
|
6358
|
+
autoColumns && import_react39.css`
|
|
6222
6359
|
grid-auto-columns: ${autoColumns};
|
|
6223
6360
|
`,
|
|
6224
|
-
templateAreas &&
|
|
6361
|
+
templateAreas && import_react39.css`
|
|
6225
6362
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
6226
6363
|
`,
|
|
6227
|
-
justifyContent &&
|
|
6364
|
+
justifyContent && import_react39.css`
|
|
6228
6365
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
6229
6366
|
`
|
|
6230
6367
|
].filter(Boolean);
|
|
6231
|
-
return /* @__PURE__ */ (0,
|
|
6368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
6232
6369
|
};
|
|
6233
6370
|
var Grid_default = Grid;
|
|
6234
6371
|
|
|
6235
6372
|
// src/Grid/GridContainer.tsx
|
|
6236
|
-
var
|
|
6237
|
-
var
|
|
6238
|
-
var baseContainerStyles =
|
|
6373
|
+
var import_react40 = require("@emotion/react");
|
|
6374
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
6375
|
+
var baseContainerStyles = import_react40.css`
|
|
6239
6376
|
width: 100%;
|
|
6240
6377
|
margin: 0 auto;
|
|
6241
6378
|
padding-left: 1rem;
|
|
@@ -6243,14 +6380,14 @@ var baseContainerStyles = import_react38.css`
|
|
|
6243
6380
|
`;
|
|
6244
6381
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
6245
6382
|
if (maxWidth === "full") {
|
|
6246
|
-
return
|
|
6383
|
+
return import_react40.css`
|
|
6247
6384
|
max-width: 100%;
|
|
6248
6385
|
padding-left: 0;
|
|
6249
6386
|
padding-right: 0;
|
|
6250
6387
|
`;
|
|
6251
6388
|
}
|
|
6252
6389
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
6253
|
-
return
|
|
6390
|
+
return import_react40.css`
|
|
6254
6391
|
max-width: ${width2};
|
|
6255
6392
|
|
|
6256
6393
|
${media.sm} {
|
|
@@ -6279,13 +6416,13 @@ var GridContainer = ({
|
|
|
6279
6416
|
baseContainerStyles,
|
|
6280
6417
|
generateMaxWidthStyles(maxWidth)
|
|
6281
6418
|
];
|
|
6282
|
-
return /* @__PURE__ */ (0,
|
|
6419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
6283
6420
|
};
|
|
6284
6421
|
var GridContainer_default = GridContainer;
|
|
6285
6422
|
|
|
6286
6423
|
// src/HuntCard/HuntCard.styles.ts
|
|
6287
|
-
var
|
|
6288
|
-
var cardContainerStyles2 =
|
|
6424
|
+
var import_react41 = require("@emotion/react");
|
|
6425
|
+
var cardContainerStyles2 = import_react41.css`
|
|
6289
6426
|
position: relative;
|
|
6290
6427
|
height: 335px;
|
|
6291
6428
|
|
|
@@ -6293,12 +6430,12 @@ var cardContainerStyles2 = import_react39.css`
|
|
|
6293
6430
|
height: 480px;
|
|
6294
6431
|
}
|
|
6295
6432
|
`;
|
|
6296
|
-
var cardContentStyles2 =
|
|
6433
|
+
var cardContentStyles2 = import_react41.css`
|
|
6297
6434
|
position: relative;
|
|
6298
6435
|
border-radius: var(--spacing-4);
|
|
6299
6436
|
overflow: hidden;
|
|
6300
6437
|
`;
|
|
6301
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
6438
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react41.css`
|
|
6302
6439
|
background-image: linear-gradient(
|
|
6303
6440
|
180deg,
|
|
6304
6441
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -6312,7 +6449,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react39.css`
|
|
|
6312
6449
|
`;
|
|
6313
6450
|
|
|
6314
6451
|
// src/HuntCard/HuntCard.tsx
|
|
6315
|
-
var
|
|
6452
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
6316
6453
|
var HuntCard = ({
|
|
6317
6454
|
backgroundImage,
|
|
6318
6455
|
title,
|
|
@@ -6321,14 +6458,14 @@ var HuntCard = ({
|
|
|
6321
6458
|
className,
|
|
6322
6459
|
...rest
|
|
6323
6460
|
}) => {
|
|
6324
|
-
return /* @__PURE__ */ (0,
|
|
6461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
6325
6462
|
Box_default,
|
|
6326
6463
|
{
|
|
6327
6464
|
display: "flex",
|
|
6328
6465
|
css: cardContainerStyles2,
|
|
6329
6466
|
className,
|
|
6330
6467
|
...rest,
|
|
6331
|
-
children: /* @__PURE__ */ (0,
|
|
6468
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
6332
6469
|
Box_default,
|
|
6333
6470
|
{
|
|
6334
6471
|
display: "flex",
|
|
@@ -6336,9 +6473,9 @@ var HuntCard = ({
|
|
|
6336
6473
|
justifyContent: "flex-end",
|
|
6337
6474
|
p: 6,
|
|
6338
6475
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
6339
|
-
children: /* @__PURE__ */ (0,
|
|
6340
|
-
/* @__PURE__ */ (0,
|
|
6341
|
-
/* @__PURE__ */ (0,
|
|
6476
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
6477
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
6478
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
6342
6479
|
] })
|
|
6343
6480
|
}
|
|
6344
6481
|
)
|
|
@@ -6348,9 +6485,9 @@ var HuntCard = ({
|
|
|
6348
6485
|
var HuntCard_default = HuntCard;
|
|
6349
6486
|
|
|
6350
6487
|
// src/InfoBox/InfoBox.tsx
|
|
6351
|
-
var
|
|
6488
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
6352
6489
|
var InfoBox = ({ heading, features, className }) => {
|
|
6353
|
-
return /* @__PURE__ */ (0,
|
|
6490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
|
|
6354
6491
|
Box_default,
|
|
6355
6492
|
{
|
|
6356
6493
|
display: "flex",
|
|
@@ -6359,8 +6496,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6359
6496
|
className,
|
|
6360
6497
|
color: "var(--text-primary)",
|
|
6361
6498
|
children: [
|
|
6362
|
-
/* @__PURE__ */ (0,
|
|
6363
|
-
/* @__PURE__ */ (0,
|
|
6499
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
6500
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
6364
6501
|
Box_default,
|
|
6365
6502
|
{
|
|
6366
6503
|
display: "flex",
|
|
@@ -6370,7 +6507,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6370
6507
|
borderRadius: "var(--radius-lg)",
|
|
6371
6508
|
bg: "var(--surface-neutral)",
|
|
6372
6509
|
className,
|
|
6373
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
6510
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
6374
6511
|
FeatureList_default,
|
|
6375
6512
|
{
|
|
6376
6513
|
heading: section.heading,
|
|
@@ -6387,11 +6524,11 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6387
6524
|
var InfoBox_default = InfoBox;
|
|
6388
6525
|
|
|
6389
6526
|
// src/ListingChat/ListingChat.tsx
|
|
6390
|
-
var
|
|
6527
|
+
var import_react43 = require("react");
|
|
6391
6528
|
|
|
6392
6529
|
// src/ListingChat/ListingChat.styles.ts
|
|
6393
|
-
var
|
|
6394
|
-
var containerStyles2 =
|
|
6530
|
+
var import_react42 = require("@emotion/react");
|
|
6531
|
+
var containerStyles2 = import_react42.css`
|
|
6395
6532
|
display: flex;
|
|
6396
6533
|
flex-direction: column;
|
|
6397
6534
|
gap: var(--spacing-4);
|
|
@@ -6399,13 +6536,13 @@ var containerStyles2 = import_react40.css`
|
|
|
6399
6536
|
border-radius: var(--radius-lg);
|
|
6400
6537
|
background: var(--surface-success);
|
|
6401
6538
|
`;
|
|
6402
|
-
var headerStyles =
|
|
6539
|
+
var headerStyles = import_react42.css`
|
|
6403
6540
|
display: flex;
|
|
6404
6541
|
align-items: flex-start;
|
|
6405
6542
|
justify-content: space-between;
|
|
6406
6543
|
gap: var(--spacing-2);
|
|
6407
6544
|
`;
|
|
6408
|
-
var chipsContainerStyles =
|
|
6545
|
+
var chipsContainerStyles = import_react42.css`
|
|
6409
6546
|
display: flex;
|
|
6410
6547
|
flex-wrap: wrap;
|
|
6411
6548
|
gap: var(--spacing-4);
|
|
@@ -6418,15 +6555,15 @@ var chipsContainerStyles = import_react40.css`
|
|
|
6418
6555
|
cursor: pointer;
|
|
6419
6556
|
}
|
|
6420
6557
|
`;
|
|
6421
|
-
var textAreaStyles =
|
|
6558
|
+
var textAreaStyles = import_react42.css`
|
|
6422
6559
|
min-height: 62px;
|
|
6423
6560
|
`;
|
|
6424
|
-
var inputWrapperStyles2 =
|
|
6561
|
+
var inputWrapperStyles2 = import_react42.css`
|
|
6425
6562
|
position: relative;
|
|
6426
6563
|
`;
|
|
6427
6564
|
|
|
6428
6565
|
// src/ListingChat/ListingChat.tsx
|
|
6429
|
-
var
|
|
6566
|
+
var import_jsx_runtime226 = require("@emotion/react/jsx-runtime");
|
|
6430
6567
|
var ListingChat = ({
|
|
6431
6568
|
onSubmit,
|
|
6432
6569
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -6436,15 +6573,15 @@ var ListingChat = ({
|
|
|
6436
6573
|
disabled = false,
|
|
6437
6574
|
...rest
|
|
6438
6575
|
}) => {
|
|
6439
|
-
const [value, setValue] = (0,
|
|
6440
|
-
const handleSubmit = (0,
|
|
6576
|
+
const [value, setValue] = (0, import_react43.useState)("");
|
|
6577
|
+
const handleSubmit = (0, import_react43.useCallback)(() => {
|
|
6441
6578
|
const trimmed = value.trim();
|
|
6442
6579
|
if (!trimmed)
|
|
6443
6580
|
return;
|
|
6444
6581
|
onSubmit(trimmed);
|
|
6445
6582
|
setValue("");
|
|
6446
6583
|
}, [onSubmit, value]);
|
|
6447
|
-
const handleTagClick = (0,
|
|
6584
|
+
const handleTagClick = (0, import_react43.useCallback)(
|
|
6448
6585
|
(tag) => () => {
|
|
6449
6586
|
const trimmed = tag.trim();
|
|
6450
6587
|
if (!trimmed)
|
|
@@ -6453,18 +6590,18 @@ var ListingChat = ({
|
|
|
6453
6590
|
},
|
|
6454
6591
|
[onSubmit]
|
|
6455
6592
|
);
|
|
6456
|
-
return /* @__PURE__ */ (0,
|
|
6457
|
-
/* @__PURE__ */ (0,
|
|
6458
|
-
/* @__PURE__ */ (0,
|
|
6459
|
-
/* @__PURE__ */ (0,
|
|
6460
|
-
/* @__PURE__ */ (0,
|
|
6593
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
6594
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { css: headerStyles, children: [
|
|
6595
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { children: [
|
|
6596
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { mb: "var(--spacing-2)", children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: title }) }),
|
|
6597
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
6461
6598
|
] }),
|
|
6462
|
-
/* @__PURE__ */ (0,
|
|
6463
|
-
/* @__PURE__ */ (0,
|
|
6464
|
-
/* @__PURE__ */ (0,
|
|
6599
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
6600
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
6601
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
6465
6602
|
] })
|
|
6466
6603
|
] }),
|
|
6467
|
-
/* @__PURE__ */ (0,
|
|
6604
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6468
6605
|
TextArea,
|
|
6469
6606
|
{
|
|
6470
6607
|
rows: 1,
|
|
@@ -6479,14 +6616,14 @@ var ListingChat = ({
|
|
|
6479
6616
|
css: textAreaStyles
|
|
6480
6617
|
}
|
|
6481
6618
|
) }),
|
|
6482
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
6483
|
-
/* @__PURE__ */ (0,
|
|
6484
|
-
/* @__PURE__ */ (0,
|
|
6619
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, { children: [
|
|
6620
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
6621
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6485
6622
|
"button",
|
|
6486
6623
|
{
|
|
6487
6624
|
onClick: handleTagClick(tag),
|
|
6488
6625
|
disabled,
|
|
6489
|
-
children: /* @__PURE__ */ (0,
|
|
6626
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TagChip_default, { children: tag })
|
|
6490
6627
|
},
|
|
6491
6628
|
tag
|
|
6492
6629
|
)) })
|
|
@@ -6496,11 +6633,11 @@ var ListingChat = ({
|
|
|
6496
6633
|
var ListingChat_default = ListingChat;
|
|
6497
6634
|
|
|
6498
6635
|
// src/Logo/Logo.tsx
|
|
6499
|
-
var
|
|
6636
|
+
var import_react44 = require("@emotion/react");
|
|
6500
6637
|
|
|
6501
6638
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
6502
|
-
var
|
|
6503
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
6639
|
+
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6640
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
6504
6641
|
"svg",
|
|
6505
6642
|
{
|
|
6506
6643
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6508,14 +6645,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6508
6645
|
fill: "none",
|
|
6509
6646
|
...props,
|
|
6510
6647
|
children: [
|
|
6511
|
-
/* @__PURE__ */ (0,
|
|
6648
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6512
6649
|
"path",
|
|
6513
6650
|
{
|
|
6514
6651
|
fill: "#000",
|
|
6515
6652
|
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"
|
|
6516
6653
|
}
|
|
6517
6654
|
) }),
|
|
6518
|
-
/* @__PURE__ */ (0,
|
|
6655
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6519
6656
|
"path",
|
|
6520
6657
|
{
|
|
6521
6658
|
fill: "#FAD44E",
|
|
@@ -6524,14 +6661,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6524
6661
|
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"
|
|
6525
6662
|
}
|
|
6526
6663
|
),
|
|
6527
|
-
/* @__PURE__ */ (0,
|
|
6664
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6528
6665
|
"path",
|
|
6529
6666
|
{
|
|
6530
6667
|
fill: "#fff",
|
|
6531
6668
|
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"
|
|
6532
6669
|
}
|
|
6533
6670
|
),
|
|
6534
|
-
/* @__PURE__ */ (0,
|
|
6671
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
6535
6672
|
"filter",
|
|
6536
6673
|
{
|
|
6537
6674
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -6542,8 +6679,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6542
6679
|
colorInterpolationFilters: "sRGB",
|
|
6543
6680
|
filterUnits: "userSpaceOnUse",
|
|
6544
6681
|
children: [
|
|
6545
|
-
/* @__PURE__ */ (0,
|
|
6546
|
-
/* @__PURE__ */ (0,
|
|
6682
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6683
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6547
6684
|
"feColorMatrix",
|
|
6548
6685
|
{
|
|
6549
6686
|
in: "SourceAlpha",
|
|
@@ -6551,18 +6688,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6551
6688
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
6552
6689
|
}
|
|
6553
6690
|
),
|
|
6554
|
-
/* @__PURE__ */ (0,
|
|
6555
|
-
/* @__PURE__ */ (0,
|
|
6556
|
-
/* @__PURE__ */ (0,
|
|
6557
|
-
/* @__PURE__ */ (0,
|
|
6558
|
-
/* @__PURE__ */ (0,
|
|
6691
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feOffset", { dy: 1 }),
|
|
6692
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6693
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6694
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
6695
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6559
6696
|
"feBlend",
|
|
6560
6697
|
{
|
|
6561
6698
|
in2: "BackgroundImageFix",
|
|
6562
6699
|
result: "effect1_dropShadow_257_2540"
|
|
6563
6700
|
}
|
|
6564
6701
|
),
|
|
6565
|
-
/* @__PURE__ */ (0,
|
|
6702
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6566
6703
|
"feBlend",
|
|
6567
6704
|
{
|
|
6568
6705
|
in: "SourceGraphic",
|
|
@@ -6579,8 +6716,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6579
6716
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
6580
6717
|
|
|
6581
6718
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
6582
|
-
var
|
|
6583
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
6719
|
+
var import_jsx_runtime228 = require("@emotion/react/jsx-runtime");
|
|
6720
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6584
6721
|
"svg",
|
|
6585
6722
|
{
|
|
6586
6723
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6588,14 +6725,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6588
6725
|
fill: "none",
|
|
6589
6726
|
...props,
|
|
6590
6727
|
children: [
|
|
6591
|
-
/* @__PURE__ */ (0,
|
|
6728
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6592
6729
|
"path",
|
|
6593
6730
|
{
|
|
6594
6731
|
fill: "#000",
|
|
6595
6732
|
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"
|
|
6596
6733
|
}
|
|
6597
6734
|
) }),
|
|
6598
|
-
/* @__PURE__ */ (0,
|
|
6735
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6599
6736
|
"path",
|
|
6600
6737
|
{
|
|
6601
6738
|
fill: "#FAD44E",
|
|
@@ -6604,14 +6741,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6604
6741
|
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"
|
|
6605
6742
|
}
|
|
6606
6743
|
),
|
|
6607
|
-
/* @__PURE__ */ (0,
|
|
6744
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6608
6745
|
"path",
|
|
6609
6746
|
{
|
|
6610
6747
|
fill: "#1A202C",
|
|
6611
6748
|
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"
|
|
6612
6749
|
}
|
|
6613
6750
|
),
|
|
6614
|
-
/* @__PURE__ */ (0,
|
|
6751
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6615
6752
|
"filter",
|
|
6616
6753
|
{
|
|
6617
6754
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -6622,8 +6759,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6622
6759
|
colorInterpolationFilters: "sRGB",
|
|
6623
6760
|
filterUnits: "userSpaceOnUse",
|
|
6624
6761
|
children: [
|
|
6625
|
-
/* @__PURE__ */ (0,
|
|
6626
|
-
/* @__PURE__ */ (0,
|
|
6762
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6763
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6627
6764
|
"feColorMatrix",
|
|
6628
6765
|
{
|
|
6629
6766
|
in: "SourceAlpha",
|
|
@@ -6631,18 +6768,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6631
6768
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
6632
6769
|
}
|
|
6633
6770
|
),
|
|
6634
|
-
/* @__PURE__ */ (0,
|
|
6635
|
-
/* @__PURE__ */ (0,
|
|
6636
|
-
/* @__PURE__ */ (0,
|
|
6637
|
-
/* @__PURE__ */ (0,
|
|
6638
|
-
/* @__PURE__ */ (0,
|
|
6771
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feOffset", { dy: 1 }),
|
|
6772
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6773
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6774
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feColorMatrix", { values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.1 0" }),
|
|
6775
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6639
6776
|
"feBlend",
|
|
6640
6777
|
{
|
|
6641
6778
|
in2: "BackgroundImageFix",
|
|
6642
6779
|
result: "effect1_dropShadow_257_2538"
|
|
6643
6780
|
}
|
|
6644
6781
|
),
|
|
6645
|
-
/* @__PURE__ */ (0,
|
|
6782
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6646
6783
|
"feBlend",
|
|
6647
6784
|
{
|
|
6648
6785
|
in: "SourceGraphic",
|
|
@@ -6659,8 +6796,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6659
6796
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
6660
6797
|
|
|
6661
6798
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
6662
|
-
var
|
|
6663
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
6799
|
+
var import_jsx_runtime229 = require("@emotion/react/jsx-runtime");
|
|
6800
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6664
6801
|
"svg",
|
|
6665
6802
|
{
|
|
6666
6803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6668,14 +6805,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6668
6805
|
fill: "none",
|
|
6669
6806
|
...props,
|
|
6670
6807
|
children: [
|
|
6671
|
-
/* @__PURE__ */ (0,
|
|
6808
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6672
6809
|
"path",
|
|
6673
6810
|
{
|
|
6674
6811
|
fill: "#E2430C",
|
|
6675
6812
|
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"
|
|
6676
6813
|
}
|
|
6677
6814
|
),
|
|
6678
|
-
/* @__PURE__ */ (0,
|
|
6815
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6679
6816
|
"path",
|
|
6680
6817
|
{
|
|
6681
6818
|
fill: "#fff",
|
|
@@ -6688,8 +6825,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6688
6825
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
6689
6826
|
|
|
6690
6827
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
6691
|
-
var
|
|
6692
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
6828
|
+
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6829
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6693
6830
|
"svg",
|
|
6694
6831
|
{
|
|
6695
6832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6697,14 +6834,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6697
6834
|
fill: "none",
|
|
6698
6835
|
...props,
|
|
6699
6836
|
children: [
|
|
6700
|
-
/* @__PURE__ */ (0,
|
|
6837
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6701
6838
|
"path",
|
|
6702
6839
|
{
|
|
6703
6840
|
fill: "#E2430C",
|
|
6704
6841
|
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"
|
|
6705
6842
|
}
|
|
6706
6843
|
),
|
|
6707
|
-
/* @__PURE__ */ (0,
|
|
6844
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6708
6845
|
"path",
|
|
6709
6846
|
{
|
|
6710
6847
|
fill: "#000",
|
|
@@ -6717,8 +6854,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6717
6854
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
6718
6855
|
|
|
6719
6856
|
// src/Logo/Logo.tsx
|
|
6720
|
-
var
|
|
6721
|
-
var logoStyles = (size) =>
|
|
6857
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6858
|
+
var logoStyles = (size) => import_react44.css`
|
|
6722
6859
|
width: ${space[size]};
|
|
6723
6860
|
height: auto;
|
|
6724
6861
|
display: block;
|
|
@@ -6746,18 +6883,18 @@ var Logo = ({
|
|
|
6746
6883
|
return LandtrustStandardLight_default;
|
|
6747
6884
|
};
|
|
6748
6885
|
const LogoComponent = getLogoComponent();
|
|
6749
|
-
return /* @__PURE__ */ (0,
|
|
6886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
6750
6887
|
};
|
|
6751
6888
|
var Logo_default = Logo;
|
|
6752
6889
|
|
|
6753
6890
|
// src/Navigation/Navigation.styles.ts
|
|
6754
|
-
var
|
|
6755
|
-
var navigationStyles =
|
|
6891
|
+
var import_react45 = require("@emotion/react");
|
|
6892
|
+
var navigationStyles = import_react45.css`
|
|
6756
6893
|
width: 100%;
|
|
6757
6894
|
background-color: white;
|
|
6758
6895
|
border-bottom: 1px solid #e5e5e5;
|
|
6759
6896
|
`;
|
|
6760
|
-
var hamburgerButtonStyles =
|
|
6897
|
+
var hamburgerButtonStyles = import_react45.css`
|
|
6761
6898
|
cursor: pointer;
|
|
6762
6899
|
&:focus {
|
|
6763
6900
|
outline: 2px solid #4f46e5;
|
|
@@ -6768,7 +6905,7 @@ var hamburgerButtonStyles = import_react43.css`
|
|
|
6768
6905
|
display: none;
|
|
6769
6906
|
}
|
|
6770
6907
|
`;
|
|
6771
|
-
var centeredLogoStyles =
|
|
6908
|
+
var centeredLogoStyles = import_react45.css`
|
|
6772
6909
|
transform: translate(-50%, -50%);
|
|
6773
6910
|
max-width: 150px;
|
|
6774
6911
|
|
|
@@ -6776,27 +6913,27 @@ var centeredLogoStyles = import_react43.css`
|
|
|
6776
6913
|
display: none;
|
|
6777
6914
|
}
|
|
6778
6915
|
`;
|
|
6779
|
-
var desktopLogoStyles =
|
|
6916
|
+
var desktopLogoStyles = import_react45.css`
|
|
6780
6917
|
display: none;
|
|
6781
6918
|
|
|
6782
6919
|
@media (min-width: 768px) {
|
|
6783
6920
|
display: block;
|
|
6784
6921
|
}
|
|
6785
6922
|
`;
|
|
6786
|
-
var containerStyles3 =
|
|
6923
|
+
var containerStyles3 = import_react45.css`
|
|
6787
6924
|
@media (min-width: 768px) {
|
|
6788
6925
|
justify-content: space-between;
|
|
6789
6926
|
position: static;
|
|
6790
6927
|
}
|
|
6791
6928
|
`;
|
|
6792
|
-
var logoStyles2 =
|
|
6929
|
+
var logoStyles2 = import_react45.css`
|
|
6793
6930
|
width: 100%;
|
|
6794
6931
|
|
|
6795
6932
|
@media (min-width: 768px) {
|
|
6796
6933
|
width: initial;
|
|
6797
6934
|
}
|
|
6798
6935
|
`;
|
|
6799
|
-
var desktopNavStyles =
|
|
6936
|
+
var desktopNavStyles = import_react45.css`
|
|
6800
6937
|
display: none;
|
|
6801
6938
|
|
|
6802
6939
|
@media (min-width: 768px) {
|
|
@@ -6805,7 +6942,7 @@ var desktopNavStyles = import_react43.css`
|
|
|
6805
6942
|
gap: 32px;
|
|
6806
6943
|
}
|
|
6807
6944
|
`;
|
|
6808
|
-
var navLinksStyles =
|
|
6945
|
+
var navLinksStyles = import_react45.css`
|
|
6809
6946
|
display: flex;
|
|
6810
6947
|
align-items: center;
|
|
6811
6948
|
gap: 24px;
|
|
@@ -6813,7 +6950,7 @@ var navLinksStyles = import_react43.css`
|
|
|
6813
6950
|
margin: 0;
|
|
6814
6951
|
padding: 0;
|
|
6815
6952
|
`;
|
|
6816
|
-
var navLinkStyles =
|
|
6953
|
+
var navLinkStyles = import_react45.css`
|
|
6817
6954
|
text-decoration: none;
|
|
6818
6955
|
color: #374151;
|
|
6819
6956
|
font-weight: 500;
|
|
@@ -6829,7 +6966,7 @@ var navLinkStyles = import_react43.css`
|
|
|
6829
6966
|
outline-offset: 2px;
|
|
6830
6967
|
}
|
|
6831
6968
|
`;
|
|
6832
|
-
var avatarPlaceholderStyles =
|
|
6969
|
+
var avatarPlaceholderStyles = import_react45.css`
|
|
6833
6970
|
width: 32px;
|
|
6834
6971
|
height: 32px;
|
|
6835
6972
|
border-radius: 50%;
|
|
@@ -6854,7 +6991,7 @@ var avatarPlaceholderStyles = import_react43.css`
|
|
|
6854
6991
|
`;
|
|
6855
6992
|
|
|
6856
6993
|
// src/Navigation/Navigation.tsx
|
|
6857
|
-
var
|
|
6994
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6858
6995
|
var Navigation = ({
|
|
6859
6996
|
onMenuToggle,
|
|
6860
6997
|
className,
|
|
@@ -6868,7 +7005,7 @@ var Navigation = ({
|
|
|
6868
7005
|
onAvatarClick,
|
|
6869
7006
|
...rest
|
|
6870
7007
|
}) => {
|
|
6871
|
-
return /* @__PURE__ */ (0,
|
|
7008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6872
7009
|
Box_default,
|
|
6873
7010
|
{
|
|
6874
7011
|
display: "flex",
|
|
@@ -6877,7 +7014,7 @@ var Navigation = ({
|
|
|
6877
7014
|
position: "relative",
|
|
6878
7015
|
css: containerStyles3,
|
|
6879
7016
|
children: [
|
|
6880
|
-
/* @__PURE__ */ (0,
|
|
7017
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6881
7018
|
Box_default,
|
|
6882
7019
|
{
|
|
6883
7020
|
as: "button",
|
|
@@ -6889,11 +7026,11 @@ var Navigation = ({
|
|
|
6889
7026
|
border: "none",
|
|
6890
7027
|
padding: space[2],
|
|
6891
7028
|
css: hamburgerButtonStyles,
|
|
6892
|
-
children: /* @__PURE__ */ (0,
|
|
7029
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
6893
7030
|
}
|
|
6894
7031
|
),
|
|
6895
|
-
/* @__PURE__ */ (0,
|
|
6896
|
-
/* @__PURE__ */ (0,
|
|
7032
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
7033
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6897
7034
|
Logo_default,
|
|
6898
7035
|
{
|
|
6899
7036
|
variant: logoVariant,
|
|
@@ -6902,8 +7039,8 @@ var Navigation = ({
|
|
|
6902
7039
|
css: logoStyles2
|
|
6903
7040
|
}
|
|
6904
7041
|
) }),
|
|
6905
|
-
/* @__PURE__ */ (0,
|
|
6906
|
-
/* @__PURE__ */ (0,
|
|
7042
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
7043
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6907
7044
|
"a",
|
|
6908
7045
|
{
|
|
6909
7046
|
href: link.href,
|
|
@@ -6912,7 +7049,7 @@ var Navigation = ({
|
|
|
6912
7049
|
children: link.label
|
|
6913
7050
|
}
|
|
6914
7051
|
) }, link.href)) }) }),
|
|
6915
|
-
/* @__PURE__ */ (0,
|
|
7052
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6916
7053
|
Box_default,
|
|
6917
7054
|
{
|
|
6918
7055
|
as: "button",
|
|
@@ -6931,8 +7068,8 @@ var Navigation = ({
|
|
|
6931
7068
|
var Navigation_default = Navigation;
|
|
6932
7069
|
|
|
6933
7070
|
// src/PackageCard/PackageCard.styles.ts
|
|
6934
|
-
var
|
|
6935
|
-
var cardContainerStyles3 =
|
|
7071
|
+
var import_react46 = require("@emotion/react");
|
|
7072
|
+
var cardContainerStyles3 = import_react46.css`
|
|
6936
7073
|
color: var(--text-primary);
|
|
6937
7074
|
position: relative;
|
|
6938
7075
|
width: 100%;
|
|
@@ -6949,14 +7086,14 @@ var cardContainerStyles3 = import_react44.css`
|
|
|
6949
7086
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
6950
7087
|
}
|
|
6951
7088
|
`;
|
|
6952
|
-
var imageContainerStyles =
|
|
7089
|
+
var imageContainerStyles = import_react46.css`
|
|
6953
7090
|
position: relative;
|
|
6954
7091
|
width: 100%;
|
|
6955
7092
|
height: 200px;
|
|
6956
7093
|
overflow: hidden;
|
|
6957
7094
|
border-radius: var(--spacing-4);
|
|
6958
7095
|
`;
|
|
6959
|
-
var imageStyles2 =
|
|
7096
|
+
var imageStyles2 = import_react46.css`
|
|
6960
7097
|
width: 100%;
|
|
6961
7098
|
height: 100%;
|
|
6962
7099
|
background-size: cover;
|
|
@@ -6964,13 +7101,13 @@ var imageStyles2 = import_react44.css`
|
|
|
6964
7101
|
background-repeat: no-repeat;
|
|
6965
7102
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
6966
7103
|
`;
|
|
6967
|
-
var
|
|
7104
|
+
var badgeStyles2 = import_react46.css`
|
|
6968
7105
|
position: absolute;
|
|
6969
7106
|
top: var(--spacing-3);
|
|
6970
7107
|
left: var(--spacing-3);
|
|
6971
7108
|
z-index: 2;
|
|
6972
7109
|
`;
|
|
6973
|
-
var heartIconStyles =
|
|
7110
|
+
var heartIconStyles = import_react46.css`
|
|
6974
7111
|
position: absolute;
|
|
6975
7112
|
top: var(--spacing-3);
|
|
6976
7113
|
right: var(--spacing-3);
|
|
@@ -6992,12 +7129,12 @@ var heartIconStyles = import_react44.css`
|
|
|
6992
7129
|
transform: scale(1.1);
|
|
6993
7130
|
}
|
|
6994
7131
|
`;
|
|
6995
|
-
var contentStyles2 =
|
|
7132
|
+
var contentStyles2 = import_react46.css`
|
|
6996
7133
|
padding: var(--spacing-3);
|
|
6997
7134
|
`;
|
|
6998
7135
|
|
|
6999
7136
|
// src/PackageCard/PackageCard.tsx
|
|
7000
|
-
var
|
|
7137
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
7001
7138
|
var PackageCard = ({
|
|
7002
7139
|
images,
|
|
7003
7140
|
title,
|
|
@@ -7014,13 +7151,13 @@ var PackageCard = ({
|
|
|
7014
7151
|
...rest
|
|
7015
7152
|
}) => {
|
|
7016
7153
|
const mainImage = images[0] || "";
|
|
7017
|
-
return /* @__PURE__ */ (0,
|
|
7018
|
-
/* @__PURE__ */ (0,
|
|
7019
|
-
tripsLeft && /* @__PURE__ */ (0,
|
|
7154
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { css: cardContainerStyles3, className, ...rest, children: [
|
|
7155
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { css: imageContainerStyles, onClick, children: /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { css: [imageStyles2, { backgroundImage: `url(${mainImage})` }], children: [
|
|
7156
|
+
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(AvailabilityBadge_default, { variant: "warning", css: badgeStyles2, children: [
|
|
7020
7157
|
tripsLeft,
|
|
7021
7158
|
" Trips Left"
|
|
7022
7159
|
] }),
|
|
7023
|
-
/* @__PURE__ */ (0,
|
|
7160
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7024
7161
|
Box_default,
|
|
7025
7162
|
{
|
|
7026
7163
|
css: heartIconStyles,
|
|
@@ -7028,7 +7165,7 @@ var PackageCard = ({
|
|
|
7028
7165
|
e.stopPropagation();
|
|
7029
7166
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
7030
7167
|
},
|
|
7031
|
-
children: /* @__PURE__ */ (0,
|
|
7168
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7032
7169
|
Icon_default,
|
|
7033
7170
|
{
|
|
7034
7171
|
variant: isFavorited ? "HeartSolid" : "Heart",
|
|
@@ -7038,8 +7175,8 @@ var PackageCard = ({
|
|
|
7038
7175
|
}
|
|
7039
7176
|
)
|
|
7040
7177
|
] }) }),
|
|
7041
|
-
/* @__PURE__ */ (0,
|
|
7042
|
-
/* @__PURE__ */ (0,
|
|
7178
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
7179
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
7043
7180
|
Box_default,
|
|
7044
7181
|
{
|
|
7045
7182
|
onClick,
|
|
@@ -7048,9 +7185,9 @@ var PackageCard = ({
|
|
|
7048
7185
|
gap: "var(--spacing-1)",
|
|
7049
7186
|
mb: "var(--spacing-4)",
|
|
7050
7187
|
children: [
|
|
7051
|
-
/* @__PURE__ */ (0,
|
|
7052
|
-
/* @__PURE__ */ (0,
|
|
7053
|
-
/* @__PURE__ */ (0,
|
|
7188
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
7189
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { size: "xs", fontWeight: "bold", children: subtitle }) }),
|
|
7190
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Text_default, { size: "xs", fontWeight: "normal", children: [
|
|
7054
7191
|
"Starting Price ",
|
|
7055
7192
|
startingPrice,
|
|
7056
7193
|
" / Guest"
|
|
@@ -7058,22 +7195,22 @@ var PackageCard = ({
|
|
|
7058
7195
|
]
|
|
7059
7196
|
}
|
|
7060
7197
|
),
|
|
7061
|
-
/* @__PURE__ */ (0,
|
|
7062
|
-
days && /* @__PURE__ */ (0,
|
|
7198
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { display: "flex", gap: "var(--spacing-3)", alignItems: "center", children: [
|
|
7199
|
+
days && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7063
7200
|
IconLabel_default,
|
|
7064
7201
|
{
|
|
7065
7202
|
variant: "Calendar",
|
|
7066
7203
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
7067
7204
|
}
|
|
7068
7205
|
),
|
|
7069
|
-
guests && /* @__PURE__ */ (0,
|
|
7206
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7070
7207
|
IconLabel_default,
|
|
7071
7208
|
{
|
|
7072
7209
|
variant: "User",
|
|
7073
7210
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
7074
7211
|
}
|
|
7075
7212
|
),
|
|
7076
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
7213
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
7077
7214
|
] })
|
|
7078
7215
|
] })
|
|
7079
7216
|
] });
|
|
@@ -7081,14 +7218,14 @@ var PackageCard = ({
|
|
|
7081
7218
|
var PackageCard_default = PackageCard;
|
|
7082
7219
|
|
|
7083
7220
|
// src/PackageHeader/PackageHeader.tsx
|
|
7084
|
-
var
|
|
7221
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
7085
7222
|
var PackageHeader = ({
|
|
7086
7223
|
header,
|
|
7087
7224
|
subheader,
|
|
7088
7225
|
features,
|
|
7089
7226
|
className
|
|
7090
7227
|
}) => {
|
|
7091
|
-
return /* @__PURE__ */ (0,
|
|
7228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
7092
7229
|
Box_default,
|
|
7093
7230
|
{
|
|
7094
7231
|
display: "flex",
|
|
@@ -7097,9 +7234,9 @@ var PackageHeader = ({
|
|
|
7097
7234
|
color: "var(--text-primary)",
|
|
7098
7235
|
className,
|
|
7099
7236
|
children: [
|
|
7100
|
-
/* @__PURE__ */ (0,
|
|
7101
|
-
subheader && /* @__PURE__ */ (0,
|
|
7102
|
-
features && /* @__PURE__ */ (0,
|
|
7237
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
7238
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Text_default, { children: subheader }),
|
|
7239
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(FeatureList_default, { items: features })
|
|
7103
7240
|
]
|
|
7104
7241
|
}
|
|
7105
7242
|
);
|
|
@@ -7107,8 +7244,8 @@ var PackageHeader = ({
|
|
|
7107
7244
|
var PackageHeader_default = PackageHeader;
|
|
7108
7245
|
|
|
7109
7246
|
// src/StarRating/StarRating.tsx
|
|
7110
|
-
var
|
|
7111
|
-
var
|
|
7247
|
+
var import_react47 = require("@emotion/react");
|
|
7248
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
7112
7249
|
var starSize = {
|
|
7113
7250
|
sm: {
|
|
7114
7251
|
size: "medium",
|
|
@@ -7127,13 +7264,13 @@ var StarRating = ({
|
|
|
7127
7264
|
const stars = [];
|
|
7128
7265
|
for (let i = 1; i <= 5; i++) {
|
|
7129
7266
|
stars.push(
|
|
7130
|
-
/* @__PURE__ */ (0,
|
|
7267
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7131
7268
|
Icon_default,
|
|
7132
7269
|
{
|
|
7133
7270
|
variant: "StarSolid",
|
|
7134
7271
|
size: starSize[size].size,
|
|
7135
7272
|
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)",
|
|
7136
|
-
css:
|
|
7273
|
+
css: import_react47.css`
|
|
7137
7274
|
${size === "md" && "width: 40px; height: 40px;"}
|
|
7138
7275
|
`
|
|
7139
7276
|
},
|
|
@@ -7141,7 +7278,7 @@ var StarRating = ({
|
|
|
7141
7278
|
)
|
|
7142
7279
|
);
|
|
7143
7280
|
}
|
|
7144
|
-
return /* @__PURE__ */ (0,
|
|
7281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7145
7282
|
Box_default,
|
|
7146
7283
|
{
|
|
7147
7284
|
className,
|
|
@@ -7155,7 +7292,7 @@ var StarRating = ({
|
|
|
7155
7292
|
var StarRating_default = StarRating;
|
|
7156
7293
|
|
|
7157
7294
|
// src/UserCard/UserCard.tsx
|
|
7158
|
-
var
|
|
7295
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7159
7296
|
var UserCard = ({
|
|
7160
7297
|
avatarSrc,
|
|
7161
7298
|
title,
|
|
@@ -7164,7 +7301,7 @@ var UserCard = ({
|
|
|
7164
7301
|
showRating = true,
|
|
7165
7302
|
className
|
|
7166
7303
|
}) => {
|
|
7167
|
-
return /* @__PURE__ */ (0,
|
|
7304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
|
|
7168
7305
|
Box_default,
|
|
7169
7306
|
{
|
|
7170
7307
|
display: "flex",
|
|
@@ -7172,11 +7309,11 @@ var UserCard = ({
|
|
|
7172
7309
|
gap: "var(--spacing-4)",
|
|
7173
7310
|
className,
|
|
7174
7311
|
children: [
|
|
7175
|
-
/* @__PURE__ */ (0,
|
|
7176
|
-
/* @__PURE__ */ (0,
|
|
7177
|
-
/* @__PURE__ */ (0,
|
|
7178
|
-
subtitle && /* @__PURE__ */ (0,
|
|
7179
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
7312
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Avatar_default, { type: "image", src: avatarSrc, alt: `${title}'s avatar` }),
|
|
7313
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
7314
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
7315
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }),
|
|
7316
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(StarRating_default, { rating, size: "sm" })
|
|
7180
7317
|
] })
|
|
7181
7318
|
]
|
|
7182
7319
|
}
|
|
@@ -7185,8 +7322,8 @@ var UserCard = ({
|
|
|
7185
7322
|
var UserCard_default = UserCard;
|
|
7186
7323
|
|
|
7187
7324
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
7188
|
-
var
|
|
7189
|
-
var imageStyles3 =
|
|
7325
|
+
var import_react48 = require("@emotion/react");
|
|
7326
|
+
var imageStyles3 = import_react48.css`
|
|
7190
7327
|
flex: 1;
|
|
7191
7328
|
min-width: 0;
|
|
7192
7329
|
aspect-ratio: 1;
|
|
@@ -7196,13 +7333,13 @@ var imageStyles3 = import_react46.css`
|
|
|
7196
7333
|
`;
|
|
7197
7334
|
|
|
7198
7335
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
7199
|
-
var
|
|
7336
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
7200
7337
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
7201
7338
|
const displayImages = images.slice(0, maxImages);
|
|
7202
7339
|
if (displayImages.length === 0) {
|
|
7203
7340
|
return null;
|
|
7204
7341
|
}
|
|
7205
|
-
return /* @__PURE__ */ (0,
|
|
7342
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
7206
7343
|
"img",
|
|
7207
7344
|
{
|
|
7208
7345
|
src: image,
|
|
@@ -7215,7 +7352,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
7215
7352
|
var ReviewImages_default = ReviewImages;
|
|
7216
7353
|
|
|
7217
7354
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
7218
|
-
var
|
|
7355
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7219
7356
|
var ReviewReply = ({
|
|
7220
7357
|
avatarSrc,
|
|
7221
7358
|
name,
|
|
@@ -7224,7 +7361,7 @@ var ReviewReply = ({
|
|
|
7224
7361
|
label,
|
|
7225
7362
|
rating
|
|
7226
7363
|
}) => {
|
|
7227
|
-
return /* @__PURE__ */ (0,
|
|
7364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
7228
7365
|
Box_default,
|
|
7229
7366
|
{
|
|
7230
7367
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -7234,7 +7371,7 @@ var ReviewReply = ({
|
|
|
7234
7371
|
flexDirection: "column",
|
|
7235
7372
|
gap: "var(--spacing-3)",
|
|
7236
7373
|
children: [
|
|
7237
|
-
/* @__PURE__ */ (0,
|
|
7374
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
7238
7375
|
Box_default,
|
|
7239
7376
|
{
|
|
7240
7377
|
display: "flex",
|
|
@@ -7242,7 +7379,7 @@ var ReviewReply = ({
|
|
|
7242
7379
|
justifyContent: "space-between",
|
|
7243
7380
|
gap: "var(--spacing-2)",
|
|
7244
7381
|
children: [
|
|
7245
|
-
/* @__PURE__ */ (0,
|
|
7382
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
7246
7383
|
UserCard_default,
|
|
7247
7384
|
{
|
|
7248
7385
|
avatarSrc,
|
|
@@ -7251,11 +7388,11 @@ var ReviewReply = ({
|
|
|
7251
7388
|
rating
|
|
7252
7389
|
}
|
|
7253
7390
|
),
|
|
7254
|
-
/* @__PURE__ */ (0,
|
|
7391
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
7255
7392
|
]
|
|
7256
7393
|
}
|
|
7257
7394
|
),
|
|
7258
|
-
/* @__PURE__ */ (0,
|
|
7395
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Text_default, { children: content })
|
|
7259
7396
|
]
|
|
7260
7397
|
}
|
|
7261
7398
|
);
|
|
@@ -7263,7 +7400,7 @@ var ReviewReply = ({
|
|
|
7263
7400
|
var ReviewReply_default = ReviewReply;
|
|
7264
7401
|
|
|
7265
7402
|
// src/ReviewCard/ReviewCard.tsx
|
|
7266
|
-
var
|
|
7403
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
7267
7404
|
var ReviewCard = ({
|
|
7268
7405
|
avatarSrc,
|
|
7269
7406
|
name,
|
|
@@ -7275,7 +7412,7 @@ var ReviewCard = ({
|
|
|
7275
7412
|
replies = [],
|
|
7276
7413
|
className
|
|
7277
7414
|
}) => {
|
|
7278
|
-
return /* @__PURE__ */ (0,
|
|
7415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
|
|
7279
7416
|
Box_default,
|
|
7280
7417
|
{
|
|
7281
7418
|
backgroundColor: "white",
|
|
@@ -7287,7 +7424,7 @@ var ReviewCard = ({
|
|
|
7287
7424
|
border: "1px solid var(--color-neutral-200)",
|
|
7288
7425
|
className,
|
|
7289
7426
|
children: [
|
|
7290
|
-
/* @__PURE__ */ (0,
|
|
7427
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7291
7428
|
UserCard_default,
|
|
7292
7429
|
{
|
|
7293
7430
|
avatarSrc,
|
|
@@ -7296,10 +7433,10 @@ var ReviewCard = ({
|
|
|
7296
7433
|
rating
|
|
7297
7434
|
}
|
|
7298
7435
|
),
|
|
7299
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
7300
|
-
/* @__PURE__ */ (0,
|
|
7301
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
7302
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
7436
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
7437
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Text_default, { size: "md", children: content }),
|
|
7438
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ReviewImages_default, { images }),
|
|
7439
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7303
7440
|
ReviewReply_default,
|
|
7304
7441
|
{
|
|
7305
7442
|
avatarSrc: reply.avatarSrc,
|
|
@@ -7318,9 +7455,9 @@ var ReviewCard = ({
|
|
|
7318
7455
|
var ReviewCard_default = ReviewCard;
|
|
7319
7456
|
|
|
7320
7457
|
// src/Reviews/components/ReviewItem.tsx
|
|
7321
|
-
var
|
|
7458
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7322
7459
|
var ReviewItem = ({ label, rating }) => {
|
|
7323
|
-
return /* @__PURE__ */ (0,
|
|
7460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
|
|
7324
7461
|
Box_default,
|
|
7325
7462
|
{
|
|
7326
7463
|
display: "flex",
|
|
@@ -7328,10 +7465,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
7328
7465
|
alignItems: "center",
|
|
7329
7466
|
width: "100%",
|
|
7330
7467
|
children: [
|
|
7331
|
-
/* @__PURE__ */ (0,
|
|
7332
|
-
/* @__PURE__ */ (0,
|
|
7333
|
-
/* @__PURE__ */ (0,
|
|
7334
|
-
/* @__PURE__ */ (0,
|
|
7468
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
7469
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
7470
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
7471
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(Text_default, { fontWeight: "semibold", children: [
|
|
7335
7472
|
rating,
|
|
7336
7473
|
"/5"
|
|
7337
7474
|
] })
|
|
@@ -7343,14 +7480,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
7343
7480
|
var ReviewItem_default = ReviewItem;
|
|
7344
7481
|
|
|
7345
7482
|
// src/Reviews/Reviews.tsx
|
|
7346
|
-
var
|
|
7483
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7347
7484
|
var Reviews = ({
|
|
7348
7485
|
averageRating,
|
|
7349
7486
|
totalReviews,
|
|
7350
7487
|
items,
|
|
7351
7488
|
className
|
|
7352
7489
|
}) => {
|
|
7353
|
-
return /* @__PURE__ */ (0,
|
|
7490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7354
7491
|
Box_default,
|
|
7355
7492
|
{
|
|
7356
7493
|
width: "100%",
|
|
@@ -7363,7 +7500,7 @@ var Reviews = ({
|
|
|
7363
7500
|
p: "var(--spacing-4)",
|
|
7364
7501
|
className,
|
|
7365
7502
|
children: [
|
|
7366
|
-
/* @__PURE__ */ (0,
|
|
7503
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7367
7504
|
Box_default,
|
|
7368
7505
|
{
|
|
7369
7506
|
display: "flex",
|
|
@@ -7371,9 +7508,9 @@ var Reviews = ({
|
|
|
7371
7508
|
alignItems: "center",
|
|
7372
7509
|
gap: "var(--spacing-2)",
|
|
7373
7510
|
children: [
|
|
7374
|
-
/* @__PURE__ */ (0,
|
|
7375
|
-
/* @__PURE__ */ (0,
|
|
7376
|
-
/* @__PURE__ */ (0,
|
|
7511
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
7512
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(StarRating_default, { rating: Math.floor(averageRating) }),
|
|
7513
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
7377
7514
|
"Overall Rating \u2022 ",
|
|
7378
7515
|
totalReviews,
|
|
7379
7516
|
" Review",
|
|
@@ -7382,14 +7519,14 @@ var Reviews = ({
|
|
|
7382
7519
|
]
|
|
7383
7520
|
}
|
|
7384
7521
|
),
|
|
7385
|
-
/* @__PURE__ */ (0,
|
|
7522
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7386
7523
|
Box_default,
|
|
7387
7524
|
{
|
|
7388
7525
|
display: "flex",
|
|
7389
7526
|
flexDirection: "column",
|
|
7390
7527
|
gap: "var(--spacing-2)",
|
|
7391
7528
|
width: "100%",
|
|
7392
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
7529
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
7393
7530
|
}
|
|
7394
7531
|
)
|
|
7395
7532
|
]
|
|
@@ -7399,7 +7536,7 @@ var Reviews = ({
|
|
|
7399
7536
|
var Reviews_default = Reviews;
|
|
7400
7537
|
|
|
7401
7538
|
// src/Reviews/ReviewsShowcase.tsx
|
|
7402
|
-
var
|
|
7539
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7403
7540
|
var ReviewsShowcase = () => {
|
|
7404
7541
|
const sampleData = {
|
|
7405
7542
|
averageRating: 4,
|
|
@@ -7421,7 +7558,7 @@ var ReviewsShowcase = () => {
|
|
|
7421
7558
|
{ label: "Game Abundance", rating: 5 }
|
|
7422
7559
|
]
|
|
7423
7560
|
};
|
|
7424
|
-
return /* @__PURE__ */ (0,
|
|
7561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
7425
7562
|
Box_default,
|
|
7426
7563
|
{
|
|
7427
7564
|
display: "flex",
|
|
@@ -7429,24 +7566,24 @@ var ReviewsShowcase = () => {
|
|
|
7429
7566
|
gap: "var(--spacing-8)",
|
|
7430
7567
|
p: "var(--spacing-6)",
|
|
7431
7568
|
children: [
|
|
7432
|
-
/* @__PURE__ */ (0,
|
|
7433
|
-
/* @__PURE__ */ (0,
|
|
7434
|
-
/* @__PURE__ */ (0,
|
|
7435
|
-
/* @__PURE__ */ (0,
|
|
7569
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
7570
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7571
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
7572
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Reviews_default, { ...sampleData }) })
|
|
7436
7573
|
] }),
|
|
7437
|
-
/* @__PURE__ */ (0,
|
|
7438
|
-
/* @__PURE__ */ (0,
|
|
7439
|
-
/* @__PURE__ */ (0,
|
|
7574
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7575
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
7576
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Reviews_default, { ...highRatingData }) })
|
|
7440
7577
|
] }),
|
|
7441
|
-
/* @__PURE__ */ (0,
|
|
7442
|
-
/* @__PURE__ */ (0,
|
|
7443
|
-
/* @__PURE__ */ (0,
|
|
7578
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7579
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
7580
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
7444
7581
|
Box_default,
|
|
7445
7582
|
{
|
|
7446
7583
|
maxWidth: "320px",
|
|
7447
7584
|
border: "1px solid var(--color-neutral-200)",
|
|
7448
7585
|
p: "var(--spacing-4)",
|
|
7449
|
-
children: /* @__PURE__ */ (0,
|
|
7586
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Reviews_default, { ...sampleData })
|
|
7450
7587
|
}
|
|
7451
7588
|
)
|
|
7452
7589
|
] })
|