coinley-checkout 0.5.0 → 0.5.1

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.
@@ -19199,16 +19199,17 @@ var jsxRuntimeExports = jsxRuntime.exports;
19199
19199
  const ThemeContext = createContext();
19200
19200
  const useTheme = () => useContext(ThemeContext);
19201
19201
  const ThemeProvider = ({ initialTheme = "light", children }) => {
19202
- const [theme, setTheme] = useState(initialTheme);
19202
+ const [theme2, setTheme] = useState(initialTheme);
19203
19203
  const toggleTheme = () => {
19204
19204
  setTheme((prevTheme) => prevTheme === "light" ? "dark" : "light");
19205
19205
  };
19206
19206
  useEffect(() => {
19207
19207
  document.documentElement.classList.remove("light", "dark");
19208
- document.documentElement.classList.add(theme);
19209
- }, [theme]);
19210
- return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeContext.Provider, { value: { theme, setTheme, toggleTheme }, children });
19208
+ document.documentElement.classList.add(theme2);
19209
+ }, [theme2]);
19210
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeContext.Provider, { value: { theme: theme2, setTheme, toggleTheme }, children });
19211
19211
  };
19212
+ const theme = "";
19212
19213
  const CoinleyContext = createContext();
19213
19214
  const useCoinley = () => useContext(CoinleyContext);
19214
19215
  const CoinleyProvider = ({
@@ -20397,7 +20398,7 @@ const QRCode = ({
20397
20398
  amount,
20398
20399
  currency,
20399
20400
  network,
20400
- theme = "light",
20401
+ theme: theme2 = "light",
20401
20402
  size = 200
20402
20403
  }) => {
20403
20404
  const [qrData, setQrData] = useState("");
@@ -20505,8 +20506,8 @@ const QRCode = ({
20505
20506
  {
20506
20507
  value: qrData,
20507
20508
  size,
20508
- bgColor: theme === "dark" ? "#374151" : "#FFFFFF",
20509
- fgColor: theme === "dark" ? "#FFFFFF" : "#000000",
20509
+ bgColor: theme2 === "dark" ? "#374151" : "#FFFFFF",
20510
+ fgColor: theme2 === "dark" ? "#FFFFFF" : "#000000",
20510
20511
  level: "H",
20511
20512
  includeMargin: true
20512
20513
  }
@@ -20586,7 +20587,7 @@ const QRCode = ({
20586
20587
  ] }) })
20587
20588
  ] });
20588
20589
  };
20589
- const PaymentStatus = ({ status, message, theme = "light" }) => {
20590
+ const PaymentStatus = ({ status, message, theme: theme2 = "light" }) => {
20590
20591
  const renderIcon = () => {
20591
20592
  switch (status) {
20592
20593
  case "processing":
@@ -20636,24 +20637,24 @@ const PaymentStatus = ({ status, message, theme = "light" }) => {
20636
20637
  const getMessageClasses = () => {
20637
20638
  switch (status) {
20638
20639
  case "processing":
20639
- return theme === "dark" ? "text-blue-300" : "text-blue-600";
20640
+ return theme2 === "dark" ? "text-blue-300" : "text-blue-600";
20640
20641
  case "success":
20641
- return theme === "dark" ? "text-green-300" : "text-green-600";
20642
+ return theme2 === "dark" ? "text-green-300" : "text-green-600";
20642
20643
  case "error":
20643
- return theme === "dark" ? "text-red-300" : "text-red-600";
20644
+ return theme2 === "dark" ? "text-red-300" : "text-red-600";
20644
20645
  default:
20645
- return theme === "dark" ? "text-gray-300" : "text-gray-600";
20646
+ return theme2 === "dark" ? "text-gray-300" : "text-gray-600";
20646
20647
  }
20647
20648
  };
20648
20649
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex flex-col items-center justify-center py-6", children: [
20649
20650
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mb-4", children: renderIcon() }),
20650
- /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: `text-xl font-bold mb-2 ${theme === "dark" ? "text-white" : "text-gray-900"}`, children: getStatusTitle() }),
20651
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: `text-xl font-bold mb-2 ${theme2 === "dark" ? "text-white" : "text-gray-900"}`, children: getStatusTitle() }),
20651
20652
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: `text-center ${getMessageClasses()}`, children: message }),
20652
- status === "processing" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `mt-4 text-xs ${theme === "dark" ? "text-gray-400" : "text-gray-500"}`, children: "This may take a few moments. Please do not close this window." }),
20653
- status === "success" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `mt-4 p-2 rounded ${theme === "dark" ? "bg-gray-700" : "bg-gray-100"}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: `text-xs ${theme === "dark" ? "text-gray-300" : "text-gray-600"}`, children: "Your payment has been successfully processed. You will receive a confirmation shortly." }) })
20653
+ status === "processing" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `mt-4 text-xs ${theme2 === "dark" ? "text-gray-400" : "text-gray-500"}`, children: "This may take a few moments. Please do not close this window." }),
20654
+ status === "success" && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `mt-4 p-2 rounded ${theme2 === "dark" ? "bg-gray-700" : "bg-gray-100"}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: `text-xs ${theme2 === "dark" ? "text-gray-300" : "text-gray-600"}`, children: "Your payment has been successfully processed. You will receive a confirmation shortly." }) })
20654
20655
  ] });
20655
20656
  };
20656
- const PaymentMethods = ({ onSelect, selected, theme = "light", supportedNetworks = [] }) => {
20657
+ const PaymentMethods = ({ onSelect, selected, theme: theme2 = "light", supportedNetworks = [] }) => {
20657
20658
  const [selectedNetwork, setSelectedNetwork] = useState(NETWORK_TYPES.ETHEREUM);
20658
20659
  const [availableWallets, setAvailableWallets] = useState({});
20659
20660
  const [showMore, setShowMore] = useState(false);
@@ -20880,15 +20881,15 @@ const PaymentMethods = ({ onSelect, selected, theme = "light", supportedNetworks
20880
20881
  return isAvailable ? `${walletNames[wallet]} detected - Ready to pay` : `${walletNames[wallet]} required - Please install to continue`;
20881
20882
  }
20882
20883
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
20883
- /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: `text-lg font-medium mb-4 ${theme === "dark" ? "text-white" : "text-gray-800"}`, children: "Select Payment Method" }),
20884
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: `text-lg font-medium mb-4 ${theme2 === "dark" ? "text-white" : "text-gray-800"}`, children: "Select Payment Method" }),
20884
20885
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-6", children: [
20885
- /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: `block text-sm font-medium mb-2 ${theme === "dark" ? "text-white" : "text-gray-700"}`, children: "Blockchain Network" }),
20886
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: `block text-sm font-medium mb-2 ${theme2 === "dark" ? "text-white" : "text-gray-700"}`, children: "Blockchain Network" }),
20886
20887
  /* @__PURE__ */ jsxRuntimeExports.jsx(
20887
20888
  "select",
20888
20889
  {
20889
20890
  value: selectedNetwork,
20890
20891
  onChange: (e) => handleNetworkChange(e.target.value),
20891
- className: `w-full p-3 rounded-lg border transition-colors ${theme === "dark" ? "bg-gray-700 border-gray-600 text-white focus:border-[#7042D2]" : "bg-white border-gray-300 text-gray-900 focus:border-[#7042D2]"} focus:outline-none focus:ring-2 focus:ring-[#7042D2] focus:ring-opacity-50`,
20892
+ className: `w-full p-3 rounded-lg border transition-colors ${theme2 === "dark" ? "bg-gray-700 border-gray-600 text-white focus:border-[#7042D2]" : "bg-white border-gray-300 text-gray-900 focus:border-[#7042D2]"} focus:outline-none focus:ring-2 focus:ring-[#7042D2] focus:ring-opacity-50`,
20892
20893
  children: networks.filter((network) => supportedNetworks.length === 0 || supportedNetworks.includes(network.id)).map((network) => /* @__PURE__ */ jsxRuntimeExports.jsxs("option", { value: network.id, children: [
20893
20894
  network.name,
20894
20895
  " - ",
@@ -20898,17 +20899,17 @@ const PaymentMethods = ({ onSelect, selected, theme = "light", supportedNetworks
20898
20899
  )
20899
20900
  ] }),
20900
20901
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-4", children: [
20901
- /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: `block text-sm font-medium mb-3 ${theme === "dark" ? "text-white" : "text-gray-700"}`, children: "Select Stablecoin" }),
20902
+ /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: `block text-sm font-medium mb-3 ${theme2 === "dark" ? "text-white" : "text-gray-700"}`, children: "Select Stablecoin" }),
20902
20903
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "grid grid-cols-2 gap-3 mb-4", children: visibleMethods.map((method) => /* @__PURE__ */ jsxRuntimeExports.jsx(
20903
20904
  "button",
20904
20905
  {
20905
20906
  onClick: () => handleSelectPaymentMethod(method),
20906
- className: `p-4 rounded-lg transition-all duration-200 border-1 ${(selected == null ? void 0 : selected.currency) === method.id && (selected == null ? void 0 : selected.network) === selectedNetwork ? theme === "dark" ? "bg-blue-900/30 border-[#7042D2] ring-2 ring-[#7042D2] ring-opacity-50" : "bg-blue-50 border-[#7042D2] ring-2 ring-[#7042D2] ring-opacity-50" : theme === "dark" ? "bg-gray-700 hover:bg-gray-600 border-gray-600 hover:border-gray-500" : "bg-white hover:bg-gray-50 border-gray-200 hover:border-gray-300"}`,
20907
+ className: `p-4 rounded-lg transition-all duration-200 border-1 ${(selected == null ? void 0 : selected.currency) === method.id && (selected == null ? void 0 : selected.network) === selectedNetwork ? theme2 === "dark" ? "bg-blue-900/30 border-[#7042D2] ring-2 ring-[#7042D2] ring-opacity-50" : "bg-blue-50 border-[#7042D2] ring-2 ring-[#7042D2] ring-opacity-50" : theme2 === "dark" ? "bg-gray-700 hover:bg-gray-600 border-gray-600 hover:border-gray-500" : "bg-white hover:bg-gray-50 border-gray-200 hover:border-gray-300"}`,
20907
20908
  children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center text-center", children: [
20908
20909
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex-shrink-0 h-10 w-10 bg-white rounded-full flex items-center justify-center mb-2 shadow-sm", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: method.logo, alt: method.name, className: "h-6 w-6" }) }),
20909
20910
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
20910
- /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: `font-medium text-sm ${theme === "dark" ? "text-white" : "text-gray-900"}`, children: method.name }),
20911
- /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: `text-xs ${theme === "dark" ? "text-gray-300" : "text-gray-500"}`, children: method.description })
20911
+ /* @__PURE__ */ jsxRuntimeExports.jsx("h4", { className: `font-medium text-sm ${theme2 === "dark" ? "text-white" : "text-gray-900"}`, children: method.name }),
20912
+ /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: `text-xs ${theme2 === "dark" ? "text-gray-300" : "text-gray-500"}`, children: method.description })
20912
20913
  ] }),
20913
20914
  (selected == null ? void 0 : selected.currency) === method.id && (selected == null ? void 0 : selected.network) === selectedNetwork && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
20914
20915
  "svg",
@@ -20935,12 +20936,12 @@ const PaymentMethods = ({ onSelect, selected, theme = "light", supportedNetworks
20935
20936
  "button",
20936
20937
  {
20937
20938
  onClick: () => setShowMore(!showMore),
20938
- className: `w-full py-2 px-4 rounded-lg text-sm font-medium transition-colors ${theme === "dark" ? "bg-gray-700 text-gray-300 hover:bg-gray-600" : "bg-gray-100 text-gray-600 hover:bg-gray-200"}`,
20939
+ className: `w-full py-2 px-4 rounded-lg text-sm font-medium transition-colors ${theme2 === "dark" ? "bg-gray-700 text-gray-300 hover:bg-gray-600" : "bg-gray-100 text-gray-600 hover:bg-gray-200"}`,
20939
20940
  children: showMore ? "Show Less" : `Show More (${availableMethods.length - 4} more)`
20940
20941
  }
20941
20942
  )
20942
20943
  ] }),
20943
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `p-3 rounded-lg text-sm ${theme === "dark" ? "bg-gray-800 text-gray-300" : "bg-gray-50 text-gray-600"}`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
20944
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `p-3 rounded-lg text-sm ${theme2 === "dark" ? "bg-gray-800 text-gray-300" : "bg-gray-50 text-gray-600"}`, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
20944
20945
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `w-2 h-2 rounded-full mr-2 ${availableWallets[getRequiredWallet(selectedNetwork)] ? "bg-green-500" : "bg-red-500"}` }),
20945
20946
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-xs", children: getNetworkRequirement(selectedNetwork) })
20946
20947
  ] }) })
@@ -20957,7 +20958,7 @@ const CoinleyModal = ({
20957
20958
  onPayment,
20958
20959
  onBack,
20959
20960
  error,
20960
- theme = "light",
20961
+ theme: theme2 = "light",
20961
20962
  merchantName,
20962
20963
  transactionHash,
20963
20964
  walletConnection,
@@ -21022,9 +21023,9 @@ const CoinleyModal = ({
21022
21023
  };
21023
21024
  if (!isOpen)
21024
21025
  return null;
21025
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "fixed inset-0 z-50 overflow-y-auto bg-black/50", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex min-h-screen items-center justify-center p-4", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "relative p-6 w-full max-w-md mx-auto rounded-lg shadow-xl bg-white text-gray-800", children: [
21026
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between items-center mb-6 bg-[#F1ECFB] p-3 rounded-xl", children: [
21027
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "text-xl font-bold text-gray-900", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: logo, className: "w-32", alt: "Coinley Logo" }) }) }),
21026
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "fixed inset-0 z-50 overflow-y-auto bg-black/50", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex min-h-screen items-center justify-center p-4", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "coinley-modal relative p-6 w-full max-w-md mx-auto rounded-lg shadow-xl", children: [
21027
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "coinley-header flex justify-between items-center mb-6", children: [
21028
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "text-xl font-bold", children: /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: logo, className: "w-32", alt: "Coinley Logo" }) }) }),
21028
21029
  /* @__PURE__ */ jsxRuntimeExports.jsx(
21029
21030
  "button",
21030
21031
  {
@@ -21034,25 +21035,41 @@ const CoinleyModal = ({
21034
21035
  }
21035
21036
  )
21036
21037
  ] }),
21037
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-6 bg-[#F1ECFB] p-3 rounded-xl", children: [
21038
- payment && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-6 p-4 rounded-lg", children: [
21039
- /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { className: "text-lg text-gray-800 font-semibold", children: [
21040
- "PAY: ",
21041
- merchantName
21042
- ] }),
21043
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between items-center mt-2 bg-gray-100 px-3 rounded-lg", children: [
21044
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium text-gray-700", children: "Amount:" }),
21045
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "font-bold text-xl text-[#7042D2]", children: [
21038
+ payment && /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "coinley-payment-info mb-6", children: [
21039
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-center mb-4", children: [
21040
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm text-gray-600 mb-1", children: "Total Amount" }),
21041
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "coinley-amount-display text-3xl font-bold", children: [
21042
+ "$",
21043
+ formatAmount(payment.totalAmount || payment.amount)
21044
+ ] })
21045
+ ] }),
21046
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-center mb-4", children: [
21047
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-sm text-gray-600 mb-1", children: "Payment To" }),
21048
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "coinley-merchant-name text-lg", children: merchantName })
21049
+ ] }),
21050
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "grid grid-cols-2 gap-4 text-sm", children: [
21051
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-white/50 px-3 py-2 rounded-lg", children: [
21052
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-gray-600 text-xs", children: "Original Amount" }),
21053
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "font-semibold", children: [
21046
21054
  "$",
21047
- formatAmount(payment.totalAmount || payment.amount)
21055
+ formatAmount(payment.amount)
21048
21056
  ] })
21049
21057
  ] }),
21050
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-xs mt-1 text-right", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "text-gray-500", children: [
21051
- "Payment ID: ",
21052
- payment.id ? payment.id.slice(0, 8) : "",
21053
- "..."
21054
- ] }) })
21058
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "bg-white/50 px-3 py-2 rounded-lg", children: [
21059
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-gray-600 text-xs", children: "Fee (1.75%)" }),
21060
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "font-semibold", children: [
21061
+ "$",
21062
+ formatAmount((payment.totalAmount || payment.amount) - payment.amount)
21063
+ ] })
21064
+ ] })
21055
21065
  ] }),
21066
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center mt-3", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-xs text-gray-500", children: [
21067
+ "Payment ID: ",
21068
+ payment.id ? payment.id.slice(0, 8) : "",
21069
+ "..."
21070
+ ] }) })
21071
+ ] }),
21072
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "mb-6", children: [
21056
21073
  debug && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "mb-2 text-right", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
21057
21074
  "button",
21058
21075
  {
@@ -21073,7 +21090,7 @@ const CoinleyModal = ({
21073
21090
  {
21074
21091
  onSelect: onPaymentMethodSelect,
21075
21092
  selected: selectedPaymentMethod,
21076
- theme,
21093
+ theme: theme2,
21077
21094
  supportedNetworks
21078
21095
  }
21079
21096
  ),
@@ -21084,7 +21101,7 @@ const CoinleyModal = ({
21084
21101
  console.log("Proceed button clicked, calling onPaymentMethodSelect");
21085
21102
  onPaymentMethodSelect(selectedPaymentMethod);
21086
21103
  },
21087
- className: "w-full py-3 px-4 bg-[#7042D2] hover:bg-[#7042D2] text-white font-medium rounded-lg transition-colors",
21104
+ className: "coinley-button-primary w-full py-3 px-4 font-medium rounded-lg transition-colors",
21088
21105
  disabled: !selectedPaymentMethod,
21089
21106
  children: [
21090
21107
  "Proceed with ",
@@ -21100,15 +21117,15 @@ const CoinleyModal = ({
21100
21117
  /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "text-lg font-medium mb-2 text-gray-800", children: "Payment Details" }),
21101
21118
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "space-y-2", children: [
21102
21119
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between", children: [
21103
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[#7042D2] font-semibold", children: "Currency:" }),
21120
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-purple-600 font-semibold", children: "Currency:" }),
21104
21121
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium", children: selectedPaymentMethod.currency })
21105
21122
  ] }),
21106
21123
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between", children: [
21107
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[#7042D2] font-semibold", children: "Network:" }),
21124
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-purple-600 font-semibold", children: "Network:" }),
21108
21125
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium", children: getNetworkDisplayName(selectedPaymentMethod.network) })
21109
21126
  ] }),
21110
21127
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex justify-between", children: [
21111
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[#7042D2] font-semibold", children: "Fee:" }),
21128
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-purple-600 font-semibold", children: "Fee:" }),
21112
21129
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "font-medium", children: "1.75%" })
21113
21130
  ] })
21114
21131
  ] })
@@ -21118,7 +21135,7 @@ const CoinleyModal = ({
21118
21135
  "button",
21119
21136
  {
21120
21137
  onClick: () => setPaymentType("wallet"),
21121
- className: `py-2 px-4 text-sm font-medium ${paymentType === "wallet" ? "border-b-2 border-[#7042D2] text-[#7042D2]" : "text-gray-500 hover:text-gray-700"}`,
21138
+ className: `py-2 px-4 text-sm font-medium ${paymentType === "wallet" ? "border-b-2 border-purple-600 text-purple-600" : "text-gray-500 hover:text-gray-700"}`,
21122
21139
  children: "Connect Wallet"
21123
21140
  }
21124
21141
  ),
@@ -21126,7 +21143,7 @@ const CoinleyModal = ({
21126
21143
  "button",
21127
21144
  {
21128
21145
  onClick: () => setPaymentType("qrcode"),
21129
- className: `py-2 px-4 text-sm font-medium ${paymentType === "qrcode" ? "border-b-2 border-[#7042D2] text-[#7042D2]" : "text-gray-500 hover:text-gray-700"}`,
21146
+ className: `py-2 px-4 text-sm font-medium ${paymentType === "qrcode" ? "border-b-2 border-purple-600 text-purple-600" : "text-gray-500 hover:text-gray-700"}`,
21130
21147
  children: "QR Code"
21131
21148
  }
21132
21149
  )
@@ -21134,7 +21151,7 @@ const CoinleyModal = ({
21134
21151
  testMode ? (
21135
21152
  // Test mode payment option
21136
21153
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "p-4 rounded-lg mb-4 bg-blue-50", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "flex items-center", children: [
21137
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-[#7042D2] rounded-full p-2 mr-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "h-6 w-6 text-white", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 10V3L4 14h7v7l9-11h-7z" }) }) }),
21154
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "bg-purple-600 rounded-full p-2 mr-3", children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", className: "h-6 w-6 text-white", fill: "none", viewBox: "0 0 24 24", stroke: "currentColor", children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M13 10V3L4 14h7v7l9-11h-7z" }) }) }),
21138
21155
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
21139
21156
  /* @__PURE__ */ jsxRuntimeExports.jsx("h3", { className: "font-medium text-gray-800", children: "Test Mode Payment" }),
21140
21157
  /* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-sm text-gray-600", children: 'Click "Pay Now" to simulate a successful payment' })
@@ -21149,7 +21166,7 @@ const CoinleyModal = ({
21149
21166
  amount: payment.totalAmount || payment.amount,
21150
21167
  currency: selectedPaymentMethod.currency,
21151
21168
  network: selectedPaymentMethod.network,
21152
- theme
21169
+ theme: theme2
21153
21170
  }
21154
21171
  ) })
21155
21172
  ) : (
@@ -21196,7 +21213,7 @@ const CoinleyModal = ({
21196
21213
  console.log("Connect wallet button clicked for:", walletType);
21197
21214
  onConnectWallet(walletType);
21198
21215
  },
21199
- className: "py-2 px-4 bg-[#7042D2] hover:bg-[#7042D2] text-white font-medium rounded-md text-sm",
21216
+ className: "coinley-button-primary py-2 px-4 font-medium rounded-md text-sm",
21200
21217
  children: "Connect"
21201
21218
  }
21202
21219
  )
@@ -21212,7 +21229,7 @@ const CoinleyModal = ({
21212
21229
  href: getWalletInstallUrl(walletType),
21213
21230
  target: "_blank",
21214
21231
  rel: "noopener noreferrer",
21215
- className: "text-sm text-[#7042D2] hover:underline",
21232
+ className: "text-sm text-purple-600 hover:underline",
21216
21233
  children: "Install"
21217
21234
  }
21218
21235
  )
@@ -21226,7 +21243,7 @@ const CoinleyModal = ({
21226
21243
  {
21227
21244
  type: "button",
21228
21245
  onClick: onBack,
21229
- className: "w-full py-2 px-4 bg-gray-200 hover:bg-gray-300 text-[#7042D2] font-medium rounded-md",
21246
+ className: "w-full py-2 px-4 bg-gray-200 hover:bg-gray-300 text-purple-600 font-medium rounded-md",
21230
21247
  children: "Back"
21231
21248
  }
21232
21249
  ),
@@ -21235,7 +21252,7 @@ const CoinleyModal = ({
21235
21252
  {
21236
21253
  type: "button",
21237
21254
  onClick: () => onPayment(paymentType === "qrcode"),
21238
- className: "w-full py-2 px-4 bg-[#7042D2] hover:bg-[#7042D2] text-white font-medium rounded-md",
21255
+ className: "coinley-button-primary w-full py-2 px-4 font-medium rounded-md",
21239
21256
  disabled: !testMode && paymentType === "wallet" && !walletConnection,
21240
21257
  children: paymentType === "qrcode" ? "I have sent the payment" : "Pay Now"
21241
21258
  }
@@ -21246,7 +21263,7 @@ const CoinleyModal = ({
21246
21263
  PaymentStatus,
21247
21264
  {
21248
21265
  status: "processing",
21249
- theme,
21266
+ theme: theme2,
21250
21267
  message: "Processing your payment..."
21251
21268
  }
21252
21269
  ),
@@ -21255,7 +21272,7 @@ const CoinleyModal = ({
21255
21272
  PaymentStatus,
21256
21273
  {
21257
21274
  status: "success",
21258
- theme,
21275
+ theme: theme2,
21259
21276
  message: "Payment successful!"
21260
21277
  }
21261
21278
  ),
@@ -21268,7 +21285,7 @@ const CoinleyModal = ({
21268
21285
  href: `${getExplorerUrl(selectedPaymentMethod.network)}/${getExplorerPath(selectedPaymentMethod.network)}/${transactionHash}`,
21269
21286
  target: "_blank",
21270
21287
  rel: "noopener noreferrer",
21271
- className: "text-xs text-[#7042D2] mt-2 inline-block",
21288
+ className: "text-xs text-purple-600 mt-2 inline-block",
21272
21289
  children: "View on Explorer →"
21273
21290
  }
21274
21291
  )
@@ -21279,7 +21296,7 @@ const CoinleyModal = ({
21279
21296
  PaymentStatus,
21280
21297
  {
21281
21298
  status: "error",
21282
- theme,
21299
+ theme: theme2,
21283
21300
  message: error || "An error occurred while processing your payment."
21284
21301
  }
21285
21302
  ),
@@ -21296,7 +21313,7 @@ const CoinleyModal = ({
21296
21313
  ] }),
21297
21314
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "text-center text-xs text-gray-500", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("p", { children: [
21298
21315
  "Powered by ",
21299
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-[#7042D2]", children: "Coinley" }),
21316
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "text-purple-600", children: "Coinley" }),
21300
21317
  " - Secure Cryptocurrency Payments"
21301
21318
  ] }) })
21302
21319
  ] }) }) });
@@ -21330,7 +21347,7 @@ const CoinleyCheckout = forwardRef(({
21330
21347
  onSuccess,
21331
21348
  onError,
21332
21349
  onClose,
21333
- theme,
21350
+ theme: theme2,
21334
21351
  autoOpen = false,
21335
21352
  debug = false,
21336
21353
  testMode = false,
@@ -21353,7 +21370,7 @@ const CoinleyCheckout = forwardRef(({
21353
21370
  const effectiveApiKey = apiKey || (coinleyContext == null ? void 0 : coinleyContext.apiKey);
21354
21371
  const effectiveApiSecret = apiSecret || (coinleyContext == null ? void 0 : coinleyContext.apiSecret);
21355
21372
  apiUrl || (coinleyContext == null ? void 0 : coinleyContext.apiUrl);
21356
- const effectiveTheme = theme || contextTheme;
21373
+ const effectiveTheme = theme2 || contextTheme;
21357
21374
  const effectiveDebug = debug || (coinleyContext == null ? void 0 : coinleyContext.debug);
21358
21375
  const effectiveSupportedNetworks = supportedNetworks.length > 0 ? supportedNetworks : [NETWORK_TYPES.ETHEREUM, NETWORK_TYPES.BSC, NETWORK_TYPES.TRON, NETWORK_TYPES.ALGORAND];
21359
21376
  const log = (message, data) => {