@tesouro/embedded-components-react 0.11.46 → 0.11.49

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.
@@ -6,40 +6,40 @@ var o = (e) => t("ttw:flex ttw:flex-row ttw:items-center ttw:w-full ttw:min-w-0
6
6
  "ttw:hover:border-b-transparent ttw:hover:bg-muted ttw:hover:rounded-lg",
7
7
  "ttw:cursor-pointer",
8
8
  "ttw:focus-visible:outline-2 ttw:focus-visible:-outline-offset-2 ttw:focus-visible:outline-ring"
9
- ] : "ttw:cursor-default"), s = ({ row: t, isRowClickable: s, onRowClick: c, testIds: l }) => {
10
- let u = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
9
+ ] : "ttw:cursor-default"), s = ({ row: s, isRowClickable: c, onRowClick: l, testIds: u }) => {
10
+ let d = /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
11
11
  className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:items-center ttw:gap-2 ttw:overflow-hidden",
12
12
  children: [/* @__PURE__ */ i(e, {
13
13
  component: "span",
14
14
  variant: "body1",
15
- className: "ttw:min-w-0 ttw:truncate ttw:font-medium ttw:text-foreground",
16
- children: t.title
15
+ className: t("ttw:min-w-0 ttw:truncate ttw:font-medium", c && l ? "ttw:text-primary" : "ttw:text-foreground"),
16
+ children: s.title
17
17
  }), /* @__PURE__ */ i(e, {
18
18
  component: "span",
19
19
  variant: "body1",
20
- "data-testid": l?.accountNumber,
20
+ "data-testid": u?.accountNumber,
21
21
  className: "ttw:shrink-0 ttw:font-normal ttw:text-muted-foreground",
22
- children: t.suffixLabel
22
+ children: s.suffixLabel
23
23
  })]
24
24
  }), /* @__PURE__ */ i(e, {
25
25
  component: "span",
26
26
  variant: "body1",
27
27
  className: "ttw:min-w-0 ttw:shrink-0 ttw:truncate ttw:text-right ttw:font-medium ttw:tabular-nums ttw:text-foreground",
28
28
  children: /* @__PURE__ */ i(n, {
29
- text: t.amountLabel,
30
- spokenText: t.amountSpokenLabel
29
+ text: s.amountLabel,
30
+ spokenText: s.amountSpokenLabel
31
31
  })
32
32
  })] });
33
- return s && c ? /* @__PURE__ */ i("button", {
33
+ return c && l ? /* @__PURE__ */ i("button", {
34
34
  type: "button",
35
- "data-testid": l?.root,
35
+ "data-testid": u?.root,
36
36
  className: o(!0),
37
- onClick: () => c(),
38
- children: u
37
+ onClick: () => l(),
38
+ children: d
39
39
  }) : /* @__PURE__ */ i("div", {
40
- "data-testid": l?.root,
40
+ "data-testid": u?.root,
41
41
  className: o(!1),
42
- children: u
42
+ children: d
43
43
  });
44
44
  };
45
45
  export { s as SingleBalance };
@@ -1,5 +1,5 @@
1
1
  // ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.11.46", n = "f80778f72f9dd7ae57644adae6db2e053b3c1ac9", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.49", n = "23da25112709f1222de3a24d04423fbe7132042b", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.46",
3
+ "version": "0.11.49",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [