@pelcro/react-pelcro-js 4.0.0-alpha.55 → 4.0.0-alpha.57

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
@@ -756,7 +756,6 @@ Add the correct display in Chrome and Safari.
756
756
  transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
757
757
  flex-direction: column;
758
758
  align-items: center;
759
- overflow: hidden;
760
759
  border-radius: 0.5rem;
761
760
  --tw-bg-opacity: 1;
762
761
  background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
@@ -769,6 +768,17 @@ Add the correct display in Chrome and Safari.
769
768
  }
770
769
  }
771
770
 
771
+ .pelcro-root .pelcro-modal{
772
+ max-height: 100vh;
773
+ overflow-y: scroll;
774
+ scrollbar-width: none;
775
+ -ms-overflow-style: none;
776
+ }
777
+
778
+ .pelcro-root .pelcro-modal::-webkit-scrollbar {
779
+ display: none;
780
+ }
781
+
772
782
  .pelcro-root .pelcro-modal-content {
773
783
  width: 100%;
774
784
  }
@@ -988,59 +998,34 @@ Add the correct display in Chrome and Safari.
988
998
  display: none;
989
999
  }
990
1000
 
991
- .pelcro-root .pelcro-input-card-number-label, .pelcro-root .pelcro-input-cvc-number-label, .pelcro-root .pelcro-input-expiry-date-label{
992
- position: absolute;
993
- top: -0.5rem;
994
- left: 0.5rem;
995
- display: inline-flex;
996
- --tw-bg-opacity: 1;
997
- background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
998
- padding-left: 0.25rem;
999
- padding-right: 0.25rem;
1000
- font-size: 0.75rem;
1001
- line-height: 1rem;
1002
- font-weight: 500;
1003
- --tw-text-opacity: 1;
1004
- color: rgba(156, 163, 175, var(--tw-text-opacity));
1005
- transition-property: all;
1006
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1007
- transition-duration: 150ms;
1008
- }
1001
+ /* .pelcro-root .pelcro-input-card-number-label,
1002
+ .pelcro-root .pelcro-input-cvc-number-label,
1003
+ .pelcro-root .pelcro-input-expiry-date-label {
1004
+ @apply plc-inline-flex plc-text-gray-400 plc-font-medium plc-absolute plc--top-2 plc-left-2 plc-text-xs plc-transition-all plc-bg-white plc-px-1;
1005
+ }
1009
1006
 
1010
- .pelcro-root
1007
+ .pelcro-root
1011
1008
  #pelcro-input-card-number:placeholder-shown
1012
- ~ .pelcro-input-card-number-label, .pelcro-root
1009
+ ~ .pelcro-input-card-number-label,
1010
+ .pelcro-root
1013
1011
  #pelcro-input-cvc-number:placeholder-shown
1014
- ~ .pelcro-input-cvc-number-label, .pelcro-root
1012
+ ~ .pelcro-input-cvc-number-label,
1013
+ .pelcro-root
1015
1014
  #pelcro-input-expiry-date:placeholder-shown
1016
- ~ .pelcro-input-expiry-date-label{
1017
- top: 0.625rem;
1018
- left: 0.5rem;
1019
- font-size: 0.875rem;
1020
- line-height: 1.25rem;
1021
- font-weight: 500;
1022
- --tw-text-opacity: 1;
1023
- color: rgba(156, 163, 175, var(--tw-text-opacity));
1024
- }
1025
-
1026
- .pelcro-root
1015
+ ~ .pelcro-input-expiry-date-label {
1016
+ @apply plc-text-gray-400 plc-font-medium plc-top-2.5 plc-left-2 plc-text-sm;
1017
+ }
1018
+ .pelcro-root
1027
1019
  #pelcro-input-card-number:focus
1028
- ~ .pelcro-input-card-number-label, .pelcro-root
1020
+ ~ .pelcro-input-card-number-label,
1021
+ .pelcro-root
1029
1022
  #pelcro-input-cvc-number:focus
1030
- ~ .pelcro-input-cvc-number-label, .pelcro-root
1023
+ ~ .pelcro-input-cvc-number-label,
1024
+ .pelcro-root
1031
1025
  #pelcro-input-expiry-date:focus
1032
- ~ .pelcro-input-expiry-date-label{
1033
- top: -0.5rem;
1034
- --tw-bg-opacity: 1;
1035
- background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
1036
- padding-left: 0.25rem;
1037
- padding-right: 0.25rem;
1038
- font-size: 0.75rem;
1039
- line-height: 1rem;
1040
- transition-property: all;
1041
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1042
- transition-duration: 150ms;
1043
- }
1026
+ ~ .pelcro-input-expiry-date-label {
1027
+ @apply plc-text-xs plc--top-2 plc-transition-all plc-bg-white plc-px-1;
1028
+ } */
1044
1029
 
1045
1030
  .pelcro-root .pelcro-checkbox-label {
1046
1031
  padding-left: 0.5rem;
@@ -1439,7 +1424,7 @@ Add the correct display in Chrome and Safari.
1439
1424
  width: 100%;
1440
1425
  align-items: center;
1441
1426
  justify-content: space-between;
1442
- border-radius: 0.125rem;
1427
+ border-radius: 0.375rem;
1443
1428
  --tw-bg-opacity: 1;
1444
1429
  background-color: rgba(239, 190, 188, var(--tw-bg-opacity));
1445
1430
  padding-left: 1rem;
@@ -1459,7 +1444,7 @@ Add the correct display in Chrome and Safari.
1459
1444
  width: 100%;
1460
1445
  align-items: center;
1461
1446
  justify-content: space-between;
1462
- border-radius: 0.125rem;
1447
+ border-radius: 0.375rem;
1463
1448
  --tw-bg-opacity: 1;
1464
1449
  background-color: rgba(167, 243, 208, var(--tw-bg-opacity));
1465
1450
  padding-left: 1rem;
@@ -2105,6 +2090,10 @@ apple-pay-button {
2105
2090
  top: -0.25rem;
2106
2091
  }
2107
2092
 
2093
+ .pelcro-root .plc--top-3{
2094
+ top: -0.75rem;
2095
+ }
2096
+
2108
2097
  .pelcro-root .plc-top-1\/2{
2109
2098
  top: 50%;
2110
2099
  }
@@ -2121,6 +2110,10 @@ apple-pay-button {
2121
2110
  right: 0.5rem;
2122
2111
  }
2123
2112
 
2113
+ .pelcro-root .plc-right-3{
2114
+ right: 0.75rem;
2115
+ }
2116
+
2124
2117
  .pelcro-root .plc-right-10{
2125
2118
  right: 2.5rem;
2126
2119
  }
@@ -2210,6 +2203,11 @@ apple-pay-button {
2210
2203
  margin-bottom: 2.75rem;
2211
2204
  }
2212
2205
 
2206
+ .pelcro-root .plc-my-auto{
2207
+ margin-top: auto;
2208
+ margin-bottom: auto;
2209
+ }
2210
+
2213
2211
  .pelcro-root .plc-mt-1{
2214
2212
  margin-top: 0.25rem;
2215
2213
  }
@@ -2446,6 +2444,10 @@ apple-pay-button {
2446
2444
  max-height: 100%;
2447
2445
  }
2448
2446
 
2447
+ .pelcro-root .plc-min-h-0{
2448
+ min-height: 0px;
2449
+ }
2450
+
2449
2451
  .pelcro-root .plc-min-h-12{
2450
2452
  min-height: 3rem;
2451
2453
  }
@@ -2518,10 +2520,6 @@ apple-pay-button {
2518
2520
  width: 14rem;
2519
2521
  }
2520
2522
 
2521
- .pelcro-root .plc-w-auto{
2522
- width: auto;
2523
- }
2524
-
2525
2523
  .pelcro-root .plc-w-1\/2{
2526
2524
  width: 50%;
2527
2525
  }
@@ -2737,11 +2735,6 @@ apple-pay-button {
2737
2735
  user-select: none;
2738
2736
  }
2739
2737
 
2740
- .pelcro-root .plc-appearance-none{
2741
- -webkit-appearance: none;
2742
- appearance: none;
2743
- }
2744
-
2745
2738
  .pelcro-root .plc-grid-cols-1{
2746
2739
  grid-template-columns: repeat(1, minmax(0, 1fr));
2747
2740
  }
@@ -3212,10 +3205,6 @@ apple-pay-button {
3212
3205
  padding: 0.5rem;
3213
3206
  }
3214
3207
 
3215
- .pelcro-root .plc-p-3{
3216
- padding: 0.75rem;
3217
- }
3218
-
3219
3208
  .pelcro-root .plc-p-4{
3220
3209
  padding: 1rem;
3221
3210
  }
@@ -3333,10 +3322,6 @@ apple-pay-button {
3333
3322
  padding-bottom: 1rem;
3334
3323
  }
3335
3324
 
3336
- .pelcro-root .plc-pl-1{
3337
- padding-left: 0.25rem;
3338
- }
3339
-
3340
3325
  .pelcro-root .plc-pl-2{
3341
3326
  padding-left: 0.5rem;
3342
3327
  }
@@ -3705,11 +3690,6 @@ apple-pay-button {
3705
3690
  --tw-ring-color: rgba(229, 231, 235, var(--tw-ring-opacity));
3706
3691
  }
3707
3692
 
3708
- .pelcro-root .plc-ring-red-300{
3709
- --tw-ring-opacity: 1;
3710
- --tw-ring-color: rgba(219, 110, 106, var(--tw-ring-opacity));
3711
- }
3712
-
3713
3693
  .pelcro-root .focus\:plc-ring-primary-300:focus{
3714
3694
  --tw-ring-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) + 20%));
3715
3695
  }
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.55",
4
+ "version": "4.0.0-alpha.57",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "dist/index.cjs.js",
@@ -77,8 +77,8 @@
77
77
  "postcss-import": "^14.0.0",
78
78
  "postcss-loader": "4.2.0",
79
79
  "prettier": "2.3.1",
80
- "react": "^16.6.1",
81
- "react-dom": "^16.6.1",
80
+ "react": "16.8.0",
81
+ "react-dom": "16.8.0",
82
82
  "react-ga": "^2.7.0",
83
83
  "react-refresh": "^0.9.0",
84
84
  "react-test-renderer": "^17.0.2",
@@ -101,7 +101,8 @@
101
101
  },
102
102
  "dependencies": {
103
103
  "@headlessui/react": "^0.3.0",
104
- "@stripe/stripe-js": "^1.21.1",
104
+ "@stripe/react-stripe-js": "^2.5.0",
105
+ "@stripe/stripe-js": "^3.0.4",
105
106
  "gapi-script": "^1.2.0",
106
107
  "i18next": "^19.1.0",
107
108
  "react-easy-crop": "^3.3.2",
@@ -112,7 +113,6 @@
112
113
  "react-i18next": "^11.3.3",
113
114
  "react-qr-code": "^2.0.7",
114
115
  "react-slick": "^0.29.0",
115
- "react-stripe-elements": "^6.1.2",
116
116
  "use-reducer-with-side-effects": "^2.2.0",
117
117
  "zustand": "^3.4.2"
118
118
  },