@superlogic/spree-pay 0.4.14 → 0.5.2
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/README.md +82 -5
- package/build/{CryptoComTab-NMS7BP25.js → CryptoComTab-EKWP4XOV.js} +11 -12
- package/build/{CryptoTab-4IC63YD5.js → CryptoTab-XJZHGZ5E.js} +13 -14
- package/build/{chunk-VZWGJKM3.js → chunk-ABVIUWRK.js} +1 -1
- package/build/{chunk-XFJYLJZ4.js → chunk-ECIGRDXS.js} +144 -49
- package/build/{chunk-UT65MGD2.js → chunk-VBGTP4XP.js} +5 -3
- package/build/index.cjs +640 -517
- package/build/index.css +137 -0
- package/build/index.d.cts +50 -5
- package/build/index.d.ts +50 -5
- package/build/index.js +96 -69
- package/package.json +5 -2
|
@@ -2,11 +2,12 @@ import {
|
|
|
2
2
|
InfoBanner,
|
|
3
3
|
Legal,
|
|
4
4
|
cn,
|
|
5
|
+
useIsLoggedIn,
|
|
5
6
|
useSpreePayConfig,
|
|
6
7
|
useSpreePayEnv,
|
|
7
8
|
useSpreePaymentMethod,
|
|
8
9
|
useStaticConfig
|
|
9
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ECIGRDXS.js";
|
|
10
11
|
|
|
11
12
|
// src/components/common/PointsSwitch.tsx
|
|
12
13
|
import { useId } from "react";
|
|
@@ -44,7 +45,7 @@ function Switch({ className, ...props }) {
|
|
|
44
45
|
{
|
|
45
46
|
"data-slot": "switch",
|
|
46
47
|
className: cn(
|
|
47
|
-
"peer
|
|
48
|
+
"peer inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:border-(--b-tertiary) focus-visible:ring-[3px] focus-visible:ring-(--b-tertiary)/50 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-(--s-brand) data-[state=unchecked]:bg-(--s-tertiary)",
|
|
48
49
|
className
|
|
49
50
|
),
|
|
50
51
|
...props,
|
|
@@ -205,7 +206,8 @@ var getTransactionFee = (amount = 0, transactionFeePercentage) => {
|
|
|
205
206
|
|
|
206
207
|
// src/components/CheckoutButton.tsx
|
|
207
208
|
import { Fragment, jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
208
|
-
var CheckoutButton = (
|
|
209
|
+
var CheckoutButton = () => {
|
|
210
|
+
const isLoggedIn = useIsLoggedIn();
|
|
209
211
|
const { appProps, staticConfig } = useStaticConfig();
|
|
210
212
|
const {
|
|
211
213
|
amount,
|