ui.shipaid.com 0.3.160 → 0.3.161

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,223 @@ 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 {
2507
+ max-width: fit-content;
2508
+ }
2509
+
2510
+ .shipaid-prompt p,
2511
+ .shipaid-prompt a {
2512
+ margin: 0;
2513
+ line-height: 1;
2514
+ }
2515
+ .shipaid-prompt .prompt-title {
2516
+ text-align: center;
2517
+ font-size: var(--shipaid-font-lg, 18px);
2518
+ font-weight: var(--shipaid-font-heavy);
2519
+ }
2520
+ .shipaid-prompt .prompt-product {
2521
+ display: flex;
2522
+ flex-direction: row;
2523
+ gap: 0.5rem;
2524
+ margin-top: 1rem;
2525
+ }
2526
+ .shipaid-prompt .prompt-product .prompt-product-image {
2527
+ position: relative;
2528
+ }
2529
+ .shipaid-prompt .prompt-product .prompt-product-image svg {
2530
+ height: var(--shipaid-logo-height, 35px);
2531
+ max-height: var(--shipaid-logo-max-height, 35px);
2532
+ width: var(--shipaid-logo-width, auto);
2533
+ max-width: var(--shipaid-logo-max-width, 50px);
2534
+ }
2535
+ .shipaid-prompt
2536
+ .prompt-product
2537
+ .prompt-product-details
2538
+ .prompt-product-details-title {
2539
+ text-align: left;
2540
+ font-size: var(--shipaid-font-lg);
2541
+ font-weight: var(--shipaid-font-heavy);
2542
+ }
2543
+
2544
+ .shipaid-prompt
2545
+ .prompt-product
2546
+ .prompt-product-details
2547
+ .prompt-product-details-description {
2548
+ font-size: var(--shipaid-font-xxs);
2549
+ margin-top: var(--shipaid-prompt-product-description-margin, 5px);
2550
+ }
2551
+
2552
+ .shipaid-prompt .prompt-product .prompt-product-actions {
2553
+ margin-left: auto;
2554
+ display: flex;
2555
+ flex-direction: column;
2556
+ justify-content: var(--shipaid-prompt-product-actions-content, space-between);
2557
+ text-align: right;
2558
+ min-width: 55px;
2559
+ }
2560
+ .shipaid-prompt
2561
+ .prompt-product
2562
+ .prompt-product-actions
2563
+ .prompt-product-actions-price {
2564
+ color: var(--shipaid-prompt-actions-price-color, var(--shipaid-text-muted));
2565
+ font-size: var(--shipaid-prompt-actions-price-fontSize, --shipaid-font-base);
2566
+ }
2567
+ .shipaid-prompt
2568
+ .prompt-product
2569
+ .prompt-product-actions
2570
+ .prompt-product-actions-button {
2571
+ background-color: transparent;
2572
+ border: none;
2573
+ color: var(--shipaid-prompt-actions-button-color, var(--shipaid-primary));
2574
+ text-transform: uppercase;
2575
+ font-weight: var(--shipaid-font-heavy);
2576
+ cursor: pointer;
2577
+ padding: 6px 0;
2578
+ text-align: right;
2579
+ }
2580
+ .shipaid-prompt .prompt-footer {
2581
+ margin-top: var(--shipaid-prompt-footer-topMargin, 0px);
2582
+ display: var(--shipaid-prompt-footer-display, flex);
2583
+ flex-direction: row;
2584
+ justify-content: var(--shipaid-prompt-footer-location, flex-start);
2585
+ align-items: center;
2586
+ }
2587
+ .shipaid-prompt .prompt-footer .prompt-footer-about {
2588
+ color: var(--shipaid-text);
2589
+ cursor: pointer;
2590
+ font-size: var(--shipaid-prompt-footer-button-size, 10px);
2591
+ background-color: transparent;
2592
+ cursor: pointer;
2593
+ border: 1px solid var(--shipaid-text);
2594
+ border-radius: 10px;
2595
+ margin-left: 0.5rem;
2596
+ }
2597
+ .shipaid-prompt .prompt-footer .prompt-footer-badge {
2598
+ background-color: var(
2599
+ --shipaid-prompt-badge-background-color,
2600
+ var(--shipaid-prompt-badge)
2601
+ );
2602
+ color: var(--shipaid-prompt-badge-text-color, var(--shipaid-text));
2603
+ padding: 0.2rem 1rem;
2604
+ border-radius: var(--shipaid-prompt-badge-border-radius, 30px);
2605
+ cursor: pointer;
2606
+ text-decoration: none;
2607
+ font-size: var(--shipaid-font-xs);
2608
+ display: inline-flex;
2609
+ align-items: center;
2610
+ gap: 0.8rem;
2611
+ white-space: nowrap;
2612
+ }
2613
+ .shipaid-prompt .prompt-footer .prompt-footer-badge svg {
2614
+ height:var(--shipaid-footer-badge-logo-height, 9px);
2615
+ }
2616
+ .prompt-product-details-subtitle {
2617
+ display: flex;
2618
+ }
2619
+
2620
+ .shipaid-benefits-container {
2621
+ width: 100%;
2622
+ max-height: 0;
2623
+ overflow: hidden;
2624
+ transition: max-height 0.3s ease;
2625
+ }
2626
+
2627
+ .shipaid-benefits-container.open {
2628
+ max-height: 400px;
2629
+ }
2630
+
2631
+ .shipaid-benefits {
2632
+ margin-top: 0.75rem;
2633
+ border-radius: 12px;
2634
+ display: flex;
2635
+ flex-direction: column;
2636
+ gap: 0.75rem;
2637
+ }
2638
+
2639
+ .shipaid-benefits__header {
2640
+ display: flex;
2641
+ justify-content: space-between;
2642
+ align-items: center;
2643
+ font-size: var(--shipaid-font-xs);
2644
+ font-weight: var(--shipaid-font-heavy);
2645
+ }
2646
+
2647
+ .shipaid-benefits__link {
2648
+ font-size: var(--shipaid-font-xs);
2649
+ text-decoration: underline;
2650
+ cursor: pointer;
2651
+ }
2652
+
2653
+ .shipaid-benefits ul {
2654
+ list-style: none;
2655
+ margin: 0;
2656
+ padding: 0;
2657
+ display: flex;
2658
+ flex-direction: column;
2659
+ gap: 0.8rem;
2660
+ }
2661
+
2662
+ .shipaid-benefits li {
2663
+ display: flex;
2664
+ align-items: center;
2665
+ gap: 0.5rem;
2666
+ font-size: 11px;
2667
+ line-height: 1.3;
2668
+ }
2669
+
2670
+ .shipaid-benefits li svg {
2671
+ width: 18px;
2672
+ height: 18px;
2673
+ flex-shrink: 0;
2674
+ }
2675
+ `;
2459
2676
  const CheckmarkIcon = x`
2460
2677
  <svg
2461
2678
  id="Layer_1"
@@ -3408,7 +3625,7 @@ var __decorateClass$2 = (decorators, target, key, kind) => {
3408
3625
  if (result) __defProp$2(target, key, result);
3409
3626
  return result;
3410
3627
  };
3411
- class ShipAidWidget extends s$1 {
3628
+ const _ShipAidWidget = class _ShipAidWidget extends s$1 {
3412
3629
  constructor() {
3413
3630
  var _a, _b, _c;
3414
3631
  super(...arguments);
@@ -5982,7 +6199,9 @@ class ShipAidWidget extends s$1 {
5982
6199
  </div>
5983
6200
  `;
5984
6201
  }
5985
- }
6202
+ };
6203
+ _ShipAidWidget.styles = styles;
6204
+ let ShipAidWidget = _ShipAidWidget;
5986
6205
  __decorateClass$2([
5987
6206
  n$7({ type: String, attribute: true })
5988
6207
  ], ShipAidWidget.prototype, "env");