@pelcro/react-pelcro-js 4.0.0-alpha.7 → 4.0.0-alpha.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/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,113 +1713,7 @@ Add the correct display in Chrome and Safari.
1693
1713
 
1694
1714
  /* used by multiple input sub-components */
1695
1715
 
1696
- .pelcro-root .alice-carousel {
1697
- padding-left: 5rem;
1698
- padding-right: 5rem;
1699
- }
1700
-
1701
- .pelcro-root .alice-carousel__stage {
1702
- display: flex;
1703
- }
1704
-
1705
- .pelcro-root .alice-carousel__stage-item {
1706
- flex: 1 0 auto;
1707
- height: auto;
1708
- }
1709
-
1710
- .pelcro-root .alice-carousel__next-btn,
1711
- .pelcro-root .alice-carousel__prev-btn {
1712
- position: absolute;
1713
- top: 50%;
1714
- transform: translateY(-50%);
1715
- width: auto;
1716
- }
1717
-
1718
- .pelcro-root .alice-carousel__next-btn {
1719
- right: 0;
1720
- }
1721
-
1722
- .pelcro-root .alice-carousel__prev-btn {
1723
- left: 0;
1724
- }
1725
-
1726
- .pelcro-root .alice-carousel__next-btn-item span,
1727
- .pelcro-root .alice-carousel__prev-btn-item span {
1728
- width: 3.5rem;
1729
- height: 3.5rem;
1730
- border-radius: 999999px;
1731
- display: inline-flex;
1732
- align-items: center;
1733
- justify-content: center;
1734
- background-color: black;
1735
- color: white;
1736
- }
1737
-
1738
- .pelcro-root .alice-carousel__next-btn-item span {
1739
- padding-left: 5px;
1740
- }
1741
-
1742
- .pelcro-root .alice-carousel__prev-btn-item span {
1743
- padding-right: 5px;
1744
- }
1745
-
1746
- .pelcro-root .alice-carousel__next-btn-item [data-area]::after,
1747
- .pelcro-root .alice-carousel__prev-btn-item [data-area]::after {
1748
- height: 28px;
1749
- width: 28px;
1750
- line-height: 1;
1751
- display: inline-flex;
1752
- align-items: center;
1753
- justify-content: center;
1754
- }
1755
-
1756
- .pelcro-root .alice-carousel__stage-item {
1757
- padding-left: 1rem;
1758
- padding-right: 1rem;
1759
- }
1760
-
1761
- .pelcro-root .alice-carousel__dots {
1762
- margin-top: 2rem;
1763
- display: flex;
1764
- align-items: center;
1765
- justify-content: center;
1766
- }
1767
-
1768
- .pelcro-root .alice-carousel__dots-item {
1769
- width: 0.75rem;
1770
- height: 0.75rem;
1771
- background-color: #d1d5db;
1772
- }
1773
-
1774
- .pelcro-root
1775
- .alice-carousel__dots-item:not(.__custom):not(:last-child) {
1776
- margin-right: 0.5rem;
1777
- }
1778
-
1779
- .pelcro-root .alice-carousel__dots-item:not(.__custom):hover,
1780
- .alice-carousel__dots-item:not(.__custom).__active {
1781
- background-color: black;
1782
- }
1783
-
1784
- .pelcro-root .alice-carousel__next-btn-item [data-area]::after {
1785
- content: url("/assets/arrow-thin-right.svg");
1786
- }
1787
-
1788
- .pelcro-root .alice-carousel__prev-btn-item [data-area]::after {
1789
- content: url("/assets/arrow-thin-left.svg");
1790
- }
1791
-
1792
- @media (max-width: 1024px) {
1793
- .pelcro-root .alice-carousel__prev-btn,
1794
- .pelcro-root .alice-carousel__next-btn {
1795
- display: none;
1796
- }
1797
-
1798
- .pelcro-root .alice-carousel {
1799
- padding-right: 0;
1800
- padding-left: 0;
1801
- }
1802
- }
1716
+ /* Slider */
1803
1717
 
1804
1718
  /*
1805
1719
  styling is copied from react-easy-crop/react-easy-crop.css
@@ -1953,6 +1867,10 @@ in order to scope selectors under pelcro-root
1953
1867
  right: 2.5rem;
1954
1868
  }
1955
1869
 
1870
+ .pelcro-root .plc--right-16 {
1871
+ right: -4rem;
1872
+ }
1873
+
1956
1874
  .pelcro-root .plc-bottom-0 {
1957
1875
  bottom: 0px;
1958
1876
  }
@@ -1969,6 +1887,10 @@ in order to scope selectors under pelcro-root
1969
1887
  left: 1.25rem;
1970
1888
  }
1971
1889
 
1890
+ .pelcro-root .plc--left-16 {
1891
+ left: -4rem;
1892
+ }
1893
+
1972
1894
  .pelcro-root .plc-z-max {
1973
1895
  z-index: 999999;
1974
1896
  }
@@ -2151,6 +2073,10 @@ in order to scope selectors under pelcro-root
2151
2073
  display: none;
2152
2074
  }
2153
2075
 
2076
+ .pelcro-root .plc-h-3 {
2077
+ height: 0.75rem;
2078
+ }
2079
+
2154
2080
  .pelcro-root .plc-h-4 {
2155
2081
  height: 1rem;
2156
2082
  }
@@ -2179,6 +2105,10 @@ in order to scope selectors under pelcro-root
2179
2105
  height: 2.5rem;
2180
2106
  }
2181
2107
 
2108
+ .pelcro-root .plc-h-11 {
2109
+ height: 2.75rem;
2110
+ }
2111
+
2182
2112
  .pelcro-root .plc-h-12 {
2183
2113
  height: 3rem;
2184
2114
  }
@@ -2263,6 +2193,10 @@ in order to scope selectors under pelcro-root
2263
2193
  width: 2.5rem;
2264
2194
  }
2265
2195
 
2196
+ .pelcro-root .plc-w-11 {
2197
+ width: 2.75rem;
2198
+ }
2199
+
2266
2200
  .pelcro-root .plc-w-12 {
2267
2201
  width: 3rem;
2268
2202
  }
@@ -2347,12 +2281,12 @@ in order to scope selectors under pelcro-root
2347
2281
  max-width: 50%;
2348
2282
  }
2349
2283
 
2350
- .pelcro-root .plc-max-w-80\% {
2351
- max-width: 80%;
2284
+ .pelcro-root .plc-max-w-70\% {
2285
+ max-width: 70%;
2352
2286
  }
2353
2287
 
2354
- .pelcro-root .plc-max-w-90\% {
2355
- max-width: 90%;
2288
+ .pelcro-root .plc-max-w-80\% {
2289
+ max-width: 80%;
2356
2290
  }
2357
2291
 
2358
2292
  .pelcro-root .plc-flex-1 {
@@ -2720,6 +2654,10 @@ in order to scope selectors under pelcro-root
2720
2654
  border-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) - 30%));
2721
2655
  }
2722
2656
 
2657
+ .pelcro-root .plc-border-primary {
2658
+ border-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
2659
+ }
2660
+
2723
2661
  .pelcro-root .plc-border-white {
2724
2662
  --tw-border-opacity: 1;
2725
2663
  border-color: rgba(255, 255, 255, var(--tw-border-opacity));
@@ -2769,6 +2707,10 @@ in order to scope selectors under pelcro-root
2769
2707
  background-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) - 30%));
2770
2708
  }
2771
2709
 
2710
+ .pelcro-root .plc-bg-primary {
2711
+ background-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
2712
+ }
2713
+
2772
2714
  .pelcro-root .plc-bg-white {
2773
2715
  --tw-bg-opacity: 1;
2774
2716
  background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
@@ -2970,6 +2912,11 @@ in order to scope selectors under pelcro-root
2970
2912
  padding-right: 2rem;
2971
2913
  }
2972
2914
 
2915
+ .pelcro-root .plc-px-16 {
2916
+ padding-left: 4rem;
2917
+ padding-right: 4rem;
2918
+ }
2919
+
2973
2920
  .pelcro-root .plc-py-1 {
2974
2921
  padding-top: 0.25rem;
2975
2922
  padding-bottom: 0.25rem;
@@ -3237,6 +3184,10 @@ in order to scope selectors under pelcro-root
3237
3184
  color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
3238
3185
  }
3239
3186
 
3187
+ .pelcro-root .hover\:plc-text-primary:hover {
3188
+ color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), var(--plc-primary-lightness));
3189
+ }
3190
+
3240
3191
  .pelcro-root .hover\:plc-text-black:hover {
3241
3192
  --tw-text-opacity: 1;
3242
3193
  color: rgba(0, 0, 0, var(--tw-text-opacity));
@@ -3270,6 +3221,10 @@ in order to scope selectors under pelcro-root
3270
3221
  text-decoration: none;
3271
3222
  }
3272
3223
 
3224
+ .pelcro-root .hover\:plc-opacity-30:hover {
3225
+ opacity: 0.3;
3226
+ }
3227
+
3273
3228
  *, ::before, ::after {
3274
3229
  --tw-shadow: 0 0 #0000;
3275
3230
  }
@@ -3395,6 +3350,12 @@ in order to scope selectors under pelcro-root
3395
3350
  --tw-ring-color: rgba(59, 130, 246, var(--tw-ring-opacity));
3396
3351
  }
3397
3352
 
3353
+ .pelcro-root .plc-transition-all {
3354
+ transition-property: all;
3355
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3356
+ transition-duration: 150ms;
3357
+ }
3358
+
3398
3359
  .pelcro-root .plc-transition {
3399
3360
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
3400
3361
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
@@ -3515,230 +3476,6 @@ in order to scope selectors under pelcro-root
3515
3476
 
3516
3477
  /* purgecss start ignore */
3517
3478
 
3518
- .alice-carousel .animated {
3519
- animation-fill-mode: both;
3520
- }
3521
-
3522
- .alice-carousel .animated-out {
3523
- z-index: 1;
3524
- }
3525
-
3526
- .alice-carousel .fadeOut {
3527
- animation-name: fadeOut;
3528
- }
3529
-
3530
- @keyframes fadeOut {
3531
- 0% {
3532
- opacity: 1;
3533
- }
3534
-
3535
- 100% {
3536
- opacity: 0;
3537
- visibility: hidden;
3538
- }
3539
- }
3540
-
3541
- .alice-carousel {
3542
- position: relative;
3543
- width: 100%;
3544
- margin: auto;
3545
- direction: ltr;
3546
- }
3547
-
3548
- .alice-carousel__wrapper {
3549
- position: relative;
3550
- overflow-x: hidden;
3551
- overflow-y: hidden;
3552
- box-sizing: border-box;
3553
- width: 100%;
3554
- height: auto;
3555
- }
3556
-
3557
- .alice-carousel__stage {
3558
- position: relative;
3559
- box-sizing: border-box;
3560
- width: 100%;
3561
- height: 100%;
3562
- margin: 0;
3563
- padding: 0;
3564
- white-space: nowrap;
3565
- transform-style: flat;
3566
- -webkit-transform-style: flat;
3567
- backface-visibility: hidden;
3568
- -webkit-backface-visibility: hidden;
3569
- }
3570
-
3571
- .alice-carousel__stage-item {
3572
- position: relative;
3573
- display: inline-block;
3574
- padding: 0;
3575
- margin: 0;
3576
- box-sizing: border-box;
3577
- width: 100%;
3578
- height: 100%;
3579
- vertical-align: top;
3580
- white-space: normal;
3581
- line-height: 0;
3582
- }
3583
-
3584
- .alice-carousel__stage-item * {
3585
- line-height: initial;
3586
- }
3587
-
3588
- .alice-carousel__stage-item.__hidden {
3589
- opacity: 0;
3590
- overflow: hidden;
3591
- }
3592
-
3593
- .alice-carousel__prev-btn,
3594
- .alice-carousel__next-btn {
3595
- display: inline-block;
3596
- box-sizing: border-box;
3597
- width: 50%;
3598
- padding: 10px 5px;
3599
- }
3600
-
3601
- .alice-carousel__prev-btn [data-area]::after,
3602
- .alice-carousel__next-btn [data-area]::after {
3603
- position: relative;
3604
- content: attr(data-area);
3605
- text-transform: capitalize;
3606
- }
3607
-
3608
- .alice-carousel__prev-btn {
3609
- text-align: right;
3610
- }
3611
-
3612
- .alice-carousel__prev-btn-item,
3613
- .alice-carousel__next-btn-item {
3614
- display: inline-block;
3615
- cursor: pointer;
3616
- padding: 5px;
3617
- margin: 0;
3618
- color: #465798;
3619
- }
3620
-
3621
- .alice-carousel__prev-btn-item:hover,
3622
- .alice-carousel__next-btn-item:hover {
3623
- color: darkred;
3624
- }
3625
-
3626
- .alice-carousel__prev-btn-item.__inactive,
3627
- .alice-carousel__next-btn-item.__inactive {
3628
- opacity: 0.4;
3629
- pointer-events: none;
3630
- }
3631
-
3632
- .alice-carousel__play-btn {
3633
- position: absolute;
3634
- top: 30px;
3635
- left: 20px;
3636
- display: inline-block;
3637
- }
3638
-
3639
- .alice-carousel__play-btn:hover {
3640
- cursor: pointer;
3641
- }
3642
-
3643
- .alice-carousel__play-btn-wrapper {
3644
- position: relative;
3645
- width: 32px;
3646
- height: 32px;
3647
- padding: 10px;
3648
- border-radius: 50%;
3649
- background-color: #fff;
3650
- }
3651
-
3652
- .alice-carousel__play-btn-item {
3653
- position: absolute;
3654
- width: 32px;
3655
- height: 32px;
3656
- cursor: pointer;
3657
- border: 0;
3658
- outline: none;
3659
- background: transparent;
3660
- }
3661
-
3662
- .alice-carousel__play-btn-item::before, .alice-carousel__play-btn-item::after {
3663
- position: absolute;
3664
- pointer-events: none;
3665
- display: block;
3666
- width: 0;
3667
- height: 0;
3668
- content: "";
3669
- transition: all 0.4s linear;
3670
- border-width: 8px 0 8px 15px;
3671
- border-style: solid;
3672
- border-color: transparent;
3673
- border-left-color: #465798;
3674
- }
3675
-
3676
- .alice-carousel__play-btn-item::before {
3677
- left: 5px;
3678
- height: 14px;
3679
- }
3680
-
3681
- .alice-carousel__play-btn-item::after {
3682
- top: 7px;
3683
- left: 18px;
3684
- }
3685
-
3686
- .alice-carousel__play-btn-item.__pause::before, .alice-carousel__play-btn-item.__pause::after {
3687
- height: 30px;
3688
- border-width: 0 0 0 10px;
3689
- }
3690
-
3691
- .alice-carousel__play-btn-item.__pause::after {
3692
- top: 0;
3693
- left: 18px;
3694
- }
3695
-
3696
- .alice-carousel__dots {
3697
- margin: 30px 3px 5px;
3698
- padding: 0;
3699
- list-style: none;
3700
- text-align: center;
3701
- }
3702
-
3703
- .alice-carousel__dots > li {
3704
- display: inline-block;
3705
- }
3706
-
3707
- .alice-carousel__dots-item:not(.__custom) {
3708
- width: 8px;
3709
- height: 8px;
3710
- cursor: pointer;
3711
- border-radius: 50%;
3712
- background-color: #e0e4fb;
3713
- }
3714
-
3715
- .alice-carousel__dots-item:not(.__custom):not(:last-child) {
3716
- margin-right: 20px;
3717
- }
3718
-
3719
- .alice-carousel__dots-item:not(.__custom):hover, .alice-carousel__dots-item:not(.__custom).__active {
3720
- background-color: #6e7ebc;
3721
- }
3722
-
3723
- .alice-carousel__slide-info {
3724
- position: absolute;
3725
- top: 20px;
3726
- right: 20px;
3727
- display: inline-block;
3728
- padding: 5px 10px;
3729
- color: #465798;
3730
- border-radius: 5px;
3731
- background-color: rgba(224, 228, 251, 0.6);
3732
- }
3733
-
3734
- .alice-carousel__slide-info-item {
3735
- vertical-align: middle;
3736
- line-height: 0;
3737
- }
3738
-
3739
- /* purgecss end ignore */
3740
- /* purgecss start ignore */
3741
-
3742
3479
  .toggle-switch {
3743
3480
  position: relative;
3744
3481
  display: inline-block;
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.7",
4
+ "version": "4.0.0-alpha.8",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",
@@ -104,13 +104,13 @@
104
104
  "@headlessui/react": "^0.3.0",
105
105
  "@stripe/stripe-js": "^1.21.1",
106
106
  "i18next": "^19.1.0",
107
- "react-alice-carousel": "^2.6.4",
108
107
  "react-easy-crop": "^3.3.2",
109
108
  "react-facebook-login": "^4.1.1",
110
109
  "react-google-login": "^5.2.2",
111
110
  "react-hot-toast": "^2.0.0",
112
111
  "react-i18next": "^11.3.3",
113
112
  "react-qr-code": "^2.0.7",
113
+ "react-slick": "^0.29.0",
114
114
  "react-stripe-elements": "^6.1.2",
115
115
  "use-reducer-with-side-effects": "^2.2.0",
116
116
  "zustand": "^3.4.2"