From 4d660e945bf19c5ab6114758df48534fd36a1003 Mon Sep 17 00:00:00 2001 From: shafi54 <108669266+shafi-aviz@users.noreply.github.com> Date: Sun, 10 May 2026 19:44:26 +0530 Subject: [PATCH] enh --- .../.output/server/_ssr/cart-CHg5Ccyz.mjs | 14 +- .../.output/server/_ssr/checkout-CaijlEpv.mjs | 22 +- .../.output/server/_ssr/flash-CkaCI73Q.mjs | 12 +- .../server/_ssr/flash.cart-BCcvG5Yb.mjs | 14 +- .../server/_ssr/flash.checkout-D2UaQnns.mjs | 22 +- .../_ssr/flash.order-success-C9tkVfq7.mjs | 8 +- .../_ssr/flash.product._id-SS95dT27.mjs | 14 +- .../.output/server/_ssr/home-BxXKVXbQ.mjs | 40 +- .../server/_ssr/home.cart-Bl_3HSf0.mjs | 14 +- .../server/_ssr/home.checkout-o3MfvOFR.mjs | 22 +- .../_ssr/home.order-success-COjzwSkc.mjs | 8 +- .../server/_ssr/home.product._id-C2EPG814.mjs | 18 +- .../server/_ssr/home.search-pQXmTQuR.mjs | 6 +- .../.output/server/_ssr/login-QH2hpwxi.mjs | 18 +- .../.output/server/_ssr/me-Dn8Tk_dJ.mjs | 14 +- .../.output/server/_ssr/me.about-ig0mha9d.mjs | 12 +- .../server/_ssr/me.addresses-DS1Qf9Hh.mjs | 14 +- .../server/_ssr/me.complaints-CUIcnKsp.mjs | 16 +- .../server/_ssr/me.coupons-CK-hvcuK.mjs | 14 +- .../server/_ssr/me.edit-profile-jHHMfrY4.mjs | 10 +- .../server/_ssr/me.orders-CSqnUtwy.mjs | 12 +- .../server/_ssr/me.orders._id-Cq7m-7ba.mjs | 30 +- .../.output/server/_ssr/me.terms-BY5QWW0t.mjs | 24 +- .../.output/server/_ssr/register-dcmJe--5.mjs | 14 +- .../.output/server/_ssr/src-u_N1opJl.mjs | 10 +- .../.output/server/_ssr/stores-CcccRdgP.mjs | 8 +- .../server/_ssr/stores._storeId-CWdFRADX.mjs | 8 +- ...s._storeId.product._productId-C9GtcXdb.mjs | 14 +- .../web-ui/src/components/AddToCartDialog.tsx | 34 +- apps/web-ui/src/components/AddressForm.tsx | 48 +- apps/web-ui/src/components/AppLayout.tsx | 39 ++ .../src/components/BottomNavigation.tsx | 120 ++++ .../components/CheckoutAddressSelector.tsx | 48 +- .../web-ui/src/components/FloatingCartBar.tsx | 295 +++++++++ .../components/PaymentAndOrderComponent.tsx | 98 +-- apps/web-ui/src/components/ProductCard.tsx | 224 +++++++ apps/web-ui/src/components/index.ts | 4 + apps/web-ui/src/hooks/index.ts | 3 + .../hooks/usePopulateCentralProductStore.ts | 14 + .../src/hooks/usePopulateCentralStores.ts | 57 ++ .../src/hooks/useProductSlotIdentifier.ts | 30 + apps/web-ui/src/routeTree.gen.ts | 21 + apps/web-ui/src/routes/cart.tsx | 26 +- apps/web-ui/src/routes/checkout.tsx | 38 +- apps/web-ui/src/routes/flash.cart.tsx | 24 +- apps/web-ui/src/routes/flash.checkout.tsx | 36 +- .../web-ui/src/routes/flash.order-success.tsx | 10 +- apps/web-ui/src/routes/flash.product.$id.tsx | 24 +- apps/web-ui/src/routes/flash.tsx | 30 +- apps/web-ui/src/routes/home.cart.tsx | 26 +- apps/web-ui/src/routes/home.checkout.tsx | 40 +- apps/web-ui/src/routes/home.order-success.tsx | 14 +- apps/web-ui/src/routes/home.product.$id.tsx | 28 +- apps/web-ui/src/routes/home.search.tsx | 14 +- apps/web-ui/src/routes/home.tsx | 575 ++++++++++-------- apps/web-ui/src/routes/login.tsx | 43 +- apps/web-ui/src/routes/me.about.tsx | 20 +- apps/web-ui/src/routes/me.addresses.tsx | 20 +- apps/web-ui/src/routes/me.complaints.tsx | 263 +++++--- apps/web-ui/src/routes/me.coupons.tsx | 218 +++++-- apps/web-ui/src/routes/me.edit-profile.tsx | 221 +++++-- apps/web-ui/src/routes/me.orders.$id.tsx | 572 +++++++++++++---- apps/web-ui/src/routes/me.orders.tsx | 26 +- apps/web-ui/src/routes/me.terms.tsx | 46 +- apps/web-ui/src/routes/me.tsx | 122 ++-- apps/web-ui/src/routes/register.tsx | 18 +- apps/web-ui/src/routes/slot-view.tsx | 465 ++++++++++++++ .../stores.$storeId.product.$productId.tsx | 26 +- apps/web-ui/src/routes/stores.$storeId.tsx | 266 +++++--- apps/web-ui/src/routes/stores.tsx | 258 ++++++-- apps/web-ui/src/styles.css | 44 +- package-lock.json | 7 + .../web-components/src/components/dialog.tsx | 8 +- .../src/components/image-uploader-neo.tsx | 6 +- .../src/components/my-button.tsx | 4 +- .../src/components/my-text-input.tsx | 12 +- .../web-components/src/components/my-text.tsx | 6 +- .../src/components/my-touchable-opacity.tsx | 6 +- .../src/components/quantifier.tsx | 10 +- packages/web-components/src/index.ts | 8 +- packages/web-components/tailwind.config.ts | 98 ++- 81 files changed, 3732 insertions(+), 1413 deletions(-) create mode 100644 apps/web-ui/src/components/AppLayout.tsx create mode 100644 apps/web-ui/src/components/BottomNavigation.tsx create mode 100644 apps/web-ui/src/components/FloatingCartBar.tsx create mode 100644 apps/web-ui/src/components/ProductCard.tsx create mode 100644 apps/web-ui/src/hooks/usePopulateCentralProductStore.ts create mode 100644 apps/web-ui/src/hooks/usePopulateCentralStores.ts create mode 100644 apps/web-ui/src/hooks/useProductSlotIdentifier.ts create mode 100644 apps/web-ui/src/routes/slot-view.tsx diff --git a/apps/web-ui/.output/server/_ssr/cart-CHg5Ccyz.mjs b/apps/web-ui/.output/server/_ssr/cart-CHg5Ccyz.mjs index 19640df..2a0b12e 100644 --- a/apps/web-ui/.output/server/_ssr/cart-CHg5Ccyz.mjs +++ b/apps/web-ui/.output/server/_ssr/cart-CHg5Ccyz.mjs @@ -1,6 +1,6 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { a as Trash2 } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, l as Quantifier, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, l as Quantifier, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { a as useUpdateCartItem, i as useRemoveFromCart, r as useGetCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { t as useAllProducts } from "./prominent-api-hooks-CNVDntUD.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; @@ -23,13 +23,13 @@ function CartPage() { const product = productsById[item.productId]; if (product) total += product.price * item.quantity; }); - return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "Your Cart" }), cartItems.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-4 py-20", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-gray-500", children: "Your cart is empty" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyButton, { @@ -52,13 +52,13 @@ function CartPage() { /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex-1", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-sm", numberOfLines: 1, children: product.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-brand-600 text-sm font-bold", children: ["₹", price] }), @@ -82,10 +82,10 @@ function CartPage() { className: "fixed bottom-0 left-0 right-0 border-t border-gray-200 bg-white p-4 shadow-lg", children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-3 flex items-center justify-between", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", children: "Total" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-lg text-brand-600", children: ["₹", total] diff --git a/apps/web-ui/.output/server/_ssr/checkout-CaijlEpv.mjs b/apps/web-ui/.output/server/_ssr/checkout-CaijlEpv.mjs index 8bfea40..bc975e6 100644 --- a/apps/web-ui/.output/server/_ssr/checkout-CaijlEpv.mjs +++ b/apps/web-ui/.output/server/_ssr/checkout-CaijlEpv.mjs @@ -1,6 +1,6 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime, p as useQueryClient } from "../_libs/react+tanstack__react-query.mjs"; -import { a as MyText, i as MyButton, r as LoadingDialog, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, r as LoadingDialog, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { r as useGetCart, t as clearLocalCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; import { t as useAllProducts } from "./prominent-api-hooks-CNVDntUD.mjs"; @@ -59,14 +59,14 @@ function CheckoutPage() { }); }; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "Checkout" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2", children: "Delivery Address" @@ -74,11 +74,11 @@ function CheckoutPage() { onClick: () => setSelectedAddressId(addr.id), className: `mb-2 rounded-xl border p-3 ${selectedAddressId === addr.id ? "border-brand-500 bg-brand-50" : "border-gray-200"}`, children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", children: addr.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-600", children: [ addr.addressLine1, @@ -86,7 +86,7 @@ function CheckoutPage() { addr.city ] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-500", children: addr.phone }) @@ -96,7 +96,7 @@ function CheckoutPage() { /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2", children: "Order Summary" @@ -106,7 +106,7 @@ function CheckoutPage() { if (!product) return null; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between py-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm", numberOfLines: 1, children: [ @@ -114,7 +114,7 @@ function CheckoutPage() { " x", item.quantity ] - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm font-bold", children: ["₹", product.price * item.quantity] })] @@ -124,10 +124,10 @@ function CheckoutPage() { className: "mt-2 border-t border-gray-200 pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", children: "Total" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-brand-600", children: ["₹", total] diff --git a/apps/web-ui/.output/server/_ssr/flash-CkaCI73Q.mjs b/apps/web-ui/.output/server/_ssr/flash-CkaCI73Q.mjs index 4b42baa..f16d45a 100644 --- a/apps/web-ui/.output/server/_ssr/flash-CkaCI73Q.mjs +++ b/apps/web-ui/.output/server/_ssr/flash-CkaCI73Q.mjs @@ -1,7 +1,7 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { l as ShoppingCart, t as Zap } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, l as Quantifier, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, l as Quantifier, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as useAddToCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { t as create } from "../_libs/zustand.mjs"; @@ -35,7 +35,7 @@ function FlashDeliveryPage() { return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4 flex items-center gap-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Zap, { className: "h-6 w-6 text-yellow-500" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Zap, { className: "h-6 w-6 text-yellow-500" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "text-xl", children: "1 Hr Delivery" @@ -43,7 +43,7 @@ function FlashDeliveryPage() { }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mb-4 rounded-xl bg-yellow-50 p-3", - children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-yellow-800", children: "Get these products delivered within 1 hour! Only available for select items." }) @@ -64,13 +64,13 @@ function FlashDeliveryPage() { className: "h-full w-full object-cover" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-sm", numberOfLines: 2, children: product.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-brand-600", children: ["₹", price] @@ -98,7 +98,7 @@ function FlashDeliveryPage() { }), flashProducts.length === 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "py-20 text-center", - children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-gray-500", children: "No flash delivery products available" }) diff --git a/apps/web-ui/.output/server/_ssr/flash.cart-BCcvG5Yb.mjs b/apps/web-ui/.output/server/_ssr/flash.cart-BCcvG5Yb.mjs index a92cd54..f137a38 100644 --- a/apps/web-ui/.output/server/_ssr/flash.cart-BCcvG5Yb.mjs +++ b/apps/web-ui/.output/server/_ssr/flash.cart-BCcvG5Yb.mjs @@ -1,6 +1,6 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { a as Trash2, t as Zap } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, l as Quantifier, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, l as Quantifier, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { a as useUpdateCartItem, i as useRemoveFromCart, r as useGetCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { t as useCentralProductStore } from "./central-product-store-TS-vQ8-V.mjs"; @@ -20,14 +20,14 @@ function FlashCartPage() { }); return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4 flex items-center gap-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Zap, { className: "h-5 w-5 text-yellow-500" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Zap, { className: "h-5 w-5 text-yellow-500" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "text-xl", children: "Flash Cart" })] }), cartItems.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-4 py-20", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-gray-500", children: "Your flash cart is empty" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyButton, { @@ -50,13 +50,13 @@ function FlashCartPage() { /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex-1", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-sm", numberOfLines: 1, children: product.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-brand-600 text-sm font-bold", children: ["₹", price] }), @@ -80,10 +80,10 @@ function FlashCartPage() { className: "fixed bottom-0 left-0 right-0 border-t border-gray-200 bg-white p-4 shadow-lg", children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-3 flex items-center justify-between", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", children: "Total" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-lg text-brand-600", children: ["₹", total] diff --git a/apps/web-ui/.output/server/_ssr/flash.checkout-D2UaQnns.mjs b/apps/web-ui/.output/server/_ssr/flash.checkout-D2UaQnns.mjs index 101186b..ee24926 100644 --- a/apps/web-ui/.output/server/_ssr/flash.checkout-D2UaQnns.mjs +++ b/apps/web-ui/.output/server/_ssr/flash.checkout-D2UaQnns.mjs @@ -1,6 +1,6 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime, p as useQueryClient } from "../_libs/react+tanstack__react-query.mjs"; -import { a as MyText, i as MyButton, r as LoadingDialog, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, r as LoadingDialog, t as AppContainer } from "./src-u_N1opJl.mjs"; import { r as useGetCart, t as clearLocalCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; @@ -54,14 +54,14 @@ function FlashCheckoutPage() { }); }; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "Flash Checkout" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2", children: "Delivery Address" @@ -69,11 +69,11 @@ function FlashCheckoutPage() { onClick: () => setSelectedAddressId(addr.id), className: `mb-2 w-full rounded-xl border p-3 text-left ${selectedAddressId === addr.id ? "border-brand-500 bg-brand-50" : "border-gray-200"}`, children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", children: addr.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-600", children: [ addr.addressLine1, @@ -81,7 +81,7 @@ function FlashCheckoutPage() { addr.city ] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-500", children: addr.phone }) @@ -91,7 +91,7 @@ function FlashCheckoutPage() { /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2", children: "Order Summary" @@ -101,7 +101,7 @@ function FlashCheckoutPage() { if (!product) return null; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between py-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm", numberOfLines: 1, children: [ @@ -109,7 +109,7 @@ function FlashCheckoutPage() { " x", item.quantity ] - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm font-bold", children: ["₹", (product.discountedPrice ?? product.price) * item.quantity] })] @@ -119,10 +119,10 @@ function FlashCheckoutPage() { className: "mt-2 border-t border-gray-200 pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", children: "Total" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-brand-600", children: ["₹", total] diff --git a/apps/web-ui/.output/server/_ssr/flash.order-success-C9tkVfq7.mjs b/apps/web-ui/.output/server/_ssr/flash.order-success-C9tkVfq7.mjs index d9848b8..d452a2e 100644 --- a/apps/web-ui/.output/server/_ssr/flash.order-success-C9tkVfq7.mjs +++ b/apps/web-ui/.output/server/_ssr/flash.order-success-C9tkVfq7.mjs @@ -1,6 +1,6 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { t as Zap } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton } from "./src-u_N1opJl.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { t as Route } from "./flash.order-success-Bs-Lyb2u.mjs"; //#region node_modules/.nitro/vite/services/ssr/assets/flash.order-success-C9tkVfq7.js @@ -15,16 +15,16 @@ function FlashOrderSuccessPage() { className: "mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-yellow-100", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Zap, { className: "h-10 w-10 text-yellow-600" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-2 text-2xl text-gray-900", children: "1 Hr Order Placed!" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "mb-1 text-gray-600", children: ["Order ID: #", orderId] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "mb-8 text-gray-600", children: ["Total: ₹", totalAmount] }), diff --git a/apps/web-ui/.output/server/_ssr/flash.product._id-SS95dT27.mjs b/apps/web-ui/.output/server/_ssr/flash.product._id-SS95dT27.mjs index 1558479..d018ef1 100644 --- a/apps/web-ui/.output/server/_ssr/flash.product._id-SS95dT27.mjs +++ b/apps/web-ui/.output/server/_ssr/flash.product._id-SS95dT27.mjs @@ -1,7 +1,7 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { l as ShoppingCart, t as Zap } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, l as Quantifier, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, l as Quantifier, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as useAddToCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { t as useCentralProductStore } from "./central-product-store-TS-vQ8-V.mjs"; @@ -24,13 +24,13 @@ function FlashProductDetailPage() { storeId: product.storeId }, { onSuccess: () => navigate({ to: "/flash/cart" }) }); }; - if (!product) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { children: "Product not found" }) }); + if (!product) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { children: "Product not found" }) }); const price = product.discountedPrice ?? product.price; const imageUrl = product.images?.[0]; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4 flex items-center gap-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Zap, { className: "h-5 w-5 text-yellow-500" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Zap, { className: "h-5 w-5 text-yellow-500" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm font-semibold text-yellow-600", children: "1 Hr Delivery" })] @@ -43,22 +43,22 @@ function FlashProductDetailPage() { className: "h-full w-full object-cover" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-1 text-xl", children: product.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "mb-4 text-sm text-gray-500", children: [product.unitValue, product.unit] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4 flex items-baseline gap-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-2xl text-brand-600", children: ["₹", price] - }), product.discountedPrice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), product.discountedPrice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-400 line-through", children: ["₹", product.price] })] diff --git a/apps/web-ui/.output/server/_ssr/home-BxXKVXbQ.mjs b/apps/web-ui/.output/server/_ssr/home-BxXKVXbQ.mjs index d4db702..19a92a4 100644 --- a/apps/web-ui/.output/server/_ssr/home-BxXKVXbQ.mjs +++ b/apps/web-ui/.output/server/_ssr/home-BxXKVXbQ.mjs @@ -1,7 +1,7 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { i as Truck, l as ShoppingCart, n as X, t as Zap } from "../_libs/lucide-react.mjs"; -import { a as MyText, l as Quantifier, n as BottomDialog, s as MyTouchableOpacity, u as SearchBar } from "./src-u_N1opJl.mjs"; +import { a as p, l as Quantifier, n as BottomDialog, s as MyTouchableOpacity, u as SearchBar } from "./src-u_N1opJl.mjs"; import { a as useUpdateCartItem, i as useRemoveFromCart, n as useAddToCart, r as useGetCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { a as useStores, n as useBanners, r as useSlots, t as useAllProducts } from "./prominent-api-hooks-CNVDntUD.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; @@ -113,11 +113,11 @@ function AddToCartDialog() { }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex-1", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "text-lg", children: "Select Delivery Slot" - }), product?.name && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), product?.name && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-500", children: [ product.name, @@ -145,7 +145,7 @@ function AddToCartDialog() { className: `flex items-start gap-3 rounded-xl border bg-gray-50 p-4 ${selectedSlotId === slot.id ? "border-brand-500" : "border-gray-100"}`, children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Truck, { className: "mt-0.5 h-5 w-5 shrink-0 text-blue-500" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "flex-1 text-sm", children: [(0, import_dayjs_min.default)(slot.deliveryTime).format("ddd, DD MMM • "), formatTimeRange(slot.deliveryTime)] @@ -172,7 +172,7 @@ function AddToCartDialog() { className: `flex items-center gap-3 rounded-xl border p-4 mb-4 ${selectedFlashDelivery ? "border-pink-500 bg-pink-50" : "border-pink-200 bg-pink-50"}`, children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Zap, { className: "h-5 w-5 shrink-0 text-pink-500" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "flex-1 text-sm", children: "1 hr Delivery" @@ -192,7 +192,7 @@ function AddToCartDialog() { }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-2 text-sm", children: "Quantity" @@ -277,7 +277,7 @@ function HomePage() { className: "mb-8", children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex items-center justify-between mb-4", - children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "text-lg md:text-xl", children: "Our Stores" @@ -297,7 +297,7 @@ function HomePage() { className: "mb-24", children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "flex items-center justify-between mb-4", - children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "text-lg md:text-xl", children: "All Products" @@ -408,12 +408,12 @@ function StoreCard({ store, onClick }) { }) }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-sm truncate", children: store.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-xs text-gray-500", children: [store.productCount || 0, " products"] }) @@ -450,29 +450,29 @@ function ProductCard({ product, onClick, onAddToCart }) { }) }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-sm leading-tight line-clamp-2 mb-1", children: product.name }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-baseline gap-1.5", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-brand-600 text-sm md:text-base", children: ["₹", product.price] - }), hasDiscount && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), hasDiscount && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-xs text-gray-400 line-through", children: ["₹", product.marketPrice] })] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-[11px] text-gray-400 mb-2", children: ["/", product.unit] }), product.nextDeliveryDate && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-3 flex items-center gap-1 self-start rounded-lg bg-brand-50 px-2 py-1 border border-brand-100", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Truck, { className: "h-3 w-3 text-brand-600" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Truck, { className: "h-3 w-3 text-brand-600" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-[10px] font-bold text-brand-700", children: (0, import_dayjs_min.default)(product.nextDeliveryDate).format("ddd, DD MMM • h:mm A") })] @@ -511,15 +511,15 @@ function FloatingCartBar({ onClick }) { className: "flex-1", children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center gap-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-sm text-white", children: ["₹", totalCartValue] - }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-xs text-white/80", children: itemCount === 0 ? "No items in cart" : `• ${itemCount} ${itemCount === 1 ? "item" : "items"}` })] - }), remainingForFreeDelivery > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), remainingForFreeDelivery > 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-[10px] font-bold text-white/70", children: [ "₹", @@ -533,11 +533,11 @@ function FloatingCartBar({ onClick }) { fill: "currentColor", viewBox: "0 0 24 24", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) - }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-[10px] font-bold text-emerald-300", children: "Free Delivery Unlocked" })] - }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-[10px] text-white/50", children: [ "Shop for ₹", diff --git a/apps/web-ui/.output/server/_ssr/home.cart-Bl_3HSf0.mjs b/apps/web-ui/.output/server/_ssr/home.cart-Bl_3HSf0.mjs index 2fa021e..d1eb6b8 100644 --- a/apps/web-ui/.output/server/_ssr/home.cart-Bl_3HSf0.mjs +++ b/apps/web-ui/.output/server/_ssr/home.cart-Bl_3HSf0.mjs @@ -1,6 +1,6 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { a as Trash2 } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, l as Quantifier, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, l as Quantifier, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { a as useUpdateCartItem, i as useRemoveFromCart, r as useGetCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { t as useAllProducts } from "./prominent-api-hooks-CNVDntUD.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; @@ -23,13 +23,13 @@ function CartPage() { const product = productsById[item.productId]; if (product) total += product.price * item.quantity; }); - return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "Your Cart" }), cartItems.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-4 py-20", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-gray-500", children: "Your cart is empty" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyButton, { @@ -52,13 +52,13 @@ function CartPage() { /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex-1", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-sm", numberOfLines: 1, children: product.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-brand-600 text-sm font-bold", children: ["₹", price] }), @@ -82,10 +82,10 @@ function CartPage() { className: "fixed bottom-0 left-0 right-0 border-t border-gray-200 bg-white p-4 shadow-lg", children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-3 flex items-center justify-between", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", children: "Total" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-lg text-brand-600", children: ["₹", total] diff --git a/apps/web-ui/.output/server/_ssr/home.checkout-o3MfvOFR.mjs b/apps/web-ui/.output/server/_ssr/home.checkout-o3MfvOFR.mjs index 1d11fb6..b2e82e1 100644 --- a/apps/web-ui/.output/server/_ssr/home.checkout-o3MfvOFR.mjs +++ b/apps/web-ui/.output/server/_ssr/home.checkout-o3MfvOFR.mjs @@ -1,6 +1,6 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime, p as useQueryClient } from "../_libs/react+tanstack__react-query.mjs"; -import { a as MyText, i as MyButton, r as LoadingDialog, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, r as LoadingDialog, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { r as useGetCart, t as clearLocalCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; @@ -54,14 +54,14 @@ function CheckoutPage() { }); }; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "Checkout" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2", children: "Delivery Address" @@ -69,11 +69,11 @@ function CheckoutPage() { onClick: () => setSelectedAddressId(addr.id), className: `mb-2 rounded-xl border p-3 ${selectedAddressId === addr.id ? "border-brand-500 bg-brand-50" : "border-gray-200"}`, children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", children: addr.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-600", children: [ addr.addressLine1, @@ -81,7 +81,7 @@ function CheckoutPage() { addr.city ] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-500", children: addr.phone }) @@ -91,7 +91,7 @@ function CheckoutPage() { /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2", children: "Order Summary" @@ -101,7 +101,7 @@ function CheckoutPage() { if (!product) return null; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between py-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm", numberOfLines: 1, children: [ @@ -109,7 +109,7 @@ function CheckoutPage() { " x", item.quantity ] - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm font-bold", children: ["₹", (product.discountedPrice ?? product.price) * item.quantity] })] @@ -119,10 +119,10 @@ function CheckoutPage() { className: "mt-2 border-t border-gray-200 pt-2", children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", children: "Total" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-brand-600", children: ["₹", total] diff --git a/apps/web-ui/.output/server/_ssr/home.order-success-COjzwSkc.mjs b/apps/web-ui/.output/server/_ssr/home.order-success-COjzwSkc.mjs index d0e12f0..dc3313f 100644 --- a/apps/web-ui/.output/server/_ssr/home.order-success-COjzwSkc.mjs +++ b/apps/web-ui/.output/server/_ssr/home.order-success-COjzwSkc.mjs @@ -1,6 +1,6 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { p as Package } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton } from "./src-u_N1opJl.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { t as Route } from "./home.order-success-ng0baB-e.mjs"; //#region node_modules/.nitro/vite/services/ssr/assets/home.order-success-COjzwSkc.js @@ -15,16 +15,16 @@ function OrderSuccessPage() { className: "mb-6 flex h-20 w-20 items-center justify-center rounded-full bg-green-100", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Package, { className: "h-10 w-10 text-green-600" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-2 text-2xl text-gray-900", children: "Order Placed!" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "mb-1 text-gray-600", children: ["Order ID: #", orderId] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "mb-8 text-gray-600", children: ["Total: ₹", totalAmount] }), diff --git a/apps/web-ui/.output/server/_ssr/home.product._id-C2EPG814.mjs b/apps/web-ui/.output/server/_ssr/home.product._id-C2EPG814.mjs index bc70694..d4dd6ef 100644 --- a/apps/web-ui/.output/server/_ssr/home.product._id-C2EPG814.mjs +++ b/apps/web-ui/.output/server/_ssr/home.product._id-C2EPG814.mjs @@ -1,7 +1,7 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { c as Star, l as ShoppingCart } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, l as Quantifier, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, l as Quantifier, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as useAddToCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; @@ -26,7 +26,7 @@ function ProductDetailPage() { storeId: product.storeId }, { onSuccess: () => navigate({ to: "/cart" }) }); }; - if (!product) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { children: "Product not found" }) }); + if (!product) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { children: "Product not found" }) }); const price = product.discountedPrice ?? product.price; const imageUrl = product.images?.[0]; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ @@ -38,27 +38,27 @@ function ProductDetailPage() { className: "h-full w-full object-cover" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-1 text-xl", children: product.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "mb-2 text-sm text-gray-500", children: [product.unitValue, product.unit] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4 flex items-baseline gap-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-2xl text-brand-600", children: ["₹", price] - }), product.discountedPrice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), product.discountedPrice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-400 line-through", children: ["₹", product.price] })] }), - product.description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + product.description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-4 text-gray-600", children: product.description }), @@ -79,7 +79,7 @@ function ProductDetailPage() { }), reviews?.data && reviews.data.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mt-8", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-3 text-lg", children: "Reviews" @@ -88,7 +88,7 @@ function ProductDetailPage() { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mb-1 flex items-center gap-1", children: Array.from({ length: review.rating || 5 }).map((_, j) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Star, { className: "h-3 w-3 fill-yellow-400 text-yellow-400" }, j)) - }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-600", children: review.comment })] diff --git a/apps/web-ui/.output/server/_ssr/home.search-pQXmTQuR.mjs b/apps/web-ui/.output/server/_ssr/home.search-pQXmTQuR.mjs index baeef5c..d65b977 100644 --- a/apps/web-ui/.output/server/_ssr/home.search-pQXmTQuR.mjs +++ b/apps/web-ui/.output/server/_ssr/home.search-pQXmTQuR.mjs @@ -1,6 +1,6 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; -import { a as MyText, s as MyTouchableOpacity, t as AppContainer, u as SearchBar } from "./src-u_N1opJl.mjs"; +import { a as p, s as MyTouchableOpacity, t as AppContainer, u as SearchBar } from "./src-u_N1opJl.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { t as useCentralProductStore } from "./central-product-store-TS-vQ8-V.mjs"; import { t as Route } from "./home.search-C7gKn8CW.mjs"; @@ -56,13 +56,13 @@ function SearchPage() { className: "h-full w-full object-cover" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-sm", numberOfLines: 2, children: product.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "mt-1 text-brand-600", children: ["₹", product.discountedPrice ?? product.price] diff --git a/apps/web-ui/.output/server/_ssr/login-QH2hpwxi.mjs b/apps/web-ui/.output/server/_ssr/login-QH2hpwxi.mjs index 15a5b6c..a7c22dd 100644 --- a/apps/web-ui/.output/server/_ssr/login-QH2hpwxi.mjs +++ b/apps/web-ui/.output/server/_ssr/login-QH2hpwxi.mjs @@ -1,6 +1,6 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; -import { a as MyText, i as MyButton, o as MyTextInput, s as MyTouchableOpacity } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, o as pInput, s as MyTouchableOpacity } from "./src-u_N1opJl.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { n as useAuth } from "./auth-context-DzjwonUC.mjs"; @@ -124,12 +124,12 @@ function LoginPage() { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "w-full max-w-md", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-2 text-center text-4xl text-white", children: "Welcome" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-8 text-center text-lg text-blue-100", children: "Sign in to continue your journey" }), @@ -141,7 +141,7 @@ function LoginPage() { step === "mobile" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Controller, { control, name: "mobile", - render: ({ field: { onChange, value } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + render: ({ field: { onChange, value } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Enter your mobile number", value, onChange: (e) => { @@ -154,7 +154,7 @@ function LoginPage() { step === "otp" && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-3 text-center text-base text-gray-800", children: "Enter 4-digit OTP" @@ -194,7 +194,7 @@ function LoginPage() { "" ]); }, - children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "medium", className: "text-gray-500", children: "Back" @@ -202,7 +202,7 @@ function LoginPage() { }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTouchableOpacity, { onClick: () => sendOtpMutation.mutate({ mobile: selectedMobile }), disabled: !canResend, - children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: canResend ? "text-brand-600" : "text-gray-400", children: canResend ? "Resend OTP" : `Resend in ${resendCountdown}s` @@ -214,7 +214,7 @@ function LoginPage() { step === "password" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Controller, { control, name: "password", - render: ({ field: { onChange, value } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + render: ({ field: { onChange, value } }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Enter your password", value, onChange: (e) => onChange(e.target.value), @@ -244,7 +244,7 @@ function LoginPage() { ]); }, className: "mt-4 block text-center", - children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-brand-600", children: "Or login with Password" diff --git a/apps/web-ui/.output/server/_ssr/me-Dn8Tk_dJ.mjs b/apps/web-ui/.output/server/_ssr/me-Dn8Tk_dJ.mjs index a949465..d802caa 100644 --- a/apps/web-ui/.output/server/_ssr/me-Dn8Tk_dJ.mjs +++ b/apps/web-ui/.output/server/_ssr/me-Dn8Tk_dJ.mjs @@ -1,6 +1,6 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { b as FileText, g as MapPin, h as MessageSquare, l as ShoppingCart, o as Ticket, p as Package, r as User, v as Info } from "../_libs/lucide-react.mjs"; -import { a as MyText, c as ProfileImage, i as MyButton, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, c as ProfileImage, i as MyButton, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { n as useAuth } from "./auth-context-DzjwonUC.mjs"; //#region node_modules/.nitro/vite/services/ssr/assets/me-Dn8Tk_dJ.js @@ -10,7 +10,7 @@ function MePage() { const { user, logout } = useAuth(); if (!user) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-4 py-20", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { children: "Please sign in" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyButton, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { children: "Please sign in" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyButton, { textContent: "Sign In", onClick: () => navigate({ to: "/login" }) })] @@ -75,18 +75,18 @@ function MePage() { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ProfileImage, { uri: user.profileImage, size: 64 - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "text-lg", children: user.name || "User" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-500", children: user.mobile })] })] }), menuItems.map((section) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2 text-sm text-gray-500 uppercase tracking-wide", children: section.section @@ -95,7 +95,7 @@ function MePage() { children: section.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyTouchableOpacity, { onClick: () => navigate({ to: item.to }), className: "flex w-full items-center gap-3 border-b border-gray-50 px-4 py-3.5 last:border-b-0", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(item.icon, { className: "h-5 w-5 text-gray-400" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(item.icon, { className: "h-5 w-5 text-gray-400" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "flex-1 text-left text-sm", children: item.label })] @@ -109,7 +109,7 @@ function MePage() { className: "mb-8", textContent: "Logout" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-8 text-center text-xs text-gray-400", children: "Version 1.0.0" }) diff --git a/apps/web-ui/.output/server/_ssr/me.about-ig0mha9d.mjs b/apps/web-ui/.output/server/_ssr/me.about-ig0mha9d.mjs index b37b1ce..d760353 100644 --- a/apps/web-ui/.output/server/_ssr/me.about-ig0mha9d.mjs +++ b/apps/web-ui/.output/server/_ssr/me.about-ig0mha9d.mjs @@ -1,11 +1,11 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { _ as Leaf, i as Truck, u as Shield, y as Heart } from "../_libs/lucide-react.mjs"; -import { a as MyText, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, t as AppContainer } from "./src-u_N1opJl.mjs"; //#region node_modules/.nitro/vite/services/ssr/assets/me.about-ig0mha9d.js var import_jsx_runtime = require_jsx_runtime(); function AboutPage() { return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-6 text-2xl", children: "About Freshyo" @@ -37,12 +37,12 @@ function AboutPage() { className: "rounded-xl border border-gray-100 bg-white p-4 shadow-sm", children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(mission.icon, { className: "mb-2 h-8 w-8 text-brand-500" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-1", children: mission.title }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-600", children: mission.desc }) @@ -51,11 +51,11 @@ function AboutPage() { }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mt-8", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-3 text-lg", children: "Sourcing & Quality" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-6 text-sm leading-relaxed text-gray-600", children: "We partner with trusted local farmers who follow ethical and sustainable farming practices. Every product undergoes rigorous quality checks to ensure you receive only the freshest meat." })] diff --git a/apps/web-ui/.output/server/_ssr/me.addresses-DS1Qf9Hh.mjs b/apps/web-ui/.output/server/_ssr/me.addresses-DS1Qf9Hh.mjs index 6348820..b53f5c7 100644 --- a/apps/web-ui/.output/server/_ssr/me.addresses-DS1Qf9Hh.mjs +++ b/apps/web-ui/.output/server/_ssr/me.addresses-DS1Qf9Hh.mjs @@ -1,7 +1,7 @@ import "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { g as MapPin } from "../_libs/lucide-react.mjs"; -import { a as MyText, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; require_react(); var import_jsx_runtime = require_jsx_runtime(); @@ -10,13 +10,13 @@ function AddressesPage() { const { data } = trpc.user.address.getUserAddresses.useQuery(); const deleteMutation = trpc.user.address.deleteAddress.useMutation({ onSuccess: () => utils.user.address.getUserAddresses.invalidate() }); const addresses = data?.data || []; - return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "My Addresses" }), addresses.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-4 py-20", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MapPin, { className: "h-12 w-12 text-gray-300" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MapPin, { className: "h-12 w-12 text-gray-300" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-gray-500", children: "No addresses saved" })] @@ -29,15 +29,15 @@ function AddressesPage() { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex-1", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", children: addr.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-600", children: [addr.addressLine1, addr.addressLine2 ? `, ${addr.addressLine2}` : ""] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-600", children: [ addr.city, @@ -47,7 +47,7 @@ function AddressesPage() { addr.pincode ] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-500", children: addr.phone }), diff --git a/apps/web-ui/.output/server/_ssr/me.complaints-CUIcnKsp.mjs b/apps/web-ui/.output/server/_ssr/me.complaints-CUIcnKsp.mjs index f248fcd..78d4bcd 100644 --- a/apps/web-ui/.output/server/_ssr/me.complaints-CUIcnKsp.mjs +++ b/apps/web-ui/.output/server/_ssr/me.complaints-CUIcnKsp.mjs @@ -1,7 +1,7 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { f as Plus, h as MessageSquare } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; //#region node_modules/.nitro/vite/services/ssr/assets/me.complaints-CUIcnKsp.js var import_react = /* @__PURE__ */ __toESM(require_react()); @@ -24,14 +24,14 @@ function ComplaintsPage() { return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4 flex items-center justify-between", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "text-xl", children: "Help & Complaints" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyTouchableOpacity, { onClick: () => setShowForm(!showForm), className: "flex items-center gap-1 text-brand-600", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Plus, { className: "h-4 w-4" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Plus, { className: "h-4 w-4" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm", children: "New" })] @@ -40,7 +40,7 @@ function ComplaintsPage() { showForm && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6 rounded-xl border border-gray-100 bg-white p-4 shadow-sm", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-3", children: "Raise a Complaint" @@ -61,7 +61,7 @@ function ComplaintsPage() { }), complaints.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-4 py-20", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MessageSquare, { className: "h-12 w-12 text-gray-300" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MessageSquare, { className: "h-12 w-12 text-gray-300" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-gray-500", children: "No complaints yet" })] @@ -75,18 +75,18 @@ function ComplaintsPage() { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: `rounded-full px-2 py-0.5 text-xs font-medium ${complaint.status === "resolved" ? "bg-green-100 text-green-700" : "bg-yellow-100 text-yellow-700"}`, children: complaint.status || "pending" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-xs text-gray-400", children: complaint.createdAt ? new Date(complaint.createdAt).toLocaleDateString() : "" })] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-700", children: complaint.body }), complaint.adminResponse && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "mt-2 rounded-lg bg-blue-50 p-2", - children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-xs text-blue-600", children: ["Response: ", complaint.adminResponse] }) diff --git a/apps/web-ui/.output/server/_ssr/me.coupons-CK-hvcuK.mjs b/apps/web-ui/.output/server/_ssr/me.coupons-CK-hvcuK.mjs index eca7108..1985a5d 100644 --- a/apps/web-ui/.output/server/_ssr/me.coupons-CK-hvcuK.mjs +++ b/apps/web-ui/.output/server/_ssr/me.coupons-CK-hvcuK.mjs @@ -1,7 +1,7 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { o as Ticket } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, o as MyTextInput, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, o as pInput, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; //#region node_modules/.nitro/vite/services/ssr/assets/me.coupons-CK-hvcuK.js var import_react = /* @__PURE__ */ __toESM(require_react()); @@ -20,14 +20,14 @@ function CouponsPage() { } }); }; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "My Coupons" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6 flex gap-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Enter coupon code", value: code, onChange: (e) => setCode(e.target.value), @@ -40,7 +40,7 @@ function CouponsPage() { }), coupons.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-4 py-20", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ticket, { className: "h-12 w-12 text-gray-300" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ticket, { className: "h-12 w-12 text-gray-300" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-gray-500", children: "No coupons yet" })] @@ -49,16 +49,16 @@ function CouponsPage() { children: coupons.map((coupon) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-xl border border-dashed border-brand-200 bg-brand-50 p-4", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "text-brand-700", children: coupon.code }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-600", children: coupon.description || `${coupon.discountPercent || 0}% off` }), - coupon.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + coupon.expiresAt && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "mt-1 text-xs text-gray-400", children: ["Expires: ", new Date(coupon.expiresAt).toLocaleDateString()] }) diff --git a/apps/web-ui/.output/server/_ssr/me.edit-profile-jHHMfrY4.mjs b/apps/web-ui/.output/server/_ssr/me.edit-profile-jHHMfrY4.mjs index 61d2ea3..cc959ee 100644 --- a/apps/web-ui/.output/server/_ssr/me.edit-profile-jHHMfrY4.mjs +++ b/apps/web-ui/.output/server/_ssr/me.edit-profile-jHHMfrY4.mjs @@ -1,6 +1,6 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; -import { a as MyText, i as MyButton, o as MyTextInput, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, o as pInput, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { n as useAuth } from "./auth-context-DzjwonUC.mjs"; @@ -24,7 +24,7 @@ function EditProfilePage() { }); }; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "Edit Profile" @@ -33,18 +33,18 @@ function EditProfilePage() { onSubmit: handleSubmit, className: "flex flex-col gap-4", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Name", value: name, onChange: (e) => setName(e.target.value) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Email", type: "email", value: email, onChange: (e) => setEmail(e.target.value) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Mobile", value: user?.mobile || "", disabled: true, diff --git a/apps/web-ui/.output/server/_ssr/me.orders-CSqnUtwy.mjs b/apps/web-ui/.output/server/_ssr/me.orders-CSqnUtwy.mjs index 7458c43..aa49f01 100644 --- a/apps/web-ui/.output/server/_ssr/me.orders-CSqnUtwy.mjs +++ b/apps/web-ui/.output/server/_ssr/me.orders-CSqnUtwy.mjs @@ -1,6 +1,6 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { p as Package, x as ChevronRight } from "../_libs/lucide-react.mjs"; -import { a as MyText, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; //#region node_modules/.nitro/vite/services/ssr/assets/me.orders-CSqnUtwy.js @@ -12,13 +12,13 @@ function OrdersPage() { limit: 20 }); const orders = data?.data || []; - return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "My Orders" }), orders.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex flex-col items-center gap-4 py-20", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Package, { className: "h-12 w-12 text-gray-300" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Package, { className: "h-12 w-12 text-gray-300" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-gray-500", children: "No orders yet" })] @@ -32,11 +32,11 @@ function OrdersPage() { className: "rounded-xl border border-gray-100 bg-white p-4 shadow-sm", children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "semibold", className: "text-sm", children: ["Order #", order.id] - }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-xs text-gray-500", children: order.createdAt ? new Date(order.createdAt).toLocaleDateString() : "" })] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { @@ -46,7 +46,7 @@ function OrdersPage() { children: order.status }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, { className: "h-4 w-4 text-gray-400" })] })] - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "mt-1 text-xs text-gray-400", children: ["Total: ₹", order.totalAmount || 0] })] diff --git a/apps/web-ui/.output/server/_ssr/me.orders._id-Cq7m-7ba.mjs b/apps/web-ui/.output/server/_ssr/me.orders._id-Cq7m-7ba.mjs index 751746f..797562c 100644 --- a/apps/web-ui/.output/server/_ssr/me.orders._id-Cq7m-7ba.mjs +++ b/apps/web-ui/.output/server/_ssr/me.orders._id-Cq7m-7ba.mjs @@ -1,7 +1,7 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { S as ArrowLeft } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, r as LoadingDialog, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, r as LoadingDialog, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { t as Route } from "./me.orders._id-9KyXzQNP.mjs"; @@ -19,16 +19,16 @@ function OrderDetailPage() { const handleCancel = () => { cancelMutation.mutate({ orderId }, { onSuccess: () => setShowCancelDialog(false) }); }; - if (!order) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { children: "Loading..." }) }); + if (!order) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { children: "Loading..." }) }); return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyTouchableOpacity, { onClick: () => navigate({ to: "/me/orders" }), className: "mb-4 flex items-center gap-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowLeft, { className: "h-5 w-5" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { children: "Back to Orders" })] + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowLeft, { className: "h-5 w-5" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { children: "Back to Orders" })] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-xl", children: ["Order #", order.id] @@ -40,31 +40,31 @@ function OrderDetailPage() { /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2", children: "Items" }), (order.items || []).map((item, i) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between border-b border-gray-100 py-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm", children: [ item.product?.name || `Product #${item.productId}`, " x", item.quantity ] - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm font-bold", children: ["₹", item.price || 0] })] }, i)), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "flex items-center justify-between pt-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", children: "Total" - }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-brand-600", children: ["₹", order.totalAmount || 0] @@ -74,18 +74,18 @@ function OrderDetailPage() { }), order.address && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-6", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2", children: "Delivery Address" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "rounded-xl border border-gray-100 bg-gray-50 p-3", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", children: order.address.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-600", children: [ order.address.addressLine1, @@ -93,7 +93,7 @@ function OrderDetailPage() { order.address.city ] }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "text-sm text-gray-500", children: order.address.phone }) @@ -112,12 +112,12 @@ function OrderDetailPage() { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mx-4 w-full max-w-sm rounded-xl bg-white p-6", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-2 text-lg", children: "Cancel Order?" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-6 text-sm text-gray-600", children: "Are you sure you want to cancel this order?" }), diff --git a/apps/web-ui/.output/server/_ssr/me.terms-BY5QWW0t.mjs b/apps/web-ui/.output/server/_ssr/me.terms-BY5QWW0t.mjs index f0eee5a..0bc1832 100644 --- a/apps/web-ui/.output/server/_ssr/me.terms-BY5QWW0t.mjs +++ b/apps/web-ui/.output/server/_ssr/me.terms-BY5QWW0t.mjs @@ -1,57 +1,57 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; -import { a as MyText, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, t as AppContainer } from "./src-u_N1opJl.mjs"; //#region node_modules/.nitro/vite/services/ssr/assets/me.terms-BY5QWW0t.js var import_jsx_runtime = require_jsx_runtime(); function TermsPage() { - return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-6 text-2xl", children: "Terms & Conditions" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "prose prose-sm max-w-none text-gray-600", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2 mt-4 text-gray-900", children: "1. Acceptance of Terms" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-4", children: "By using Freshyo, you agree to these terms. If you do not agree, please do not use our service." }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2 mt-4 text-gray-900", children: "2. Orders and Payments" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-4", children: "All orders are subject to availability. We reserve the right to cancel any order. Payments are collected at the time of delivery (COD)." }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2 mt-4 text-gray-900", children: "3. Delivery Policy" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-4", children: "Delivery times are estimates. We strive to deliver within the promised time window but delays may occur due to unforeseen circumstances." }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2 mt-4 text-gray-900", children: "4. Returns and Refunds" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-4", children: "If you are not satisfied with the quality of your order, please contact us within 24 hours of delivery. Refunds will be processed after quality assessment." }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "mb-2 mt-4 text-gray-900", children: "5. Privacy" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-4", children: "We respect your privacy. Your personal information is used only for order processing and delivery purposes." }) diff --git a/apps/web-ui/.output/server/_ssr/register-dcmJe--5.mjs b/apps/web-ui/.output/server/_ssr/register-dcmJe--5.mjs index 19cbcc4..459db82 100644 --- a/apps/web-ui/.output/server/_ssr/register-dcmJe--5.mjs +++ b/apps/web-ui/.output/server/_ssr/register-dcmJe--5.mjs @@ -1,6 +1,6 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; -import { a as MyText, i as MyButton, o as MyTextInput } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, o as pInput } from "./src-u_N1opJl.mjs"; import { n as trpc } from "./trpc-client-CQOIB5UU.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { n as useAuth } from "./auth-context-DzjwonUC.mjs"; @@ -34,12 +34,12 @@ function RegisterPage() { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "w-full max-w-md", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-2 text-center text-4xl text-white", children: "Create Account" }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-8 text-center text-lg text-blue-100", children: "Join Freshyo today" }), @@ -49,19 +49,19 @@ function RegisterPage() { onSubmit: handleSubmit, className: "flex flex-col gap-4", children: [ - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Full Name", value: name, onChange: (e) => setName(e.target.value), required: true }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Email", type: "email", value: email, onChange: (e) => setEmail(e.target.value) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Mobile Number", value: mobile, onChange: (e) => { @@ -70,7 +70,7 @@ function RegisterPage() { }, required: true }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTextInput, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(pInput, { placeholder: "Password", type: "password", value: password, diff --git a/apps/web-ui/.output/server/_ssr/src-u_N1opJl.mjs b/apps/web-ui/.output/server/_ssr/src-u_N1opJl.mjs index 734fd91..63ac0b7 100644 --- a/apps/web-ui/.output/server/_ssr/src-u_N1opJl.mjs +++ b/apps/web-ui/.output/server/_ssr/src-u_N1opJl.mjs @@ -15,7 +15,7 @@ var weightClasses = { semibold: "font-semibold", bold: "font-bold" }; -function MyText({ children, weight = "normal", numberOfLines, className, style, ...props }) { +function p({ children, weight = "normal", numberOfLines, className, style, ...props }) { return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { className: cn(weightClasses[weight], className), style: { @@ -45,7 +45,7 @@ function MyButton({ variant = "blue", fullWidth, textContent, children, classNam children: textContent || children }); } -function MyTextInput({ topLabel, fullWidth = true, shrunkPadding = false, error, multiline, className, style, ...props }) { +function pInput({ topLabel, fullWidth = true, shrunkPadding = false, error, multiline, className, style, ...props }) { const inputClasses = cn("flex w-full rounded-md border border-input bg-background px-3 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", shrunkPadding ? "py-1.5" : "py-2", error && "border-destructive", className); multilime; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { @@ -53,7 +53,7 @@ function MyTextInput({ topLabel, fullWidth = true, shrunkPadding = false, error, ...fullWidth ? { width: "100%" } : {}, ...style }, - children: [topLabel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + children: [topLabel && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "medium", className: "mb-1 text-sm text-gray-500", children: topLabel @@ -178,7 +178,7 @@ function Quantifier({ value, setValue, step = 1, min = 0, max = 99 }) { className: "flex h-8 w-8 items-center justify-center text-gray-500 hover:text-gray-700 disabled:opacity-30", children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Minus, { className: "h-3.5 w-3.5" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "min-w-[32px] text-center text-sm", children: value @@ -221,4 +221,4 @@ function AppContainer({ children, className }) { }); } //#endregion -export { MyText as a, ProfileImage as c, MyButton as i, Quantifier as l, BottomDialog as n, MyTextInput as o, LoadingDialog as r, MyTouchableOpacity as s, AppContainer as t, SearchBar as u }; +export { p as a, ProfileImage as c, MyButton as i, Quantifier as l, BottomDialog as n, pInput as o, LoadingDialog as r, MyTouchableOpacity as s, AppContainer as t, SearchBar as u }; diff --git a/apps/web-ui/.output/server/_ssr/stores-CcccRdgP.mjs b/apps/web-ui/.output/server/_ssr/stores-CcccRdgP.mjs index 81c7ae8..54a6539 100644 --- a/apps/web-ui/.output/server/_ssr/stores-CcccRdgP.mjs +++ b/apps/web-ui/.output/server/_ssr/stores-CcccRdgP.mjs @@ -1,6 +1,6 @@ import { m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { s as Store } from "../_libs/lucide-react.mjs"; -import { a as MyText, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { a as useStores } from "./prominent-api-hooks-CNVDntUD.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; //#region node_modules/.nitro/vite/services/ssr/assets/stores-CcccRdgP.js @@ -9,7 +9,7 @@ function StoresPage() { const navigate = useNavigate(); const { data } = useStores(); const stores = data?.data || []; - return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-4 text-xl", children: "Our Stores" @@ -30,12 +30,12 @@ function StoresPage() { className: "h-full w-full object-cover" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Store, { className: "h-10 w-10 text-gray-400" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-sm", children: store.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-xs text-gray-500", children: [store.productCount || 0, " products"] }) diff --git a/apps/web-ui/.output/server/_ssr/stores._storeId-CWdFRADX.mjs b/apps/web-ui/.output/server/_ssr/stores._storeId-CWdFRADX.mjs index 67bdc93..fabd520 100644 --- a/apps/web-ui/.output/server/_ssr/stores._storeId-CWdFRADX.mjs +++ b/apps/web-ui/.output/server/_ssr/stores._storeId-CWdFRADX.mjs @@ -1,7 +1,7 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { S as ArrowLeft } from "../_libs/lucide-react.mjs"; -import { a as MyText, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { i as useStoreWithProducts } from "./prominent-api-hooks-CNVDntUD.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { t as Route } from "./stores._storeId-Dh-du4bI.mjs"; @@ -33,7 +33,7 @@ function StoreDetailPage() { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyTouchableOpacity, { onClick: () => navigate({ to: "/stores" }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowLeft, { className: "h-5 w-5" }) - }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "text-xl", children: store?.name || "Store" @@ -67,13 +67,13 @@ function StoreDetailPage() { className: "h-full w-full object-cover" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "semibold", className: "text-sm", numberOfLines: 2, children: product.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "mt-1 text-brand-600", children: ["₹", product.discountedPrice ?? product.price] diff --git a/apps/web-ui/.output/server/_ssr/stores._storeId.product._productId-C9GtcXdb.mjs b/apps/web-ui/.output/server/_ssr/stores._storeId.product._productId-C9GtcXdb.mjs index d3df43e..d3d87aa 100644 --- a/apps/web-ui/.output/server/_ssr/stores._storeId.product._productId-C9GtcXdb.mjs +++ b/apps/web-ui/.output/server/_ssr/stores._storeId.product._productId-C9GtcXdb.mjs @@ -1,7 +1,7 @@ import { o as __toESM } from "../_runtime.mjs"; import { h as require_react, m as require_jsx_runtime } from "../_libs/react+tanstack__react-query.mjs"; import { S as ArrowLeft, l as ShoppingCart } from "../_libs/lucide-react.mjs"; -import { a as MyText, i as MyButton, l as Quantifier, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; +import { a as p, i as MyButton, l as Quantifier, s as MyTouchableOpacity, t as AppContainer } from "./src-u_N1opJl.mjs"; import { n as useAddToCart } from "./cart-query-hooks-Bz8ID9jY.mjs"; import { l as useNavigate } from "../_libs/@tanstack/react-router+[...].mjs"; import { t as useCentralProductStore } from "./central-product-store-TS-vQ8-V.mjs"; @@ -24,7 +24,7 @@ function StoreProductDetailPage() { storeId: product.storeId }, { onSuccess: () => navigate({ to: "/cart" }) }); }; - if (!product) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { children: "Product not found" }) }); + if (!product) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { children: "Product not found" }) }); const price = product.discountedPrice ?? product.price; const imageUrl = product.images?.[0]; return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AppContainer, { children: [ @@ -44,27 +44,27 @@ function StoreProductDetailPage() { className: "h-full w-full object-cover" }) }), - /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { weight: "bold", className: "mb-1 text-xl", children: product.name }), - /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "mb-2 text-sm text-gray-500", children: [product.unitValue, product.unit] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: "mb-4 flex items-baseline gap-2", - children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { weight: "bold", className: "text-2xl text-brand-600", children: ["₹", price] - }), product.discountedPrice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(MyText, { + }), product.discountedPrice && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(p, { className: "text-sm text-gray-400 line-through", children: ["₹", product.price] })] }), - product.description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MyText, { + product.description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(p, { className: "mb-4 text-gray-600", children: product.description }), diff --git a/apps/web-ui/src/components/AddToCartDialog.tsx b/apps/web-ui/src/components/AddToCartDialog.tsx index 88422b0..6477f83 100644 --- a/apps/web-ui/src/components/AddToCartDialog.tsx +++ b/apps/web-ui/src/components/AddToCartDialog.tsx @@ -1,6 +1,6 @@ import React, { useState, useMemo, useEffect } from 'react' import { useNavigate } from '@tanstack/react-router' -import { BottomDialog, MyText, MyTouchableOpacity, Quantifier } from 'web-components' +import { BottomDialog, p, div, Quantifier } from 'web-components' import { useSlots } from '../hooks/prominent-api-hooks' import { useAddToCart, useUpdateCartItem, useRemoveFromCart, useGetCart } from '../hooks/cart-query-hooks' import { useCartStore } from '../lib/stores/cart-store' @@ -123,13 +123,13 @@ export default function AddToCartDialog() {
- +

Select Delivery Slot - +

{product?.name && ( - +

{product.name} ({product.productQuantity}{product.unitNotation ? ` ${product.unitNotation}` : ''}) - +

)}