@tesouro/embedded-components-react 0.2.282 → 0.2.283
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/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js +4 -4
- package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsListRow.js +13 -15
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/cards-widget/ui/dist/lib/CardsList/CardsList.js
CHANGED
|
@@ -59,12 +59,12 @@ function T({ rows: t, columns: _, isLoading: C = !1, isError: T = !1, canToggleS
|
|
|
59
59
|
E && O && /* @__PURE__ */ y("div", {
|
|
60
60
|
className: "ttw:mb-4 ttw:flex ttw:items-center ttw:gap-3",
|
|
61
61
|
children: [/* @__PURE__ */ v(n, {
|
|
62
|
-
id: H,
|
|
63
62
|
checked: D,
|
|
64
63
|
disabled: C,
|
|
65
|
-
onCheckedChange: O
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
onCheckedChange: O,
|
|
65
|
+
"aria-labelledby": H
|
|
66
|
+
}), /* @__PURE__ */ v("span", {
|
|
67
|
+
id: H,
|
|
68
68
|
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
69
69
|
children: U.showMyCardsToggle
|
|
70
70
|
})]
|
|
@@ -34,17 +34,8 @@ function c({ row: e, labels: t }) {
|
|
|
34
34
|
})] });
|
|
35
35
|
}
|
|
36
36
|
function l({ row: i, columns: a, labels: l }) {
|
|
37
|
-
let u = !!i.onActivate, d = {
|
|
38
|
-
cardName:
|
|
39
|
-
type: "button",
|
|
40
|
-
"aria-label": `${l.selectCardButton} ${i.nickname} ${i.lastFour} ${i.typeLabel}`,
|
|
41
|
-
onClick: () => i.onSelect?.(),
|
|
42
|
-
className: "ttw:flex ttw:w-full ttw:items-center ttw:gap-3 ttw:rounded-md ttw:text-left ttw:outline-none ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:ring-offset-2",
|
|
43
|
-
children: /* @__PURE__ */ o(c, {
|
|
44
|
-
row: i,
|
|
45
|
-
labels: l
|
|
46
|
-
})
|
|
47
|
-
}) : /* @__PURE__ */ o("span", {
|
|
37
|
+
let u = !!i.onActivate, d = !!i.onSelect, f = {
|
|
38
|
+
cardName: /* @__PURE__ */ o("span", {
|
|
48
39
|
className: "ttw:flex ttw:w-full ttw:items-center ttw:gap-3",
|
|
49
40
|
children: /* @__PURE__ */ o(c, {
|
|
50
41
|
row: i,
|
|
@@ -79,13 +70,20 @@ function l({ row: i, columns: a, labels: l }) {
|
|
|
79
70
|
};
|
|
80
71
|
return /* @__PURE__ */ s(n, {
|
|
81
72
|
"data-testid": `cards-list-row-${i.key}`,
|
|
82
|
-
className: "ttw:h-18",
|
|
83
|
-
children: [a.map((e) => /* @__PURE__ */
|
|
84
|
-
|
|
73
|
+
className: d ? "ttw:relative ttw:h-18 ttw:cursor-pointer" : "ttw:h-18",
|
|
74
|
+
children: [a.map((e, n) => /* @__PURE__ */ s(t, { children: [n === 0 && d ? /* @__PURE__ */ o("button", {
|
|
75
|
+
type: "button",
|
|
76
|
+
"aria-label": `${l.selectCardButton} ${i.nickname} ${i.lastFour} ${i.typeLabel}`,
|
|
77
|
+
onClick: () => i.onSelect?.(),
|
|
78
|
+
className: "ttw:absolute ttw:inset-0 ttw:z-10 ttw:cursor-pointer ttw:rounded-md ttw:outline-none ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:ring-offset-2"
|
|
79
|
+
}) : null, f[e]] }, e)), /* @__PURE__ */ o(t, {
|
|
80
|
+
className: d ? "ttw:relative ttw:z-20 ttw:text-right" : "ttw:text-right",
|
|
85
81
|
children: u && /* @__PURE__ */ o(e, {
|
|
86
82
|
size: "sm",
|
|
87
83
|
"aria-label": `${l.activateButtonForCard} ${i.nickname}`,
|
|
88
|
-
onClick: () =>
|
|
84
|
+
onClick: (e) => {
|
|
85
|
+
e.stopPropagation(), i.onActivate?.();
|
|
86
|
+
},
|
|
89
87
|
children: l.activateButton
|
|
90
88
|
})
|
|
91
89
|
})]
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.2.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.2.283", n = "bd774981bed33b822fdb0bd1942e331510e7d95c", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|