@landtrustinc/design-system 1.2.4 → 1.2.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +24 -2
- package/dist/index.js +501 -362
- package/dist/index.js.map +1 -1
- package/dist/styles.ts +3 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -88,6 +88,7 @@ __export(styles_exports, {
|
|
|
88
88
|
ThemeTokens: () => ThemeTokens,
|
|
89
89
|
borderRadius: () => borderRadius,
|
|
90
90
|
boxShadow: () => boxShadow,
|
|
91
|
+
breakpoints: () => breakpoints,
|
|
91
92
|
colors: () => colors,
|
|
92
93
|
fontSizes: () => fontSizes,
|
|
93
94
|
fontWeights: () => fontWeights,
|
|
@@ -115,6 +116,7 @@ var media = {
|
|
|
115
116
|
lg: `@media (min-width: ${screens.lg})`,
|
|
116
117
|
xl: `@media (min-width: ${screens.xl})`
|
|
117
118
|
};
|
|
119
|
+
var breakpoints = [screens.sm, screens.md, screens.lg, screens.xl];
|
|
118
120
|
var colors = {
|
|
119
121
|
gray: {
|
|
120
122
|
100: "#f7fafc",
|
|
@@ -438,6 +440,7 @@ var zIndex = {
|
|
|
438
440
|
var ThemeTokens = {
|
|
439
441
|
screens,
|
|
440
442
|
media,
|
|
443
|
+
breakpoints,
|
|
441
444
|
colors,
|
|
442
445
|
fonts,
|
|
443
446
|
fontWeights,
|
|
@@ -4607,7 +4610,7 @@ var Avatar = ({
|
|
|
4607
4610
|
var Avatar_default = Avatar;
|
|
4608
4611
|
|
|
4609
4612
|
// src/ChatWidget/ChatWidget.tsx
|
|
4610
|
-
var
|
|
4613
|
+
var import_react30 = __toESM(require("react"));
|
|
4611
4614
|
|
|
4612
4615
|
// src/Divider/Divider.tsx
|
|
4613
4616
|
var import_styled4 = __toESM(require("@emotion/styled"));
|
|
@@ -4926,14 +4929,12 @@ 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)) {
|
|
4933
4936
|
position: fixed;
|
|
4934
4937
|
inset: 0;
|
|
4935
|
-
right: 0;
|
|
4936
|
-
bottom: 0;
|
|
4937
4938
|
display: flex;
|
|
4938
4939
|
align-items: stretch;
|
|
4939
4940
|
justify-content: stretch;
|
|
@@ -4951,13 +4952,29 @@ var panelCard = (width2) => import_react25.css`
|
|
|
4951
4952
|
|
|
4952
4953
|
/* Width passed from props (desktop/tablet) */
|
|
4953
4954
|
width: ${typeof width2 === "number" ? `${width2}px` : width2};
|
|
4955
|
+
max-height: 85vh;
|
|
4956
|
+
|
|
4957
|
+
/* Scale animation on open */
|
|
4958
|
+
transform-origin: bottom right;
|
|
4959
|
+
animation: widgetScaleIn 0.25s cubic-bezier(0.34, 1.2, 0.64, 1);
|
|
4960
|
+
|
|
4961
|
+
@keyframes widgetScaleIn {
|
|
4962
|
+
from {
|
|
4963
|
+
transform: scale(0.7);
|
|
4964
|
+
}
|
|
4965
|
+
to {
|
|
4966
|
+
transform: scale(1);
|
|
4967
|
+
}
|
|
4968
|
+
}
|
|
4954
4969
|
|
|
4955
4970
|
@media (max-width: calc(${screens.sm} - 1px)) {
|
|
4956
4971
|
width: 100vw;
|
|
4957
4972
|
height: 100vh;
|
|
4973
|
+
max-height: 100vh;
|
|
4958
4974
|
border-radius: 0;
|
|
4959
4975
|
padding: var(--spacing-4);
|
|
4960
4976
|
overflow: auto;
|
|
4977
|
+
animation: none;
|
|
4961
4978
|
}
|
|
4962
4979
|
`;
|
|
4963
4980
|
var widgetTrigger = import_react25.css`
|
|
@@ -4991,29 +5008,19 @@ var WidgetTrigger = () => {
|
|
|
4991
5008
|
) });
|
|
4992
5009
|
};
|
|
4993
5010
|
var WidgetPanel = ({ className, style, children }) => {
|
|
4994
|
-
var _a;
|
|
4995
5011
|
const { expanded, panelWidth } = useWidgetContext();
|
|
4996
|
-
|
|
4997
|
-
|
|
5012
|
+
if (!expanded)
|
|
5013
|
+
return null;
|
|
5014
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)("div", { css: panelContainer, className, style, children: /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
5015
|
+
Box_default,
|
|
4998
5016
|
{
|
|
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
|
-
)
|
|
5017
|
+
css: panelCard(panelWidth),
|
|
5018
|
+
role: "dialog",
|
|
5019
|
+
"aria-modal": true,
|
|
5020
|
+
"aria-hidden": false,
|
|
5021
|
+
children
|
|
5015
5022
|
}
|
|
5016
|
-
);
|
|
5023
|
+
) });
|
|
5017
5024
|
};
|
|
5018
5025
|
var WidgetRoot = ({
|
|
5019
5026
|
ariaLabel,
|
|
@@ -5025,7 +5032,8 @@ var WidgetRoot = ({
|
|
|
5025
5032
|
panelWidth,
|
|
5026
5033
|
className,
|
|
5027
5034
|
children,
|
|
5028
|
-
containerProps
|
|
5035
|
+
containerProps,
|
|
5036
|
+
closeOnClickOutside = true
|
|
5029
5037
|
}) => {
|
|
5030
5038
|
const [internalExpanded, setInternalExpanded] = (0, import_react26.useState)(defaultExpanded);
|
|
5031
5039
|
const isControlled = typeof expanded === "boolean";
|
|
@@ -5051,7 +5059,7 @@ var WidgetRoot = ({
|
|
|
5051
5059
|
[isExpanded, setExpanded]
|
|
5052
5060
|
);
|
|
5053
5061
|
(0, import_react26.useEffect)(() => {
|
|
5054
|
-
if (!isExpanded)
|
|
5062
|
+
if (!isExpanded || !closeOnClickOutside)
|
|
5055
5063
|
return;
|
|
5056
5064
|
const onDocClick = (e) => {
|
|
5057
5065
|
const target = e.target;
|
|
@@ -5063,7 +5071,7 @@ var WidgetRoot = ({
|
|
|
5063
5071
|
};
|
|
5064
5072
|
document.addEventListener("mousedown", onDocClick);
|
|
5065
5073
|
return () => document.removeEventListener("mousedown", onDocClick);
|
|
5066
|
-
}, [isExpanded, setExpanded]);
|
|
5074
|
+
}, [isExpanded, setExpanded, closeOnClickOutside]);
|
|
5067
5075
|
(0, import_react26.useEffect)(() => {
|
|
5068
5076
|
if (!isExpanded)
|
|
5069
5077
|
return;
|
|
@@ -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,21 @@ 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,
|
|
5340
|
+
closeOnClickOutside = true
|
|
5203
5341
|
}) => {
|
|
5204
|
-
const [value, setValue] = (0,
|
|
5205
|
-
const scrollRef = (0,
|
|
5342
|
+
const [value, setValue] = (0, import_react30.useState)("");
|
|
5343
|
+
const scrollRef = (0, import_react30.useRef)(null);
|
|
5206
5344
|
const isControlled = typeof expanded === "boolean";
|
|
5207
|
-
const [internalExpanded, setInternalExpanded] = (0,
|
|
5345
|
+
const [internalExpanded, setInternalExpanded] = (0, import_react30.useState)(defaultExpanded);
|
|
5208
5346
|
const isExpanded = isControlled ? expanded : internalExpanded;
|
|
5209
|
-
const setExpanded = (0,
|
|
5347
|
+
const setExpanded = (0, import_react30.useCallback)(
|
|
5210
5348
|
(next) => {
|
|
5211
5349
|
if (!isControlled)
|
|
5212
5350
|
setInternalExpanded(next);
|
|
@@ -5214,24 +5352,24 @@ var ChatWidget = ({
|
|
|
5214
5352
|
},
|
|
5215
5353
|
[isControlled, onExpandedChange]
|
|
5216
5354
|
);
|
|
5217
|
-
(0,
|
|
5355
|
+
(0, import_react30.useEffect)(() => {
|
|
5218
5356
|
const el = scrollRef.current;
|
|
5219
5357
|
if (!el)
|
|
5220
5358
|
return;
|
|
5221
5359
|
el.scrollTo({ top: el.scrollHeight, behavior: "smooth" });
|
|
5222
5360
|
}, [messages, isThinking]);
|
|
5223
5361
|
const messagesToRender = messages.length === 0 ? emptyState : messages;
|
|
5224
|
-
const renderedMessages = (0,
|
|
5362
|
+
const renderedMessages = (0, import_react30.useMemo)(
|
|
5225
5363
|
() => messagesToRender.map((element, index) => {
|
|
5226
5364
|
var _a;
|
|
5227
5365
|
const key = (_a = element.key) != null ? _a : index;
|
|
5228
5366
|
if (element.type === AIResponse_default) {
|
|
5229
|
-
return /* @__PURE__ */ (0,
|
|
5367
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: receivedWrapperStyles, children: element }, key);
|
|
5230
5368
|
}
|
|
5231
5369
|
if (element.type === MessageBubble_default) {
|
|
5232
|
-
return /* @__PURE__ */ (0,
|
|
5370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: sentWrapperStyles, children: element }, key);
|
|
5233
5371
|
}
|
|
5234
|
-
return /* @__PURE__ */ (0,
|
|
5372
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(import_react30.default.Fragment, { children: element }, key);
|
|
5235
5373
|
}),
|
|
5236
5374
|
[messagesToRender]
|
|
5237
5375
|
);
|
|
@@ -5242,7 +5380,7 @@ var ChatWidget = ({
|
|
|
5242
5380
|
onSubmit(trimmed);
|
|
5243
5381
|
setValue("");
|
|
5244
5382
|
};
|
|
5245
|
-
return /* @__PURE__ */ (0,
|
|
5383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
5246
5384
|
Widget_default,
|
|
5247
5385
|
{
|
|
5248
5386
|
ariaLabel,
|
|
@@ -5252,11 +5390,12 @@ var ChatWidget = ({
|
|
|
5252
5390
|
panelWidth,
|
|
5253
5391
|
className,
|
|
5254
5392
|
containerProps,
|
|
5393
|
+
closeOnClickOutside,
|
|
5255
5394
|
children: [
|
|
5256
|
-
/* @__PURE__ */ (0,
|
|
5257
|
-
/* @__PURE__ */ (0,
|
|
5258
|
-
/* @__PURE__ */ (0,
|
|
5259
|
-
/* @__PURE__ */ (0,
|
|
5395
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { mt: 2, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(AskBuckButton_default, { badgeCount: notificationCount }) }),
|
|
5396
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Widget_default.Panel, { children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { css: containerStyles, children: [
|
|
5397
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { position: "sticky", top: 0, zIndex: 1, children: [
|
|
5398
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
5260
5399
|
Box_default,
|
|
5261
5400
|
{
|
|
5262
5401
|
display: "flex",
|
|
@@ -5264,9 +5403,9 @@ var ChatWidget = ({
|
|
|
5264
5403
|
justifyContent: "space-between",
|
|
5265
5404
|
gap: "var(--spacing-4)",
|
|
5266
5405
|
children: [
|
|
5267
|
-
/* @__PURE__ */ (0,
|
|
5268
|
-
/* @__PURE__ */ (0,
|
|
5269
|
-
/* @__PURE__ */ (0,
|
|
5406
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-4)", children: [
|
|
5407
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)("span", { css: badge, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Icon_default, { variant: "ConversationalSearchAi", size: "large" }) }),
|
|
5408
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5270
5409
|
Heading_default,
|
|
5271
5410
|
{
|
|
5272
5411
|
size: "2xs",
|
|
@@ -5276,25 +5415,25 @@ var ChatWidget = ({
|
|
|
5276
5415
|
}
|
|
5277
5416
|
)
|
|
5278
5417
|
] }),
|
|
5279
|
-
/* @__PURE__ */ (0,
|
|
5418
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5280
5419
|
Button_default,
|
|
5281
5420
|
{
|
|
5282
5421
|
variant: "text",
|
|
5283
5422
|
size: "xs",
|
|
5284
5423
|
"aria-label": "Close widget",
|
|
5285
5424
|
onClick: () => setExpanded(false),
|
|
5286
|
-
children: /* @__PURE__ */ (0,
|
|
5287
|
-
/* @__PURE__ */ (0,
|
|
5288
|
-
/* @__PURE__ */ (0,
|
|
5425
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)("span", { css: closeButtonContent, children: [
|
|
5426
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Icon_default, { variant: "Xmark", size: "medium" }),
|
|
5427
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)("span", { children: "Close" })
|
|
5289
5428
|
] })
|
|
5290
5429
|
}
|
|
5291
5430
|
)
|
|
5292
5431
|
]
|
|
5293
5432
|
}
|
|
5294
5433
|
),
|
|
5295
|
-
/* @__PURE__ */ (0,
|
|
5434
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Divider_default, { mt: 4, mb: 0 })
|
|
5296
5435
|
] }),
|
|
5297
|
-
/* @__PURE__ */ (0,
|
|
5436
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
5298
5437
|
Box_default,
|
|
5299
5438
|
{
|
|
5300
5439
|
ref: scrollRef,
|
|
@@ -5307,27 +5446,27 @@ var ChatWidget = ({
|
|
|
5307
5446
|
flexDirection: "column",
|
|
5308
5447
|
gap: "var(--spacing-2)",
|
|
5309
5448
|
children: [
|
|
5310
|
-
/* @__PURE__ */ (0,
|
|
5311
|
-
isThinking && /* @__PURE__ */ (0,
|
|
5312
|
-
/* @__PURE__ */ (0,
|
|
5313
|
-
/* @__PURE__ */ (0,
|
|
5449
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: renderedMessages }),
|
|
5450
|
+
isThinking && /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)("div", { css: thinkingRowStyles, children: [
|
|
5451
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Spinner_default2, { size: "medium" }),
|
|
5452
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)("span", { css: thinkingTextStyles, children: thinkingText })
|
|
5314
5453
|
] }) }),
|
|
5315
|
-
suggestedPrompts && suggestedPrompts.length > 0 && /* @__PURE__ */ (0,
|
|
5454
|
+
suggestedPrompts && suggestedPrompts.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { css: receivedWrapperStyles, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsxs)(
|
|
5316
5455
|
Box_default,
|
|
5317
5456
|
{
|
|
5318
5457
|
display: "flex",
|
|
5319
5458
|
flexDirection: "column",
|
|
5320
5459
|
gap: "var(--spacing-4)",
|
|
5321
5460
|
children: [
|
|
5322
|
-
/* @__PURE__ */ (0,
|
|
5323
|
-
/* @__PURE__ */ (0,
|
|
5461
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Text_default, { size: "md", fontWeight: "bold", color: "var(--text-primary)", children: suggestedPromptsTitle }),
|
|
5462
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5324
5463
|
Box_default,
|
|
5325
5464
|
{
|
|
5326
5465
|
display: "flex",
|
|
5327
5466
|
flexWrap: "wrap",
|
|
5328
5467
|
gap: "var(--spacing-4)",
|
|
5329
5468
|
alignItems: "flex-start",
|
|
5330
|
-
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0,
|
|
5469
|
+
children: suggestedPrompts.map((prompt, index) => /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5331
5470
|
TagChip_default,
|
|
5332
5471
|
{
|
|
5333
5472
|
variant: "success",
|
|
@@ -5348,7 +5487,7 @@ var ChatWidget = ({
|
|
|
5348
5487
|
]
|
|
5349
5488
|
}
|
|
5350
5489
|
),
|
|
5351
|
-
/* @__PURE__ */ (0,
|
|
5490
|
+
/* @__PURE__ */ (0, import_jsx_runtime214.jsx)(Box_default, { position: "sticky", bottom: 0, zIndex: 1, p: 0, children: /* @__PURE__ */ (0, import_jsx_runtime214.jsx)(
|
|
5352
5491
|
TextArea_default,
|
|
5353
5492
|
{
|
|
5354
5493
|
rows: 3,
|
|
@@ -5372,7 +5511,7 @@ var ChatWidget_default = ChatWidget;
|
|
|
5372
5511
|
|
|
5373
5512
|
// src/FeatureList/components/FeatureListItem.tsx
|
|
5374
5513
|
var import_react_loading_skeleton = __toESM(require("react-loading-skeleton"));
|
|
5375
|
-
var
|
|
5514
|
+
var import_jsx_runtime215 = require("@emotion/react/jsx-runtime");
|
|
5376
5515
|
var FeatureListItem = ({
|
|
5377
5516
|
iconVariant,
|
|
5378
5517
|
label,
|
|
@@ -5385,8 +5524,8 @@ var FeatureListItem = ({
|
|
|
5385
5524
|
}) => {
|
|
5386
5525
|
const iconDimensions = IconSizeMap[iconSize];
|
|
5387
5526
|
if (isLoading) {
|
|
5388
|
-
return /* @__PURE__ */ (0,
|
|
5389
|
-
/* @__PURE__ */ (0,
|
|
5527
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
5528
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
5390
5529
|
Box_default,
|
|
5391
5530
|
{
|
|
5392
5531
|
display: "flex",
|
|
@@ -5395,7 +5534,7 @@ var FeatureListItem = ({
|
|
|
5395
5534
|
className,
|
|
5396
5535
|
...rest,
|
|
5397
5536
|
children: [
|
|
5398
|
-
/* @__PURE__ */ (0,
|
|
5537
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(
|
|
5399
5538
|
import_react_loading_skeleton.default,
|
|
5400
5539
|
{
|
|
5401
5540
|
circle: true,
|
|
@@ -5404,18 +5543,18 @@ var FeatureListItem = ({
|
|
|
5404
5543
|
borderRadius: 4
|
|
5405
5544
|
}
|
|
5406
5545
|
),
|
|
5407
|
-
/* @__PURE__ */ (0,
|
|
5546
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(import_react_loading_skeleton.default, { width: 120, height: 16, borderRadius: 4 })
|
|
5408
5547
|
]
|
|
5409
5548
|
}
|
|
5410
5549
|
),
|
|
5411
|
-
subtitle && /* @__PURE__ */ (0,
|
|
5412
|
-
/* @__PURE__ */ (0,
|
|
5413
|
-
/* @__PURE__ */ (0,
|
|
5550
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
5551
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
5552
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(import_react_loading_skeleton.default, { width: 150, height: 14, borderRadius: 4 })
|
|
5414
5553
|
] })
|
|
5415
5554
|
] });
|
|
5416
5555
|
}
|
|
5417
|
-
return /* @__PURE__ */ (0,
|
|
5418
|
-
/* @__PURE__ */ (0,
|
|
5556
|
+
return /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Box_default, { display: "flex", flexDirection: "column", color: "var(--text-primary)", children: [
|
|
5557
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(
|
|
5419
5558
|
Box_default,
|
|
5420
5559
|
{
|
|
5421
5560
|
display: "flex",
|
|
@@ -5424,23 +5563,23 @@ var FeatureListItem = ({
|
|
|
5424
5563
|
className,
|
|
5425
5564
|
...rest,
|
|
5426
5565
|
children: [
|
|
5427
|
-
/* @__PURE__ */ (0,
|
|
5428
|
-
/* @__PURE__ */ (0,
|
|
5566
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Icon_default, { variant: iconVariant, size: iconSize, fill: iconColor }),
|
|
5567
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Text_default, { fontWeight: "semibold", children: label })
|
|
5429
5568
|
]
|
|
5430
5569
|
}
|
|
5431
5570
|
),
|
|
5432
|
-
subtitle && /* @__PURE__ */ (0,
|
|
5433
|
-
/* @__PURE__ */ (0,
|
|
5434
|
-
/* @__PURE__ */ (0,
|
|
5571
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime215.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-3)", children: [
|
|
5572
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Box_default, { width: "var(--spacing-6)", children: "\xA0" }),
|
|
5573
|
+
/* @__PURE__ */ (0, import_jsx_runtime215.jsx)(Text_default, { size: "sm", children: subtitle })
|
|
5435
5574
|
] })
|
|
5436
5575
|
] });
|
|
5437
5576
|
};
|
|
5438
5577
|
var FeatureListItem_default = FeatureListItem;
|
|
5439
5578
|
|
|
5440
5579
|
// src/FeatureList/FeatureList.tsx
|
|
5441
|
-
var
|
|
5580
|
+
var import_jsx_runtime216 = require("@emotion/react/jsx-runtime");
|
|
5442
5581
|
var FeatureList = ({ heading, items, className }) => {
|
|
5443
|
-
return /* @__PURE__ */ (0,
|
|
5582
|
+
return /* @__PURE__ */ (0, import_jsx_runtime216.jsxs)(
|
|
5444
5583
|
Box_default,
|
|
5445
5584
|
{
|
|
5446
5585
|
display: "flex",
|
|
@@ -5448,8 +5587,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
5448
5587
|
gap: "var(--spacing-2)",
|
|
5449
5588
|
className,
|
|
5450
5589
|
children: [
|
|
5451
|
-
heading && /* @__PURE__ */ (0,
|
|
5452
|
-
/* @__PURE__ */ (0,
|
|
5590
|
+
heading && /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Text_default, { fontWeight: "bold", children: heading }),
|
|
5591
|
+
/* @__PURE__ */ (0, import_jsx_runtime216.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-2)", children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime216.jsx)(FeatureListItem_default, { ...item }, `${item.iconVariant}-${index}`)) })
|
|
5453
5592
|
]
|
|
5454
5593
|
}
|
|
5455
5594
|
);
|
|
@@ -5457,8 +5596,8 @@ var FeatureList = ({ heading, items, className }) => {
|
|
|
5457
5596
|
var FeatureList_default = FeatureList;
|
|
5458
5597
|
|
|
5459
5598
|
// src/FieldNoteCard/FieldNoteCard.styles.ts
|
|
5460
|
-
var
|
|
5461
|
-
var cardContainerStyles =
|
|
5599
|
+
var import_react31 = require("@emotion/react");
|
|
5600
|
+
var cardContainerStyles = import_react31.css`
|
|
5462
5601
|
position: relative;
|
|
5463
5602
|
height: 335px;
|
|
5464
5603
|
|
|
@@ -5466,12 +5605,12 @@ var cardContainerStyles = import_react29.css`
|
|
|
5466
5605
|
height: 480px;
|
|
5467
5606
|
}
|
|
5468
5607
|
`;
|
|
5469
|
-
var cardContentStyles =
|
|
5608
|
+
var cardContentStyles = import_react31.css`
|
|
5470
5609
|
position: relative;
|
|
5471
5610
|
border-radius: var(--spacing-4);
|
|
5472
5611
|
overflow: hidden;
|
|
5473
5612
|
`;
|
|
5474
|
-
var getBackgroundWithGradient = (imageUrl) =>
|
|
5613
|
+
var getBackgroundWithGradient = (imageUrl) => import_react31.css`
|
|
5475
5614
|
background-image: linear-gradient(
|
|
5476
5615
|
180deg,
|
|
5477
5616
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -5485,7 +5624,7 @@ var getBackgroundWithGradient = (imageUrl) => import_react29.css`
|
|
|
5485
5624
|
`;
|
|
5486
5625
|
|
|
5487
5626
|
// src/FieldNoteCard/FieldNoteCard.tsx
|
|
5488
|
-
var
|
|
5627
|
+
var import_jsx_runtime217 = require("@emotion/react/jsx-runtime");
|
|
5489
5628
|
var FieldNoteCard = ({
|
|
5490
5629
|
backgroundImage,
|
|
5491
5630
|
title,
|
|
@@ -5494,14 +5633,14 @@ var FieldNoteCard = ({
|
|
|
5494
5633
|
className,
|
|
5495
5634
|
...rest
|
|
5496
5635
|
}) => {
|
|
5497
|
-
return /* @__PURE__ */ (0,
|
|
5636
|
+
return /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5498
5637
|
Box_default,
|
|
5499
5638
|
{
|
|
5500
5639
|
display: "flex",
|
|
5501
5640
|
css: cardContainerStyles,
|
|
5502
5641
|
className,
|
|
5503
5642
|
...rest,
|
|
5504
|
-
children: /* @__PURE__ */ (0,
|
|
5643
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsx)(
|
|
5505
5644
|
Box_default,
|
|
5506
5645
|
{
|
|
5507
5646
|
display: "flex",
|
|
@@ -5509,9 +5648,9 @@ var FieldNoteCard = ({
|
|
|
5509
5648
|
justifyContent: "flex-end",
|
|
5510
5649
|
p: 6,
|
|
5511
5650
|
css: [cardContentStyles, getBackgroundWithGradient(backgroundImage)],
|
|
5512
|
-
children: /* @__PURE__ */ (0,
|
|
5513
|
-
/* @__PURE__ */ (0,
|
|
5514
|
-
/* @__PURE__ */ (0,
|
|
5651
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime217.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
5652
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
5653
|
+
/* @__PURE__ */ (0, import_jsx_runtime217.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
5515
5654
|
] })
|
|
5516
5655
|
}
|
|
5517
5656
|
)
|
|
@@ -5521,14 +5660,14 @@ var FieldNoteCard = ({
|
|
|
5521
5660
|
var FieldNoteCard_default = FieldNoteCard;
|
|
5522
5661
|
|
|
5523
5662
|
// src/Form/FormField.tsx
|
|
5524
|
-
var
|
|
5525
|
-
var
|
|
5526
|
-
var fieldContainerStyles =
|
|
5663
|
+
var import_react32 = require("@emotion/react");
|
|
5664
|
+
var import_jsx_runtime218 = require("@emotion/react/jsx-runtime");
|
|
5665
|
+
var fieldContainerStyles = import_react32.css`
|
|
5527
5666
|
display: flex;
|
|
5528
5667
|
flex-direction: column;
|
|
5529
5668
|
gap: ${space["2"]};
|
|
5530
5669
|
`;
|
|
5531
|
-
var labelStyles2 =
|
|
5670
|
+
var labelStyles2 = import_react32.css`
|
|
5532
5671
|
font-family: ${fonts.base};
|
|
5533
5672
|
font-size: ${fontSizes.sm};
|
|
5534
5673
|
font-weight: ${fontWeights.medium};
|
|
@@ -5536,17 +5675,17 @@ var labelStyles2 = import_react30.css`
|
|
|
5536
5675
|
color: ${colors.gray["900"]};
|
|
5537
5676
|
margin-bottom: ${space["1"]};
|
|
5538
5677
|
`;
|
|
5539
|
-
var requiredIndicatorStyles =
|
|
5678
|
+
var requiredIndicatorStyles = import_react32.css`
|
|
5540
5679
|
color: ${colors.red["500"]};
|
|
5541
5680
|
margin-left: ${space["1"]};
|
|
5542
5681
|
`;
|
|
5543
|
-
var helpTextStyles =
|
|
5682
|
+
var helpTextStyles = import_react32.css`
|
|
5544
5683
|
font-family: ${fonts.base};
|
|
5545
5684
|
font-size: ${fontSizes.sm};
|
|
5546
5685
|
line-height: ${lineHeights.tight};
|
|
5547
5686
|
color: ${colors.gray["600"]};
|
|
5548
5687
|
`;
|
|
5549
|
-
var errorTextStyles =
|
|
5688
|
+
var errorTextStyles = import_react32.css`
|
|
5550
5689
|
font-family: ${fonts.base};
|
|
5551
5690
|
font-size: ${fontSizes.sm};
|
|
5552
5691
|
line-height: ${lineHeights.tight};
|
|
@@ -5555,7 +5694,7 @@ var errorTextStyles = import_react30.css`
|
|
|
5555
5694
|
align-items: center;
|
|
5556
5695
|
gap: ${space["1"]};
|
|
5557
5696
|
`;
|
|
5558
|
-
var successTextStyles =
|
|
5697
|
+
var successTextStyles = import_react32.css`
|
|
5559
5698
|
font-family: ${fonts.base};
|
|
5560
5699
|
font-size: ${fontSizes.sm};
|
|
5561
5700
|
line-height: ${lineHeights.tight};
|
|
@@ -5564,7 +5703,7 @@ var successTextStyles = import_react30.css`
|
|
|
5564
5703
|
align-items: center;
|
|
5565
5704
|
gap: ${space["1"]};
|
|
5566
5705
|
`;
|
|
5567
|
-
var visuallyHiddenStyles =
|
|
5706
|
+
var visuallyHiddenStyles = import_react32.css`
|
|
5568
5707
|
position: absolute;
|
|
5569
5708
|
width: 1px;
|
|
5570
5709
|
height: 1px;
|
|
@@ -5589,21 +5728,21 @@ var FormField = ({
|
|
|
5589
5728
|
const hasError = !!error;
|
|
5590
5729
|
const hasSuccess = !!success && !hasError;
|
|
5591
5730
|
const hasHelpText = !!helpText && !hasError && !hasSuccess;
|
|
5592
|
-
return /* @__PURE__ */ (0,
|
|
5593
|
-
label && /* @__PURE__ */ (0,
|
|
5731
|
+
return /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { css: fieldContainerStyles, className, children: [
|
|
5732
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)(
|
|
5594
5733
|
"label",
|
|
5595
5734
|
{
|
|
5596
5735
|
htmlFor,
|
|
5597
5736
|
css: [labelStyles2, hideLabel && visuallyHiddenStyles],
|
|
5598
5737
|
children: [
|
|
5599
5738
|
label,
|
|
5600
|
-
required && /* @__PURE__ */ (0,
|
|
5739
|
+
required && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("span", { css: requiredIndicatorStyles, "aria-label": "required", children: "*" })
|
|
5601
5740
|
]
|
|
5602
5741
|
}
|
|
5603
5742
|
),
|
|
5604
5743
|
children,
|
|
5605
|
-
hasError && /* @__PURE__ */ (0,
|
|
5606
|
-
/* @__PURE__ */ (0,
|
|
5744
|
+
hasError && /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { css: errorTextStyles, role: "alert", children: [
|
|
5745
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5607
5746
|
"path",
|
|
5608
5747
|
{
|
|
5609
5748
|
fillRule: "evenodd",
|
|
@@ -5613,8 +5752,8 @@ var FormField = ({
|
|
|
5613
5752
|
) }),
|
|
5614
5753
|
error
|
|
5615
5754
|
] }),
|
|
5616
|
-
hasSuccess && /* @__PURE__ */ (0,
|
|
5617
|
-
/* @__PURE__ */ (0,
|
|
5755
|
+
hasSuccess && /* @__PURE__ */ (0, import_jsx_runtime218.jsxs)("div", { css: successTextStyles, children: [
|
|
5756
|
+
/* @__PURE__ */ (0, import_jsx_runtime218.jsx)("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime218.jsx)(
|
|
5618
5757
|
"path",
|
|
5619
5758
|
{
|
|
5620
5759
|
fillRule: "evenodd",
|
|
@@ -5624,15 +5763,15 @@ var FormField = ({
|
|
|
5624
5763
|
) }),
|
|
5625
5764
|
success
|
|
5626
5765
|
] }),
|
|
5627
|
-
hasHelpText && /* @__PURE__ */ (0,
|
|
5766
|
+
hasHelpText && /* @__PURE__ */ (0, import_jsx_runtime218.jsx)("div", { css: helpTextStyles, children: helpText })
|
|
5628
5767
|
] });
|
|
5629
5768
|
};
|
|
5630
5769
|
|
|
5631
5770
|
// src/Form/Input.tsx
|
|
5632
|
-
var
|
|
5633
|
-
var
|
|
5634
|
-
var
|
|
5635
|
-
var inputStyles =
|
|
5771
|
+
var import_react33 = require("@emotion/react");
|
|
5772
|
+
var import_react34 = require("react");
|
|
5773
|
+
var import_jsx_runtime219 = require("@emotion/react/jsx-runtime");
|
|
5774
|
+
var inputStyles = import_react33.css`
|
|
5636
5775
|
position: relative;
|
|
5637
5776
|
width: 100%;
|
|
5638
5777
|
font-family: ${fonts.base};
|
|
@@ -5669,19 +5808,19 @@ var inputStyles = import_react31.css`
|
|
|
5669
5808
|
}
|
|
5670
5809
|
`;
|
|
5671
5810
|
var sizeStyles = {
|
|
5672
|
-
sm:
|
|
5811
|
+
sm: import_react33.css`
|
|
5673
5812
|
padding: ${space["2"]} ${space["3"]};
|
|
5674
5813
|
font-size: ${fontSizes.sm};
|
|
5675
5814
|
line-height: ${lineHeights.tight};
|
|
5676
5815
|
height: ${space["8"]};
|
|
5677
5816
|
`,
|
|
5678
|
-
md:
|
|
5817
|
+
md: import_react33.css`
|
|
5679
5818
|
padding: ${space["3"]} ${space["4"]};
|
|
5680
5819
|
font-size: ${fontSizes.base};
|
|
5681
5820
|
line-height: ${lineHeights.normal};
|
|
5682
5821
|
height: ${space["10"]};
|
|
5683
5822
|
`,
|
|
5684
|
-
lg:
|
|
5823
|
+
lg: import_react33.css`
|
|
5685
5824
|
padding: ${space["4"]} ${space["5"]};
|
|
5686
5825
|
font-size: ${fontSizes.lg};
|
|
5687
5826
|
line-height: ${lineHeights.normal};
|
|
@@ -5689,8 +5828,8 @@ var sizeStyles = {
|
|
|
5689
5828
|
`
|
|
5690
5829
|
};
|
|
5691
5830
|
var variantStyles = {
|
|
5692
|
-
default:
|
|
5693
|
-
error:
|
|
5831
|
+
default: import_react33.css``,
|
|
5832
|
+
error: import_react33.css`
|
|
5694
5833
|
border-color: ${colors.red["500"]};
|
|
5695
5834
|
|
|
5696
5835
|
&:focus {
|
|
@@ -5698,7 +5837,7 @@ var variantStyles = {
|
|
|
5698
5837
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5699
5838
|
}
|
|
5700
5839
|
`,
|
|
5701
|
-
success:
|
|
5840
|
+
success: import_react33.css`
|
|
5702
5841
|
border-color: ${colors.accent.green};
|
|
5703
5842
|
|
|
5704
5843
|
&:focus {
|
|
@@ -5707,7 +5846,7 @@ var variantStyles = {
|
|
|
5707
5846
|
}
|
|
5708
5847
|
`
|
|
5709
5848
|
};
|
|
5710
|
-
var inputWithIconStyles =
|
|
5849
|
+
var inputWithIconStyles = import_react33.css`
|
|
5711
5850
|
padding-left: ${space["10"]};
|
|
5712
5851
|
|
|
5713
5852
|
&.has-end-icon {
|
|
@@ -5718,7 +5857,7 @@ var inputWithIconStyles = import_react31.css`
|
|
|
5718
5857
|
padding-left: ${space["10"]};
|
|
5719
5858
|
}
|
|
5720
5859
|
`;
|
|
5721
|
-
var iconContainerStyles =
|
|
5860
|
+
var iconContainerStyles = import_react33.css`
|
|
5722
5861
|
position: absolute;
|
|
5723
5862
|
top: 50%;
|
|
5724
5863
|
transform: translateY(-50%);
|
|
@@ -5729,20 +5868,20 @@ var iconContainerStyles = import_react31.css`
|
|
|
5729
5868
|
pointer-events: none;
|
|
5730
5869
|
z-index: 1;
|
|
5731
5870
|
`;
|
|
5732
|
-
var startIconStyles =
|
|
5871
|
+
var startIconStyles = import_react33.css`
|
|
5733
5872
|
${iconContainerStyles}
|
|
5734
5873
|
left: ${space["3"]};
|
|
5735
5874
|
`;
|
|
5736
|
-
var endIconStyles =
|
|
5875
|
+
var endIconStyles = import_react33.css`
|
|
5737
5876
|
${iconContainerStyles}
|
|
5738
5877
|
right: ${space["3"]};
|
|
5739
5878
|
`;
|
|
5740
|
-
var inputWrapperStyles =
|
|
5879
|
+
var inputWrapperStyles = import_react33.css`
|
|
5741
5880
|
position: relative;
|
|
5742
5881
|
display: inline-block;
|
|
5743
5882
|
width: 100%;
|
|
5744
5883
|
`;
|
|
5745
|
-
var Input = (0,
|
|
5884
|
+
var Input = (0, import_react34.forwardRef)(
|
|
5746
5885
|
({
|
|
5747
5886
|
size = "md",
|
|
5748
5887
|
variant = "default",
|
|
@@ -5761,9 +5900,9 @@ var Input = (0, import_react32.forwardRef)(
|
|
|
5761
5900
|
hasEndIcon && "has-end-icon",
|
|
5762
5901
|
className
|
|
5763
5902
|
].filter(Boolean).join(" ");
|
|
5764
|
-
return /* @__PURE__ */ (0,
|
|
5765
|
-
hasStartIcon && /* @__PURE__ */ (0,
|
|
5766
|
-
/* @__PURE__ */ (0,
|
|
5903
|
+
return /* @__PURE__ */ (0, import_jsx_runtime219.jsxs)("div", { css: inputWrapperStyles, children: [
|
|
5904
|
+
hasStartIcon && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("div", { css: startIconStyles, children: startIcon }),
|
|
5905
|
+
/* @__PURE__ */ (0, import_jsx_runtime219.jsx)(
|
|
5767
5906
|
"input",
|
|
5768
5907
|
{
|
|
5769
5908
|
ref,
|
|
@@ -5780,17 +5919,17 @@ var Input = (0, import_react32.forwardRef)(
|
|
|
5780
5919
|
...props
|
|
5781
5920
|
}
|
|
5782
5921
|
),
|
|
5783
|
-
hasEndIcon && /* @__PURE__ */ (0,
|
|
5922
|
+
hasEndIcon && /* @__PURE__ */ (0, import_jsx_runtime219.jsx)("div", { css: endIconStyles, children: endIcon })
|
|
5784
5923
|
] });
|
|
5785
5924
|
}
|
|
5786
5925
|
);
|
|
5787
5926
|
Input.displayName = "Input";
|
|
5788
5927
|
|
|
5789
5928
|
// src/Form/Select.tsx
|
|
5790
|
-
var
|
|
5791
|
-
var
|
|
5792
|
-
var
|
|
5793
|
-
var selectStyles =
|
|
5929
|
+
var import_react35 = require("@emotion/react");
|
|
5930
|
+
var import_react36 = require("react");
|
|
5931
|
+
var import_jsx_runtime220 = require("@emotion/react/jsx-runtime");
|
|
5932
|
+
var selectStyles = import_react35.css`
|
|
5794
5933
|
position: relative;
|
|
5795
5934
|
width: 100%;
|
|
5796
5935
|
font-family: ${fonts.base};
|
|
@@ -5829,19 +5968,19 @@ var selectStyles = import_react33.css`
|
|
|
5829
5968
|
}
|
|
5830
5969
|
`;
|
|
5831
5970
|
var sizeStyles2 = {
|
|
5832
|
-
sm:
|
|
5971
|
+
sm: import_react35.css`
|
|
5833
5972
|
padding: ${space["2"]} ${space["3"]};
|
|
5834
5973
|
font-size: ${fontSizes.sm};
|
|
5835
5974
|
line-height: ${lineHeights.tight};
|
|
5836
5975
|
height: ${space["8"]};
|
|
5837
5976
|
`,
|
|
5838
|
-
md:
|
|
5977
|
+
md: import_react35.css`
|
|
5839
5978
|
padding: ${space["3"]} ${space["4"]};
|
|
5840
5979
|
font-size: ${fontSizes.base};
|
|
5841
5980
|
line-height: ${lineHeights.normal};
|
|
5842
5981
|
height: ${space["10"]};
|
|
5843
5982
|
`,
|
|
5844
|
-
lg:
|
|
5983
|
+
lg: import_react35.css`
|
|
5845
5984
|
padding: ${space["4"]} ${space["5"]};
|
|
5846
5985
|
font-size: ${fontSizes.lg};
|
|
5847
5986
|
line-height: ${lineHeights.normal};
|
|
@@ -5849,8 +5988,8 @@ var sizeStyles2 = {
|
|
|
5849
5988
|
`
|
|
5850
5989
|
};
|
|
5851
5990
|
var variantStyles2 = {
|
|
5852
|
-
default:
|
|
5853
|
-
error:
|
|
5991
|
+
default: import_react35.css``,
|
|
5992
|
+
error: import_react35.css`
|
|
5854
5993
|
border-color: ${colors.red["500"]};
|
|
5855
5994
|
|
|
5856
5995
|
&:focus {
|
|
@@ -5858,7 +5997,7 @@ var variantStyles2 = {
|
|
|
5858
5997
|
box-shadow: 0 0 0 3px ${colors.red["100"]};
|
|
5859
5998
|
}
|
|
5860
5999
|
`,
|
|
5861
|
-
success:
|
|
6000
|
+
success: import_react35.css`
|
|
5862
6001
|
border-color: ${colors.accent.green};
|
|
5863
6002
|
|
|
5864
6003
|
&:focus {
|
|
@@ -5867,7 +6006,7 @@ var variantStyles2 = {
|
|
|
5867
6006
|
}
|
|
5868
6007
|
`
|
|
5869
6008
|
};
|
|
5870
|
-
var optionStyles =
|
|
6009
|
+
var optionStyles = import_react35.css`
|
|
5871
6010
|
background-color: ${colors.light["100"]};
|
|
5872
6011
|
color: ${colors.gray["900"]};
|
|
5873
6012
|
|
|
@@ -5876,7 +6015,7 @@ var optionStyles = import_react33.css`
|
|
|
5876
6015
|
background-color: ${colors.gray["100"]};
|
|
5877
6016
|
}
|
|
5878
6017
|
`;
|
|
5879
|
-
var Select = (0,
|
|
6018
|
+
var Select = (0, import_react36.forwardRef)(
|
|
5880
6019
|
({
|
|
5881
6020
|
size = "md",
|
|
5882
6021
|
variant = "default",
|
|
@@ -5886,7 +6025,7 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
5886
6025
|
className = "",
|
|
5887
6026
|
...props
|
|
5888
6027
|
}, ref) => {
|
|
5889
|
-
return /* @__PURE__ */ (0,
|
|
6028
|
+
return /* @__PURE__ */ (0, import_jsx_runtime220.jsxs)(
|
|
5890
6029
|
"select",
|
|
5891
6030
|
{
|
|
5892
6031
|
ref,
|
|
@@ -5895,8 +6034,8 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
5895
6034
|
className,
|
|
5896
6035
|
...props,
|
|
5897
6036
|
children: [
|
|
5898
|
-
placeholderOption && /* @__PURE__ */ (0,
|
|
5899
|
-
options.map((option) => /* @__PURE__ */ (0,
|
|
6037
|
+
placeholderOption && /* @__PURE__ */ (0, import_jsx_runtime220.jsx)("option", { value: "", disabled: true, css: optionStyles, children: placeholderOption }),
|
|
6038
|
+
options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
5900
6039
|
"option",
|
|
5901
6040
|
{
|
|
5902
6041
|
value: option.value,
|
|
@@ -5914,10 +6053,10 @@ var Select = (0, import_react34.forwardRef)(
|
|
|
5914
6053
|
Select.displayName = "Select";
|
|
5915
6054
|
|
|
5916
6055
|
// src/Grid/Column.tsx
|
|
5917
|
-
var
|
|
6056
|
+
var import_react38 = require("@emotion/react");
|
|
5918
6057
|
|
|
5919
6058
|
// src/Grid/utils.ts
|
|
5920
|
-
var
|
|
6059
|
+
var import_react37 = require("@emotion/react");
|
|
5921
6060
|
var LayoutTokens = {
|
|
5922
6061
|
containers: {
|
|
5923
6062
|
sm: screens.sm,
|
|
@@ -5957,11 +6096,11 @@ var getResponsiveValue = (value) => {
|
|
|
5957
6096
|
var generateGridColumns = (columns) => {
|
|
5958
6097
|
const baseColumns = getResponsiveValue(columns);
|
|
5959
6098
|
if (typeof columns === "number") {
|
|
5960
|
-
return
|
|
6099
|
+
return import_react37.css`
|
|
5961
6100
|
grid-template-columns: repeat(${columns}, 1fr);
|
|
5962
6101
|
`;
|
|
5963
6102
|
}
|
|
5964
|
-
return
|
|
6103
|
+
return import_react37.css`
|
|
5965
6104
|
grid-template-columns: repeat(${baseColumns}, 1fr);
|
|
5966
6105
|
|
|
5967
6106
|
${media.sm} {
|
|
@@ -5993,11 +6132,11 @@ var generateGridColumns = (columns) => {
|
|
|
5993
6132
|
var generateGapStyles = (gap2) => {
|
|
5994
6133
|
const baseGap = getResponsiveValue(gap2);
|
|
5995
6134
|
if (typeof gap2 === "string" || typeof gap2 === "number") {
|
|
5996
|
-
return
|
|
6135
|
+
return import_react37.css`
|
|
5997
6136
|
gap: ${space[gap2]};
|
|
5998
6137
|
`;
|
|
5999
6138
|
}
|
|
6000
|
-
return
|
|
6139
|
+
return import_react37.css`
|
|
6001
6140
|
gap: ${space[baseGap]};
|
|
6002
6141
|
|
|
6003
6142
|
${media.sm} {
|
|
@@ -6020,11 +6159,11 @@ var generateGapStyles = (gap2) => {
|
|
|
6020
6159
|
var generateRowGapStyles = (rowGap) => {
|
|
6021
6160
|
const baseRowGap = getResponsiveValue(rowGap);
|
|
6022
6161
|
if (typeof rowGap === "string" || typeof rowGap === "number") {
|
|
6023
|
-
return
|
|
6162
|
+
return import_react37.css`
|
|
6024
6163
|
row-gap: ${space[rowGap]};
|
|
6025
6164
|
`;
|
|
6026
6165
|
}
|
|
6027
|
-
return
|
|
6166
|
+
return import_react37.css`
|
|
6028
6167
|
row-gap: ${space[baseRowGap]};
|
|
6029
6168
|
|
|
6030
6169
|
${media.sm} {
|
|
@@ -6047,11 +6186,11 @@ var generateRowGapStyles = (rowGap) => {
|
|
|
6047
6186
|
var generateColumnGapStyles = (columnGap) => {
|
|
6048
6187
|
const baseColumnGap = getResponsiveValue(columnGap);
|
|
6049
6188
|
if (typeof columnGap === "string" || typeof columnGap === "number") {
|
|
6050
|
-
return
|
|
6189
|
+
return import_react37.css`
|
|
6051
6190
|
column-gap: ${space[columnGap]};
|
|
6052
6191
|
`;
|
|
6053
6192
|
}
|
|
6054
|
-
return
|
|
6193
|
+
return import_react37.css`
|
|
6055
6194
|
column-gap: ${space[baseColumnGap]};
|
|
6056
6195
|
|
|
6057
6196
|
${media.sm} {
|
|
@@ -6074,11 +6213,11 @@ var generateColumnGapStyles = (columnGap) => {
|
|
|
6074
6213
|
var generateColumnSpan = (span) => {
|
|
6075
6214
|
const baseSpan = getResponsiveValue(span);
|
|
6076
6215
|
if (typeof span === "string" || typeof span === "number") {
|
|
6077
|
-
return
|
|
6216
|
+
return import_react37.css`
|
|
6078
6217
|
grid-column: ${span === "auto" ? "auto" : `span ${span}`};
|
|
6079
6218
|
`;
|
|
6080
6219
|
}
|
|
6081
|
-
return
|
|
6220
|
+
return import_react37.css`
|
|
6082
6221
|
grid-column: ${baseSpan === "auto" ? "auto" : `span ${baseSpan}`};
|
|
6083
6222
|
|
|
6084
6223
|
${media.sm} {
|
|
@@ -6101,11 +6240,11 @@ var generateColumnSpan = (span) => {
|
|
|
6101
6240
|
var generateAlignItems = (alignItems) => {
|
|
6102
6241
|
const baseAlign = getResponsiveValue(alignItems);
|
|
6103
6242
|
if (typeof alignItems === "string") {
|
|
6104
|
-
return
|
|
6243
|
+
return import_react37.css`
|
|
6105
6244
|
align-items: ${alignItems};
|
|
6106
6245
|
`;
|
|
6107
6246
|
}
|
|
6108
|
-
return
|
|
6247
|
+
return import_react37.css`
|
|
6109
6248
|
align-items: ${baseAlign};
|
|
6110
6249
|
|
|
6111
6250
|
${media.sm} {
|
|
@@ -6128,11 +6267,11 @@ var generateAlignItems = (alignItems) => {
|
|
|
6128
6267
|
var generateJustifyItems = (justifyItems) => {
|
|
6129
6268
|
const baseJustify = getResponsiveValue(justifyItems);
|
|
6130
6269
|
if (typeof justifyItems === "string") {
|
|
6131
|
-
return
|
|
6270
|
+
return import_react37.css`
|
|
6132
6271
|
justify-items: ${justifyItems};
|
|
6133
6272
|
`;
|
|
6134
6273
|
}
|
|
6135
|
-
return
|
|
6274
|
+
return import_react37.css`
|
|
6136
6275
|
justify-items: ${baseJustify};
|
|
6137
6276
|
|
|
6138
6277
|
${media.sm} {
|
|
@@ -6154,7 +6293,7 @@ var generateJustifyItems = (justifyItems) => {
|
|
|
6154
6293
|
};
|
|
6155
6294
|
|
|
6156
6295
|
// src/Grid/Column.tsx
|
|
6157
|
-
var
|
|
6296
|
+
var import_jsx_runtime221 = require("@emotion/react/jsx-runtime");
|
|
6158
6297
|
var Column = ({
|
|
6159
6298
|
span,
|
|
6160
6299
|
start,
|
|
@@ -6167,30 +6306,30 @@ var Column = ({
|
|
|
6167
6306
|
}) => {
|
|
6168
6307
|
const columnStyles = [
|
|
6169
6308
|
span && generateColumnSpan(span),
|
|
6170
|
-
start &&
|
|
6309
|
+
start && import_react38.css`
|
|
6171
6310
|
grid-column-start: ${start};
|
|
6172
6311
|
`,
|
|
6173
|
-
end &&
|
|
6312
|
+
end && import_react38.css`
|
|
6174
6313
|
grid-column-end: ${end};
|
|
6175
6314
|
`,
|
|
6176
|
-
row &&
|
|
6315
|
+
row && import_react38.css`
|
|
6177
6316
|
grid-row: ${row};
|
|
6178
6317
|
`,
|
|
6179
|
-
rowSpan &&
|
|
6318
|
+
rowSpan && import_react38.css`
|
|
6180
6319
|
grid-row: span ${rowSpan};
|
|
6181
6320
|
`,
|
|
6182
|
-
area &&
|
|
6321
|
+
area && import_react38.css`
|
|
6183
6322
|
grid-area: ${area};
|
|
6184
6323
|
`
|
|
6185
6324
|
].filter(Boolean);
|
|
6186
|
-
return /* @__PURE__ */ (0,
|
|
6325
|
+
return /* @__PURE__ */ (0, import_jsx_runtime221.jsx)(Box_default, { css: columnStyles, ...props, children });
|
|
6187
6326
|
};
|
|
6188
6327
|
var Column_default = Column;
|
|
6189
6328
|
|
|
6190
6329
|
// src/Grid/Grid.tsx
|
|
6191
|
-
var
|
|
6192
|
-
var
|
|
6193
|
-
var baseGridStyles =
|
|
6330
|
+
var import_react39 = require("@emotion/react");
|
|
6331
|
+
var import_jsx_runtime222 = require("@emotion/react/jsx-runtime");
|
|
6332
|
+
var baseGridStyles = import_react39.css`
|
|
6194
6333
|
display: grid;
|
|
6195
6334
|
`;
|
|
6196
6335
|
var Grid = ({
|
|
@@ -6215,27 +6354,27 @@ var Grid = ({
|
|
|
6215
6354
|
columnGap && generateColumnGapStyles(columnGap),
|
|
6216
6355
|
alignItems && generateAlignItems(alignItems),
|
|
6217
6356
|
justifyItems && generateJustifyItems(justifyItems),
|
|
6218
|
-
autoRows &&
|
|
6357
|
+
autoRows && import_react39.css`
|
|
6219
6358
|
grid-auto-rows: ${autoRows};
|
|
6220
6359
|
`,
|
|
6221
|
-
autoColumns &&
|
|
6360
|
+
autoColumns && import_react39.css`
|
|
6222
6361
|
grid-auto-columns: ${autoColumns};
|
|
6223
6362
|
`,
|
|
6224
|
-
templateAreas &&
|
|
6363
|
+
templateAreas && import_react39.css`
|
|
6225
6364
|
grid-template-areas: ${typeof templateAreas === "string" ? templateAreas : templateAreas._};
|
|
6226
6365
|
`,
|
|
6227
|
-
justifyContent &&
|
|
6366
|
+
justifyContent && import_react39.css`
|
|
6228
6367
|
justify-content: ${typeof justifyContent === "string" ? justifyContent : justifyContent._};
|
|
6229
6368
|
`
|
|
6230
6369
|
].filter(Boolean);
|
|
6231
|
-
return /* @__PURE__ */ (0,
|
|
6370
|
+
return /* @__PURE__ */ (0, import_jsx_runtime222.jsx)(Box_default, { css: gridStyles, ...props, children });
|
|
6232
6371
|
};
|
|
6233
6372
|
var Grid_default = Grid;
|
|
6234
6373
|
|
|
6235
6374
|
// src/Grid/GridContainer.tsx
|
|
6236
|
-
var
|
|
6237
|
-
var
|
|
6238
|
-
var baseContainerStyles =
|
|
6375
|
+
var import_react40 = require("@emotion/react");
|
|
6376
|
+
var import_jsx_runtime223 = require("@emotion/react/jsx-runtime");
|
|
6377
|
+
var baseContainerStyles = import_react40.css`
|
|
6239
6378
|
width: 100%;
|
|
6240
6379
|
margin: 0 auto;
|
|
6241
6380
|
padding-left: 1rem;
|
|
@@ -6243,14 +6382,14 @@ var baseContainerStyles = import_react38.css`
|
|
|
6243
6382
|
`;
|
|
6244
6383
|
var generateMaxWidthStyles = (maxWidth) => {
|
|
6245
6384
|
if (maxWidth === "full") {
|
|
6246
|
-
return
|
|
6385
|
+
return import_react40.css`
|
|
6247
6386
|
max-width: 100%;
|
|
6248
6387
|
padding-left: 0;
|
|
6249
6388
|
padding-right: 0;
|
|
6250
6389
|
`;
|
|
6251
6390
|
}
|
|
6252
6391
|
const width2 = LayoutTokens.containers[maxWidth] || maxWidth;
|
|
6253
|
-
return
|
|
6392
|
+
return import_react40.css`
|
|
6254
6393
|
max-width: ${width2};
|
|
6255
6394
|
|
|
6256
6395
|
${media.sm} {
|
|
@@ -6279,13 +6418,13 @@ var GridContainer = ({
|
|
|
6279
6418
|
baseContainerStyles,
|
|
6280
6419
|
generateMaxWidthStyles(maxWidth)
|
|
6281
6420
|
];
|
|
6282
|
-
return /* @__PURE__ */ (0,
|
|
6421
|
+
return /* @__PURE__ */ (0, import_jsx_runtime223.jsx)(Box_default, { css: containerStyles4, className, ...props, children });
|
|
6283
6422
|
};
|
|
6284
6423
|
var GridContainer_default = GridContainer;
|
|
6285
6424
|
|
|
6286
6425
|
// src/HuntCard/HuntCard.styles.ts
|
|
6287
|
-
var
|
|
6288
|
-
var cardContainerStyles2 =
|
|
6426
|
+
var import_react41 = require("@emotion/react");
|
|
6427
|
+
var cardContainerStyles2 = import_react41.css`
|
|
6289
6428
|
position: relative;
|
|
6290
6429
|
height: 335px;
|
|
6291
6430
|
|
|
@@ -6293,12 +6432,12 @@ var cardContainerStyles2 = import_react39.css`
|
|
|
6293
6432
|
height: 480px;
|
|
6294
6433
|
}
|
|
6295
6434
|
`;
|
|
6296
|
-
var cardContentStyles2 =
|
|
6435
|
+
var cardContentStyles2 = import_react41.css`
|
|
6297
6436
|
position: relative;
|
|
6298
6437
|
border-radius: var(--spacing-4);
|
|
6299
6438
|
overflow: hidden;
|
|
6300
6439
|
`;
|
|
6301
|
-
var getBackgroundWithGradient2 = (imageUrl) =>
|
|
6440
|
+
var getBackgroundWithGradient2 = (imageUrl) => import_react41.css`
|
|
6302
6441
|
background-image: linear-gradient(
|
|
6303
6442
|
180deg,
|
|
6304
6443
|
rgba(0, 0, 0, 0) 48.36%,
|
|
@@ -6312,7 +6451,7 @@ var getBackgroundWithGradient2 = (imageUrl) => import_react39.css`
|
|
|
6312
6451
|
`;
|
|
6313
6452
|
|
|
6314
6453
|
// src/HuntCard/HuntCard.tsx
|
|
6315
|
-
var
|
|
6454
|
+
var import_jsx_runtime224 = require("@emotion/react/jsx-runtime");
|
|
6316
6455
|
var HuntCard = ({
|
|
6317
6456
|
backgroundImage,
|
|
6318
6457
|
title,
|
|
@@ -6321,14 +6460,14 @@ var HuntCard = ({
|
|
|
6321
6460
|
className,
|
|
6322
6461
|
...rest
|
|
6323
6462
|
}) => {
|
|
6324
|
-
return /* @__PURE__ */ (0,
|
|
6463
|
+
return /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
6325
6464
|
Box_default,
|
|
6326
6465
|
{
|
|
6327
6466
|
display: "flex",
|
|
6328
6467
|
css: cardContainerStyles2,
|
|
6329
6468
|
className,
|
|
6330
6469
|
...rest,
|
|
6331
|
-
children: /* @__PURE__ */ (0,
|
|
6470
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsx)(
|
|
6332
6471
|
Box_default,
|
|
6333
6472
|
{
|
|
6334
6473
|
display: "flex",
|
|
@@ -6336,9 +6475,9 @@ var HuntCard = ({
|
|
|
6336
6475
|
justifyContent: "flex-end",
|
|
6337
6476
|
p: 6,
|
|
6338
6477
|
css: [cardContentStyles2, getBackgroundWithGradient2(backgroundImage)],
|
|
6339
|
-
children: /* @__PURE__ */ (0,
|
|
6340
|
-
/* @__PURE__ */ (0,
|
|
6341
|
-
/* @__PURE__ */ (0,
|
|
6478
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime224.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: 6, children: [
|
|
6479
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Heading_default, { size: "sm", color: "white", textAlign: "left", children: title }),
|
|
6480
|
+
/* @__PURE__ */ (0, import_jsx_runtime224.jsx)(Button_default, { variant: "primary", onClick, children: buttonLabel })
|
|
6342
6481
|
] })
|
|
6343
6482
|
}
|
|
6344
6483
|
)
|
|
@@ -6348,9 +6487,9 @@ var HuntCard = ({
|
|
|
6348
6487
|
var HuntCard_default = HuntCard;
|
|
6349
6488
|
|
|
6350
6489
|
// src/InfoBox/InfoBox.tsx
|
|
6351
|
-
var
|
|
6490
|
+
var import_jsx_runtime225 = require("@emotion/react/jsx-runtime");
|
|
6352
6491
|
var InfoBox = ({ heading, features, className }) => {
|
|
6353
|
-
return /* @__PURE__ */ (0,
|
|
6492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime225.jsxs)(
|
|
6354
6493
|
Box_default,
|
|
6355
6494
|
{
|
|
6356
6495
|
display: "flex",
|
|
@@ -6359,8 +6498,8 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6359
6498
|
className,
|
|
6360
6499
|
color: "var(--text-primary)",
|
|
6361
6500
|
children: [
|
|
6362
|
-
/* @__PURE__ */ (0,
|
|
6363
|
-
/* @__PURE__ */ (0,
|
|
6501
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(Heading_default, { size: "2xs", fontWeight: "bold", children: heading }),
|
|
6502
|
+
/* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
6364
6503
|
Box_default,
|
|
6365
6504
|
{
|
|
6366
6505
|
display: "flex",
|
|
@@ -6370,7 +6509,7 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6370
6509
|
borderRadius: "var(--radius-lg)",
|
|
6371
6510
|
bg: "var(--surface-neutral)",
|
|
6372
6511
|
className,
|
|
6373
|
-
children: features.map((section, index) => /* @__PURE__ */ (0,
|
|
6512
|
+
children: features.map((section, index) => /* @__PURE__ */ (0, import_jsx_runtime225.jsx)(
|
|
6374
6513
|
FeatureList_default,
|
|
6375
6514
|
{
|
|
6376
6515
|
heading: section.heading,
|
|
@@ -6387,11 +6526,11 @@ var InfoBox = ({ heading, features, className }) => {
|
|
|
6387
6526
|
var InfoBox_default = InfoBox;
|
|
6388
6527
|
|
|
6389
6528
|
// src/ListingChat/ListingChat.tsx
|
|
6390
|
-
var
|
|
6529
|
+
var import_react43 = require("react");
|
|
6391
6530
|
|
|
6392
6531
|
// src/ListingChat/ListingChat.styles.ts
|
|
6393
|
-
var
|
|
6394
|
-
var containerStyles2 =
|
|
6532
|
+
var import_react42 = require("@emotion/react");
|
|
6533
|
+
var containerStyles2 = import_react42.css`
|
|
6395
6534
|
display: flex;
|
|
6396
6535
|
flex-direction: column;
|
|
6397
6536
|
gap: var(--spacing-4);
|
|
@@ -6399,13 +6538,13 @@ var containerStyles2 = import_react40.css`
|
|
|
6399
6538
|
border-radius: var(--radius-lg);
|
|
6400
6539
|
background: var(--surface-success);
|
|
6401
6540
|
`;
|
|
6402
|
-
var headerStyles =
|
|
6541
|
+
var headerStyles = import_react42.css`
|
|
6403
6542
|
display: flex;
|
|
6404
6543
|
align-items: flex-start;
|
|
6405
6544
|
justify-content: space-between;
|
|
6406
6545
|
gap: var(--spacing-2);
|
|
6407
6546
|
`;
|
|
6408
|
-
var chipsContainerStyles =
|
|
6547
|
+
var chipsContainerStyles = import_react42.css`
|
|
6409
6548
|
display: flex;
|
|
6410
6549
|
flex-wrap: wrap;
|
|
6411
6550
|
gap: var(--spacing-4);
|
|
@@ -6418,15 +6557,15 @@ var chipsContainerStyles = import_react40.css`
|
|
|
6418
6557
|
cursor: pointer;
|
|
6419
6558
|
}
|
|
6420
6559
|
`;
|
|
6421
|
-
var textAreaStyles =
|
|
6560
|
+
var textAreaStyles = import_react42.css`
|
|
6422
6561
|
min-height: 62px;
|
|
6423
6562
|
`;
|
|
6424
|
-
var inputWrapperStyles2 =
|
|
6563
|
+
var inputWrapperStyles2 = import_react42.css`
|
|
6425
6564
|
position: relative;
|
|
6426
6565
|
`;
|
|
6427
6566
|
|
|
6428
6567
|
// src/ListingChat/ListingChat.tsx
|
|
6429
|
-
var
|
|
6568
|
+
var import_jsx_runtime226 = require("@emotion/react/jsx-runtime");
|
|
6430
6569
|
var ListingChat = ({
|
|
6431
6570
|
onSubmit,
|
|
6432
6571
|
placeholder = "Ask anything about this listing\u2026",
|
|
@@ -6436,15 +6575,15 @@ var ListingChat = ({
|
|
|
6436
6575
|
disabled = false,
|
|
6437
6576
|
...rest
|
|
6438
6577
|
}) => {
|
|
6439
|
-
const [value, setValue] = (0,
|
|
6440
|
-
const handleSubmit = (0,
|
|
6578
|
+
const [value, setValue] = (0, import_react43.useState)("");
|
|
6579
|
+
const handleSubmit = (0, import_react43.useCallback)(() => {
|
|
6441
6580
|
const trimmed = value.trim();
|
|
6442
6581
|
if (!trimmed)
|
|
6443
6582
|
return;
|
|
6444
6583
|
onSubmit(trimmed);
|
|
6445
6584
|
setValue("");
|
|
6446
6585
|
}, [onSubmit, value]);
|
|
6447
|
-
const handleTagClick = (0,
|
|
6586
|
+
const handleTagClick = (0, import_react43.useCallback)(
|
|
6448
6587
|
(tag) => () => {
|
|
6449
6588
|
const trimmed = tag.trim();
|
|
6450
6589
|
if (!trimmed)
|
|
@@ -6453,18 +6592,18 @@ var ListingChat = ({
|
|
|
6453
6592
|
},
|
|
6454
6593
|
[onSubmit]
|
|
6455
6594
|
);
|
|
6456
|
-
return /* @__PURE__ */ (0,
|
|
6457
|
-
/* @__PURE__ */ (0,
|
|
6458
|
-
/* @__PURE__ */ (0,
|
|
6459
|
-
/* @__PURE__ */ (0,
|
|
6460
|
-
/* @__PURE__ */ (0,
|
|
6595
|
+
return /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { css: containerStyles2, className, ...rest, children: [
|
|
6596
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { css: headerStyles, children: [
|
|
6597
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { children: [
|
|
6598
|
+
/* @__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 }) }),
|
|
6599
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Text_default, { size: "md", children: "Get instant answers with Buck, our AI powered assistant." })
|
|
6461
6600
|
] }),
|
|
6462
|
-
/* @__PURE__ */ (0,
|
|
6463
|
-
/* @__PURE__ */ (0,
|
|
6464
|
-
/* @__PURE__ */ (0,
|
|
6601
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-1)", children: [
|
|
6602
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Icon_default, { variant: "AiMagic", size: "medium" }),
|
|
6603
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Text_default, { size: "sm", children: "Beta" })
|
|
6465
6604
|
] })
|
|
6466
6605
|
] }),
|
|
6467
|
-
/* @__PURE__ */ (0,
|
|
6606
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { css: inputWrapperStyles2, children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6468
6607
|
TextArea,
|
|
6469
6608
|
{
|
|
6470
6609
|
rows: 1,
|
|
@@ -6479,14 +6618,14 @@ var ListingChat = ({
|
|
|
6479
6618
|
css: textAreaStyles
|
|
6480
6619
|
}
|
|
6481
6620
|
) }),
|
|
6482
|
-
tags.length > 0 && /* @__PURE__ */ (0,
|
|
6483
|
-
/* @__PURE__ */ (0,
|
|
6484
|
-
/* @__PURE__ */ (0,
|
|
6621
|
+
tags.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime226.jsxs)(import_jsx_runtime226.Fragment, { children: [
|
|
6622
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Text_default, { as: "div", size: "sm", fontWeight: "bold", children: "Try one of these" }),
|
|
6623
|
+
/* @__PURE__ */ (0, import_jsx_runtime226.jsx)(Box_default, { css: chipsContainerStyles, children: tags.map((tag) => /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(
|
|
6485
6624
|
"button",
|
|
6486
6625
|
{
|
|
6487
6626
|
onClick: handleTagClick(tag),
|
|
6488
6627
|
disabled,
|
|
6489
|
-
children: /* @__PURE__ */ (0,
|
|
6628
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime226.jsx)(TagChip_default, { children: tag })
|
|
6490
6629
|
},
|
|
6491
6630
|
tag
|
|
6492
6631
|
)) })
|
|
@@ -6496,11 +6635,11 @@ var ListingChat = ({
|
|
|
6496
6635
|
var ListingChat_default = ListingChat;
|
|
6497
6636
|
|
|
6498
6637
|
// src/Logo/Logo.tsx
|
|
6499
|
-
var
|
|
6638
|
+
var import_react44 = require("@emotion/react");
|
|
6500
6639
|
|
|
6501
6640
|
// src/Logo/components/LandtrustPlusDark.tsx
|
|
6502
|
-
var
|
|
6503
|
-
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0,
|
|
6641
|
+
var import_jsx_runtime227 = require("@emotion/react/jsx-runtime");
|
|
6642
|
+
var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
6504
6643
|
"svg",
|
|
6505
6644
|
{
|
|
6506
6645
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6508,14 +6647,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6508
6647
|
fill: "none",
|
|
6509
6648
|
...props,
|
|
6510
6649
|
children: [
|
|
6511
|
-
/* @__PURE__ */ (0,
|
|
6650
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("g", { filter: "url(#landtrust-plus-dark_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6512
6651
|
"path",
|
|
6513
6652
|
{
|
|
6514
6653
|
fill: "#000",
|
|
6515
6654
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
6516
6655
|
}
|
|
6517
6656
|
) }),
|
|
6518
|
-
/* @__PURE__ */ (0,
|
|
6657
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6519
6658
|
"path",
|
|
6520
6659
|
{
|
|
6521
6660
|
fill: "#FAD44E",
|
|
@@ -6524,14 +6663,14 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6524
6663
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
6525
6664
|
}
|
|
6526
6665
|
),
|
|
6527
|
-
/* @__PURE__ */ (0,
|
|
6666
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6528
6667
|
"path",
|
|
6529
6668
|
{
|
|
6530
6669
|
fill: "#fff",
|
|
6531
6670
|
d: "M376.053 15.765h-9.487V49.36h-11.149V15.876h-9.56V6.608h30.196zM204.29 15.782h-9.487v33.6h-11.149V15.895h-9.56V6.633h30.196zM93.047 6.652l12.637 23.357V6.608h10.179v42.775h-10.488L92.982 25.96v23.402H82.878V6.651zM242.366 35.996l5.154 13.364h-10.781a8334 8334 0 0 0-5.254-13.389h-4.683v13.398h-10.921V6.64h4.836c7.307 0 14.616-.037 21.922.017 2.864.02 4.677 1.613 4.742 4.448q.225 10.12 0 20.244c-.052 2.927-2.075 4.29-5.015 4.648m-15.525-20.1v11.248h8.609a.912.912 0 0 0 .909-.911v-9.428a.905.905 0 0 0-.909-.91zM71.772 49.392H61.244l-1.831-9.098H48.34c-.628 2.995-1.262 6.004-1.91 9.09H36.147c3.07-14.297 6.11-28.505 9.179-42.774h17.268c3.047 14.207 6.101 28.436 9.179 42.782M57.939 30.786 55 15.744h-2.134c-1.012 4.987-2.02 9.974-3.054 15.042zM10.818 40.21H24.46v9.173H0V6.608h10.818zM282.264 6.608v32.466a.92.92 0 0 1-.268.648.9.9 0 0 1-.645.267h-7.445a.9.9 0 0 1-.645-.267.92.92 0 0 1-.267-.648V6.608h-11.025V44.94c0 2.443 1.971 4.424 4.403 4.424h22.506c2.432 0 4.404-1.982 4.404-4.426V6.608zM131.337 49.383V6.657h22.522c5.154 0 8.955 3.645 8.989 8.81q.088 12.542 0 25.086c-.046 5.18-3.85 8.824-8.999 8.824h-22.512zm11.036-33.503v24.2c2.346 0 4.623.092 6.889-.031 1.554-.084 2.589-1.274 2.6-2.912q.067-9.16 0-18.32c-.013-1.644-1.046-2.828-2.596-2.912-2.27-.123-4.549-.03-6.893-.03zM306.214 36.48c0 1.9-.115 3.747.022 5.577.31 4.136 3.799 7.47 7.924 7.539q7.022.116 14.047 0c3.879-.06 7.534-3.112 7.826-6.906.268-3.905.275-7.825.02-11.731-.176-3.002-2.574-5.277-5.55-5.806a766 766 0 0 0-13.834-2.343c-.901-.142-1.186-.527-1.176-1.342.017-1.404 0-2.807.013-4.21 0-.96.462-1.414 1.457-1.405 2.875.027 5.752.021 8.627 0 .992 0 1.425.466 1.412 1.433v2.183h9.117c0-2.078.17-4.067-.036-6.017-.406-3.818-3.896-6.992-7.718-7.057a423 423 0 0 0-14.416 0c-3.784.07-7.434 3.38-7.651 7.124a108 108 0 0 0-.01 11.375c.147 3.103 2.539 5.547 5.567 6.082q6.97 1.233 13.954 2.367c.775.127 1.058.435 1.041 1.195-.031 1.485-.01 2.971-.01 4.458 0 .857-.414 1.298-1.283 1.298h-8.875c-.859 0-1.286-.458-1.304-1.3-.017-.842 0-1.63 0-2.509z"
|
|
6532
6671
|
}
|
|
6533
6672
|
),
|
|
6534
|
-
/* @__PURE__ */ (0,
|
|
6673
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime227.jsxs)(
|
|
6535
6674
|
"filter",
|
|
6536
6675
|
{
|
|
6537
6676
|
id: "landtrust-plus-dark_svg__a",
|
|
@@ -6542,8 +6681,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6542
6681
|
colorInterpolationFilters: "sRGB",
|
|
6543
6682
|
filterUnits: "userSpaceOnUse",
|
|
6544
6683
|
children: [
|
|
6545
|
-
/* @__PURE__ */ (0,
|
|
6546
|
-
/* @__PURE__ */ (0,
|
|
6684
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6685
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6547
6686
|
"feColorMatrix",
|
|
6548
6687
|
{
|
|
6549
6688
|
in: "SourceAlpha",
|
|
@@ -6551,18 +6690,18 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6551
6690
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
6552
6691
|
}
|
|
6553
6692
|
),
|
|
6554
|
-
/* @__PURE__ */ (0,
|
|
6555
|
-
/* @__PURE__ */ (0,
|
|
6556
|
-
/* @__PURE__ */ (0,
|
|
6557
|
-
/* @__PURE__ */ (0,
|
|
6558
|
-
/* @__PURE__ */ (0,
|
|
6693
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feOffset", { dy: 1 }),
|
|
6694
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6695
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6696
|
+
/* @__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" }),
|
|
6697
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6559
6698
|
"feBlend",
|
|
6560
6699
|
{
|
|
6561
6700
|
in2: "BackgroundImageFix",
|
|
6562
6701
|
result: "effect1_dropShadow_257_2540"
|
|
6563
6702
|
}
|
|
6564
6703
|
),
|
|
6565
|
-
/* @__PURE__ */ (0,
|
|
6704
|
+
/* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
|
|
6566
6705
|
"feBlend",
|
|
6567
6706
|
{
|
|
6568
6707
|
in: "SourceGraphic",
|
|
@@ -6579,8 +6718,8 @@ var SvgLandtrustPlusDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime226.
|
|
|
6579
6718
|
var LandtrustPlusDark_default = SvgLandtrustPlusDark;
|
|
6580
6719
|
|
|
6581
6720
|
// src/Logo/components/LandtrustPlusLight.tsx
|
|
6582
|
-
var
|
|
6583
|
-
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0,
|
|
6721
|
+
var import_jsx_runtime228 = require("@emotion/react/jsx-runtime");
|
|
6722
|
+
var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6584
6723
|
"svg",
|
|
6585
6724
|
{
|
|
6586
6725
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6588,14 +6727,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6588
6727
|
fill: "none",
|
|
6589
6728
|
...props,
|
|
6590
6729
|
children: [
|
|
6591
|
-
/* @__PURE__ */ (0,
|
|
6730
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("g", { filter: "url(#landtrust-plus-light_svg__a)", children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6592
6731
|
"path",
|
|
6593
6732
|
{
|
|
6594
6733
|
fill: "#000",
|
|
6595
6734
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
6596
6735
|
}
|
|
6597
6736
|
) }),
|
|
6598
|
-
/* @__PURE__ */ (0,
|
|
6737
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6599
6738
|
"path",
|
|
6600
6739
|
{
|
|
6601
6740
|
fill: "#FAD44E",
|
|
@@ -6604,14 +6743,14 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6604
6743
|
d: "M397.611 44.707a1.357 1.357 0 0 1-1.347-1.367V12.481c0-.755.603-1.367 1.347-1.367h3.893c.744 0 1.348.612 1.348 1.367V43.34c0 .755-.604 1.367-1.348 1.367zM384.364 31.24a1.357 1.357 0 0 1-1.347-1.367v-3.95c0-.755.603-1.367 1.347-1.367h30.414c.741 0 1.345.612 1.345 1.367v3.95c0 .755-.604 1.367-1.345 1.367z"
|
|
6605
6744
|
}
|
|
6606
6745
|
),
|
|
6607
|
-
/* @__PURE__ */ (0,
|
|
6746
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6608
6747
|
"path",
|
|
6609
6748
|
{
|
|
6610
6749
|
fill: "#1A202C",
|
|
6611
6750
|
d: "M376.053 15.765h-9.487V49.36h-11.149V15.876h-9.56V6.608h30.196zM204.29 15.782h-9.487v33.6h-11.149V15.895h-9.56V6.633h30.196zM93.047 6.652l12.637 23.357V6.608h10.179v42.775h-10.488L92.982 25.96v23.402H82.878V6.651zM242.366 35.996l5.154 13.364h-10.781a8334 8334 0 0 0-5.254-13.389h-4.683v13.398h-10.921V6.64h4.836c7.307 0 14.616-.037 21.922.017 2.864.02 4.677 1.613 4.742 4.448q.225 10.12 0 20.244c-.052 2.927-2.075 4.29-5.015 4.648m-15.525-20.1v11.248h8.609a.912.912 0 0 0 .909-.911v-9.428a.905.905 0 0 0-.909-.91zM71.772 49.392H61.244l-1.831-9.098H48.34c-.628 2.995-1.262 6.004-1.91 9.09H36.147c3.07-14.297 6.11-28.505 9.179-42.774h17.268c3.047 14.207 6.101 28.436 9.179 42.782M57.939 30.786 55 15.744h-2.134c-1.012 4.987-2.02 9.974-3.054 15.042zM10.818 40.21H24.46v9.173H0V6.608h10.818zM282.264 6.608v32.466a.92.92 0 0 1-.268.648.9.9 0 0 1-.645.267h-7.445a.9.9 0 0 1-.645-.267.92.92 0 0 1-.267-.648V6.608h-11.025V44.94c0 2.443 1.971 4.424 4.403 4.424h22.506c2.432 0 4.404-1.982 4.404-4.426V6.608zM131.337 49.383V6.657h22.522c5.154 0 8.955 3.645 8.989 8.81q.088 12.542 0 25.086c-.046 5.18-3.85 8.824-8.999 8.824h-22.512zm11.036-33.503v24.2c2.346 0 4.623.092 6.889-.031 1.554-.084 2.589-1.274 2.6-2.912q.067-9.16 0-18.32c-.013-1.644-1.046-2.828-2.596-2.912-2.27-.123-4.549-.03-6.893-.03zM306.214 36.48c0 1.9-.115 3.747.022 5.577.31 4.136 3.799 7.47 7.924 7.539q7.022.116 14.047 0c3.879-.06 7.534-3.112 7.826-6.906.268-3.905.275-7.825.02-11.731-.176-3.002-2.574-5.277-5.55-5.806a766 766 0 0 0-13.834-2.343c-.901-.142-1.186-.527-1.176-1.342.017-1.404 0-2.807.013-4.21 0-.96.462-1.414 1.457-1.405 2.875.027 5.752.021 8.627 0 .992 0 1.425.466 1.412 1.433v2.183h9.117c0-2.078.17-4.067-.036-6.017-.406-3.818-3.896-6.992-7.718-7.057a423 423 0 0 0-14.416 0c-3.784.07-7.434 3.38-7.651 7.124a108 108 0 0 0-.01 11.375c.147 3.103 2.539 5.547 5.567 6.082q6.97 1.233 13.954 2.367c.775.127 1.058.435 1.041 1.195-.031 1.485-.01 2.971-.01 4.458 0 .857-.414 1.298-1.283 1.298h-8.875c-.859 0-1.286-.458-1.304-1.3-.017-.842 0-1.63 0-2.509z"
|
|
6612
6751
|
}
|
|
6613
6752
|
),
|
|
6614
|
-
/* @__PURE__ */ (0,
|
|
6753
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime228.jsxs)(
|
|
6615
6754
|
"filter",
|
|
6616
6755
|
{
|
|
6617
6756
|
id: "landtrust-plus-light_svg__a",
|
|
@@ -6622,8 +6761,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6622
6761
|
colorInterpolationFilters: "sRGB",
|
|
6623
6762
|
filterUnits: "userSpaceOnUse",
|
|
6624
6763
|
children: [
|
|
6625
|
-
/* @__PURE__ */ (0,
|
|
6626
|
-
/* @__PURE__ */ (0,
|
|
6764
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feFlood", { floodOpacity: 0, result: "BackgroundImageFix" }),
|
|
6765
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6627
6766
|
"feColorMatrix",
|
|
6628
6767
|
{
|
|
6629
6768
|
in: "SourceAlpha",
|
|
@@ -6631,18 +6770,18 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6631
6770
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
|
|
6632
6771
|
}
|
|
6633
6772
|
),
|
|
6634
|
-
/* @__PURE__ */ (0,
|
|
6635
|
-
/* @__PURE__ */ (0,
|
|
6636
|
-
/* @__PURE__ */ (0,
|
|
6637
|
-
/* @__PURE__ */ (0,
|
|
6638
|
-
/* @__PURE__ */ (0,
|
|
6773
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feOffset", { dy: 1 }),
|
|
6774
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feGaussianBlur", { stdDeviation: 0.5 }),
|
|
6775
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6776
|
+
/* @__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" }),
|
|
6777
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6639
6778
|
"feBlend",
|
|
6640
6779
|
{
|
|
6641
6780
|
in2: "BackgroundImageFix",
|
|
6642
6781
|
result: "effect1_dropShadow_257_2538"
|
|
6643
6782
|
}
|
|
6644
6783
|
),
|
|
6645
|
-
/* @__PURE__ */ (0,
|
|
6784
|
+
/* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
6646
6785
|
"feBlend",
|
|
6647
6786
|
{
|
|
6648
6787
|
in: "SourceGraphic",
|
|
@@ -6659,8 +6798,8 @@ var SvgLandtrustPlusLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime227
|
|
|
6659
6798
|
var LandtrustPlusLight_default = SvgLandtrustPlusLight;
|
|
6660
6799
|
|
|
6661
6800
|
// src/Logo/components/LandtrustStandardDark.tsx
|
|
6662
|
-
var
|
|
6663
|
-
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0,
|
|
6801
|
+
var import_jsx_runtime229 = require("@emotion/react/jsx-runtime");
|
|
6802
|
+
var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime229.jsxs)(
|
|
6664
6803
|
"svg",
|
|
6665
6804
|
{
|
|
6666
6805
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6668,14 +6807,14 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6668
6807
|
fill: "none",
|
|
6669
6808
|
...props,
|
|
6670
6809
|
children: [
|
|
6671
|
-
/* @__PURE__ */ (0,
|
|
6810
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6672
6811
|
"path",
|
|
6673
6812
|
{
|
|
6674
6813
|
fill: "#E2430C",
|
|
6675
6814
|
d: "m0 0 .037 47.582q-.003 1.401.186 2.79a15.6 15.6 0 0 0 1.223 4.315c1.787 3.934 3.9 6.263 5.914 8.25 4.047 4 8.07 6.023 10.83 7.383A50 50 0 0 0 28.29 74a50 50 0 0 0 10.103-3.68c2.76-1.36 6.783-3.384 10.83-7.383 2.014-1.987 4.126-4.316 5.921-8.25a15.7 15.7 0 0 0 1.223-4.316q.189-1.387.186-2.79L56.59 0zm51.397 5.141-.01 14.061H5.197l-.011-14.06zm-.023 31.322a30 30 0 0 0-3.911-.876c-.822-.126-4.159-.603-8.867-.05-2.086.248-3.97.712-7.736 1.64a197 197 0 0 0-6.62 1.774c-3.427 1.195-9.065 2.541-15.502 1.125a26 26 0 0 1-3.526-1.051L5.2 24.337h46.183zM36.542 65.57a41 41 0 0 1-8.252 3.009 41 41 0 0 1-8.249-3.009 69 69 0 0 1-1.53-.773l9.768-5.588 9.778 5.608c-.55.277-1.054.525-1.515.753m14.823-18.4q.001.736-.072 1.467a13.2 13.2 0 0 1-1.076 4.17c-1.46 3.213-3.182 5.114-4.83 6.739a28 28 0 0 1-2.348 2.074l-.235-.133-14.525-8.327-14.544 8.324-.203.115a28 28 0 0 1-2.328-2.057c-1.642-1.624-3.369-3.526-4.829-6.74A13.2 13.2 0 0 1 5.3 48.636a15 15 0 0 1-.073-1.467v-2.774q1.9.561 3.86.86c.82.127 4.16.603 8.87.05 2.083-.246 3.967-.712 7.732-1.639a184 184 0 0 0 6.62-1.766c3.428-1.197 9.064-2.541 15.503-1.125q1.823.399 3.569 1.051z"
|
|
6676
6815
|
}
|
|
6677
6816
|
),
|
|
6678
|
-
/* @__PURE__ */ (0,
|
|
6817
|
+
/* @__PURE__ */ (0, import_jsx_runtime229.jsx)(
|
|
6679
6818
|
"path",
|
|
6680
6819
|
{
|
|
6681
6820
|
fill: "#fff",
|
|
@@ -6688,8 +6827,8 @@ var SvgLandtrustStandardDark = (props) => /* @__PURE__ */ (0, import_jsx_runtime
|
|
|
6688
6827
|
var LandtrustStandardDark_default = SvgLandtrustStandardDark;
|
|
6689
6828
|
|
|
6690
6829
|
// src/Logo/components/LandtrustStandardLight.tsx
|
|
6691
|
-
var
|
|
6692
|
-
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0,
|
|
6830
|
+
var import_jsx_runtime230 = require("@emotion/react/jsx-runtime");
|
|
6831
|
+
var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtime230.jsxs)(
|
|
6693
6832
|
"svg",
|
|
6694
6833
|
{
|
|
6695
6834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6697,14 +6836,14 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6697
6836
|
fill: "none",
|
|
6698
6837
|
...props,
|
|
6699
6838
|
children: [
|
|
6700
|
-
/* @__PURE__ */ (0,
|
|
6839
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6701
6840
|
"path",
|
|
6702
6841
|
{
|
|
6703
6842
|
fill: "#E2430C",
|
|
6704
6843
|
d: "m0 0 .037 47.582q-.003 1.401.186 2.79a15.6 15.6 0 0 0 1.223 4.315c1.787 3.934 3.9 6.263 5.914 8.25 4.047 4 8.07 6.023 10.83 7.383A50 50 0 0 0 28.29 74a50 50 0 0 0 10.103-3.68c2.76-1.36 6.783-3.384 10.83-7.383 2.014-1.987 4.126-4.316 5.921-8.25a15.7 15.7 0 0 0 1.223-4.316q.189-1.387.186-2.79L56.59 0zm51.397 5.141-.01 14.061H5.197l-.011-14.06zm-.023 31.322a30 30 0 0 0-3.911-.876c-.822-.126-4.159-.603-8.867-.05-2.086.248-3.97.712-7.736 1.64a197 197 0 0 0-6.62 1.774c-3.427 1.195-9.065 2.541-15.502 1.125a26 26 0 0 1-3.526-1.051L5.2 24.337h46.183zM36.542 65.57a41 41 0 0 1-8.252 3.009 41 41 0 0 1-8.249-3.009 69 69 0 0 1-1.53-.773l9.768-5.588 9.778 5.608c-.55.277-1.054.525-1.515.753m14.823-18.4q.001.736-.072 1.467a13.2 13.2 0 0 1-1.076 4.17c-1.46 3.213-3.182 5.114-4.83 6.739a28 28 0 0 1-2.348 2.074l-.235-.133-14.525-8.327-14.544 8.324-.203.115a28 28 0 0 1-2.328-2.057c-1.642-1.624-3.369-3.526-4.829-6.74A13.2 13.2 0 0 1 5.3 48.636a15 15 0 0 1-.073-1.467v-2.774q1.9.561 3.86.86c.82.127 4.16.603 8.87.05 2.083-.246 3.967-.712 7.732-1.639a184 184 0 0 0 6.62-1.766c3.428-1.197 9.064-2.541 15.503-1.125q1.823.399 3.569 1.051z"
|
|
6705
6844
|
}
|
|
6706
6845
|
),
|
|
6707
|
-
/* @__PURE__ */ (0,
|
|
6846
|
+
/* @__PURE__ */ (0, import_jsx_runtime230.jsx)(
|
|
6708
6847
|
"path",
|
|
6709
6848
|
{
|
|
6710
6849
|
fill: "#000",
|
|
@@ -6717,8 +6856,8 @@ var SvgLandtrustStandardLight = (props) => /* @__PURE__ */ (0, import_jsx_runtim
|
|
|
6717
6856
|
var LandtrustStandardLight_default = SvgLandtrustStandardLight;
|
|
6718
6857
|
|
|
6719
6858
|
// src/Logo/Logo.tsx
|
|
6720
|
-
var
|
|
6721
|
-
var logoStyles = (size) =>
|
|
6859
|
+
var import_jsx_runtime231 = require("@emotion/react/jsx-runtime");
|
|
6860
|
+
var logoStyles = (size) => import_react44.css`
|
|
6722
6861
|
width: ${space[size]};
|
|
6723
6862
|
height: auto;
|
|
6724
6863
|
display: block;
|
|
@@ -6746,18 +6885,18 @@ var Logo = ({
|
|
|
6746
6885
|
return LandtrustStandardLight_default;
|
|
6747
6886
|
};
|
|
6748
6887
|
const LogoComponent = getLogoComponent();
|
|
6749
|
-
return /* @__PURE__ */ (0,
|
|
6888
|
+
return /* @__PURE__ */ (0, import_jsx_runtime231.jsx)(LogoComponent, { css: logoStyles(size), className, ...rest });
|
|
6750
6889
|
};
|
|
6751
6890
|
var Logo_default = Logo;
|
|
6752
6891
|
|
|
6753
6892
|
// src/Navigation/Navigation.styles.ts
|
|
6754
|
-
var
|
|
6755
|
-
var navigationStyles =
|
|
6893
|
+
var import_react45 = require("@emotion/react");
|
|
6894
|
+
var navigationStyles = import_react45.css`
|
|
6756
6895
|
width: 100%;
|
|
6757
6896
|
background-color: white;
|
|
6758
6897
|
border-bottom: 1px solid #e5e5e5;
|
|
6759
6898
|
`;
|
|
6760
|
-
var hamburgerButtonStyles =
|
|
6899
|
+
var hamburgerButtonStyles = import_react45.css`
|
|
6761
6900
|
cursor: pointer;
|
|
6762
6901
|
&:focus {
|
|
6763
6902
|
outline: 2px solid #4f46e5;
|
|
@@ -6768,7 +6907,7 @@ var hamburgerButtonStyles = import_react43.css`
|
|
|
6768
6907
|
display: none;
|
|
6769
6908
|
}
|
|
6770
6909
|
`;
|
|
6771
|
-
var centeredLogoStyles =
|
|
6910
|
+
var centeredLogoStyles = import_react45.css`
|
|
6772
6911
|
transform: translate(-50%, -50%);
|
|
6773
6912
|
max-width: 150px;
|
|
6774
6913
|
|
|
@@ -6776,27 +6915,27 @@ var centeredLogoStyles = import_react43.css`
|
|
|
6776
6915
|
display: none;
|
|
6777
6916
|
}
|
|
6778
6917
|
`;
|
|
6779
|
-
var desktopLogoStyles =
|
|
6918
|
+
var desktopLogoStyles = import_react45.css`
|
|
6780
6919
|
display: none;
|
|
6781
6920
|
|
|
6782
6921
|
@media (min-width: 768px) {
|
|
6783
6922
|
display: block;
|
|
6784
6923
|
}
|
|
6785
6924
|
`;
|
|
6786
|
-
var containerStyles3 =
|
|
6925
|
+
var containerStyles3 = import_react45.css`
|
|
6787
6926
|
@media (min-width: 768px) {
|
|
6788
6927
|
justify-content: space-between;
|
|
6789
6928
|
position: static;
|
|
6790
6929
|
}
|
|
6791
6930
|
`;
|
|
6792
|
-
var logoStyles2 =
|
|
6931
|
+
var logoStyles2 = import_react45.css`
|
|
6793
6932
|
width: 100%;
|
|
6794
6933
|
|
|
6795
6934
|
@media (min-width: 768px) {
|
|
6796
6935
|
width: initial;
|
|
6797
6936
|
}
|
|
6798
6937
|
`;
|
|
6799
|
-
var desktopNavStyles =
|
|
6938
|
+
var desktopNavStyles = import_react45.css`
|
|
6800
6939
|
display: none;
|
|
6801
6940
|
|
|
6802
6941
|
@media (min-width: 768px) {
|
|
@@ -6805,7 +6944,7 @@ var desktopNavStyles = import_react43.css`
|
|
|
6805
6944
|
gap: 32px;
|
|
6806
6945
|
}
|
|
6807
6946
|
`;
|
|
6808
|
-
var navLinksStyles =
|
|
6947
|
+
var navLinksStyles = import_react45.css`
|
|
6809
6948
|
display: flex;
|
|
6810
6949
|
align-items: center;
|
|
6811
6950
|
gap: 24px;
|
|
@@ -6813,7 +6952,7 @@ var navLinksStyles = import_react43.css`
|
|
|
6813
6952
|
margin: 0;
|
|
6814
6953
|
padding: 0;
|
|
6815
6954
|
`;
|
|
6816
|
-
var navLinkStyles =
|
|
6955
|
+
var navLinkStyles = import_react45.css`
|
|
6817
6956
|
text-decoration: none;
|
|
6818
6957
|
color: #374151;
|
|
6819
6958
|
font-weight: 500;
|
|
@@ -6829,7 +6968,7 @@ var navLinkStyles = import_react43.css`
|
|
|
6829
6968
|
outline-offset: 2px;
|
|
6830
6969
|
}
|
|
6831
6970
|
`;
|
|
6832
|
-
var avatarPlaceholderStyles =
|
|
6971
|
+
var avatarPlaceholderStyles = import_react45.css`
|
|
6833
6972
|
width: 32px;
|
|
6834
6973
|
height: 32px;
|
|
6835
6974
|
border-radius: 50%;
|
|
@@ -6854,7 +6993,7 @@ var avatarPlaceholderStyles = import_react43.css`
|
|
|
6854
6993
|
`;
|
|
6855
6994
|
|
|
6856
6995
|
// src/Navigation/Navigation.tsx
|
|
6857
|
-
var
|
|
6996
|
+
var import_jsx_runtime232 = require("@emotion/react/jsx-runtime");
|
|
6858
6997
|
var Navigation = ({
|
|
6859
6998
|
onMenuToggle,
|
|
6860
6999
|
className,
|
|
@@ -6868,7 +7007,7 @@ var Navigation = ({
|
|
|
6868
7007
|
onAvatarClick,
|
|
6869
7008
|
...rest
|
|
6870
7009
|
}) => {
|
|
6871
|
-
return /* @__PURE__ */ (0,
|
|
7010
|
+
return /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { css: navigationStyles, className, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(
|
|
6872
7011
|
Box_default,
|
|
6873
7012
|
{
|
|
6874
7013
|
display: "flex",
|
|
@@ -6877,7 +7016,7 @@ var Navigation = ({
|
|
|
6877
7016
|
position: "relative",
|
|
6878
7017
|
css: containerStyles3,
|
|
6879
7018
|
children: [
|
|
6880
|
-
/* @__PURE__ */ (0,
|
|
7019
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6881
7020
|
Box_default,
|
|
6882
7021
|
{
|
|
6883
7022
|
as: "button",
|
|
@@ -6889,11 +7028,11 @@ var Navigation = ({
|
|
|
6889
7028
|
border: "none",
|
|
6890
7029
|
padding: space[2],
|
|
6891
7030
|
css: hamburgerButtonStyles,
|
|
6892
|
-
children: /* @__PURE__ */ (0,
|
|
7031
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Icon_default, { variant: "Bars", size: "large" })
|
|
6893
7032
|
}
|
|
6894
7033
|
),
|
|
6895
|
-
/* @__PURE__ */ (0,
|
|
6896
|
-
/* @__PURE__ */ (0,
|
|
7034
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { css: desktopLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Logo_default, { variant: logoVariant, theme: logoTheme }) }),
|
|
7035
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { position: "absolute", left: "50%", top: "50%", css: centeredLogoStyles, children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6897
7036
|
Logo_default,
|
|
6898
7037
|
{
|
|
6899
7038
|
variant: logoVariant,
|
|
@@ -6902,8 +7041,8 @@ var Navigation = ({
|
|
|
6902
7041
|
css: logoStyles2
|
|
6903
7042
|
}
|
|
6904
7043
|
) }),
|
|
6905
|
-
/* @__PURE__ */ (0,
|
|
6906
|
-
/* @__PURE__ */ (0,
|
|
7044
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsxs)(Box_default, { css: desktopNavStyles, children: [
|
|
7045
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { as: "nav", children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { as: "ul", css: navLinksStyles, children: navLinks.map((link) => /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(Box_default, { as: "li", children: /* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6907
7046
|
"a",
|
|
6908
7047
|
{
|
|
6909
7048
|
href: link.href,
|
|
@@ -6912,7 +7051,7 @@ var Navigation = ({
|
|
|
6912
7051
|
children: link.label
|
|
6913
7052
|
}
|
|
6914
7053
|
) }, link.href)) }) }),
|
|
6915
|
-
/* @__PURE__ */ (0,
|
|
7054
|
+
/* @__PURE__ */ (0, import_jsx_runtime232.jsx)(
|
|
6916
7055
|
Box_default,
|
|
6917
7056
|
{
|
|
6918
7057
|
as: "button",
|
|
@@ -6931,8 +7070,8 @@ var Navigation = ({
|
|
|
6931
7070
|
var Navigation_default = Navigation;
|
|
6932
7071
|
|
|
6933
7072
|
// src/PackageCard/PackageCard.styles.ts
|
|
6934
|
-
var
|
|
6935
|
-
var cardContainerStyles3 =
|
|
7073
|
+
var import_react46 = require("@emotion/react");
|
|
7074
|
+
var cardContainerStyles3 = import_react46.css`
|
|
6936
7075
|
color: var(--text-primary);
|
|
6937
7076
|
position: relative;
|
|
6938
7077
|
width: 100%;
|
|
@@ -6949,14 +7088,14 @@ var cardContainerStyles3 = import_react44.css`
|
|
|
6949
7088
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
|
|
6950
7089
|
}
|
|
6951
7090
|
`;
|
|
6952
|
-
var imageContainerStyles =
|
|
7091
|
+
var imageContainerStyles = import_react46.css`
|
|
6953
7092
|
position: relative;
|
|
6954
7093
|
width: 100%;
|
|
6955
7094
|
height: 200px;
|
|
6956
7095
|
overflow: hidden;
|
|
6957
7096
|
border-radius: var(--spacing-4);
|
|
6958
7097
|
`;
|
|
6959
|
-
var imageStyles2 =
|
|
7098
|
+
var imageStyles2 = import_react46.css`
|
|
6960
7099
|
width: 100%;
|
|
6961
7100
|
height: 100%;
|
|
6962
7101
|
background-size: cover;
|
|
@@ -6964,13 +7103,13 @@ var imageStyles2 = import_react44.css`
|
|
|
6964
7103
|
background-repeat: no-repeat;
|
|
6965
7104
|
border-radius: var(--spacing-4) var(--spacing-4) 0 0;
|
|
6966
7105
|
`;
|
|
6967
|
-
var
|
|
7106
|
+
var badgeStyles2 = import_react46.css`
|
|
6968
7107
|
position: absolute;
|
|
6969
7108
|
top: var(--spacing-3);
|
|
6970
7109
|
left: var(--spacing-3);
|
|
6971
7110
|
z-index: 2;
|
|
6972
7111
|
`;
|
|
6973
|
-
var heartIconStyles =
|
|
7112
|
+
var heartIconStyles = import_react46.css`
|
|
6974
7113
|
position: absolute;
|
|
6975
7114
|
top: var(--spacing-3);
|
|
6976
7115
|
right: var(--spacing-3);
|
|
@@ -6992,12 +7131,12 @@ var heartIconStyles = import_react44.css`
|
|
|
6992
7131
|
transform: scale(1.1);
|
|
6993
7132
|
}
|
|
6994
7133
|
`;
|
|
6995
|
-
var contentStyles2 =
|
|
7134
|
+
var contentStyles2 = import_react46.css`
|
|
6996
7135
|
padding: var(--spacing-3);
|
|
6997
7136
|
`;
|
|
6998
7137
|
|
|
6999
7138
|
// src/PackageCard/PackageCard.tsx
|
|
7000
|
-
var
|
|
7139
|
+
var import_jsx_runtime233 = require("@emotion/react/jsx-runtime");
|
|
7001
7140
|
var PackageCard = ({
|
|
7002
7141
|
images,
|
|
7003
7142
|
title,
|
|
@@ -7014,13 +7153,13 @@ var PackageCard = ({
|
|
|
7014
7153
|
...rest
|
|
7015
7154
|
}) => {
|
|
7016
7155
|
const mainImage = images[0] || "";
|
|
7017
|
-
return /* @__PURE__ */ (0,
|
|
7018
|
-
/* @__PURE__ */ (0,
|
|
7019
|
-
tripsLeft && /* @__PURE__ */ (0,
|
|
7156
|
+
return /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { css: cardContainerStyles3, className, ...rest, children: [
|
|
7157
|
+
/* @__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: [
|
|
7158
|
+
tripsLeft && /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(AvailabilityBadge_default, { variant: "warning", css: badgeStyles2, children: [
|
|
7020
7159
|
tripsLeft,
|
|
7021
7160
|
" Trips Left"
|
|
7022
7161
|
] }),
|
|
7023
|
-
/* @__PURE__ */ (0,
|
|
7162
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7024
7163
|
Box_default,
|
|
7025
7164
|
{
|
|
7026
7165
|
css: heartIconStyles,
|
|
@@ -7028,7 +7167,7 @@ var PackageCard = ({
|
|
|
7028
7167
|
e.stopPropagation();
|
|
7029
7168
|
onFavoriteClick == null ? void 0 : onFavoriteClick();
|
|
7030
7169
|
},
|
|
7031
|
-
children: /* @__PURE__ */ (0,
|
|
7170
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7032
7171
|
Icon_default,
|
|
7033
7172
|
{
|
|
7034
7173
|
variant: isFavorited ? "HeartSolid" : "Heart",
|
|
@@ -7038,8 +7177,8 @@ var PackageCard = ({
|
|
|
7038
7177
|
}
|
|
7039
7178
|
)
|
|
7040
7179
|
] }) }),
|
|
7041
|
-
/* @__PURE__ */ (0,
|
|
7042
|
-
/* @__PURE__ */ (0,
|
|
7180
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { css: contentStyles2, children: [
|
|
7181
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(
|
|
7043
7182
|
Box_default,
|
|
7044
7183
|
{
|
|
7045
7184
|
onClick,
|
|
@@ -7048,9 +7187,9 @@ var PackageCard = ({
|
|
|
7048
7187
|
gap: "var(--spacing-1)",
|
|
7049
7188
|
mb: "var(--spacing-4)",
|
|
7050
7189
|
children: [
|
|
7051
|
-
/* @__PURE__ */ (0,
|
|
7052
|
-
/* @__PURE__ */ (0,
|
|
7053
|
-
/* @__PURE__ */ (0,
|
|
7190
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }) }),
|
|
7191
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Text_default, { size: "xs", fontWeight: "bold", children: subtitle }) }),
|
|
7192
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Text_default, { size: "xs", fontWeight: "normal", children: [
|
|
7054
7193
|
"Starting Price ",
|
|
7055
7194
|
startingPrice,
|
|
7056
7195
|
" / Guest"
|
|
@@ -7058,22 +7197,22 @@ var PackageCard = ({
|
|
|
7058
7197
|
]
|
|
7059
7198
|
}
|
|
7060
7199
|
),
|
|
7061
|
-
/* @__PURE__ */ (0,
|
|
7062
|
-
days && /* @__PURE__ */ (0,
|
|
7200
|
+
/* @__PURE__ */ (0, import_jsx_runtime233.jsxs)(Box_default, { display: "flex", gap: "var(--spacing-3)", alignItems: "center", children: [
|
|
7201
|
+
days && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7063
7202
|
IconLabel_default,
|
|
7064
7203
|
{
|
|
7065
7204
|
variant: "Calendar",
|
|
7066
7205
|
label: `${days} Day${days !== 1 ? "s" : ""}`
|
|
7067
7206
|
}
|
|
7068
7207
|
),
|
|
7069
|
-
guests && /* @__PURE__ */ (0,
|
|
7208
|
+
guests && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(
|
|
7070
7209
|
IconLabel_default,
|
|
7071
7210
|
{
|
|
7072
7211
|
variant: "User",
|
|
7073
7212
|
label: `${guests} Guest${guests !== 1 ? "s" : ""}`
|
|
7074
7213
|
}
|
|
7075
7214
|
),
|
|
7076
|
-
hasLodging && /* @__PURE__ */ (0,
|
|
7215
|
+
hasLodging && /* @__PURE__ */ (0, import_jsx_runtime233.jsx)(IconLabel_default, { variant: "House", label: "Lodging" })
|
|
7077
7216
|
] })
|
|
7078
7217
|
] })
|
|
7079
7218
|
] });
|
|
@@ -7081,14 +7220,14 @@ var PackageCard = ({
|
|
|
7081
7220
|
var PackageCard_default = PackageCard;
|
|
7082
7221
|
|
|
7083
7222
|
// src/PackageHeader/PackageHeader.tsx
|
|
7084
|
-
var
|
|
7223
|
+
var import_jsx_runtime234 = require("@emotion/react/jsx-runtime");
|
|
7085
7224
|
var PackageHeader = ({
|
|
7086
7225
|
header,
|
|
7087
7226
|
subheader,
|
|
7088
7227
|
features,
|
|
7089
7228
|
className
|
|
7090
7229
|
}) => {
|
|
7091
|
-
return /* @__PURE__ */ (0,
|
|
7230
|
+
return /* @__PURE__ */ (0, import_jsx_runtime234.jsxs)(
|
|
7092
7231
|
Box_default,
|
|
7093
7232
|
{
|
|
7094
7233
|
display: "flex",
|
|
@@ -7097,9 +7236,9 @@ var PackageHeader = ({
|
|
|
7097
7236
|
color: "var(--text-primary)",
|
|
7098
7237
|
className,
|
|
7099
7238
|
children: [
|
|
7100
|
-
/* @__PURE__ */ (0,
|
|
7101
|
-
subheader && /* @__PURE__ */ (0,
|
|
7102
|
-
features && /* @__PURE__ */ (0,
|
|
7239
|
+
/* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Heading_default, { size: "xs", fontWeight: "bold", children: header }),
|
|
7240
|
+
subheader && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(Text_default, { children: subheader }),
|
|
7241
|
+
features && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(FeatureList_default, { items: features })
|
|
7103
7242
|
]
|
|
7104
7243
|
}
|
|
7105
7244
|
);
|
|
@@ -7107,8 +7246,8 @@ var PackageHeader = ({
|
|
|
7107
7246
|
var PackageHeader_default = PackageHeader;
|
|
7108
7247
|
|
|
7109
7248
|
// src/StarRating/StarRating.tsx
|
|
7110
|
-
var
|
|
7111
|
-
var
|
|
7249
|
+
var import_react47 = require("@emotion/react");
|
|
7250
|
+
var import_jsx_runtime235 = require("@emotion/react/jsx-runtime");
|
|
7112
7251
|
var starSize = {
|
|
7113
7252
|
sm: {
|
|
7114
7253
|
size: "medium",
|
|
@@ -7127,13 +7266,13 @@ var StarRating = ({
|
|
|
7127
7266
|
const stars = [];
|
|
7128
7267
|
for (let i = 1; i <= 5; i++) {
|
|
7129
7268
|
stars.push(
|
|
7130
|
-
/* @__PURE__ */ (0,
|
|
7269
|
+
/* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7131
7270
|
Icon_default,
|
|
7132
7271
|
{
|
|
7133
7272
|
variant: "StarSolid",
|
|
7134
7273
|
size: starSize[size].size,
|
|
7135
7274
|
fill: i <= rating ? "var(--color-yellow-500)" : "var(--color-neutral-100)",
|
|
7136
|
-
css:
|
|
7275
|
+
css: import_react47.css`
|
|
7137
7276
|
${size === "md" && "width: 40px; height: 40px;"}
|
|
7138
7277
|
`
|
|
7139
7278
|
},
|
|
@@ -7141,7 +7280,7 @@ var StarRating = ({
|
|
|
7141
7280
|
)
|
|
7142
7281
|
);
|
|
7143
7282
|
}
|
|
7144
|
-
return /* @__PURE__ */ (0,
|
|
7283
|
+
return /* @__PURE__ */ (0, import_jsx_runtime235.jsx)(
|
|
7145
7284
|
Box_default,
|
|
7146
7285
|
{
|
|
7147
7286
|
className,
|
|
@@ -7155,7 +7294,7 @@ var StarRating = ({
|
|
|
7155
7294
|
var StarRating_default = StarRating;
|
|
7156
7295
|
|
|
7157
7296
|
// src/UserCard/UserCard.tsx
|
|
7158
|
-
var
|
|
7297
|
+
var import_jsx_runtime236 = require("@emotion/react/jsx-runtime");
|
|
7159
7298
|
var UserCard = ({
|
|
7160
7299
|
avatarSrc,
|
|
7161
7300
|
title,
|
|
@@ -7164,7 +7303,7 @@ var UserCard = ({
|
|
|
7164
7303
|
showRating = true,
|
|
7165
7304
|
className
|
|
7166
7305
|
}) => {
|
|
7167
|
-
return /* @__PURE__ */ (0,
|
|
7306
|
+
return /* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(
|
|
7168
7307
|
Box_default,
|
|
7169
7308
|
{
|
|
7170
7309
|
display: "flex",
|
|
@@ -7172,11 +7311,11 @@ var UserCard = ({
|
|
|
7172
7311
|
gap: "var(--spacing-4)",
|
|
7173
7312
|
className,
|
|
7174
7313
|
children: [
|
|
7175
|
-
/* @__PURE__ */ (0,
|
|
7176
|
-
/* @__PURE__ */ (0,
|
|
7177
|
-
/* @__PURE__ */ (0,
|
|
7178
|
-
subtitle && /* @__PURE__ */ (0,
|
|
7179
|
-
showRating && rating !== void 0 && /* @__PURE__ */ (0,
|
|
7314
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Avatar_default, { type: "image", src: avatarSrc, alt: `${title}'s avatar` }),
|
|
7315
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "2px", children: [
|
|
7316
|
+
/* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Text_default, { size: "md", fontWeight: "bold", children: title }),
|
|
7317
|
+
subtitle && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(Text_default, { size: "sm", color: "text-secondary", children: subtitle }),
|
|
7318
|
+
showRating && rating !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime236.jsx)(StarRating_default, { rating, size: "sm" })
|
|
7180
7319
|
] })
|
|
7181
7320
|
]
|
|
7182
7321
|
}
|
|
@@ -7185,8 +7324,8 @@ var UserCard = ({
|
|
|
7185
7324
|
var UserCard_default = UserCard;
|
|
7186
7325
|
|
|
7187
7326
|
// src/ReviewCard/components/ReviewImages.styles.ts
|
|
7188
|
-
var
|
|
7189
|
-
var imageStyles3 =
|
|
7327
|
+
var import_react48 = require("@emotion/react");
|
|
7328
|
+
var imageStyles3 = import_react48.css`
|
|
7190
7329
|
flex: 1;
|
|
7191
7330
|
min-width: 0;
|
|
7192
7331
|
aspect-ratio: 1;
|
|
@@ -7196,13 +7335,13 @@ var imageStyles3 = import_react46.css`
|
|
|
7196
7335
|
`;
|
|
7197
7336
|
|
|
7198
7337
|
// src/ReviewCard/components/ReviewImages.tsx
|
|
7199
|
-
var
|
|
7338
|
+
var import_jsx_runtime237 = require("@emotion/react/jsx-runtime");
|
|
7200
7339
|
var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
7201
7340
|
const displayImages = images.slice(0, maxImages);
|
|
7202
7341
|
if (displayImages.length === 0) {
|
|
7203
7342
|
return null;
|
|
7204
7343
|
}
|
|
7205
|
-
return /* @__PURE__ */ (0,
|
|
7344
|
+
return /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(Box_default, { display: "flex", gap: "var(--spacing-2)", flexWrap: "wrap", children: displayImages.map((image, index) => /* @__PURE__ */ (0, import_jsx_runtime237.jsx)(
|
|
7206
7345
|
"img",
|
|
7207
7346
|
{
|
|
7208
7347
|
src: image,
|
|
@@ -7215,7 +7354,7 @@ var ReviewImages = ({ images, maxImages = 3 }) => {
|
|
|
7215
7354
|
var ReviewImages_default = ReviewImages;
|
|
7216
7355
|
|
|
7217
7356
|
// src/ReviewCard/components/ReviewReply.tsx
|
|
7218
|
-
var
|
|
7357
|
+
var import_jsx_runtime238 = require("@emotion/react/jsx-runtime");
|
|
7219
7358
|
var ReviewReply = ({
|
|
7220
7359
|
avatarSrc,
|
|
7221
7360
|
name,
|
|
@@ -7224,7 +7363,7 @@ var ReviewReply = ({
|
|
|
7224
7363
|
label,
|
|
7225
7364
|
rating
|
|
7226
7365
|
}) => {
|
|
7227
|
-
return /* @__PURE__ */ (0,
|
|
7366
|
+
return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
7228
7367
|
Box_default,
|
|
7229
7368
|
{
|
|
7230
7369
|
backgroundColor: "var(--surface-neutral)",
|
|
@@ -7234,7 +7373,7 @@ var ReviewReply = ({
|
|
|
7234
7373
|
flexDirection: "column",
|
|
7235
7374
|
gap: "var(--spacing-3)",
|
|
7236
7375
|
children: [
|
|
7237
|
-
/* @__PURE__ */ (0,
|
|
7376
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
7238
7377
|
Box_default,
|
|
7239
7378
|
{
|
|
7240
7379
|
display: "flex",
|
|
@@ -7242,7 +7381,7 @@ var ReviewReply = ({
|
|
|
7242
7381
|
justifyContent: "space-between",
|
|
7243
7382
|
gap: "var(--spacing-2)",
|
|
7244
7383
|
children: [
|
|
7245
|
-
/* @__PURE__ */ (0,
|
|
7384
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
7246
7385
|
UserCard_default,
|
|
7247
7386
|
{
|
|
7248
7387
|
avatarSrc,
|
|
@@ -7251,11 +7390,11 @@ var ReviewReply = ({
|
|
|
7251
7390
|
rating
|
|
7252
7391
|
}
|
|
7253
7392
|
),
|
|
7254
|
-
/* @__PURE__ */ (0,
|
|
7393
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(AvailabilityBadge_default, { variant: "neutral", children: label })
|
|
7255
7394
|
]
|
|
7256
7395
|
}
|
|
7257
7396
|
),
|
|
7258
|
-
/* @__PURE__ */ (0,
|
|
7397
|
+
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(Text_default, { children: content })
|
|
7259
7398
|
]
|
|
7260
7399
|
}
|
|
7261
7400
|
);
|
|
@@ -7263,7 +7402,7 @@ var ReviewReply = ({
|
|
|
7263
7402
|
var ReviewReply_default = ReviewReply;
|
|
7264
7403
|
|
|
7265
7404
|
// src/ReviewCard/ReviewCard.tsx
|
|
7266
|
-
var
|
|
7405
|
+
var import_jsx_runtime239 = require("@emotion/react/jsx-runtime");
|
|
7267
7406
|
var ReviewCard = ({
|
|
7268
7407
|
avatarSrc,
|
|
7269
7408
|
name,
|
|
@@ -7275,7 +7414,7 @@ var ReviewCard = ({
|
|
|
7275
7414
|
replies = [],
|
|
7276
7415
|
className
|
|
7277
7416
|
}) => {
|
|
7278
|
-
return /* @__PURE__ */ (0,
|
|
7417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime239.jsxs)(
|
|
7279
7418
|
Box_default,
|
|
7280
7419
|
{
|
|
7281
7420
|
backgroundColor: "white",
|
|
@@ -7287,7 +7426,7 @@ var ReviewCard = ({
|
|
|
7287
7426
|
border: "1px solid var(--color-neutral-200)",
|
|
7288
7427
|
className,
|
|
7289
7428
|
children: [
|
|
7290
|
-
/* @__PURE__ */ (0,
|
|
7429
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7291
7430
|
UserCard_default,
|
|
7292
7431
|
{
|
|
7293
7432
|
avatarSrc,
|
|
@@ -7296,10 +7435,10 @@ var ReviewCard = ({
|
|
|
7296
7435
|
rating
|
|
7297
7436
|
}
|
|
7298
7437
|
),
|
|
7299
|
-
availabilityBadge && /* @__PURE__ */ (0,
|
|
7300
|
-
/* @__PURE__ */ (0,
|
|
7301
|
-
images.length > 0 && /* @__PURE__ */ (0,
|
|
7302
|
-
replies.length > 0 && /* @__PURE__ */ (0,
|
|
7438
|
+
availabilityBadge && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { children: /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(AvailabilityBadge_default, { variant: availabilityBadge.variant, children: availabilityBadge.text }) }),
|
|
7439
|
+
/* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Text_default, { size: "md", children: content }),
|
|
7440
|
+
images.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(ReviewImages_default, { images }),
|
|
7441
|
+
replies.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-3)", children: replies.map((reply, index) => /* @__PURE__ */ (0, import_jsx_runtime239.jsx)(
|
|
7303
7442
|
ReviewReply_default,
|
|
7304
7443
|
{
|
|
7305
7444
|
avatarSrc: reply.avatarSrc,
|
|
@@ -7318,9 +7457,9 @@ var ReviewCard = ({
|
|
|
7318
7457
|
var ReviewCard_default = ReviewCard;
|
|
7319
7458
|
|
|
7320
7459
|
// src/Reviews/components/ReviewItem.tsx
|
|
7321
|
-
var
|
|
7460
|
+
var import_jsx_runtime240 = require("@emotion/react/jsx-runtime");
|
|
7322
7461
|
var ReviewItem = ({ label, rating }) => {
|
|
7323
|
-
return /* @__PURE__ */ (0,
|
|
7462
|
+
return /* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(
|
|
7324
7463
|
Box_default,
|
|
7325
7464
|
{
|
|
7326
7465
|
display: "flex",
|
|
@@ -7328,10 +7467,10 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
7328
7467
|
alignItems: "center",
|
|
7329
7468
|
width: "100%",
|
|
7330
7469
|
children: [
|
|
7331
|
-
/* @__PURE__ */ (0,
|
|
7332
|
-
/* @__PURE__ */ (0,
|
|
7333
|
-
/* @__PURE__ */ (0,
|
|
7334
|
-
/* @__PURE__ */ (0,
|
|
7470
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Text_default, { fontWeight: "semibold", children: label }),
|
|
7471
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(Box_default, { display: "flex", alignItems: "center", gap: "var(--spacing-2)", children: [
|
|
7472
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsx)(Icon_default, { variant: "StarSolid", size: "large", fill: "var(--surface-action-2)" }),
|
|
7473
|
+
/* @__PURE__ */ (0, import_jsx_runtime240.jsxs)(Text_default, { fontWeight: "semibold", children: [
|
|
7335
7474
|
rating,
|
|
7336
7475
|
"/5"
|
|
7337
7476
|
] })
|
|
@@ -7343,14 +7482,14 @@ var ReviewItem = ({ label, rating }) => {
|
|
|
7343
7482
|
var ReviewItem_default = ReviewItem;
|
|
7344
7483
|
|
|
7345
7484
|
// src/Reviews/Reviews.tsx
|
|
7346
|
-
var
|
|
7485
|
+
var import_jsx_runtime241 = require("@emotion/react/jsx-runtime");
|
|
7347
7486
|
var Reviews = ({
|
|
7348
7487
|
averageRating,
|
|
7349
7488
|
totalReviews,
|
|
7350
7489
|
items,
|
|
7351
7490
|
className
|
|
7352
7491
|
}) => {
|
|
7353
|
-
return /* @__PURE__ */ (0,
|
|
7492
|
+
return /* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7354
7493
|
Box_default,
|
|
7355
7494
|
{
|
|
7356
7495
|
width: "100%",
|
|
@@ -7363,7 +7502,7 @@ var Reviews = ({
|
|
|
7363
7502
|
p: "var(--spacing-4)",
|
|
7364
7503
|
className,
|
|
7365
7504
|
children: [
|
|
7366
|
-
/* @__PURE__ */ (0,
|
|
7505
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(
|
|
7367
7506
|
Box_default,
|
|
7368
7507
|
{
|
|
7369
7508
|
display: "flex",
|
|
@@ -7371,9 +7510,9 @@ var Reviews = ({
|
|
|
7371
7510
|
alignItems: "center",
|
|
7372
7511
|
gap: "var(--spacing-2)",
|
|
7373
7512
|
children: [
|
|
7374
|
-
/* @__PURE__ */ (0,
|
|
7375
|
-
/* @__PURE__ */ (0,
|
|
7376
|
-
/* @__PURE__ */ (0,
|
|
7513
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(Heading_default, { size: "sm", fontWeight: "bold", color: "text-primary", children: averageRating.toFixed(1) }),
|
|
7514
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(StarRating_default, { rating: Math.floor(averageRating) }),
|
|
7515
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsxs)(Text_default, { size: "sm", color: "text-secondary", children: [
|
|
7377
7516
|
"Overall Rating \u2022 ",
|
|
7378
7517
|
totalReviews,
|
|
7379
7518
|
" Review",
|
|
@@ -7382,14 +7521,14 @@ var Reviews = ({
|
|
|
7382
7521
|
]
|
|
7383
7522
|
}
|
|
7384
7523
|
),
|
|
7385
|
-
/* @__PURE__ */ (0,
|
|
7524
|
+
/* @__PURE__ */ (0, import_jsx_runtime241.jsx)(
|
|
7386
7525
|
Box_default,
|
|
7387
7526
|
{
|
|
7388
7527
|
display: "flex",
|
|
7389
7528
|
flexDirection: "column",
|
|
7390
7529
|
gap: "var(--spacing-2)",
|
|
7391
7530
|
width: "100%",
|
|
7392
|
-
children: items.map((item, index) => /* @__PURE__ */ (0,
|
|
7531
|
+
children: items.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime241.jsx)(ReviewItem_default, { label: item.label, rating: item.rating }, index))
|
|
7393
7532
|
}
|
|
7394
7533
|
)
|
|
7395
7534
|
]
|
|
@@ -7399,7 +7538,7 @@ var Reviews = ({
|
|
|
7399
7538
|
var Reviews_default = Reviews;
|
|
7400
7539
|
|
|
7401
7540
|
// src/Reviews/ReviewsShowcase.tsx
|
|
7402
|
-
var
|
|
7541
|
+
var import_jsx_runtime242 = require("@emotion/react/jsx-runtime");
|
|
7403
7542
|
var ReviewsShowcase = () => {
|
|
7404
7543
|
const sampleData = {
|
|
7405
7544
|
averageRating: 4,
|
|
@@ -7421,7 +7560,7 @@ var ReviewsShowcase = () => {
|
|
|
7421
7560
|
{ label: "Game Abundance", rating: 5 }
|
|
7422
7561
|
]
|
|
7423
7562
|
};
|
|
7424
|
-
return /* @__PURE__ */ (0,
|
|
7563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(
|
|
7425
7564
|
Box_default,
|
|
7426
7565
|
{
|
|
7427
7566
|
display: "flex",
|
|
@@ -7429,24 +7568,24 @@ var ReviewsShowcase = () => {
|
|
|
7429
7568
|
gap: "var(--spacing-8)",
|
|
7430
7569
|
p: "var(--spacing-6)",
|
|
7431
7570
|
children: [
|
|
7432
|
-
/* @__PURE__ */ (0,
|
|
7433
|
-
/* @__PURE__ */ (0,
|
|
7434
|
-
/* @__PURE__ */ (0,
|
|
7435
|
-
/* @__PURE__ */ (0,
|
|
7571
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Heading_default, { size: "lg", children: "Reviews Component Showcase" }),
|
|
7572
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7573
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Heading_default, { size: "md", children: "Default Reviews" }),
|
|
7574
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Reviews_default, { ...sampleData }) })
|
|
7436
7575
|
] }),
|
|
7437
|
-
/* @__PURE__ */ (0,
|
|
7438
|
-
/* @__PURE__ */ (0,
|
|
7439
|
-
/* @__PURE__ */ (0,
|
|
7576
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7577
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Heading_default, { size: "md", children: "High Rating Reviews" }),
|
|
7578
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Box_default, { maxWidth: "400px", children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Reviews_default, { ...highRatingData }) })
|
|
7440
7579
|
] }),
|
|
7441
|
-
/* @__PURE__ */ (0,
|
|
7442
|
-
/* @__PURE__ */ (0,
|
|
7443
|
-
/* @__PURE__ */ (0,
|
|
7580
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsxs)(Box_default, { display: "flex", flexDirection: "column", gap: "var(--spacing-4)", children: [
|
|
7581
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Heading_default, { size: "md", children: "Mobile Layout (320px width)" }),
|
|
7582
|
+
/* @__PURE__ */ (0, import_jsx_runtime242.jsx)(
|
|
7444
7583
|
Box_default,
|
|
7445
7584
|
{
|
|
7446
7585
|
maxWidth: "320px",
|
|
7447
7586
|
border: "1px solid var(--color-neutral-200)",
|
|
7448
7587
|
p: "var(--spacing-4)",
|
|
7449
|
-
children: /* @__PURE__ */ (0,
|
|
7588
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime242.jsx)(Reviews_default, { ...sampleData })
|
|
7450
7589
|
}
|
|
7451
7590
|
)
|
|
7452
7591
|
] })
|