@tesouro/embedded-components-react 0.11.197 → 0.11.198

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.
@@ -56,13 +56,14 @@ function f({ labels: f, rows: p, isLoading: m, sorting: h, onSortingChange: g, p
56
56
  accessorKey: "cardholderLabel",
57
57
  header: M.cardholderColumn,
58
58
  enableSorting: !1,
59
- cell: ({ row: e }) => /* @__PURE__ */ s("span", {
60
- className: "ttw:inline-block ttw:max-w-50 ttw:truncate",
59
+ cell: ({ row: e }) => /* @__PURE__ */ s("div", {
60
+ className: "ttw:max-w-50 ttw:truncate",
61
61
  title: e.original.cardholderLabel,
62
62
  children: e.original.cardholderLabel
63
63
  })
64
64
  }), n.push({
65
65
  accessorKey: "cardLabel",
66
+ meta: { fitContent: !0 },
66
67
  header: M.cardColumn,
67
68
  enableSorting: !1,
68
69
  cell: ({ row: t }) => /* @__PURE__ */ c("div", {
@@ -86,26 +87,36 @@ function f({ labels: f, rows: p, isLoading: m, sorting: h, onSortingChange: g, p
86
87
  })
87
88
  }), n.push({
88
89
  id: "receipt",
89
- header: M.receiptColumn,
90
+ meta: { fitContent: !0 },
91
+ header: () => /* @__PURE__ */ s("div", {
92
+ className: "ttw:text-center",
93
+ children: M.receiptColumn
94
+ }),
90
95
  enableSorting: !1,
91
96
  cell: ({ row: e }) => {
92
- if (e.original.hasReceipt) return /* @__PURE__ */ s(d, {
93
- className: e.original.isReceiptHighlighted ? "ttw:size-4 ttw:text-violet-foreground" : "ttw:size-4",
94
- role: "img",
95
- "aria-label": M.receiptPresentAriaLabel
97
+ if (e.original.hasReceipt) return /* @__PURE__ */ s("div", {
98
+ className: "ttw:flex ttw:h-8 ttw:items-center ttw:justify-center",
99
+ children: /* @__PURE__ */ s(d, {
100
+ className: e.original.isReceiptHighlighted ? "ttw:size-4 ttw:text-violet-foreground" : "ttw:size-4",
101
+ role: "img",
102
+ "aria-label": M.receiptPresentAriaLabel
103
+ })
96
104
  });
97
105
  if (!k) return null;
98
106
  let n = e.original.id === A;
99
- return /* @__PURE__ */ s(t, {
100
- type: "button",
101
- variant: "ghost",
102
- size: "icon-sm",
103
- "aria-label": n ? M.addingReceiptAriaLabel : M.addReceiptAriaLabel,
104
- disabled: n,
105
- onClick: (t) => {
106
- t.stopPropagation(), k(e.original.id);
107
- },
108
- children: n ? /* @__PURE__ */ s(l, { className: "ttw:size-4 ttw:animate-spin" }) : /* @__PURE__ */ s(u, { className: "ttw:size-4" })
107
+ return /* @__PURE__ */ s("div", {
108
+ className: "ttw:flex ttw:justify-center",
109
+ children: /* @__PURE__ */ s(t, {
110
+ type: "button",
111
+ variant: "ghost",
112
+ size: "icon-sm",
113
+ "aria-label": n ? M.addingReceiptAriaLabel : M.addReceiptAriaLabel,
114
+ disabled: n,
115
+ onClick: (t) => {
116
+ t.stopPropagation(), k(e.original.id);
117
+ },
118
+ children: n ? /* @__PURE__ */ s(l, { className: "ttw:size-4 ttw:animate-spin" }) : /* @__PURE__ */ s(u, { className: "ttw:size-4" })
119
+ })
109
120
  });
110
121
  }
111
122
  }, {
@@ -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.197", n = "91c2d16805b212581b2ff35a5e016262f605288f", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.11.198", n = "d5ec1a8792c5a41f6e4ed36b1fbbdfcaf2a0f6db", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
@@ -10,7 +10,6 @@ function r({ open: r = !1, ref: i, ...a }) {
10
10
  return /* @__PURE__ */ n(e, {
11
11
  ...a,
12
12
  ref: i,
13
- size: "lg",
14
13
  "aria-expanded": r,
15
14
  "aria-haspopup": "dialog",
16
15
  children: t.ButtonLabel
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.11.197",
3
+ "version": "0.11.198",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "sideEffects": [