@tesouro/embedded-components-react 0.11.219 → 0.11.220
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 +7 -4
- package/dist/experimental/QuickViewWidget.d.ts +25 -13
- package/dist/experimental/index.d.ts +25 -13
- package/dist/index.css +388 -25
- package/dist/index.d.ts +18 -2
- package/dist/lib/AcceptDisclosuresWidget.d.ts +6 -2
- package/dist/lib/BankAccountsWidget.d.ts +4 -0
- package/dist/lib/ExpenseManagementWidget.d.ts +7 -0
- package/dist/lib/ReceivablesWidget.d.ts +1 -0
- package/dist/lib/WidgetSuite.d.ts +12 -0
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/resolveAcceptDisclosuresContent.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +7 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +27 -13
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +28 -30
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +8 -3
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +3 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +47 -44
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +66 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +73 -74
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +4 -1
- package/dist/libs/tesouro-embedded-components-react/offer-widget/ui/dist/index7.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/feature/dist/lib/BillsQuickViewWidget/BillsQuickViewWidgetFeature.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index3.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js +1 -6
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/InvoicesQuickViewWidgetFeature.js +0 -8
- package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js +13 -14
- package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +5 -6
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +1 -1
- 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/product-catalog/ui/dist/index9.js +86 -77
- package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js +18 -19
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +11 -12
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/FdicLogo.js +76 -72
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +7 -5
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +49 -43
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/createTheme.js +20 -4
- package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +10 -10
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +1 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +141 -124
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
var e = {
|
|
3
3
|
accent: "ttw:border-violet-100 ttw:bg-violet-100 ttw:text-violet-700 ttw:hover:bg-violet-100",
|
|
4
4
|
committed: "ttw:border-cyan-200 ttw:bg-cyan-50 ttw:text-cyan-700 ttw:hover:bg-cyan-50",
|
|
5
|
-
danger: "ttw:border-destructive
|
|
5
|
+
danger: "ttw:border-destructive-subtle ttw:bg-destructive-subtle ttw:text-destructive-subtle-foreground ttw:hover:bg-destructive-subtle",
|
|
6
6
|
info: "ttw:border-blue-100 ttw:bg-blue-100 ttw:text-blue-700 ttw:hover:bg-blue-100",
|
|
7
7
|
neutral: "ttw:border-border ttw:bg-muted ttw:text-foreground ttw:hover:bg-muted",
|
|
8
8
|
settled: "ttw:border-border ttw:bg-background ttw:text-green-900 ttw:hover:bg-background",
|
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.220", n = "465fb026b1b1ad37b5d1cfa318cb45d78f0592ae", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index9.js
CHANGED
|
@@ -31,87 +31,96 @@ function d({ inputValue: d, onInputValueChange: f, options: p, value: m, onOptio
|
|
|
31
31
|
P.current = e, e && b && e.focus();
|
|
32
32
|
}, [b]), I = () => {
|
|
33
33
|
T ? A() : (P.current?.focus(), E(!0));
|
|
34
|
-
}, L = T && k >= 0 ? M(k) : void 0;
|
|
34
|
+
}, L = T && k >= 0 ? M(k) : void 0, R = T && !_ && p.length > 0;
|
|
35
35
|
return /* @__PURE__ */ s("div", {
|
|
36
36
|
className: "ttw:relative ttw:w-full",
|
|
37
|
-
children: [
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
"aria-
|
|
92
|
-
className:
|
|
93
|
-
onMouseEnter: () => O(t.value),
|
|
94
|
-
onMouseDown: () => j(t.value),
|
|
95
|
-
children: [
|
|
96
|
-
/* @__PURE__ */ o("span", {
|
|
97
|
-
className: "ttw:min-w-0 ttw:flex-1 ttw:truncate",
|
|
98
|
-
children: t.label
|
|
99
|
-
}),
|
|
100
|
-
t.meta ? /* @__PURE__ */ o("span", {
|
|
101
|
-
className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground",
|
|
102
|
-
children: t.meta
|
|
103
|
-
}) : null,
|
|
104
|
-
t.value === m ? /* @__PURE__ */ o("span", {
|
|
105
|
-
className: "ttw:pointer-events-none ttw:absolute ttw:right-2 ttw:flex ttw:size-4 ttw:items-center ttw:justify-center",
|
|
106
|
-
children: /* @__PURE__ */ o(c, { className: "ttw:size-4" })
|
|
107
|
-
}) : null
|
|
108
|
-
]
|
|
109
|
-
}, t.value)), p.length ? null : /* @__PURE__ */ o("li", {
|
|
110
|
-
className: "ttw:py-2 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
|
|
37
|
+
children: [
|
|
38
|
+
/* @__PURE__ */ s("div", {
|
|
39
|
+
className: e("ttw:flex ttw:h-9 ttw:w-full ttw:min-w-0 ttw:items-center ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs ttw:transition-[color,box-shadow] ttw:has-[input:focus-visible]:border-ring ttw:has-[input:focus-visible]:ring-[3px] ttw:has-[input:focus-visible]:ring-ring/50 ttw:has-[[aria-invalid=true]]:border-destructive", _ && "ttw:opacity-50"),
|
|
40
|
+
children: [
|
|
41
|
+
g ? /* @__PURE__ */ o(u, { className: "ttw:pointer-events-none ttw:ml-3 ttw:size-4 ttw:shrink-0 ttw:animate-spin ttw:text-muted-foreground" }) : null,
|
|
42
|
+
/* @__PURE__ */ o("input", {
|
|
43
|
+
id: y,
|
|
44
|
+
role: "combobox",
|
|
45
|
+
"aria-label": C.fieldLabel,
|
|
46
|
+
"aria-autocomplete": "list",
|
|
47
|
+
"aria-expanded": R,
|
|
48
|
+
"aria-controls": R ? w : void 0,
|
|
49
|
+
"aria-activedescendant": L,
|
|
50
|
+
"aria-invalid": v || void 0,
|
|
51
|
+
autoComplete: "off",
|
|
52
|
+
ref: F,
|
|
53
|
+
maxLength: x,
|
|
54
|
+
disabled: _,
|
|
55
|
+
placeholder: C.placeholder,
|
|
56
|
+
className: e("ttw:h-full ttw:min-w-0 ttw:flex-1 ttw:text-ellipsis ttw:bg-transparent ttw:pr-2 ttw:text-base ttw:outline-none ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed ttw:md:text-sm", g ? "ttw:pl-2" : "ttw:pl-3"),
|
|
57
|
+
value: d,
|
|
58
|
+
title: d || void 0,
|
|
59
|
+
onFocus: () => E(!0),
|
|
60
|
+
onClick: () => E(!0),
|
|
61
|
+
onBlur: A,
|
|
62
|
+
onChange: (e) => {
|
|
63
|
+
f(e.target.value), E(!0), O(void 0);
|
|
64
|
+
},
|
|
65
|
+
onKeyDown: N
|
|
66
|
+
}),
|
|
67
|
+
/* @__PURE__ */ o("button", {
|
|
68
|
+
type: "button",
|
|
69
|
+
tabIndex: -1,
|
|
70
|
+
"aria-label": C.toggleListButton,
|
|
71
|
+
"aria-controls": R ? w : void 0,
|
|
72
|
+
"aria-expanded": R,
|
|
73
|
+
disabled: _,
|
|
74
|
+
className: "ttw:mr-1 ttw:flex ttw:size-6 ttw:shrink-0 ttw:cursor-pointer ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:transition-all ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:disabled:pointer-events-none",
|
|
75
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
76
|
+
onClick: I,
|
|
77
|
+
children: /* @__PURE__ */ o(l, { className: "ttw:pointer-events-none ttw:size-4" })
|
|
78
|
+
})
|
|
79
|
+
]
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ o("div", {
|
|
82
|
+
role: "status",
|
|
83
|
+
className: "ttw:sr-only",
|
|
84
|
+
children: T && !_ && !p.length ? C.emptyText : null
|
|
85
|
+
}),
|
|
86
|
+
T && !_ ? /* @__PURE__ */ s("div", {
|
|
87
|
+
role: "presentation",
|
|
88
|
+
className: e("ttw:absolute ttw:left-0 ttw:top-full ttw:z-50 ttw:mt-1.5 ttw:w-full ttw:min-w-138 ttw:overflow-hidden ttw:rounded-md ttw:bg-popover ttw:text-popover-foreground ttw:shadow-md ttw:ring-1 ttw:ring-foreground/10", !p.length && "ttw:pointer-events-none"),
|
|
89
|
+
onMouseDown: p.length ? (e) => e.preventDefault() : void 0,
|
|
90
|
+
children: [p.length ? null : /* @__PURE__ */ o("div", {
|
|
91
|
+
"aria-hidden": !0,
|
|
92
|
+
className: "ttw:py-3 ttw:text-center ttw:text-sm ttw:text-muted-foreground",
|
|
111
93
|
children: C.emptyText
|
|
94
|
+
}), /* @__PURE__ */ o("ul", {
|
|
95
|
+
id: w,
|
|
96
|
+
role: "listbox",
|
|
97
|
+
"aria-label": C.fieldLabel,
|
|
98
|
+
className: e("ttw:max-h-87 ttw:scroll-py-1 ttw:overflow-y-auto ttw:p-1", !p.length && "ttw:hidden"),
|
|
99
|
+
children: p.map((t, n) => /* @__PURE__ */ s("li", {
|
|
100
|
+
id: M(n),
|
|
101
|
+
role: "option",
|
|
102
|
+
"aria-selected": t.value === m,
|
|
103
|
+
className: e("ttw:relative ttw:flex ttw:w-full ttw:cursor-default ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:py-1.5 ttw:pr-8 ttw:pl-2 ttw:text-sm ttw:select-none", n === k && "ttw:bg-accent ttw:text-accent-foreground"),
|
|
104
|
+
onMouseEnter: () => O(t.value),
|
|
105
|
+
onMouseDown: () => j(t.value),
|
|
106
|
+
children: [
|
|
107
|
+
/* @__PURE__ */ o("span", {
|
|
108
|
+
className: "ttw:min-w-0 ttw:flex-1 ttw:truncate",
|
|
109
|
+
children: t.label
|
|
110
|
+
}),
|
|
111
|
+
t.meta ? /* @__PURE__ */ o("span", {
|
|
112
|
+
className: "ttw:shrink-0 ttw:text-right ttw:text-xs ttw:text-muted-foreground",
|
|
113
|
+
children: t.meta
|
|
114
|
+
}) : null,
|
|
115
|
+
t.value === m ? /* @__PURE__ */ o("span", {
|
|
116
|
+
className: "ttw:pointer-events-none ttw:absolute ttw:right-2 ttw:flex ttw:size-4 ttw:items-center ttw:justify-center",
|
|
117
|
+
children: /* @__PURE__ */ o(c, { className: "ttw:size-4" })
|
|
118
|
+
}) : null
|
|
119
|
+
]
|
|
120
|
+
}, t.value))
|
|
112
121
|
})]
|
|
113
|
-
})
|
|
114
|
-
|
|
122
|
+
}) : null
|
|
123
|
+
]
|
|
115
124
|
});
|
|
116
125
|
}
|
|
117
126
|
export { d as ProductSelector, d as default };
|
|
@@ -15,14 +15,14 @@ function g({ "aria-describedby": e, ...t }) {
|
|
|
15
15
|
function _({ "aria-describedby": e, ...t }) {
|
|
16
16
|
return /* @__PURE__ */ d("div", { ...t });
|
|
17
17
|
}
|
|
18
|
-
function v({ title: v, value: y, subtext: b, subtextTone: x = "muted", exactValue: S, exactSubtext: C,
|
|
18
|
+
function v({ title: v, value: y, subtext: b, subtextTone: x = "muted", exactValue: S, exactSubtext: C, spokenValue: w, linkText: T, onClick: E, isLoading: D = !1, isError: O = !1, onRetry: k, labels: A, testIds: j, className: M, style: N }) {
|
|
19
19
|
let P = {
|
|
20
20
|
...l,
|
|
21
21
|
...A
|
|
22
22
|
}, F = typeof b == "string" ? b ? [{
|
|
23
23
|
text: b,
|
|
24
24
|
tone: x
|
|
25
|
-
}] : [] : b ?? [], I = !!
|
|
25
|
+
}] : [] : b ?? [], I = !!E && !D && !O, L = w ?? S, R = /* @__PURE__ */ f("span", {
|
|
26
26
|
className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:justify-between ttw:gap-2",
|
|
27
27
|
children: [/* @__PURE__ */ d(o, {
|
|
28
28
|
component: "span",
|
|
@@ -39,7 +39,7 @@ function v({ title: v, value: y, subtext: b, subtextTone: x = "muted", exactValu
|
|
|
39
39
|
className: s(m, M),
|
|
40
40
|
style: N,
|
|
41
41
|
"data-testid": j?.tile,
|
|
42
|
-
children: [
|
|
42
|
+
children: [R, /* @__PURE__ */ f("div", {
|
|
43
43
|
role: "status",
|
|
44
44
|
"aria-busy": !0,
|
|
45
45
|
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
@@ -66,7 +66,7 @@ function v({ title: v, value: y, subtext: b, subtextTone: x = "muted", exactValu
|
|
|
66
66
|
className: s(m, M),
|
|
67
67
|
style: N,
|
|
68
68
|
"data-testid": j?.tile,
|
|
69
|
-
children: [
|
|
69
|
+
children: [R, /* @__PURE__ */ d(c, {
|
|
70
70
|
title: P.loadErrorTitle,
|
|
71
71
|
retryLabel: P.loadErrorRetry,
|
|
72
72
|
onRetry: k,
|
|
@@ -74,15 +74,15 @@ function v({ title: v, value: y, subtext: b, subtextTone: x = "muted", exactValu
|
|
|
74
74
|
testId: j?.error
|
|
75
75
|
})]
|
|
76
76
|
});
|
|
77
|
-
let
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
let z = /* @__PURE__ */ f(u, { children: [
|
|
78
|
+
R,
|
|
79
|
+
L ? /* @__PURE__ */ d("span", {
|
|
80
80
|
className: "ttw:sr-only",
|
|
81
|
-
children:
|
|
81
|
+
children: L
|
|
82
82
|
}) : null,
|
|
83
83
|
/* @__PURE__ */ d(e, {
|
|
84
84
|
component: "span",
|
|
85
|
-
"aria-hidden":
|
|
85
|
+
"aria-hidden": L ? !0 : void 0,
|
|
86
86
|
className: "ttw:block ttw:min-w-0 ttw:break-words ttw:leading-tight ttw:tracking-tight ttw:text-foreground",
|
|
87
87
|
children: y
|
|
88
88
|
}),
|
|
@@ -102,12 +102,12 @@ function v({ title: v, value: y, subtext: b, subtextTone: x = "muted", exactValu
|
|
|
102
102
|
}, n))
|
|
103
103
|
})]
|
|
104
104
|
}) : null,
|
|
105
|
-
I &&
|
|
105
|
+
I && T ? /* @__PURE__ */ d("span", {
|
|
106
106
|
className: "ttw:mt-3 ttw:min-w-0 ttw:break-words ttw:text-sm ttw:font-medium ttw:text-primary ttw:group-hover:underline",
|
|
107
|
-
children:
|
|
107
|
+
children: T
|
|
108
108
|
}) : null
|
|
109
|
-
] }),
|
|
110
|
-
return ((e) =>
|
|
109
|
+
] }), B = !!(S || C);
|
|
110
|
+
return ((e) => B ? /* @__PURE__ */ d(i, { children: /* @__PURE__ */ f(n, { children: [/* @__PURE__ */ d(a, {
|
|
111
111
|
asChild: !0,
|
|
112
112
|
children: e
|
|
113
113
|
}), /* @__PURE__ */ f(r, {
|
|
@@ -120,18 +120,17 @@ function v({ title: v, value: y, subtext: b, subtextTone: x = "muted", exactValu
|
|
|
120
120
|
children: C
|
|
121
121
|
}) : null]
|
|
122
122
|
})] }) }) : e)(I ? /* @__PURE__ */ d(g, {
|
|
123
|
-
onClick:
|
|
124
|
-
"aria-label": E,
|
|
123
|
+
onClick: E,
|
|
125
124
|
"data-testid": j?.tile,
|
|
126
125
|
style: N,
|
|
127
126
|
className: s(m, "ttw:group ttw:cursor-pointer ttw:transition-colors ttw:hover:bg-accent/40", h, M),
|
|
128
|
-
children:
|
|
127
|
+
children: z
|
|
129
128
|
}) : /* @__PURE__ */ d(_, {
|
|
130
|
-
tabIndex:
|
|
131
|
-
className: s(m,
|
|
129
|
+
tabIndex: B ? 0 : void 0,
|
|
130
|
+
className: s(m, B && h, M),
|
|
132
131
|
style: N,
|
|
133
132
|
"data-testid": j?.tile,
|
|
134
|
-
children:
|
|
133
|
+
children: z
|
|
135
134
|
}));
|
|
136
135
|
}
|
|
137
136
|
export { v as QuickViewTile };
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js
CHANGED
|
@@ -11,12 +11,12 @@ function o({ href: e, children: t }) {
|
|
|
11
11
|
children: t
|
|
12
12
|
}) : /* @__PURE__ */ i(r, { children: t });
|
|
13
13
|
}
|
|
14
|
-
function s({ links: r, agreement: o, checked: s, onCheckedChange: c, disabled: l, error: u,
|
|
15
|
-
let
|
|
14
|
+
function s({ links: r, agreement: o, checked: s, onCheckedChange: c, disabled: l, error: u, testIds: d }) {
|
|
15
|
+
let f = n(), p = `${f}-agreement`, m = `${f}-error`;
|
|
16
16
|
return /* @__PURE__ */ a("div", {
|
|
17
17
|
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
18
18
|
children: [r.length > 0 ? /* @__PURE__ */ i("ul", {
|
|
19
|
-
"data-testid":
|
|
19
|
+
"data-testid": d?.links,
|
|
20
20
|
className: "ttw:list-disc ttw:space-y-2 ttw:pl-5",
|
|
21
21
|
children: r.map((e, t) => /* @__PURE__ */ i("li", { children: e.href ? /* @__PURE__ */ i("a", {
|
|
22
22
|
href: e.href,
|
|
@@ -31,26 +31,25 @@ function s({ links: r, agreement: o, checked: s, onCheckedChange: c, disabled: l
|
|
|
31
31
|
}) : null, /* @__PURE__ */ a("div", {
|
|
32
32
|
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
33
33
|
children: [/* @__PURE__ */ i(e, {
|
|
34
|
-
id:
|
|
35
|
-
"data-testid":
|
|
34
|
+
id: f,
|
|
35
|
+
"data-testid": d?.checkbox,
|
|
36
36
|
checked: s,
|
|
37
37
|
disabled: l,
|
|
38
38
|
onCheckedChange: (e) => c(e === !0),
|
|
39
|
-
"aria-
|
|
40
|
-
"aria-
|
|
41
|
-
"aria-describedby": [d ? m : void 0, u ? h : void 0].filter(Boolean).join(" ") || void 0,
|
|
39
|
+
"aria-labelledby": p,
|
|
40
|
+
"aria-describedby": u ? m : void 0,
|
|
42
41
|
"aria-invalid": u ? !0 : void 0,
|
|
43
42
|
className: "ttw:mt-1 ttw:shrink-0"
|
|
44
43
|
}), /* @__PURE__ */ a("div", {
|
|
45
44
|
className: "ttw:flex ttw:flex-col ttw:gap-1",
|
|
46
45
|
children: [/* @__PURE__ */ i("label", {
|
|
47
|
-
htmlFor:
|
|
48
|
-
id:
|
|
49
|
-
"data-testid":
|
|
46
|
+
htmlFor: f,
|
|
47
|
+
id: p,
|
|
48
|
+
"data-testid": d?.agreement,
|
|
50
49
|
className: "ttw:text-sm ttw:leading-relaxed ttw:text-foreground",
|
|
51
50
|
children: o
|
|
52
51
|
}), u ? /* @__PURE__ */ i(t, {
|
|
53
|
-
id:
|
|
52
|
+
id: m,
|
|
54
53
|
children: u
|
|
55
54
|
}) : null]
|
|
56
55
|
})]
|