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