@fluid-app/portal-sdk 0.1.300 → 0.1.302
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/{AlertWidget-BilCRyau.mjs → AlertWidget-mF7t6q9V.mjs} +3 -3
- package/dist/{AlertWidget-BilCRyau.mjs.map → AlertWidget-mF7t6q9V.mjs.map} +1 -1
- package/dist/{AppDownloadScreen-DtU2S2qh.mjs → AppDownloadScreen-9zlj742F.mjs} +2 -2
- package/dist/{AppDownloadScreen-DtU2S2qh.mjs.map → AppDownloadScreen-9zlj742F.mjs.map} +1 -1
- package/dist/{BulletListWidget-CFPYT5ut.mjs → BulletListWidget-BA7nyDC4.mjs} +2 -2
- package/dist/{BulletListWidget-CFPYT5ut.mjs.map → BulletListWidget-BA7nyDC4.mjs.map} +1 -1
- package/dist/{CalendarWidget-BQP9CfCI.mjs → CalendarWidget-CHpM_XnL.mjs} +2 -2
- package/dist/{CalendarWidget-BQP9CfCI.mjs.map → CalendarWidget-CHpM_XnL.mjs.map} +1 -1
- package/dist/{CardWidget-DfY3Lrm_.mjs → CardWidget-BQdWR7m3.mjs} +2 -2
- package/dist/{CardWidget-DfY3Lrm_.mjs.map → CardWidget-BQdWR7m3.mjs.map} +1 -1
- package/dist/{CarouselWidget-BOWNV3rj.mjs → CarouselWidget-BLQcyVWj.mjs} +2 -2
- package/dist/{CarouselWidget-BOWNV3rj.mjs.map → CarouselWidget-BLQcyVWj.mjs.map} +1 -1
- package/dist/{CatchUpWidget-BtEH9EHQ.mjs → CatchUpWidget-sy6oJqiu.mjs} +2 -2
- package/dist/{CatchUpWidget-BtEH9EHQ.mjs.map → CatchUpWidget-sy6oJqiu.mjs.map} +1 -1
- package/dist/{ChartWidget-rCUOwT7v.mjs → ChartWidget-DE0JNmKi.mjs} +2 -2
- package/dist/{ChartWidget-rCUOwT7v.mjs.map → ChartWidget-DE0JNmKi.mjs.map} +1 -1
- package/dist/{ContactsScreen-Cj2okxTE.mjs → ContactsScreen-suw0tqGW.mjs} +2 -2
- package/dist/{ContactsScreen-Cj2okxTE.mjs.map → ContactsScreen-suw0tqGW.mjs.map} +1 -1
- package/dist/{ContainerWidget-DBRBSg15.mjs → ContainerWidget-CjZOp201.mjs} +3 -3
- package/dist/{ContainerWidget-DBRBSg15.mjs.map → ContainerWidget-CjZOp201.mjs.map} +1 -1
- package/dist/{CustomersScreen-DsRK0m2L.mjs → CustomersScreen-DdSXRmyl.mjs} +2 -2
- package/dist/{CustomersScreen-DsRK0m2L.mjs.map → CustomersScreen-DdSXRmyl.mjs.map} +1 -1
- package/dist/{EmbedWidget-BO6P4QHc.mjs → EmbedWidget-ok8UkJdY.mjs} +2 -2
- package/dist/{EmbedWidget-BO6P4QHc.mjs.map → EmbedWidget-ok8UkJdY.mjs.map} +1 -1
- package/dist/{FluidProvider-CBuTpv9I.cjs → FluidProvider-BAg3B4eD.cjs} +2 -2
- package/dist/{FluidProvider-CBuTpv9I.cjs.map → FluidProvider-BAg3B4eD.cjs.map} +1 -1
- package/dist/{FluidProvider-BBxURUBq.mjs → FluidProvider-C00Px_ej.mjs} +52 -52
- package/dist/{FluidProvider-BBxURUBq.mjs.map → FluidProvider-C00Px_ej.mjs.map} +1 -1
- package/dist/{ImageWidget-DGABEW2_.mjs → ImageWidget-j9pAlihf.mjs} +2 -2
- package/dist/{ImageWidget-DGABEW2_.mjs.map → ImageWidget-j9pAlihf.mjs.map} +1 -1
- package/dist/{LayoutWidget-DYekGAi3.mjs → LayoutWidget-Bvc_oJT-.mjs} +2 -2
- package/dist/{LayoutWidget-DYekGAi3.mjs.map → LayoutWidget-Bvc_oJT-.mjs.map} +1 -1
- package/dist/{LinkWidget-DtuO2cmy.mjs → LinkWidget-CBJjxBOU.mjs} +2 -2
- package/dist/{LinkWidget-DtuO2cmy.mjs.map → LinkWidget-CBJjxBOU.mjs.map} +1 -1
- package/dist/{ListWidget-DRN6ZCp1.mjs → ListWidget-Dw2qxriL.mjs} +2 -2
- package/dist/{ListWidget-DRN6ZCp1.mjs.map → ListWidget-Dw2qxriL.mjs.map} +1 -1
- package/dist/{MessagingScreen-CwzSY_G8.mjs → MessagingScreen-0iAzXjtW.mjs} +4 -4
- package/dist/{MessagingScreen-CwzSY_G8.mjs.map → MessagingScreen-0iAzXjtW.mjs.map} +1 -1
- package/dist/{MessagingScreen-2M2ETWXp.cjs → MessagingScreen-CJ0Rj-M7.cjs} +2 -2
- package/dist/{MessagingScreen-2M2ETWXp.cjs.map → MessagingScreen-CJ0Rj-M7.cjs.map} +1 -1
- package/dist/{MessagingScreen-BI4AufwC.cjs → MessagingScreen-D_feiKUj.cjs} +2 -2
- package/dist/MessagingScreen-aMC3a8cQ.mjs +47 -0
- package/dist/{MySiteScreen-Bx81S9gD.mjs → MySiteScreen-C37AawN3.mjs} +2 -2
- package/dist/{MySiteScreen-Bx81S9gD.mjs.map → MySiteScreen-C37AawN3.mjs.map} +1 -1
- package/dist/{MySiteWidget-D8UtttYC.mjs → MySiteWidget-C37LOc4h.mjs} +2 -2
- package/dist/{MySiteWidget-D8UtttYC.mjs.map → MySiteWidget-C37LOc4h.mjs.map} +1 -1
- package/dist/{NestedWidget-BeOYIuWY.mjs → NestedWidget-DYCR6oXP.mjs} +2 -2
- package/dist/{NestedWidget-BeOYIuWY.mjs.map → NestedWidget-DYCR6oXP.mjs.map} +1 -1
- package/dist/OrdersScreen-B-uk9a0i.mjs +45 -0
- package/dist/{OrdersScreen-sLr0z213.cjs → OrdersScreen-ChbkUQG1.cjs} +2 -2
- package/dist/{OrdersScreen-CFfrQG4i.mjs → OrdersScreen-D1AAopLt.mjs} +40 -40
- package/dist/OrdersScreen-D1AAopLt.mjs.map +1 -0
- package/dist/{OrdersScreen-CS1xA9q5.cjs → OrdersScreen-DrrOttdy.cjs} +40 -40
- package/dist/OrdersScreen-DrrOttdy.cjs.map +1 -0
- package/dist/{PointsWidget-4tTrD6UA.mjs → PointsWidget-D0TPHzoh.mjs} +2 -2
- package/dist/{PointsWidget-4tTrD6UA.mjs.map → PointsWidget-D0TPHzoh.mjs.map} +1 -1
- package/dist/{ProfileScreen-CefqZr-Q.mjs → ProfileScreen-8hi-vFLY.mjs} +70 -70
- package/dist/ProfileScreen-8hi-vFLY.mjs.map +1 -0
- package/dist/{ProfileScreen-BCR3FU5g.cjs → ProfileScreen-BD51dMvj.cjs} +70 -70
- package/dist/ProfileScreen-BD51dMvj.cjs.map +1 -0
- package/dist/{ProfileScreen-CwP66ls2.cjs → ProfileScreen-CHYWGYjZ.cjs} +2 -2
- package/dist/ProfileScreen-HckHOA3z.mjs +47 -0
- package/dist/{QuickLinksWidget-IlrkEORt.mjs → QuickLinksWidget-CQ5u9y6u.mjs} +2 -2
- package/dist/{QuickLinksWidget-IlrkEORt.mjs.map → QuickLinksWidget-CQ5u9y6u.mjs.map} +1 -1
- package/dist/{QuickShareWidget-Bzvh9Yvj.mjs → QuickShareWidget-BIYP_Vju.mjs} +2 -2
- package/dist/{QuickShareWidget-Bzvh9Yvj.mjs.map → QuickShareWidget-BIYP_Vju.mjs.map} +1 -1
- package/dist/{RecentActivityWidget-C9fWPsVD.mjs → RecentActivityWidget-4hDg_4vP.mjs} +2 -2
- package/dist/{RecentActivityWidget-C9fWPsVD.mjs.map → RecentActivityWidget-4hDg_4vP.mjs.map} +1 -1
- package/dist/{SeparatorWidget-CTke2MBj.mjs → SeparatorWidget-N1L4KRZJ.mjs} +2 -2
- package/dist/{SeparatorWidget-CTke2MBj.mjs.map → SeparatorWidget-N1L4KRZJ.mjs.map} +1 -1
- package/dist/{ShareablesScreen-WUM3kwwU.cjs → ShareablesScreen-BmMtSpT8.cjs} +37 -26
- package/dist/ShareablesScreen-BmMtSpT8.cjs.map +1 -0
- package/dist/{ShareablesScreen-DE2k5f6X.mjs → ShareablesScreen-Bx4dJ3uu.mjs} +38 -27
- package/dist/ShareablesScreen-Bx4dJ3uu.mjs.map +1 -0
- package/dist/{ShareablesScreen-Cg10X417.mjs → ShareablesScreen-C2Sj5Jvp.mjs} +2 -2
- package/dist/{ShareablesScreen-BevKtLpN.cjs → ShareablesScreen-D6MjCFu_.cjs} +1 -1
- package/dist/ShopScreen-CIHEblgo.mjs +46 -0
- package/dist/{ShopScreen-CZdXE7dM.cjs → ShopScreen-CnfBzMUM.cjs} +2 -2
- package/dist/{ShopScreen-CZdXE7dM.cjs.map → ShopScreen-CnfBzMUM.cjs.map} +1 -1
- package/dist/{ShopScreen-DdAmK5yn.mjs → ShopScreen-F8cg64iD.mjs} +2 -2
- package/dist/{ShopScreen-DdAmK5yn.mjs.map → ShopScreen-F8cg64iD.mjs.map} +1 -1
- package/dist/{ShopScreen-xfPTLG5b.cjs → ShopScreen-VkI0tl3J.cjs} +2 -2
- package/dist/{SpacerWidget-D3yx57vH.mjs → SpacerWidget-C-Kpjntb.mjs} +2 -2
- package/dist/{SpacerWidget-D3yx57vH.mjs.map → SpacerWidget-C-Kpjntb.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DKihggHx.cjs → SubscriptionsScreen-6Xp62ubF.cjs} +1 -1
- package/dist/{SubscriptionsScreen-Cjd2aGeW.mjs → SubscriptionsScreen-CaDhBQSX.mjs} +48 -48
- package/dist/{SubscriptionsScreen-Cjd2aGeW.mjs.map → SubscriptionsScreen-CaDhBQSX.mjs.map} +1 -1
- package/dist/{SubscriptionsScreen-DLLDU_aU.cjs → SubscriptionsScreen-YL-1_nFd.cjs} +47 -47
- package/dist/{SubscriptionsScreen-DLLDU_aU.cjs.map → SubscriptionsScreen-YL-1_nFd.cjs.map} +1 -1
- package/dist/{TableWidget-DCZDRb0V.mjs → TableWidget-CSB_j9wx.mjs} +2 -2
- package/dist/{TableWidget-DCZDRb0V.mjs.map → TableWidget-CSB_j9wx.mjs.map} +1 -1
- package/dist/{TextWidget-CmuHRU-g.mjs → TextWidget-CPucLu4s.mjs} +2 -2
- package/dist/{TextWidget-CmuHRU-g.mjs.map → TextWidget-CPucLu4s.mjs.map} +1 -1
- package/dist/{ToDoWidget-CXhlO0BY.mjs → ToDoWidget-Czmpoimp.mjs} +2 -2
- package/dist/{ToDoWidget-CXhlO0BY.mjs.map → ToDoWidget-Czmpoimp.mjs.map} +1 -1
- package/dist/{UpgradeScreen-DZ6uZpeX.mjs → UpgradeScreen-u3UxUd3B.mjs} +2 -2
- package/dist/{UpgradeScreen-DZ6uZpeX.mjs.map → UpgradeScreen-u3UxUd3B.mjs.map} +1 -1
- package/dist/{VideoWidget-DlnwYXlo.mjs → VideoWidget-DNhWLnbP.mjs} +2 -2
- package/dist/{VideoWidget-DlnwYXlo.mjs.map → VideoWidget-DNhWLnbP.mjs.map} +1 -1
- package/dist/{es-XDcP51O8.mjs → es-i72IyPYD.mjs} +2 -2
- package/dist/{es-XDcP51O8.mjs.map → es-i72IyPYD.mjs.map} +1 -1
- package/dist/index.cjs +19 -19
- package/dist/index.mjs +60 -60
- package/dist/{portal_tenant_content-C1R1xxDP.cjs → portal_tenant_content-BnrwKhyK.cjs} +9 -7
- package/dist/portal_tenant_content-BnrwKhyK.cjs.map +1 -0
- package/dist/{portal_tenant_content-DPLnrtOG.mjs → portal_tenant_content-CcKZMB9E.mjs} +9 -7
- package/dist/portal_tenant_content-CcKZMB9E.mjs.map +1 -0
- package/package.json +19 -19
- package/styles/globals.css +0 -222
- package/dist/MessagingScreen-B4vUvkRg.mjs +0 -47
- package/dist/OrdersScreen-CFfrQG4i.mjs.map +0 -1
- package/dist/OrdersScreen-CS1xA9q5.cjs.map +0 -1
- package/dist/OrdersScreen-DoopejMR.mjs +0 -45
- package/dist/ProfileScreen-BCR3FU5g.cjs.map +0 -1
- package/dist/ProfileScreen-CefqZr-Q.mjs.map +0 -1
- package/dist/ProfileScreen-wj0KTaQF.mjs +0 -47
- package/dist/ShareablesScreen-DE2k5f6X.mjs.map +0 -1
- package/dist/ShareablesScreen-WUM3kwwU.cjs.map +0 -1
- package/dist/ShopScreen-BKMR1rdM.mjs +0 -46
- package/dist/portal_tenant_content-C1R1xxDP.cjs.map +0 -1
- package/dist/portal_tenant_content-DPLnrtOG.mjs.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
require("./chunk-9hOWP6kD.cjs");
|
|
2
|
-
const require_FluidProvider = require("./FluidProvider-
|
|
2
|
+
const require_FluidProvider = require("./FluidProvider-BAg3B4eD.cjs");
|
|
3
3
|
const require_portal_tenant = require("./portal_tenant-DG4gKXnu.cjs");
|
|
4
4
|
const require_api_context = require("./api-context-BkBvyFVK.cjs");
|
|
5
5
|
const require_countries_api_context = require("./countries-api-context-C0C0K9gJ.cjs");
|
|
@@ -36,39 +36,39 @@ function ProfileLayout(props) {
|
|
|
36
36
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
37
37
|
className: "relative",
|
|
38
38
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
39
|
-
className: "
|
|
39
|
+
className: "relative mx-auto max-w-4xl px-5 pt-8 pb-20 md:px-8",
|
|
40
40
|
children: [
|
|
41
41
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("section", {
|
|
42
42
|
className: "flex items-center gap-3.5",
|
|
43
43
|
children: [
|
|
44
44
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
45
|
-
className: "
|
|
45
|
+
className: "relative size-12 shrink-0 overflow-hidden rounded-full ring-1 ring-black/5 md:size-13",
|
|
46
46
|
children: account.avatar_url ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("img", {
|
|
47
47
|
src: account.avatar_url,
|
|
48
48
|
alt: "",
|
|
49
49
|
className: "h-full w-full object-cover"
|
|
50
50
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
51
|
-
className: "bg-
|
|
51
|
+
className: "bg-primary text-primary-foreground flex h-full w-full items-center justify-center text-lg font-semibold",
|
|
52
52
|
children: heroDisplay.charAt(0).toUpperCase()
|
|
53
53
|
})
|
|
54
54
|
}),
|
|
55
55
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
56
56
|
className: "min-w-0 flex-1",
|
|
57
57
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
58
|
-
className: "text-
|
|
58
|
+
className: "text-foreground truncate text-xl font-bold tracking-tight md:text-2xl",
|
|
59
59
|
children: heroDisplay
|
|
60
60
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
61
|
-
className: "text-
|
|
61
|
+
className: "text-muted-foreground mt-0.5 truncate text-sm",
|
|
62
62
|
children: account.email
|
|
63
63
|
})]
|
|
64
64
|
}),
|
|
65
65
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
66
66
|
className: "flex shrink-0 items-center gap-2",
|
|
67
67
|
children: rewardsEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
68
|
-
className: "ring-
|
|
68
|
+
className: "ring-border text-foreground inline-flex items-center gap-1.5 rounded-md bg-transparent px-2.5 py-1 text-xs font-semibold ring-1",
|
|
69
69
|
children: [
|
|
70
70
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Sparkles, {
|
|
71
|
-
className: "text-
|
|
71
|
+
className: "text-primary size-3",
|
|
72
72
|
strokeWidth: 2.25
|
|
73
73
|
}),
|
|
74
74
|
(pointsBalance ?? 0).toLocaleString(),
|
|
@@ -88,7 +88,7 @@ function ProfileLayout(props) {
|
|
|
88
88
|
})
|
|
89
89
|
}),
|
|
90
90
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
91
|
-
className: "ring-
|
|
91
|
+
className: "ring-border mt-2.5 overflow-hidden rounded-2xl bg-transparent ring-1",
|
|
92
92
|
children: [
|
|
93
93
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(FieldRow, {
|
|
94
94
|
icon: lucide_react.User,
|
|
@@ -127,33 +127,33 @@ function ProfileLayout(props) {
|
|
|
127
127
|
rewardsEnabled && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SectionHeader, {
|
|
128
128
|
title: t("points_history"),
|
|
129
129
|
action: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
130
|
-
className: "text-
|
|
130
|
+
className: "text-muted-foreground/75 text-xs",
|
|
131
131
|
children: t("pts_available", { count: String((pointsBalance ?? 0).toLocaleString()) })
|
|
132
132
|
})
|
|
133
133
|
}), ledger.length > 0 ? /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
134
|
-
className: "ring-
|
|
134
|
+
className: "ring-border mt-2.5 overflow-hidden rounded-2xl bg-transparent ring-1",
|
|
135
135
|
children: [ledgerPreview.map((entry, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PointsLedgerRow, {
|
|
136
136
|
entry,
|
|
137
137
|
isLast: !hasMoreLedger && i === ledgerPreview.length - 1
|
|
138
138
|
}, entry.id)), hasMoreLedger && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
139
139
|
type: "button",
|
|
140
140
|
onClick: () => setIsPointsHistoryOpen(true),
|
|
141
|
-
className: "text-
|
|
141
|
+
className: "text-foreground hover:bg-muted flex w-full items-center justify-center gap-1 px-4 py-3 text-xs font-bold transition-colors",
|
|
142
142
|
children: t("see_all_transactions", { count: ledger.length })
|
|
143
143
|
})]
|
|
144
144
|
}) : /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
145
|
-
className: "ring-dashed ring-
|
|
145
|
+
className: "ring-dashed ring-border mt-2.5 flex flex-col items-center justify-center gap-1 rounded-2xl bg-transparent px-4 py-8 text-center ring-1",
|
|
146
146
|
children: [
|
|
147
147
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Sparkles, {
|
|
148
|
-
className: "text-
|
|
148
|
+
className: "text-muted-foreground/75 size-5",
|
|
149
149
|
strokeWidth: 1.75
|
|
150
150
|
}),
|
|
151
151
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
152
|
-
className: "text-
|
|
152
|
+
className: "text-foreground text-sm font-bold",
|
|
153
153
|
children: t("no_points_yet")
|
|
154
154
|
}),
|
|
155
155
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
156
|
-
className: "text-
|
|
156
|
+
className: "text-muted-foreground text-xs",
|
|
157
157
|
children: t("earn_points_hint")
|
|
158
158
|
})
|
|
159
159
|
]
|
|
@@ -167,10 +167,10 @@ function ProfileLayout(props) {
|
|
|
167
167
|
}) : void 0
|
|
168
168
|
}),
|
|
169
169
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
170
|
-
className: "ring-
|
|
170
|
+
className: "ring-border mt-2.5 flex items-center gap-3 rounded-2xl bg-transparent p-3.5 ring-1",
|
|
171
171
|
children: [
|
|
172
172
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
173
|
-
className: "
|
|
173
|
+
className: "bg-muted text-foreground flex size-11 shrink-0 items-center justify-center rounded-full",
|
|
174
174
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Link2, {
|
|
175
175
|
className: "size-[18px]",
|
|
176
176
|
strokeWidth: 2
|
|
@@ -179,10 +179,10 @@ function ProfileLayout(props) {
|
|
|
179
179
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
180
180
|
className: "min-w-0 flex-1",
|
|
181
181
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
182
|
-
className: "text-
|
|
182
|
+
className: "text-muted-foreground/75 text-xs font-bold tracking-widest uppercase",
|
|
183
183
|
children: t("public_link")
|
|
184
184
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
185
|
-
className: "text-
|
|
185
|
+
className: "text-foreground mt-0.5 truncate font-mono text-sm font-semibold",
|
|
186
186
|
children: mySiteDisplayUrl || t("set_your_mysite_link")
|
|
187
187
|
})]
|
|
188
188
|
}),
|
|
@@ -190,7 +190,7 @@ function ProfileLayout(props) {
|
|
|
190
190
|
type: "button",
|
|
191
191
|
onClick: onCopyMySiteLink,
|
|
192
192
|
disabled: !mySiteDisplayUrl,
|
|
193
|
-
className: "ring-
|
|
193
|
+
className: "ring-border text-foreground hover:bg-muted inline-flex items-center gap-1 rounded-md bg-transparent px-3 py-1.5 text-xs font-bold ring-1 transition-all disabled:cursor-not-allowed disabled:opacity-40",
|
|
194
194
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Copy, {
|
|
195
195
|
className: "size-3",
|
|
196
196
|
strokeWidth: 2.25
|
|
@@ -210,12 +210,12 @@ function ProfileLayout(props) {
|
|
|
210
210
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(SectionHeader, {
|
|
211
211
|
title: t("social_media"),
|
|
212
212
|
action: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
213
|
-
className: "text-
|
|
213
|
+
className: "text-muted-foreground/75 text-xs",
|
|
214
214
|
children: t("connected_count", { count: connectedSocialCount })
|
|
215
215
|
})
|
|
216
216
|
}),
|
|
217
217
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
218
|
-
className: "ring-
|
|
218
|
+
className: "ring-border mt-2.5 overflow-hidden rounded-2xl bg-transparent ring-1",
|
|
219
219
|
children: SOCIAL_ENTRIES.map((entry, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(SocialRow, {
|
|
220
220
|
entry,
|
|
221
221
|
handle: socialLinks[entry.key] ?? "",
|
|
@@ -229,7 +229,7 @@ function ProfileLayout(props) {
|
|
|
229
229
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_src.DialogContent, {
|
|
230
230
|
className: "max-w-md md:max-w-lg",
|
|
231
231
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src.DialogHeader, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src.DialogTitle, { children: t("points_history") }) }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
232
|
-
className: "ring-
|
|
232
|
+
className: "ring-border max-h-[60vh] overflow-y-auto rounded-2xl bg-transparent ring-1",
|
|
233
233
|
children: ledger.map((entry, i) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PointsLedgerRow, {
|
|
234
234
|
entry,
|
|
235
235
|
isLast: i === ledger.length - 1
|
|
@@ -238,26 +238,26 @@ function ProfileLayout(props) {
|
|
|
238
238
|
})
|
|
239
239
|
}),
|
|
240
240
|
onSignOut && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
241
|
-
className: "ring-
|
|
241
|
+
className: "ring-border mt-8 flex flex-wrap items-center justify-between gap-3 rounded-2xl bg-transparent p-3.5 ring-1",
|
|
242
242
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
243
243
|
className: "flex items-center gap-3",
|
|
244
244
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
245
|
-
className: "bg-
|
|
245
|
+
className: "bg-destructive/10 flex size-9 items-center justify-center rounded-md",
|
|
246
246
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.LogOut, {
|
|
247
|
-
className: "text-
|
|
247
|
+
className: "text-destructive size-4",
|
|
248
248
|
strokeWidth: 2.25
|
|
249
249
|
})
|
|
250
250
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
251
|
-
className: "text-
|
|
251
|
+
className: "text-foreground text-sm font-bold",
|
|
252
252
|
children: t("sign_out")
|
|
253
253
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
254
|
-
className: "text-
|
|
254
|
+
className: "text-muted-foreground text-xs",
|
|
255
255
|
children: t("sign_out_description")
|
|
256
256
|
})] })]
|
|
257
257
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
258
258
|
type: "button",
|
|
259
259
|
onClick: onSignOut,
|
|
260
|
-
className: "bg-
|
|
260
|
+
className: "bg-destructive/15 text-destructive hover:bg-destructive/25 rounded-md px-4 py-2 text-xs font-bold transition-colors",
|
|
261
261
|
children: t("sign_out")
|
|
262
262
|
})]
|
|
263
263
|
})
|
|
@@ -269,7 +269,7 @@ function SectionHeader({ title, action }) {
|
|
|
269
269
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
270
270
|
className: "mt-8 flex items-end justify-between",
|
|
271
271
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
272
|
-
className: "text-
|
|
272
|
+
className: "text-foreground text-base font-bold tracking-tight",
|
|
273
273
|
children: title
|
|
274
274
|
}), action ?? null]
|
|
275
275
|
});
|
|
@@ -279,7 +279,7 @@ function PillButton({ onClick, icon: Icon, label, disabled }) {
|
|
|
279
279
|
type: "button",
|
|
280
280
|
onClick,
|
|
281
281
|
disabled,
|
|
282
|
-
className: "ring-
|
|
282
|
+
className: "ring-border text-foreground hover:bg-muted inline-flex items-center gap-1 rounded-md bg-transparent px-3 py-1.5 text-xs font-bold ring-1 transition-all disabled:cursor-not-allowed disabled:opacity-40",
|
|
283
283
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
284
284
|
className: "size-3",
|
|
285
285
|
strokeWidth: 2.25
|
|
@@ -291,33 +291,33 @@ function PointsLedgerRow({ entry, isLast }) {
|
|
|
291
291
|
const isCredit = entry.amount >= 0;
|
|
292
292
|
const sign = isCredit ? "+" : "−";
|
|
293
293
|
const magnitude = Math.abs(entry.amount).toLocaleString();
|
|
294
|
-
const amountColor = isCredit ? "text-emerald-600" : "text-
|
|
294
|
+
const amountColor = isCredit ? "text-emerald-600" : "text-destructive";
|
|
295
295
|
const sourceName = entry.metadata?.source?.name?.trim();
|
|
296
296
|
const transactionType = entry.metadata?.transaction_type;
|
|
297
297
|
const label = sourceName || (transactionType ? transactionType.charAt(0).toUpperCase() + transactionType.slice(1) : isCredit ? t("points_awarded") : t("points_redeemed"));
|
|
298
298
|
const dateLabel = formatLedgerDate(entry.created_at);
|
|
299
299
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
300
|
-
className: `flex items-center gap-3 px-4 py-3.5 ${isLast ? "" : "border-
|
|
300
|
+
className: `flex items-center gap-3 px-4 py-3.5 ${isLast ? "" : "border-border border-b"}`,
|
|
301
301
|
children: [
|
|
302
302
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
303
|
-
className: "bg-
|
|
303
|
+
className: "bg-muted flex size-9 shrink-0 items-center justify-center rounded-full",
|
|
304
304
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Sparkles, {
|
|
305
|
-
className: `size-4 ${isCredit ? "text-
|
|
305
|
+
className: `size-4 ${isCredit ? "text-primary" : "text-muted-foreground"}`,
|
|
306
306
|
strokeWidth: 2
|
|
307
307
|
})
|
|
308
308
|
}),
|
|
309
309
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
310
310
|
className: "min-w-0 flex-1",
|
|
311
311
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
312
|
-
className: "text-
|
|
312
|
+
className: "text-foreground truncate text-sm font-medium",
|
|
313
313
|
children: label
|
|
314
314
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
315
|
-
className: "text-
|
|
315
|
+
className: "text-muted-foreground text-xs",
|
|
316
316
|
children: dateLabel
|
|
317
317
|
})]
|
|
318
318
|
}),
|
|
319
319
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
320
|
-
className: `
|
|
320
|
+
className: `shrink-0 font-mono text-sm font-bold tabular-nums ${amountColor}`,
|
|
321
321
|
children: [sign, magnitude]
|
|
322
322
|
})
|
|
323
323
|
]
|
|
@@ -337,9 +337,9 @@ function formatLedgerDate(iso) {
|
|
|
337
337
|
function FieldRow({ icon: Icon, label, value, placeholder, isLast, multiline }) {
|
|
338
338
|
const display = value || placeholder || "";
|
|
339
339
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
340
|
-
className: `flex gap-3 px-4 py-3.5 ${multiline ? "items-start" : "items-center"} ${isLast ? "" : "border-
|
|
340
|
+
className: `flex gap-3 px-4 py-3.5 ${multiline ? "items-start" : "items-center"} ${isLast ? "" : "border-border border-b"}`,
|
|
341
341
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
342
|
-
className: "bg-
|
|
342
|
+
className: "bg-muted text-muted-foreground flex size-9 shrink-0 items-center justify-center rounded-full",
|
|
343
343
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
344
344
|
className: "size-4",
|
|
345
345
|
strokeWidth: 2
|
|
@@ -347,10 +347,10 @@ function FieldRow({ icon: Icon, label, value, placeholder, isLast, multiline })
|
|
|
347
347
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
348
348
|
className: "min-w-0 flex-1",
|
|
349
349
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
350
|
-
className: "text-
|
|
350
|
+
className: "text-muted-foreground/75 text-xs font-bold tracking-widest uppercase",
|
|
351
351
|
children: label
|
|
352
352
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
353
|
-
className: `mt-0.5 ${multiline ? "whitespace-pre-line" : "truncate"} text-
|
|
353
|
+
className: `mt-0.5 ${multiline ? "whitespace-pre-line" : "truncate"} text-sm font-medium ${!value && Boolean(placeholder) ? "text-muted-foreground/55" : "text-foreground"}`,
|
|
354
354
|
children: display
|
|
355
355
|
})]
|
|
356
356
|
})]
|
|
@@ -397,13 +397,13 @@ function PaymentCardVisual({ method, onClick }) {
|
|
|
397
397
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
398
398
|
className: "relative flex items-start justify-between",
|
|
399
399
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
400
|
-
className: "text-
|
|
400
|
+
className: "text-background/50 text-xs font-semibold tracking-widest uppercase",
|
|
401
401
|
children: brandLabel
|
|
402
402
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
403
|
-
className: "text-
|
|
403
|
+
className: "text-background mt-1 font-mono text-xl font-bold tracking-wider",
|
|
404
404
|
children: last4
|
|
405
405
|
})] }), method.default && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
406
|
-
className: "
|
|
406
|
+
className: "bg-background/10 text-background/80 rounded-md px-2 py-0.5 text-xs font-bold tracking-wider uppercase",
|
|
407
407
|
children: t("default")
|
|
408
408
|
})]
|
|
409
409
|
}),
|
|
@@ -413,22 +413,22 @@ function PaymentCardVisual({ method, onClick }) {
|
|
|
413
413
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
414
414
|
className: "min-w-0 flex-1",
|
|
415
415
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
416
|
-
className: "text-
|
|
416
|
+
className: "text-background/40 text-xs font-semibold tracking-widest uppercase",
|
|
417
417
|
children: t("cardholder")
|
|
418
418
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
419
|
-
className: "text-
|
|
419
|
+
className: "text-background truncate text-xs font-semibold",
|
|
420
420
|
children: holder || " "
|
|
421
421
|
})]
|
|
422
422
|
}),
|
|
423
423
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
424
|
-
className: "text-
|
|
424
|
+
className: "text-background/40 text-xs font-semibold tracking-widest uppercase",
|
|
425
425
|
children: t("card_expires")
|
|
426
426
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
427
|
-
className: "text-
|
|
427
|
+
className: "text-background font-mono text-xs font-semibold",
|
|
428
428
|
children: exp
|
|
429
429
|
})] }),
|
|
430
430
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
431
|
-
className: `
|
|
431
|
+
className: `shrink-0 rounded px-1.5 py-0.5 text-xs font-bold tracking-wider text-white ${badgeBg}`,
|
|
432
432
|
children: badge
|
|
433
433
|
})
|
|
434
434
|
]
|
|
@@ -441,21 +441,21 @@ function AddPaymentTile({ onClick }) {
|
|
|
441
441
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
442
442
|
type: "button",
|
|
443
443
|
onClick,
|
|
444
|
-
className: "group ring-dashed ring-
|
|
444
|
+
className: "group ring-dashed ring-border text-muted-foreground hover:bg-background hover:text-foreground flex aspect-[1.586/1] flex-col items-center justify-center gap-1.5 rounded-xl bg-transparent ring-1 transition-colors",
|
|
445
445
|
children: [
|
|
446
446
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
447
|
-
className: "ring-
|
|
447
|
+
className: "ring-border flex size-9 items-center justify-center rounded-full bg-transparent ring-1",
|
|
448
448
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Plus, {
|
|
449
449
|
className: "size-4",
|
|
450
450
|
strokeWidth: 2.25
|
|
451
451
|
})
|
|
452
452
|
}),
|
|
453
453
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
454
|
-
className: "text-
|
|
454
|
+
className: "text-foreground text-xs font-bold",
|
|
455
455
|
children: t("add_payment_method")
|
|
456
456
|
}),
|
|
457
457
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
458
|
-
className: "text-
|
|
458
|
+
className: "text-muted-foreground/75 text-xs",
|
|
459
459
|
children: t("accepted_cards")
|
|
460
460
|
})
|
|
461
461
|
]
|
|
@@ -470,7 +470,7 @@ function AddressCard({ address, onEdit, onDelete }) {
|
|
|
470
470
|
address.postal_code
|
|
471
471
|
].filter(Boolean).join(", ");
|
|
472
472
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
473
|
-
className: "ring-
|
|
473
|
+
className: "ring-border hover:bg-muted focus-within:ring-foreground/40 relative flex flex-col rounded-2xl bg-transparent ring-1 transition-all duration-200 focus-within:ring-2 hover:ring-2",
|
|
474
474
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
475
475
|
type: "button",
|
|
476
476
|
onClick: onEdit,
|
|
@@ -480,27 +480,27 @@ function AddressCard({ address, onEdit, onDelete }) {
|
|
|
480
480
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
481
481
|
className: "flex items-center gap-2",
|
|
482
482
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
483
|
-
className: "bg-
|
|
483
|
+
className: "bg-muted flex size-8 items-center justify-center rounded-full",
|
|
484
484
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.MapPin, {
|
|
485
|
-
className: "text-
|
|
485
|
+
className: "text-muted-foreground size-4",
|
|
486
486
|
strokeWidth: 2
|
|
487
487
|
})
|
|
488
488
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
489
|
-
className: "text-
|
|
489
|
+
className: "text-foreground text-sm font-bold",
|
|
490
490
|
children: label
|
|
491
491
|
})]
|
|
492
492
|
}), address.default && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
493
|
-
className: "bg-
|
|
493
|
+
className: "bg-primary text-primary-foreground rounded-md px-2 py-0.5 text-xs font-bold tracking-wider uppercase",
|
|
494
494
|
children: t("default")
|
|
495
495
|
})]
|
|
496
496
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
497
|
-
className: "text-
|
|
497
|
+
className: "text-foreground mt-3 space-y-0.5 text-sm leading-snug",
|
|
498
498
|
children: [
|
|
499
499
|
address.address1 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: address.address1 }),
|
|
500
500
|
address.address2 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: address.address2 }),
|
|
501
501
|
cityLine && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", { children: cityLine }),
|
|
502
502
|
address.country_code && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
503
|
-
className: "text-
|
|
503
|
+
className: "text-muted-foreground",
|
|
504
504
|
children: address.country_code
|
|
505
505
|
})
|
|
506
506
|
]
|
|
@@ -521,15 +521,15 @@ function AddAddressTile({ onClick }) {
|
|
|
521
521
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("button", {
|
|
522
522
|
type: "button",
|
|
523
523
|
onClick,
|
|
524
|
-
className: "group ring-dashed ring-
|
|
524
|
+
className: "group ring-dashed ring-border text-muted-foreground hover:bg-background hover:text-foreground flex min-h-37 flex-col items-center justify-center gap-1.5 rounded-2xl bg-transparent ring-1 transition-colors",
|
|
525
525
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
526
|
-
className: "ring-
|
|
526
|
+
className: "ring-border flex size-9 items-center justify-center rounded-full bg-transparent ring-1",
|
|
527
527
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Plus, {
|
|
528
528
|
className: "size-4",
|
|
529
529
|
strokeWidth: 2.25
|
|
530
530
|
})
|
|
531
531
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
532
|
-
className: "text-
|
|
532
|
+
className: "text-foreground text-sm font-bold",
|
|
533
533
|
children: t("add_an_address")
|
|
534
534
|
})]
|
|
535
535
|
});
|
|
@@ -582,10 +582,10 @@ function SocialRow({ entry, handle, isLast, onConnect }) {
|
|
|
582
582
|
const { t } = require_AddressAutocompleteInput.useProfileTranslation();
|
|
583
583
|
const Icon = entry.icon;
|
|
584
584
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
585
|
-
className: `flex items-center gap-3 px-4 py-3.5 ${isLast ? "" : "border-
|
|
585
|
+
className: `flex items-center gap-3 px-4 py-3.5 ${isLast ? "" : "border-border border-b"}`,
|
|
586
586
|
children: [
|
|
587
587
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
588
|
-
className: "bg-
|
|
588
|
+
className: "bg-muted text-foreground flex size-9 shrink-0 items-center justify-center rounded-full",
|
|
589
589
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Icon, {
|
|
590
590
|
className: "size-4",
|
|
591
591
|
strokeWidth: 2
|
|
@@ -594,10 +594,10 @@ function SocialRow({ entry, handle, isLast, onConnect }) {
|
|
|
594
594
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
595
595
|
className: "min-w-0 flex-1",
|
|
596
596
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
597
|
-
className: "text-
|
|
597
|
+
className: "text-foreground text-sm font-bold",
|
|
598
598
|
children: entry.label
|
|
599
599
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
600
|
-
className: `text-
|
|
600
|
+
className: `truncate text-xs ${handle ? "text-muted-foreground" : "text-muted-foreground/55"}`,
|
|
601
601
|
children: handle || entry.placeholder
|
|
602
602
|
})]
|
|
603
603
|
}),
|
|
@@ -1265,4 +1265,4 @@ Object.defineProperty(exports, "profileScreenPropertySchema", {
|
|
|
1265
1265
|
}
|
|
1266
1266
|
});
|
|
1267
1267
|
|
|
1268
|
-
//# sourceMappingURL=ProfileScreen-
|
|
1268
|
+
//# sourceMappingURL=ProfileScreen-BD51dMvj.cjs.map
|