@pelcro/react-pelcro-js 4.0.0-alpha.1 → 4.0.0-alpha.10

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/pelcro.css CHANGED
@@ -737,7 +737,7 @@ Add the correct display in Chrome and Safari.
737
737
  position: absolute;
738
738
  top: 0px;
739
739
  display: flex;
740
- max-width: 42rem;
740
+ max-width: 36rem;
741
741
  flex-direction: column;
742
742
  align-items: center;
743
743
  overflow: hidden;
@@ -759,13 +759,13 @@ Add the correct display in Chrome and Safari.
759
759
  .pelcro-root .pelcro-modal-header {
760
760
  position: relative;
761
761
  display: flex;
762
- min-height: 8rem;
762
+ min-height: 3rem;
763
763
  flex-direction: column;
764
764
  border-bottom-width: 2px;
765
765
  --tw-bg-opacity: 1;
766
766
  background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
767
- padding-left: 3rem;
768
- padding-right: 3rem;
767
+ padding-left: 1.5rem;
768
+ padding-right: 1.5rem;
769
769
  padding-top: 0.75rem;
770
770
  padding-bottom: 0.75rem;
771
771
  border-bottom-width: 1px;
@@ -821,16 +821,16 @@ Add the correct display in Chrome and Safari.
821
821
  .pelcro-root .pelcro-modal-body {
822
822
  --tw-bg-opacity: 1;
823
823
  background-color: rgba(243, 244, 246, var(--tw-bg-opacity));
824
- padding-left: 1rem;
825
- padding-right: 1rem;
826
- padding-top: 1rem;
827
- padding-bottom: 1rem;
824
+ padding-left: 0.5rem;
825
+ padding-right: 0.5rem;
826
+ padding-top: 0.5rem;
827
+ padding-bottom: 0.5rem;
828
828
  }
829
829
 
830
830
  @media (min-width: 768px) {
831
831
  .pelcro-root .pelcro-modal-body {
832
- padding-left: 4rem;
833
- padding-right: 4rem;
832
+ padding-left: 2rem;
833
+ padding-right: 2rem;
834
834
  }
835
835
  }
836
836
 
@@ -1636,6 +1636,10 @@ Add the correct display in Chrome and Safari.
1636
1636
  color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) + 10%));
1637
1637
  }
1638
1638
 
1639
+ .pelcro-root .pelcro-product {
1640
+ display: flex !important;
1641
+ }
1642
+
1639
1643
  .pelcro-root .pelcro-select-plan-radio {
1640
1644
  margin-top: 0.4rem;
1641
1645
  }
@@ -1650,13 +1654,29 @@ Add the correct display in Chrome and Safari.
1650
1654
  background-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) - 30%));
1651
1655
  }
1652
1656
 
1657
+ /* Firefox */
1658
+
1659
+ .pelcro-root .productTabs .tabs {
1660
+ padding-bottom: 5px;
1661
+ scrollbar-width: thin;
1662
+ scrollbar-color: grey;
1663
+ }
1664
+
1665
+ /* Chrome, Edge, and Safari */
1666
+
1653
1667
  .pelcro-root .productTabs .tabs::-webkit-scrollbar {
1654
- display: none;
1668
+ width: 15px;
1669
+ height: 5px;
1655
1670
  }
1656
1671
 
1657
- .pelcro-root .productTabs .tabs {
1658
- -ms-overflow-style: none;
1659
- scrollbar-width: none;
1672
+ .pelcro-root .productTabs .tabs::-webkit-scrollbar-track {
1673
+ background: lightGrey;
1674
+ border-radius: 5px;
1675
+ }
1676
+
1677
+ .pelcro-root .productTabs .tabs::-webkit-scrollbar-thumb {
1678
+ background-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
1679
+ border-radius: 14px;
1660
1680
  }
1661
1681
 
1662
1682
  .pelcro-root .productTabs .tabs li:first-child {
@@ -1693,6 +1713,136 @@ Add the correct display in Chrome and Safari.
1693
1713
 
1694
1714
  /* used by multiple input sub-components */
1695
1715
 
1716
+ /* Slider */
1717
+
1718
+ .pelcro-root .slick-slider {
1719
+ position: relative;
1720
+ display: block;
1721
+ box-sizing: border-box;
1722
+ -webkit-user-select: none;
1723
+ user-select: none;
1724
+ touch-action: pan-y;
1725
+ }
1726
+
1727
+ .pelcro-root .slick-list {
1728
+ position: relative;
1729
+ display: block;
1730
+ overflow: hidden;
1731
+ padding: 0;
1732
+ margin: 0 -10px;
1733
+ }
1734
+
1735
+ .pelcro-root .slick-list:focus {
1736
+ outline: none;
1737
+ }
1738
+
1739
+ .pelcro-root .slick-list.dragging {
1740
+ cursor: pointer;
1741
+ }
1742
+
1743
+ .pelcro-root .slick-slider .slick-track,
1744
+ .pelcro-root .slick-slider .slick-list {
1745
+ transform: translate3d(0, 0, 0);
1746
+ }
1747
+
1748
+ .pelcro-root .slick-track {
1749
+ position: relative;
1750
+ top: 0;
1751
+ left: 0;
1752
+ display: flex;
1753
+ align-items: stretch;
1754
+ }
1755
+
1756
+ .pelcro-root .slick-track:before,
1757
+ .pelcro-root .slick-track:after {
1758
+ display: table;
1759
+ content: "";
1760
+ }
1761
+
1762
+ .pelcro-root .slick-track:after {
1763
+ clear: both;
1764
+ }
1765
+
1766
+ .pelcro-root .slick-loading .slick-track {
1767
+ visibility: hidden;
1768
+ }
1769
+
1770
+ .pelcro-root .slick-slide {
1771
+ display: flex;
1772
+ align-self: stretch;
1773
+ height: unset;
1774
+ margin: 0 10px;
1775
+ }
1776
+
1777
+ .pelcro-root .slick-slide > div {
1778
+ display: flex;
1779
+ align-self: stretch;
1780
+ width: 100%;
1781
+ height: 100%;
1782
+ }
1783
+
1784
+ .pelcro-root .slick-slide img {
1785
+ display: block;
1786
+ }
1787
+
1788
+ .pelcro-root .slick-slide.slick-loading img {
1789
+ display: none;
1790
+ }
1791
+
1792
+ .pelcro-root .slick-slide.dragging img {
1793
+ pointer-events: none;
1794
+ }
1795
+
1796
+ .pelcro-root .slick-initialized .slick-slide {
1797
+ display: block;
1798
+ }
1799
+
1800
+ .pelcro-root .slick-loading .slick-slide {
1801
+ visibility: hidden;
1802
+ }
1803
+
1804
+ .pelcro-root .slick-vertical .slick-slide {
1805
+ display: block;
1806
+ height: auto;
1807
+ border: 1px solid transparent;
1808
+ }
1809
+
1810
+ .pelcro-root .slick-arrow.slick-hidden {
1811
+ display: none;
1812
+ }
1813
+
1814
+ .pelcro-root .slick-disabled {
1815
+ opacity: 0.5;
1816
+ cursor: not-allowed;
1817
+ }
1818
+
1819
+ .pelcro-root .slick-dots {
1820
+ margin-top: 20px;
1821
+ display: flex !important;
1822
+ align-items: center;
1823
+ justify-content: center;
1824
+ }
1825
+
1826
+ .pelcro-root .slick-dots li {
1827
+ padding: 2px;
1828
+ border: solid 1px transparent;
1829
+ border-radius: 9999999px;
1830
+ width: 20px;
1831
+ height: 20px;
1832
+ display: flex;
1833
+ align-items: center;
1834
+ justify-content: center;
1835
+ line-height: 1;
1836
+ }
1837
+
1838
+ .pelcro-root .slick-dots li.slick-active {
1839
+ border-color: grey;
1840
+ }
1841
+
1842
+ .pelcro-root .slick-arrow {
1843
+ outline: none !important;
1844
+ }
1845
+
1696
1846
  /*
1697
1847
  styling is copied from react-easy-crop/react-easy-crop.css
1698
1848
  in order to scope selectors under pelcro-root
@@ -1845,6 +1995,10 @@ in order to scope selectors under pelcro-root
1845
1995
  right: 2.5rem;
1846
1996
  }
1847
1997
 
1998
+ .pelcro-root .plc--right-16 {
1999
+ right: -4rem;
2000
+ }
2001
+
1848
2002
  .pelcro-root .plc-bottom-0 {
1849
2003
  bottom: 0px;
1850
2004
  }
@@ -1861,6 +2015,10 @@ in order to scope selectors under pelcro-root
1861
2015
  left: 1.25rem;
1862
2016
  }
1863
2017
 
2018
+ .pelcro-root .plc--left-16 {
2019
+ left: -4rem;
2020
+ }
2021
+
1864
2022
  .pelcro-root .plc-z-max {
1865
2023
  z-index: 999999;
1866
2024
  }
@@ -2043,6 +2201,10 @@ in order to scope selectors under pelcro-root
2043
2201
  display: none;
2044
2202
  }
2045
2203
 
2204
+ .pelcro-root .plc-h-3 {
2205
+ height: 0.75rem;
2206
+ }
2207
+
2046
2208
  .pelcro-root .plc-h-4 {
2047
2209
  height: 1rem;
2048
2210
  }
@@ -2071,6 +2233,10 @@ in order to scope selectors under pelcro-root
2071
2233
  height: 2.5rem;
2072
2234
  }
2073
2235
 
2236
+ .pelcro-root .plc-h-11 {
2237
+ height: 2.75rem;
2238
+ }
2239
+
2074
2240
  .pelcro-root .plc-h-12 {
2075
2241
  height: 3rem;
2076
2242
  }
@@ -2155,6 +2321,10 @@ in order to scope selectors under pelcro-root
2155
2321
  width: 2.5rem;
2156
2322
  }
2157
2323
 
2324
+ .pelcro-root .plc-w-11 {
2325
+ width: 2.75rem;
2326
+ }
2327
+
2158
2328
  .pelcro-root .plc-w-12 {
2159
2329
  width: 3rem;
2160
2330
  }
@@ -2243,8 +2413,8 @@ in order to scope selectors under pelcro-root
2243
2413
  max-width: 80%;
2244
2414
  }
2245
2415
 
2246
- .pelcro-root .plc-max-w-90\% {
2247
- max-width: 90%;
2416
+ .pelcro-root .plc-max-w-full {
2417
+ max-width: 100%;
2248
2418
  }
2249
2419
 
2250
2420
  .pelcro-root .plc-flex-1 {
@@ -2612,6 +2782,10 @@ in order to scope selectors under pelcro-root
2612
2782
  border-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) - 30%));
2613
2783
  }
2614
2784
 
2785
+ .pelcro-root .plc-border-primary {
2786
+ border-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
2787
+ }
2788
+
2615
2789
  .pelcro-root .plc-border-white {
2616
2790
  --tw-border-opacity: 1;
2617
2791
  border-color: rgba(255, 255, 255, var(--tw-border-opacity));
@@ -2661,6 +2835,10 @@ in order to scope selectors under pelcro-root
2661
2835
  background-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) - 30%));
2662
2836
  }
2663
2837
 
2838
+ .pelcro-root .plc-bg-primary {
2839
+ background-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
2840
+ }
2841
+
2664
2842
  .pelcro-root .plc-bg-white {
2665
2843
  --tw-bg-opacity: 1;
2666
2844
  background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
@@ -2823,10 +3001,6 @@ in order to scope selectors under pelcro-root
2823
3001
  padding: 1.5rem;
2824
3002
  }
2825
3003
 
2826
- .pelcro-root .plc-p-8 {
2827
- padding: 2rem;
2828
- }
2829
-
2830
3004
  .pelcro-root .plc-px-1 {
2831
3005
  padding-left: 0.25rem;
2832
3006
  padding-right: 0.25rem;
@@ -2857,9 +3031,9 @@ in order to scope selectors under pelcro-root
2857
3031
  padding-right: 1.5rem;
2858
3032
  }
2859
3033
 
2860
- .pelcro-root .plc-px-8 {
2861
- padding-left: 2rem;
2862
- padding-right: 2rem;
3034
+ .pelcro-root .plc-px-16 {
3035
+ padding-left: 4rem;
3036
+ padding-right: 4rem;
2863
3037
  }
2864
3038
 
2865
3039
  .pelcro-root .plc-py-1 {
@@ -3129,6 +3303,10 @@ in order to scope selectors under pelcro-root
3129
3303
  color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
3130
3304
  }
3131
3305
 
3306
+ .pelcro-root .hover\:plc-text-primary:hover {
3307
+ color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
3308
+ }
3309
+
3132
3310
  .pelcro-root .hover\:plc-text-black:hover {
3133
3311
  --tw-text-opacity: 1;
3134
3312
  color: rgba(0, 0, 0, var(--tw-text-opacity));
@@ -3162,6 +3340,10 @@ in order to scope selectors under pelcro-root
3162
3340
  text-decoration: none;
3163
3341
  }
3164
3342
 
3343
+ .pelcro-root .hover\:plc-opacity-30:hover {
3344
+ opacity: 0.3;
3345
+ }
3346
+
3165
3347
  *, ::before, ::after {
3166
3348
  --tw-shadow: 0 0 #0000;
3167
3349
  }
@@ -3287,6 +3469,12 @@ in order to scope selectors under pelcro-root
3287
3469
  --tw-ring-color: rgba(59, 130, 246, var(--tw-ring-opacity));
3288
3470
  }
3289
3471
 
3472
+ .pelcro-root .plc-transition-all {
3473
+ transition-property: all;
3474
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3475
+ transition-duration: 150ms;
3476
+ }
3477
+
3290
3478
  .pelcro-root .plc-transition {
3291
3479
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
3292
3480
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -3356,6 +3544,10 @@ in order to scope selectors under pelcro-root
3356
3544
  max-width: 28rem;
3357
3545
  }
3358
3546
 
3547
+ .pelcro-root .sm\:plc-max-w-90\% {
3548
+ max-width: 90%;
3549
+ }
3550
+
3359
3551
  .pelcro-root .sm\:plc-flex-row {
3360
3552
  flex-direction: row;
3361
3553
  }
@@ -3387,6 +3579,9 @@ in order to scope selectors under pelcro-root
3387
3579
  }
3388
3580
 
3389
3581
  @media (min-width: 768px) {
3582
+ .pelcro-root .md\:plc-max-w-70\% {
3583
+ max-width: 70%;
3584
+ }
3390
3585
  }
3391
3586
 
3392
3587
  @media (min-width: 1024px) {
@@ -3400,235 +3595,20 @@ in order to scope selectors under pelcro-root
3400
3595
  }
3401
3596
 
3402
3597
  @media (min-width: 1280px) {
3403
- }
3404
-
3405
- @media (min-width: 1536px) {
3406
- }
3407
-
3408
- /* purgecss start ignore */
3409
-
3410
- .alice-carousel .animated {
3411
- animation-fill-mode: both;
3412
- }
3413
-
3414
- .alice-carousel .animated-out {
3415
- z-index: 1;
3416
- }
3417
-
3418
- .alice-carousel .fadeOut {
3419
- animation-name: fadeOut;
3420
- }
3421
-
3422
- @keyframes fadeOut {
3423
- 0% {
3424
- opacity: 1;
3598
+ .pelcro-root .xl\:plc-px-0 {
3599
+ padding-left: 0px;
3600
+ padding-right: 0px;
3425
3601
  }
3426
3602
 
3427
- 100% {
3428
- opacity: 0;
3429
- visibility: hidden;
3603
+ .pelcro-root .xl\:plc-px-16 {
3604
+ padding-left: 4rem;
3605
+ padding-right: 4rem;
3430
3606
  }
3431
3607
  }
3432
3608
 
3433
- .alice-carousel {
3434
- position: relative;
3435
- width: 100%;
3436
- margin: auto;
3437
- direction: ltr;
3438
- }
3439
-
3440
- .alice-carousel__wrapper {
3441
- position: relative;
3442
- overflow-x: hidden;
3443
- overflow-y: hidden;
3444
- box-sizing: border-box;
3445
- width: 100%;
3446
- height: auto;
3447
- }
3448
-
3449
- .alice-carousel__stage {
3450
- position: relative;
3451
- box-sizing: border-box;
3452
- width: 100%;
3453
- height: 100%;
3454
- margin: 0;
3455
- padding: 0;
3456
- white-space: nowrap;
3457
- transform-style: flat;
3458
- -webkit-transform-style: flat;
3459
- backface-visibility: hidden;
3460
- -webkit-backface-visibility: hidden;
3461
- }
3462
-
3463
- .alice-carousel__stage-item {
3464
- position: relative;
3465
- display: inline-block;
3466
- padding: 0;
3467
- margin: 0;
3468
- box-sizing: border-box;
3469
- width: 100%;
3470
- height: 100%;
3471
- vertical-align: top;
3472
- white-space: normal;
3473
- line-height: 0;
3474
- }
3475
-
3476
- .alice-carousel__stage-item * {
3477
- line-height: initial;
3478
- }
3479
-
3480
- .alice-carousel__stage-item.__hidden {
3481
- opacity: 0;
3482
- overflow: hidden;
3483
- }
3484
-
3485
- .alice-carousel__prev-btn,
3486
- .alice-carousel__next-btn {
3487
- display: inline-block;
3488
- box-sizing: border-box;
3489
- width: 50%;
3490
- padding: 10px 5px;
3491
- }
3492
-
3493
- .alice-carousel__prev-btn [data-area]::after,
3494
- .alice-carousel__next-btn [data-area]::after {
3495
- position: relative;
3496
- content: attr(data-area);
3497
- text-transform: capitalize;
3498
- }
3499
-
3500
- .alice-carousel__prev-btn {
3501
- text-align: right;
3502
- }
3503
-
3504
- .alice-carousel__prev-btn-item,
3505
- .alice-carousel__next-btn-item {
3506
- display: inline-block;
3507
- cursor: pointer;
3508
- padding: 5px;
3509
- margin: 0;
3510
- color: #465798;
3511
- }
3512
-
3513
- .alice-carousel__prev-btn-item:hover,
3514
- .alice-carousel__next-btn-item:hover {
3515
- color: darkred;
3516
- }
3517
-
3518
- .alice-carousel__prev-btn-item.__inactive,
3519
- .alice-carousel__next-btn-item.__inactive {
3520
- opacity: 0.4;
3521
- pointer-events: none;
3522
- }
3523
-
3524
- .alice-carousel__play-btn {
3525
- position: absolute;
3526
- top: 30px;
3527
- left: 20px;
3528
- display: inline-block;
3529
- }
3530
-
3531
- .alice-carousel__play-btn:hover {
3532
- cursor: pointer;
3533
- }
3534
-
3535
- .alice-carousel__play-btn-wrapper {
3536
- position: relative;
3537
- width: 32px;
3538
- height: 32px;
3539
- padding: 10px;
3540
- border-radius: 50%;
3541
- background-color: #fff;
3542
- }
3543
-
3544
- .alice-carousel__play-btn-item {
3545
- position: absolute;
3546
- width: 32px;
3547
- height: 32px;
3548
- cursor: pointer;
3549
- border: 0;
3550
- outline: none;
3551
- background: transparent;
3552
- }
3553
-
3554
- .alice-carousel__play-btn-item::before, .alice-carousel__play-btn-item::after {
3555
- position: absolute;
3556
- pointer-events: none;
3557
- display: block;
3558
- width: 0;
3559
- height: 0;
3560
- content: "";
3561
- transition: all 0.4s linear;
3562
- border-width: 8px 0 8px 15px;
3563
- border-style: solid;
3564
- border-color: transparent;
3565
- border-left-color: #465798;
3566
- }
3567
-
3568
- .alice-carousel__play-btn-item::before {
3569
- left: 5px;
3570
- height: 14px;
3571
- }
3572
-
3573
- .alice-carousel__play-btn-item::after {
3574
- top: 7px;
3575
- left: 18px;
3576
- }
3577
-
3578
- .alice-carousel__play-btn-item.__pause::before, .alice-carousel__play-btn-item.__pause::after {
3579
- height: 30px;
3580
- border-width: 0 0 0 10px;
3581
- }
3582
-
3583
- .alice-carousel__play-btn-item.__pause::after {
3584
- top: 0;
3585
- left: 18px;
3586
- }
3587
-
3588
- .alice-carousel__dots {
3589
- margin: 30px 3px 5px;
3590
- padding: 0;
3591
- list-style: none;
3592
- text-align: center;
3593
- }
3594
-
3595
- .alice-carousel__dots > li {
3596
- display: inline-block;
3597
- }
3598
-
3599
- .alice-carousel__dots-item:not(.__custom) {
3600
- width: 8px;
3601
- height: 8px;
3602
- cursor: pointer;
3603
- border-radius: 50%;
3604
- background-color: #e0e4fb;
3605
- }
3606
-
3607
- .alice-carousel__dots-item:not(.__custom):not(:last-child) {
3608
- margin-right: 20px;
3609
- }
3610
-
3611
- .alice-carousel__dots-item:not(.__custom):hover, .alice-carousel__dots-item:not(.__custom).__active {
3612
- background-color: #6e7ebc;
3613
- }
3614
-
3615
- .alice-carousel__slide-info {
3616
- position: absolute;
3617
- top: 20px;
3618
- right: 20px;
3619
- display: inline-block;
3620
- padding: 5px 10px;
3621
- color: #465798;
3622
- border-radius: 5px;
3623
- background-color: rgba(224, 228, 251, 0.6);
3624
- }
3625
-
3626
- .alice-carousel__slide-info-item {
3627
- vertical-align: middle;
3628
- line-height: 0;
3609
+ @media (min-width: 1536px) {
3629
3610
  }
3630
3611
 
3631
- /* purgecss end ignore */
3632
3612
  /* purgecss start ignore */
3633
3613
 
3634
3614
  .toggle-switch {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pelcro/react-pelcro-js",
3
3
  "description": "Pelcro's React UI Elements",
4
- "version": "4.0.0-alpha.1",
4
+ "version": "4.0.0-alpha.10",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",
@@ -80,6 +80,7 @@
80
80
  "react": "^16.6.1",
81
81
  "react-dom": "^16.6.1",
82
82
  "react-ga": "^2.7.0",
83
+ "react-ga4": "^1.4.1",
83
84
  "react-refresh": "^0.9.0",
84
85
  "react-test-renderer": "^17.0.2",
85
86
  "request": "^2.88.2",
@@ -103,13 +104,13 @@
103
104
  "@headlessui/react": "^0.3.0",
104
105
  "@stripe/stripe-js": "^1.21.1",
105
106
  "i18next": "^19.1.0",
106
- "react-alice-carousel": "^2.6.4",
107
107
  "react-easy-crop": "^3.3.2",
108
108
  "react-facebook-login": "^4.1.1",
109
109
  "react-google-login": "^5.2.2",
110
110
  "react-hot-toast": "^2.0.0",
111
111
  "react-i18next": "^11.3.3",
112
112
  "react-qr-code": "^2.0.7",
113
+ "react-slick": "^0.29.0",
113
114
  "react-stripe-elements": "^6.1.2",
114
115
  "use-reducer-with-side-effects": "^2.2.0",
115
116
  "zustand": "^3.4.2"