@pradip1995/segment-login-template 0.5.7 → 0.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import type { HttpTypes } from "@medusajs/types"
|
|
|
4
4
|
import LocalizedLink from "@pradip1995/segment-primitives/localized-link"
|
|
5
5
|
import { formatPrice } from "@pradip1995/segment-primitives/format-price"
|
|
6
6
|
import { logoutGuest } from "@pradip1995/commerce-core/data/guest"
|
|
7
|
-
import {
|
|
7
|
+
import { acct } from "./account-theme"
|
|
8
8
|
|
|
9
9
|
export default function AccountGuestOrders({
|
|
10
10
|
orders,
|
|
@@ -62,8 +62,8 @@ export default function AccountGuestOrders({
|
|
|
62
62
|
{safeOrders.length === 0 ? (
|
|
63
63
|
<div className="border border-cart-border bg-surface p-8 text-center">
|
|
64
64
|
<p className="text-sm text-muted mb-4">No guest orders found for this session.</p>
|
|
65
|
-
<LocalizedLink href="/store" className={
|
|
66
|
-
|
|
65
|
+
<LocalizedLink href="/store" className={acct.btnPrimary}>
|
|
66
|
+
Continue shopping
|
|
67
67
|
</LocalizedLink>
|
|
68
68
|
</div>
|
|
69
69
|
) : (
|
package/src/account-theme.ts
CHANGED
|
@@ -51,7 +51,7 @@ export const auth = {
|
|
|
51
51
|
input:
|
|
52
52
|
"w-full px-0 py-3 text-sm text-heading bg-transparent border-0 border-b-2 border-cart-border rounded-none placeholder:text-muted/50 focus:outline-none focus:border-brand-primary focus:ring-0 transition-colors duration-200",
|
|
53
53
|
btnPrimary:
|
|
54
|
-
"group relative w-full py-3.5 bg-brand-primary text-inverse text-[11px] font-bold uppercase tracking-[0.28em] shadow-[0_8px_28px_-6px_rgba(0,0,0,0.25)] hover:bg-brand-accent hover:shadow-[0_12px_32px_-6px_rgba(0,0,0,0.3)] transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed overflow-hidden active:scale-[0.98]",
|
|
54
|
+
"group relative w-full inline-flex items-center justify-center py-3.5 bg-brand-primary text-inverse text-[11px] font-bold uppercase tracking-[0.28em] shadow-[0_8px_28px_-6px_rgba(0,0,0,0.25)] hover:bg-brand-accent hover:shadow-[0_12px_32px_-6px_rgba(0,0,0,0.3)] transition-all duration-300 disabled:opacity-50 disabled:cursor-not-allowed overflow-hidden active:scale-[0.98]",
|
|
55
55
|
btnShine:
|
|
56
56
|
"before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-white/15 before:to-transparent before:-translate-x-full hover:before:translate-x-full before:transition-transform before:duration-700",
|
|
57
57
|
btnOutline:
|