@akinon/pz-saved-card 2.0.0-beta.10 → 2.0.0-beta.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @akinon/pz-saved-card
2
2
 
3
+ ## 2.0.0-beta.12
4
+
5
+ ### Minor Changes
6
+
7
+ - 1d79e32: ZERO-3540: Next.js Upgrade to 15.4.5
8
+
9
+ ## 2.0.0-beta.11
10
+
11
+ ### Minor Changes
12
+
13
+ - ac783d6: ZERO-3482: Update tailwindcss to version 4.1.11 and enhance button cursor styles
14
+
3
15
  ## 2.0.0-beta.10
4
16
 
5
17
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akinon/pz-saved-card",
3
- "version": "2.0.0-beta.10",
3
+ "version": "2.0.0-beta.12",
4
4
  "license": "MIT",
5
5
  "main": "src/index.tsx",
6
6
  "peerDependencies": {
@@ -17,6 +17,7 @@ export const AgreementAndSubmit = ({
17
17
  <Button
18
18
  type="submit"
19
19
  className="group uppercase mt-4 inline-flex items-center justify-center"
20
+ data-testid="saved-card-submit-button"
20
21
  >
21
22
  <span>{buttonText}</span>
22
23
  <Icon name="chevron-end" size={12} className="ml-2 h-3" />
@@ -16,7 +16,7 @@ export const CardSelectionSection = ({
16
16
  <div className="border-solid border-gray-400 px-4 py-2">
17
17
  <span className="text-black-800 text-lg font-medium">{title}</span>
18
18
  <ul className="mt-4 text-xs w-full">
19
- {cards?.map((card) => (
19
+ {cards?.map((card, index) => (
20
20
  <li
21
21
  key={card.token}
22
22
  className="p-4 mb-2 border-2 border-gray-200 flex justify-between items-center cursor-pointer"
@@ -24,6 +24,7 @@ export const CardSelectionSection = ({
24
24
  e.preventDefault();
25
25
  onSelect(card);
26
26
  }}
27
+ data-testid={`saved-card-item-${index}`}
27
28
  >
28
29
  <input
29
30
  name="card"
@@ -68,7 +68,7 @@ const SavedCardInstallments = ({
68
68
  </tr>
69
69
  </thead>
70
70
  <tbody>
71
- {installmentOptions.map((option) => (
71
+ {installmentOptions.map((option, index) => (
72
72
  <tr
73
73
  key={`installment-${option.pk}`}
74
74
  className="border-t border-solid border-gray-400"
@@ -84,6 +84,7 @@ const SavedCardInstallments = ({
84
84
  });
85
85
  setInstallmentOption(option.pk);
86
86
  }}
87
+ data-testid={`saved-card-installment-${index}`}
87
88
  >
88
89
  <span className="w-full flex items-center justify-start pl-2">
89
90
  <span className="text-xs text-black-800 transition-all">