@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.
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsTable/ExpensesTransactionsTable.js +28 -17
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index3.js +0 -1
- package/package.json +1 -1
|
@@ -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("
|
|
60
|
-
className: "ttw:
|
|
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
|
-
|
|
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(
|
|
93
|
-
className:
|
|
94
|
-
|
|
95
|
-
|
|
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(
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
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
|
}, {
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -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.
|
|
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
|