@burdenoff/microfe-coolandlovely 2026.1109.10 → 2026.1110.2

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.
Files changed (147) hide show
  1. package/dist/coolandlovely/CoolAndLovelyRoot.js +1 -2
  2. package/dist/coolandlovely/CoolAndLovelyRoutes.js +10 -7
  3. package/dist/coolandlovely/api/creatorMarketplaceRequest.js +9 -10
  4. package/dist/coolandlovely/api/resaleTransport.js +1 -2
  5. package/dist/coolandlovely/components/ActivityTrail.js +11 -12
  6. package/dist/coolandlovely/components/ActorName.js +6 -7
  7. package/dist/coolandlovely/components/AddToCartPanel.js +10 -11
  8. package/dist/coolandlovely/components/AddToLookbookButton.js +5 -6
  9. package/dist/coolandlovely/components/BrandCard.js +9 -10
  10. package/dist/coolandlovely/components/BrandCover.js +6 -7
  11. package/dist/coolandlovely/components/BrandCreatorAvatars.js +18 -19
  12. package/dist/coolandlovely/components/CollaborationFeeCard.js +11 -12
  13. package/dist/coolandlovely/components/CollectionCard.js +7 -8
  14. package/dist/coolandlovely/components/ColourSwatchRow.js +1 -2
  15. package/dist/coolandlovely/components/Comments.js +12 -13
  16. package/dist/coolandlovely/components/EmptyState.js +1 -2
  17. package/dist/coolandlovely/components/FeedbackWidget.js +15 -16
  18. package/dist/coolandlovely/components/Field.js +1 -2
  19. package/dist/coolandlovely/components/FileImage.js +5 -6
  20. package/dist/coolandlovely/components/FollowButton.js +6 -7
  21. package/dist/coolandlovely/components/FulfilmentTimeline.js +28 -29
  22. package/dist/coolandlovely/components/ImageUploadField.js +9 -10
  23. package/dist/coolandlovely/components/LookCard.js +37 -38
  24. package/dist/coolandlovely/components/LookbookCard.js +9 -10
  25. package/dist/coolandlovely/components/MetricsCard.js +6 -7
  26. package/dist/coolandlovely/components/PageLayout.js +6 -5
  27. package/dist/coolandlovely/components/PayForOrder.js +3 -4
  28. package/dist/coolandlovely/components/RefundPanel.js +10 -11
  29. package/dist/coolandlovely/components/ResaleListingActions.js +1 -2
  30. package/dist/coolandlovely/components/ResaleListingEditor.js +1 -2
  31. package/dist/coolandlovely/components/ResalePhotoPicker.js +8 -9
  32. package/dist/coolandlovely/components/ResalePhotoUpload.js +16 -17
  33. package/dist/coolandlovely/components/ReturnRequests.js +35 -36
  34. package/dist/coolandlovely/components/ShopItemCard.js +7 -8
  35. package/dist/coolandlovely/components/StateViews.js +1 -2
  36. package/dist/coolandlovely/components/StatusBadge.js +1 -2
  37. package/dist/coolandlovely/components/StepTracker.js +1 -2
  38. package/dist/coolandlovely/components/StockEditor.js +1 -2
  39. package/dist/coolandlovely/components/StoreListingCard.js +7 -8
  40. package/dist/coolandlovely/components/TagList.js +1 -2
  41. package/dist/coolandlovely/components/Thumbnail.js +1 -2
  42. package/dist/coolandlovely/components/VisibilityChip.js +2 -3
  43. package/dist/coolandlovely/components/WardrobeItemCard.js +7 -8
  44. package/dist/coolandlovely/components/index.js +9 -10
  45. package/dist/coolandlovely/components/prices/BestPriceBadge.js +1 -2
  46. package/dist/coolandlovely/components/prices/LookbookPriceBoard.js +17 -18
  47. package/dist/coolandlovely/components/prices/PriceComparison.js +2 -3
  48. package/dist/coolandlovely/components/prices/PriceCurrencySelect.js +1 -2
  49. package/dist/coolandlovely/components/prices/PricePanel.js +1 -2
  50. package/dist/coolandlovely/components/prices/PriceWatchDisclosure.js +1 -2
  51. package/dist/coolandlovely/components/prices/PriceWatchForm.js +12 -13
  52. package/dist/coolandlovely/components/prices/PriceWatches.js +1 -2
  53. package/dist/coolandlovely/components/prices/RetailerOfferLink.js +1 -2
  54. package/dist/coolandlovely/components/prices/money.js +1 -2
  55. package/dist/coolandlovely/context/CoolAndLovelyContext.js +1 -2
  56. package/dist/coolandlovely/context/QueryScope.js +2 -3
  57. package/dist/coolandlovely/context/index.js +1 -2
  58. package/dist/coolandlovely/context/queryScopeKey.js +1 -2
  59. package/dist/coolandlovely/hooks/contextNavigationTarget.js +1 -2
  60. package/dist/coolandlovely/hooks/useActivity.js +1 -2
  61. package/dist/coolandlovely/hooks/useAssistantEntity.js +2 -3
  62. package/dist/coolandlovely/hooks/useBrandOrdersApi.js +62 -63
  63. package/dist/coolandlovely/hooks/useCatalogImport.js +5 -4
  64. package/dist/coolandlovely/hooks/useComments.js +1 -2
  65. package/dist/coolandlovely/hooks/useCommerceApi.js +5 -6
  66. package/dist/coolandlovely/hooks/useContextNavigation.js +1 -2
  67. package/dist/coolandlovely/hooks/useCoolAndLovelyApi.js +1 -2
  68. package/dist/coolandlovely/hooks/useCreatorAnalytics.d.ts +1 -2
  69. package/dist/coolandlovely/hooks/useCreatorAnalytics.js +4 -5
  70. package/dist/coolandlovely/hooks/useCreatorMarketplace.d.ts +28 -40
  71. package/dist/coolandlovely/hooks/useCreatorMarketplace.js +26 -27
  72. package/dist/coolandlovely/hooks/useEditorialApi.js +1 -2
  73. package/dist/coolandlovely/hooks/useFiles.js +2 -3
  74. package/dist/coolandlovely/hooks/useInventoryApi.js +1 -2
  75. package/dist/coolandlovely/hooks/usePriceApi.d.ts +8 -15
  76. package/dist/coolandlovely/hooks/usePriceApi.js +42 -43
  77. package/dist/coolandlovely/hooks/useResale.js +28 -29
  78. package/dist/coolandlovely/hooks/useResaleModeration.d.ts +22 -0
  79. package/dist/coolandlovely/hooks/useResaleModeration.js +79 -0
  80. package/dist/coolandlovely/hooks/useTr.js +1 -2
  81. package/dist/coolandlovely/index.js +3 -3
  82. package/dist/coolandlovely/pages/HomePage.js +26 -27
  83. package/dist/coolandlovely/pages/admin/AdminBrandsPage.js +28 -29
  84. package/dist/coolandlovely/pages/admin/AdminCollaborationsPage.js +37 -38
  85. package/dist/coolandlovely/pages/admin/AdminFeaturedItemsPage.js +43 -44
  86. package/dist/coolandlovely/pages/brands/BrandDetailPage.js +45 -46
  87. package/dist/coolandlovely/pages/brands/BrandFormPage.js +26 -27
  88. package/dist/coolandlovely/pages/brands/BrandsListPage.js +16 -17
  89. package/dist/coolandlovely/pages/brands/ImportCatalogPage.js +25 -26
  90. package/dist/coolandlovely/pages/collaborations/CollaborationDetailPage.js +26 -27
  91. package/dist/coolandlovely/pages/collaborations/CollaborationFormPage.js +44 -51
  92. package/dist/coolandlovely/pages/collaborations/CollaborationsListPage.js +21 -22
  93. package/dist/coolandlovely/pages/collections/CollectionDetailPage.js +28 -29
  94. package/dist/coolandlovely/pages/collections/CollectionFormPage.js +28 -29
  95. package/dist/coolandlovely/pages/collections/CollectionsListPage.js +12 -13
  96. package/dist/coolandlovely/pages/commerce/BrandOrdersPage.js +117 -118
  97. package/dist/coolandlovely/pages/commerce/CartPage.js +28 -29
  98. package/dist/coolandlovely/pages/commerce/CreatorAnalyticsSection.js +11 -12
  99. package/dist/coolandlovely/pages/commerce/CreatorEarningsPage.js +43 -44
  100. package/dist/coolandlovely/pages/commerce/OrdersPage.js +84 -85
  101. package/dist/coolandlovely/pages/discover/DiscoverPage.js +196 -197
  102. package/dist/coolandlovely/pages/editorial/EditorialPage.js +2 -3
  103. package/dist/coolandlovely/pages/items/StoreListedPieceView.js +90 -91
  104. package/dist/coolandlovely/pages/items/StyleItemDetailPage.js +26 -27
  105. package/dist/coolandlovely/pages/items/StyleItemFormPage.js +45 -46
  106. package/dist/coolandlovely/pages/items/StyleItemsListPage.js +26 -27
  107. package/dist/coolandlovely/pages/lookbooks/LookbookDetailPage.js +16 -17
  108. package/dist/coolandlovely/pages/lookbooks/LookbooksListPage.js +24 -29
  109. package/dist/coolandlovely/pages/looks/LookDetailPage.js +50 -51
  110. package/dist/coolandlovely/pages/looks/LookFormPage.js +80 -81
  111. package/dist/coolandlovely/pages/looks/LooksListPage.js +18 -19
  112. package/dist/coolandlovely/pages/marketplace/CreatorMarketplacePage.js +139 -139
  113. package/dist/coolandlovely/pages/profile/StyleProfilePage.js +228 -229
  114. package/dist/coolandlovely/pages/resale/ResaleBrowsePage.js +92 -85
  115. package/dist/coolandlovely/pages/resale/ResaleListingPage.js +20 -27
  116. package/dist/coolandlovely/pages/resale/ResaleModerationPage.d.ts +1 -0
  117. package/dist/coolandlovely/pages/resale/ResaleModerationPage.js +425 -0
  118. package/dist/coolandlovely/pages/resale/ResaleReportsPage.js +11 -12
  119. package/dist/coolandlovely/pages/resale/ResaleSellerPage.js +57 -64
  120. package/dist/coolandlovely/pages/trends/TrendsPage.js +52 -53
  121. package/dist/coolandlovely/pages/wardrobe/WardrobeFormPage.js +28 -29
  122. package/dist/coolandlovely/pages/wardrobe/WardrobeListPage.js +31 -32
  123. package/dist/coolandlovely/store/coolandlovelyStore.d.ts +1 -1
  124. package/dist/coolandlovely/store/coolandlovelyStore.js +1 -2
  125. package/dist/coolandlovely/store/index.js +1 -2
  126. package/dist/coolandlovely/utils/cn.js +1 -2
  127. package/dist/coolandlovely/utils/formatters.js +1 -2
  128. package/dist/coolandlovely/utils/icons.js +1 -2
  129. package/dist/coolandlovely/utils/index.js +1 -2
  130. package/dist/coolandlovely/utils/navigation.js +1 -2
  131. package/dist/coolandlovely/utils/paymentProviders.js +1 -2
  132. package/dist/coolandlovely/utils/resaleCreateIntent.js +1 -2
  133. package/dist/coolandlovely/utils/resalePhotoUpload.js +2 -3
  134. package/dist/coolandlovely/utils/resalePhotoUploadIntent.js +3 -4
  135. package/dist/coolandlovely/utils/resalePresentation.js +1 -2
  136. package/dist/coolandlovely/utils/sparkline.js +0 -1
  137. package/dist/generated/global-operations.d.ts +4 -1
  138. package/dist/generated/global-types.d.ts +2 -21
  139. package/dist/generated/wspace-operations.d.ts +261 -297
  140. package/dist/generated/wspace-operations.js +12 -13
  141. package/dist/generated/wspace-types.d.ts +4 -23
  142. package/dist/generated/wspace-types.js +1 -2
  143. package/dist/node_modules/clsx/dist/clsx.js +7 -6
  144. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +4 -21
  145. package/dist/services/createSandboxAssistantTransport.js +1 -2
  146. package/dist/utils/pageContext.js +2 -3
  147. package/package.json +86 -55
@@ -1,16 +1,16 @@
1
- import { cn as e } from "../utils/cn.js";
1
+ import { ActorName as e } from "./ActorName.js";
2
2
  import { useAddComment as t, useEntityComments as n } from "../hooks/useComments.js";
3
3
  import { formatRelativeTime as r } from "../utils/formatters.js";
4
- import { ActorName as i } from "./ActorName.js";
4
+ import { cn as i } from "../utils/cn.js";
5
5
  import { useState as a } from "react";
6
6
  import { Loader2 as o, MessageSquare as s, Send as c } from "lucide-react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  import { GlassCard as d } from "@burdenoff/fe-libs/ui";
9
- //#region src/coolandlovely/components/Comments.tsx
9
+ // src/coolandlovely/components/Comments.tsx
10
10
  var f = ({ entityType: f, entityId: p, title: m = "Reviews & feedback", className: h }) => {
11
11
  let g = n(f, p), _ = t(), [v, y] = a(""), b = g.data?.comments ?? [], x = g.data?.total ?? b.length;
12
12
  return /* @__PURE__ */ u("section", {
13
- className: e("mt-6", h),
13
+ className: i("mt-6", h),
14
14
  children: [
15
15
  /* @__PURE__ */ u("h3", {
16
16
  className: "mb-3 flex items-center gap-2 text-lg font-semibold text-text-primary",
@@ -30,7 +30,7 @@ var f = ({ entityType: f, entityId: p, title: m = "Reviews & feedback", classNam
30
30
  onSubmit: (e) => {
31
31
  e.preventDefault();
32
32
  let t = v.trim();
33
- !t || !p || _.mutate({
33
+ t && p && _.mutate({
34
34
  entityType: f,
35
35
  entityId: p,
36
36
  text: t
@@ -81,27 +81,26 @@ var f = ({ entityType: f, entityId: p, title: m = "Reviews & feedback", classNam
81
81
  children: "No reviews yet. Be the first to share feedback."
82
82
  }) : /* @__PURE__ */ l("ul", {
83
83
  className: "divide-y divide-border-seam rounded-lg border border-border-seam bg-bg-surface",
84
- children: b.map((e) => /* @__PURE__ */ u("li", {
84
+ children: b.map((t) => /* @__PURE__ */ u("li", {
85
85
  className: "px-4 py-3",
86
86
  children: [/* @__PURE__ */ u("div", {
87
87
  className: "flex items-center justify-between gap-2",
88
- children: [/* @__PURE__ */ l(i, {
89
- id: e.authorId,
90
- actorType: e.authorType,
88
+ children: [/* @__PURE__ */ l(e, {
89
+ id: t.authorId,
90
+ actorType: t.authorType,
91
91
  className: "truncate text-sm font-medium text-text-primary"
92
92
  }), /* @__PURE__ */ u("span", {
93
93
  className: "shrink-0 text-xs text-text-secondary",
94
- children: [r(e.createdAt), e.edited ? " · edited" : ""]
94
+ children: [r(t.createdAt), t.edited ? " · edited" : ""]
95
95
  })]
96
96
  }), /* @__PURE__ */ l("p", {
97
97
  className: "mt-1 whitespace-pre-wrap break-words text-sm text-text-secondary",
98
- children: e.text
98
+ children: t.text
99
99
  })]
100
- }, e.id))
100
+ }, t.id))
101
101
  })
102
102
  })
103
103
  ]
104
104
  });
105
105
  };
106
- //#endregion
107
106
  export { f as Comments };
@@ -1,7 +1,7 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  import { IllustratedEmptyState as r } from "@burdenoff/fe-libs/ui";
4
- //#region src/coolandlovely/components/EmptyState.tsx
4
+ // src/coolandlovely/components/EmptyState.tsx
5
5
  var i = ({ icon: i, title: a, description: o, action: s, className: c, illustration: l = "empty-data" }) => /* @__PURE__ */ t("div", {
6
6
  className: e("py-8", c),
7
7
  children: /* @__PURE__ */ t(r, {
@@ -18,5 +18,4 @@ var i = ({ icon: i, title: a, description: o, action: s, className: c, illustrat
18
18
  alt: a
19
19
  })
20
20
  });
21
- //#endregion
22
21
  export { i as EmptyState };
@@ -1,13 +1,13 @@
1
- import { cn as e } from "../utils/cn.js";
1
+ import { TextAreaField as e } from "./Field.js";
2
2
  import { useTr as t } from "../hooks/useTr.js";
3
+ import { cn as n } from "../utils/cn.js";
3
4
  import "../hooks/index.js";
4
- import { TextAreaField as n } from "./Field.js";
5
5
  import { useCallback as r, useEffect as i, useState as a } from "react";
6
6
  import { MessageSquarePlus as o, Send as s, X as c } from "lucide-react";
7
7
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
8
8
  import { GlassCard as d } from "@burdenoff/fe-libs/ui";
9
- //#region src/coolandlovely/components/FeedbackWidget.tsx
10
- var f = "coolandlovely-feedback-submitted-at", p = 10080 * 60 * 1e3;
9
+ // src/coolandlovely/components/FeedbackWidget.tsx
10
+ var f = "coolandlovely-feedback-submitted-at", p = 6048e5;
11
11
  function m() {
12
12
  if (typeof window > "u") return !1;
13
13
  let e = window.localStorage.getItem(f);
@@ -20,10 +20,10 @@ function m() {
20
20
  }
21
21
  }
22
22
  function h() {
23
- typeof window > "u" || window.localStorage.setItem(f, String(Date.now()));
23
+ typeof window < "u" && window.localStorage.setItem(f, String(Date.now()));
24
24
  }
25
25
  function g(e) {
26
- typeof window > "u" || window.dispatchEvent(new CustomEvent("coolandlovely:feedback_submitted", {
26
+ typeof window < "u" && window.dispatchEvent(new CustomEvent("coolandlovely:feedback_submitted", {
27
27
  detail: e,
28
28
  bubbles: !0
29
29
  }));
@@ -87,15 +87,15 @@ var _ = () => {
87
87
  className: "flex justify-between gap-1",
88
88
  role: "group",
89
89
  "aria-label": f("coolandlovely.feedback.npsLabel", "NPS score"),
90
- children: Array.from({ length: 11 }, (e, t) => t).map((t) => /* @__PURE__ */ l("button", {
90
+ children: Array.from({ length: 11 }, (e, t) => t).map((e) => /* @__PURE__ */ l("button", {
91
91
  type: "button",
92
- onClick: () => y(t),
93
- "aria-pressed": v === t,
94
- className: e("flex h-8 w-7 items-center justify-center rounded-md text-xs font-medium transition-colors", v === t ? "bg-action-primary-bg text-action-primary-text" : "border border-border-seam bg-bg-surface text-text-secondary hover:border-action-primary-bg hover:text-text-primary"),
95
- children: t
96
- }, t))
92
+ onClick: () => y(e),
93
+ "aria-pressed": v === e,
94
+ className: n("flex h-8 w-7 items-center justify-center rounded-md text-xs font-medium transition-colors", v === e ? "bg-action-primary-bg text-action-primary-text" : "border border-border-seam bg-bg-surface text-text-secondary hover:border-action-primary-bg hover:text-text-primary"),
95
+ children: e
96
+ }, e))
97
97
  })] }),
98
- /* @__PURE__ */ l(n, {
98
+ /* @__PURE__ */ l(e, {
99
99
  id: "feedback-comment",
100
100
  label: f("coolandlovely.feedback.commentLabel", "What could be better?"),
101
101
  value: b,
@@ -108,7 +108,7 @@ var _ = () => {
108
108
  type: "button",
109
109
  onClick: O,
110
110
  disabled: v === null,
111
- className: e("inline-flex w-full items-center justify-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors", v === null ? "cursor-not-allowed bg-bg-surface text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
111
+ className: n("inline-flex w-full items-center justify-center gap-2 rounded-lg px-4 py-2 text-sm font-medium transition-colors", v === null ? "cursor-not-allowed bg-bg-surface text-text-secondary" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90"),
112
112
  children: [/* @__PURE__ */ l(s, {
113
113
  className: "h-4 w-4",
114
114
  "aria-hidden": "true"
@@ -122,7 +122,7 @@ var _ = () => {
122
122
  onClick: E,
123
123
  "aria-label": p ? f("coolandlovely.feedback.close", "Close feedback") : f("coolandlovely.feedback.open", "Give feedback"),
124
124
  "aria-expanded": p,
125
- className: e("flex h-12 w-12 items-center justify-center rounded-full shadow-lg transition-transform hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", p ? "bg-bg-surface text-text-primary" : "bg-action-primary-bg text-action-primary-text"),
125
+ className: n("flex h-12 w-12 items-center justify-center rounded-full shadow-lg transition-transform hover:scale-105 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", p ? "bg-bg-surface text-text-primary" : "bg-action-primary-bg text-action-primary-text"),
126
126
  children: l(p ? c : o, {
127
127
  className: "h-5 w-5",
128
128
  "aria-hidden": "true"
@@ -130,5 +130,4 @@ var _ = () => {
130
130
  })]
131
131
  });
132
132
  };
133
- //#endregion
134
133
  export { _ as FeedbackWidget };
@@ -1,6 +1,6 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
- //#region src/coolandlovely/components/Field.tsx
3
+ // src/coolandlovely/components/Field.tsx
4
4
  var r = ({ label: r, htmlFor: i, required: a, hint: o, error: s, children: c, className: l }) => /* @__PURE__ */ n("div", {
5
5
  className: e("flex flex-col gap-1.5", l),
6
6
  children: [
@@ -100,5 +100,4 @@ var r = ({ label: r, htmlFor: i, required: a, hint: o, error: s, children: c, cl
100
100
  }, e.value))]
101
101
  })
102
102
  });
103
- //#endregion
104
103
  export { r as FieldShell, c as SelectField, o as TextAreaField, a as TextField, s as ToggleField };
@@ -1,15 +1,14 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { useFileUrl as t } from "../hooks/useFiles.js";
1
+ import { useFileUrl as e } from "../hooks/useFiles.js";
2
+ import { cn as t } from "../utils/cn.js";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
- //#region src/coolandlovely/components/FileImage.tsx
4
+ // src/coolandlovely/components/FileImage.tsx
5
5
  var r = ({ fileId: r, alt: i = "", className: a }) => {
6
- let { data: o } = t(r);
6
+ let { data: o } = e(r);
7
7
  return !r || !o ? null : /* @__PURE__ */ n("img", {
8
8
  src: o,
9
9
  alt: i,
10
10
  loading: "lazy",
11
- className: e("h-full w-full object-cover", a)
11
+ className: t("h-full w-full object-cover", a)
12
12
  });
13
13
  };
14
- //#endregion
15
14
  export { r as FileImage };
@@ -1,10 +1,10 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { useFollow as t, useIsFollowing as n, useUnfollow as r } from "../hooks/useCoolAndLovelyApi.js";
1
+ import { useFollow as e, useIsFollowing as t, useUnfollow as n } from "../hooks/useCoolAndLovelyApi.js";
2
+ import { cn as r } from "../utils/cn.js";
3
3
  import { Loader2 as i, UserCheck as a, UserPlus as o } from "lucide-react";
4
4
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
5
- //#region src/coolandlovely/components/FollowButton.tsx
5
+ // src/coolandlovely/components/FollowButton.tsx
6
6
  var l = ({ followeeId: l, className: u, size: d = "md" }) => {
7
- let f = n(l ?? void 0), p = t(), m = r();
7
+ let f = t(l ?? void 0), p = e(), m = n();
8
8
  if (!l) return null;
9
9
  let h = f.data ?? !1, g = p.isPending || m.isPending || f.isLoading;
10
10
  return /* @__PURE__ */ c("button", {
@@ -14,9 +14,8 @@ var l = ({ followeeId: l, className: u, size: d = "md" }) => {
14
14
  },
15
15
  disabled: g,
16
16
  "aria-pressed": h,
17
- className: e("inline-flex items-center gap-1.5 rounded-lg font-medium transition-colors disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", d === "sm" ? "px-2.5 py-1 text-xs" : "px-3 py-2 text-sm", h ? "border border-border-seam text-text-primary hover:bg-bg-sunken" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90", u),
18
- children: [g ? /* @__PURE__ */ s(i, { className: e("animate-spin", d === "sm" ? "h-3.5 w-3.5" : "h-4 w-4") }) : s(h ? a : o, { className: d === "sm" ? "h-3.5 w-3.5" : "h-4 w-4" }), h ? "Following" : "Follow"]
17
+ className: r("inline-flex items-center gap-1.5 rounded-lg font-medium transition-colors disabled:opacity-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]", d === "sm" ? "px-2.5 py-1 text-xs" : "px-3 py-2 text-sm", h ? "border border-border-seam text-text-primary hover:bg-bg-sunken" : "bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90", u),
18
+ children: [g ? /* @__PURE__ */ s(i, { className: r("animate-spin", d === "sm" ? "h-3.5 w-3.5" : "h-4 w-4") }) : s(h ? a : o, { className: d === "sm" ? "h-3.5 w-3.5" : "h-4 w-4" }), h ? "Following" : "Follow"]
19
19
  });
20
20
  };
21
- //#endregion
22
21
  export { l as FollowButton };
@@ -1,48 +1,48 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { useTr as t } from "../hooks/useTr.js";
3
1
  import "../hooks/index.js";
2
+ import { useTr as e } from "../hooks/useTr.js";
3
+ import { cn as t } from "../utils/cn.js";
4
4
  import { formatDate as n } from "../utils/formatters.js";
5
5
  import { CheckCircle2 as r, ExternalLink as i, PackageCheck as a, Truck as o } from "lucide-react";
6
6
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
- //#region src/coolandlovely/components/FulfilmentTimeline.tsx
7
+ // src/coolandlovely/components/FulfilmentTimeline.tsx
8
8
  function l({ fulfilment: l }) {
9
- let u = t();
9
+ let u = e(), d = [
10
+ {
11
+ key: "coolandlovely.fulfilment.confirmed",
12
+ label: "Confirmed",
13
+ at: l.confirmedAt,
14
+ icon: r
15
+ },
16
+ {
17
+ key: "coolandlovely.fulfilment.shipped",
18
+ label: "Shipped",
19
+ at: l.shippedAt,
20
+ icon: o
21
+ },
22
+ {
23
+ key: "coolandlovely.fulfilment.delivered",
24
+ label: "Delivered",
25
+ at: l.deliveredAt,
26
+ icon: a
27
+ }
28
+ ];
10
29
  return /* @__PURE__ */ c("div", {
11
30
  className: "space-y-3",
12
31
  "data-testid": "fulfilment-timeline",
13
32
  children: [
14
33
  /* @__PURE__ */ s("ol", {
15
34
  className: "flex flex-wrap gap-4",
16
- children: [
17
- {
18
- key: "coolandlovely.fulfilment.confirmed",
19
- label: "Confirmed",
20
- at: l.confirmedAt,
21
- icon: r
22
- },
23
- {
24
- key: "coolandlovely.fulfilment.shipped",
25
- label: "Shipped",
26
- at: l.shippedAt,
27
- icon: o
28
- },
29
- {
30
- key: "coolandlovely.fulfilment.delivered",
31
- label: "Delivered",
32
- at: l.deliveredAt,
33
- icon: a
34
- }
35
- ].map(({ key: t, label: r, at: i, icon: a }) => /* @__PURE__ */ c("li", {
36
- className: e("flex items-center gap-1.5 text-sm", i ? "text-text-primary" : "text-text-secondary opacity-60"),
35
+ children: d.map(({ key: e, label: r, at: i, icon: a }) => /* @__PURE__ */ c("li", {
36
+ className: t("flex items-center gap-1.5 text-sm", i ? "text-text-primary" : "text-text-secondary opacity-60"),
37
37
  children: [
38
- /* @__PURE__ */ s(a, { className: e("h-4 w-4", i && "text-status-success-text") }),
39
- /* @__PURE__ */ s("span", { children: u(t, r) }),
38
+ /* @__PURE__ */ s(a, { className: t("h-4 w-4", i && "text-status-success-text") }),
39
+ /* @__PURE__ */ s("span", { children: u(e, r) }),
40
40
  i && /* @__PURE__ */ s("span", {
41
41
  className: "text-xs text-text-secondary",
42
42
  children: n(i)
43
43
  })
44
44
  ]
45
- }, t))
45
+ }, e))
46
46
  }),
47
47
  l.trackingNumber && /* @__PURE__ */ c("p", {
48
48
  className: "text-sm text-text-primary",
@@ -71,5 +71,4 @@ function l({ fulfilment: l }) {
71
71
  ]
72
72
  });
73
73
  }
74
- //#endregion
75
74
  export { l as FulfilmentTimeline };
@@ -1,19 +1,19 @@
1
- import { useCoolAndLovely as e } from "../context/CoolAndLovelyContext.js";
2
- import { cn as t } from "../utils/cn.js";
1
+ import { FieldShell as e } from "./Field.js";
2
+ import { useCoolAndLovely as t } from "../context/CoolAndLovelyContext.js";
3
3
  import { uploadImageToFilesWithProgress as n, useFileUrl as r } from "../hooks/useFiles.js";
4
- import { FieldShell as i } from "./Field.js";
4
+ import { cn as i } from "../utils/cn.js";
5
5
  import { useEffect as a, useId as o, useRef as s, useState as c } from "react";
6
6
  import { ImagePlus as l, Loader2 as u, UploadCloud as d, X as f } from "lucide-react";
7
7
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
8
- //#region src/coolandlovely/components/ImageUploadField.tsx
9
- var h = 10 * 1024 * 1024;
8
+ // src/coolandlovely/components/ImageUploadField.tsx
9
+ var h = 10485760;
10
10
  function g(e) {
11
11
  if (e < 1024) return `${e} B`;
12
12
  let t = e / 1024;
13
13
  return t < 1024 ? `${t < 10 ? t.toFixed(1) : Math.round(t)} KB` : `${(t / 1024).toFixed(1)} MB`;
14
14
  }
15
15
  var _ = ({ label: _, value: v, onChange: y, folder: b, hint: x, accept: S = "image/*", disabled: C = !1, className: w, aspect: T = "square" }) => {
16
- let { apiGatewayUrl: E } = e(), D = s(null), O = o(), [k, A] = c(!1), [j, M] = c(null), [N, P] = c(null), [F, I] = c(null), [L, R] = c(!1), [z, B] = c();
16
+ let { apiGatewayUrl: E } = t(), D = s(null), O = o(), [k, A] = c(!1), [j, M] = c(null), [N, P] = c(null), [F, I] = c(null), [L, R] = c(!1), [z, B] = c();
17
17
  a(() => () => {
18
18
  F && URL.revokeObjectURL(F);
19
19
  }, [F]);
@@ -52,7 +52,7 @@ var _ = ({ label: _, value: v, onChange: y, folder: b, hint: x, accept: S = "ima
52
52
  }, q = (e) => {
53
53
  e.preventDefault(), R(!1);
54
54
  }, J = j?.pct ?? 0;
55
- return /* @__PURE__ */ m(i, {
55
+ return /* @__PURE__ */ m(e, {
56
56
  label: _,
57
57
  htmlFor: O,
58
58
  hint: x,
@@ -101,7 +101,7 @@ var _ = ({ label: _, value: v, onChange: y, folder: b, hint: x, accept: S = "ima
101
101
  children: [/* @__PURE__ */ p("img", {
102
102
  src: V,
103
103
  alt: "",
104
- className: t("w-full object-cover", T === "wide" ? "aspect-video" : "aspect-square max-h-64")
104
+ className: i("w-full object-cover", T === "wide" ? "aspect-video" : "aspect-square max-h-64")
105
105
  }), /* @__PURE__ */ m("div", {
106
106
  className: "absolute inset-x-0 bottom-0 flex justify-end gap-2 bg-gradient-to-t from-bg-canvas/85 to-transparent p-2",
107
107
  children: [/* @__PURE__ */ m("button", {
@@ -122,7 +122,7 @@ var _ = ({ label: _, value: v, onChange: y, folder: b, hint: x, accept: S = "ima
122
122
  type: "button",
123
123
  disabled: H,
124
124
  onClick: () => D.current?.click(),
125
- className: t("flex min-h-40 w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed p-6 text-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:opacity-50", L ? "border-accent-primary bg-[var(--color-accent-soft)]" : "border-border-seam hover:border-accent-primary/60 hover:bg-bg-sunken"),
125
+ className: i("flex min-h-40 w-full flex-col items-center justify-center gap-2 rounded-lg border-2 border-dashed p-6 text-center transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] disabled:opacity-50", L ? "border-accent-primary bg-[var(--color-accent-soft)]" : "border-border-seam hover:border-accent-primary/60 hover:bg-bg-sunken"),
126
126
  children: [
127
127
  /* @__PURE__ */ p(d, {
128
128
  className: "h-8 w-8 text-text-secondary",
@@ -149,5 +149,4 @@ var _ = ({ label: _, value: v, onChange: y, folder: b, hint: x, accept: S = "ima
149
149
  })]
150
150
  });
151
151
  };
152
- //#endregion
153
152
  export { _ as ImageUploadField };
@@ -1,31 +1,31 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { useLikeLook as t, useSaveLook as n, useUnlikeLook as r, useUnsaveLook as i } from "../hooks/useCoolAndLovelyApi.js";
3
- import { Thumbnail as a } from "./Thumbnail.js";
4
- import { AddToLookbookButton as o } from "./AddToLookbookButton.js";
5
- import { titleCase as s } from "../utils/formatters.js";
1
+ import { Thumbnail as e } from "./Thumbnail.js";
2
+ import { AddToLookbookButton as t } from "./AddToLookbookButton.js";
3
+ import { useLikeLook as n, useSaveLook as r, useUnlikeLook as i, useUnsaveLook as a } from "../hooks/useCoolAndLovelyApi.js";
4
+ import { titleCase as o } from "../utils/formatters.js";
5
+ import { cn as s } from "../utils/cn.js";
6
6
  import { useEffect as c, useState as l } from "react";
7
7
  import { Bookmark as u, Heart as d, Sparkles as f } from "lucide-react";
8
8
  import { jsx as p, jsxs as m } from "react/jsx-runtime";
9
- //#region src/coolandlovely/components/LookCard.tsx
10
- var h = ({ lookId: n, likeCount: i, isLikedByMe: a }) => {
11
- let o = t(), s = r(), [u, f] = l(!!a), [h, g] = l(i), _ = o.isPending || s.isPending;
9
+ // src/coolandlovely/components/LookCard.tsx
10
+ var h = ({ lookId: e, likeCount: t, isLikedByMe: r }) => {
11
+ let a = n(), o = i(), [u, f] = l(!!r), [h, g] = l(t), _ = a.isPending || o.isPending;
12
12
  return c(() => {
13
- _ || (f(!!a), g(i));
13
+ _ || (f(!!r), g(t));
14
14
  }, [
15
- i,
16
- a,
15
+ t,
16
+ r,
17
17
  _
18
18
  ]), /* @__PURE__ */ m("button", {
19
19
  type: "button",
20
20
  onClick: () => {
21
21
  if (_) return;
22
- let e = !u;
23
- f(e), g((t) => t + (e ? 1 : -1)), (e ? o : s).mutate(n, {
22
+ let n = !u;
23
+ f(n), g((e) => e + (n ? 1 : -1)), (n ? a : o).mutate(e, {
24
24
  onSuccess: (e) => {
25
25
  f(!!e.isLikedByMe), g(e.likeCount);
26
26
  },
27
27
  onError: () => {
28
- f(!e), g(i);
28
+ f(!n), g(t);
29
29
  }
30
30
  });
31
31
  },
@@ -33,54 +33,54 @@ var h = ({ lookId: n, likeCount: i, isLikedByMe: a }) => {
33
33
  "aria-pressed": u,
34
34
  "aria-label": u ? "Unlike this look" : "Like this look",
35
35
  className: "inline-flex items-center gap-1 rounded-full bg-bg-surface/90 px-2 py-1 text-xs font-medium text-text-primary shadow-sm backdrop-blur transition-colors hover:bg-bg-surface disabled:opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
36
- children: [/* @__PURE__ */ p(d, { className: e("h-3.5 w-3.5", u ? "fill-current text-accent-primary" : "text-text-secondary") }), /* @__PURE__ */ p("span", {
36
+ children: [/* @__PURE__ */ p(d, { className: s("h-3.5 w-3.5", u ? "fill-current text-accent-primary" : "text-text-secondary") }), /* @__PURE__ */ p("span", {
37
37
  className: "tabular-nums",
38
38
  children: h
39
39
  })]
40
40
  });
41
- }, g = ({ lookId: t, isSavedByMe: r }) => {
42
- let a = n(), o = i(), [s, d] = l(!!r), f = a.isPending || o.isPending;
41
+ }, g = ({ lookId: e, isSavedByMe: t }) => {
42
+ let n = r(), i = a(), [o, d] = l(!!t), f = n.isPending || i.isPending;
43
43
  return c(() => {
44
- f || d(!!r);
45
- }, [r, f]), /* @__PURE__ */ p("button", {
44
+ f || d(!!t);
45
+ }, [t, f]), /* @__PURE__ */ p("button", {
46
46
  type: "button",
47
47
  onClick: () => {
48
48
  if (f) return;
49
- let e = !s;
50
- d(e), (e ? a : o).mutate(t, {
49
+ let t = !o;
50
+ d(t), (t ? n : i).mutate(e, {
51
51
  onSuccess: (e) => d(!!e.isSavedByMe),
52
- onError: () => d(!e)
52
+ onError: () => d(!t)
53
53
  });
54
54
  },
55
55
  disabled: f,
56
- "aria-pressed": s,
57
- "aria-label": s ? "Remove from saved" : "Save this look",
56
+ "aria-pressed": o,
57
+ "aria-label": o ? "Remove from saved" : "Save this look",
58
58
  className: "inline-flex items-center justify-center rounded-full bg-bg-surface/90 p-1.5 text-text-primary shadow-sm backdrop-blur transition-colors hover:bg-bg-surface disabled:opacity-60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]",
59
- children: /* @__PURE__ */ p(u, { className: e("h-3.5 w-3.5", s ? "fill-current text-accent-primary" : "text-text-secondary") })
59
+ children: /* @__PURE__ */ p(u, { className: s("h-3.5 w-3.5", o ? "fill-current text-accent-primary" : "text-text-secondary") })
60
60
  });
61
- }, _ = ({ id: t, title: n, occasion: r, imageFileId: i, likeCount: c, isLikedByMe: l, isSavedByMe: u, onOpen: _, showActions: v = !1, className: y }) => /* @__PURE__ */ m("div", {
62
- className: e("group relative overflow-hidden rounded-xl border border-border-seam bg-bg-surface transition-shadow hover:shadow-lg", y),
61
+ }, _ = ({ id: n, title: r, occasion: i, imageFileId: a, likeCount: c, isLikedByMe: l, isSavedByMe: u, onOpen: _, showActions: v = !1, className: y }) => /* @__PURE__ */ m("div", {
62
+ className: s("group relative overflow-hidden rounded-xl border border-border-seam bg-bg-surface transition-shadow hover:shadow-lg", y),
63
63
  children: [/* @__PURE__ */ p("button", {
64
64
  type: "button",
65
65
  onClick: _,
66
- "aria-label": `Open look ${n}`,
66
+ "aria-label": `Open look ${r}`,
67
67
  className: "block w-full text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-focus-ring)]",
68
- children: /* @__PURE__ */ p(a, {
68
+ children: /* @__PURE__ */ p(e, {
69
69
  icon: /* @__PURE__ */ p(f, { className: "h-8 w-8" }),
70
- seed: t,
71
- fileId: i,
72
- alt: n,
70
+ seed: n,
71
+ fileId: a,
72
+ alt: r,
73
73
  className: "aspect-[3/4] w-full rounded-none",
74
74
  overlay: /* @__PURE__ */ m("div", {
75
75
  className: "pointer-events-none absolute inset-x-0 bottom-0 flex flex-col gap-1.5 bg-gradient-to-t from-bg-canvas/90 via-bg-canvas/45 to-transparent p-3 pt-10",
76
76
  children: [/* @__PURE__ */ p("p", {
77
77
  className: "truncate text-sm font-semibold text-text-primary",
78
- children: n
78
+ children: r
79
79
  }), /* @__PURE__ */ m("div", {
80
80
  className: "flex items-center justify-between gap-2",
81
81
  children: [/* @__PURE__ */ p("span", {
82
82
  className: "inline-flex items-center rounded-full bg-bg-surface/85 px-2 py-0.5 text-[11px] font-medium text-text-primary backdrop-blur",
83
- children: s(r)
83
+ children: o(i)
84
84
  }), !v && typeof c == "number" && c > 0 ? /* @__PURE__ */ m("span", {
85
85
  className: "inline-flex items-center gap-1 text-xs text-text-secondary",
86
86
  children: [/* @__PURE__ */ p(d, { className: "h-3.5 w-3.5 fill-current text-accent-primary" }), /* @__PURE__ */ p("span", {
@@ -95,17 +95,16 @@ var h = ({ lookId: n, likeCount: i, isLikedByMe: a }) => {
95
95
  className: "absolute right-2 top-2 flex items-center gap-1.5 opacity-100 transition-opacity duration-200 sm:opacity-0 sm:focus-within:opacity-100 sm:group-hover:opacity-100",
96
96
  children: [
97
97
  /* @__PURE__ */ p(h, {
98
- lookId: t,
98
+ lookId: n,
99
99
  likeCount: c ?? 0,
100
100
  isLikedByMe: l
101
101
  }),
102
102
  /* @__PURE__ */ p(g, {
103
- lookId: t,
103
+ lookId: n,
104
104
  isSavedByMe: u
105
105
  }),
106
- /* @__PURE__ */ p(o, { lookId: t })
106
+ /* @__PURE__ */ p(t, { lookId: n })
107
107
  ]
108
108
  }) : null]
109
109
  });
110
- //#endregion
111
110
  export { _ as LookCard };
@@ -1,18 +1,18 @@
1
- import { cn as e } from "../utils/cn.js";
2
- import { Thumbnail as t } from "./Thumbnail.js";
3
- import { TagList as n } from "./TagList.js";
4
- import { VisibilityChip as r } from "./VisibilityChip.js";
1
+ import { Thumbnail as e } from "./Thumbnail.js";
2
+ import { TagList as t } from "./TagList.js";
3
+ import { VisibilityChip as n } from "./VisibilityChip.js";
4
+ import { cn as r } from "../utils/cn.js";
5
5
  import { BookHeart as i } from "lucide-react";
6
6
  import { jsx as a, jsxs as o } from "react/jsx-runtime";
7
- //#region src/coolandlovely/components/LookbookCard.tsx
7
+ // src/coolandlovely/components/LookbookCard.tsx
8
8
  var s = ({ lookbook: s, onClick: c, className: l }) => {
9
9
  let u = Array.isArray(s.entries) ? s.entries.length : null;
10
10
  return /* @__PURE__ */ o("button", {
11
11
  type: "button",
12
12
  onClick: c,
13
13
  "aria-label": `Open lookbook ${s.name}`,
14
- className: e("group flex flex-col overflow-hidden rounded-xl border border-border-seam bg-bg-surface text-left shadow-sm transition-all hover:border-accent-foreground/20 hover:shadow-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-focus-ring)]", l),
15
- children: [/* @__PURE__ */ a(t, {
14
+ className: r("group flex flex-col overflow-hidden rounded-xl border border-border-seam bg-bg-surface text-left shadow-sm transition-all hover:border-accent-foreground/20 hover:shadow-lg focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-[var(--color-focus-ring)]", l),
15
+ children: [/* @__PURE__ */ a(e, {
16
16
  icon: /* @__PURE__ */ a(i, { className: "h-10 w-10" }),
17
17
  seed: s.id,
18
18
  fileId: s.cover?.id,
@@ -36,7 +36,7 @@ var s = ({ lookbook: s, onClick: c, className: l }) => {
36
36
  u === 1 ? "item" : "items"
37
37
  ]
38
38
  })]
39
- }), /* @__PURE__ */ a(r, {
39
+ }), /* @__PURE__ */ a(n, {
40
40
  visibility: s.visibility,
41
41
  className: "shrink-0"
42
42
  })]
@@ -45,7 +45,7 @@ var s = ({ lookbook: s, onClick: c, className: l }) => {
45
45
  className: "mt-1.5 line-clamp-2 text-sm text-text-secondary",
46
46
  children: s.description
47
47
  }),
48
- s.tags.length > 0 && /* @__PURE__ */ a(n, {
48
+ s.tags.length > 0 && /* @__PURE__ */ a(t, {
49
49
  tags: s.tags,
50
50
  max: 4,
51
51
  className: "mt-3"
@@ -54,5 +54,4 @@ var s = ({ lookbook: s, onClick: c, className: l }) => {
54
54
  })]
55
55
  });
56
56
  };
57
- //#endregion
58
57
  export { s as LookbookCard };
@@ -2,7 +2,7 @@ import { cn as e } from "../utils/cn.js";
2
2
  import { Minus as t, TrendingDown as n, TrendingUp as r } from "lucide-react";
3
3
  import { jsx as i, jsxs as a } from "react/jsx-runtime";
4
4
  import { GlassCard as o } from "@burdenoff/fe-libs/ui";
5
- //#region src/coolandlovely/components/MetricsCard.tsx
5
+ // src/coolandlovely/components/MetricsCard.tsx
6
6
  var s = {
7
7
  up: {
8
8
  icon: r,
@@ -17,7 +17,10 @@ var s = {
17
17
  color: "text-text-secondary"
18
18
  }
19
19
  }, c = ({ data: e }) => {
20
- let t = Math.min(...e), n = Math.max(...e) - t || 1, r = e.length > 1 ? 56 / (e.length - 1) : 0;
20
+ let t = Math.min(...e), n = Math.max(...e) - t || 1, r = e.length > 1 ? 56 / (e.length - 1) : 0, a = e.map((e, i) => {
21
+ let a = i * r, o = 20 - (e - t) / n * 18 - 1;
22
+ return `${a.toFixed(1)},${o.toFixed(1)}`;
23
+ }).join(" ");
21
24
  return /* @__PURE__ */ i("svg", {
22
25
  viewBox: "0 0 56 20",
23
26
  width: 56,
@@ -26,10 +29,7 @@ var s = {
26
29
  role: "img",
27
30
  "aria-label": "7-day trend",
28
31
  children: /* @__PURE__ */ i("polyline", {
29
- points: e.map((e, i) => {
30
- let a = i * r, o = 20 - (e - t) / n * 18 - 1;
31
- return `${a.toFixed(1)},${o.toFixed(1)}`;
32
- }).join(" "),
32
+ points: a,
33
33
  fill: "none",
34
34
  stroke: "currentColor",
35
35
  strokeWidth: 1.5,
@@ -70,5 +70,4 @@ var s = {
70
70
  })]
71
71
  });
72
72
  };
73
- //#endregion
74
73
  export { l as MetricsCard };
@@ -1,16 +1,18 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
2
  import { Fragment as t, jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  import { AuroraBackground as i, GradientText as a } from "@burdenoff/fe-libs/ui";
4
- //#region src/coolandlovely/components/PageLayout.tsx
4
+ // src/coolandlovely/components/PageLayout.tsx
5
5
  function o(e) {
6
6
  if (typeof e != "string") return e;
7
7
  let i = e.trim(), o = i.lastIndexOf(" ");
8
- return o === -1 ? /* @__PURE__ */ n(a, {
8
+ if (o === -1) return /* @__PURE__ */ n(a, {
9
9
  as: "span",
10
10
  children: i
11
- }) : /* @__PURE__ */ r(t, { children: [i.slice(0, o + 1), /* @__PURE__ */ n(a, {
11
+ });
12
+ let s = i.slice(0, o + 1), c = i.slice(o + 1);
13
+ return /* @__PURE__ */ r(t, { children: [s, /* @__PURE__ */ n(a, {
12
14
  as: "span",
13
- children: i.slice(o + 1)
15
+ children: c
14
16
  })] });
15
17
  }
16
18
  var s = ({ title: t, description: a, actions: s, children: c, className: l, hero: u = !1 }) => /* @__PURE__ */ r("div", {
@@ -39,5 +41,4 @@ var s = ({ title: t, description: a, actions: s, children: c, className: l, hero
39
41
  children: c
40
42
  })]
41
43
  });
42
- //#endregion
43
44
  export { s as PageLayout };