@landtrustinc/design-system 1.2.3 → 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/README.md +36 -1
- package/dist/index.d.ts +18 -2
- package/dist/index.js +520 -350
- package/dist/index.js.map +1 -1
- package/dist/styles.ts +3 -0
- package/package.json +4 -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,
|
|
@@ -5371,18 +5508,51 @@ var ChatWidget = ({
|
|
|
5371
5508
|
var ChatWidget_default = ChatWidget;
|
|
5372
5509
|
|
|
5373
5510
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
5374
|
-
var
|
|
5511
|
+
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
5512
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
5375
5513
|
var FeatureListItem = ({
|
|
5376
5514
|
iconVariant,
|
|
5377
5515
|
label,
|
|
5378
5516
|
subtitle,
|
|
5379
5517
|
iconSize = "large",
|
|
5380
5518
|
iconColor,
|
|
5519
|
+
isLoading = false,
|
|
5381
5520
|
className,
|
|
5382
5521
|
...rest
|
|
5383
5522
|
}) => {
|
|
5384
|
-
|
|
5385
|
-
|
|
5523
|
+
const iconDimensions = IconSizeMap[iconSize];
|
|
5524
|
+
if (isLoading) {
|
|
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)(
|
|
5527
|
+
Box_default,
|
|
5528
|
+
{
|
|
5529
|
+
display: "flex",
|
|
5530
|
+
alignItems: "center",
|
|
5531
|
+
gap: "var(--spacing-2)",
|
|
5532
|
+
className,
|
|
5533
|
+
...rest,
|
|
5534
|
+
children: [
|
|
5535
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
5536
|
+
import_react_loading_skeleton.default,
|
|
5537
|
+
{
|
|
5538
|
+
circle: true,
|
|
5539
|
+
width: iconDimensions.width,
|
|
5540
|
+
height: iconDimensions.height,
|
|
5541
|
+
borderRadius: 4
|
|
5542
|
+
}
|
|
5543
|
+
),
|
|
5544
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
5545
|
+
]
|
|
5546
|
+
}
|
|
5547
|
+
),
|
|
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 })
|
|
5551
|
+
] })
|
|
5552
|
+
] });
|
|
5553
|
+
}
|
|
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)(
|
|
5386
5556
|
Box_default,
|
|
5387
5557
|
{
|
|
5388
5558
|
display: "flex",
|
|
@@ -5391,23 +5561,23 @@ var FeatureListItem = ({
|
|
|
5391
5561
|
className,
|
|
5392
5562
|
...rest,
|
|
5393
5563
|
children: [
|
|
5394
|
-
/* @__PURE__ */ (0,
|
|
5395
|
-
/* @__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 })
|
|
5396
5566
|
]
|
|
5397
5567
|
}
|
|
5398
5568
|
),
|
|
5399
|
-
subtitle && /* @__PURE__ */ (0,
|
|
5400
|
-
/* @__PURE__ */ (0,
|
|
5401
|
-
/* @__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 })
|
|
5402
5572
|
] })
|
|
5403
5573
|
] });
|
|
5404
5574
|
};
|
|
5405
5575
|
var FeatureListItem_default = FeatureListItem;
|
|
5406
5576
|
|
|
5407
5577
|
// src/FeatureList/FeatureList.tsx
|
|
5408
|
-
var
|
|
5578
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
5409
5579
|
var FeatureList = ({ heading, items, className }) => {
|
|
5410
|
-
return /* @__PURE__ */ (0,
|
|
5580
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
|
|
5411
5581
|
Box_default,
|
|
5412
5582
|
{
|
|
5413
5583
|
display: "flex",
|
|
@@ -5415,8 +5585,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
5415
5585
|
gap: "var(--spacing-2)",
|
|
5416
5586
|
className,
|
|
5417
5587
|
children: [
|
|
5418
|
-
heading && /* @__PURE__ */ (0,
|
|
5419
|
-
/* @__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}`)) })
|
|
5420
5590
|
]
|
|
5421
5591
|
}
|
|
5422
5592
|
);
|
|
@@ -5424,8 +5594,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
5424
5594
|
var FeatureList_default = FeatureList;
|
|
5425
5595
|
|
|
5426
5596
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
5427
|
-
var
|
|
5428
|
-
var cardContainerStyles =
|
|
5597
|
+
var import_react31 = require("@emotion/react");
|
|
5598
|
+
var cardContainerStyles = import_react31.css`
|
|
5429
5599
|
position: relative;
|
|
5430
5600
|
height: 335px;
|
|
5431
5601
|
|
|
@@ -5433,12 +5603,12 @@ var cardContainerStyles = import_react29.css`
|
|
|
5433
5603
|
height: 480px;
|
|
5434
5604
|
}
|
|
5435
5605
|
`;
|
|
5436
|
-
var cardContentStyles =
|
|
5606
|
+
var cardContentStyles = import_react31.css`
|
|
5437
5607
|
position: relative;
|
|
5438
5608
|
border-radius: var(--spacing-4);
|
|
5439
5609
|
overflow: hidden;
|
|
5440
5610
|
`;
|
|
5441
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
5611
|
+
var getBackgroundWithGradient = (imageUrl) => import_react31.css`
|
|
5442
5612
|
background-image: linear-gradient(
|
|
5443
5613
|
180deg,
|
|
5444
5614
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -5452,7 +5622,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react29.css`
|
|
|
5452
5622
|
`;
|
|
5453
5623
|
|
|
5454
5624
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
5455
|
-
var
|
|
5625
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5456
5626
|
var FieldNoteCard = ({
|
|
5457
5627
|
backgroundImage,
|
|
5458
5628
|
title,
|
|
@@ -5461,14 +5631,14 @@ var FieldNoteCard = ({
|
|
|
5461
5631
|
className,
|
|
5462
5632
|
...rest
|
|
5463
5633
|
}) => {
|
|
5464
|
-
return /* @__PURE__ */ (0,
|
|
5634
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5465
5635
|
Box_default,
|
|
5466
5636
|
{
|
|
5467
5637
|
display: "flex",
|
|
5468
5638
|
css: cardContainerStyles,
|
|
5469
5639
|
className,
|
|
5470
5640
|
...rest,
|
|
5471
|
-
children: /* @__PURE__ */ (0,
|
|
5641
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5472
5642
|
Box_default,
|
|
5473
5643
|
{
|
|
5474
5644
|
display: "flex",
|
|
@@ -5476,9 +5646,9 @@ var FieldNoteCard = ({
|
|
|
5476
5646
|
justifyContent: "flex-end",
|
|
5477
5647
|
p: 6,
|
|
5478
5648
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
5479
|
-
children: /* @__PURE__ */ (0,
|
|
5480
|
-
/* @__PURE__ */ (0,
|
|
5481
|
-
/* @__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 })
|
|
5482
5652
|
] })
|
|
5483
5653
|
}
|
|
5484
5654
|
)
|
|
@@ -5488,14 +5658,14 @@ var FieldNoteCard = ({
|
|
|
5488
5658
|
var FieldNoteCard_default = FieldNoteCard;
|
|
5489
5659
|
|
|
5490
5660
|
// src/Form/FormField.tsx
|
|
5491
|
-
var
|
|
5492
|
-
var
|
|
5493
|
-
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`
|
|
5494
5664
|
display: flex;
|
|
5495
5665
|
flex-direction: column;
|
|
5496
5666
|
gap: ${space["2"]};
|
|
5497
5667
|
`;
|
|
5498
|
-
var labelStyles2 =
|
|
5668
|
+
var labelStyles2 = import_react32.css`
|
|
5499
5669
|
font-family: ${fonts.base};
|
|
5500
5670
|
font-size: ${fontSizes.sm};
|
|
5501
5671
|
font-weight: ${fontWeights.medium};
|
|
@@ -5503,17 +5673,17 @@ var labelStyles2 = import_react30.css`
|
|
|
5503
5673
|
color: ${colors.gray["900"]};
|
|
5504
5674
|
margin-bottom: ${space["1"]};
|
|
5505
5675
|
`;
|
|
5506
|
-
var requiredIndicatorStyles =
|
|
5676
|
+
var requiredIndicatorStyles = import_react32.css`
|
|
5507
5677
|
color: ${colors.red["500"]};
|
|
5508
5678
|
margin-left: ${space["1"]};
|
|
5509
5679
|
`;
|
|
5510
|
-
var helpTextStyles =
|
|
5680
|
+
var helpTextStyles = import_react32.css`
|
|
5511
5681
|
font-family: ${fonts.base};
|
|
5512
5682
|
font-size: ${fontSizes.sm};
|
|
5513
5683
|
line-height: ${lineHeights.tight};
|
|
5514
5684
|
color: ${colors.gray["600"]};
|
|
5515
5685
|
`;
|
|
5516
|
-
var errorTextStyles =
|
|
5686
|
+
var errorTextStyles = import_react32.css`
|
|
5517
5687
|
font-family: ${fonts.base};
|
|
5518
5688
|
font-size: ${fontSizes.sm};
|
|
5519
5689
|
line-height: ${lineHeights.tight};
|
|
@@ -5522,7 +5692,7 @@ var errorTextStyles = import_react30.css`
|
|
|
5522
5692
|
align-items: center;
|
|
5523
5693
|
gap: ${space["1"]};
|
|
5524
5694
|
`;
|
|
5525
|
-
var successTextStyles =
|
|
5695
|
+
var successTextStyles = import_react32.css`
|
|
5526
5696
|
font-family: ${fonts.base};
|
|
5527
5697
|
font-size: ${fontSizes.sm};
|
|
5528
5698
|
line-height: ${lineHeights.tight};
|
|
@@ -5531,7 +5701,7 @@ var successTextStyles = import_react30.css`
|
|
|
5531
5701
|
align-items: center;
|
|
5532
5702
|
gap: ${space["1"]};
|
|
5533
5703
|
`;
|
|
5534
|
-
var visuallyHiddenStyles =
|
|
5704
|
+
var visuallyHiddenStyles = import_react32.css`
|
|
5535
5705
|
position: absolute;
|
|
5536
5706
|
width: 1px;
|
|
5537
5707
|
height: 1px;
|
|
@@ -5556,21 +5726,21 @@ var FormField = ({
|
|
|
5556
5726
|
const hasError = !!error;
|
|
5557
5727
|
const hasSuccess = !!success && !hasError;
|
|
5558
5728
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
5559
|
-
return /* @__PURE__ */ (0,
|
|
5560
|
-
label && /* @__PURE__ */ (0,
|
|
5729
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
5730
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
|
|
5561
5731
|
"label",
|
|
5562
5732
|
{
|
|
5563
5733
|
htmlFor,
|
|
5564
5734
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
5565
5735
|
children: [
|
|
5566
5736
|
label,
|
|
5567
|
-
required && /* @__PURE__ */ (0,
|
|
5737
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
5568
5738
|
]
|
|
5569
5739
|
}
|
|
5570
5740
|
),
|
|
5571
5741
|
children,
|
|
5572
|
-
hasError && /* @__PURE__ */ (0,
|
|
5573
|
-
/* @__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)(
|
|
5574
5744
|
"path",
|
|
5575
5745
|
{
|
|
5576
5746
|
fillRule: "evenodd",
|
|
@@ -5580,8 +5750,8 @@ var FormField = ({
|
|
|
5580
5750
|
) }),
|
|
5581
5751
|
error
|
|
5582
5752
|
] }),
|
|
5583
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
5584
|
-
/* @__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)(
|
|
5585
5755
|
"path",
|
|
5586
5756
|
{
|
|
5587
5757
|
fillRule: "evenodd",
|
|
@@ -5591,15 +5761,15 @@ var FormField = ({
|
|
|
5591
5761
|
) }),
|
|
5592
5762
|
success
|
|
5593
5763
|
] }),
|
|
5594
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
5764
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
5595
5765
|
] });
|
|
5596
5766
|
};
|
|
5597
5767
|
|
|
5598
5768
|
// src/Form/Input.tsx
|
|
5599
|
-
var
|
|
5600
|
-
var
|
|
5601
|
-
var
|
|
5602
|
-
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`
|
|
5603
5773
|
position: relative;
|
|
5604
5774
|
width: 100%;
|
|
5605
5775
|
font-family: ${fonts.base};
|
|
@@ -5636,19 +5806,19 @@ var inputStyles = import_react31.css`
|
|
|
5636
5806
|
}
|
|
5637
5807
|
`;
|
|
5638
5808
|
var sizeStyles = {
|
|
5639
|
-
sm:
|
|
5809
|
+
sm: import_react33.css`
|
|
5640
5810
|
padding: ${space["2"]} ${space["3"]};
|
|
5641
5811
|
font-size: ${fontSizes.sm};
|
|
5642
5812
|
line-height: ${lineHeights.tight};
|
|
5643
5813
|
height: ${space["8"]};
|
|
5644
5814
|
`,
|
|
5645
|
-
md:
|
|
5815
|
+
md: import_react33.css`
|
|
5646
5816
|
padding: ${space["3"]} ${space["4"]};
|
|
5647
5817
|
font-size: ${fontSizes.base};
|
|
5648
5818
|
line-height: ${lineHeights.normal};
|
|
5649
5819
|
height: ${space["10"]};
|
|
5650
5820
|
`,
|
|
5651
|
-
lg:
|
|
5821
|
+
lg: import_react33.css`
|
|
5652
5822
|
padding: ${space["4"]} ${space["5"]};
|
|
5653
5823
|
font-size: ${fontSizes.lg};
|
|
5654
5824
|
line-height: ${lineHeights.normal};
|
|
@@ -5656,8 +5826,8 @@ var sizeStyles = {
|
|
|
5656
5826
|
`
|
|
5657
5827
|
};
|
|
5658
5828
|
var variantStyles = {
|
|
5659
|
-
default:
|
|
5660
|
-
error:
|
|
5829
|
+
default: import_react33.css``,
|
|
5830
|
+
error: import_react33.css`
|
|
5661
5831
|
border-color: ${colors.red["500"]};
|
|
5662
5832
|
|
|
5663
5833
|
&:focus {
|
|
@@ -5665,7 +5835,7 @@ var variantStyles = {
|
|
|
5665
5835
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5666
5836
|
}
|
|
5667
5837
|
`,
|
|
5668
|
-
success:
|
|
5838
|
+
success: import_react33.css`
|
|
5669
5839
|
border-color: ${colors.accent.green};
|
|
5670
5840
|
|
|
5671
5841
|
&:focus {
|
|
@@ -5674,7 +5844,7 @@ var variantStyles = {
|
|
|
5674
5844
|
}
|
|
5675
5845
|
`
|
|
5676
5846
|
};
|
|
5677
|
-
var inputWithIconStyles =
|
|
5847
|
+
var inputWithIconStyles = import_react33.css`
|
|
5678
5848
|
padding-left: ${space["10"]};
|
|
5679
5849
|
|
|
5680
5850
|
&.has-end-icon {
|
|
@@ -5685,7 +5855,7 @@ var inputWithIconStyles = import_react31.css`
|
|
|
5685
5855
|
padding-left: ${space["10"]};
|
|
5686
5856
|
}
|
|
5687
5857
|
`;
|
|
5688
|
-
var iconContainerStyles =
|
|
5858
|
+
var iconContainerStyles = import_react33.css`
|
|
5689
5859
|
position: absolute;
|
|
5690
5860
|
top: 50%;
|
|
5691
5861
|
transform: translateY(-50%);
|
|
@@ -5696,20 +5866,20 @@ var iconContainerStyles = import_react31.css`
|
|
|
5696
5866
|
pointer-events: none;
|
|
5697
5867
|
z-index: 1;
|
|
5698
5868
|
`;
|
|
5699
|
-
var startIconStyles =
|
|
5869
|
+
var startIconStyles = import_react33.css`
|
|
5700
5870
|
${iconContainerStyles}
|
|
5701
5871
|
left: ${space["3"]};
|
|
5702
5872
|
`;
|
|
5703
|
-
var endIconStyles =
|
|
5873
|
+
var endIconStyles = import_react33.css`
|
|
5704
5874
|
${iconContainerStyles}
|
|
5705
5875
|
right: ${space["3"]};
|
|
5706
5876
|
`;
|
|
5707
|
-
var inputWrapperStyles =
|
|
5877
|
+
var inputWrapperStyles = import_react33.css`
|
|
5708
5878
|
position: relative;
|
|
5709
5879
|
display: inline-block;
|
|
5710
5880
|
width: 100%;
|
|
5711
5881
|
`;
|
|
5712
|
-
var Input = (0,
|
|
5882
|
+
var Input = (0, import_react34.forwardRef)(
|
|
5713
5883
|
({
|
|
5714
5884
|
size = "md",
|
|
5715
5885
|
variant = "default",
|
|
@@ -5728,9 +5898,9 @@ var Input = (0, import_react32.forwardRef)(
|
|
|
5728
5898
|
hasEndIcon && "has-end-icon",
|
|
5729
5899
|
className
|
|
5730
5900
|
].filter(Boolean).join(" ");
|
|
5731
|
-
return /* @__PURE__ */ (0,
|
|
5732
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
5733
|
-
/* @__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)(
|
|
5734
5904
|
"input",
|
|
5735
5905
|
{
|
|
5736
5906
|
ref,
|
|
@@ -5747,17 +5917,17 @@ var Input = (0, import_react32.forwardRef)(
|
|
|
5747
5917
|
...props
|
|
5748
5918
|
}
|
|
5749
5919
|
),
|
|
5750
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
5920
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
5751
5921
|
] });
|
|
5752
5922
|
}
|
|
5753
5923
|
);
|
|
5754
5924
|
Input.displayName = "Input";
|
|
5755
5925
|
|
|
5756
5926
|
// src/Form/Select.tsx
|
|
5757
|
-
var
|
|
5758
|
-
var
|
|
5759
|
-
var
|
|
5760
|
-
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`
|
|
5761
5931
|
position: relative;
|
|
5762
5932
|
width: 100%;
|
|
5763
5933
|
font-family: ${fonts.base};
|
|
@@ -5796,19 +5966,19 @@ var selectStyles = import_react33.css`
|
|
|
5796
5966
|
}
|
|
5797
5967
|
`;
|
|
5798
5968
|
var sizeStyles2 = {
|
|
5799
|
-
sm:
|
|
5969
|
+
sm: import_react35.css`
|
|
5800
5970
|
padding: ${space["2"]} ${space["3"]};
|
|
5801
5971
|
font-size: ${fontSizes.sm};
|
|
5802
5972
|
line-height: ${lineHeights.tight};
|
|
5803
5973
|
height: ${space["8"]};
|
|
5804
5974
|
`,
|
|
5805
|
-
md:
|
|
5975
|
+
md: import_react35.css`
|
|
5806
5976
|
padding: ${space["3"]} ${space["4"]};
|
|
5807
5977
|
font-size: ${fontSizes.base};
|
|
5808
5978
|
line-height: ${lineHeights.normal};
|
|
5809
5979
|
height: ${space["10"]};
|
|
5810
5980
|
`,
|
|
5811
|
-
lg:
|
|
5981
|
+
lg: import_react35.css`
|
|
5812
5982
|
padding: ${space["4"]} ${space["5"]};
|
|
5813
5983
|
font-size: ${fontSizes.lg};
|
|
5814
5984
|
line-height: ${lineHeights.normal};
|
|
@@ -5816,8 +5986,8 @@ var sizeStyles2 = {
|
|
|
5816
5986
|
`
|
|
5817
5987
|
};
|
|
5818
5988
|
var variantStyles2 = {
|
|
5819
|
-
default:
|
|
5820
|
-
error:
|
|
5989
|
+
default: import_react35.css``,
|
|
5990
|
+
error: import_react35.css`
|
|
5821
5991
|
border-color: ${colors.red["500"]};
|
|
5822
5992
|
|
|
5823
5993
|
&:focus {
|
|
@@ -5825,7 +5995,7 @@ var variantStyles2 = {
|
|
|
5825
5995
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5826
5996
|
}
|
|
5827
5997
|
`,
|
|
5828
|
-
success:
|
|
5998
|
+
success: import_react35.css`
|
|
5829
5999
|
border-color: ${colors.accent.green};
|
|
5830
6000
|
|
|
5831
6001
|
&:focus {
|
|
@@ -5834,7 +6004,7 @@ var variantStyles2 = {
|
|
|
5834
6004
|
}
|
|
5835
6005
|
`
|
|
5836
6006
|
};
|
|
5837
|
-
var optionStyles =
|
|
6007
|
+
var optionStyles = import_react35.css`
|
|
5838
6008
|
background-color: ${colors.light["100"]};
|
|
5839
6009
|
color: ${colors.gray["900"]};
|
|
5840
6010
|
|
|
@@ -5843,7 +6013,7 @@ var optionStyles = import_react33.css`
|
|
|
5843
6013
|
background-color: ${colors.gray["100"]};
|
|
5844
6014
|
}
|
|
5845
6015
|
`;
|
|
5846
|
-
var Select = (0,
|
|
6016
|
+
var Select = (0, import_react36.forwardRef)(
|
|
5847
6017
|
({
|
|
5848
6018
|
size = "md",
|
|
5849
6019
|
variant = "default",
|
|
@@ -5853,7 +6023,7 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
5853
6023
|
className = "",
|
|
5854
6024
|
...props
|
|
5855
6025
|
}, ref) => {
|
|
5856
|
-
return /* @__PURE__ */ (0,
|
|
6026
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
5857
6027
|
"select",
|
|
5858
6028
|
{
|
|
5859
6029
|
ref,
|
|
@@ -5862,8 +6032,8 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
5862
6032
|
className,
|
|
5863
6033
|
...props,
|
|
5864
6034
|
children: [
|
|
5865
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
5866
|
-
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)(
|
|
5867
6037
|
"option",
|
|
5868
6038
|
{
|
|
5869
6039
|
value: option.value,
|
|
@@ -5881,10 +6051,10 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
5881
6051
|
Select.displayName = "Select";
|
|
5882
6052
|
|
|
5883
6053
|
// src/Grid/Column.tsx
|
|
5884
|
-
var
|
|
6054
|
+
var import_react38 = require("@emotion/react");
|
|
5885
6055
|
|
|
5886
6056
|
// src/Grid/utils.ts
|
|
5887
|
-
var
|
|
6057
|
+
var import_react37 = require("@emotion/react");
|
|
5888
6058
|
var LayoutTokens = {
|
|
5889
6059
|
containers: {
|
|
5890
6060
|
sm: screens.sm,
|
|
@@ -5924,11 +6094,11 @@ var getResponsiveValue = (value) => {
|
|
|
5924
6094
|
var generateGridColumns = (columns) => {
|
|
5925
6095
|
const baseColumns = getResponsiveValue(columns);
|
|
5926
6096
|
if (typeof columns === "number") {
|
|
5927
|
-
return
|
|
6097
|
+
return import_react37.css`
|
|
5928
6098
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
5929
6099
|
`;
|
|
5930
6100
|
}
|
|
5931
|
-
return
|
|
6101
|
+
return import_react37.css`
|
|
5932
6102
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
5933
6103
|
|
|
5934
6104
|
${media.sm} {
|
|
@@ -5960,11 +6130,11 @@ var generateGridColumns = (columns) => {
|
|
|
5960
6130
|
var generateGapStyles = (gap2) => {
|
|
5961
6131
|
const baseGap = getResponsiveValue(gap2);
|
|
5962
6132
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
5963
|
-
return
|
|
6133
|
+
return import_react37.css`
|
|
5964
6134
|
gap: ${space[gap2]};
|
|
5965
6135
|
`;
|
|
5966
6136
|
}
|
|
5967
|
-
return
|
|
6137
|
+
return import_react37.css`
|
|
5968
6138
|
gap: ${space[baseGap]};
|
|
5969
6139
|
|
|
5970
6140
|
${media.sm} {
|
|
@@ -5987,11 +6157,11 @@ var generateGapStyles = (gap2) => {
|
|
|
5987
6157
|
var generateRowGapStyles = (rowGap) => {
|
|
5988
6158
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
5989
6159
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
5990
|
-
return
|
|
6160
|
+
return import_react37.css`
|
|
5991
6161
|
row-gap: ${space[rowGap]};
|
|
5992
6162
|
`;
|
|
5993
6163
|
}
|
|
5994
|
-
return
|
|
6164
|
+
return import_react37.css`
|
|
5995
6165
|
row-gap: ${space[baseRowGap]};
|
|
5996
6166
|
|
|
5997
6167
|
${media.sm} {
|
|
@@ -6014,11 +6184,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
6014
6184
|
var generateColumnGapStyles = (columnGap) => {
|
|
6015
6185
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
6016
6186
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
6017
|
-
return
|
|
6187
|
+
return import_react37.css`
|
|
6018
6188
|
column-gap: ${space[columnGap]};
|
|
6019
6189
|
`;
|
|
6020
6190
|
}
|
|
6021
|
-
return
|
|
6191
|
+
return import_react37.css`
|
|
6022
6192
|
column-gap: ${space[baseColumnGap]};
|
|
6023
6193
|
|
|
6024
6194
|
${media.sm} {
|
|
@@ -6041,11 +6211,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
6041
6211
|
var generateColumnSpan = (span) => {
|
|
6042
6212
|
const baseSpan = getResponsiveValue(span);
|
|
6043
6213
|
if (typeof span === "string" || typeof span === "number") {
|
|
6044
|
-
return
|
|
6214
|
+
return import_react37.css`
|
|
6045
6215
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
6046
6216
|
`;
|
|
6047
6217
|
}
|
|
6048
|
-
return
|
|
6218
|
+
return import_react37.css`
|
|
6049
6219
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
6050
6220
|
|
|
6051
6221
|
${media.sm} {
|
|
@@ -6068,11 +6238,11 @@ var generateColumnSpan = (span) => {
|
|
|
6068
6238
|
var generateAlignItems = (alignItems) => {
|
|
6069
6239
|
const baseAlign = getResponsiveValue(alignItems);
|
|
6070
6240
|
if (typeof alignItems === "string") {
|
|
6071
|
-
return
|
|
6241
|
+
return import_react37.css`
|
|
6072
6242
|
align-items: ${alignItems};
|
|
6073
6243
|
`;
|
|
6074
6244
|
}
|
|
6075
|
-
return
|
|
6245
|
+
return import_react37.css`
|
|
6076
6246
|
align-items: ${baseAlign};
|
|
6077
6247
|
|
|
6078
6248
|
${media.sm} {
|
|
@@ -6095,11 +6265,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
6095
6265
|
var generateJustifyItems = (justifyItems) => {
|
|
6096
6266
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
6097
6267
|
if (typeof justifyItems === "string") {
|
|
6098
|
-
return
|
|
6268
|
+
return import_react37.css`
|
|
6099
6269
|
justify-items: ${justifyItems};
|
|
6100
6270
|
`;
|
|
6101
6271
|
}
|
|
6102
|
-
return
|
|
6272
|
+
return import_react37.css`
|
|
6103
6273
|
justify-items: ${baseJustify};
|
|
6104
6274
|
|
|
6105
6275
|
${media.sm} {
|
|
@@ -6121,7 +6291,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
6121
6291
|
};
|
|
6122
6292
|
|
|
6123
6293
|
// src/Grid/Column.tsx
|
|
6124
|
-
var
|
|
6294
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
6125
6295
|
var Column = ({
|
|
6126
6296
|
span,
|
|
6127
6297
|
start,
|
|
@@ -6134,30 +6304,30 @@ var Column = ({
|
|
|
6134
6304
|
}) => {
|
|
6135
6305
|
const columnStyles = [
|
|
6136
6306
|
span && generateColumnSpan(span),
|
|
6137
|
-
start &&
|
|
6307
|
+
start && import_react38.css`
|
|
6138
6308
|
grid-column-start: ${start};
|
|
6139
6309
|
`,
|
|
6140
|
-
end &&
|
|
6310
|
+
end && import_react38.css`
|
|
6141
6311
|
grid-column-end: ${end};
|
|
6142
6312
|
`,
|
|
6143
|
-
row &&
|
|
6313
|
+
row && import_react38.css`
|
|
6144
6314
|
grid-row: ${row};
|
|
6145
6315
|
`,
|
|
6146
|
-
rowSpan &&
|
|
6316
|
+
rowSpan && import_react38.css`
|
|
6147
6317
|
grid-row: span ${rowSpan};
|
|
6148
6318
|
`,
|
|
6149
|
-
area &&
|
|
6319
|
+
area && import_react38.css`
|
|
6150
6320
|
grid-area: ${area};
|
|
6151
6321
|
`
|
|
6152
6322
|
].filter(Boolean);
|
|
6153
|
-
return /* @__PURE__ */ (0,
|
|
6323
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
6154
6324
|
};
|
|
6155
6325
|
var Column_default = Column;
|
|
6156
6326
|
|
|
6157
6327
|
// src/Grid/Grid.tsx
|
|
6158
|
-
var
|
|
6159
|
-
var
|
|
6160
|
-
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`
|
|
6161
6331
|
display: grid;
|
|
6162
6332
|
`;
|
|
6163
6333
|
var Grid = ({
|
|
@@ -6182,27 +6352,27 @@ var Grid = ({
|
|
|
6182
6352
|
columnGap && generateColumnGapStyles(columnGap),
|
|
6183
6353
|
alignItems && generateAlignItems(alignItems),
|
|
6184
6354
|
justifyItems && generateJustifyItems(justifyItems),
|
|
6185
|
-
autoRows &&
|
|
6355
|
+
autoRows && import_react39.css`
|
|
6186
6356
|
grid-auto-rows: ${autoRows};
|
|
6187
6357
|
`,
|
|
6188
|
-
autoColumns &&
|
|
6358
|
+
autoColumns && import_react39.css`
|
|
6189
6359
|
grid-auto-columns: ${autoColumns};
|
|
6190
6360
|
`,
|
|
6191
|
-
templateAreas &&
|
|
6361
|
+
templateAreas && import_react39.css`
|
|
6192
6362
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
6193
6363
|
`,
|
|
6194
|
-
justifyContent &&
|
|
6364
|
+
justifyContent && import_react39.css`
|
|
6195
6365
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
6196
6366
|
`
|
|
6197
6367
|
].filter(Boolean);
|
|
6198
|
-
return /* @__PURE__ */ (0,
|
|
6368
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
6199
6369
|
};
|
|
6200
6370
|
var Grid_default = Grid;
|
|
6201
6371
|
|
|
6202
6372
|
// src/Grid/GridContainer.tsx
|
|
6203
|
-
var
|
|
6204
|
-
var
|
|
6205
|
-
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`
|
|
6206
6376
|
width: 100%;
|
|
6207
6377
|
margin: 0 auto;
|
|
6208
6378
|
padding-left: 1rem;
|
|
@@ -6210,14 +6380,14 @@ var baseContainerStyles = import_react38.css`
|
|
|
6210
6380
|
`;
|
|
6211
6381
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
6212
6382
|
if (maxWidth === "full") {
|
|
6213
|
-
return
|
|
6383
|
+
return import_react40.css`
|
|
6214
6384
|
max-width: 100%;
|
|
6215
6385
|
padding-left: 0;
|
|
6216
6386
|
padding-right: 0;
|
|
6217
6387
|
`;
|
|
6218
6388
|
}
|
|
6219
6389
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
6220
|
-
return
|
|
6390
|
+
return import_react40.css`
|
|
6221
6391
|
max-width: ${width2};
|
|
6222
6392
|
|
|
6223
6393
|
${media.sm} {
|
|
@@ -6246,13 +6416,13 @@ var GridContainer = ({
|
|
|
6246
6416
|
baseContainerStyles,
|
|
6247
6417
|
generateMaxWidthStyles(maxWidth)
|
|
6248
6418
|
];
|
|
6249
|
-
return /* @__PURE__ */ (0,
|
|
6419
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
6250
6420
|
};
|
|
6251
6421
|
var GridContainer_default = GridContainer;
|
|
6252
6422
|
|
|
6253
6423
|
// src/HuntCard/HuntCard.styles.ts
|
|
6254
|
-
var
|
|
6255
|
-
var cardContainerStyles2 =
|
|
6424
|
+
var import_react41 = require("@emotion/react");
|
|
6425
|
+
var cardContainerStyles2 = import_react41.css`
|
|
6256
6426
|
position: relative;
|
|
6257
6427
|
height: 335px;
|
|
6258
6428
|
|
|
@@ -6260,12 +6430,12 @@ var cardContainerStyles2 = import_react39.css`
|
|
|
6260
6430
|
height: 480px;
|
|
6261
6431
|
}
|
|
6262
6432
|
`;
|
|
6263
|
-
var cardContentStyles2 =
|
|
6433
|
+
var cardContentStyles2 = import_react41.css`
|
|
6264
6434
|
position: relative;
|
|
6265
6435
|
border-radius: var(--spacing-4);
|
|
6266
6436
|
overflow: hidden;
|
|
6267
6437
|
`;
|
|
6268
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
6438
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react41.css`
|
|
6269
6439
|
background-image: linear-gradient(
|
|
6270
6440
|
180deg,
|
|
6271
6441
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -6279,7 +6449,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react39.css`
|
|
|
6279
6449
|
`;
|
|
6280
6450
|
|
|
6281
6451
|
// src/HuntCard/HuntCard.tsx
|
|
6282
|
-
var
|
|
6452
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
6283
6453
|
var HuntCard = ({
|
|
6284
6454
|
backgroundImage,
|
|
6285
6455
|
title,
|
|
@@ -6288,14 +6458,14 @@ var HuntCard = ({
|
|
|
6288
6458
|
className,
|
|
6289
6459
|
...rest
|
|
6290
6460
|
}) => {
|
|
6291
|
-
return /* @__PURE__ */ (0,
|
|
6461
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
6292
6462
|
Box_default,
|
|
6293
6463
|
{
|
|
6294
6464
|
display: "flex",
|
|
6295
6465
|
css: cardContainerStyles2,
|
|
6296
6466
|
className,
|
|
6297
6467
|
...rest,
|
|
6298
|
-
children: /* @__PURE__ */ (0,
|
|
6468
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
6299
6469
|
Box_default,
|
|
6300
6470
|
{
|
|
6301
6471
|
display: "flex",
|
|
@@ -6303,9 +6473,9 @@ var HuntCard = ({
|
|
|
6303
6473
|
justifyContent: "flex-end",
|
|
6304
6474
|
p: 6,
|
|
6305
6475
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
6306
|
-
children: /* @__PURE__ */ (0,
|
|
6307
|
-
/* @__PURE__ */ (0,
|
|
6308
|
-
/* @__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 })
|
|
6309
6479
|
] })
|
|
6310
6480
|
}
|
|
6311
6481
|
)
|
|
@@ -6315,9 +6485,9 @@ var HuntCard = ({
|
|
|
6315
6485
|
var HuntCard_default = HuntCard;
|
|
6316
6486
|
|
|
6317
6487
|
// src/InfoBox/InfoBox.tsx
|
|
6318
|
-
var
|
|
6488
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
6319
6489
|
var InfoBox = ({ heading, features, className }) => {
|
|
6320
|
-
return /* @__PURE__ */ (0,
|
|
6490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
|
|
6321
6491
|
Box_default,
|
|
6322
6492
|
{
|
|
6323
6493
|
display: "flex",
|
|
@@ -6326,8 +6496,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6326
6496
|
className,
|
|
6327
6497
|
color: "var(--text-primary)",
|
|
6328
6498
|
children: [
|
|
6329
|
-
/* @__PURE__ */ (0,
|
|
6330
|
-
/* @__PURE__ */ (0,
|
|
6499
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
6500
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
6331
6501
|
Box_default,
|
|
6332
6502
|
{
|
|
6333
6503
|
display: "flex",
|
|
@@ -6337,7 +6507,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6337
6507
|
borderRadius: "var(--radius-lg)",
|
|
6338
6508
|
bg: "var(--surface-neutral)",
|
|
6339
6509
|
className,
|
|
6340
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
6510
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
6341
6511
|
FeatureList_default,
|
|
6342
6512
|
{
|
|
6343
6513
|
heading: section.heading,
|
|
@@ -6354,11 +6524,11 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6354
6524
|
var InfoBox_default = InfoBox;
|
|
6355
6525
|
|
|
6356
6526
|
// src/ListingChat/ListingChat.tsx
|
|
6357
|
-
var
|
|
6527
|
+
var import_react43 = require("react");
|
|
6358
6528
|
|
|
6359
6529
|
// src/ListingChat/ListingChat.styles.ts
|
|
6360
|
-
var
|
|
6361
|
-
var containerStyles2 =
|
|
6530
|
+
var import_react42 = require("@emotion/react");
|
|
6531
|
+
var containerStyles2 = import_react42.css`
|
|
6362
6532
|
display: flex;
|
|
6363
6533
|
flex-direction: column;
|
|
6364
6534
|
gap: var(--spacing-4);
|
|
@@ -6366,13 +6536,13 @@ var containerStyles2 = import_react40.css`
|
|
|
6366
6536
|
border-radius: var(--radius-lg);
|
|
6367
6537
|
background: var(--surface-success);
|
|
6368
6538
|
`;
|
|
6369
|
-
var headerStyles =
|
|
6539
|
+
var headerStyles = import_react42.css`
|
|
6370
6540
|
display: flex;
|
|
6371
6541
|
align-items: flex-start;
|
|
6372
6542
|
justify-content: space-between;
|
|
6373
6543
|
gap: var(--spacing-2);
|
|
6374
6544
|
`;
|
|
6375
|
-
var chipsContainerStyles =
|
|
6545
|
+
var chipsContainerStyles = import_react42.css`
|
|
6376
6546
|
display: flex;
|
|
6377
6547
|
flex-wrap: wrap;
|
|
6378
6548
|
gap: var(--spacing-4);
|
|
@@ -6385,15 +6555,15 @@ var chipsContainerStyles = import_react40.css`
|
|
|
6385
6555
|
cursor: pointer;
|
|
6386
6556
|
}
|
|
6387
6557
|
`;
|
|
6388
|
-
var textAreaStyles =
|
|
6558
|
+
var textAreaStyles = import_react42.css`
|
|
6389
6559
|
min-height: 62px;
|
|
6390
6560
|
`;
|
|
6391
|
-
var inputWrapperStyles2 =
|
|
6561
|
+
var inputWrapperStyles2 = import_react42.css`
|
|
6392
6562
|
position: relative;
|
|
6393
6563
|
`;
|
|
6394
6564
|
|
|
6395
6565
|
// src/ListingChat/ListingChat.tsx
|
|
6396
|
-
var
|
|
6566
|
+
var import_jsx_runtime226 = require("@emotion/react/jsx-runtime");
|
|
6397
6567
|
var ListingChat = ({
|
|
6398
6568
|
onSubmit,
|
|
6399
6569
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -6403,15 +6573,15 @@ var ListingChat = ({
|
|
|
6403
6573
|
disabled = false,
|
|
6404
6574
|
...rest
|
|
6405
6575
|
}) => {
|
|
6406
|
-
const [value, setValue] = (0,
|
|
6407
|
-
const handleSubmit = (0,
|
|
6576
|
+
const [value, setValue] = (0, import_react43.useState)("");
|
|
6577
|
+
const handleSubmit = (0, import_react43.useCallback)(() => {
|
|
6408
6578
|
const trimmed = value.trim();
|
|
6409
6579
|
if (!trimmed)
|
|
6410
6580
|
return;
|
|
6411
6581
|
onSubmit(trimmed);
|
|
6412
6582
|
setValue("");
|
|
6413
6583
|
}, [onSubmit, value]);
|
|
6414
|
-
const handleTagClick = (0,
|
|
6584
|
+
const handleTagClick = (0, import_react43.useCallback)(
|
|
6415
6585
|
(tag) => () => {
|
|
6416
6586
|
const trimmed = tag.trim();
|
|
6417
6587
|
if (!trimmed)
|
|
@@ -6420,18 +6590,18 @@ var ListingChat = ({
|
|
|
6420
6590
|
},
|
|
6421
6591
|
[onSubmit]
|
|
6422
6592
|
);
|
|
6423
|
-
return /* @__PURE__ */ (0,
|
|
6424
|
-
/* @__PURE__ */ (0,
|
|
6425
|
-
/* @__PURE__ */ (0,
|
|
6426
|
-
/* @__PURE__ */ (0,
|
|
6427
|
-
/* @__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." })
|
|
6428
6598
|
] }),
|
|
6429
|
-
/* @__PURE__ */ (0,
|
|
6430
|
-
/* @__PURE__ */ (0,
|
|
6431
|
-
/* @__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" })
|
|
6432
6602
|
] })
|
|
6433
6603
|
] }),
|
|
6434
|
-
/* @__PURE__ */ (0,
|
|
6604
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6435
6605
|
TextArea,
|
|
6436
6606
|
{
|
|
6437
6607
|
rows: 1,
|
|
@@ -6446,14 +6616,14 @@ var ListingChat = ({
|
|
|
6446
6616
|
css: textAreaStyles
|
|
6447
6617
|
}
|
|
6448
6618
|
) }),
|
|
6449
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
6450
|
-
/* @__PURE__ */ (0,
|
|
6451
|
-
/* @__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)(
|
|
6452
6622
|
"button",
|
|
6453
6623
|
{
|
|
6454
6624
|
onClick: handleTagClick(tag),
|
|
6455
6625
|
disabled,
|
|
6456
|
-
children: /* @__PURE__ */ (0,
|
|
6626
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TagChip_default, { children: tag })
|
|
6457
6627
|
},
|
|
6458
6628
|
tag
|
|
6459
6629
|
)) })
|
|
@@ -6463,11 +6633,11 @@ var ListingChat = ({
|
|
|
6463
6633
|
var ListingChat_default = ListingChat;
|
|
6464
6634
|
|
|
6465
6635
|
// src/Logo/Logo.tsx
|
|
6466
|
-
var
|
|
6636
|
+
var import_react44 = require("@emotion/react");
|
|
6467
6637
|
|
|
6468
6638
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
6469
|
-
var
|
|
6470
|
-
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)(
|
|
6471
6641
|
"svg",
|
|
6472
6642
|
{
|
|
6473
6643
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6475,14 +6645,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6475
6645
|
fill: "none",
|
|
6476
6646
|
...props,
|
|
6477
6647
|
children: [
|
|
6478
|
-
/* @__PURE__ */ (0,
|
|
6648
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6479
6649
|
"path",
|
|
6480
6650
|
{
|
|
6481
6651
|
fill: "#000",
|
|
6482
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"
|
|
6483
6653
|
}
|
|
6484
6654
|
) }),
|
|
6485
|
-
/* @__PURE__ */ (0,
|
|
6655
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6486
6656
|
"path",
|
|
6487
6657
|
{
|
|
6488
6658
|
fill: "#FAD44E",
|
|
@@ -6491,14 +6661,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6491
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"
|
|
6492
6662
|
}
|
|
6493
6663
|
),
|
|
6494
|
-
/* @__PURE__ */ (0,
|
|
6664
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6495
6665
|
"path",
|
|
6496
6666
|
{
|
|
6497
6667
|
fill: "#fff",
|
|
6498
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"
|
|
6499
6669
|
}
|
|
6500
6670
|
),
|
|
6501
|
-
/* @__PURE__ */ (0,
|
|
6671
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
6502
6672
|
"filter",
|
|
6503
6673
|
{
|
|
6504
6674
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -6509,8 +6679,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6509
6679
|
colorInterpolationFilters: "sRGB",
|
|
6510
6680
|
filterUnits: "userSpaceOnUse",
|
|
6511
6681
|
children: [
|
|
6512
|
-
/* @__PURE__ */ (0,
|
|
6513
|
-
/* @__PURE__ */ (0,
|
|
6682
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6683
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6514
6684
|
"feColorMatrix",
|
|
6515
6685
|
{
|
|
6516
6686
|
in: "SourceAlpha",
|
|
@@ -6518,18 +6688,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6518
6688
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
6519
6689
|
}
|
|
6520
6690
|
),
|
|
6521
|
-
/* @__PURE__ */ (0,
|
|
6522
|
-
/* @__PURE__ */ (0,
|
|
6523
|
-
/* @__PURE__ */ (0,
|
|
6524
|
-
/* @__PURE__ */ (0,
|
|
6525
|
-
/* @__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)(
|
|
6526
6696
|
"feBlend",
|
|
6527
6697
|
{
|
|
6528
6698
|
in2: "BackgroundImageFix",
|
|
6529
6699
|
result: "effect1_dropShadow_257_2540"
|
|
6530
6700
|
}
|
|
6531
6701
|
),
|
|
6532
|
-
/* @__PURE__ */ (0,
|
|
6702
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6533
6703
|
"feBlend",
|
|
6534
6704
|
{
|
|
6535
6705
|
in: "SourceGraphic",
|
|
@@ -6546,8 +6716,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6546
6716
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
6547
6717
|
|
|
6548
6718
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
6549
|
-
var
|
|
6550
|
-
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)(
|
|
6551
6721
|
"svg",
|
|
6552
6722
|
{
|
|
6553
6723
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6555,14 +6725,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6555
6725
|
fill: "none",
|
|
6556
6726
|
...props,
|
|
6557
6727
|
children: [
|
|
6558
|
-
/* @__PURE__ */ (0,
|
|
6728
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6559
6729
|
"path",
|
|
6560
6730
|
{
|
|
6561
6731
|
fill: "#000",
|
|
6562
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"
|
|
6563
6733
|
}
|
|
6564
6734
|
) }),
|
|
6565
|
-
/* @__PURE__ */ (0,
|
|
6735
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6566
6736
|
"path",
|
|
6567
6737
|
{
|
|
6568
6738
|
fill: "#FAD44E",
|
|
@@ -6571,14 +6741,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6571
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"
|
|
6572
6742
|
}
|
|
6573
6743
|
),
|
|
6574
|
-
/* @__PURE__ */ (0,
|
|
6744
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6575
6745
|
"path",
|
|
6576
6746
|
{
|
|
6577
6747
|
fill: "#1A202C",
|
|
6578
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"
|
|
6579
6749
|
}
|
|
6580
6750
|
),
|
|
6581
|
-
/* @__PURE__ */ (0,
|
|
6751
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6582
6752
|
"filter",
|
|
6583
6753
|
{
|
|
6584
6754
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -6589,8 +6759,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6589
6759
|
colorInterpolationFilters: "sRGB",
|
|
6590
6760
|
filterUnits: "userSpaceOnUse",
|
|
6591
6761
|
children: [
|
|
6592
|
-
/* @__PURE__ */ (0,
|
|
6593
|
-
/* @__PURE__ */ (0,
|
|
6762
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6763
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6594
6764
|
"feColorMatrix",
|
|
6595
6765
|
{
|
|
6596
6766
|
in: "SourceAlpha",
|
|
@@ -6598,18 +6768,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6598
6768
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
6599
6769
|
}
|
|
6600
6770
|
),
|
|
6601
|
-
/* @__PURE__ */ (0,
|
|
6602
|
-
/* @__PURE__ */ (0,
|
|
6603
|
-
/* @__PURE__ */ (0,
|
|
6604
|
-
/* @__PURE__ */ (0,
|
|
6605
|
-
/* @__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)(
|
|
6606
6776
|
"feBlend",
|
|
6607
6777
|
{
|
|
6608
6778
|
in2: "BackgroundImageFix",
|
|
6609
6779
|
result: "effect1_dropShadow_257_2538"
|
|
6610
6780
|
}
|
|
6611
6781
|
),
|
|
6612
|
-
/* @__PURE__ */ (0,
|
|
6782
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6613
6783
|
"feBlend",
|
|
6614
6784
|
{
|
|
6615
6785
|
in: "SourceGraphic",
|
|
@@ -6626,8 +6796,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6626
6796
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
6627
6797
|
|
|
6628
6798
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
6629
|
-
var
|
|
6630
|
-
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)(
|
|
6631
6801
|
"svg",
|
|
6632
6802
|
{
|
|
6633
6803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6635,14 +6805,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6635
6805
|
fill: "none",
|
|
6636
6806
|
...props,
|
|
6637
6807
|
children: [
|
|
6638
|
-
/* @__PURE__ */ (0,
|
|
6808
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6639
6809
|
"path",
|
|
6640
6810
|
{
|
|
6641
6811
|
fill: "#E2430C",
|
|
6642
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"
|
|
6643
6813
|
}
|
|
6644
6814
|
),
|
|
6645
|
-
/* @__PURE__ */ (0,
|
|
6815
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6646
6816
|
"path",
|
|
6647
6817
|
{
|
|
6648
6818
|
fill: "#fff",
|
|
@@ -6655,8 +6825,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6655
6825
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
6656
6826
|
|
|
6657
6827
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
6658
|
-
var
|
|
6659
|
-
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)(
|
|
6660
6830
|
"svg",
|
|
6661
6831
|
{
|
|
6662
6832
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6664,14 +6834,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6664
6834
|
fill: "none",
|
|
6665
6835
|
...props,
|
|
6666
6836
|
children: [
|
|
6667
|
-
/* @__PURE__ */ (0,
|
|
6837
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6668
6838
|
"path",
|
|
6669
6839
|
{
|
|
6670
6840
|
fill: "#E2430C",
|
|
6671
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"
|
|
6672
6842
|
}
|
|
6673
6843
|
),
|
|
6674
|
-
/* @__PURE__ */ (0,
|
|
6844
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6675
6845
|
"path",
|
|
6676
6846
|
{
|
|
6677
6847
|
fill: "#000",
|
|
@@ -6684,8 +6854,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6684
6854
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
6685
6855
|
|
|
6686
6856
|
// src/Logo/Logo.tsx
|
|
6687
|
-
var
|
|
6688
|
-
var logoStyles = (size) =>
|
|
6857
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6858
|
+
var logoStyles = (size) => import_react44.css`
|
|
6689
6859
|
width: ${space[size]};
|
|
6690
6860
|
height: auto;
|
|
6691
6861
|
display: block;
|
|
@@ -6713,18 +6883,18 @@ var Logo = ({
|
|
|
6713
6883
|
return LandtrustStandardLight_default;
|
|
6714
6884
|
};
|
|
6715
6885
|
const LogoComponent = getLogoComponent();
|
|
6716
|
-
return /* @__PURE__ */ (0,
|
|
6886
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
6717
6887
|
};
|
|
6718
6888
|
var Logo_default = Logo;
|
|
6719
6889
|
|
|
6720
6890
|
// src/Navigation/Navigation.styles.ts
|
|
6721
|
-
var
|
|
6722
|
-
var navigationStyles =
|
|
6891
|
+
var import_react45 = require("@emotion/react");
|
|
6892
|
+
var navigationStyles = import_react45.css`
|
|
6723
6893
|
width: 100%;
|
|
6724
6894
|
background-color: white;
|
|
6725
6895
|
border-bottom: 1px solid #e5e5e5;
|
|
6726
6896
|
`;
|
|
6727
|
-
var hamburgerButtonStyles =
|
|
6897
|
+
var hamburgerButtonStyles = import_react45.css`
|
|
6728
6898
|
cursor: pointer;
|
|
6729
6899
|
&:focus {
|
|
6730
6900
|
outline: 2px solid #4f46e5;
|
|
@@ -6735,7 +6905,7 @@ var hamburgerButtonStyles = import_react43.css`
|
|
|
6735
6905
|
display: none;
|
|
6736
6906
|
}
|
|
6737
6907
|
`;
|
|
6738
|
-
var centeredLogoStyles =
|
|
6908
|
+
var centeredLogoStyles = import_react45.css`
|
|
6739
6909
|
transform: translate(-50%, -50%);
|
|
6740
6910
|
max-width: 150px;
|
|
6741
6911
|
|
|
@@ -6743,27 +6913,27 @@ var centeredLogoStyles = import_react43.css`
|
|
|
6743
6913
|
display: none;
|
|
6744
6914
|
}
|
|
6745
6915
|
`;
|
|
6746
|
-
var desktopLogoStyles =
|
|
6916
|
+
var desktopLogoStyles = import_react45.css`
|
|
6747
6917
|
display: none;
|
|
6748
6918
|
|
|
6749
6919
|
@media (min-width: 768px) {
|
|
6750
6920
|
display: block;
|
|
6751
6921
|
}
|
|
6752
6922
|
`;
|
|
6753
|
-
var containerStyles3 =
|
|
6923
|
+
var containerStyles3 = import_react45.css`
|
|
6754
6924
|
@media (min-width: 768px) {
|
|
6755
6925
|
justify-content: space-between;
|
|
6756
6926
|
position: static;
|
|
6757
6927
|
}
|
|
6758
6928
|
`;
|
|
6759
|
-
var logoStyles2 =
|
|
6929
|
+
var logoStyles2 = import_react45.css`
|
|
6760
6930
|
width: 100%;
|
|
6761
6931
|
|
|
6762
6932
|
@media (min-width: 768px) {
|
|
6763
6933
|
width: initial;
|
|
6764
6934
|
}
|
|
6765
6935
|
`;
|
|
6766
|
-
var desktopNavStyles =
|
|
6936
|
+
var desktopNavStyles = import_react45.css`
|
|
6767
6937
|
display: none;
|
|
6768
6938
|
|
|
6769
6939
|
@media (min-width: 768px) {
|
|
@@ -6772,7 +6942,7 @@ var desktopNavStyles = import_react43.css`
|
|
|
6772
6942
|
gap: 32px;
|
|
6773
6943
|
}
|
|
6774
6944
|
`;
|
|
6775
|
-
var navLinksStyles =
|
|
6945
|
+
var navLinksStyles = import_react45.css`
|
|
6776
6946
|
display: flex;
|
|
6777
6947
|
align-items: center;
|
|
6778
6948
|
gap: 24px;
|
|
@@ -6780,7 +6950,7 @@ var navLinksStyles = import_react43.css`
|
|
|
6780
6950
|
margin: 0;
|
|
6781
6951
|
padding: 0;
|
|
6782
6952
|
`;
|
|
6783
|
-
var navLinkStyles =
|
|
6953
|
+
var navLinkStyles = import_react45.css`
|
|
6784
6954
|
text-decoration: none;
|
|
6785
6955
|
color: #374151;
|
|
6786
6956
|
font-weight: 500;
|
|
@@ -6796,7 +6966,7 @@ var navLinkStyles = import_react43.css`
|
|
|
6796
6966
|
outline-offset: 2px;
|
|
6797
6967
|
}
|
|
6798
6968
|
`;
|
|
6799
|
-
var avatarPlaceholderStyles =
|
|
6969
|
+
var avatarPlaceholderStyles = import_react45.css`
|
|
6800
6970
|
width: 32px;
|
|
6801
6971
|
height: 32px;
|
|
6802
6972
|
border-radius: 50%;
|
|
@@ -6821,7 +6991,7 @@ var avatarPlaceholderStyles = import_react43.css`
|
|
|
6821
6991
|
`;
|
|
6822
6992
|
|
|
6823
6993
|
// src/Navigation/Navigation.tsx
|
|
6824
|
-
var
|
|
6994
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6825
6995
|
var Navigation = ({
|
|
6826
6996
|
onMenuToggle,
|
|
6827
6997
|
className,
|
|
@@ -6835,7 +7005,7 @@ var Navigation = ({
|
|
|
6835
7005
|
onAvatarClick,
|
|
6836
7006
|
...rest
|
|
6837
7007
|
}) => {
|
|
6838
|
-
return /* @__PURE__ */ (0,
|
|
7008
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6839
7009
|
Box_default,
|
|
6840
7010
|
{
|
|
6841
7011
|
display: "flex",
|
|
@@ -6844,7 +7014,7 @@ var Navigation = ({
|
|
|
6844
7014
|
position: "relative",
|
|
6845
7015
|
css: containerStyles3,
|
|
6846
7016
|
children: [
|
|
6847
|
-
/* @__PURE__ */ (0,
|
|
7017
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6848
7018
|
Box_default,
|
|
6849
7019
|
{
|
|
6850
7020
|
as: "button",
|
|
@@ -6856,11 +7026,11 @@ var Navigation = ({
|
|
|
6856
7026
|
border: "none",
|
|
6857
7027
|
padding: space[2],
|
|
6858
7028
|
css: hamburgerButtonStyles,
|
|
6859
|
-
children: /* @__PURE__ */ (0,
|
|
7029
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
6860
7030
|
}
|
|
6861
7031
|
),
|
|
6862
|
-
/* @__PURE__ */ (0,
|
|
6863
|
-
/* @__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)(
|
|
6864
7034
|
Logo_default,
|
|
6865
7035
|
{
|
|
6866
7036
|
variant: logoVariant,
|
|
@@ -6869,8 +7039,8 @@ var Navigation = ({
|
|
|
6869
7039
|
css: logoStyles2
|
|
6870
7040
|
}
|
|
6871
7041
|
) }),
|
|
6872
|
-
/* @__PURE__ */ (0,
|
|
6873
|
-
/* @__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)(
|
|
6874
7044
|
"a",
|
|
6875
7045
|
{
|
|
6876
7046
|
href: link.href,
|
|
@@ -6879,7 +7049,7 @@ var Navigation = ({
|
|
|
6879
7049
|
children: link.label
|
|
6880
7050
|
}
|
|
6881
7051
|
) }, link.href)) }) }),
|
|
6882
|
-
/* @__PURE__ */ (0,
|
|
7052
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6883
7053
|
Box_default,
|
|
6884
7054
|
{
|
|
6885
7055
|
as: "button",
|
|
@@ -6898,8 +7068,8 @@ var Navigation = ({
|
|
|
6898
7068
|
var Navigation_default = Navigation;
|
|
6899
7069
|
|
|
6900
7070
|
// src/PackageCard/PackageCard.styles.ts
|
|
6901
|
-
var
|
|
6902
|
-
var cardContainerStyles3 =
|
|
7071
|
+
var import_react46 = require("@emotion/react");
|
|
7072
|
+
var cardContainerStyles3 = import_react46.css`
|
|
6903
7073
|
color: var(--text-primary);
|
|
6904
7074
|
position: relative;
|
|
6905
7075
|
width: 100%;
|
|
@@ -6916,14 +7086,14 @@ var cardContainerStyles3 = import_react44.css`
|
|
|
6916
7086
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
6917
7087
|
}
|
|
6918
7088
|
`;
|
|
6919
|
-
var imageContainerStyles =
|
|
7089
|
+
var imageContainerStyles = import_react46.css`
|
|
6920
7090
|
position: relative;
|
|
6921
7091
|
width: 100%;
|
|
6922
7092
|
height: 200px;
|
|
6923
7093
|
overflow: hidden;
|
|
6924
7094
|
border-radius: var(--spacing-4);
|
|
6925
7095
|
`;
|
|
6926
|
-
var imageStyles2 =
|
|
7096
|
+
var imageStyles2 = import_react46.css`
|
|
6927
7097
|
width: 100%;
|
|
6928
7098
|
height: 100%;
|
|
6929
7099
|
background-size: cover;
|
|
@@ -6931,13 +7101,13 @@ var imageStyles2 = import_react44.css`
|
|
|
6931
7101
|
background-repeat: no-repeat;
|
|
6932
7102
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
6933
7103
|
`;
|
|
6934
|
-
var
|
|
7104
|
+
var badgeStyles2 = import_react46.css`
|
|
6935
7105
|
position: absolute;
|
|
6936
7106
|
top: var(--spacing-3);
|
|
6937
7107
|
left: var(--spacing-3);
|
|
6938
7108
|
z-index: 2;
|
|
6939
7109
|
`;
|
|
6940
|
-
var heartIconStyles =
|
|
7110
|
+
var heartIconStyles = import_react46.css`
|
|
6941
7111
|
position: absolute;
|
|
6942
7112
|
top: var(--spacing-3);
|
|
6943
7113
|
right: var(--spacing-3);
|
|
@@ -6959,12 +7129,12 @@ var heartIconStyles = import_react44.css`
|
|
|
6959
7129
|
transform: scale(1.1);
|
|
6960
7130
|
}
|
|
6961
7131
|
`;
|
|
6962
|
-
var contentStyles2 =
|
|
7132
|
+
var contentStyles2 = import_react46.css`
|
|
6963
7133
|
padding: var(--spacing-3);
|
|
6964
7134
|
`;
|
|
6965
7135
|
|
|
6966
7136
|
// src/PackageCard/PackageCard.tsx
|
|
6967
|
-
var
|
|
7137
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
6968
7138
|
var PackageCard = ({
|
|
6969
7139
|
images,
|
|
6970
7140
|
title,
|
|
@@ -6981,13 +7151,13 @@ var PackageCard = ({
|
|
|
6981
7151
|
...rest
|
|
6982
7152
|
}) => {
|
|
6983
7153
|
const mainImage = images[0] || "";
|
|
6984
|
-
return /* @__PURE__ */ (0,
|
|
6985
|
-
/* @__PURE__ */ (0,
|
|
6986
|
-
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: [
|
|
6987
7157
|
tripsLeft,
|
|
6988
7158
|
" Trips Left"
|
|
6989
7159
|
] }),
|
|
6990
|
-
/* @__PURE__ */ (0,
|
|
7160
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6991
7161
|
Box_default,
|
|
6992
7162
|
{
|
|
6993
7163
|
css: heartIconStyles,
|
|
@@ -6995,7 +7165,7 @@ var PackageCard = ({
|
|
|
6995
7165
|
e.stopPropagation();
|
|
6996
7166
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
6997
7167
|
},
|
|
6998
|
-
children: /* @__PURE__ */ (0,
|
|
7168
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
6999
7169
|
Icon_default,
|
|
7000
7170
|
{
|
|
7001
7171
|
variant: isFavorited ? "HeartSolid" : "Heart",
|
|
@@ -7005,8 +7175,8 @@ var PackageCard = ({
|
|
|
7005
7175
|
}
|
|
7006
7176
|
)
|
|
7007
7177
|
] }) }),
|
|
7008
|
-
/* @__PURE__ */ (0,
|
|
7009
|
-
/* @__PURE__ */ (0,
|
|
7178
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
7179
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
7010
7180
|
Box_default,
|
|
7011
7181
|
{
|
|
7012
7182
|
onClick,
|
|
@@ -7015,9 +7185,9 @@ var PackageCard = ({
|
|
|
7015
7185
|
gap: "var(--spacing-1)",
|
|
7016
7186
|
mb: "var(--spacing-4)",
|
|
7017
7187
|
children: [
|
|
7018
|
-
/* @__PURE__ */ (0,
|
|
7019
|
-
/* @__PURE__ */ (0,
|
|
7020
|
-
/* @__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: [
|
|
7021
7191
|
"Starting Price ",
|
|
7022
7192
|
startingPrice,
|
|
7023
7193
|
" / Guest"
|
|
@@ -7025,22 +7195,22 @@ var PackageCard = ({
|
|
|
7025
7195
|
]
|
|
7026
7196
|
}
|
|
7027
7197
|
),
|
|
7028
|
-
/* @__PURE__ */ (0,
|
|
7029
|
-
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)(
|
|
7030
7200
|
IconLabel_default,
|
|
7031
7201
|
{
|
|
7032
7202
|
variant: "Calendar",
|
|
7033
7203
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
7034
7204
|
}
|
|
7035
7205
|
),
|
|
7036
|
-
guests && /* @__PURE__ */ (0,
|
|
7206
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7037
7207
|
IconLabel_default,
|
|
7038
7208
|
{
|
|
7039
7209
|
variant: "User",
|
|
7040
7210
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
7041
7211
|
}
|
|
7042
7212
|
),
|
|
7043
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
7213
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
7044
7214
|
] })
|
|
7045
7215
|
] })
|
|
7046
7216
|
] });
|
|
@@ -7048,14 +7218,14 @@ var PackageCard = ({
|
|
|
7048
7218
|
var PackageCard_default = PackageCard;
|
|
7049
7219
|
|
|
7050
7220
|
// src/PackageHeader/PackageHeader.tsx
|
|
7051
|
-
var
|
|
7221
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
7052
7222
|
var PackageHeader = ({
|
|
7053
7223
|
header,
|
|
7054
7224
|
subheader,
|
|
7055
7225
|
features,
|
|
7056
7226
|
className
|
|
7057
7227
|
}) => {
|
|
7058
|
-
return /* @__PURE__ */ (0,
|
|
7228
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
7059
7229
|
Box_default,
|
|
7060
7230
|
{
|
|
7061
7231
|
display: "flex",
|
|
@@ -7064,9 +7234,9 @@ var PackageHeader = ({
|
|
|
7064
7234
|
color: "var(--text-primary)",
|
|
7065
7235
|
className,
|
|
7066
7236
|
children: [
|
|
7067
|
-
/* @__PURE__ */ (0,
|
|
7068
|
-
subheader && /* @__PURE__ */ (0,
|
|
7069
|
-
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 })
|
|
7070
7240
|
]
|
|
7071
7241
|
}
|
|
7072
7242
|
);
|
|
@@ -7074,8 +7244,8 @@ var PackageHeader = ({
|
|
|
7074
7244
|
var PackageHeader_default = PackageHeader;
|
|
7075
7245
|
|
|
7076
7246
|
// src/StarRating/StarRating.tsx
|
|
7077
|
-
var
|
|
7078
|
-
var
|
|
7247
|
+
var import_react47 = require("@emotion/react");
|
|
7248
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
7079
7249
|
var starSize = {
|
|
7080
7250
|
sm: {
|
|
7081
7251
|
size: "medium",
|
|
@@ -7094,13 +7264,13 @@ var StarRating = ({
|
|
|
7094
7264
|
const stars = [];
|
|
7095
7265
|
for (let i = 1; i <= 5; i++) {
|
|
7096
7266
|
stars.push(
|
|
7097
|
-
/* @__PURE__ */ (0,
|
|
7267
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7098
7268
|
Icon_default,
|
|
7099
7269
|
{
|
|
7100
7270
|
variant: "StarSolid",
|
|
7101
7271
|
size: starSize[size].size,
|
|
7102
7272
|
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)",
|
|
7103
|
-
css:
|
|
7273
|
+
css: import_react47.css`
|
|
7104
7274
|
${size === "md" && "width: 40px; height: 40px;"}
|
|
7105
7275
|
`
|
|
7106
7276
|
},
|
|
@@ -7108,7 +7278,7 @@ var StarRating = ({
|
|
|
7108
7278
|
)
|
|
7109
7279
|
);
|
|
7110
7280
|
}
|
|
7111
|
-
return /* @__PURE__ */ (0,
|
|
7281
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7112
7282
|
Box_default,
|
|
7113
7283
|
{
|
|
7114
7284
|
className,
|
|
@@ -7122,7 +7292,7 @@ var StarRating = ({
|
|
|
7122
7292
|
var StarRating_default = StarRating;
|
|
7123
7293
|
|
|
7124
7294
|
// src/UserCard/UserCard.tsx
|
|
7125
|
-
var
|
|
7295
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7126
7296
|
var UserCard = ({
|
|
7127
7297
|
avatarSrc,
|
|
7128
7298
|
title,
|
|
@@ -7131,7 +7301,7 @@ var UserCard = ({
|
|
|
7131
7301
|
showRating = true,
|
|
7132
7302
|
className
|
|
7133
7303
|
}) => {
|
|
7134
|
-
return /* @__PURE__ */ (0,
|
|
7304
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
|
|
7135
7305
|
Box_default,
|
|
7136
7306
|
{
|
|
7137
7307
|
display: "flex",
|
|
@@ -7139,11 +7309,11 @@ var UserCard = ({
|
|
|
7139
7309
|
gap: "var(--spacing-4)",
|
|
7140
7310
|
className,
|
|
7141
7311
|
children: [
|
|
7142
|
-
/* @__PURE__ */ (0,
|
|
7143
|
-
/* @__PURE__ */ (0,
|
|
7144
|
-
/* @__PURE__ */ (0,
|
|
7145
|
-
subtitle && /* @__PURE__ */ (0,
|
|
7146
|
-
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" })
|
|
7147
7317
|
] })
|
|
7148
7318
|
]
|
|
7149
7319
|
}
|
|
@@ -7152,8 +7322,8 @@ var UserCard = ({
|
|
|
7152
7322
|
var UserCard_default = UserCard;
|
|
7153
7323
|
|
|
7154
7324
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
7155
|
-
var
|
|
7156
|
-
var imageStyles3 =
|
|
7325
|
+
var import_react48 = require("@emotion/react");
|
|
7326
|
+
var imageStyles3 = import_react48.css`
|
|
7157
7327
|
flex: 1;
|
|
7158
7328
|
min-width: 0;
|
|
7159
7329
|
aspect-ratio: 1;
|
|
@@ -7163,13 +7333,13 @@ var imageStyles3 = import_react46.css`
|
|
|
7163
7333
|
`;
|
|
7164
7334
|
|
|
7165
7335
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
7166
|
-
var
|
|
7336
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
7167
7337
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
7168
7338
|
const displayImages = images.slice(0, maxImages);
|
|
7169
7339
|
if (displayImages.length === 0) {
|
|
7170
7340
|
return null;
|
|
7171
7341
|
}
|
|
7172
|
-
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)(
|
|
7173
7343
|
"img",
|
|
7174
7344
|
{
|
|
7175
7345
|
src: image,
|
|
@@ -7182,7 +7352,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
7182
7352
|
var ReviewImages_default = ReviewImages;
|
|
7183
7353
|
|
|
7184
7354
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
7185
|
-
var
|
|
7355
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7186
7356
|
var ReviewReply = ({
|
|
7187
7357
|
avatarSrc,
|
|
7188
7358
|
name,
|
|
@@ -7191,7 +7361,7 @@ var ReviewReply = ({
|
|
|
7191
7361
|
label,
|
|
7192
7362
|
rating
|
|
7193
7363
|
}) => {
|
|
7194
|
-
return /* @__PURE__ */ (0,
|
|
7364
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
7195
7365
|
Box_default,
|
|
7196
7366
|
{
|
|
7197
7367
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -7201,7 +7371,7 @@ var ReviewReply = ({
|
|
|
7201
7371
|
flexDirection: "column",
|
|
7202
7372
|
gap: "var(--spacing-3)",
|
|
7203
7373
|
children: [
|
|
7204
|
-
/* @__PURE__ */ (0,
|
|
7374
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
7205
7375
|
Box_default,
|
|
7206
7376
|
{
|
|
7207
7377
|
display: "flex",
|
|
@@ -7209,7 +7379,7 @@ var ReviewReply = ({
|
|
|
7209
7379
|
justifyContent: "space-between",
|
|
7210
7380
|
gap: "var(--spacing-2)",
|
|
7211
7381
|
children: [
|
|
7212
|
-
/* @__PURE__ */ (0,
|
|
7382
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
7213
7383
|
UserCard_default,
|
|
7214
7384
|
{
|
|
7215
7385
|
avatarSrc,
|
|
@@ -7218,11 +7388,11 @@ var ReviewReply = ({
|
|
|
7218
7388
|
rating
|
|
7219
7389
|
}
|
|
7220
7390
|
),
|
|
7221
|
-
/* @__PURE__ */ (0,
|
|
7391
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
7222
7392
|
]
|
|
7223
7393
|
}
|
|
7224
7394
|
),
|
|
7225
|
-
/* @__PURE__ */ (0,
|
|
7395
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Text_default, { children: content })
|
|
7226
7396
|
]
|
|
7227
7397
|
}
|
|
7228
7398
|
);
|
|
@@ -7230,7 +7400,7 @@ var ReviewReply = ({
|
|
|
7230
7400
|
var ReviewReply_default = ReviewReply;
|
|
7231
7401
|
|
|
7232
7402
|
// src/ReviewCard/ReviewCard.tsx
|
|
7233
|
-
var
|
|
7403
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
7234
7404
|
var ReviewCard = ({
|
|
7235
7405
|
avatarSrc,
|
|
7236
7406
|
name,
|
|
@@ -7242,7 +7412,7 @@ var ReviewCard = ({
|
|
|
7242
7412
|
replies = [],
|
|
7243
7413
|
className
|
|
7244
7414
|
}) => {
|
|
7245
|
-
return /* @__PURE__ */ (0,
|
|
7415
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
|
|
7246
7416
|
Box_default,
|
|
7247
7417
|
{
|
|
7248
7418
|
backgroundColor: "white",
|
|
@@ -7254,7 +7424,7 @@ var ReviewCard = ({
|
|
|
7254
7424
|
border: "1px solid var(--color-neutral-200)",
|
|
7255
7425
|
className,
|
|
7256
7426
|
children: [
|
|
7257
|
-
/* @__PURE__ */ (0,
|
|
7427
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7258
7428
|
UserCard_default,
|
|
7259
7429
|
{
|
|
7260
7430
|
avatarSrc,
|
|
@@ -7263,10 +7433,10 @@ var ReviewCard = ({
|
|
|
7263
7433
|
rating
|
|
7264
7434
|
}
|
|
7265
7435
|
),
|
|
7266
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
7267
|
-
/* @__PURE__ */ (0,
|
|
7268
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
7269
|
-
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)(
|
|
7270
7440
|
ReviewReply_default,
|
|
7271
7441
|
{
|
|
7272
7442
|
avatarSrc: reply.avatarSrc,
|
|
@@ -7285,9 +7455,9 @@ var ReviewCard = ({
|
|
|
7285
7455
|
var ReviewCard_default = ReviewCard;
|
|
7286
7456
|
|
|
7287
7457
|
// src/Reviews/components/ReviewItem.tsx
|
|
7288
|
-
var
|
|
7458
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7289
7459
|
var ReviewItem = ({ label, rating }) => {
|
|
7290
|
-
return /* @__PURE__ */ (0,
|
|
7460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
|
|
7291
7461
|
Box_default,
|
|
7292
7462
|
{
|
|
7293
7463
|
display: "flex",
|
|
@@ -7295,10 +7465,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
7295
7465
|
alignItems: "center",
|
|
7296
7466
|
width: "100%",
|
|
7297
7467
|
children: [
|
|
7298
|
-
/* @__PURE__ */ (0,
|
|
7299
|
-
/* @__PURE__ */ (0,
|
|
7300
|
-
/* @__PURE__ */ (0,
|
|
7301
|
-
/* @__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: [
|
|
7302
7472
|
rating,
|
|
7303
7473
|
"/5"
|
|
7304
7474
|
] })
|
|
@@ -7310,14 +7480,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
7310
7480
|
var ReviewItem_default = ReviewItem;
|
|
7311
7481
|
|
|
7312
7482
|
// src/Reviews/Reviews.tsx
|
|
7313
|
-
var
|
|
7483
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7314
7484
|
var Reviews = ({
|
|
7315
7485
|
averageRating,
|
|
7316
7486
|
totalReviews,
|
|
7317
7487
|
items,
|
|
7318
7488
|
className
|
|
7319
7489
|
}) => {
|
|
7320
|
-
return /* @__PURE__ */ (0,
|
|
7490
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7321
7491
|
Box_default,
|
|
7322
7492
|
{
|
|
7323
7493
|
width: "100%",
|
|
@@ -7330,7 +7500,7 @@ var Reviews = ({
|
|
|
7330
7500
|
p: "var(--spacing-4)",
|
|
7331
7501
|
className,
|
|
7332
7502
|
children: [
|
|
7333
|
-
/* @__PURE__ */ (0,
|
|
7503
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7334
7504
|
Box_default,
|
|
7335
7505
|
{
|
|
7336
7506
|
display: "flex",
|
|
@@ -7338,9 +7508,9 @@ var Reviews = ({
|
|
|
7338
7508
|
alignItems: "center",
|
|
7339
7509
|
gap: "var(--spacing-2)",
|
|
7340
7510
|
children: [
|
|
7341
|
-
/* @__PURE__ */ (0,
|
|
7342
|
-
/* @__PURE__ */ (0,
|
|
7343
|
-
/* @__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: [
|
|
7344
7514
|
"Overall Rating \u2022 ",
|
|
7345
7515
|
totalReviews,
|
|
7346
7516
|
" Review",
|
|
@@ -7349,14 +7519,14 @@ var Reviews = ({
|
|
|
7349
7519
|
]
|
|
7350
7520
|
}
|
|
7351
7521
|
),
|
|
7352
|
-
/* @__PURE__ */ (0,
|
|
7522
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7353
7523
|
Box_default,
|
|
7354
7524
|
{
|
|
7355
7525
|
display: "flex",
|
|
7356
7526
|
flexDirection: "column",
|
|
7357
7527
|
gap: "var(--spacing-2)",
|
|
7358
7528
|
width: "100%",
|
|
7359
|
-
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))
|
|
7360
7530
|
}
|
|
7361
7531
|
)
|
|
7362
7532
|
]
|
|
@@ -7366,7 +7536,7 @@ var Reviews = ({
|
|
|
7366
7536
|
var Reviews_default = Reviews;
|
|
7367
7537
|
|
|
7368
7538
|
// src/Reviews/ReviewsShowcase.tsx
|
|
7369
|
-
var
|
|
7539
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7370
7540
|
var ReviewsShowcase = () => {
|
|
7371
7541
|
const sampleData = {
|
|
7372
7542
|
averageRating: 4,
|
|
@@ -7388,7 +7558,7 @@ var ReviewsShowcase = () => {
|
|
|
7388
7558
|
{ label: "Game Abundance", rating: 5 }
|
|
7389
7559
|
]
|
|
7390
7560
|
};
|
|
7391
|
-
return /* @__PURE__ */ (0,
|
|
7561
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
7392
7562
|
Box_default,
|
|
7393
7563
|
{
|
|
7394
7564
|
display: "flex",
|
|
@@ -7396,24 +7566,24 @@ var ReviewsShowcase = () => {
|
|
|
7396
7566
|
gap: "var(--spacing-8)",
|
|
7397
7567
|
p: "var(--spacing-6)",
|
|
7398
7568
|
children: [
|
|
7399
|
-
/* @__PURE__ */ (0,
|
|
7400
|
-
/* @__PURE__ */ (0,
|
|
7401
|
-
/* @__PURE__ */ (0,
|
|
7402
|
-
/* @__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 }) })
|
|
7403
7573
|
] }),
|
|
7404
|
-
/* @__PURE__ */ (0,
|
|
7405
|
-
/* @__PURE__ */ (0,
|
|
7406
|
-
/* @__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 }) })
|
|
7407
7577
|
] }),
|
|
7408
|
-
/* @__PURE__ */ (0,
|
|
7409
|
-
/* @__PURE__ */ (0,
|
|
7410
|
-
/* @__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)(
|
|
7411
7581
|
Box_default,
|
|
7412
7582
|
{
|
|
7413
7583
|
maxWidth: "320px",
|
|
7414
7584
|
border: "1px solid var(--color-neutral-200)",
|
|
7415
7585
|
p: "var(--spacing-4)",
|
|
7416
|
-
children: /* @__PURE__ */ (0,
|
|
7586
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Reviews_default, { ...sampleData })
|
|
7417
7587
|
}
|
|
7418
7588
|
)
|
|
7419
7589
|
] })
|