ui.shipaid.com 0.3.160 → 0.3.162

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/widget.es.js CHANGED
@@ -970,7 +970,7 @@ const useOnce = (element, on) => useEffect(element, on, []);
970
970
  function n(n2, o3, r2) {
971
971
  return n2 ? o3() : null == r2 ? void 0 : r2();
972
972
  }
973
- const styles = i2`
973
+ const styles$1 = i2`
974
974
  :host {
975
975
  --shipaid-primary: #0056d6;
976
976
  --shipaid-secondary: #0076ff;
@@ -1168,7 +1168,7 @@ const _ConfirmationPopup = class _ConfirmationPopup extends s$1 {
1168
1168
  `;
1169
1169
  }
1170
1170
  };
1171
- _ConfirmationPopup.styles = styles;
1171
+ _ConfirmationPopup.styles = styles$1;
1172
1172
  let ConfirmationPopup = _ConfirmationPopup;
1173
1173
  __decorateClass$5([
1174
1174
  n$7({ type: Boolean, attribute: true })
@@ -2456,6 +2456,219 @@ if (!customElements.get("checkout-package-protection")) {
2456
2456
  }
2457
2457
  customElements.get("shipaid-learn-more-carousel") || customElements.define("shipaid-learn-more-carousel", en2);
2458
2458
  })();
2459
+ const styles = i2`
2460
+ :host {
2461
+ --shipaid-primary: #002bd6;
2462
+ --shipaid-secondary: #0076ff;
2463
+ --shipaid-danger: #f44336;
2464
+ --shipaid-text: #000000;
2465
+ --shipaid-text-muted: #cccccc;
2466
+ --shipaid-text-grey: #aaaaaa;
2467
+ --shipaid-light-grey: #ebecf0;
2468
+ --shipaid-font: "Lato", sans-serif;
2469
+ --shipaid-font-xxs: 11px;
2470
+ --shipaid-font-xs: 12px;
2471
+ --shipaid-font-sm: 14px;
2472
+ --shipaid-font-base: 16px;
2473
+ --shipaid-font-lg: 18px;
2474
+ --shipaid-font-regular: 400;
2475
+ --shipaid-font-heavy: 700;
2476
+ --shipaid-prompt-badge: #f2f7ff;
2477
+ }
2478
+
2479
+ * {
2480
+ font-family: var(--shipaid-font);
2481
+ }
2482
+
2483
+ p,
2484
+ a {
2485
+ font-weight: var(--shipaid-font-regular);
2486
+ font-size: var(--shipaid-font-base);
2487
+ color: var(--shipaid-text);
2488
+ }
2489
+
2490
+ .error {
2491
+ color: var(--shipaid-danger);
2492
+ font-size: var(--shipaid-font-sm);
2493
+ }
2494
+
2495
+ @media (max-width: 600px) {
2496
+ .shipaid-prompt {
2497
+ width: var(--shipaid-prompt-width-mobile, 100%);
2498
+ }
2499
+ }
2500
+
2501
+ .shipaid-widget-container {
2502
+ display: flex;
2503
+ justify-content: right;
2504
+ }
2505
+
2506
+ .shipaid-prompt p,
2507
+ .shipaid-prompt a {
2508
+ margin: 0;
2509
+ line-height: 1;
2510
+ }
2511
+ .shipaid-prompt .prompt-title {
2512
+ text-align: center;
2513
+ font-size: var(--shipaid-font-lg, 18px);
2514
+ font-weight: var(--shipaid-font-heavy);
2515
+ }
2516
+ .shipaid-prompt .prompt-product {
2517
+ display: flex;
2518
+ flex-direction: row;
2519
+ gap: 0.5rem;
2520
+ margin-top: 1rem;
2521
+ }
2522
+ .shipaid-prompt .prompt-product .prompt-product-image {
2523
+ position: relative;
2524
+ }
2525
+ .shipaid-prompt .prompt-product .prompt-product-image svg {
2526
+ height: var(--shipaid-logo-height, 35px);
2527
+ max-height: var(--shipaid-logo-max-height, 35px);
2528
+ width: var(--shipaid-logo-width, auto);
2529
+ max-width: var(--shipaid-logo-max-width, 50px);
2530
+ }
2531
+ .shipaid-prompt
2532
+ .prompt-product
2533
+ .prompt-product-details
2534
+ .prompt-product-details-title {
2535
+ text-align: left;
2536
+ font-size: var(--shipaid-font-lg);
2537
+ font-weight: var(--shipaid-font-heavy);
2538
+ }
2539
+
2540
+ .shipaid-prompt
2541
+ .prompt-product
2542
+ .prompt-product-details
2543
+ .prompt-product-details-description {
2544
+ font-size: var(--shipaid-font-xxs);
2545
+ margin-top: var(--shipaid-prompt-product-description-margin, 5px);
2546
+ }
2547
+
2548
+ .shipaid-prompt .prompt-product .prompt-product-actions {
2549
+ margin-left: auto;
2550
+ display: flex;
2551
+ flex-direction: column;
2552
+ justify-content: var(--shipaid-prompt-product-actions-content, space-between);
2553
+ text-align: right;
2554
+ min-width: 55px;
2555
+ }
2556
+ .shipaid-prompt
2557
+ .prompt-product
2558
+ .prompt-product-actions
2559
+ .prompt-product-actions-price {
2560
+ color: var(--shipaid-prompt-actions-price-color, var(--shipaid-text-muted));
2561
+ font-size: var(--shipaid-prompt-actions-price-fontSize, --shipaid-font-base);
2562
+ }
2563
+ .shipaid-prompt
2564
+ .prompt-product
2565
+ .prompt-product-actions
2566
+ .prompt-product-actions-button {
2567
+ background-color: transparent;
2568
+ border: none;
2569
+ color: var(--shipaid-prompt-actions-button-color, var(--shipaid-primary));
2570
+ text-transform: uppercase;
2571
+ font-weight: var(--shipaid-font-heavy);
2572
+ cursor: pointer;
2573
+ padding: 6px 0;
2574
+ text-align: right;
2575
+ }
2576
+ .shipaid-prompt .prompt-footer {
2577
+ margin-top: var(--shipaid-prompt-footer-topMargin, 0px);
2578
+ display: var(--shipaid-prompt-footer-display, flex);
2579
+ flex-direction: row;
2580
+ justify-content: var(--shipaid-prompt-footer-location, flex-start);
2581
+ align-items: center;
2582
+ }
2583
+ .shipaid-prompt .prompt-footer .prompt-footer-about {
2584
+ color: var(--shipaid-text);
2585
+ cursor: pointer;
2586
+ font-size: var(--shipaid-prompt-footer-button-size, 10px);
2587
+ background-color: transparent;
2588
+ cursor: pointer;
2589
+ border: 1px solid var(--shipaid-text);
2590
+ border-radius: 10px;
2591
+ margin-left: 0.5rem;
2592
+ }
2593
+ .shipaid-prompt .prompt-footer .prompt-footer-badge {
2594
+ background-color: var(
2595
+ --shipaid-prompt-badge-background-color,
2596
+ var(--shipaid-prompt-badge)
2597
+ );
2598
+ color: var(--shipaid-prompt-badge-text-color, var(--shipaid-text));
2599
+ padding: 0.2rem 1rem;
2600
+ border-radius: var(--shipaid-prompt-badge-border-radius, 30px);
2601
+ cursor: pointer;
2602
+ text-decoration: none;
2603
+ font-size: var(--shipaid-font-xs);
2604
+ display: inline-flex;
2605
+ align-items: center;
2606
+ gap: 0.8rem;
2607
+ white-space: nowrap;
2608
+ }
2609
+ .shipaid-prompt .prompt-footer .prompt-footer-badge svg {
2610
+ height:var(--shipaid-footer-badge-logo-height, 9px);
2611
+ }
2612
+ .prompt-product-details-subtitle {
2613
+ display: flex;
2614
+ }
2615
+
2616
+ .shipaid-benefits-container {
2617
+ width: 100%;
2618
+ max-height: 0;
2619
+ overflow: hidden;
2620
+ transition: max-height 0.3s ease;
2621
+ }
2622
+
2623
+ .shipaid-benefits-container.open {
2624
+ max-height: 400px;
2625
+ }
2626
+
2627
+ .shipaid-benefits {
2628
+ margin-top: 0.75rem;
2629
+ border-radius: 12px;
2630
+ display: flex;
2631
+ flex-direction: column;
2632
+ gap: 0.75rem;
2633
+ }
2634
+
2635
+ .shipaid-benefits__header {
2636
+ display: flex;
2637
+ justify-content: space-between;
2638
+ align-items: center;
2639
+ font-size: var(--shipaid-font-xs);
2640
+ font-weight: var(--shipaid-font-heavy);
2641
+ }
2642
+
2643
+ .shipaid-benefits__link {
2644
+ font-size: var(--shipaid-font-xs);
2645
+ text-decoration: underline;
2646
+ cursor: pointer;
2647
+ }
2648
+
2649
+ .shipaid-benefits ul {
2650
+ list-style: none;
2651
+ margin: 0;
2652
+ padding: 0;
2653
+ display: flex;
2654
+ flex-direction: column;
2655
+ gap: 0.8rem;
2656
+ }
2657
+
2658
+ .shipaid-benefits li {
2659
+ display: flex;
2660
+ align-items: center;
2661
+ gap: 0.5rem;
2662
+ font-size: 11px;
2663
+ line-height: 1.3;
2664
+ }
2665
+
2666
+ .shipaid-benefits li svg {
2667
+ width: 18px;
2668
+ height: 18px;
2669
+ flex-shrink: 0;
2670
+ }
2671
+ `;
2459
2672
  const CheckmarkIcon = x`
2460
2673
  <svg
2461
2674
  id="Layer_1"
@@ -3408,7 +3621,7 @@ var __decorateClass$2 = (decorators, target, key, kind) => {
3408
3621
  if (result) __defProp$2(target, key, result);
3409
3622
  return result;
3410
3623
  };
3411
- class ShipAidWidget extends s$1 {
3624
+ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
3412
3625
  constructor() {
3413
3626
  var _a, _b, _c;
3414
3627
  super(...arguments);
@@ -5982,7 +6195,9 @@ class ShipAidWidget extends s$1 {
5982
6195
  </div>
5983
6196
  `;
5984
6197
  }
5985
- }
6198
+ };
6199
+ _ShipAidWidget.styles = styles;
6200
+ let ShipAidWidget = _ShipAidWidget;
5986
6201
  __decorateClass$2([
5987
6202
  n$7({ type: String, attribute: true })
5988
6203
  ], ShipAidWidget.prototype, "env");