@reevit/react 0.5.6 → 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/dist/styles.css CHANGED
@@ -128,36 +128,49 @@
128
128
  display: flex;
129
129
  align-items: center;
130
130
  justify-content: space-between;
131
- padding: 16px 20px;
131
+ padding: 18px 20px 12px;
132
132
  background: var(--reevit-background);
133
133
  }
134
134
 
135
135
  .reevit-modal__branding {
136
136
  display: flex;
137
137
  align-items: center;
138
- gap: 8px;
138
+ gap: 10px;
139
139
  }
140
140
 
141
141
  .reevit-modal__logo {
142
142
  height: 28px;
143
143
  width: 28px;
144
144
  object-fit: contain;
145
- border-radius: 6px;
145
+ border-radius: 8px;
146
146
  }
147
147
 
148
- .reevit-modal__brand-name {
149
- font-size: 14px;
148
+ .reevit-modal__logo-fallback {
149
+ height: 28px;
150
+ width: 28px;
151
+ display: flex;
152
+ align-items: center;
153
+ justify-content: center;
154
+ background: var(--reevit-primary);
155
+ color: var(--reevit-primary-foreground);
156
+ border-radius: 8px;
157
+ font-size: 13px;
150
158
  font-weight: 600;
159
+ }
160
+
161
+ .reevit-modal__brand-name {
162
+ font-size: 13px;
163
+ font-weight: 500;
151
164
  color: var(--reevit-text);
152
165
  }
153
166
 
154
167
  .reevit-modal__close {
155
- width: 32px;
156
- height: 32px;
157
- border-radius: 50%;
168
+ width: 24px;
169
+ height: 24px;
170
+ border-radius: 6px;
158
171
  border: none;
159
- background: rgba(0, 0, 0, 0.06);
160
- color: var(--reevit-text);
172
+ background: transparent;
173
+ color: var(--reevit-muted);
161
174
  cursor: pointer;
162
175
  display: flex;
163
176
  align-items: center;
@@ -166,31 +179,32 @@
166
179
  }
167
180
 
168
181
  .reevit-modal__close:hover {
169
- background: rgba(0, 0, 0, 0.1);
182
+ color: var(--reevit-text);
183
+ opacity: 0.7;
170
184
  }
171
185
 
172
186
  /* Modal Amount */
173
187
  .reevit-modal__amount {
174
- padding: 24px 20px;
175
- text-align: center;
188
+ padding: 0 20px 16px;
189
+ text-align: left;
176
190
  background: var(--reevit-background);
191
+ border-bottom: 1px solid var(--reevit-border);
177
192
  }
178
193
 
179
194
  .reevit-modal__amount-label {
180
195
  display: block;
181
196
  font-size: 11px;
182
197
  font-weight: 500;
183
- text-transform: uppercase;
184
- letter-spacing: 0.12em;
185
- color: var(--reevit-text);
186
- opacity: 0.6;
187
- margin-bottom: 8px;
198
+ text-transform: none;
199
+ letter-spacing: 0;
200
+ color: var(--reevit-muted);
201
+ margin-bottom: 2px;
188
202
  }
189
203
 
190
204
  .reevit-modal__amount-value {
191
205
  display: block;
192
- font-size: 32px;
193
- font-weight: 700;
206
+ font-size: 28px;
207
+ font-weight: 600;
194
208
  letter-spacing: -0.02em;
195
209
  color: var(--reevit-text);
196
210
  }
@@ -205,16 +219,28 @@
205
219
 
206
220
  /* Modal Footer */
207
221
  .reevit-modal__footer {
208
- padding: 16px 20px;
222
+ padding: 12px 20px;
209
223
  text-align: center;
210
224
  background: var(--reevit-background);
225
+ border-top: 1px solid var(--reevit-border);
211
226
  }
212
227
 
213
228
  .reevit-modal__secured {
214
- font-size: 12px;
229
+ display: inline-flex;
230
+ align-items: center;
231
+ gap: 6px;
232
+ font-size: 11px;
215
233
  font-weight: 400;
216
- color: var(--reevit-text);
217
- opacity: 0.5;
234
+ color: var(--reevit-muted);
235
+ letter-spacing: 0;
236
+ }
237
+
238
+ .reevit-modal__secured svg {
239
+ flex-shrink: 0;
240
+ }
241
+
242
+ .reevit-modal__secured-brand {
243
+ font-weight: 500;
218
244
  }
219
245
 
220
246
  /* ===== PSP SELECTOR ===== */
@@ -223,49 +249,45 @@
223
249
  }
224
250
 
225
251
  .reevit-psp-selector__label {
226
- font-size: 11px;
227
- font-weight: 600;
228
- text-transform: uppercase;
229
- letter-spacing: 0.08em;
252
+ font-size: 13px;
253
+ font-weight: 500;
230
254
  color: var(--reevit-text);
231
- opacity: 0.6;
255
+ opacity: 0.7;
232
256
  margin-bottom: 12px;
233
257
  }
234
258
 
235
259
  .reevit-psp-selector__options {
236
260
  display: flex;
237
261
  flex-direction: column;
238
- border: 1px solid var(--reevit-border);
239
- border-radius: var(--reevit-radius);
240
- overflow: hidden;
262
+ gap: 10px;
241
263
  }
242
264
 
243
265
  .reevit-psp-option {
244
266
  display: flex;
245
267
  align-items: center;
246
- gap: 12px;
247
- padding: 14px 16px;
248
- border: none;
249
- border-bottom: 1px solid var(--reevit-border);
250
- border-radius: 0;
251
- background: transparent;
268
+ gap: 14px;
269
+ padding: 16px 18px;
270
+ border: 1px solid var(--reevit-border);
271
+ border-radius: var(--reevit-radius);
272
+ background: var(--reevit-surface);
252
273
  cursor: pointer;
253
- transition: all 0.15s ease;
274
+ transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
254
275
  text-align: left;
255
276
  width: 100%;
256
277
  position: relative;
257
278
  }
258
279
 
259
- .reevit-psp-option:last-child {
260
- border-bottom: none;
261
- }
262
-
263
280
  .reevit-psp-option:hover:not(.reevit-psp-option--disabled):not(.reevit-psp-option--selected) {
264
- background: rgba(0, 0, 0, 0.02);
281
+ border-color: color-mix(in srgb, var(--reevit-primary) 50%, var(--reevit-border));
282
+ background: color-mix(in srgb, var(--reevit-primary) 3%, var(--reevit-surface));
283
+ transform: translateY(-1px);
284
+ box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.08);
265
285
  }
266
286
 
267
287
  .reevit-psp-option--selected {
268
- border-bottom: 1px solid var(--reevit-border);
288
+ border-color: var(--reevit-primary);
289
+ background: color-mix(in srgb, var(--reevit-primary) 5%, var(--reevit-surface));
290
+ border-radius: var(--reevit-radius) var(--reevit-radius) 0 0;
269
291
  }
270
292
 
271
293
  .reevit-psp-option--disabled {
@@ -274,24 +296,25 @@
274
296
  }
275
297
 
276
298
  .reevit-psp-option__logo {
277
- width: 32px;
278
- height: 32px;
279
- border-radius: 8px;
280
- background: transparent;
299
+ width: 40px;
300
+ height: 40px;
301
+ border-radius: 10px;
302
+ background: var(--reevit-background);
281
303
  display: inline-flex;
282
304
  align-items: center;
283
305
  justify-content: center;
284
306
  flex-shrink: 0;
307
+ border: 1px solid var(--reevit-border);
285
308
  }
286
309
 
287
310
  .reevit-psp-option__logo-img {
288
- width: 24px;
289
- height: 24px;
311
+ width: 28px;
312
+ height: 28px;
290
313
  object-fit: contain;
291
314
  }
292
315
 
293
316
  .reevit-psp-option__logo-fallback {
294
- font-size: 12px;
317
+ font-size: 14px;
295
318
  font-weight: 700;
296
319
  color: var(--reevit-text);
297
320
  }
@@ -303,17 +326,28 @@
303
326
 
304
327
  .reevit-psp-option__name {
305
328
  display: block;
306
- font-size: 14px;
329
+ font-size: 15px;
307
330
  font-weight: 600;
308
331
  color: var(--reevit-text);
332
+ letter-spacing: -0.01em;
309
333
  }
310
334
 
311
335
  .reevit-psp-option__methods {
312
336
  display: block;
313
- font-size: 12px;
314
- color: var(--reevit-text);
315
- opacity: 0.6;
316
- margin-top: 2px;
337
+ font-size: 13px;
338
+ color: var(--reevit-text-secondary);
339
+ margin-top: 3px;
340
+ }
341
+
342
+ .reevit-psp-option__chevron {
343
+ color: var(--reevit-muted);
344
+ flex-shrink: 0;
345
+ transition: all 0.2s ease;
346
+ }
347
+
348
+ .reevit-psp-option:hover .reevit-psp-option__chevron {
349
+ color: var(--reevit-primary);
350
+ transform: translateX(2px);
317
351
  }
318
352
 
319
353
 
@@ -362,26 +396,30 @@
362
396
  }
363
397
 
364
398
  .reevit-psp-accordion__content {
365
- padding: 12px 16px;
366
- background: transparent;
367
- border-bottom: 1px solid var(--reevit-border);
399
+ padding: 16px;
400
+ background: var(--reevit-surface);
401
+ border: 1px solid var(--reevit-primary);
402
+ border-top: none;
403
+ border-radius: 0 0 var(--reevit-radius) var(--reevit-radius);
368
404
  animation: reevit-accordion-expand 0.3s ease-out;
369
405
  transform-origin: top;
370
406
  }
371
407
 
372
- .reevit-psp-accordion:last-child .reevit-psp-accordion__content {
373
- border-bottom: none;
408
+ .reevit-psp-accordion__method-content {
409
+ margin-top: 16px;
410
+ padding-top: 16px;
411
+ border-top: 1px solid var(--reevit-border);
374
412
  }
375
413
 
376
414
  /* Back button */
377
415
  .reevit-psp-back-button {
378
- display: flex;
416
+ display: inline-flex;
379
417
  align-items: center;
380
418
  gap: 6px;
381
- padding: 8px 12px;
382
- margin-bottom: 12px;
383
- background: transparent;
384
- border: none;
419
+ padding: 8px 14px;
420
+ margin-bottom: 14px;
421
+ background: var(--reevit-background);
422
+ border: 1px solid var(--reevit-border);
385
423
  border-radius: var(--reevit-radius-sm);
386
424
  color: var(--reevit-text-secondary);
387
425
  font-family: var(--reevit-font);
@@ -392,7 +430,8 @@
392
430
  }
393
431
 
394
432
  .reevit-psp-back-button:hover {
395
- background: var(--reevit-border);
433
+ background: var(--reevit-surface);
434
+ border-color: var(--reevit-text-secondary);
396
435
  color: var(--reevit-text);
397
436
  }
398
437
 
@@ -405,6 +444,10 @@
405
444
  flex-shrink: 0;
406
445
  }
407
446
 
447
+ .reevit-psp-methods {
448
+ margin-top: 4px;
449
+ }
450
+
408
451
  /* ===== PAYMENT METHOD SELECTOR ===== */
409
452
  .reevit-method-selector {
410
453
  margin-bottom: 16px;
@@ -412,12 +455,10 @@
412
455
  }
413
456
 
414
457
  .reevit-method-selector__label {
415
- font-size: 11px;
416
- font-weight: 600;
417
- text-transform: uppercase;
418
- letter-spacing: 0.08em;
458
+ font-size: 13px;
459
+ font-weight: 500;
419
460
  color: var(--reevit-text);
420
- opacity: 0.6;
461
+ opacity: 0.7;
421
462
  margin-bottom: 12px;
422
463
  }
423
464
 
@@ -436,6 +477,7 @@
436
477
  border: 1px solid var(--reevit-border);
437
478
  border-radius: var(--reevit-radius);
438
479
  overflow: hidden;
480
+ background: var(--reevit-surface);
439
481
  }
440
482
 
441
483
  /* Grid layout styles */
@@ -509,8 +551,8 @@
509
551
  flex-direction: row;
510
552
  align-items: center;
511
553
  justify-content: flex-start;
512
- gap: 16px;
513
- padding: 16px 18px;
554
+ gap: 14px;
555
+ padding: 14px 16px;
514
556
  background: transparent;
515
557
  border: none;
516
558
  border-bottom: 1px solid var(--reevit-border);
@@ -527,11 +569,11 @@
527
569
  }
528
570
 
529
571
  .reevit-method-option--list:hover:not(.reevit-method-option--disabled) {
530
- background: rgba(0, 0, 0, 0.02);
572
+ background: color-mix(in srgb, var(--reevit-primary) 4%, transparent);
531
573
  }
532
574
 
533
575
  .reevit-method-option--list.reevit-method-option--selected {
534
- background: rgba(0, 0, 0, 0.02);
576
+ background: color-mix(in srgb, var(--reevit-primary) 6%, transparent);
535
577
  }
536
578
 
537
579
  .reevit-method-option--list .reevit-method-option__icon-wrapper {
@@ -559,21 +601,37 @@
559
601
  font-weight: 600;
560
602
  color: var(--reevit-text);
561
603
  margin-bottom: 2px;
604
+ letter-spacing: -0.01em;
562
605
  }
563
606
 
564
607
  .reevit-method-option--list .reevit-method-option__description {
565
608
  display: block;
566
609
  font-size: 13px;
567
- color: var(--reevit-text);
568
- opacity: 0.6;
610
+ color: var(--reevit-text-secondary);
569
611
  line-height: 1.4;
570
612
  }
571
613
 
572
614
  .reevit-method-option--list .reevit-method-option__chevron {
573
- display: none;
615
+ color: var(--reevit-muted);
616
+ flex-shrink: 0;
617
+ transition: all 0.2s ease;
618
+ }
619
+
620
+ .reevit-method-option--list:hover .reevit-method-option__chevron {
621
+ color: var(--reevit-primary);
622
+ transform: translateX(2px);
574
623
  }
575
624
 
576
625
  .reevit-method-option--list .reevit-method-option__check {
626
+ color: var(--reevit-primary);
627
+ flex-shrink: 0;
628
+ }
629
+
630
+ .reevit-method-option--list.reevit-method-option--selected .reevit-method-option__chevron {
631
+ display: none;
632
+ }
633
+
634
+ .reevit-method-option--list:not(.reevit-method-option--selected) .reevit-method-option__check {
577
635
  display: none;
578
636
  }
579
637
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reevit/react",
3
- "version": "0.5.6",
3
+ "version": "0.5.8",
4
4
  "description": "Reevit React SDK - Unified Payment Widget",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",