@superlogic/spree-pay 0.5.5 → 0.5.6

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Iframe3ds
3
- } from "./chunk-OTFCW74L.js";
3
+ } from "./chunk-Z46HQDLM.js";
4
4
  import {
5
5
  InfoBanner,
6
6
  Legal,
@@ -15,7 +15,7 @@ import {
15
15
  useSpreePayRegister,
16
16
  useSpreePaymentMethod,
17
17
  useStaticConfig
18
- } from "./chunk-WYLYH7AK.js";
18
+ } from "./chunk-AY2P6ERB.js";
19
19
 
20
20
  // src/components/CryptoComTab/CryptoComTab.tsx
21
21
  import { useCallback, useEffect } from "react";
@@ -2,7 +2,7 @@ import {
2
2
  CheckoutButton,
3
3
  PointsSwitch,
4
4
  cn as cn2
5
- } from "./chunk-UVD3GGPC.js";
5
+ } from "./chunk-I43QASEW.js";
6
6
  import {
7
7
  Dialog,
8
8
  DialogContent,
@@ -20,7 +20,7 @@ import {
20
20
  useSpreePayConfig,
21
21
  useSpreePayRegister,
22
22
  useSpreePaymentMethod
23
- } from "./chunk-WYLYH7AK.js";
23
+ } from "./chunk-AY2P6ERB.js";
24
24
 
25
25
  // src/components/CryptoTab/Crypto/CryptoWrapper.tsx
26
26
  import { useMemo as useMemo2 } from "react";
@@ -635,7 +635,7 @@ var CryptoSelectModal = esm_default.create(() => {
635
635
  ] }),
636
636
  /* @__PURE__ */ jsx8(Separator2, { className: "hidden md:block" }),
637
637
  /* @__PURE__ */ jsxs4("div", { className: "flex flex-col gap-4 px-5 py-5 md:px-7", children: [
638
- /* @__PURE__ */ jsx8("h3", { className: "text-md font-medium text-(--brand-primary)", children: "Tokens with wallet balance" }),
638
+ /* @__PURE__ */ jsx8("h3", { className: "text-base font-medium text-(--brand-primary)", children: "Tokens with wallet balance" }),
639
639
  (error || nativeError) && /* @__PURE__ */ jsx8("p", { className: "text-center text-sm text-(--negative)", children: "Something wrong" }),
640
640
  /* @__PURE__ */ jsxs4("div", { className: "flex w-full flex-col gap-1", children: [
641
641
  isLoadingNative && /* @__PURE__ */ jsx8("div", { className: "h-11 animate-pulse rounded-md bg-(--s-primary)" }),
@@ -678,7 +678,7 @@ var CryptoSelectModal = esm_default.create(() => {
678
678
  );
679
679
  })
680
680
  ] }),
681
- /* @__PURE__ */ jsx8("h3", { className: "text-md font-medium text-(--brand-primary)", children: "All Tokens" }),
681
+ /* @__PURE__ */ jsx8("h3", { className: "text-base font-medium text-(--brand-primary)", children: "All Tokens" }),
682
682
  /* @__PURE__ */ jsxs4("div", { className: "flex max-h-[40vh] w-full flex-col gap-1 overflow-y-auto", children: [
683
683
  tokensIsLoading && /* @__PURE__ */ jsxs4(Fragment2, { children: [
684
684
  /* @__PURE__ */ jsx8("div", { className: "h-11 animate-pulse rounded-md bg-(--s-primary)" }),
@@ -86,7 +86,7 @@ var settlePaymentResult = (res, fallbackMessage, failureCode = "PAYMENT_ERROR" /
86
86
  };
87
87
 
88
88
  // package.json
89
- var version = "0.5.5";
89
+ var version = "0.5.6";
90
90
 
91
91
  // src/utils/logger.ts
92
92
  var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
@@ -7,7 +7,7 @@ import {
7
7
  useSpreePayEnv,
8
8
  useSpreePaymentMethod,
9
9
  useStaticConfig
10
- } from "./chunk-WYLYH7AK.js";
10
+ } from "./chunk-AY2P6ERB.js";
11
11
 
12
12
  // src/components/common/PointsSwitch.tsx
13
13
  import { useId } from "react";
@@ -107,7 +107,7 @@ var PointsSwitch = (props) => {
107
107
  Label,
108
108
  {
109
109
  htmlFor: id,
110
- className: "text-md flex-col items-baseline gap-0 leading-[1.3] font-medium text-(--brand-primary) sm:flex-row sm:gap-2 md:text-[22px]",
110
+ className: "flex-col items-baseline gap-0 text-base leading-[1.3] font-medium text-(--brand-primary) sm:flex-row sm:gap-2 md:text-[22px]",
111
111
  children: [
112
112
  "Use Points ",
113
113
  /* @__PURE__ */ jsx3("span", { className: "text-xs font-medium text-(--tertiary)", children: "Optional" })
@@ -256,8 +256,8 @@ var CheckoutButton = () => {
256
256
  }
257
257
  return "Checkout";
258
258
  };
259
- const checkoutClass = "text-(--inverse) h-14 leading-14 w-full cursor-pointer rounded-4xl bg-(--s-brand) hover:bg-(--s-brand-hover) px-4 text-center text-xl leading-6 font-medium disabled:cursor-not-allowed disabled:bg-(--s-disabled) disabled:text-(--disabled)";
260
- return /* @__PURE__ */ jsxs3("div", { className: "flex w-full flex-col gap-4 p-6 text-xs leading-5 font-medium text-(--secondary) md:px-7", children: [
259
+ const checkoutClass = "text-(--inverse) py-4 w-full cursor-pointer rounded-4xl bg-(--s-brand) hover:bg-(--s-brand-hover) px-3 text-center text-base md:text-xl leading-6 font-medium disabled:cursor-not-allowed disabled:bg-(--s-disabled) disabled:text-(--disabled)";
260
+ return /* @__PURE__ */ jsxs3("div", { className: "flex w-full flex-col gap-4 p-5 leading-5 font-medium text-(--secondary) md:px-7", children: [
261
261
  /* @__PURE__ */ jsx5(Legal, {}),
262
262
  isLoggedIn ? /* @__PURE__ */ jsx5(Fragment, { children: onProcess && /* @__PURE__ */ jsx5("button", { disabled: isDisabled, onClick: onProcess, className: checkoutClass, children: getCheckoutContent() }) }) : /* @__PURE__ */ jsx5(
263
263
  "a",
@@ -268,7 +268,7 @@ var CheckoutButton = () => {
268
268
  }
269
269
  ),
270
270
  /* @__PURE__ */ jsxs3("a", { href: "https://www.spree.finance/", className: "flex items-center justify-center gap-2 hover:underline", children: [
271
- /* @__PURE__ */ jsx5("p", { children: "Powered by" }),
271
+ /* @__PURE__ */ jsx5("p", { className: "text-xs", children: "Powered by" }),
272
272
  /* @__PURE__ */ jsx5("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", className: "h-[30px]", viewBox: "0 0 66 30", children: /* @__PURE__ */ jsx5(
273
273
  "path",
274
274
  {
@@ -5,7 +5,7 @@ import {
5
5
  DialogTitle,
6
6
  esm_default,
7
7
  useModal
8
- } from "./chunk-WYLYH7AK.js";
8
+ } from "./chunk-AY2P6ERB.js";
9
9
 
10
10
  // src/modals/Iframe3ds.tsx
11
11
  import { useEffect } from "react";
package/build/index.cjs CHANGED
@@ -575,7 +575,7 @@ var init_errors = __esm({
575
575
  var version;
576
576
  var init_package = __esm({
577
577
  "package.json"() {
578
- version = "0.5.5";
578
+ version = "0.5.6";
579
579
  }
580
580
  });
581
581
 
@@ -1706,7 +1706,7 @@ var init_PointsSwitch = __esm({
1706
1706
  Label,
1707
1707
  {
1708
1708
  htmlFor: id,
1709
- className: "text-md flex-col items-baseline gap-0 leading-[1.3] font-medium text-(--brand-primary) sm:flex-row sm:gap-2 md:text-[22px]",
1709
+ className: "flex-col items-baseline gap-0 text-base leading-[1.3] font-medium text-(--brand-primary) sm:flex-row sm:gap-2 md:text-[22px]",
1710
1710
  children: [
1711
1711
  "Use Points ",
1712
1712
  /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "text-xs font-medium text-(--tertiary)", children: "Optional" })
@@ -1840,8 +1840,8 @@ var init_CheckoutButton = __esm({
1840
1840
  }
1841
1841
  return "Checkout";
1842
1842
  };
1843
- const checkoutClass = "text-(--inverse) h-14 leading-14 w-full cursor-pointer rounded-4xl bg-(--s-brand) hover:bg-(--s-brand-hover) px-4 text-center text-xl leading-6 font-medium disabled:cursor-not-allowed disabled:bg-(--s-disabled) disabled:text-(--disabled)";
1844
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex w-full flex-col gap-4 p-6 text-xs leading-5 font-medium text-(--secondary) md:px-7", children: [
1843
+ const checkoutClass = "text-(--inverse) py-4 w-full cursor-pointer rounded-4xl bg-(--s-brand) hover:bg-(--s-brand-hover) px-3 text-center text-base md:text-xl leading-6 font-medium disabled:cursor-not-allowed disabled:bg-(--s-disabled) disabled:text-(--disabled)";
1844
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "flex w-full flex-col gap-4 p-5 leading-5 font-medium text-(--secondary) md:px-7", children: [
1845
1845
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Legal, {}),
1846
1846
  isLoggedIn ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_jsx_runtime12.Fragment, { children: onProcess && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("button", { disabled: isDisabled, onClick: onProcess, className: checkoutClass, children: getCheckoutContent() }) }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1847
1847
  "a",
@@ -1852,7 +1852,7 @@ var init_CheckoutButton = __esm({
1852
1852
  }
1853
1853
  ),
1854
1854
  /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("a", { href: "https://www.spree.finance/", className: "flex items-center justify-center gap-2 hover:underline", children: [
1855
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { children: "Powered by" }),
1855
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("p", { className: "text-xs", children: "Powered by" }),
1856
1856
  /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", className: "h-[30px]", viewBox: "0 0 66 30", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
1857
1857
  "path",
1858
1858
  {
@@ -2649,7 +2649,7 @@ var init_CryptoSelectModal = __esm({
2649
2649
  ] }),
2650
2650
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(Separator2, { className: "hidden md:block" }),
2651
2651
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex flex-col gap-4 px-5 py-5 md:px-7", children: [
2652
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h3", { className: "text-md font-medium text-(--brand-primary)", children: "Tokens with wallet balance" }),
2652
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h3", { className: "text-base font-medium text-(--brand-primary)", children: "Tokens with wallet balance" }),
2653
2653
  (error || nativeError) && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("p", { className: "text-center text-sm text-(--negative)", children: "Something wrong" }),
2654
2654
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex w-full flex-col gap-1", children: [
2655
2655
  isLoadingNative && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "h-11 animate-pulse rounded-md bg-(--s-primary)" }),
@@ -2692,7 +2692,7 @@ var init_CryptoSelectModal = __esm({
2692
2692
  );
2693
2693
  })
2694
2694
  ] }),
2695
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h3", { className: "text-md font-medium text-(--brand-primary)", children: "All Tokens" }),
2695
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("h3", { className: "text-base font-medium text-(--brand-primary)", children: "All Tokens" }),
2696
2696
  /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "flex max-h-[40vh] w-full flex-col gap-1 overflow-y-auto", children: [
2697
2697
  tokensIsLoading && /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(import_jsx_runtime38.Fragment, { children: [
2698
2698
  /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("div", { className: "h-11 animate-pulse rounded-md bg-(--s-primary)" }),
@@ -4088,7 +4088,7 @@ var CreditCard = ({ newCards, setNewCards }) => {
4088
4088
  {
4089
4089
  onClick: handleAddNewCard,
4090
4090
  disabled: !canUseForm,
4091
- className: "text-md text-(--brand-primary) hover:underline disabled:cursor-not-allowed disabled:no-underline disabled:opacity-50",
4091
+ className: "text-base text-(--brand-primary) hover:underline disabled:cursor-not-allowed disabled:no-underline disabled:opacity-50",
4092
4092
  children: "Add new card"
4093
4093
  }
4094
4094
  )
@@ -5178,7 +5178,7 @@ var PointsSelector = (props) => {
5178
5178
  readOnly: true,
5179
5179
  name: "points amount",
5180
5180
  value: pointsValue,
5181
- className: "sm:text-md min-w-[50px] bg-(--s-default) px-1 text-center text-xs font-medium sm:min-w-[100px] sm:px-2",
5181
+ className: "min-w-[50px] bg-(--s-default) px-1 text-center text-xs font-medium sm:min-w-[100px] sm:px-2 sm:text-base",
5182
5182
  style: { width: `${pointsValue.length}ch` },
5183
5183
  onClick: (e) => e.stopPropagation()
5184
5184
  }
@@ -5206,7 +5206,7 @@ var PointsSelector = (props) => {
5206
5206
  readOnly: true,
5207
5207
  name: "card amount",
5208
5208
  value: cashDisplayValue,
5209
- className: "sm:text-md min-w-[50px] bg-(--s-default) px-1 text-center text-xs font-medium sm:min-w-[100px] sm:px-2",
5209
+ className: "min-w-[50px] bg-(--s-default) px-1 text-center text-xs font-medium sm:min-w-[100px] sm:px-2 sm:text-base",
5210
5210
  style: { width: `${cashDisplayValue.length}ch` },
5211
5211
  onClick: (e) => e.stopPropagation()
5212
5212
  }
@@ -5448,7 +5448,7 @@ var TabButtons = (props) => {
5448
5448
  d: "M28 8.82v14.36q0 .92-.62 1.54-.6.6-1.53.61H6.15q-.91 0-1.53-.61A2 2 0 0 1 4 23.18V8.82q0-.92.62-1.54.6-.6 1.53-.61h19.7q.91 0 1.53.61.62.62.62 1.54M5.33 11.74h21.34V8.82q0-.31-.26-.56a.8.8 0 0 0-.56-.26H6.15q-.3 0-.56.26a.8.8 0 0 0-.26.56zm0 3.18v8.26q0 .31.26.56t.56.26h19.7q.3 0 .56-.26a.8.8 0 0 0 .26-.56v-8.26z"
5449
5449
  }
5450
5450
  ) }),
5451
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "md:text-md text-sm font-medium", children: "Card" })
5451
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-sm font-medium md:text-base", children: "Card" })
5452
5452
  ] }),
5453
5453
  spreePayConfig?.crypto.enabled && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(TabButton, { onClick: handleChange("CRYPTO" /* CRYPTO */), isActive: value === "CRYPTO" /* CRYPTO */, children: [
5454
5454
  /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", className: "size-8", viewBox: "0 0 32 32", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
@@ -5458,7 +5458,7 @@ var TabButtons = (props) => {
5458
5458
  d: "M21 9.86a8 8 0 0 1 3 5.43l-2.85-.71a5.4 5.4 0 0 0-3.86-3.67 5.3 5.3 0 0 0-6.46 3.8 5.3 5.3 0 0 0 3.91 6.4 5.4 5.4 0 0 0 5.14-1.43l2.85.7a8 8 0 0 1-5.2 3.39L16.72 27l-2.6-.65.64-2.57a8 8 0 0 1-1.3-.32l-.64 2.57-2.6-.65.82-3.24a7.9 7.9 0 0 1-2.8-8.08 7.9 7.9 0 0 1 6.27-5.82L15.32 5l2.6.64-.65 2.58q.67.1 1.3.32l.65-2.57 2.6.64z"
5459
5459
  }
5460
5460
  ) }),
5461
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "md:text-md text-sm font-medium", children: "Crypto" })
5461
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-sm font-medium md:text-base", children: "Crypto" })
5462
5462
  ] }),
5463
5463
  spreePayConfig?.cryptoCom.enabled && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(TabButton, { onClick: handleChange("CDC" /* CDC */), isActive: value === "CDC" /* CDC */, children: [
5464
5464
  /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", className: "h-8 w-11", viewBox: "0 0 44 32", children: [
@@ -5477,7 +5477,7 @@ var TabButtons = (props) => {
5477
5477
  }
5478
5478
  )
5479
5479
  ] }),
5480
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "md:text-md text-sm font-medium", children: "Crypto.com Pay" })
5480
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-sm font-medium md:text-base", children: "Crypto.com Pay" })
5481
5481
  ] })
5482
5482
  ] });
5483
5483
  };
package/build/index.css CHANGED
@@ -403,9 +403,6 @@
403
403
  .sl-spreepay .h-12 {
404
404
  height: calc(var(--spacing) * 12);
405
405
  }
406
- .sl-spreepay .h-14 {
407
- height: calc(var(--spacing) * 14);
408
- }
409
406
  .sl-spreepay .h-15 {
410
407
  height: calc(var(--spacing) * 15);
411
408
  }
@@ -727,6 +724,9 @@
727
724
  .sl-spreepay .p-2 {
728
725
  padding: calc(var(--spacing) * 2);
729
726
  }
727
+ .sl-spreepay .p-5 {
728
+ padding: calc(var(--spacing) * 5);
729
+ }
730
730
  .sl-spreepay .p-6 {
731
731
  padding: calc(var(--spacing) * 6);
732
732
  }
@@ -1622,6 +1622,12 @@
1622
1622
  text-align: left;
1623
1623
  }
1624
1624
  }
1625
+ .sl-spreepay .sm\:text-base {
1626
+ @media (width >= 40rem) {
1627
+ font-size: var(--text-base);
1628
+ line-height: var(--tw-leading, var(--text-base--line-height));
1629
+ }
1630
+ }
1625
1631
  .sl-spreepay .sm\:text-sm {
1626
1632
  @media (width >= 40rem) {
1627
1633
  font-size: var(--text-sm);
@@ -1663,12 +1669,24 @@
1663
1669
  padding-bottom: calc(var(--spacing) * 7);
1664
1670
  }
1665
1671
  }
1672
+ .sl-spreepay .md\:text-base {
1673
+ @media (width >= 48rem) {
1674
+ font-size: var(--text-base);
1675
+ line-height: var(--tw-leading, var(--text-base--line-height));
1676
+ }
1677
+ }
1666
1678
  .sl-spreepay .md\:text-sm {
1667
1679
  @media (width >= 48rem) {
1668
1680
  font-size: var(--text-sm);
1669
1681
  line-height: var(--tw-leading, var(--text-sm--line-height));
1670
1682
  }
1671
1683
  }
1684
+ .sl-spreepay .md\:text-xl {
1685
+ @media (width >= 48rem) {
1686
+ font-size: var(--text-xl);
1687
+ line-height: var(--tw-leading, var(--text-xl--line-height));
1688
+ }
1689
+ }
1672
1690
  .sl-spreepay .md\:text-\[22px\] {
1673
1691
  @media (width >= 48rem) {
1674
1692
  font-size: 22px;
package/build/index.js CHANGED
@@ -8,10 +8,10 @@ import {
8
8
  getSplitAmount,
9
9
  getTransactionFee,
10
10
  useSlapiBalance
11
- } from "./chunk-UVD3GGPC.js";
11
+ } from "./chunk-I43QASEW.js";
12
12
  import {
13
13
  Iframe3ds
14
- } from "./chunk-OTFCW74L.js";
14
+ } from "./chunk-Z46HQDLM.js";
15
15
  import {
16
16
  InfoBanner,
17
17
  LogLevel,
@@ -43,7 +43,7 @@ import {
43
43
  useSpreePayRegister,
44
44
  useSpreePaymentMethod,
45
45
  useStaticConfig
46
- } from "./chunk-WYLYH7AK.js";
46
+ } from "./chunk-AY2P6ERB.js";
47
47
 
48
48
  // src/SpreePay.tsx
49
49
  import { useCallback as useCallback8, useEffect as useEffect9, useMemo as useMemo9, useState as useState12 } from "react";
@@ -950,7 +950,7 @@ var CreditCard = ({ newCards, setNewCards }) => {
950
950
  {
951
951
  onClick: handleAddNewCard,
952
952
  disabled: !canUseForm,
953
- className: "text-md text-(--brand-primary) hover:underline disabled:cursor-not-allowed disabled:no-underline disabled:opacity-50",
953
+ className: "text-base text-(--brand-primary) hover:underline disabled:cursor-not-allowed disabled:no-underline disabled:opacity-50",
954
954
  children: "Add new card"
955
955
  }
956
956
  )
@@ -2018,7 +2018,7 @@ var PointsSelector = (props) => {
2018
2018
  readOnly: true,
2019
2019
  name: "points amount",
2020
2020
  value: pointsValue,
2021
- className: "sm:text-md min-w-[50px] bg-(--s-default) px-1 text-center text-xs font-medium sm:min-w-[100px] sm:px-2",
2021
+ className: "min-w-[50px] bg-(--s-default) px-1 text-center text-xs font-medium sm:min-w-[100px] sm:px-2 sm:text-base",
2022
2022
  style: { width: `${pointsValue.length}ch` },
2023
2023
  onClick: (e) => e.stopPropagation()
2024
2024
  }
@@ -2046,7 +2046,7 @@ var PointsSelector = (props) => {
2046
2046
  readOnly: true,
2047
2047
  name: "card amount",
2048
2048
  value: cashDisplayValue,
2049
- className: "sm:text-md min-w-[50px] bg-(--s-default) px-1 text-center text-xs font-medium sm:min-w-[100px] sm:px-2",
2049
+ className: "min-w-[50px] bg-(--s-default) px-1 text-center text-xs font-medium sm:min-w-[100px] sm:px-2 sm:text-base",
2050
2050
  style: { width: `${cashDisplayValue.length}ch` },
2051
2051
  onClick: (e) => e.stopPropagation()
2052
2052
  }
@@ -2286,7 +2286,7 @@ var TabButtons = (props) => {
2286
2286
  d: "M28 8.82v14.36q0 .92-.62 1.54-.6.6-1.53.61H6.15q-.91 0-1.53-.61A2 2 0 0 1 4 23.18V8.82q0-.92.62-1.54.6-.6 1.53-.61h19.7q.91 0 1.53.61.62.62.62 1.54M5.33 11.74h21.34V8.82q0-.31-.26-.56a.8.8 0 0 0-.56-.26H6.15q-.3 0-.56.26a.8.8 0 0 0-.26.56zm0 3.18v8.26q0 .31.26.56t.56.26h19.7q.3 0 .56-.26a.8.8 0 0 0 .26-.56v-8.26z"
2287
2287
  }
2288
2288
  ) }),
2289
- /* @__PURE__ */ jsx17("p", { className: "md:text-md text-sm font-medium", children: "Card" })
2289
+ /* @__PURE__ */ jsx17("p", { className: "text-sm font-medium md:text-base", children: "Card" })
2290
2290
  ] }),
2291
2291
  spreePayConfig?.crypto.enabled && /* @__PURE__ */ jsxs10(TabButton, { onClick: handleChange("CRYPTO" /* CRYPTO */), isActive: value === "CRYPTO" /* CRYPTO */, children: [
2292
2292
  /* @__PURE__ */ jsx17("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", className: "size-8", viewBox: "0 0 32 32", children: /* @__PURE__ */ jsx17(
@@ -2296,7 +2296,7 @@ var TabButtons = (props) => {
2296
2296
  d: "M21 9.86a8 8 0 0 1 3 5.43l-2.85-.71a5.4 5.4 0 0 0-3.86-3.67 5.3 5.3 0 0 0-6.46 3.8 5.3 5.3 0 0 0 3.91 6.4 5.4 5.4 0 0 0 5.14-1.43l2.85.7a8 8 0 0 1-5.2 3.39L16.72 27l-2.6-.65.64-2.57a8 8 0 0 1-1.3-.32l-.64 2.57-2.6-.65.82-3.24a7.9 7.9 0 0 1-2.8-8.08 7.9 7.9 0 0 1 6.27-5.82L15.32 5l2.6.64-.65 2.58q.67.1 1.3.32l.65-2.57 2.6.64z"
2297
2297
  }
2298
2298
  ) }),
2299
- /* @__PURE__ */ jsx17("p", { className: "md:text-md text-sm font-medium", children: "Crypto" })
2299
+ /* @__PURE__ */ jsx17("p", { className: "text-sm font-medium md:text-base", children: "Crypto" })
2300
2300
  ] }),
2301
2301
  spreePayConfig?.cryptoCom.enabled && /* @__PURE__ */ jsxs10(TabButton, { onClick: handleChange("CDC" /* CDC */), isActive: value === "CDC" /* CDC */, children: [
2302
2302
  /* @__PURE__ */ jsxs10("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", className: "h-8 w-11", viewBox: "0 0 44 32", children: [
@@ -2315,16 +2315,16 @@ var TabButtons = (props) => {
2315
2315
  }
2316
2316
  )
2317
2317
  ] }),
2318
- /* @__PURE__ */ jsx17("p", { className: "md:text-md text-sm font-medium", children: "Crypto.com Pay" })
2318
+ /* @__PURE__ */ jsx17("p", { className: "text-sm font-medium md:text-base", children: "Crypto.com Pay" })
2319
2319
  ] })
2320
2320
  ] });
2321
2321
  };
2322
2322
 
2323
2323
  // src/SpreePayContent.tsx
2324
2324
  import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
2325
- var CryptoTab = lazy(() => import("./CryptoTab-ROWYOLOL.js").then((module) => ({ default: module.CryptoTab })));
2325
+ var CryptoTab = lazy(() => import("./CryptoTab-Z5PAQFCK.js").then((module) => ({ default: module.CryptoTab })));
2326
2326
  var CryptoComTab = lazy(
2327
- () => import("./CryptoComTab-3MCYJORT.js").then((module) => ({ default: module.CryptoComTab }))
2327
+ () => import("./CryptoComTab-R5HTG4SN.js").then((module) => ({ default: module.CryptoComTab }))
2328
2328
  );
2329
2329
  var TabLoadingFallback = () => /* @__PURE__ */ jsx18("div", { className: "flex items-center justify-center px-5 py-8 md:px-7", children: /* @__PURE__ */ jsxs11("div", { className: "flex flex-col items-center gap-3", children: [
2330
2330
  /* @__PURE__ */ jsx18("div", { className: "h-8 w-8 animate-spin rounded-full border-4 border-(--border-component-specific-card) border-t-(--brand-primary)" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superlogic/spree-pay",
3
- "version": "0.5.5",
3
+ "version": "0.5.6",
4
4
  "description": "Spree-pay React component and utilities",
5
5
  "private": false,
6
6
  "type": "module",