@huskel/sdk 0.4.7 → 0.4.9

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.css CHANGED
@@ -2307,4 +2307,484 @@
2307
2307
  opacity: 0.9;
2308
2308
  transform: translateY(-1px);
2309
2309
  }
2310
+ .hsk-checkout-backdrop-full {
2311
+ position: fixed;
2312
+ inset: 0;
2313
+ width: 100vw;
2314
+ height: 100vh;
2315
+ background: var(--hsk-bg-overlay, rgba(0, 0, 0, 0.5));
2316
+ z-index: 999999;
2317
+ display: flex;
2318
+ align-items: center;
2319
+ justify-content: center;
2320
+ overflow: hidden;
2321
+ animation: hskFadeIn 0.25s ease-out forwards;
2322
+ }
2323
+ .hsk-checkout-modal-full {
2324
+ width: 100vw;
2325
+ height: 100vh;
2326
+ display: grid;
2327
+ grid-template-columns: 9fr 11fr;
2328
+ background: var(--hsk-checkout-right-bg, #ffffff);
2329
+ color: var(--hsk-checkout-text, #1e293b);
2330
+ overflow: hidden;
2331
+ position: relative;
2332
+ font-family:
2333
+ -apple-system,
2334
+ BlinkMacSystemFont,
2335
+ "Segoe UI",
2336
+ Roboto,
2337
+ Helvetica,
2338
+ Arial,
2339
+ sans-serif;
2340
+ }
2341
+ .hsk-checkout-panel-left {
2342
+ background: var(--hsk-checkout-left-bg, #f8fafc);
2343
+ border-right: 1px solid var(--hsk-checkout-divide, #e2e8f0);
2344
+ display: flex;
2345
+ flex-direction: column;
2346
+ align-items: flex-end;
2347
+ overflow-y: auto;
2348
+ padding: 4rem 2.5rem 2rem 2.5rem;
2349
+ box-sizing: border-box;
2350
+ }
2351
+ .hsk-checkout-left-content {
2352
+ width: 100%;
2353
+ max-width: 440px;
2354
+ display: flex;
2355
+ flex-direction: column;
2356
+ gap: 2rem;
2357
+ }
2358
+ .hsk-checkout-back-btn {
2359
+ align-self: flex-start;
2360
+ display: flex;
2361
+ align-items: center;
2362
+ gap: 0.5rem;
2363
+ background: none;
2364
+ border: none;
2365
+ color: var(--hsk-checkout-muted, #64748b);
2366
+ font-size: 0.875rem;
2367
+ font-weight: 500;
2368
+ cursor: pointer;
2369
+ padding: 0;
2370
+ transition: color 0.15s ease;
2371
+ position: relative;
2372
+ z-index: 100;
2373
+ pointer-events: auto;
2374
+ }
2375
+ .hsk-checkout-back-btn:hover {
2376
+ color: var(--hsk-primary, #ff6a33);
2377
+ }
2378
+ .hsk-checkout-store-info h2 {
2379
+ margin: 0;
2380
+ font-size: 1.25rem;
2381
+ font-weight: 600;
2382
+ color: var(--hsk-checkout-text, #0f172a);
2383
+ }
2384
+ .hsk-checkout-amount-due {
2385
+ display: flex;
2386
+ flex-direction: column;
2387
+ gap: 0.25rem;
2388
+ }
2389
+ .hsk-checkout-label-muted {
2390
+ font-size: 0.8125rem;
2391
+ font-weight: 500;
2392
+ color: var(--hsk-checkout-muted, #64748b);
2393
+ text-transform: uppercase;
2394
+ letter-spacing: 0.05em;
2395
+ }
2396
+ .hsk-checkout-grand-total {
2397
+ font-size: 2.25rem;
2398
+ font-weight: 700;
2399
+ color: var(--hsk-checkout-text, #0f172a);
2400
+ letter-spacing: -0.02em;
2401
+ }
2402
+ .hsk-checkout-items-list-wrap {
2403
+ margin-top: 1rem;
2404
+ border-top: 1px solid var(--hsk-checkout-divide, #e2e8f0);
2405
+ padding-top: 1.5rem;
2406
+ }
2407
+ .hsk-checkout-items-list {
2408
+ list-style: none;
2409
+ padding: 0;
2410
+ margin: 0;
2411
+ display: flex;
2412
+ flex-direction: column;
2413
+ gap: 1.25rem;
2414
+ }
2415
+ .hsk-checkout-item-row {
2416
+ display: flex;
2417
+ align-items: center;
2418
+ gap: 1rem;
2419
+ font-size: 0.875rem;
2420
+ }
2421
+ .hsk-checkout-item-img-container {
2422
+ position: relative;
2423
+ width: 56px;
2424
+ height: 56px;
2425
+ border-radius: 4px;
2426
+ border: 1px solid var(--hsk-checkout-divide, #e2e8f0);
2427
+ background: #ffffff;
2428
+ display: flex;
2429
+ align-items: center;
2430
+ justify-content: center;
2431
+ flex-shrink: 0;
2432
+ }
2433
+ .hsk-checkout-item-img {
2434
+ width: 100%;
2435
+ height: 100%;
2436
+ object-fit: contain;
2437
+ border-radius: 4px;
2438
+ }
2439
+ .hsk-checkout-item-img-placeholder {
2440
+ font-size: 1.25rem;
2441
+ }
2442
+ .hsk-checkout-item-qty-badge {
2443
+ position: absolute;
2444
+ top: -6px;
2445
+ right: -6px;
2446
+ background: var(--hsk-checkout-muted, #64748b);
2447
+ color: #ffffff;
2448
+ font-size: 0.7rem;
2449
+ font-weight: 700;
2450
+ min-width: 18px;
2451
+ height: 18px;
2452
+ padding: 0 4px;
2453
+ border-radius: 4px;
2454
+ display: flex;
2455
+ align-items: center;
2456
+ justify-content: center;
2457
+ box-sizing: border-box;
2458
+ }
2459
+ .hsk-checkout-item-details {
2460
+ flex: 1;
2461
+ }
2462
+ .hsk-checkout-item-name {
2463
+ font-weight: 500;
2464
+ color: var(--hsk-checkout-text, #0f172a);
2465
+ display: -webkit-box;
2466
+ -webkit-line-clamp: 2;
2467
+ -webkit-box-orient: vertical;
2468
+ overflow: hidden;
2469
+ }
2470
+ .hsk-checkout-item-price {
2471
+ font-weight: 600;
2472
+ color: var(--hsk-checkout-text, #0f172a);
2473
+ }
2474
+ .hsk-checkout-panel-right {
2475
+ background: var(--hsk-checkout-right-bg, #ffffff);
2476
+ display: flex;
2477
+ flex-direction: column;
2478
+ align-items: flex-start;
2479
+ overflow-y: auto;
2480
+ padding: 4rem 2.5rem 2rem 2.5rem;
2481
+ box-sizing: border-box;
2482
+ }
2483
+ .hsk-checkout-right-content {
2484
+ width: 100%;
2485
+ max-width: 440px;
2486
+ display: flex;
2487
+ flex-direction: column;
2488
+ }
2489
+ .hsk-checkout-payment-form-wrap {
2490
+ width: 100%;
2491
+ }
2492
+ .hsk-checkout-section-title {
2493
+ margin: 0 0 2rem 0;
2494
+ font-size: 1.125rem;
2495
+ font-weight: 600;
2496
+ color: var(--hsk-checkout-text, #0f172a);
2497
+ }
2498
+ .hsk-stripe-checkout-form {
2499
+ display: flex;
2500
+ flex-direction: column;
2501
+ gap: 1.5rem;
2502
+ }
2503
+ .hsk-form-group {
2504
+ display: flex;
2505
+ flex-direction: column;
2506
+ gap: 0.5rem;
2507
+ }
2508
+ .hsk-form-row {
2509
+ display: grid;
2510
+ grid-template-columns: 1fr 1fr;
2511
+ gap: 1rem;
2512
+ }
2513
+ .hsk-form-label {
2514
+ font-size: 0.8125rem;
2515
+ font-weight: 600;
2516
+ color: var(--hsk-checkout-text, #334155);
2517
+ }
2518
+ .hsk-form-input {
2519
+ width: 100%;
2520
+ box-sizing: border-box;
2521
+ padding: 0.75rem 1rem;
2522
+ font-size: 0.9375rem;
2523
+ background: #ffffff;
2524
+ color: var(--hsk-checkout-text, #1e293b);
2525
+ border: 1px solid var(--hsk-checkout-divide, #cbd5e1);
2526
+ border-radius: 4px;
2527
+ outline: none;
2528
+ transition: border-color 0.15s ease;
2529
+ }
2530
+ .hsk-form-input:focus {
2531
+ border-color: var(--hsk-primary, #ff6a33);
2532
+ box-shadow: none;
2533
+ }
2534
+ .hsk-phone-input-container {
2535
+ display: flex;
2536
+ align-items: center;
2537
+ border: 1px solid var(--hsk-checkout-divide, #cbd5e1);
2538
+ border-radius: 4px;
2539
+ overflow: hidden;
2540
+ background: #ffffff;
2541
+ transition: border-color 0.15s ease;
2542
+ }
2543
+ .hsk-phone-input-container:focus-within {
2544
+ border-color: var(--hsk-primary, #ff6a33);
2545
+ box-shadow: none;
2546
+ }
2547
+ .hsk-phone-prefix {
2548
+ padding: 0.75rem 1rem;
2549
+ font-weight: 700;
2550
+ font-size: 0.9375rem;
2551
+ background: var(--hsk-checkout-left-bg, #f1f5f9);
2552
+ color: var(--hsk-checkout-muted, #64748b);
2553
+ border-right: 1px solid var(--hsk-checkout-divide, #cbd5e1);
2554
+ user-select: none;
2555
+ }
2556
+ .hsk-phone-input-field {
2557
+ flex: 1;
2558
+ padding: 0.75rem 1rem;
2559
+ font-size: 0.9375rem;
2560
+ font-weight: 600;
2561
+ background: transparent;
2562
+ color: var(--hsk-checkout-text, #1e293b);
2563
+ border: none;
2564
+ outline: none;
2565
+ letter-spacing: 0.05em;
2566
+ }
2567
+ .hsk-form-hint {
2568
+ font-size: 0.75rem;
2569
+ color: var(--hsk-checkout-muted, #64748b);
2570
+ }
2571
+ .hsk-form-error-banner {
2572
+ padding: 0.75rem 1rem;
2573
+ background: #fef2f2;
2574
+ border: 1px solid #fee2e2;
2575
+ border-radius: 4px;
2576
+ font-size: 0.8125rem;
2577
+ color: #ef4444;
2578
+ font-weight: 500;
2579
+ }
2580
+ .hsk-checkout-submit-btn {
2581
+ width: 100%;
2582
+ padding: 0.875rem;
2583
+ font-size: 0.9375rem;
2584
+ font-weight: 600;
2585
+ background: var(--hsk-primary, #ff6a33);
2586
+ color: #ffffff;
2587
+ border: none;
2588
+ border-radius: 4px;
2589
+ cursor: pointer;
2590
+ transition: opacity 0.15s ease, transform 0.1s active;
2591
+ box-shadow: 0 4px 12px rgba(255, 106, 51, 0.25);
2592
+ }
2593
+ .hsk-checkout-submit-btn:hover {
2594
+ opacity: 0.95;
2595
+ }
2596
+ .hsk-checkout-submit-btn:active {
2597
+ transform: scale(0.98);
2598
+ }
2599
+ .hsk-checkout-footer-brand {
2600
+ margin-top: 2rem;
2601
+ display: flex;
2602
+ align-items: center;
2603
+ justify-content: center;
2604
+ font-size: 0.75rem;
2605
+ color: var(--hsk-checkout-muted, #94a3b8);
2606
+ }
2607
+ .hsk-checkout-status-card {
2608
+ display: flex;
2609
+ flex-direction: column;
2610
+ align-items: center;
2611
+ text-align: center;
2612
+ padding: 3rem 1.5rem;
2613
+ border-radius: 4px;
2614
+ background: var(--hsk-checkout-left-bg, #f8fafc);
2615
+ border: 1px solid var(--hsk-checkout-divide, #e2e8f0);
2616
+ }
2617
+ .hsk-status-icon-wrap {
2618
+ width: 64px;
2619
+ height: 64px;
2620
+ border-radius: 50%;
2621
+ display: flex;
2622
+ align-items: center;
2623
+ justify-content: center;
2624
+ font-size: 2rem;
2625
+ margin-bottom: 1.5rem;
2626
+ }
2627
+ .hsk-status-icon-wrap.success {
2628
+ background: #ecfdf5;
2629
+ color: #10b981;
2630
+ }
2631
+ .hsk-status-icon-wrap.failed {
2632
+ background: #fef2f2;
2633
+ color: #ef4444;
2634
+ }
2635
+ .hsk-checkout-status-card h3 {
2636
+ font-size: 1.25rem;
2637
+ font-weight: 600;
2638
+ margin: 0 0 0.75rem 0;
2639
+ color: var(--hsk-checkout-text, #0f172a);
2640
+ }
2641
+ .hsk-checkout-status-card p {
2642
+ font-size: 0.9375rem;
2643
+ line-height: 1.5;
2644
+ margin: 0 0 1.5rem 0;
2645
+ color: var(--hsk-checkout-muted, #475569);
2646
+ }
2647
+ .hsk-checkout-error-text {
2648
+ color: #ef4444 !important;
2649
+ font-weight: 500;
2650
+ }
2651
+ .hsk-status-spinner-wrap {
2652
+ margin-bottom: 1.5rem;
2653
+ }
2654
+ .hsk-status-spinner {
2655
+ width: 48px;
2656
+ height: 48px;
2657
+ border: 4px solid var(--hsk-checkout-divide, #e2e8f0);
2658
+ border-top: 4px solid var(--hsk-primary, #ff6a33);
2659
+ border-radius: 50%;
2660
+ animation: hskSpin 1s linear infinite;
2661
+ }
2662
+ .hsk-checkout-stk-instructions {
2663
+ background: #ffffff;
2664
+ border: 1px solid var(--hsk-checkout-divide, #e2e8f0);
2665
+ border-radius: 4px;
2666
+ padding: 1.25rem;
2667
+ margin-bottom: 1.5rem;
2668
+ width: 100%;
2669
+ box-sizing: border-box;
2670
+ text-align: left;
2671
+ }
2672
+ .hsk-checkout-stk-instructions p {
2673
+ margin: 0 0 0.5rem 0;
2674
+ font-size: 0.8125rem;
2675
+ font-weight: 500;
2676
+ color: var(--hsk-checkout-text, #334155);
2677
+ }
2678
+ .hsk-checkout-stk-instructions p:last-child {
2679
+ margin-bottom: 0;
2680
+ }
2681
+ .hsk-checkout-cancel-btn {
2682
+ background: none;
2683
+ border: none;
2684
+ color: var(--hsk-checkout-muted, #64748b);
2685
+ font-size: 0.8125rem;
2686
+ font-weight: 500;
2687
+ text-decoration: underline;
2688
+ cursor: pointer;
2689
+ padding: 0;
2690
+ }
2691
+ .hsk-checkout-cancel-btn:hover {
2692
+ color: var(--hsk-primary, #ff6a33);
2693
+ }
2694
+ @keyframes hskSpin {
2695
+ 0% {
2696
+ transform: rotate(0deg);
2697
+ }
2698
+ 100% {
2699
+ transform: rotate(360deg);
2700
+ }
2701
+ }
2702
+ [data-hsk-theme=dark] .hsk-checkout-modal-full,
2703
+ [data-hsk-theme=dark] .hsk-checkout-panel-right {
2704
+ --hsk-checkout-right-bg: #090d16;
2705
+ --hsk-checkout-text: #f8fafc;
2706
+ --hsk-checkout-divide: #1e293b;
2707
+ }
2708
+ [data-hsk-theme=dark] .hsk-checkout-panel-left {
2709
+ --hsk-checkout-left-bg: #0d1321;
2710
+ --hsk-checkout-text: #f8fafc;
2711
+ --hsk-checkout-divide: #1e293b;
2712
+ --hsk-checkout-muted: #94a3b8;
2713
+ }
2714
+ [data-hsk-theme=dark] .hsk-form-input,
2715
+ [data-hsk-theme=dark] .hsk-phone-input-container,
2716
+ [data-hsk-theme=dark] .hsk-checkout-item-img-container {
2717
+ background: #0d1321;
2718
+ border-color: #1e293b;
2719
+ }
2720
+ [data-hsk-theme=dark] .hsk-phone-prefix {
2721
+ background: #090d16;
2722
+ border-color: #1e293b;
2723
+ }
2724
+ [data-hsk-theme=dark] .hsk-checkout-status-card {
2725
+ background: #0d1321;
2726
+ border-color: #1e293b;
2727
+ }
2728
+ [data-hsk-theme=dark] .hsk-checkout-stk-instructions {
2729
+ background: #090d16;
2730
+ border-color: #1e293b;
2731
+ }
2732
+ [data-hsk-theme=dark] .hsk-form-label {
2733
+ color: #94a3b8;
2734
+ }
2735
+ @media (prefers-color-scheme: dark) {
2736
+ .hsk-checkout-modal-full,
2737
+ .hsk-checkout-panel-right {
2738
+ --hsk-checkout-right-bg: #090d16;
2739
+ --hsk-checkout-text: #f8fafc;
2740
+ --hsk-checkout-divide: #1e293b;
2741
+ }
2742
+ .hsk-checkout-panel-left {
2743
+ --hsk-checkout-left-bg: #0d1321;
2744
+ --hsk-checkout-text: #f8fafc;
2745
+ --hsk-checkout-divide: #1e293b;
2746
+ --hsk-checkout-muted: #94a3b8;
2747
+ }
2748
+ .hsk-form-input,
2749
+ .hsk-phone-input-container,
2750
+ .hsk-checkout-item-img-container {
2751
+ background: #0d1321;
2752
+ border-color: #1e293b;
2753
+ }
2754
+ .hsk-phone-prefix {
2755
+ background: #090d16;
2756
+ border-color: #1e293b;
2757
+ }
2758
+ .hsk-checkout-status-card {
2759
+ background: #0d1321;
2760
+ border-color: #1e293b;
2761
+ }
2762
+ .hsk-checkout-stk-instructions {
2763
+ background: #090d16;
2764
+ border-color: #1e293b;
2765
+ }
2766
+ .hsk-form-label {
2767
+ color: #94a3b8;
2768
+ }
2769
+ }
2770
+ @media (max-width: 768px) {
2771
+ .hsk-checkout-modal-full {
2772
+ grid-template-columns: 1fr;
2773
+ overflow-y: auto;
2774
+ }
2775
+ .hsk-checkout-panel-left {
2776
+ padding: 2rem 1.5rem 1.5rem 1.5rem;
2777
+ align-items: center;
2778
+ border-right: none;
2779
+ border-bottom: 1px solid var(--hsk-checkout-divide, #cbd5e1);
2780
+ }
2781
+ .hsk-checkout-panel-right {
2782
+ padding: 1.5rem 1.5rem 2rem 1.5rem;
2783
+ align-items: center;
2784
+ }
2785
+ .hsk-checkout-left-content,
2786
+ .hsk-checkout-right-content {
2787
+ max-width: 100%;
2788
+ }
2789
+ }
2310
2790
  /*# sourceMappingURL=index.css.map */