@pelcro/react-pelcro-js 4.0.0-alpha.59 → 4.0.0-alpha.60
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/index.cjs.js +8 -2
- package/dist/index.esm.js +8 -2
- package/dist/pelcro.css +4 -26
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -25050,6 +25050,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
25050
25050
|
};
|
|
25051
25051
|
|
|
25052
25052
|
const PaymentMethodContainer = props => {
|
|
25053
|
+
var _window3, _window3$Pelcro, _window3$Pelcro$site, _window3$Pelcro$site$, _window3$Pelcro$site$2;
|
|
25054
|
+
|
|
25053
25055
|
const [isStripeLoaded, setIsStripeLoaded] = React.useState(Boolean(window.Stripe));
|
|
25054
25056
|
const {
|
|
25055
25057
|
whenUserReady
|
|
@@ -25061,7 +25063,11 @@ const PaymentMethodContainer = props => {
|
|
|
25061
25063
|
}) : null;
|
|
25062
25064
|
const [clientSecret, setClientSecret] = React.useState();
|
|
25063
25065
|
const appearance = {
|
|
25064
|
-
theme: "stripe"
|
|
25066
|
+
theme: "stripe",
|
|
25067
|
+
labels: "floating",
|
|
25068
|
+
variables: {
|
|
25069
|
+
colorPrimary: (_window3 = window) === null || _window3 === void 0 ? void 0 : (_window3$Pelcro = _window3.Pelcro) === null || _window3$Pelcro === void 0 ? void 0 : (_window3$Pelcro$site = _window3$Pelcro.site) === null || _window3$Pelcro$site === void 0 ? void 0 : (_window3$Pelcro$site$ = _window3$Pelcro$site.read()) === null || _window3$Pelcro$site$ === void 0 ? void 0 : (_window3$Pelcro$site$2 = _window3$Pelcro$site$.design_settings) === null || _window3$Pelcro$site$2 === void 0 ? void 0 : _window3$Pelcro$site$2.primary_color
|
|
25070
|
+
}
|
|
25065
25071
|
};
|
|
25066
25072
|
const options = {
|
|
25067
25073
|
clientSecret,
|
|
@@ -26571,7 +26577,7 @@ const SelectedAddress = ({
|
|
|
26571
26577
|
};
|
|
26572
26578
|
|
|
26573
26579
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26574
|
-
className: "plc-p-4 plc-my-4 last:plc-mb-0 plc-rounded plc-text-gray-900 pelcro-address-wrapper plc-
|
|
26580
|
+
className: "plc-p-4 plc-my-4 last:plc-mb-0 plc-rounded plc-text-gray-900 pelcro-address-wrapper plc-shadow-md_dark plc-relative"
|
|
26575
26581
|
}, address && /*#__PURE__*/React__default['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26576
26582
|
className: "pelcro-select-address-radio plc-order-2",
|
|
26577
26583
|
id: `pelcro-address-select-${address.id}`,
|
package/dist/index.esm.js
CHANGED
|
@@ -25020,6 +25020,8 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
25020
25020
|
};
|
|
25021
25021
|
|
|
25022
25022
|
const PaymentMethodContainer = props => {
|
|
25023
|
+
var _window3, _window3$Pelcro, _window3$Pelcro$site, _window3$Pelcro$site$, _window3$Pelcro$site$2;
|
|
25024
|
+
|
|
25023
25025
|
const [isStripeLoaded, setIsStripeLoaded] = useState(Boolean(window.Stripe));
|
|
25024
25026
|
const {
|
|
25025
25027
|
whenUserReady
|
|
@@ -25031,7 +25033,11 @@ const PaymentMethodContainer = props => {
|
|
|
25031
25033
|
}) : null;
|
|
25032
25034
|
const [clientSecret, setClientSecret] = useState();
|
|
25033
25035
|
const appearance = {
|
|
25034
|
-
theme: "stripe"
|
|
25036
|
+
theme: "stripe",
|
|
25037
|
+
labels: "floating",
|
|
25038
|
+
variables: {
|
|
25039
|
+
colorPrimary: (_window3 = window) === null || _window3 === void 0 ? void 0 : (_window3$Pelcro = _window3.Pelcro) === null || _window3$Pelcro === void 0 ? void 0 : (_window3$Pelcro$site = _window3$Pelcro.site) === null || _window3$Pelcro$site === void 0 ? void 0 : (_window3$Pelcro$site$ = _window3$Pelcro$site.read()) === null || _window3$Pelcro$site$ === void 0 ? void 0 : (_window3$Pelcro$site$2 = _window3$Pelcro$site$.design_settings) === null || _window3$Pelcro$site$2 === void 0 ? void 0 : _window3$Pelcro$site$2.primary_color
|
|
25040
|
+
}
|
|
25035
25041
|
};
|
|
25036
25042
|
const options = {
|
|
25037
25043
|
clientSecret,
|
|
@@ -26541,7 +26547,7 @@ const SelectedAddress = ({
|
|
|
26541
26547
|
};
|
|
26542
26548
|
|
|
26543
26549
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26544
|
-
className: "plc-p-4 plc-my-4 last:plc-mb-0 plc-rounded plc-text-gray-900 pelcro-address-wrapper plc-
|
|
26550
|
+
className: "plc-p-4 plc-my-4 last:plc-mb-0 plc-rounded plc-text-gray-900 pelcro-address-wrapper plc-shadow-md_dark plc-relative"
|
|
26545
26551
|
}, address && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
26546
26552
|
className: "pelcro-select-address-radio plc-order-2",
|
|
26547
26553
|
id: `pelcro-address-select-${address.id}`,
|
package/dist/pelcro.css
CHANGED
|
@@ -743,40 +743,14 @@ Add the correct display in Chrome and Safari.
|
|
|
743
743
|
|
|
744
744
|
.pelcro-root .pelcro-modal{
|
|
745
745
|
position: absolute;
|
|
746
|
-
bottom: 0px;
|
|
747
746
|
display: flex;
|
|
748
747
|
max-width: 32rem;
|
|
749
|
-
--tw-translate-x: 0;
|
|
750
|
-
--tw-translate-y: 0;
|
|
751
|
-
--tw-rotate: 0;
|
|
752
|
-
--tw-skew-x: 0;
|
|
753
|
-
--tw-skew-y: 0;
|
|
754
|
-
--tw-scale-x: 1;
|
|
755
|
-
--tw-scale-y: 1;
|
|
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
748
|
flex-direction: column;
|
|
758
749
|
align-items: center;
|
|
759
750
|
border-radius: 0.5rem;
|
|
760
751
|
--tw-bg-opacity: 1;
|
|
761
752
|
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
@media (min-width: 768px){
|
|
765
|
-
.pelcro-root .pelcro-modal{
|
|
766
|
-
bottom: 50%;
|
|
767
|
-
--tw-translate-y: 50%;
|
|
768
|
-
}
|
|
769
|
-
}
|
|
770
|
-
|
|
771
|
-
.pelcro-root .pelcro-modal{
|
|
772
753
|
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
754
|
}
|
|
781
755
|
|
|
782
756
|
.pelcro-root .pelcro-modal-content {
|
|
@@ -788,6 +762,8 @@ Add the correct display in Chrome and Safari.
|
|
|
788
762
|
display: flex;
|
|
789
763
|
min-height: 6rem;
|
|
790
764
|
flex-direction: column;
|
|
765
|
+
border-top-left-radius: 0.5rem;
|
|
766
|
+
border-top-right-radius: 0.5rem;
|
|
791
767
|
border-bottom-width: 2px;
|
|
792
768
|
border-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) + 10%));
|
|
793
769
|
--tw-bg-opacity: 1;
|
|
@@ -866,6 +842,8 @@ Add the correct display in Chrome and Safari.
|
|
|
866
842
|
flex-direction: column;
|
|
867
843
|
align-items: center;
|
|
868
844
|
justify-content: center;
|
|
845
|
+
border-bottom-right-radius: 0.5rem;
|
|
846
|
+
border-bottom-left-radius: 0.5rem;
|
|
869
847
|
--tw-bg-opacity: 1;
|
|
870
848
|
background-color: rgba(255, 255, 255, var(--tw-bg-opacity));
|
|
871
849
|
padding-left: 1rem;
|