create-nymbal-app 0.4.0 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
- package/scaffold/project/astro/src/pages/index.astro +13 -15
- package/scaffold/templates/astro/_dot.node-version +1 -1
- package/scaffold/templates/astro/astro.config.mjs +23 -0
- package/scaffold/templates/astro/package.json +26 -26
- package/scaffold/templates/astro/src/components/SkipNav.astro +3 -1
- package/scaffold/templates/astro/src/elements/index.ts +11 -0
- package/scaffold/templates/astro/src/layouts/BaseLayout.astro +15 -4
- package/scaffold/templates/astro/src/lib/api.ts +113 -21
- package/scaffold/templates/astro/src/lib/chrome.ts +59 -0
- package/scaffold/templates/astro/src/lib/client.ts +4 -4
- package/scaffold/templates/astro/src/lib/fragments.ts +48 -0
- package/scaffold/templates/astro/src/lib/server-elements.ts +5 -0
- package/scaffold/templates/astro/src/middleware.ts +37 -0
- package/scaffold/templates/astro/src/pages/account/addresses.astro +5 -97
- package/scaffold/templates/astro/src/pages/account/login.astro +7 -34
- package/scaffold/templates/astro/src/pages/account/profile.astro +6 -56
- package/scaffold/templates/astro/src/pages/account/register.astro +7 -73
- package/scaffold/templates/astro/src/pages/cart.astro +14 -7
- package/scaffold/templates/astro/src/pages/category/[slug].astro +17 -21
- package/scaffold/templates/astro/src/pages/checkout.astro +30 -94
- package/scaffold/templates/astro/src/pages/fragments/footer.astro +5 -2
- package/scaffold/templates/astro/src/pages/fragments/header.astro +12 -2
- package/scaffold/templates/astro/src/pages/fragments/nav.astro +8 -5
- package/scaffold/templates/astro/src/pages/fragments/product/[slug].astro +9 -10
- package/scaffold/templates/astro/src/pages/index.astro +18 -15
- package/scaffold/templates/astro/src/pages/order/[orderNumber].astro +22 -44
- package/scaffold/templates/astro/src/pages/product/[slug].astro +44 -30
- package/scaffold/templates/astro/src/pages/products/index.astro +16 -21
- package/scaffold/templates/astro/src/pages/search.astro +10 -11
- package/scaffold/templates/astro/src/scripts/init-client.ts +14 -0
- package/scaffold/templates/astro/src/scripts/pdp.ts +24 -21
- package/scaffold/templates/astro/src/scripts/plp.ts +15 -93
- package/scaffold/templates/astro/src/scripts/search.ts +7 -132
- package/scaffold/templates/astro/src/scripts/signed-in-redirect.ts +4 -0
- package/scaffold/templates/astro/src/styles/global.css +49 -45
- package/scaffold/templates/astro/src/styles/pages/account.css +0 -90
- package/scaffold/templates/astro/src/styles/pages/confirmation.css +6 -0
- package/scaffold/templates/astro/src/styles/pages/home.css +9 -100
- package/scaffold/templates/astro/src/styles/pages/pdp.css +5 -171
- package/scaffold/templates/astro/src/styles/pages/plp.css +3 -42
- package/scaffold/templates/astro/src/styles/pages/search.css +4 -110
- package/scaffold/templates/astro/src/styles/tokens.css +56 -0
- package/scaffold/templates/nextjs/_dot.node-version +1 -1
- package/scaffold/templates/nextjs/app/(catalog)/category/[slug]/page.tsx +74 -0
- package/scaffold/templates/nextjs/app/(catalog)/home/[key]/page.tsx +80 -0
- package/scaffold/templates/nextjs/app/(catalog)/layout.tsx +13 -0
- package/scaffold/templates/nextjs/app/(catalog)/not-found.tsx +7 -0
- package/scaffold/templates/nextjs/app/(catalog)/product/[slug]/page.tsx +182 -0
- package/scaffold/templates/nextjs/app/(catalog)/products/page.tsx +62 -0
- package/scaffold/templates/nextjs/app/(catalog)/search/SearchView.tsx +90 -0
- package/scaffold/templates/nextjs/app/(catalog)/search/page.tsx +46 -0
- package/scaffold/templates/nextjs/app/(shopper)/account/addresses/AddressesView.tsx +5 -0
- package/scaffold/templates/nextjs/app/(shopper)/account/addresses/page.tsx +17 -0
- package/scaffold/templates/nextjs/app/(shopper)/account/login/LoginView.tsx +28 -0
- package/scaffold/templates/nextjs/app/(shopper)/account/login/page.tsx +23 -0
- package/scaffold/templates/nextjs/app/(shopper)/account/profile/ProfileView.tsx +5 -0
- package/scaffold/templates/nextjs/app/(shopper)/account/profile/page.tsx +20 -0
- package/scaffold/templates/nextjs/app/(shopper)/account/register/RegisterView.tsx +26 -0
- package/scaffold/templates/nextjs/app/(shopper)/account/register/page.tsx +11 -0
- package/scaffold/templates/nextjs/app/(shopper)/cart/CartView.tsx +5 -0
- package/scaffold/templates/nextjs/app/(shopper)/cart/page.tsx +22 -0
- package/scaffold/templates/nextjs/app/(shopper)/checkout/CheckoutView.tsx +27 -0
- package/scaffold/templates/nextjs/app/(shopper)/checkout/page.tsx +39 -0
- package/scaffold/templates/nextjs/app/(shopper)/layout.tsx +12 -0
- package/scaffold/templates/nextjs/app/{order → (shopper)/order}/[orderNumber]/page.tsx +24 -5
- package/scaffold/templates/nextjs/app/error.tsx +3 -7
- package/scaffold/templates/nextjs/app/fragments/footer/route.ts +13 -0
- package/scaffold/templates/nextjs/app/fragments/header/[key]/route.ts +18 -0
- package/scaffold/templates/nextjs/app/fragments/nav/[key]/route.ts +23 -0
- package/scaffold/templates/nextjs/app/fragments/product/[slug]/route.ts +22 -0
- package/scaffold/templates/nextjs/app/globals.css +5 -23
- package/scaffold/templates/nextjs/app/layout.tsx +8 -5
- package/scaffold/templates/nextjs/app/not-found.tsx +9 -33
- package/scaffold/templates/nextjs/app/tokens.css +56 -0
- package/scaffold/templates/nextjs/components/client/ListingControls.tsx +87 -0
- package/scaffold/templates/nextjs/components/client/NymbalSetup.tsx +48 -6
- package/scaffold/templates/nextjs/components/client/ProductInteractive.tsx +30 -15
- package/scaffold/templates/nextjs/components/client/elements.tsx +15 -0
- package/scaffold/templates/nextjs/components/server/Header.tsx +33 -102
- package/scaffold/templates/nextjs/components/server/NotFoundView.tsx +39 -0
- package/scaffold/templates/nextjs/components/server/SkipNav.tsx +7 -3
- package/scaffold/templates/nextjs/elements/index.ts +12 -0
- package/scaffold/templates/nextjs/lib/api.ts +151 -55
- package/scaffold/templates/nextjs/lib/chrome.ts +40 -0
- package/scaffold/templates/nextjs/lib/fragments.ts +16 -0
- package/scaffold/templates/nextjs/lib/header.ts +39 -0
- package/scaffold/templates/nextjs/lib/render.ts +14 -0
- package/scaffold/templates/nextjs/next.config.mjs +32 -0
- package/scaffold/templates/nextjs/package.json +28 -27
- package/scaffold/templates/nextjs/styles/pages/account.module.css +0 -70
- package/scaffold/templates/nextjs/styles/pages/confirmation.module.css +6 -85
- package/scaffold/templates/nextjs/styles/pages/home.module.css +2 -103
- package/scaffold/templates/nextjs/styles/pages/pdp.module.css +3 -183
- package/scaffold/templates/nextjs/styles/pages/plp.module.css +9 -143
- package/scaffold/templates/nextjs/styles/pages/search.module.css +1 -145
- package/scaffold/templates/nextjs/tsconfig.dist.json +5 -0
- package/scaffold/templates/astro/src/components/AddressForm.astro +0 -107
- package/scaffold/templates/astro/src/components/Breadcrumb.astro +0 -20
- package/scaffold/templates/astro/src/components/CategoryNav.astro +0 -27
- package/scaffold/templates/astro/src/components/CheckoutSteps.astro +0 -29
- package/scaffold/templates/astro/src/components/Footer.astro +0 -108
- package/scaffold/templates/astro/src/components/Header.astro +0 -198
- package/scaffold/templates/astro/src/components/ImageGallery.astro +0 -42
- package/scaffold/templates/astro/src/components/OrderSummary.astro +0 -53
- package/scaffold/templates/astro/src/components/Pagination.astro +0 -13
- package/scaffold/templates/astro/src/components/PriceDisplay.astro +0 -25
- package/scaffold/templates/astro/src/components/ProductCard.astro +0 -44
- package/scaffold/templates/astro/src/components/RelatedProducts.astro +0 -28
- package/scaffold/templates/astro/src/components/ReviewForm.astro +0 -74
- package/scaffold/templates/astro/src/components/ReviewList.astro +0 -41
- package/scaffold/templates/astro/src/components/StockBadge.astro +0 -15
- package/scaffold/templates/astro/src/scripts/auth-forms.ts +0 -82
- package/scaffold/templates/astro/src/scripts/cart-page.ts +0 -118
- package/scaffold/templates/astro/src/scripts/checkout.ts +0 -271
- package/scaffold/templates/astro/src/scripts/image-gallery.ts +0 -22
- package/scaffold/templates/astro/src/scripts/profile-form.ts +0 -57
- package/scaffold/templates/astro/src/scripts/review-form.ts +0 -27
- package/scaffold/templates/astro/src/styles/pages/cart.css +0 -215
- package/scaffold/templates/astro/src/styles/pages/checkout.css +0 -270
- package/scaffold/templates/nextjs/app/account/addresses/page.tsx +0 -10
- package/scaffold/templates/nextjs/app/account/login/page.tsx +0 -23
- package/scaffold/templates/nextjs/app/account/profile/page.tsx +0 -10
- package/scaffold/templates/nextjs/app/account/register/page.tsx +0 -10
- package/scaffold/templates/nextjs/app/cart/page.tsx +0 -10
- package/scaffold/templates/nextjs/app/category/[slug]/page.tsx +0 -61
- package/scaffold/templates/nextjs/app/checkout/page.tsx +0 -17
- package/scaffold/templates/nextjs/app/page.tsx +0 -63
- package/scaffold/templates/nextjs/app/product/[slug]/page.tsx +0 -111
- package/scaffold/templates/nextjs/app/products/page.tsx +0 -40
- package/scaffold/templates/nextjs/app/search/page.tsx +0 -24
- package/scaffold/templates/nextjs/components/client/AddressManager.tsx +0 -181
- package/scaffold/templates/nextjs/components/client/CartPage.tsx +0 -121
- package/scaffold/templates/nextjs/components/client/CheckoutForm.tsx +0 -482
- package/scaffold/templates/nextjs/components/client/ImageGallery.tsx +0 -68
- package/scaffold/templates/nextjs/components/client/LoginForm.tsx +0 -89
- package/scaffold/templates/nextjs/components/client/MiniCartWrapper.tsx +0 -12
- package/scaffold/templates/nextjs/components/client/ProductGrid.tsx +0 -137
- package/scaffold/templates/nextjs/components/client/ProfileForm.tsx +0 -112
- package/scaffold/templates/nextjs/components/client/RegisterForm.tsx +0 -131
- package/scaffold/templates/nextjs/components/client/ReviewForm.tsx +0 -116
- package/scaffold/templates/nextjs/components/client/SearchBarWrapper.tsx +0 -27
- package/scaffold/templates/nextjs/components/client/SearchResults.tsx +0 -181
- package/scaffold/templates/nextjs/components/server/Breadcrumb.tsx +0 -36
- package/scaffold/templates/nextjs/components/server/CategoryNav.tsx +0 -29
- package/scaffold/templates/nextjs/components/server/CheckoutSteps.tsx +0 -60
- package/scaffold/templates/nextjs/components/server/Footer.module.css +0 -64
- package/scaffold/templates/nextjs/components/server/Footer.tsx +0 -79
- package/scaffold/templates/nextjs/components/server/Header.module.css +0 -147
- package/scaffold/templates/nextjs/components/server/OrderSummary.tsx +0 -79
- package/scaffold/templates/nextjs/components/server/PriceDisplay.tsx +0 -31
- package/scaffold/templates/nextjs/components/server/ProductCard.tsx +0 -59
- package/scaffold/templates/nextjs/components/server/RelatedProducts.tsx +0 -31
- package/scaffold/templates/nextjs/components/server/ReviewList.tsx +0 -62
- package/scaffold/templates/nextjs/styles/pages/cart.module.css +0 -240
- package/scaffold/templates/nextjs/styles/pages/checkout.module.css +0 -404
- /package/scaffold/templates/nextjs/app/{account → (shopper)/account}/layout.tsx +0 -0
- /package/scaffold/templates/nextjs/app/{account → (shopper)/account}/orders/[orderNumber]/page.tsx +0 -0
- /package/scaffold/templates/nextjs/app/{account → (shopper)/account}/orders/page.tsx +0 -0
- /package/scaffold/templates/nextjs/app/{account → (shopper)/account}/page.tsx +0 -0
|
@@ -1,404 +0,0 @@
|
|
|
1
|
-
/* ── Checkout Page ─────────────────────────────────────────────────── */
|
|
2
|
-
|
|
3
|
-
.page {
|
|
4
|
-
padding-block: var(--nymbal-spacing-xl);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.pageTitle {
|
|
8
|
-
font-size: 2rem;
|
|
9
|
-
font-weight: var(--nymbal-font-weight-bold);
|
|
10
|
-
margin-bottom: var(--nymbal-spacing-lg);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.layout {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: column-reverse;
|
|
16
|
-
gap: var(--nymbal-spacing-xl);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
@media (min-width: 1024px) {
|
|
20
|
-
.layout {
|
|
21
|
-
flex-direction: row;
|
|
22
|
-
align-items: flex-start;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/* ── Step Indicator ───────────────────────────────────────────────── */
|
|
27
|
-
|
|
28
|
-
.steps {
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
gap: 0;
|
|
32
|
-
margin-bottom: var(--nymbal-spacing-xl);
|
|
33
|
-
overflow-x: auto;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.step {
|
|
37
|
-
display: flex;
|
|
38
|
-
align-items: center;
|
|
39
|
-
gap: var(--nymbal-spacing-sm);
|
|
40
|
-
flex-shrink: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.stepNumber {
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
justify-content: center;
|
|
47
|
-
width: 2rem;
|
|
48
|
-
height: 2rem;
|
|
49
|
-
border-radius: 50%;
|
|
50
|
-
font-size: var(--nymbal-font-size-sm);
|
|
51
|
-
font-weight: var(--nymbal-font-weight-medium);
|
|
52
|
-
border: 2px solid var(--nymbal-color-border);
|
|
53
|
-
color: var(--nymbal-color-text-muted);
|
|
54
|
-
background: var(--nymbal-color-surface);
|
|
55
|
-
flex-shrink: 0;
|
|
56
|
-
transition: all var(--nymbal-transition-fast);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.stepLabel {
|
|
60
|
-
font-size: var(--nymbal-font-size-sm);
|
|
61
|
-
color: var(--nymbal-color-text-muted);
|
|
62
|
-
font-weight: var(--nymbal-font-weight-normal);
|
|
63
|
-
white-space: nowrap;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.stepActive .stepNumber {
|
|
67
|
-
background-color: var(--nymbal-color-primary);
|
|
68
|
-
border-color: var(--nymbal-color-primary);
|
|
69
|
-
color: var(--nymbal-color-text-inverse);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.stepActive .stepLabel {
|
|
73
|
-
color: var(--nymbal-color-text);
|
|
74
|
-
font-weight: var(--nymbal-font-weight-medium);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.stepCompleted .stepNumber {
|
|
78
|
-
background-color: var(--nymbal-color-success);
|
|
79
|
-
border-color: var(--nymbal-color-success);
|
|
80
|
-
color: var(--nymbal-color-text-inverse);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.stepCompleted .stepLabel {
|
|
84
|
-
color: var(--nymbal-color-text);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.stepConnector {
|
|
88
|
-
width: 2rem;
|
|
89
|
-
height: 2px;
|
|
90
|
-
background-color: var(--nymbal-color-border);
|
|
91
|
-
flex-shrink: 0;
|
|
92
|
-
margin: 0 var(--nymbal-spacing-xs);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.stepConnectorCompleted {
|
|
96
|
-
background-color: var(--nymbal-color-success);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@media (min-width: 640px) {
|
|
100
|
-
.stepConnector {
|
|
101
|
-
width: 3rem;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
/* ── Form Sections ────────────────────────────────────────────────── */
|
|
106
|
-
|
|
107
|
-
.formArea {
|
|
108
|
-
flex: 1;
|
|
109
|
-
min-width: 0;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.formSection {
|
|
113
|
-
background: var(--nymbal-color-surface);
|
|
114
|
-
border: 1px solid var(--nymbal-color-border);
|
|
115
|
-
border-radius: var(--nymbal-radius-lg);
|
|
116
|
-
padding: var(--nymbal-spacing-lg);
|
|
117
|
-
margin-bottom: var(--nymbal-spacing-lg);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.formSectionTitle {
|
|
121
|
-
font-size: var(--nymbal-font-size-lg);
|
|
122
|
-
font-weight: var(--nymbal-font-weight-bold);
|
|
123
|
-
margin-bottom: var(--nymbal-spacing-md);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.formGrid {
|
|
127
|
-
display: grid;
|
|
128
|
-
grid-template-columns: 1fr;
|
|
129
|
-
gap: var(--nymbal-spacing-md);
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
@media (min-width: 640px) {
|
|
133
|
-
.formGrid {
|
|
134
|
-
grid-template-columns: repeat(2, 1fr);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.formGridFull {
|
|
139
|
-
grid-column: 1 / -1;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.fieldLabel {
|
|
143
|
-
display: block;
|
|
144
|
-
font-size: var(--nymbal-font-size-sm);
|
|
145
|
-
font-weight: var(--nymbal-font-weight-medium);
|
|
146
|
-
margin-bottom: var(--nymbal-spacing-xs);
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
.fieldInput {
|
|
150
|
-
display: block;
|
|
151
|
-
width: 100%;
|
|
152
|
-
padding: 0.625rem 0.75rem;
|
|
153
|
-
font-size: var(--nymbal-font-size-sm);
|
|
154
|
-
border: 1px solid var(--nymbal-color-border);
|
|
155
|
-
border-radius: var(--nymbal-radius-md);
|
|
156
|
-
background: var(--nymbal-color-surface);
|
|
157
|
-
transition: border-color var(--nymbal-transition-fast),
|
|
158
|
-
box-shadow var(--nymbal-transition-fast);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.fieldInput:focus {
|
|
162
|
-
outline: none;
|
|
163
|
-
border-color: var(--nymbal-color-accent);
|
|
164
|
-
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.fieldError {
|
|
168
|
-
font-size: var(--nymbal-font-size-xs);
|
|
169
|
-
color: var(--nymbal-color-error);
|
|
170
|
-
margin-top: var(--nymbal-spacing-xs);
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/* ── Shipping Methods ─────────────────────────────────────────────── */
|
|
174
|
-
|
|
175
|
-
.shippingMethods {
|
|
176
|
-
display: flex;
|
|
177
|
-
flex-direction: column;
|
|
178
|
-
gap: var(--nymbal-spacing-sm);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
.shippingOption {
|
|
182
|
-
display: flex;
|
|
183
|
-
align-items: center;
|
|
184
|
-
gap: var(--nymbal-spacing-md);
|
|
185
|
-
padding: var(--nymbal-spacing-md);
|
|
186
|
-
border: 1px solid var(--nymbal-color-border);
|
|
187
|
-
border-radius: var(--nymbal-radius-md);
|
|
188
|
-
cursor: pointer;
|
|
189
|
-
transition: border-color var(--nymbal-transition-fast);
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.shippingOption:hover {
|
|
193
|
-
border-color: var(--nymbal-color-primary);
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.shippingOptionSelected {
|
|
197
|
-
border-color: var(--nymbal-color-accent);
|
|
198
|
-
background-color: rgba(37, 99, 235, 0.04);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.shippingOption input[type='radio'] {
|
|
202
|
-
width: auto;
|
|
203
|
-
accent-color: var(--nymbal-color-accent);
|
|
204
|
-
flex-shrink: 0;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
.shippingOptionInfo {
|
|
208
|
-
flex: 1;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.shippingOptionName {
|
|
212
|
-
font-size: var(--nymbal-font-size-sm);
|
|
213
|
-
font-weight: var(--nymbal-font-weight-medium);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
.shippingOptionDetail {
|
|
217
|
-
font-size: var(--nymbal-font-size-xs);
|
|
218
|
-
color: var(--nymbal-color-text-muted);
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.shippingOptionPrice {
|
|
222
|
-
font-size: var(--nymbal-font-size-sm);
|
|
223
|
-
font-weight: var(--nymbal-font-weight-bold);
|
|
224
|
-
flex-shrink: 0;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/* ── Payment ──────────────────────────────────────────────────────── */
|
|
228
|
-
|
|
229
|
-
.paymentSection {
|
|
230
|
-
background: var(--nymbal-color-surface);
|
|
231
|
-
border: 1px solid var(--nymbal-color-border);
|
|
232
|
-
border-radius: var(--nymbal-radius-lg);
|
|
233
|
-
padding: var(--nymbal-spacing-lg);
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
.paymentElement {
|
|
237
|
-
margin-bottom: var(--nymbal-spacing-lg);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.paymentError {
|
|
241
|
-
padding: var(--nymbal-spacing-md);
|
|
242
|
-
background-color: #fef2f2;
|
|
243
|
-
border: 1px solid #fecaca;
|
|
244
|
-
border-radius: var(--nymbal-radius-md);
|
|
245
|
-
color: var(--nymbal-color-error);
|
|
246
|
-
font-size: var(--nymbal-font-size-sm);
|
|
247
|
-
margin-bottom: var(--nymbal-spacing-md);
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
/* ── Order Summary Sidebar ────────────────────────────────────────── */
|
|
251
|
-
|
|
252
|
-
.orderSummary {
|
|
253
|
-
background: var(--nymbal-color-surface);
|
|
254
|
-
border: 1px solid var(--nymbal-color-border);
|
|
255
|
-
border-radius: var(--nymbal-radius-lg);
|
|
256
|
-
padding: var(--nymbal-spacing-lg);
|
|
257
|
-
width: 100%;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
@media (min-width: 1024px) {
|
|
261
|
-
.orderSummary {
|
|
262
|
-
width: 22rem;
|
|
263
|
-
flex-shrink: 0;
|
|
264
|
-
position: sticky;
|
|
265
|
-
top: 5.5rem;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
.orderSummaryTitle {
|
|
270
|
-
font-size: var(--nymbal-font-size-lg);
|
|
271
|
-
font-weight: var(--nymbal-font-weight-bold);
|
|
272
|
-
margin-bottom: var(--nymbal-spacing-md);
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
.orderItem {
|
|
276
|
-
display: flex;
|
|
277
|
-
gap: var(--nymbal-spacing-sm);
|
|
278
|
-
padding: var(--nymbal-spacing-sm) 0;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.orderItemImage {
|
|
282
|
-
width: 3rem;
|
|
283
|
-
height: 3rem;
|
|
284
|
-
flex-shrink: 0;
|
|
285
|
-
border-radius: var(--nymbal-radius-sm);
|
|
286
|
-
background-color: #f4f4f5;
|
|
287
|
-
overflow: hidden;
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.orderItemImage img {
|
|
291
|
-
width: 100%;
|
|
292
|
-
height: 100%;
|
|
293
|
-
object-fit: cover;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
.orderItemInfo {
|
|
297
|
-
flex: 1;
|
|
298
|
-
min-width: 0;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
.orderItemName {
|
|
302
|
-
font-size: var(--nymbal-font-size-xs);
|
|
303
|
-
font-weight: var(--nymbal-font-weight-medium);
|
|
304
|
-
line-height: 1.3;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.orderItemQty {
|
|
308
|
-
font-size: var(--nymbal-font-size-xs);
|
|
309
|
-
color: var(--nymbal-color-text-muted);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
.orderItemPrice {
|
|
313
|
-
font-size: var(--nymbal-font-size-xs);
|
|
314
|
-
font-weight: var(--nymbal-font-weight-medium);
|
|
315
|
-
flex-shrink: 0;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.summaryDivider {
|
|
319
|
-
border: 0;
|
|
320
|
-
border-top: 1px solid var(--nymbal-color-border);
|
|
321
|
-
margin: var(--nymbal-spacing-sm) 0;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.summaryRow {
|
|
325
|
-
display: flex;
|
|
326
|
-
justify-content: space-between;
|
|
327
|
-
padding: var(--nymbal-spacing-xs) 0;
|
|
328
|
-
font-size: var(--nymbal-font-size-sm);
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
.summaryRowLabel {
|
|
332
|
-
color: var(--nymbal-color-text-muted);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
.summaryTotal {
|
|
336
|
-
font-weight: var(--nymbal-font-weight-bold);
|
|
337
|
-
font-size: var(--nymbal-font-size-base);
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
/* ── Form Navigation ──────────────────────────────────────────────── */
|
|
341
|
-
|
|
342
|
-
.formActions {
|
|
343
|
-
display: flex;
|
|
344
|
-
justify-content: space-between;
|
|
345
|
-
align-items: center;
|
|
346
|
-
gap: var(--nymbal-spacing-md);
|
|
347
|
-
margin-top: var(--nymbal-spacing-lg);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
.backButton {
|
|
351
|
-
padding: 0.625rem 1.25rem;
|
|
352
|
-
font-size: var(--nymbal-font-size-sm);
|
|
353
|
-
font-weight: var(--nymbal-font-weight-medium);
|
|
354
|
-
color: var(--nymbal-color-text);
|
|
355
|
-
background: none;
|
|
356
|
-
border: 1px solid var(--nymbal-color-border);
|
|
357
|
-
border-radius: var(--nymbal-radius-md);
|
|
358
|
-
cursor: pointer;
|
|
359
|
-
transition: border-color var(--nymbal-transition-fast),
|
|
360
|
-
background-color var(--nymbal-transition-fast);
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.backButton:hover {
|
|
364
|
-
border-color: var(--nymbal-color-primary);
|
|
365
|
-
background-color: #f4f4f5;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
.nextButton {
|
|
369
|
-
padding: 0.625rem 2rem;
|
|
370
|
-
font-size: var(--nymbal-font-size-sm);
|
|
371
|
-
font-weight: var(--nymbal-font-weight-medium);
|
|
372
|
-
color: var(--nymbal-color-text-inverse);
|
|
373
|
-
background-color: var(--nymbal-color-primary);
|
|
374
|
-
border: none;
|
|
375
|
-
border-radius: var(--nymbal-radius-md);
|
|
376
|
-
cursor: pointer;
|
|
377
|
-
transition: background-color var(--nymbal-transition-fast);
|
|
378
|
-
margin-left: auto;
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
.nextButton:hover {
|
|
382
|
-
background-color: var(--nymbal-color-primary-hover);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.nextButton:disabled {
|
|
386
|
-
opacity: 0.5;
|
|
387
|
-
cursor: not-allowed;
|
|
388
|
-
}
|
|
389
|
-
|
|
390
|
-
/* ── Processing Overlay ───────────────────────────────────────────── */
|
|
391
|
-
|
|
392
|
-
.processing {
|
|
393
|
-
display: flex;
|
|
394
|
-
flex-direction: column;
|
|
395
|
-
align-items: center;
|
|
396
|
-
justify-content: center;
|
|
397
|
-
padding: 3rem;
|
|
398
|
-
gap: var(--nymbal-spacing-md);
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
.processingText {
|
|
402
|
-
font-size: var(--nymbal-font-size-sm);
|
|
403
|
-
color: var(--nymbal-color-text-muted);
|
|
404
|
-
}
|
|
File without changes
|
/package/scaffold/templates/nextjs/app/{account → (shopper)/account}/orders/[orderNumber]/page.tsx
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|