@superlogic/spree-pay 0.1.10 → 0.1.11
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/build/index.cjs +11 -11
- package/build/index.css +986 -999
- package/build/index.js +11 -11
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -172,8 +172,8 @@ var CheckoutButton = ({ isProcessing, amount, onCheckout }) => {
|
|
|
172
172
|
const { selectedPaymentMethod, isInternalProcessing } = useSpreePaymentMethod();
|
|
173
173
|
const isDisabled = !amount || !selectedPaymentMethod.method || !!isProcessing || isInternalProcessing;
|
|
174
174
|
const isUSD = selectedPaymentMethod.type === "CREDIT_CARD" /* CREDIT_CARD */;
|
|
175
|
-
return /* @__PURE__ */ jsxs2("div", { className: "flex w-full flex-col overflow-hidden rounded-
|
|
176
|
-
/* @__PURE__ */ jsx3("div", { className: "px-7 py-5", children: /* @__PURE__ */ jsxs2("p", { className: "text-
|
|
175
|
+
return /* @__PURE__ */ jsxs2("div", { className: "flex w-full flex-col overflow-hidden rounded-3xl border border-black/25 bg-white text-xs font-medium", children: [
|
|
176
|
+
/* @__PURE__ */ jsx3("div", { className: "px-7 py-5", children: /* @__PURE__ */ jsxs2("p", { className: "text-black/50", children: [
|
|
177
177
|
"By clicking on the button below I acknowledge that I have read and accepted the",
|
|
178
178
|
" ",
|
|
179
179
|
/* @__PURE__ */ jsx3("a", { className: "underline", href: "/", children: "Property Policies" }),
|
|
@@ -212,7 +212,7 @@ var SpreeLegal = () => {
|
|
|
212
212
|
d: "M57.79 25.48a4.82 4.82 0 0 1-1.55-.25l.55-1.86c.34.1.65.15.92.15s.51-.1.72-.26c.21-.16.39-.43.53-.81l.2-.55-3.65-10.3h2.52l2.32 7.62h.1l2.34-7.62h2.53l-4.04 11.31c-.19.54-.44 1-.75 1.38-.31.38-.7.68-1.14.88-.45.2-.98.3-1.6.3ZM48.95 21.9a4.2 4.2 0 0 1-1.73-.35c-.5-.23-.9-.57-1.2-1.02a3 3 0 0 1-.44-1.67 2.44 2.44 0 0 1 1.18-2.3c.35-.23.76-.4 1.22-.5.46-.13.93-.21 1.42-.27l1.44-.16c.37-.05.64-.13.8-.24.18-.1.26-.27.26-.5v-.04c0-.5-.15-.88-.44-1.15-.3-.27-.72-.4-1.27-.4-.58 0-1.04.12-1.38.37-.34.26-.57.56-.69.9l-2.22-.31a3.54 3.54 0 0 1 2.35-2.47 6.29 6.29 0 0 1 3.38-.14c.48.1.92.3 1.32.56.4.26.72.6.96 1.06.25.44.37 1 .37 1.67v6.75h-2.29v-1.38h-.08a2.9 2.9 0 0 1-1.59 1.37c-.39.14-.84.22-1.37.22Zm.62-1.75c.48 0 .89-.1 1.24-.28.35-.2.62-.45.8-.77.2-.31.3-.65.3-1.03V16.9c-.08.06-.2.11-.38.17a18.34 18.34 0 0 1-1.8.32c-.36.05-.68.12-.96.23-.28.11-.5.27-.66.46-.16.2-.24.45-.24.75 0 .44.16.77.48 1 .32.22.72.33 1.22.33ZM34.43 21.7V8.23h5.05c1.03 0 1.9.2 2.6.58.7.38 1.23.91 1.6 1.59.36.67.54 1.43.54 2.28 0 .87-.18 1.63-.55 2.3a3.9 3.9 0 0 1-1.6 1.59c-.72.38-1.59.57-2.63.57H36.1v-2h3.01c.6 0 1.1-.11 1.49-.32.38-.21.67-.5.85-.87.2-.37.29-.79.29-1.27 0-.47-.1-.9-.29-1.26a1.92 1.92 0 0 0-.86-.84c-.38-.2-.88-.31-1.49-.31h-2.23v11.41h-2.44ZM14.54.46a14.54 14.54 0 1 1 0 29.08 14.54 14.54 0 0 1 0-29.08ZM5.59 18.12l-.84 3.35h.83l.84-3.35h-.83Zm1.66 0-.83 3.35h1.66l.84-3.35H7.25Zm3.35-9.58c-1.03 0-2.08.84-2.34 1.87l-1.1 4.4c-.26 1.03.37 1.87 1.4 1.87h9.64l-.34 1.44h-8.1l-.85 3.35h9.6c1.04 0 2.1-.85 2.35-1.89l1.05-4.4c.25-1.03-.38-1.85-1.4-1.85h-9.63l.36-1.44h8.13l.84-3.35H10.6Zm10.44 0-.84 3.35h1.67l.83-3.35h-1.66Zm2.5 0-.84 3.35h.83l.84-3.35h-.83Z"
|
|
213
213
|
}
|
|
214
214
|
) }),
|
|
215
|
-
/* @__PURE__ */ jsxs3("p", { className: "text-xs text-
|
|
215
|
+
/* @__PURE__ */ jsxs3("p", { className: "text-xs text-black/50", children: [
|
|
216
216
|
"Spree enables seamless crypto payments for real-world goods, travel, and experiences. Enjoy secure, fast transactions and earn rewards.",
|
|
217
217
|
" ",
|
|
218
218
|
/* @__PURE__ */ jsx4("a", { className: "underline", href: "/", children: "Learn more" }),
|
|
@@ -679,7 +679,7 @@ var CardListItem = ({ card, isSelected, onSelect }) => {
|
|
|
679
679
|
children: [
|
|
680
680
|
/* @__PURE__ */ jsx10("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx10("p", { className: "text-sm font-medium text-black", children: card.schema }) }),
|
|
681
681
|
/* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-2", children: [
|
|
682
|
-
/* @__PURE__ */ jsxs7("p", { className: "text-sm font-medium text-
|
|
682
|
+
/* @__PURE__ */ jsxs7("p", { className: "text-sm font-medium text-black/50", children: [
|
|
683
683
|
"Ending in ",
|
|
684
684
|
/* @__PURE__ */ jsx10("span", { className: "text-black", children: card.lastFourNumbers })
|
|
685
685
|
] }),
|
|
@@ -1204,7 +1204,7 @@ var ConnectButton = () => {
|
|
|
1204
1204
|
return /* @__PURE__ */ jsx16(
|
|
1205
1205
|
"button",
|
|
1206
1206
|
{
|
|
1207
|
-
className: "h-[34px] rounded-md border-1 border-black px-3 text-sm font-medium",
|
|
1207
|
+
className: "h-[34px] rounded-md border-1 border-black px-3 text-sm font-medium text-black",
|
|
1208
1208
|
onClick: openConnectModal,
|
|
1209
1209
|
children: "Connect a Wallet"
|
|
1210
1210
|
}
|
|
@@ -1223,7 +1223,7 @@ var ConnectButton = () => {
|
|
|
1223
1223
|
return /* @__PURE__ */ jsxs11(
|
|
1224
1224
|
"button",
|
|
1225
1225
|
{
|
|
1226
|
-
className: "flex h-[34px] items-center gap-2 rounded-md border-1 border-black px-1.5 text-sm font-medium",
|
|
1226
|
+
className: "flex h-[34px] items-center gap-2 rounded-md border-1 border-black px-1.5 text-sm font-medium text-black",
|
|
1227
1227
|
onClick: openAccountModal,
|
|
1228
1228
|
children: [
|
|
1229
1229
|
chain.hasIcon && /* @__PURE__ */ jsx16("div", { className: "h-6 w-6 overflow-hidden rounded-full", style: { background: chain.iconBackground }, children: chain.iconUrl && /* @__PURE__ */ jsx16("img", { alt: chain.name ?? "Chain icon", src: chain.iconUrl }) }),
|
|
@@ -1468,7 +1468,7 @@ var CryptoSelectModal = NiceModal3.create(() => {
|
|
|
1468
1468
|
nativeBalance && /* @__PURE__ */ jsxs14(
|
|
1469
1469
|
"button",
|
|
1470
1470
|
{
|
|
1471
|
-
className: "flex h-11 w-full items-center justify-between gap-4 rounded-sm px-1.5 hover:bg-gray-100",
|
|
1471
|
+
className: "flex h-11 w-full items-center justify-between gap-4 rounded-sm px-1.5 text-black hover:bg-gray-100",
|
|
1472
1472
|
onClick: () => handleSelect(nativeBalance),
|
|
1473
1473
|
children: [
|
|
1474
1474
|
/* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1497,7 +1497,7 @@ var CryptoSelectModal = NiceModal3.create(() => {
|
|
|
1497
1497
|
return /* @__PURE__ */ jsxs14(
|
|
1498
1498
|
"button",
|
|
1499
1499
|
{
|
|
1500
|
-
className: "flex h-11 w-full items-center justify-between gap-4 rounded-sm px-1.5 hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1500
|
+
className: "flex h-11 w-full items-center justify-between gap-4 rounded-sm px-1.5 text-black hover:bg-gray-100 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1501
1501
|
onClick: () => handleSelect(coin),
|
|
1502
1502
|
children: [
|
|
1503
1503
|
/* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-2", children: [
|
|
@@ -1543,10 +1543,10 @@ var SelectedCoin = (props) => {
|
|
|
1543
1543
|
/* @__PURE__ */ jsxs16("div", { className: "flex items-center gap-1", children: [
|
|
1544
1544
|
Icon,
|
|
1545
1545
|
!Icon && logoURI && /* @__PURE__ */ jsx21("img", { className: "mr-1 h-8 w-8 shrink-0", src: logoURI, alt: `${coin} logo` }),
|
|
1546
|
-
/* @__PURE__ */ jsx21("p", { className: "font-semibold", children: coin }),
|
|
1546
|
+
/* @__PURE__ */ jsx21("p", { className: "font-semibold text-black", children: coin }),
|
|
1547
1547
|
/* @__PURE__ */ jsx21("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx21("path", { d: "M6 12.4341L10 8.43408L6 4.43408", stroke: "black", strokeLinecap: "round" }) })
|
|
1548
1548
|
] }),
|
|
1549
|
-
/* @__PURE__ */ jsxs16("p", { className: "text-xs font-medium text-
|
|
1549
|
+
/* @__PURE__ */ jsxs16("p", { className: "text-xs font-medium text-black/50", children: [
|
|
1550
1550
|
"Wallet balance ",
|
|
1551
1551
|
/* @__PURE__ */ jsx21("span", { className: "text-black", children: balance })
|
|
1552
1552
|
] })
|
|
@@ -1691,7 +1691,7 @@ var TabButtons = (props) => {
|
|
|
1691
1691
|
import { jsx as jsx26, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
1692
1692
|
var Tabs = () => {
|
|
1693
1693
|
const { selectedPaymentMethod, setSelectedPaymentMethod } = useSpreePaymentMethod();
|
|
1694
|
-
return /* @__PURE__ */ jsxs20("div", { className: "mb-4 rounded-
|
|
1694
|
+
return /* @__PURE__ */ jsxs20("div", { className: "mb-4 rounded-3xl border border-black/25 bg-white", children: [
|
|
1695
1695
|
/* @__PURE__ */ jsxs20("div", { className: "flex w-full flex-col gap-4 border-b-1 border-black/7 px-7 py-6", children: [
|
|
1696
1696
|
/* @__PURE__ */ jsx26("h2", { className: "text-primary text-2xl font-semibold", children: "Choose a Payment Method" }),
|
|
1697
1697
|
/* @__PURE__ */ jsx26(TabButtons, { value: selectedPaymentMethod.type, onChange: setSelectedPaymentMethod })
|