@40rty/ams-ui 0.5.16 → 0.5.17
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/agent.js +2 -2
- package/dist/catalog-data.js +1 -1
- package/dist/catalog-entries.js +2 -2
- package/dist/{chunk-PPKL7CCQ.js → chunk-4EV6YK3A.js} +1 -1
- package/dist/{chunk-BCQU4UFO.js → chunk-6LSIIVDW.js} +4 -4
- package/dist/{chunk-N5XACWEX.js → chunk-JJNKZWIG.js} +1 -1
- package/dist/{chunk-PYH6XCHQ.js → chunk-PD3UJKW7.js} +1 -1
- package/dist/{chunk-CQXGHVS6.js → chunk-TXELEHI5.js} +3 -27
- package/dist/{chunk-KW2DLXHP.js → chunk-WYFP55QO.js} +1 -1
- package/dist/{chunk-IFVVYH4T.js → chunk-Y5TD4JQH.js} +1 -1
- package/dist/conversation.js +5 -5
- package/dist/index.js +203 -213
- package/dist/island.js +2 -2
- package/dist/presence.js +1 -1
- package/dist/shell.js +5 -5
- package/dist/thread-panel.js +2 -2
- package/dist/types/index.d.ts +0 -1
- package/dist/types/labels/index.d.ts +1 -2
- package/package.json +2 -2
- package/dist/types/components/feedback/HydrationNotice.d.ts +0 -9
- package/dist/types/labels/en/notices.d.ts +0 -2
- package/dist/types/labels/he/notices.d.ts +0 -2
- package/dist/types/labels/pt/notices.d.ts +0 -2
- package/dist/types/labels/types-notices.d.ts +0 -9
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import {
|
|
3
3
|
catalog
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WYFP55QO.js";
|
|
5
5
|
import {
|
|
6
6
|
comparisonTableProps
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-JJNKZWIG.js";
|
|
8
8
|
import {
|
|
9
9
|
AgentText_default,
|
|
10
10
|
ProseSurface,
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
presenceClass,
|
|
38
38
|
registerDefaultPresenceForms,
|
|
39
39
|
useMeasuredHeight
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-PD3UJKW7.js";
|
|
41
41
|
import {
|
|
42
42
|
readFacts,
|
|
43
43
|
readLabel,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
useLabels,
|
|
62
62
|
useLocale,
|
|
63
63
|
useTextDirection
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-TXELEHI5.js";
|
|
65
65
|
import {
|
|
66
66
|
AnimatePresence,
|
|
67
67
|
Reveal,
|
|
@@ -5082,30 +5082,21 @@ var Skeleton2 = React33.forwardRef(
|
|
|
5082
5082
|
);
|
|
5083
5083
|
Skeleton2.displayName = "Skeleton";
|
|
5084
5084
|
|
|
5085
|
-
// src/components/feedback/HydrationNotice.tsx
|
|
5086
|
-
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
5087
|
-
function HydrationNotice({ unavailableCount, hasErrors }) {
|
|
5088
|
-
const labels = useLabels().notices;
|
|
5089
|
-
if (hasErrors) return /* @__PURE__ */ jsx58("p", { role: "status", className: "fourty-hydration-notice", children: labels.contentFailed });
|
|
5090
|
-
if (unavailableCount === 0) return null;
|
|
5091
|
-
return /* @__PURE__ */ jsx58("p", { role: "status", className: "fourty-hydration-notice", children: labels.itemsUnavailable(unavailableCount) });
|
|
5092
|
-
}
|
|
5093
|
-
|
|
5094
5085
|
// src/primitives/Money/index.tsx
|
|
5095
5086
|
import React34 from "react";
|
|
5096
|
-
import { jsx as
|
|
5087
|
+
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
5097
5088
|
var Money = React34.forwardRef(
|
|
5098
5089
|
({ className, money, amount, currency = "USD", locale, ...props }, ref) => {
|
|
5099
5090
|
const spaceLocale = useLocale();
|
|
5100
5091
|
const moneyObj = money ?? { amount: amount ?? 0, currencyCode: currency };
|
|
5101
|
-
return /* @__PURE__ */
|
|
5092
|
+
return /* @__PURE__ */ jsx58("span", { ref, className: cn(className), ...props, children: formatMoney(moneyObj, locale === void 0 ? spaceLocale : locale) });
|
|
5102
5093
|
}
|
|
5103
5094
|
);
|
|
5104
5095
|
Money.displayName = "Money";
|
|
5105
5096
|
|
|
5106
5097
|
// src/primitives/Input/index.tsx
|
|
5107
5098
|
import React35 from "react";
|
|
5108
|
-
import { jsx as
|
|
5099
|
+
import { jsx as jsx59, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
5109
5100
|
var Input = React35.forwardRef(
|
|
5110
5101
|
({ className, label, required, id, ...props }, ref) => {
|
|
5111
5102
|
return /* @__PURE__ */ jsxs44("div", { className: "space-y-1.5", children: [
|
|
@@ -5116,11 +5107,11 @@ var Input = React35.forwardRef(
|
|
|
5116
5107
|
className: "block text-sm font-medium text-[var(--fourty-color-text)]",
|
|
5117
5108
|
children: [
|
|
5118
5109
|
label,
|
|
5119
|
-
required && /* @__PURE__ */
|
|
5110
|
+
required && /* @__PURE__ */ jsx59("span", { className: "text-red-500 ms-0.5", children: "*" })
|
|
5120
5111
|
]
|
|
5121
5112
|
}
|
|
5122
5113
|
),
|
|
5123
|
-
/* @__PURE__ */
|
|
5114
|
+
/* @__PURE__ */ jsx59(
|
|
5124
5115
|
"input",
|
|
5125
5116
|
{
|
|
5126
5117
|
ref,
|
|
@@ -5145,7 +5136,7 @@ Input.displayName = "Input";
|
|
|
5145
5136
|
|
|
5146
5137
|
// src/primitives/Select/index.tsx
|
|
5147
5138
|
import React36 from "react";
|
|
5148
|
-
import { jsx as
|
|
5139
|
+
import { jsx as jsx60, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
5149
5140
|
var Select = React36.forwardRef(
|
|
5150
5141
|
({ className, label, required, id, children, ...props }, ref) => {
|
|
5151
5142
|
return /* @__PURE__ */ jsxs45("div", { className: "space-y-1.5", children: [
|
|
@@ -5156,11 +5147,11 @@ var Select = React36.forwardRef(
|
|
|
5156
5147
|
className: "block text-sm font-medium text-[var(--fourty-color-text)]",
|
|
5157
5148
|
children: [
|
|
5158
5149
|
label,
|
|
5159
|
-
required && /* @__PURE__ */
|
|
5150
|
+
required && /* @__PURE__ */ jsx60("span", { className: "text-red-500 ms-0.5", children: "*" })
|
|
5160
5151
|
]
|
|
5161
5152
|
}
|
|
5162
5153
|
),
|
|
5163
|
-
/* @__PURE__ */
|
|
5154
|
+
/* @__PURE__ */ jsx60(
|
|
5164
5155
|
"select",
|
|
5165
5156
|
{
|
|
5166
5157
|
ref,
|
|
@@ -5185,7 +5176,7 @@ Select.displayName = "Select";
|
|
|
5185
5176
|
|
|
5186
5177
|
// src/components/layout/Grid.tsx
|
|
5187
5178
|
import React37 from "react";
|
|
5188
|
-
import { jsx as
|
|
5179
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
|
5189
5180
|
var columnClasses = {
|
|
5190
5181
|
1: "grid-cols-1",
|
|
5191
5182
|
2: "grid-cols-1 sm:grid-cols-2",
|
|
@@ -5202,7 +5193,7 @@ var gapClasses = {
|
|
|
5202
5193
|
};
|
|
5203
5194
|
var Grid = React37.forwardRef(
|
|
5204
5195
|
({ className, columns = 4, gap = "md", ...props }, ref) => {
|
|
5205
|
-
return /* @__PURE__ */
|
|
5196
|
+
return /* @__PURE__ */ jsx61(
|
|
5206
5197
|
"div",
|
|
5207
5198
|
{
|
|
5208
5199
|
ref,
|
|
@@ -5216,7 +5207,7 @@ Grid.displayName = "Grid";
|
|
|
5216
5207
|
|
|
5217
5208
|
// src/components/layout/Stack.tsx
|
|
5218
5209
|
import React38 from "react";
|
|
5219
|
-
import { jsx as
|
|
5210
|
+
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
5220
5211
|
var gapClasses2 = {
|
|
5221
5212
|
none: "gap-0",
|
|
5222
5213
|
xs: "gap-1",
|
|
@@ -5232,7 +5223,7 @@ var alignClasses2 = {
|
|
|
5232
5223
|
};
|
|
5233
5224
|
var Stack = React38.forwardRef(
|
|
5234
5225
|
({ className, direction = "vertical", gap = "md", align = "stretch", ...props }, ref) => {
|
|
5235
|
-
return /* @__PURE__ */
|
|
5226
|
+
return /* @__PURE__ */ jsx62(
|
|
5236
5227
|
"div",
|
|
5237
5228
|
{
|
|
5238
5229
|
ref,
|
|
@@ -5252,10 +5243,10 @@ Stack.displayName = "Stack";
|
|
|
5252
5243
|
|
|
5253
5244
|
// src/components/layout/Divider.tsx
|
|
5254
5245
|
import React39 from "react";
|
|
5255
|
-
import { jsx as
|
|
5246
|
+
import { jsx as jsx63 } from "react/jsx-runtime";
|
|
5256
5247
|
var Divider = React39.forwardRef(
|
|
5257
5248
|
({ className, orientation = "horizontal", ...props }, ref) => {
|
|
5258
|
-
return /* @__PURE__ */
|
|
5249
|
+
return /* @__PURE__ */ jsx63(
|
|
5259
5250
|
"hr",
|
|
5260
5251
|
{
|
|
5261
5252
|
ref,
|
|
@@ -5273,10 +5264,10 @@ Divider.displayName = "Divider";
|
|
|
5273
5264
|
|
|
5274
5265
|
// src/components/layout/AspectRatio.tsx
|
|
5275
5266
|
import React40 from "react";
|
|
5276
|
-
import { jsx as
|
|
5267
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
5277
5268
|
var AspectRatio = React40.forwardRef(
|
|
5278
5269
|
({ className, ratio = 1, style, children, ...props }, ref) => {
|
|
5279
|
-
return /* @__PURE__ */
|
|
5270
|
+
return /* @__PURE__ */ jsx64(
|
|
5280
5271
|
"div",
|
|
5281
5272
|
{
|
|
5282
5273
|
ref,
|
|
@@ -5293,7 +5284,7 @@ AspectRatio.displayName = "AspectRatio";
|
|
|
5293
5284
|
// src/components/layout/Drawer.tsx
|
|
5294
5285
|
import React41, { useEffect as useEffect7, useCallback as useCallback7 } from "react";
|
|
5295
5286
|
import { motion as motion15, AnimatePresence as AnimatePresence9 } from "framer-motion";
|
|
5296
|
-
import { Fragment as Fragment11, jsx as
|
|
5287
|
+
import { Fragment as Fragment11, jsx as jsx65, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
5297
5288
|
var Drawer = React41.forwardRef(
|
|
5298
5289
|
({ open, onClose, side = "right", className, children }, ref) => {
|
|
5299
5290
|
const handleKeyDown = useCallback7(
|
|
@@ -5318,8 +5309,8 @@ var Drawer = React41.forwardRef(
|
|
|
5318
5309
|
},
|
|
5319
5310
|
exit: { x: offscreen, transition: { duration: 0.25 } }
|
|
5320
5311
|
};
|
|
5321
|
-
return /* @__PURE__ */
|
|
5322
|
-
/* @__PURE__ */
|
|
5312
|
+
return /* @__PURE__ */ jsx65(AnimatePresence9, { children: open && /* @__PURE__ */ jsxs46(Fragment11, { children: [
|
|
5313
|
+
/* @__PURE__ */ jsx65(
|
|
5323
5314
|
motion15.div,
|
|
5324
5315
|
{
|
|
5325
5316
|
initial: { opacity: 0 },
|
|
@@ -5330,7 +5321,7 @@ var Drawer = React41.forwardRef(
|
|
|
5330
5321
|
"aria-hidden": true
|
|
5331
5322
|
}
|
|
5332
5323
|
),
|
|
5333
|
-
/* @__PURE__ */
|
|
5324
|
+
/* @__PURE__ */ jsx65(
|
|
5334
5325
|
motion15.div,
|
|
5335
5326
|
{
|
|
5336
5327
|
ref,
|
|
@@ -5361,7 +5352,7 @@ Drawer.displayName = "Drawer";
|
|
|
5361
5352
|
// src/components/layout/DrawerDockSlot.tsx
|
|
5362
5353
|
import React42 from "react";
|
|
5363
5354
|
import { useFormFactor } from "@40rty/ams-sdk";
|
|
5364
|
-
import { jsx as
|
|
5355
|
+
import { jsx as jsx66 } from "react/jsx-runtime";
|
|
5365
5356
|
function DrawerDockSlot({
|
|
5366
5357
|
width,
|
|
5367
5358
|
open,
|
|
@@ -5372,7 +5363,7 @@ function DrawerDockSlot({
|
|
|
5372
5363
|
const slotRef = React42.useRef(null);
|
|
5373
5364
|
useScrollLock(open, slotRef);
|
|
5374
5365
|
const { isMobile } = useFormFactor();
|
|
5375
|
-
return /* @__PURE__ */
|
|
5366
|
+
return /* @__PURE__ */ jsx66(
|
|
5376
5367
|
"div",
|
|
5377
5368
|
{
|
|
5378
5369
|
ref: slotRef,
|
|
@@ -5397,7 +5388,7 @@ import * as React43 from "react";
|
|
|
5397
5388
|
import { createPortal as createPortal5 } from "react-dom";
|
|
5398
5389
|
import { motion as motion16, AnimatePresence as AnimatePresence10 } from "framer-motion";
|
|
5399
5390
|
import { useShellRoot as useShellRoot5, useFormFactor as useFormFactor2 } from "@40rty/ams-sdk";
|
|
5400
|
-
import { jsx as
|
|
5391
|
+
import { jsx as jsx67 } from "react/jsx-runtime";
|
|
5401
5392
|
var BACKDROP_CLASS = "fourty-modal-backdrop";
|
|
5402
5393
|
var PANEL_CLASS = "fourty-modal-panel";
|
|
5403
5394
|
function Modal({ open, onClose, label, className, children }) {
|
|
@@ -5406,9 +5397,9 @@ function Modal({ open, onClose, label, className, children }) {
|
|
|
5406
5397
|
const panelRef = React43.useRef(null);
|
|
5407
5398
|
useFocusTrap(panelRef, open && !isMobile);
|
|
5408
5399
|
if (isMobile) {
|
|
5409
|
-
return /* @__PURE__ */
|
|
5400
|
+
return /* @__PURE__ */ jsx67(DragSheet, { open, onClose, label, fit: true, className, children });
|
|
5410
5401
|
}
|
|
5411
|
-
const modal = /* @__PURE__ */
|
|
5402
|
+
const modal = /* @__PURE__ */ jsx67(AnimatePresence10, { children: open && /* @__PURE__ */ jsx67(
|
|
5412
5403
|
motion16.div,
|
|
5413
5404
|
{
|
|
5414
5405
|
className: BACKDROP_CLASS,
|
|
@@ -5421,7 +5412,7 @@ function Modal({ open, onClose, label, className, children }) {
|
|
|
5421
5412
|
if (e.target === e.currentTarget) onClose();
|
|
5422
5413
|
},
|
|
5423
5414
|
style: { position: "absolute", inset: 0, zIndex: 80 },
|
|
5424
|
-
children: /* @__PURE__ */
|
|
5415
|
+
children: /* @__PURE__ */ jsx67(
|
|
5425
5416
|
motion16.div,
|
|
5426
5417
|
{
|
|
5427
5418
|
ref: panelRef,
|
|
@@ -5452,13 +5443,13 @@ var EXTEND_LOADING_CLASS = "fourty-extend-loading";
|
|
|
5452
5443
|
var CANVAS_BOOT_CLASS = "fourty-canvas-boot";
|
|
5453
5444
|
|
|
5454
5445
|
// src/components/browse/ContinuationLoading.tsx
|
|
5455
|
-
import { jsx as
|
|
5446
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
5456
5447
|
function AgentContinuationFoot() {
|
|
5457
5448
|
const { kind } = useAgentPresence(EXTEND_FLOW);
|
|
5458
5449
|
const fresh = useAgentFlowFresh(EXTEND_FLOW);
|
|
5459
5450
|
const { isMobile } = useFormFactor3();
|
|
5460
5451
|
if (!fresh || kind === "idle") return null;
|
|
5461
|
-
return /* @__PURE__ */
|
|
5452
|
+
return /* @__PURE__ */ jsx68("section", { className: EXTEND_LOADING_CLASS, "aria-busy": "true", "aria-live": "polite", children: /* @__PURE__ */ jsx68(InlinePresenceRead, { flowId: EXTEND_FLOW, compact: isMobile }) });
|
|
5462
5453
|
}
|
|
5463
5454
|
|
|
5464
5455
|
// src/components/browse/canvas-booting.ts
|
|
@@ -5489,10 +5480,10 @@ function useCanvasBooting() {
|
|
|
5489
5480
|
}
|
|
5490
5481
|
|
|
5491
5482
|
// src/components/browse/CanvasBootLoader.tsx
|
|
5492
|
-
import { jsx as
|
|
5483
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
|
5493
5484
|
function CanvasBootLoader() {
|
|
5494
5485
|
const booting = useCanvasBooting();
|
|
5495
|
-
return /* @__PURE__ */
|
|
5486
|
+
return /* @__PURE__ */ jsx69(AnimatePresence, { children: booting && /* @__PURE__ */ jsx69(
|
|
5496
5487
|
motion.div,
|
|
5497
5488
|
{
|
|
5498
5489
|
className: CANVAS_BOOT_CLASS,
|
|
@@ -5501,7 +5492,7 @@ function CanvasBootLoader() {
|
|
|
5501
5492
|
animate: { opacity: 1 },
|
|
5502
5493
|
exit: { opacity: 0 },
|
|
5503
5494
|
transition: { duration: 0.25 },
|
|
5504
|
-
children: /* @__PURE__ */
|
|
5495
|
+
children: /* @__PURE__ */ jsx69("div", { className: `${CANVAS_BOOT_CLASS}__stage`, children: /* @__PURE__ */ jsx69(InlinePresenceRead, {}) })
|
|
5505
5496
|
},
|
|
5506
5497
|
"canvas-boot"
|
|
5507
5498
|
) });
|
|
@@ -5509,16 +5500,16 @@ function CanvasBootLoader() {
|
|
|
5509
5500
|
|
|
5510
5501
|
// src/components/ecommerce/product/PresenceProductRail.tsx
|
|
5511
5502
|
import { useProducts } from "@40rty/ams-sdk";
|
|
5512
|
-
import { jsx as
|
|
5503
|
+
import { jsx as jsx70, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
5513
5504
|
function Tile({ url, w, h }) {
|
|
5514
|
-
return /* @__PURE__ */
|
|
5505
|
+
return /* @__PURE__ */ jsx70("div", { style: {
|
|
5515
5506
|
width: w,
|
|
5516
5507
|
height: h,
|
|
5517
5508
|
flexShrink: 0,
|
|
5518
5509
|
background: "var(--color-surface)",
|
|
5519
5510
|
border: "1px solid color-mix(in srgb, var(--color-on-dark) 14%, transparent)",
|
|
5520
5511
|
overflow: "hidden"
|
|
5521
|
-
}, children: /* @__PURE__ */
|
|
5512
|
+
}, children: /* @__PURE__ */ jsx70(ProductImage, { src: url, alt: "", aspectRatio: w / h, fit: "cover", loading: "eager" }) });
|
|
5522
5513
|
}
|
|
5523
5514
|
function PresenceProductRail({ images, max = 7, tileHeight = 48, flow = false }) {
|
|
5524
5515
|
const tileWidth = Math.round(tileHeight * 0.8);
|
|
@@ -5527,20 +5518,20 @@ function PresenceProductRail({ images, max = 7, tileHeight = 48, flow = false })
|
|
|
5527
5518
|
const loop = images.length > 0 ? [...images, ...images] : [];
|
|
5528
5519
|
const duration = Math.max(12, images.length * 1.3);
|
|
5529
5520
|
const fade = "linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent)";
|
|
5530
|
-
return /* @__PURE__ */
|
|
5521
|
+
return /* @__PURE__ */ jsx70("div", { style: { overflow: "hidden", flex: 1, minWidth: 0, WebkitMaskImage: fade, maskImage: fade }, children: /* @__PURE__ */ jsx70(
|
|
5531
5522
|
motion.div,
|
|
5532
5523
|
{
|
|
5533
5524
|
style: { display: "flex", gap: 8, width: "max-content" },
|
|
5534
5525
|
animate: { x: ["0%", mirrorX(dir, "-50%")] },
|
|
5535
5526
|
transition: { repeat: Infinity, duration, ease: "linear" },
|
|
5536
|
-
children: loop.map((img, i) => /* @__PURE__ */
|
|
5527
|
+
children: loop.map((img, i) => /* @__PURE__ */ jsx70(Tile, { url: img.url, w: tileWidth, h: tileHeight }, `${img.id}-${i}`))
|
|
5537
5528
|
}
|
|
5538
5529
|
) });
|
|
5539
5530
|
}
|
|
5540
5531
|
const shown = images.slice(0, max);
|
|
5541
5532
|
const overflow = images.length - shown.length;
|
|
5542
5533
|
return /* @__PURE__ */ jsxs47("div", { style: { display: "flex", alignItems: "center", gap: 6, overflow: "hidden" }, children: [
|
|
5543
|
-
/* @__PURE__ */
|
|
5534
|
+
/* @__PURE__ */ jsx70(AnimatePresence, { initial: false, mode: "popLayout", children: shown.map((img, i) => /* @__PURE__ */ jsx70(
|
|
5544
5535
|
motion.div,
|
|
5545
5536
|
{
|
|
5546
5537
|
layout: true,
|
|
@@ -5556,7 +5547,7 @@ function PresenceProductRail({ images, max = 7, tileHeight = 48, flow = false })
|
|
|
5556
5547
|
border: "1px solid color-mix(in srgb, var(--color-on-dark) 16%, transparent)",
|
|
5557
5548
|
overflow: "hidden"
|
|
5558
5549
|
},
|
|
5559
|
-
children: /* @__PURE__ */
|
|
5550
|
+
children: /* @__PURE__ */ jsx70(ProductImage, { src: img.url, alt: "", aspectRatio: tileWidth / tileHeight, fit: "cover", loading: "eager" })
|
|
5560
5551
|
},
|
|
5561
5552
|
img.id
|
|
5562
5553
|
)) }),
|
|
@@ -5597,21 +5588,21 @@ function HydratedProductRail({ entityIds, tileHeight = 52 }) {
|
|
|
5597
5588
|
}
|
|
5598
5589
|
}
|
|
5599
5590
|
if (images.length === 0) return null;
|
|
5600
|
-
return /* @__PURE__ */
|
|
5591
|
+
return /* @__PURE__ */ jsx70(PresenceProductRail, { images, tileHeight });
|
|
5601
5592
|
}
|
|
5602
5593
|
|
|
5603
5594
|
// src/components/ecommerce/product/ProductOption.tsx
|
|
5604
5595
|
import React45 from "react";
|
|
5605
|
-
import { jsx as
|
|
5596
|
+
import { jsx as jsx71, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
5606
5597
|
var ProductOption = React45.forwardRef(
|
|
5607
5598
|
({ className, name, values: valuesProp, selected, required, onSelect, ...props }, ref) => {
|
|
5608
5599
|
const values = Array.isArray(valuesProp) ? valuesProp : [];
|
|
5609
5600
|
return /* @__PURE__ */ jsxs48("fieldset", { ref, className: cn("space-y-2", className), ...props, children: [
|
|
5610
5601
|
/* @__PURE__ */ jsxs48("legend", { className: "text-sm font-medium text-[var(--fourty-color-text)]", children: [
|
|
5611
5602
|
name,
|
|
5612
|
-
required && /* @__PURE__ */
|
|
5603
|
+
required && /* @__PURE__ */ jsx71("span", { className: "text-red-500 ms-0.5", children: "*" })
|
|
5613
5604
|
] }),
|
|
5614
|
-
/* @__PURE__ */
|
|
5605
|
+
/* @__PURE__ */ jsx71("div", { className: "flex flex-wrap gap-2", children: values.map((value) => /* @__PURE__ */ jsx71(
|
|
5615
5606
|
"button",
|
|
5616
5607
|
{
|
|
5617
5608
|
type: "button",
|
|
@@ -5641,16 +5632,16 @@ var AMAZON_LOGO = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAR0AAABgCAYAAAA
|
|
|
5641
5632
|
var BABYLIST_LOGO = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW8AAABaCAYAAAB3/Ne+AAAk9klEQVR4nO2dCXRb1ZnH/9pXS15kS973LTZZCRDSJAQKAUpbZqYFBmintFAoXWkpKUtpaaENZToUyrS0DMMAnUILTEtL2QNJIKzZEzte492SZVnWYq3WMudeCNjxe7JkPS127u8cH4Lu03vX8tP37v2W/wcwGAwGg8FgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBjxIor7SMbC0BZo0LhpO0Qi6azXRSIZ7MP3oPedP2RsbkuZ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58RIO8x4MxiLjeLm7/OOOUZ+hqmJ2BkfjCUBM94MxmJCZ9RDb/w29yCRfe1MTrGQsWhgxpvBWEwUN32VN83MaX0AzjFuzRHGkoMZbwZjsUDy0PPLbucdt3TcI4S8OWNxwIw3g7FYKG66nLdwiOjZ24dH0z4nRsZgxpvBWAyodHIUVHL3riRYOu/gK+ZgLE2Y8WYwFgOmxk/NagF2onwpkYdlnFQw481gLAaJhMLqu3nHLV03L0rRNkZSMOPNYGQ7pvpNvGJLRDN8/FhqdckZWQkz3gxGNkMU84rq+Zt1jPXeiGk/c3afhDDjzWBkM0W1a3m1qsPTQxjrTnWDb0aWwow3g5GtkGYLxnrSAo4bW9/NtBMT46SEGW8GI1sprG7mbS4cCTtg7nwm7XNiZA3MeDMY2YhULkJp60O845Mjd8HriL8HLGPJwZoxMBjZiEIrRVnrZfTf0Wh4doNfsRTW3r/AbeXu38lgMBgMBoPBYDAYDAaDwWAwGAwGg8FgMBgMBoPBYDAYmMn/A4QY9riH9S/iAAAAAElFTkSuQmCC";
|
|
5642
5633
|
|
|
5643
5634
|
// src/components/ecommerce/product/AddToRegistry.tsx
|
|
5644
|
-
import { jsx as
|
|
5635
|
+
import { jsx as jsx72, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
5645
5636
|
var LOGOS = {
|
|
5646
5637
|
amazon: { src: AMAZON_LOGO, aspectRatio: "285 / 96" },
|
|
5647
5638
|
babylist: { src: BABYLIST_LOGO, aspectRatio: "367 / 90" }
|
|
5648
5639
|
};
|
|
5649
5640
|
function RegistryLogo({ id, label }) {
|
|
5650
5641
|
const logo = LOGOS[id];
|
|
5651
|
-
if (!logo) return /* @__PURE__ */
|
|
5642
|
+
if (!logo) return /* @__PURE__ */ jsx72("span", { className: "registry__wordmark", children: label });
|
|
5652
5643
|
const mask = `url(${logo.src})`;
|
|
5653
|
-
return /* @__PURE__ */
|
|
5644
|
+
return /* @__PURE__ */ jsx72(
|
|
5654
5645
|
"span",
|
|
5655
5646
|
{
|
|
5656
5647
|
role: "img",
|
|
@@ -5684,8 +5675,8 @@ function AddToRegistry({ title: titleProp, providers, productId }) {
|
|
|
5684
5675
|
onClick: () => setOpen((v) => !v),
|
|
5685
5676
|
"aria-expanded": open,
|
|
5686
5677
|
children: [
|
|
5687
|
-
/* @__PURE__ */
|
|
5688
|
-
/* @__PURE__ */
|
|
5678
|
+
/* @__PURE__ */ jsx72("span", { children: title }),
|
|
5679
|
+
/* @__PURE__ */ jsx72(
|
|
5689
5680
|
motion17.svg,
|
|
5690
5681
|
{
|
|
5691
5682
|
className: "registry__chevron",
|
|
@@ -5700,13 +5691,13 @@ function AddToRegistry({ title: titleProp, providers, productId }) {
|
|
|
5700
5691
|
"aria-hidden": "true",
|
|
5701
5692
|
animate: { rotate: open ? 180 : 0 },
|
|
5702
5693
|
transition: { type: "spring", stiffness: 420, damping: 30 },
|
|
5703
|
-
children: /* @__PURE__ */
|
|
5694
|
+
children: /* @__PURE__ */ jsx72("path", { d: "M6 9l6 6 6-6" })
|
|
5704
5695
|
}
|
|
5705
5696
|
)
|
|
5706
5697
|
]
|
|
5707
5698
|
}
|
|
5708
5699
|
),
|
|
5709
|
-
/* @__PURE__ */
|
|
5700
|
+
/* @__PURE__ */ jsx72(AnimatePresence11, { initial: false, children: open && /* @__PURE__ */ jsx72(
|
|
5710
5701
|
motion17.div,
|
|
5711
5702
|
{
|
|
5712
5703
|
className: "registry__menu",
|
|
@@ -5714,7 +5705,7 @@ function AddToRegistry({ title: titleProp, providers, productId }) {
|
|
|
5714
5705
|
animate: { height: "auto", opacity: 1 },
|
|
5715
5706
|
exit: { height: 0, opacity: 0 },
|
|
5716
5707
|
transition: { duration: 0.24, ease: [0.16, 1, 0.3, 1] },
|
|
5717
|
-
children: providers.map((p) => /* @__PURE__ */
|
|
5708
|
+
children: providers.map((p) => /* @__PURE__ */ jsx72(
|
|
5718
5709
|
"a",
|
|
5719
5710
|
{
|
|
5720
5711
|
className: "registry__item",
|
|
@@ -5723,7 +5714,7 @@ function AddToRegistry({ title: titleProp, providers, productId }) {
|
|
|
5723
5714
|
rel: "noopener noreferrer",
|
|
5724
5715
|
onClick: () => onProviderClick(p.id),
|
|
5725
5716
|
"aria-label": labels.addTo(p.label),
|
|
5726
|
-
children: /* @__PURE__ */
|
|
5717
|
+
children: /* @__PURE__ */ jsx72(RegistryLogo, { id: p.id, label: p.label })
|
|
5727
5718
|
},
|
|
5728
5719
|
p.id
|
|
5729
5720
|
))
|
|
@@ -5736,7 +5727,7 @@ function AddToRegistry({ title: titleProp, providers, productId }) {
|
|
|
5736
5727
|
import React47, { useEffect as useEffect8, useRef as useRef8, useState as useState14, useCallback as useCallback8 } from "react";
|
|
5737
5728
|
import { AnimatePresence as AnimatePresence12, motion as motion18 } from "framer-motion";
|
|
5738
5729
|
import { Check as Check2, Loader2 } from "lucide-react";
|
|
5739
|
-
import { jsx as
|
|
5730
|
+
import { jsx as jsx73, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
5740
5731
|
var AddToCartButton = React47.forwardRef(
|
|
5741
5732
|
({ className, onAddToCart, addedLabel, addedDurationMs = 2e3, children, disabled, ...props }, ref) => {
|
|
5742
5733
|
const labels = useLabels().product;
|
|
@@ -5760,7 +5751,7 @@ var AddToCartButton = React47.forwardRef(
|
|
|
5760
5751
|
setState("idle");
|
|
5761
5752
|
}
|
|
5762
5753
|
}, [onAddToCart, addedDurationMs]);
|
|
5763
|
-
return /* @__PURE__ */
|
|
5754
|
+
return /* @__PURE__ */ jsx73(
|
|
5764
5755
|
Button,
|
|
5765
5756
|
{
|
|
5766
5757
|
ref,
|
|
@@ -5769,7 +5760,7 @@ var AddToCartButton = React47.forwardRef(
|
|
|
5769
5760
|
disabled: disabled || state === "loading",
|
|
5770
5761
|
"aria-live": "polite",
|
|
5771
5762
|
...props,
|
|
5772
|
-
children: /* @__PURE__ */
|
|
5763
|
+
children: /* @__PURE__ */ jsx73(AnimatePresence12, { mode: "wait", initial: false, children: state === "loading" ? /* @__PURE__ */ jsxs50(
|
|
5773
5764
|
motion18.span,
|
|
5774
5765
|
{
|
|
5775
5766
|
className: "flex items-center justify-center gap-2",
|
|
@@ -5778,7 +5769,7 @@ var AddToCartButton = React47.forwardRef(
|
|
|
5778
5769
|
exit: { opacity: 0, y: -4 },
|
|
5779
5770
|
transition: { duration: 0.15 },
|
|
5780
5771
|
children: [
|
|
5781
|
-
/* @__PURE__ */
|
|
5772
|
+
/* @__PURE__ */ jsx73(Loader2, { className: "h-4 w-4 animate-spin", "aria-hidden": "true" }),
|
|
5782
5773
|
labels.adding
|
|
5783
5774
|
]
|
|
5784
5775
|
},
|
|
@@ -5792,12 +5783,12 @@ var AddToCartButton = React47.forwardRef(
|
|
|
5792
5783
|
exit: { opacity: 0, scale: 0.9 },
|
|
5793
5784
|
transition: { type: "spring", stiffness: 500, damping: 28 },
|
|
5794
5785
|
children: [
|
|
5795
|
-
/* @__PURE__ */
|
|
5786
|
+
/* @__PURE__ */ jsx73(Check2, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
5796
5787
|
addedText
|
|
5797
5788
|
]
|
|
5798
5789
|
},
|
|
5799
5790
|
"added"
|
|
5800
|
-
) : /* @__PURE__ */
|
|
5791
|
+
) : /* @__PURE__ */ jsx73(
|
|
5801
5792
|
motion18.span,
|
|
5802
5793
|
{
|
|
5803
5794
|
initial: { opacity: 0 },
|
|
@@ -5819,7 +5810,7 @@ import React48 from "react";
|
|
|
5819
5810
|
import { motion as motion19 } from "framer-motion";
|
|
5820
5811
|
import { Minus as Minus2, Plus as Plus3, Trash2 as Trash22 } from "lucide-react";
|
|
5821
5812
|
import { useCartLineRow as useCartLineRow2 } from "@40rty/ams-sdk";
|
|
5822
|
-
import { jsx as
|
|
5813
|
+
import { jsx as jsx74, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
5823
5814
|
var CartLineItem = React48.forwardRef(
|
|
5824
5815
|
({ className, line, onUpdateQuantity, onRemove, onNavigate, ...props }, ref) => {
|
|
5825
5816
|
const labels = useLabels().cart;
|
|
@@ -5828,7 +5819,7 @@ var CartLineItem = React48.forwardRef(
|
|
|
5828
5819
|
const { pending, interaction, spotlightKey } = useCartLineRow2(line, { onNavigated: onNavigate });
|
|
5829
5820
|
const onNavClick = interaction === void 0 ? void 0 : interaction.onClick;
|
|
5830
5821
|
return /* @__PURE__ */ jsxs51("div", { ref, className: cn("relative flex gap-4 py-4", className), ...props, children: [
|
|
5831
|
-
spotlightKey !== null && /* @__PURE__ */
|
|
5822
|
+
spotlightKey !== null && /* @__PURE__ */ jsx74(
|
|
5832
5823
|
motion19.div,
|
|
5833
5824
|
{
|
|
5834
5825
|
className: "pointer-events-none absolute -inset-x-2 inset-y-0 rounded-md bg-[var(--fourty-color-text)]",
|
|
@@ -5838,7 +5829,7 @@ var CartLineItem = React48.forwardRef(
|
|
|
5838
5829
|
},
|
|
5839
5830
|
spotlightKey
|
|
5840
5831
|
),
|
|
5841
|
-
/* @__PURE__ */
|
|
5832
|
+
/* @__PURE__ */ jsx74(
|
|
5842
5833
|
"button",
|
|
5843
5834
|
{
|
|
5844
5835
|
type: "button",
|
|
@@ -5851,7 +5842,7 @@ var CartLineItem = React48.forwardRef(
|
|
|
5851
5842
|
style: { all: onNavClick ? "unset" : void 0, cursor: onNavClick ? "pointer" : "default", borderRadius: 6 },
|
|
5852
5843
|
"aria-label": onNavClick ? labels.openLine(line.title) : void 0,
|
|
5853
5844
|
tabIndex: onNavClick ? 0 : -1,
|
|
5854
|
-
children: /* @__PURE__ */
|
|
5845
|
+
children: /* @__PURE__ */ jsx74(
|
|
5855
5846
|
ProductImage,
|
|
5856
5847
|
{
|
|
5857
5848
|
src: line.image?.url,
|
|
@@ -5865,7 +5856,7 @@ var CartLineItem = React48.forwardRef(
|
|
|
5865
5856
|
/* @__PURE__ */ jsxs51("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
5866
5857
|
/* @__PURE__ */ jsxs51("div", { className: "flex justify-between", children: [
|
|
5867
5858
|
/* @__PURE__ */ jsxs51("div", { className: "min-w-0", children: [
|
|
5868
|
-
/* @__PURE__ */
|
|
5859
|
+
/* @__PURE__ */ jsx74(
|
|
5869
5860
|
"h4",
|
|
5870
5861
|
{
|
|
5871
5862
|
className: cn(
|
|
@@ -5883,13 +5874,13 @@ var CartLineItem = React48.forwardRef(
|
|
|
5883
5874
|
children: line.title.length > 0 ? line.title : labels.linePending
|
|
5884
5875
|
}
|
|
5885
5876
|
),
|
|
5886
|
-
line.variantTitle && line.variantTitle !== "Default Title" && /* @__PURE__ */
|
|
5877
|
+
line.variantTitle && line.variantTitle !== "Default Title" && /* @__PURE__ */ jsx74("p", { className: "text-xs text-[var(--fourty-color-text-subtle)]", children: line.variantTitle })
|
|
5887
5878
|
] }),
|
|
5888
|
-
/* @__PURE__ */
|
|
5879
|
+
/* @__PURE__ */ jsx74("p", { className: "ms-2 text-sm font-medium text-[var(--fourty-color-text)]", children: pending && line.totalPrice.amount === 0 ? labels.linePendingPrice : formatMoney(line.totalPrice, locale) })
|
|
5889
5880
|
] }),
|
|
5890
5881
|
/* @__PURE__ */ jsxs51("div", { className: "mt-2 flex items-center gap-3", children: [
|
|
5891
5882
|
/* @__PURE__ */ jsxs51("div", { className: "flex items-center rounded-md border border-[var(--fourty-color-border)]", children: [
|
|
5892
|
-
/* @__PURE__ */
|
|
5883
|
+
/* @__PURE__ */ jsx74(
|
|
5893
5884
|
"button",
|
|
5894
5885
|
{
|
|
5895
5886
|
type: "button",
|
|
@@ -5897,10 +5888,10 @@ var CartLineItem = React48.forwardRef(
|
|
|
5897
5888
|
disabled: decDisabled || pending,
|
|
5898
5889
|
className: "flex h-7 w-7 items-center justify-center text-[var(--fourty-color-text-subtle)] transition-colors hover:bg-[var(--fourty-color-surface-raised)] hover:text-[var(--fourty-color-text)] disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent",
|
|
5899
5890
|
"aria-label": labels.decrease,
|
|
5900
|
-
children: /* @__PURE__ */
|
|
5891
|
+
children: /* @__PURE__ */ jsx74(Minus2, { className: "h-3 w-3", "aria-hidden": "true" })
|
|
5901
5892
|
}
|
|
5902
5893
|
),
|
|
5903
|
-
/* @__PURE__ */
|
|
5894
|
+
/* @__PURE__ */ jsx74(
|
|
5904
5895
|
"span",
|
|
5905
5896
|
{
|
|
5906
5897
|
className: "min-w-[28px] px-1 text-center text-sm tabular-nums text-[var(--fourty-color-text)]",
|
|
@@ -5908,7 +5899,7 @@ var CartLineItem = React48.forwardRef(
|
|
|
5908
5899
|
children: line.quantity
|
|
5909
5900
|
}
|
|
5910
5901
|
),
|
|
5911
|
-
/* @__PURE__ */
|
|
5902
|
+
/* @__PURE__ */ jsx74(
|
|
5912
5903
|
"button",
|
|
5913
5904
|
{
|
|
5914
5905
|
type: "button",
|
|
@@ -5916,11 +5907,11 @@ var CartLineItem = React48.forwardRef(
|
|
|
5916
5907
|
disabled: pending,
|
|
5917
5908
|
className: "flex h-7 w-7 items-center justify-center text-[var(--fourty-color-text-subtle)] transition-colors hover:bg-[var(--fourty-color-surface-raised)] hover:text-[var(--fourty-color-text)] disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent",
|
|
5918
5909
|
"aria-label": labels.increase,
|
|
5919
|
-
children: /* @__PURE__ */
|
|
5910
|
+
children: /* @__PURE__ */ jsx74(Plus3, { className: "h-3 w-3", "aria-hidden": "true" })
|
|
5920
5911
|
}
|
|
5921
5912
|
)
|
|
5922
5913
|
] }),
|
|
5923
|
-
/* @__PURE__ */
|
|
5914
|
+
/* @__PURE__ */ jsx74(
|
|
5924
5915
|
"button",
|
|
5925
5916
|
{
|
|
5926
5917
|
type: "button",
|
|
@@ -5928,7 +5919,7 @@ var CartLineItem = React48.forwardRef(
|
|
|
5928
5919
|
disabled: pending,
|
|
5929
5920
|
className: "flex h-7 w-7 items-center justify-center rounded-md text-[var(--fourty-color-text-subtle)] transition-colors hover:bg-[var(--fourty-color-surface-raised)] hover:text-[var(--fourty-color-text)] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[var(--fourty-color-text)] disabled:cursor-not-allowed disabled:opacity-40 disabled:hover:bg-transparent",
|
|
5930
5921
|
"aria-label": labels.removeItem,
|
|
5931
|
-
children: /* @__PURE__ */
|
|
5922
|
+
children: /* @__PURE__ */ jsx74(Trash22, { className: "h-3.5 w-3.5", "aria-hidden": "true" })
|
|
5932
5923
|
}
|
|
5933
5924
|
)
|
|
5934
5925
|
] })
|
|
@@ -5940,7 +5931,7 @@ CartLineItem.displayName = "CartLineItem";
|
|
|
5940
5931
|
|
|
5941
5932
|
// src/components/ecommerce/cart/CartSummary.tsx
|
|
5942
5933
|
import React49 from "react";
|
|
5943
|
-
import { jsx as
|
|
5934
|
+
import { jsx as jsx75, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
5944
5935
|
var CartSummary = React49.forwardRef(
|
|
5945
5936
|
({ className, cart, onCheckout, ...props }, ref) => {
|
|
5946
5937
|
const labels = useLabels().cart.summary;
|
|
@@ -5953,11 +5944,11 @@ var CartSummary = React49.forwardRef(
|
|
|
5953
5944
|
...props,
|
|
5954
5945
|
children: [
|
|
5955
5946
|
/* @__PURE__ */ jsxs52("div", { className: "flex justify-between text-base font-medium text-[var(--fourty-color-text)]", children: [
|
|
5956
|
-
/* @__PURE__ */
|
|
5957
|
-
/* @__PURE__ */
|
|
5947
|
+
/* @__PURE__ */ jsx75("span", { children: labels.subtotal }),
|
|
5948
|
+
/* @__PURE__ */ jsx75("span", { children: formatMoney(cart.subtotal, locale) })
|
|
5958
5949
|
] }),
|
|
5959
|
-
/* @__PURE__ */
|
|
5960
|
-
/* @__PURE__ */
|
|
5950
|
+
/* @__PURE__ */ jsx75("p", { className: "text-sm text-[var(--fourty-color-text-subtle)]", children: labels.note }),
|
|
5951
|
+
/* @__PURE__ */ jsx75(Button, { className: "w-full", onClick: onCheckout, children: labels.checkout })
|
|
5961
5952
|
]
|
|
5962
5953
|
}
|
|
5963
5954
|
);
|
|
@@ -5973,7 +5964,7 @@ import * as React50 from "react";
|
|
|
5973
5964
|
import { createPortal as createPortal6 } from "react-dom";
|
|
5974
5965
|
import { ShoppingBag } from "lucide-react";
|
|
5975
5966
|
import { useSafeCart as useSafeCart3, useShellRoot as useShellRoot6 } from "@40rty/ams-sdk";
|
|
5976
|
-
import { Fragment as Fragment12, jsx as
|
|
5967
|
+
import { Fragment as Fragment12, jsx as jsx76, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
5977
5968
|
function CartWidget() {
|
|
5978
5969
|
const cart = useSafeCart3();
|
|
5979
5970
|
const labels = useLabels().cart;
|
|
@@ -5993,7 +5984,7 @@ function CartWidget() {
|
|
|
5993
5984
|
return;
|
|
5994
5985
|
}, [cart]);
|
|
5995
5986
|
if (!cart) return null;
|
|
5996
|
-
const drawer = /* @__PURE__ */
|
|
5987
|
+
const drawer = /* @__PURE__ */ jsx76(
|
|
5997
5988
|
CartDrawer,
|
|
5998
5989
|
{
|
|
5999
5990
|
open,
|
|
@@ -6033,8 +6024,8 @@ function CartWidget() {
|
|
|
6033
6024
|
transition: "transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1)"
|
|
6034
6025
|
},
|
|
6035
6026
|
children: [
|
|
6036
|
-
/* @__PURE__ */
|
|
6037
|
-
cart.totalQuantity > 0 && /* @__PURE__ */
|
|
6027
|
+
/* @__PURE__ */ jsx76(ShoppingBag, { size: 18, strokeWidth: 2 }),
|
|
6028
|
+
cart.totalQuantity > 0 && /* @__PURE__ */ jsx76(
|
|
6038
6029
|
"span",
|
|
6039
6030
|
{
|
|
6040
6031
|
style: {
|
|
@@ -6071,7 +6062,7 @@ import { usePendingVariantChoice, clearVariantChoice, PRODUCT_SELECT_OPTION_SIGN
|
|
|
6071
6062
|
import { resolveProductVariant as resolveProductVariant2, preselectFromFacts } from "@40rty/ams-sdk";
|
|
6072
6063
|
import { formatVariantValue as formatVariantValue2 } from "@40rty/ams-sdk";
|
|
6073
6064
|
import { buildOptimisticCartLine as buildOptimisticCartLine2 } from "@40rty/ams-sdk";
|
|
6074
|
-
import { Fragment as Fragment13, jsx as
|
|
6065
|
+
import { Fragment as Fragment13, jsx as jsx77, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
6075
6066
|
function deriveHeader(choice, locale) {
|
|
6076
6067
|
const title = choice.product.title;
|
|
6077
6068
|
let image = null;
|
|
@@ -6131,9 +6122,9 @@ function VariantPickerModal() {
|
|
|
6131
6122
|
const ready = gap !== null && gap.options.every(
|
|
6132
6123
|
(axis) => axis.values.some((v) => v.value === selections[axis.name] && v.available)
|
|
6133
6124
|
);
|
|
6134
|
-
return /* @__PURE__ */
|
|
6125
|
+
return /* @__PURE__ */ jsx77(Modal, { open: choice !== null, onClose, label: labels.variantPicker.title, children: gap !== null && header !== null && /* @__PURE__ */ jsxs54(Fragment13, { children: [
|
|
6135
6126
|
/* @__PURE__ */ jsxs54("div", { className: "variant-picker-modal__product", children: [
|
|
6136
|
-
header.image !== null && /* @__PURE__ */
|
|
6127
|
+
header.image !== null && /* @__PURE__ */ jsx77("div", { className: "variant-picker-modal__thumb", children: /* @__PURE__ */ jsx77(
|
|
6137
6128
|
"img",
|
|
6138
6129
|
{
|
|
6139
6130
|
src: header.image.url,
|
|
@@ -6143,16 +6134,16 @@ function VariantPickerModal() {
|
|
|
6143
6134
|
}
|
|
6144
6135
|
) }),
|
|
6145
6136
|
/* @__PURE__ */ jsxs54("div", { className: "variant-picker-modal__meta", children: [
|
|
6146
|
-
/* @__PURE__ */
|
|
6147
|
-
header.priceText !== "" && /* @__PURE__ */
|
|
6137
|
+
/* @__PURE__ */ jsx77("div", { className: "variant-picker-modal__name", children: header.title }),
|
|
6138
|
+
header.priceText !== "" && /* @__PURE__ */ jsx77("div", { className: "variant-picker-modal__price", children: header.priceText })
|
|
6148
6139
|
] })
|
|
6149
6140
|
] }),
|
|
6150
|
-
/* @__PURE__ */
|
|
6151
|
-
/* @__PURE__ */
|
|
6152
|
-
/* @__PURE__ */
|
|
6141
|
+
/* @__PURE__ */ jsx77("div", { className: "variant-picker", children: gap.options.map((axis) => /* @__PURE__ */ jsxs54("div", { className: "variant-picker__row", children: [
|
|
6142
|
+
/* @__PURE__ */ jsx77("div", { className: "variant-picker__label", children: axis.name }),
|
|
6143
|
+
/* @__PURE__ */ jsx77("div", { className: "variant-picker__chips", children: axis.values.map((value) => {
|
|
6153
6144
|
const isActive = selections[axis.name] === value.value;
|
|
6154
6145
|
const hasImage = value.image !== void 0;
|
|
6155
|
-
return /* @__PURE__ */
|
|
6146
|
+
return /* @__PURE__ */ jsx77(
|
|
6156
6147
|
"button",
|
|
6157
6148
|
{
|
|
6158
6149
|
type: "button",
|
|
@@ -6165,15 +6156,15 @@ function VariantPickerModal() {
|
|
|
6165
6156
|
touchedForProductRef.current = productId;
|
|
6166
6157
|
setSelections((prev) => ({ ...prev, [axis.name]: value.value }));
|
|
6167
6158
|
},
|
|
6168
|
-
children: value.image !== void 0 ? /* @__PURE__ */
|
|
6159
|
+
children: value.image !== void 0 ? /* @__PURE__ */ jsx77("img", { src: value.image.url, alt: value.image.altText, loading: "lazy" }) : formatVariantValue2(value.value)
|
|
6169
6160
|
},
|
|
6170
6161
|
value.value
|
|
6171
6162
|
);
|
|
6172
6163
|
}) })
|
|
6173
6164
|
] }, axis.name)) }),
|
|
6174
6165
|
/* @__PURE__ */ jsxs54("div", { className: "variant-picker__actions", children: [
|
|
6175
|
-
/* @__PURE__ */
|
|
6176
|
-
/* @__PURE__ */
|
|
6166
|
+
/* @__PURE__ */ jsx77("button", { type: "button", className: "btn-ghost", onClick: onClose, children: labels.variantPicker.dismiss }),
|
|
6167
|
+
/* @__PURE__ */ jsx77("button", { type: "button", className: "btn-primary", disabled: !ready, onClick: onConfirm, children: labels.product.addToBag })
|
|
6177
6168
|
] })
|
|
6178
6169
|
] }) });
|
|
6179
6170
|
}
|
|
@@ -6182,7 +6173,7 @@ function VariantPickerModal() {
|
|
|
6182
6173
|
import * as React52 from "react";
|
|
6183
6174
|
import { AnimatePresence as AnimatePresence13, motion as motion20 } from "framer-motion";
|
|
6184
6175
|
import { useProducts as useProducts2, useCommerceActions as useCommerceActions3 } from "@40rty/ams-sdk";
|
|
6185
|
-
import { Fragment as Fragment14, jsx as
|
|
6176
|
+
import { Fragment as Fragment14, jsx as jsx78, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
6186
6177
|
function WishlistDrawer({ open, onClose, productIds, onRemove }) {
|
|
6187
6178
|
const actions = useCommerceActions3();
|
|
6188
6179
|
const labels = useLabels().wishlist;
|
|
@@ -6195,8 +6186,8 @@ function WishlistDrawer({ open, onClose, productIds, onRemove }) {
|
|
|
6195
6186
|
onClose();
|
|
6196
6187
|
actions.navigateToProduct(productId, title);
|
|
6197
6188
|
}, [actions, onClose]);
|
|
6198
|
-
return /* @__PURE__ */
|
|
6199
|
-
/* @__PURE__ */
|
|
6189
|
+
return /* @__PURE__ */ jsx78(AnimatePresence13, { children: open && /* @__PURE__ */ jsxs55(Fragment14, { children: [
|
|
6190
|
+
/* @__PURE__ */ jsx78(
|
|
6200
6191
|
motion20.div,
|
|
6201
6192
|
{
|
|
6202
6193
|
className: "cart-drawer-backdrop open",
|
|
@@ -6224,12 +6215,12 @@ function WishlistDrawer({ open, onClose, productIds, onRemove }) {
|
|
|
6224
6215
|
children: [
|
|
6225
6216
|
/* @__PURE__ */ jsxs55("div", { className: "cart-drawer__head", children: [
|
|
6226
6217
|
/* @__PURE__ */ jsxs55("div", { children: [
|
|
6227
|
-
/* @__PURE__ */
|
|
6228
|
-
/* @__PURE__ */
|
|
6218
|
+
/* @__PURE__ */ jsx78("h3", { id: "wishlist-drawer-title", children: labels.title }),
|
|
6219
|
+
/* @__PURE__ */ jsx78("div", { className: "count", children: labels.pieces(count) })
|
|
6229
6220
|
] }),
|
|
6230
|
-
/* @__PURE__ */
|
|
6221
|
+
/* @__PURE__ */ jsx78("button", { type: "button", className: "icon-btn", onClick: onClose, "aria-label": labels.close, children: /* @__PURE__ */ jsx78("svg", { width: "14", height: "14", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: /* @__PURE__ */ jsx78("path", { d: "M18 6 6 18M6 6l12 12" }) }) })
|
|
6231
6222
|
] }),
|
|
6232
|
-
/* @__PURE__ */
|
|
6223
|
+
/* @__PURE__ */ jsx78("div", { className: "cart-drawer__body", children: count === 0 ? /* @__PURE__ */ jsx78(EmptyState, {}) : products.length === 0 && productsQuery.isLoading ? /* @__PURE__ */ jsx78(LoadingRows, { count: Math.min(count, 4) }) : products.map((product) => /* @__PURE__ */ jsx78(
|
|
6233
6224
|
WishlistRow,
|
|
6234
6225
|
{
|
|
6235
6226
|
product,
|
|
@@ -6240,8 +6231,8 @@ function WishlistDrawer({ open, onClose, productIds, onRemove }) {
|
|
|
6240
6231
|
)) }),
|
|
6241
6232
|
count > 0 && /* @__PURE__ */ jsxs55("div", { className: "cart-drawer__foot", children: [
|
|
6242
6233
|
/* @__PURE__ */ jsxs55("div", { className: "row", style: { color: "var(--fg3)" }, children: [
|
|
6243
|
-
/* @__PURE__ */
|
|
6244
|
-
/* @__PURE__ */
|
|
6234
|
+
/* @__PURE__ */ jsx78("span", { children: labels.saved }),
|
|
6235
|
+
/* @__PURE__ */ jsx78("span", { children: labels.pieces(count) })
|
|
6245
6236
|
] }),
|
|
6246
6237
|
/* @__PURE__ */ jsxs55(
|
|
6247
6238
|
"button",
|
|
@@ -6257,7 +6248,7 @@ function WishlistDrawer({ open, onClose, productIds, onRemove }) {
|
|
|
6257
6248
|
children: [
|
|
6258
6249
|
labels.viewAll,
|
|
6259
6250
|
" ",
|
|
6260
|
-
/* @__PURE__ */
|
|
6251
|
+
/* @__PURE__ */ jsx78("span", { "aria-hidden": "true", className: "rtl:inline-block rtl:-scale-x-100", children: "\u2192" })
|
|
6261
6252
|
]
|
|
6262
6253
|
}
|
|
6263
6254
|
)
|
|
@@ -6294,7 +6285,7 @@ function WishlistRow({ product, onView, onRemove }) {
|
|
|
6294
6285
|
},
|
|
6295
6286
|
style: { cursor: "pointer" },
|
|
6296
6287
|
children: [
|
|
6297
|
-
/* @__PURE__ */
|
|
6288
|
+
/* @__PURE__ */ jsx78("div", { className: "cart-line__img", children: image && /* @__PURE__ */ jsx78(
|
|
6298
6289
|
"img",
|
|
6299
6290
|
{
|
|
6300
6291
|
src: image,
|
|
@@ -6303,10 +6294,10 @@ function WishlistRow({ product, onView, onRemove }) {
|
|
|
6303
6294
|
}
|
|
6304
6295
|
) }),
|
|
6305
6296
|
/* @__PURE__ */ jsxs55("div", { children: [
|
|
6306
|
-
brand && /* @__PURE__ */
|
|
6307
|
-
/* @__PURE__ */
|
|
6308
|
-
priceLabel && /* @__PURE__ */
|
|
6309
|
-
/* @__PURE__ */
|
|
6297
|
+
brand && /* @__PURE__ */ jsx78("span", { className: "product-card__brand", children: brand }),
|
|
6298
|
+
/* @__PURE__ */ jsx78("div", { className: "cart-line__name", children: title }),
|
|
6299
|
+
priceLabel && /* @__PURE__ */ jsx78("div", { className: "cart-line__sku", children: priceLabel }),
|
|
6300
|
+
/* @__PURE__ */ jsx78(
|
|
6310
6301
|
"button",
|
|
6311
6302
|
{
|
|
6312
6303
|
type: "button",
|
|
@@ -6317,14 +6308,14 @@ function WishlistRow({ product, onView, onRemove }) {
|
|
|
6317
6308
|
}
|
|
6318
6309
|
)
|
|
6319
6310
|
] }),
|
|
6320
|
-
/* @__PURE__ */
|
|
6311
|
+
/* @__PURE__ */ jsx78("div", { className: "cart-line__price rtl:-scale-x-100", "aria-hidden": "true", children: "\u2192" })
|
|
6321
6312
|
]
|
|
6322
6313
|
}
|
|
6323
6314
|
);
|
|
6324
6315
|
}
|
|
6325
6316
|
function EmptyState() {
|
|
6326
6317
|
const labels = useLabels().wishlist;
|
|
6327
|
-
return /* @__PURE__ */
|
|
6318
|
+
return /* @__PURE__ */ jsx78("div", { style: {
|
|
6328
6319
|
padding: "60px 0",
|
|
6329
6320
|
color: "var(--fg3)",
|
|
6330
6321
|
fontFamily: "var(--font-mono)",
|
|
@@ -6335,13 +6326,13 @@ function EmptyState() {
|
|
|
6335
6326
|
}, children: labels.empty });
|
|
6336
6327
|
}
|
|
6337
6328
|
function LoadingRows({ count }) {
|
|
6338
|
-
return /* @__PURE__ */
|
|
6339
|
-
/* @__PURE__ */
|
|
6329
|
+
return /* @__PURE__ */ jsx78(Fragment14, { children: Array.from({ length: count }).map((_, i) => /* @__PURE__ */ jsxs55("div", { className: "cart-line", "aria-hidden": "true", children: [
|
|
6330
|
+
/* @__PURE__ */ jsx78("div", { className: "cart-line__img", style: { background: "var(--bg-sunken)" } }),
|
|
6340
6331
|
/* @__PURE__ */ jsxs55("div", { children: [
|
|
6341
|
-
/* @__PURE__ */
|
|
6342
|
-
/* @__PURE__ */
|
|
6332
|
+
/* @__PURE__ */ jsx78("div", { style: { height: 10, width: 80, background: "var(--bg-sunken)", marginBottom: 8 } }),
|
|
6333
|
+
/* @__PURE__ */ jsx78("div", { style: { height: 14, width: 180, background: "var(--bg-sunken)" } })
|
|
6343
6334
|
] }),
|
|
6344
|
-
/* @__PURE__ */
|
|
6335
|
+
/* @__PURE__ */ jsx78("div", {})
|
|
6345
6336
|
] }, i)) });
|
|
6346
6337
|
}
|
|
6347
6338
|
|
|
@@ -6349,7 +6340,7 @@ function LoadingRows({ count }) {
|
|
|
6349
6340
|
import React53 from "react";
|
|
6350
6341
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
6351
6342
|
import { useCommerceActions as useCommerceActions4 } from "@40rty/ams-sdk";
|
|
6352
|
-
import { jsx as
|
|
6343
|
+
import { jsx as jsx79, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
6353
6344
|
var CollectionCard = React53.forwardRef(
|
|
6354
6345
|
({ className, collection, title, imageSrc, imageAlt, asChild = false, onClick: onClickProp, ...props }, ref) => {
|
|
6355
6346
|
const resolvedTitle = title ? title : collection ? collection.title : "";
|
|
@@ -6384,7 +6375,7 @@ var CollectionCard = React53.forwardRef(
|
|
|
6384
6375
|
tabIndex: isClickable ? 0 : void 0,
|
|
6385
6376
|
...props,
|
|
6386
6377
|
children: [
|
|
6387
|
-
/* @__PURE__ */
|
|
6378
|
+
/* @__PURE__ */ jsx79("div", { className: "aspect-[4/3] bg-[var(--fourty-color-bg-subtle)]", children: resolvedImageSrc ? /* @__PURE__ */ jsx79(
|
|
6388
6379
|
"img",
|
|
6389
6380
|
{
|
|
6390
6381
|
src: resolvedImageSrc,
|
|
@@ -6392,8 +6383,8 @@ var CollectionCard = React53.forwardRef(
|
|
|
6392
6383
|
className: "h-full w-full object-cover transition-transform duration-500 group-hover:scale-105",
|
|
6393
6384
|
loading: "lazy"
|
|
6394
6385
|
}
|
|
6395
|
-
) : /* @__PURE__ */
|
|
6396
|
-
/* @__PURE__ */
|
|
6386
|
+
) : /* @__PURE__ */ jsx79("div", { className: "flex h-full items-center justify-center text-[var(--fourty-color-text-subtle)]", children: resolvedTitle }) }),
|
|
6387
|
+
/* @__PURE__ */ jsx79("div", { className: "absolute inset-0 flex items-end bg-gradient-to-t from-[rgba(10,11,13,0.65)] to-transparent p-6", children: /* @__PURE__ */ jsx79("h3", { className: "text-xl font-bold tracking-tight text-[#F4F2EC]", children: resolvedTitle }) })
|
|
6397
6388
|
]
|
|
6398
6389
|
}
|
|
6399
6390
|
);
|
|
@@ -6403,10 +6394,10 @@ CollectionCard.displayName = "CollectionCard";
|
|
|
6403
6394
|
|
|
6404
6395
|
// src/components/ecommerce/collection/CollectionGrid.tsx
|
|
6405
6396
|
import React54 from "react";
|
|
6406
|
-
import { jsx as
|
|
6397
|
+
import { jsx as jsx80 } from "react/jsx-runtime";
|
|
6407
6398
|
var CollectionGrid = React54.forwardRef(
|
|
6408
6399
|
({ className, collections, onCollectionClick, columns = 3, ...props }, ref) => {
|
|
6409
|
-
return /* @__PURE__ */
|
|
6400
|
+
return /* @__PURE__ */ jsx80(Grid, { ref, columns, className: cn(className), ...props, children: collections.map((collection) => /* @__PURE__ */ jsx80(
|
|
6410
6401
|
CollectionCard,
|
|
6411
6402
|
{
|
|
6412
6403
|
collection,
|
|
@@ -6424,16 +6415,16 @@ import React55, { useState as useState17 } from "react";
|
|
|
6424
6415
|
|
|
6425
6416
|
// src/components/marketing/internal/AnnouncementMessage.tsx
|
|
6426
6417
|
import { useAction as useAction4 } from "@40rty/ams-sdk";
|
|
6427
|
-
import { jsx as
|
|
6418
|
+
import { jsx as jsx81 } from "react/jsx-runtime";
|
|
6428
6419
|
function AnnouncementMessage({
|
|
6429
6420
|
text,
|
|
6430
6421
|
action
|
|
6431
6422
|
}) {
|
|
6432
6423
|
const onClick = useAction4(text, action);
|
|
6433
6424
|
if (!action || !onClick) {
|
|
6434
|
-
return /* @__PURE__ */
|
|
6425
|
+
return /* @__PURE__ */ jsx81("span", { children: text });
|
|
6435
6426
|
}
|
|
6436
|
-
return /* @__PURE__ */
|
|
6427
|
+
return /* @__PURE__ */ jsx81(
|
|
6437
6428
|
"button",
|
|
6438
6429
|
{
|
|
6439
6430
|
type: "button",
|
|
@@ -6446,13 +6437,13 @@ function AnnouncementMessage({
|
|
|
6446
6437
|
|
|
6447
6438
|
// src/components/marketing/internal/AnnouncementLink.tsx
|
|
6448
6439
|
import { useAction as useAction5 } from "@40rty/ams-sdk";
|
|
6449
|
-
import { jsx as
|
|
6440
|
+
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
6450
6441
|
function AnnouncementLink({
|
|
6451
6442
|
label,
|
|
6452
6443
|
action
|
|
6453
6444
|
}) {
|
|
6454
6445
|
const onClick = useAction5(label, action);
|
|
6455
|
-
return /* @__PURE__ */
|
|
6446
|
+
return /* @__PURE__ */ jsx82(
|
|
6456
6447
|
"button",
|
|
6457
6448
|
{
|
|
6458
6449
|
type: "button",
|
|
@@ -6464,7 +6455,7 @@ function AnnouncementLink({
|
|
|
6464
6455
|
}
|
|
6465
6456
|
|
|
6466
6457
|
// src/components/marketing/AnnouncementBar.tsx
|
|
6467
|
-
import { Fragment as Fragment15, jsx as
|
|
6458
|
+
import { Fragment as Fragment15, jsx as jsx83, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
6468
6459
|
var AnnouncementBar = React55.forwardRef(
|
|
6469
6460
|
({ className, messages = [], links, dismissible = false, onDismiss, ...props }, ref) => {
|
|
6470
6461
|
const [activeIndex, setActiveIndex] = useState17(0);
|
|
@@ -6486,39 +6477,39 @@ var AnnouncementBar = React55.forwardRef(
|
|
|
6486
6477
|
),
|
|
6487
6478
|
...props,
|
|
6488
6479
|
children: [
|
|
6489
|
-
/* @__PURE__ */
|
|
6490
|
-
/* @__PURE__ */
|
|
6480
|
+
/* @__PURE__ */ jsx83("div", { className: "flex flex-1 items-center gap-1", children: messages.length > 1 && /* @__PURE__ */ jsxs57(Fragment15, { children: [
|
|
6481
|
+
/* @__PURE__ */ jsx83(
|
|
6491
6482
|
"button",
|
|
6492
6483
|
{
|
|
6493
6484
|
type: "button",
|
|
6494
6485
|
onClick: handlePrev,
|
|
6495
6486
|
className: "opacity-70 hover:opacity-100",
|
|
6496
6487
|
"aria-label": labels.announcementPrev,
|
|
6497
|
-
children: /* @__PURE__ */
|
|
6488
|
+
children: /* @__PURE__ */ jsx83("svg", { className: "h-4 w-4 rtl:-scale-x-100", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx83("path", { fillRule: "evenodd", d: "M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z", clipRule: "evenodd" }) })
|
|
6498
6489
|
}
|
|
6499
6490
|
),
|
|
6500
|
-
/* @__PURE__ */
|
|
6491
|
+
/* @__PURE__ */ jsx83(
|
|
6501
6492
|
"button",
|
|
6502
6493
|
{
|
|
6503
6494
|
type: "button",
|
|
6504
6495
|
onClick: handleNext,
|
|
6505
6496
|
className: "opacity-70 hover:opacity-100",
|
|
6506
6497
|
"aria-label": labels.announcementNext,
|
|
6507
|
-
children: /* @__PURE__ */
|
|
6498
|
+
children: /* @__PURE__ */ jsx83("svg", { className: "h-4 w-4 rtl:-scale-x-100", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx83("path", { fillRule: "evenodd", d: "M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z", clipRule: "evenodd" }) })
|
|
6508
6499
|
}
|
|
6509
6500
|
)
|
|
6510
6501
|
] }) }),
|
|
6511
|
-
/* @__PURE__ */
|
|
6502
|
+
/* @__PURE__ */ jsx83("div", { className: "flex-1 text-center", children: activeMessage && /* @__PURE__ */ jsx83(AnnouncementMessage, { text: activeMessage.text, action: activeMessage.action }) }),
|
|
6512
6503
|
/* @__PURE__ */ jsxs57("div", { className: "flex flex-1 items-center justify-end gap-4", children: [
|
|
6513
|
-
links && links.map((link, i) => /* @__PURE__ */
|
|
6514
|
-
dismissible && /* @__PURE__ */
|
|
6504
|
+
links && links.map((link, i) => /* @__PURE__ */ jsx83(AnnouncementLink, { label: link.label, action: link.action }, i)),
|
|
6505
|
+
dismissible && /* @__PURE__ */ jsx83(
|
|
6515
6506
|
"button",
|
|
6516
6507
|
{
|
|
6517
6508
|
type: "button",
|
|
6518
6509
|
onClick: onDismiss,
|
|
6519
6510
|
className: "ms-2 opacity-70 hover:opacity-100",
|
|
6520
6511
|
"aria-label": labels.dismiss,
|
|
6521
|
-
children: /* @__PURE__ */
|
|
6512
|
+
children: /* @__PURE__ */ jsx83("svg", { className: "h-4 w-4", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx83("path", { fillRule: "evenodd", d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z", clipRule: "evenodd" }) })
|
|
6522
6513
|
}
|
|
6523
6514
|
)
|
|
6524
6515
|
] })
|
|
@@ -6532,7 +6523,7 @@ AnnouncementBar.displayName = "AnnouncementBar";
|
|
|
6532
6523
|
// src/components/marketing/PromoBanner.tsx
|
|
6533
6524
|
import React56 from "react";
|
|
6534
6525
|
import { useAction as useAction6 } from "@40rty/ams-sdk";
|
|
6535
|
-
import { jsx as
|
|
6526
|
+
import { jsx as jsx84, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
6536
6527
|
var PromoBanner = React56.forwardRef(
|
|
6537
6528
|
({ className, title, description, imageSrc, ctaLabel, ctaAction, layout = "horizontal", ...props }, ref) => {
|
|
6538
6529
|
const onCta = useAction6(ctaLabel ? ctaLabel : "", ctaAction);
|
|
@@ -6547,10 +6538,10 @@ var PromoBanner = React56.forwardRef(
|
|
|
6547
6538
|
),
|
|
6548
6539
|
...props,
|
|
6549
6540
|
children: [
|
|
6550
|
-
imageSrc && /* @__PURE__ */
|
|
6541
|
+
imageSrc && /* @__PURE__ */ jsx84("div", { className: cn(
|
|
6551
6542
|
"overflow-hidden",
|
|
6552
6543
|
layout === "horizontal" ? "sm:w-1/2" : "aspect-[2/1]"
|
|
6553
|
-
), children: /* @__PURE__ */
|
|
6544
|
+
), children: /* @__PURE__ */ jsx84(
|
|
6554
6545
|
"img",
|
|
6555
6546
|
{
|
|
6556
6547
|
src: imageSrc,
|
|
@@ -6562,9 +6553,9 @@ var PromoBanner = React56.forwardRef(
|
|
|
6562
6553
|
"flex flex-col justify-center p-6 sm:p-8",
|
|
6563
6554
|
layout === "horizontal" && "sm:w-1/2"
|
|
6564
6555
|
), children: [
|
|
6565
|
-
/* @__PURE__ */
|
|
6566
|
-
description && /* @__PURE__ */
|
|
6567
|
-
ctaLabel && /* @__PURE__ */
|
|
6556
|
+
/* @__PURE__ */ jsx84("h3", { className: "text-xl font-semibold text-[var(--fourty-color-text)] sm:text-2xl", children: title }),
|
|
6557
|
+
description && /* @__PURE__ */ jsx84("p", { className: "mt-2 text-[var(--fourty-color-text-subtle)]", children: description }),
|
|
6558
|
+
ctaLabel && /* @__PURE__ */ jsx84("div", { className: "mt-4", children: /* @__PURE__ */ jsx84(Button, { variant: "primary", onClick: onCta ? onCta : void 0, children: ctaLabel }) })
|
|
6568
6559
|
] })
|
|
6569
6560
|
]
|
|
6570
6561
|
}
|
|
@@ -6575,15 +6566,15 @@ PromoBanner.displayName = "PromoBanner";
|
|
|
6575
6566
|
|
|
6576
6567
|
// src/components/social/ReviewCard.tsx
|
|
6577
6568
|
import React57 from "react";
|
|
6578
|
-
import { jsx as
|
|
6569
|
+
import { jsx as jsx85, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
6579
6570
|
function StarRating2({ rating }) {
|
|
6580
|
-
return /* @__PURE__ */
|
|
6571
|
+
return /* @__PURE__ */ jsx85("div", { className: "flex gap-0.5", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsx85(
|
|
6581
6572
|
"svg",
|
|
6582
6573
|
{
|
|
6583
6574
|
className: cn("h-4 w-4", i < rating ? "text-amber-400" : "text-gray-200"),
|
|
6584
6575
|
fill: "currentColor",
|
|
6585
6576
|
viewBox: "0 0 20 20",
|
|
6586
|
-
children: /* @__PURE__ */
|
|
6577
|
+
children: /* @__PURE__ */ jsx85("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" })
|
|
6587
6578
|
},
|
|
6588
6579
|
i
|
|
6589
6580
|
)) });
|
|
@@ -6603,13 +6594,13 @@ var ReviewCard = React57.forwardRef(
|
|
|
6603
6594
|
children: [
|
|
6604
6595
|
/* @__PURE__ */ jsxs59("div", { className: "flex items-center justify-between", children: [
|
|
6605
6596
|
/* @__PURE__ */ jsxs59("div", { className: "flex items-center gap-2", children: [
|
|
6606
|
-
/* @__PURE__ */
|
|
6607
|
-
verified && /* @__PURE__ */
|
|
6597
|
+
/* @__PURE__ */ jsx85(StarRating2, { rating }),
|
|
6598
|
+
verified && /* @__PURE__ */ jsx85(Badge, { variant: "outline", children: labels.verified })
|
|
6608
6599
|
] }),
|
|
6609
|
-
/* @__PURE__ */
|
|
6600
|
+
/* @__PURE__ */ jsx85("span", { className: "text-xs text-[var(--fourty-color-text-subtle)]", children: date })
|
|
6610
6601
|
] }),
|
|
6611
|
-
/* @__PURE__ */
|
|
6612
|
-
/* @__PURE__ */
|
|
6602
|
+
/* @__PURE__ */ jsx85("p", { className: "text-sm text-[var(--fourty-color-text)]", children: text }),
|
|
6603
|
+
/* @__PURE__ */ jsx85("p", { className: "text-xs font-medium text-[var(--fourty-color-text-subtle)]", children: author })
|
|
6613
6604
|
]
|
|
6614
6605
|
}
|
|
6615
6606
|
);
|
|
@@ -6619,38 +6610,38 @@ ReviewCard.displayName = "ReviewCard";
|
|
|
6619
6610
|
|
|
6620
6611
|
// src/components/social/ReviewSummary.tsx
|
|
6621
6612
|
import React58 from "react";
|
|
6622
|
-
import { jsx as
|
|
6613
|
+
import { jsx as jsx86, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
6623
6614
|
var ReviewSummary = React58.forwardRef(
|
|
6624
6615
|
({ className, averageRating, totalReviews, distribution, ...props }, ref) => {
|
|
6625
6616
|
const labels = useLabels().rating;
|
|
6626
6617
|
return /* @__PURE__ */ jsxs60("div", { ref, className: cn("flex gap-8", className), ...props, children: [
|
|
6627
6618
|
/* @__PURE__ */ jsxs60("div", { className: "text-center", children: [
|
|
6628
|
-
/* @__PURE__ */
|
|
6629
|
-
/* @__PURE__ */
|
|
6619
|
+
/* @__PURE__ */ jsx86("p", { className: "text-4xl font-bold text-[var(--fourty-color-text)]", children: averageRating.toFixed(1) }),
|
|
6620
|
+
/* @__PURE__ */ jsx86("div", { className: "mt-1 flex justify-center gap-0.5", children: Array.from({ length: 5 }).map((_, i) => /* @__PURE__ */ jsx86(
|
|
6630
6621
|
"svg",
|
|
6631
6622
|
{
|
|
6632
6623
|
className: cn("h-4 w-4", i < Math.round(averageRating) ? "text-amber-400" : "text-gray-200"),
|
|
6633
6624
|
fill: "currentColor",
|
|
6634
6625
|
viewBox: "0 0 20 20",
|
|
6635
|
-
children: /* @__PURE__ */
|
|
6626
|
+
children: /* @__PURE__ */ jsx86("path", { d: "M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z" })
|
|
6636
6627
|
},
|
|
6637
6628
|
i
|
|
6638
6629
|
)) }),
|
|
6639
|
-
/* @__PURE__ */
|
|
6630
|
+
/* @__PURE__ */ jsx86("p", { className: "mt-1 text-sm text-[var(--fourty-color-text-subtle)]", children: labels.reviewsCount(totalReviews) })
|
|
6640
6631
|
] }),
|
|
6641
|
-
distribution && /* @__PURE__ */
|
|
6632
|
+
distribution && /* @__PURE__ */ jsx86("div", { className: "flex-1 space-y-1", children: [5, 4, 3, 2, 1].map((star) => {
|
|
6642
6633
|
const count = distribution[star] ?? 0;
|
|
6643
6634
|
const pct = totalReviews > 0 ? count / totalReviews * 100 : 0;
|
|
6644
6635
|
return /* @__PURE__ */ jsxs60("div", { className: "flex items-center gap-2 text-sm", children: [
|
|
6645
|
-
/* @__PURE__ */
|
|
6646
|
-
/* @__PURE__ */
|
|
6636
|
+
/* @__PURE__ */ jsx86("span", { className: "w-3 text-[var(--fourty-color-text-subtle)]", children: star }),
|
|
6637
|
+
/* @__PURE__ */ jsx86("div", { className: "h-2 flex-1 overflow-hidden rounded-full bg-[var(--fourty-color-bg-subtle)]", children: /* @__PURE__ */ jsx86(
|
|
6647
6638
|
"div",
|
|
6648
6639
|
{
|
|
6649
6640
|
className: "h-full rounded-full bg-amber-400",
|
|
6650
6641
|
style: { width: `${pct}%` }
|
|
6651
6642
|
}
|
|
6652
6643
|
) }),
|
|
6653
|
-
/* @__PURE__ */
|
|
6644
|
+
/* @__PURE__ */ jsx86("span", { className: "w-8 text-end text-xs text-[var(--fourty-color-text-subtle)]", children: count })
|
|
6654
6645
|
] }, star);
|
|
6655
6646
|
}) })
|
|
6656
6647
|
] });
|
|
@@ -6661,12 +6652,12 @@ ReviewSummary.displayName = "ReviewSummary";
|
|
|
6661
6652
|
// src/components/content/article/BlogCard.tsx
|
|
6662
6653
|
import React59 from "react";
|
|
6663
6654
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
6664
|
-
import { jsx as
|
|
6655
|
+
import { jsx as jsx87, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
6665
6656
|
var BlogCard = React59.forwardRef(
|
|
6666
6657
|
({ className, title, excerpt, imageSrc, imageAlt, date, author, asChild = false, ...props }, ref) => {
|
|
6667
6658
|
const Comp = asChild ? Slot4 : "div";
|
|
6668
6659
|
return /* @__PURE__ */ jsxs61(Comp, { ref, className: cn("group", className), ...props, children: [
|
|
6669
|
-
imageSrc && /* @__PURE__ */
|
|
6660
|
+
imageSrc && /* @__PURE__ */ jsx87("div", { className: "aspect-[16/9] overflow-hidden rounded-lg bg-[var(--fourty-color-bg-subtle)]", children: /* @__PURE__ */ jsx87(
|
|
6670
6661
|
"img",
|
|
6671
6662
|
{
|
|
6672
6663
|
src: imageSrc,
|
|
@@ -6681,8 +6672,8 @@ var BlogCard = React59.forwardRef(
|
|
|
6681
6672
|
date && author && " \xB7 ",
|
|
6682
6673
|
author
|
|
6683
6674
|
] }),
|
|
6684
|
-
/* @__PURE__ */
|
|
6685
|
-
excerpt && /* @__PURE__ */
|
|
6675
|
+
/* @__PURE__ */ jsx87("h3", { className: "text-lg font-medium text-[var(--fourty-color-text)] group-hover:underline", children: title }),
|
|
6676
|
+
excerpt && /* @__PURE__ */ jsx87("p", { className: "text-sm text-[var(--fourty-color-text-subtle)] line-clamp-2", children: excerpt })
|
|
6686
6677
|
] })
|
|
6687
6678
|
] });
|
|
6688
6679
|
}
|
|
@@ -6691,11 +6682,11 @@ BlogCard.displayName = "BlogCard";
|
|
|
6691
6682
|
|
|
6692
6683
|
// src/components/content/RichText.tsx
|
|
6693
6684
|
import React60 from "react";
|
|
6694
|
-
import { jsx as
|
|
6685
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
6695
6686
|
var RichText = React60.forwardRef(
|
|
6696
6687
|
({ className, html, ...props }, ref) => {
|
|
6697
6688
|
const clean = sanitizeHtml(html);
|
|
6698
|
-
return /* @__PURE__ */
|
|
6689
|
+
return /* @__PURE__ */ jsx88(
|
|
6699
6690
|
"div",
|
|
6700
6691
|
{
|
|
6701
6692
|
ref,
|
|
@@ -6717,14 +6708,14 @@ RichText.displayName = "RichText";
|
|
|
6717
6708
|
|
|
6718
6709
|
// src/components/content/FeatureGrid.tsx
|
|
6719
6710
|
import React61 from "react";
|
|
6720
|
-
import { jsx as
|
|
6711
|
+
import { jsx as jsx89, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
6721
6712
|
var FeatureGrid = React61.forwardRef(
|
|
6722
6713
|
({ className, features: featuresProp, columns = 3, ...props }, ref) => {
|
|
6723
6714
|
const features = Array.isArray(featuresProp) ? featuresProp : [];
|
|
6724
|
-
return /* @__PURE__ */
|
|
6725
|
-
feature.icon && /* @__PURE__ */
|
|
6726
|
-
/* @__PURE__ */
|
|
6727
|
-
/* @__PURE__ */
|
|
6715
|
+
return /* @__PURE__ */ jsx89(Grid, { ref, columns, gap: "lg", className: cn(className), ...props, children: features.map((feature, i) => /* @__PURE__ */ jsxs62("div", { className: "text-center", children: [
|
|
6716
|
+
feature.icon && /* @__PURE__ */ jsx89("div", { className: "mx-auto mb-3 flex h-12 w-12 items-center justify-center rounded-full bg-[var(--fourty-color-bg-subtle)] text-[var(--fourty-color-text)]", children: feature.icon }),
|
|
6717
|
+
/* @__PURE__ */ jsx89("h3", { className: "text-sm font-semibold text-[var(--fourty-color-text)]", children: feature.title }),
|
|
6718
|
+
/* @__PURE__ */ jsx89("p", { className: "mt-1 text-sm text-[var(--fourty-color-text-subtle)]", children: feature.description })
|
|
6728
6719
|
] }, i)) });
|
|
6729
6720
|
}
|
|
6730
6721
|
);
|
|
@@ -6735,13 +6726,13 @@ import React62 from "react";
|
|
|
6735
6726
|
|
|
6736
6727
|
// src/components/navigation/internal/HeaderLink.tsx
|
|
6737
6728
|
import { useAction as useAction7 } from "@40rty/ams-sdk";
|
|
6738
|
-
import { jsx as
|
|
6729
|
+
import { jsx as jsx90 } from "react/jsx-runtime";
|
|
6739
6730
|
function HeaderLink({
|
|
6740
6731
|
label,
|
|
6741
6732
|
action
|
|
6742
6733
|
}) {
|
|
6743
6734
|
const onClick = useAction7(label, action);
|
|
6744
|
-
return /* @__PURE__ */
|
|
6735
|
+
return /* @__PURE__ */ jsx90(
|
|
6745
6736
|
"button",
|
|
6746
6737
|
{
|
|
6747
6738
|
type: "button",
|
|
@@ -6753,12 +6744,12 @@ function HeaderLink({
|
|
|
6753
6744
|
}
|
|
6754
6745
|
|
|
6755
6746
|
// src/components/navigation/Header.tsx
|
|
6756
|
-
import { jsx as
|
|
6747
|
+
import { jsx as jsx91, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
6757
6748
|
var Header = React62.forwardRef(
|
|
6758
6749
|
({ className, logo, links: linksProp, cartCount = 0, onCartClick, onSearchClick, ...props }, ref) => {
|
|
6759
6750
|
const links = Array.isArray(linksProp) ? linksProp : [];
|
|
6760
6751
|
const labels = useLabels();
|
|
6761
|
-
return /* @__PURE__ */
|
|
6752
|
+
return /* @__PURE__ */ jsx91(
|
|
6762
6753
|
"header",
|
|
6763
6754
|
{
|
|
6764
6755
|
ref,
|
|
@@ -6767,18 +6758,18 @@ var Header = React62.forwardRef(
|
|
|
6767
6758
|
className
|
|
6768
6759
|
),
|
|
6769
6760
|
...props,
|
|
6770
|
-
children: /* @__PURE__ */
|
|
6771
|
-
/* @__PURE__ */
|
|
6772
|
-
links.length > 0 && /* @__PURE__ */
|
|
6761
|
+
children: /* @__PURE__ */ jsx91(Container, { children: /* @__PURE__ */ jsxs63("div", { className: "flex h-16 items-center justify-between", children: [
|
|
6762
|
+
/* @__PURE__ */ jsx91("div", { className: "flex-shrink-0", children: logo ?? /* @__PURE__ */ jsx91("span", { className: "text-lg font-bold text-[var(--fourty-color-text)]", children: labels.nav.storeFallback }) }),
|
|
6763
|
+
links.length > 0 && /* @__PURE__ */ jsx91("nav", { className: "hidden gap-8 md:flex", children: links.map((link, i) => /* @__PURE__ */ jsx91(HeaderLink, { label: link.label, action: link.action }, i)) }),
|
|
6773
6764
|
/* @__PURE__ */ jsxs63("div", { className: "flex items-center gap-4", children: [
|
|
6774
|
-
onSearchClick && /* @__PURE__ */
|
|
6765
|
+
onSearchClick && /* @__PURE__ */ jsx91(
|
|
6775
6766
|
"button",
|
|
6776
6767
|
{
|
|
6777
6768
|
type: "button",
|
|
6778
6769
|
onClick: onSearchClick,
|
|
6779
6770
|
className: "text-[var(--fourty-color-text-subtle)] hover:text-[var(--fourty-color-text)]",
|
|
6780
6771
|
"aria-label": labels.nav.search,
|
|
6781
|
-
children: /* @__PURE__ */
|
|
6772
|
+
children: /* @__PURE__ */ jsx91("svg", { className: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 1.5, children: /* @__PURE__ */ jsx91("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z" }) })
|
|
6782
6773
|
}
|
|
6783
6774
|
),
|
|
6784
6775
|
onCartClick && /* @__PURE__ */ jsxs63(
|
|
@@ -6789,8 +6780,8 @@ var Header = React62.forwardRef(
|
|
|
6789
6780
|
className: "relative text-[var(--fourty-color-text-subtle)] hover:text-[var(--fourty-color-text)]",
|
|
6790
6781
|
"aria-label": labels.cart.headerA11y,
|
|
6791
6782
|
children: [
|
|
6792
|
-
/* @__PURE__ */
|
|
6793
|
-
cartCount > 0 && /* @__PURE__ */
|
|
6783
|
+
/* @__PURE__ */ jsx91("svg", { className: "h-5 w-5", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: 1.5, children: /* @__PURE__ */ jsx91("path", { strokeLinecap: "round", strokeLinejoin: "round", d: "M15.75 10.5V6a3.75 3.75 0 10-7.5 0v4.5m11.356-1.993l1.263 12c.07.665-.45 1.243-1.119 1.243H4.25a1.125 1.125 0 01-1.12-1.243l1.264-12A1.125 1.125 0 015.513 7.5h12.974c.576 0 1.059.435 1.119 1.007zM8.625 10.5a.375.375 0 11-.75 0 .375.375 0 01.75 0zm7.5 0a.375.375 0 11-.75 0 .375.375 0 01.75 0z" }) }),
|
|
6784
|
+
cartCount > 0 && /* @__PURE__ */ jsx91("span", { className: "absolute -end-1.5 -top-1.5 flex h-5 w-5 sm:h-4 sm:w-4 items-center justify-center rounded-full bg-[var(--fourty-color-primary)] text-[10px] font-medium text-white", children: cartCount > 99 ? "99+" : cartCount })
|
|
6794
6785
|
]
|
|
6795
6786
|
}
|
|
6796
6787
|
)
|
|
@@ -6807,13 +6798,13 @@ import React63 from "react";
|
|
|
6807
6798
|
|
|
6808
6799
|
// src/components/navigation/internal/FooterLink.tsx
|
|
6809
6800
|
import { useAction as useAction8 } from "@40rty/ams-sdk";
|
|
6810
|
-
import { jsx as
|
|
6801
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
6811
6802
|
function FooterLink({
|
|
6812
6803
|
label,
|
|
6813
6804
|
action
|
|
6814
6805
|
}) {
|
|
6815
6806
|
const onClick = useAction8(label, action);
|
|
6816
|
-
return /* @__PURE__ */
|
|
6807
|
+
return /* @__PURE__ */ jsx92(
|
|
6817
6808
|
"button",
|
|
6818
6809
|
{
|
|
6819
6810
|
type: "button",
|
|
@@ -6825,11 +6816,11 @@ function FooterLink({
|
|
|
6825
6816
|
}
|
|
6826
6817
|
|
|
6827
6818
|
// src/components/navigation/Footer.tsx
|
|
6828
|
-
import { jsx as
|
|
6819
|
+
import { jsx as jsx93, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
6829
6820
|
var Footer = React63.forwardRef(
|
|
6830
6821
|
({ className, columns: columnsProp, copyright, logo, ...props }, ref) => {
|
|
6831
6822
|
const columns = Array.isArray(columnsProp) ? columnsProp : [];
|
|
6832
|
-
return /* @__PURE__ */
|
|
6823
|
+
return /* @__PURE__ */ jsx93(
|
|
6833
6824
|
"footer",
|
|
6834
6825
|
{
|
|
6835
6826
|
ref,
|
|
@@ -6838,17 +6829,17 @@ var Footer = React63.forwardRef(
|
|
|
6838
6829
|
className
|
|
6839
6830
|
),
|
|
6840
6831
|
...props,
|
|
6841
|
-
children: /* @__PURE__ */
|
|
6842
|
-
columns.length > 0 && /* @__PURE__ */
|
|
6832
|
+
children: /* @__PURE__ */ jsx93(Container, { children: /* @__PURE__ */ jsxs64("div", { className: "py-12", children: [
|
|
6833
|
+
columns.length > 0 && /* @__PURE__ */ jsx93("div", { className: "grid grid-cols-2 gap-4 sm:gap-8 md:grid-cols-4", children: columns.map((col) => {
|
|
6843
6834
|
const colLinks = Array.isArray(col.links) ? col.links : [];
|
|
6844
6835
|
return /* @__PURE__ */ jsxs64("div", { children: [
|
|
6845
|
-
/* @__PURE__ */
|
|
6846
|
-
/* @__PURE__ */
|
|
6836
|
+
/* @__PURE__ */ jsx93("h4", { className: "text-sm font-semibold text-[var(--fourty-color-text)]", children: col.title }),
|
|
6837
|
+
/* @__PURE__ */ jsx93("ul", { className: "mt-3 space-y-2", children: colLinks.map((link, i) => /* @__PURE__ */ jsx93("li", { children: /* @__PURE__ */ jsx93(FooterLink, { label: link.label, action: link.action }) }, i)) })
|
|
6847
6838
|
] }, col.title);
|
|
6848
6839
|
}) }),
|
|
6849
6840
|
/* @__PURE__ */ jsxs64("div", { className: "mt-8 flex items-center justify-between border-t border-[var(--fourty-color-border)] pt-8", children: [
|
|
6850
6841
|
logo,
|
|
6851
|
-
copyright && /* @__PURE__ */
|
|
6842
|
+
copyright && /* @__PURE__ */ jsx93("p", { className: "text-sm text-[var(--fourty-color-text-subtle)]", children: copyright })
|
|
6852
6843
|
] })
|
|
6853
6844
|
] }) })
|
|
6854
6845
|
}
|
|
@@ -6862,13 +6853,13 @@ import React64 from "react";
|
|
|
6862
6853
|
|
|
6863
6854
|
// src/components/navigation/internal/BreadcrumbLink.tsx
|
|
6864
6855
|
import { useAction as useAction9 } from "@40rty/ams-sdk";
|
|
6865
|
-
import { jsx as
|
|
6856
|
+
import { jsx as jsx94 } from "react/jsx-runtime";
|
|
6866
6857
|
function BreadcrumbLink({
|
|
6867
6858
|
label,
|
|
6868
6859
|
action
|
|
6869
6860
|
}) {
|
|
6870
6861
|
const onClick = useAction9(label, action);
|
|
6871
|
-
return /* @__PURE__ */
|
|
6862
|
+
return /* @__PURE__ */ jsx94(
|
|
6872
6863
|
"button",
|
|
6873
6864
|
{
|
|
6874
6865
|
type: "button",
|
|
@@ -6880,26 +6871,26 @@ function BreadcrumbLink({
|
|
|
6880
6871
|
}
|
|
6881
6872
|
|
|
6882
6873
|
// src/components/navigation/Breadcrumbs.tsx
|
|
6883
|
-
import { jsx as
|
|
6874
|
+
import { jsx as jsx95, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
6884
6875
|
var Breadcrumbs = React64.forwardRef(
|
|
6885
6876
|
({ className, items: itemsProp, ...props }, ref) => {
|
|
6886
6877
|
const labels = useLabels().nav;
|
|
6887
6878
|
const items = Array.isArray(itemsProp) ? itemsProp : [];
|
|
6888
|
-
return /* @__PURE__ */
|
|
6889
|
-
index > 0 && /* @__PURE__ */
|
|
6890
|
-
index < items.length - 1 ? /* @__PURE__ */
|
|
6879
|
+
return /* @__PURE__ */ jsx95("nav", { ref, className: cn(className), "aria-label": labels.breadcrumb, ...props, children: /* @__PURE__ */ jsx95("ol", { className: "flex items-center gap-1.5 text-sm", children: items.map((item, index) => /* @__PURE__ */ jsxs65("li", { className: "flex items-center gap-1.5", children: [
|
|
6880
|
+
index > 0 && /* @__PURE__ */ jsx95("svg", { className: "h-3.5 w-3.5 text-[var(--fourty-color-text-subtle)]", viewBox: "0 0 20 20", fill: "currentColor", children: /* @__PURE__ */ jsx95("path", { fillRule: "evenodd", d: "M7.21 14.77a.75.75 0 01.02-1.06L11.168 10 7.23 6.29a.75.75 0 111.04-1.08l4.5 4.25a.75.75 0 010 1.08l-4.5 4.25a.75.75 0 01-1.06-.02z", clipRule: "evenodd" }) }),
|
|
6881
|
+
index < items.length - 1 ? /* @__PURE__ */ jsx95(BreadcrumbLink, { label: item.label, action: item.action }) : /* @__PURE__ */ jsx95("span", { className: "text-[var(--fourty-color-text)]", "aria-current": index === items.length - 1 ? "page" : void 0, children: item.label })
|
|
6891
6882
|
] }, index)) }) });
|
|
6892
6883
|
}
|
|
6893
6884
|
);
|
|
6894
6885
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
6895
6886
|
|
|
6896
6887
|
// src/components/chat/SuggestionCards.tsx
|
|
6897
|
-
import { jsx as
|
|
6888
|
+
import { jsx as jsx96, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
6898
6889
|
function SuggestionCards({ suggestions, onAction }) {
|
|
6899
6890
|
const { heading, actions: actionsRaw } = suggestions;
|
|
6900
6891
|
const actions = Array.isArray(actionsRaw) ? actionsRaw : [];
|
|
6901
6892
|
return /* @__PURE__ */ jsxs66("div", { style: { padding: "8px 16px" }, children: [
|
|
6902
|
-
heading && /* @__PURE__ */
|
|
6893
|
+
heading && /* @__PURE__ */ jsx96(
|
|
6903
6894
|
"div",
|
|
6904
6895
|
{
|
|
6905
6896
|
style: {
|
|
@@ -6912,7 +6903,7 @@ function SuggestionCards({ suggestions, onAction }) {
|
|
|
6912
6903
|
children: heading
|
|
6913
6904
|
}
|
|
6914
6905
|
),
|
|
6915
|
-
/* @__PURE__ */
|
|
6906
|
+
/* @__PURE__ */ jsx96(
|
|
6916
6907
|
"div",
|
|
6917
6908
|
{
|
|
6918
6909
|
style: {
|
|
@@ -6920,7 +6911,7 @@ function SuggestionCards({ suggestions, onAction }) {
|
|
|
6920
6911
|
flexWrap: "wrap",
|
|
6921
6912
|
gap: 6
|
|
6922
6913
|
},
|
|
6923
|
-
children: actions.map((action) => /* @__PURE__ */
|
|
6914
|
+
children: actions.map((action) => /* @__PURE__ */ jsx96(
|
|
6924
6915
|
"button",
|
|
6925
6916
|
{
|
|
6926
6917
|
onClick: () => onAction(action),
|
|
@@ -7002,7 +6993,6 @@ export {
|
|
|
7002
6993
|
HeroBanner,
|
|
7003
6994
|
HistoryMenu,
|
|
7004
6995
|
HydratedProductRail,
|
|
7005
|
-
HydrationNotice,
|
|
7006
6996
|
InlinePresenceRead,
|
|
7007
6997
|
Input,
|
|
7008
6998
|
LabelsProvider,
|