@tesouro/embedded-components-react 0.9.59 → 0.10.2
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/README.md +0 -13
- package/dist/{lib/AccountsQuickViewWidget.d.ts → experimental/QuickViewWidget.d.ts} +112 -15
- package/dist/experimental/QuickViewWidget.js +4 -0
- package/dist/experimental/index.d.ts +137 -96
- package/dist/experimental/index.js +4 -3
- package/dist/index.d.ts +3 -53
- package/dist/index.js +7 -9
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/accounts/data-access/dist/index2.js +20 -0
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/AccountsQuickViewWidget/AccountsQuickViewWidgetFeature.js +15 -15
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/AccountsQuickViewWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/AccountsQuickViewWidget/testIds.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/accountsBalanceSummary/summarizeAccountBalances.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/lib/accountsBalanceSummary/useAccountsBalanceSummary.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/accounts/feature/dist/lib/analytics/events.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/ui/dist/index2.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/ui/dist/index3.js +3 -3
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/QuickViewWidget.js +56 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/feature/dist/lib/QuickViewWidget/labels.js +10 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/data-access/dist/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/data-access/dist/index2.js +118 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/InvoicesQuickViewWidgetFeature.js +106 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/labels.js +16 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/summarizeOpenInvoices.js +19 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/testIds.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/useOpenInvoicesSummary.js +25 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/analytics/events.js +4 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index2.js +8 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js +32 -0
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/shared/util/dist/lib/widgetName.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js +38 -37
- package/dist/packages/shared-ui-shadcn/dist/index.js +3374 -3474
- package/package.json +1 -1
- package/dist/experimental/ApprovalRequests.d.ts +0 -706
- package/dist/experimental/ApprovalRequests.js +0 -2
- package/dist/lib/AccountsQuickViewWidget.js +0 -4
- package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/data-access/dist/index2.js +0 -20
- package/dist/libs/tesouro-embedded-components-react/accounts-quick-view-widget/feature/dist/lib/analytics/events.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index2.js +0 -9
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index3.js +0 -71
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index4.js +0 -33
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index5.js +0 -34
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index6.js +0 -26
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/data-access/dist/index7.js +0 -30
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/index.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/ApprovalRequestsWidget.js +0 -89
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/buildApprovalRequestRows.js +0 -44
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/canDecideApprovalRequest.js +0 -7
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/constants.js +0 -18
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/labels.js +0 -28
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/permissions.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/useApprovalRequestDecisions.js +0 -93
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/useApprovalRequestNames.js +0 -65
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/useApprovalRequestsFilters.js +0 -148
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/ApprovalRequestsWidget/useApprovalRequestsTable.js +0 -73
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/feature/dist/lib/analytics/events.js +0 -3
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index.js +0 -5
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index2.js +0 -47
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index3.js +0 -142
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index4.js +0 -136
- package/dist/libs/tesouro-embedded-components-react/approval-requests-widget/ui/dist/index5.js +0 -43
- /package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/data-access/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/feature/dist/index.js +0 -0
- /package/dist/libs/tesouro-embedded-components-react/{accounts-quick-view-widget → quick-view-widget/accounts}/ui/dist/index.js +0 -0
|
@@ -6,11 +6,11 @@ import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
|
6
6
|
import { ChevronRight as c } from "lucide-react";
|
|
7
7
|
// ../../libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js
|
|
8
8
|
var l = "ttw:flex ttw:w-[320px] ttw:max-w-full ttw:flex-col ttw:gap-1 ttw:rounded-xl ttw:border ttw:border-border ttw:bg-card ttw:p-4 ttw:text-left ttw:text-card-foreground";
|
|
9
|
-
function u({ title: u, value: d, subtext: f,
|
|
10
|
-
let
|
|
9
|
+
function u({ title: u, value: d, subtext: f, subtextTone: p = "muted", linkText: m, onClick: h, ariaLabel: g, isLoading: _ = !1, isError: v = !1, onRetry: y, labels: b, testIds: x, className: S, style: C }) {
|
|
10
|
+
let w = {
|
|
11
11
|
...i,
|
|
12
|
-
...
|
|
13
|
-
},
|
|
12
|
+
...b
|
|
13
|
+
}, T = !!h && !_ && !v, E = /* @__PURE__ */ s("span", {
|
|
14
14
|
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
15
15
|
children: [/* @__PURE__ */ o(t, {
|
|
16
16
|
component: "span",
|
|
@@ -18,26 +18,26 @@ function u({ title: u, value: d, subtext: f, linkText: p, onClick: m, isLoading:
|
|
|
18
18
|
color: "muted",
|
|
19
19
|
className: "ttw:font-semibold",
|
|
20
20
|
children: u
|
|
21
|
-
}),
|
|
21
|
+
}), T ? /* @__PURE__ */ o(c, {
|
|
22
22
|
className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
|
|
23
23
|
"aria-hidden": !0
|
|
24
24
|
}) : null]
|
|
25
25
|
});
|
|
26
|
-
if (
|
|
27
|
-
className: n(l,
|
|
28
|
-
style:
|
|
29
|
-
"data-testid":
|
|
30
|
-
children: [
|
|
26
|
+
if (_) return /* @__PURE__ */ s("div", {
|
|
27
|
+
className: n(l, S),
|
|
28
|
+
style: C,
|
|
29
|
+
"data-testid": x?.tile,
|
|
30
|
+
children: [E, /* @__PURE__ */ s("div", {
|
|
31
31
|
role: "status",
|
|
32
32
|
"aria-busy": !0,
|
|
33
33
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
34
34
|
children: [
|
|
35
35
|
/* @__PURE__ */ o("span", {
|
|
36
36
|
className: "ttw:sr-only",
|
|
37
|
-
children:
|
|
37
|
+
children: w.loadingLabel
|
|
38
38
|
}),
|
|
39
39
|
/* @__PURE__ */ o(e, {
|
|
40
|
-
"data-testid":
|
|
40
|
+
"data-testid": x?.skeleton,
|
|
41
41
|
height: 36,
|
|
42
42
|
width: "60%",
|
|
43
43
|
className: "ttw:rounded-md"
|
|
@@ -50,20 +50,20 @@ function u({ title: u, value: d, subtext: f, linkText: p, onClick: m, isLoading:
|
|
|
50
50
|
]
|
|
51
51
|
})]
|
|
52
52
|
});
|
|
53
|
-
if (
|
|
54
|
-
className: n(l,
|
|
55
|
-
style:
|
|
56
|
-
"data-testid":
|
|
57
|
-
children: [
|
|
58
|
-
title:
|
|
59
|
-
retryLabel:
|
|
60
|
-
onRetry:
|
|
53
|
+
if (v) return /* @__PURE__ */ s("div", {
|
|
54
|
+
className: n(l, S),
|
|
55
|
+
style: C,
|
|
56
|
+
"data-testid": x?.tile,
|
|
57
|
+
children: [E, /* @__PURE__ */ o(r, {
|
|
58
|
+
title: w.loadErrorTitle,
|
|
59
|
+
retryLabel: w.loadErrorRetry,
|
|
60
|
+
onRetry: y,
|
|
61
61
|
className: "ttw:px-0 ttw:py-4",
|
|
62
|
-
testId:
|
|
62
|
+
testId: x?.error
|
|
63
63
|
})]
|
|
64
64
|
});
|
|
65
|
-
let
|
|
66
|
-
|
|
65
|
+
let D = /* @__PURE__ */ s(a, { children: [
|
|
66
|
+
E,
|
|
67
67
|
/* @__PURE__ */ o(t, {
|
|
68
68
|
component: "span",
|
|
69
69
|
variant: "h6",
|
|
@@ -73,27 +73,28 @@ function u({ title: u, value: d, subtext: f, linkText: p, onClick: m, isLoading:
|
|
|
73
73
|
f ? /* @__PURE__ */ o(t, {
|
|
74
74
|
component: "span",
|
|
75
75
|
variant: "body2",
|
|
76
|
-
color:
|
|
77
|
-
className: "ttw:block",
|
|
76
|
+
color: p,
|
|
77
|
+
className: n("ttw:block", p === "destructive" && "ttw:font-medium"),
|
|
78
78
|
children: f
|
|
79
79
|
}) : null,
|
|
80
|
-
|
|
80
|
+
T && m ? /* @__PURE__ */ o("span", {
|
|
81
81
|
className: "ttw:mt-3 ttw:text-sm ttw:font-medium ttw:text-primary ttw:group-hover:underline",
|
|
82
|
-
children:
|
|
82
|
+
children: m
|
|
83
83
|
}) : null
|
|
84
84
|
] });
|
|
85
|
-
return
|
|
85
|
+
return T ? /* @__PURE__ */ o("button", {
|
|
86
86
|
type: "button",
|
|
87
|
-
onClick:
|
|
88
|
-
"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
onClick: h,
|
|
88
|
+
"aria-label": g,
|
|
89
|
+
"data-testid": x?.tile,
|
|
90
|
+
style: C,
|
|
91
|
+
className: n(l, "ttw:group ttw:cursor-pointer ttw:transition-colors ttw:hover:bg-accent/40 ttw:focus-visible:outline-none ttw:focus-visible:ring-2 ttw:focus-visible:ring-ring ttw:focus-visible:ring-offset-2", S),
|
|
92
|
+
children: D
|
|
92
93
|
}) : /* @__PURE__ */ o("div", {
|
|
93
|
-
className: n(l,
|
|
94
|
-
style:
|
|
95
|
-
"data-testid":
|
|
96
|
-
children:
|
|
94
|
+
className: n(l, S),
|
|
95
|
+
style: C,
|
|
96
|
+
"data-testid": x?.tile,
|
|
97
|
+
children: D
|
|
97
98
|
});
|
|
98
99
|
}
|
|
99
100
|
export { u as QuickViewTile };
|