@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.
@@ -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-XFJYLJZ4.js";
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 focus-visible:border-ring focus-visible:ring-ring/50 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-(--s-brand) data-[state=unchecked]:bg-(--s-tertiary)",
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 = ({ isLoggedIn }) => {
209
+ var CheckoutButton = () => {
210
+ const isLoggedIn = useIsLoggedIn();
209
211
  const { appProps, staticConfig } = useStaticConfig();
210
212
  const {
211
213
  amount,