@tesouro/embedded-components-react 0.9.17 → 0.9.19
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/index.css +66 -16
- package/dist/index.d.ts +21 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +2 -0
- package/dist/lib/CounterpartsWidget.d.ts +6 -0
- package/dist/lib/CounterpartsWidgetPublic.d.ts +6 -0
- package/dist/lib/CustomersWidget.d.ts +6 -0
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -0
- package/dist/lib/ProductsWidget.d.ts +8 -0
- package/dist/lib/ReceivablesWidget.d.ts +12 -0
- package/dist/lib/WidgetSuite.d.ts +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/CreateAccountDialog.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index5.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +57 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/DeleteReceiptDialog/DeleteReceiptDialog.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/DeleteReceiptDialog/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index7.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index2.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index5.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index13.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index11.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index12.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index15.js +37 -33
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index6.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index17.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +36 -31
- 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/index2.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index5.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +39 -35
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetContainer/WidgetContainer.js +9 -21
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js +9 -31
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js +1 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +4699 -4648
- package/package.json +1 -1
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js
CHANGED
|
@@ -1,94 +1,96 @@
|
|
|
1
|
-
import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as ee, DialogFooter as te, DialogHeader as a, DialogTitle as o, FieldRequirement as s, Label as c, Popover as l, PopoverContent as u, PopoverTrigger as ne, RequiredFieldsLegend as d, Select as f, SelectContent as
|
|
2
|
-
import { mergeSchedulePaymentDialogLabels as
|
|
3
|
-
import { TONE_TEXT_CLASS as
|
|
4
|
-
import { useId as
|
|
5
|
-
import { Fragment as
|
|
6
|
-
import { CalendarIcon as
|
|
1
|
+
import { Badge as e, Button as t, Calendar as n, Dialog as r, DialogContent as i, DialogDescription as ee, DialogFooter as te, DialogHeader as a, DialogTitle as o, FieldRequirement as s, Label as c, Popover as l, PopoverContent as u, PopoverTrigger as ne, RequiredFieldsLegend as d, Select as f, SelectContent as p, SelectItem as m, SelectTrigger as h, SelectValue as g, cn as _ } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { mergeSchedulePaymentDialogLabels as v } from "./index8.js";
|
|
3
|
+
import { TONE_TEXT_CLASS as y } from "./index9.js";
|
|
4
|
+
import { useId as b } from "react";
|
|
5
|
+
import { Fragment as re, jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
6
|
+
import { CalendarIcon as ie } from "lucide-react";
|
|
7
7
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js
|
|
8
8
|
var C = {
|
|
9
|
-
sufficient:
|
|
10
|
-
warning:
|
|
11
|
-
error:
|
|
9
|
+
sufficient: y.muted,
|
|
10
|
+
warning: y.warning,
|
|
11
|
+
error: y.error
|
|
12
12
|
};
|
|
13
|
-
function w({ open:
|
|
14
|
-
let q =
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
open:
|
|
13
|
+
function w({ open: y, onOpenChange: w, amountDueLabel: T, amountDue: E, dueDateSuffix: D, paymentAmountLabel: O, paymentAmount: k, selectedDate: A, selectedDateLabel: j, calendarDisabled: M, isToday: N, selectedAccountId: P, accounts: F, poweredByBankName: I, funds: L, isAccountsLoading: R, isAccountsError: z, isSubmitting: B, onDateChange: V, onAccountChange: H, onReview: U, onCancel: W, testId: G, labels: K }) {
|
|
14
|
+
let q = v(K), J = b(), Y = b(), X = b(), Z = b(), Q = R || z || F.length === 0, $ = F.find((e) => e.id === P);
|
|
15
|
+
return /* @__PURE__ */ x(r, {
|
|
16
|
+
open: y,
|
|
17
17
|
onOpenChange: (e) => e ? w(e) : W(),
|
|
18
|
-
children: /* @__PURE__ */
|
|
18
|
+
children: /* @__PURE__ */ S(i, {
|
|
19
|
+
closeDisabled: B,
|
|
19
20
|
"data-testid": G,
|
|
21
|
+
labels: { close: q.close },
|
|
20
22
|
className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
|
|
21
23
|
children: [
|
|
22
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ S(a, { children: [/* @__PURE__ */ x(o, { children: q.title }), /* @__PURE__ */ x(ee, {
|
|
23
25
|
className: "ttw:sr-only",
|
|
24
26
|
children: q.hiddenDescription
|
|
25
27
|
})] }),
|
|
26
|
-
/* @__PURE__ */
|
|
28
|
+
/* @__PURE__ */ S("div", {
|
|
27
29
|
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
28
30
|
children: [
|
|
29
|
-
/* @__PURE__ */
|
|
31
|
+
/* @__PURE__ */ S("div", {
|
|
30
32
|
className: "ttw:flex ttw:flex-col ttw:gap-1.5",
|
|
31
|
-
children: [/* @__PURE__ */
|
|
33
|
+
children: [/* @__PURE__ */ x("p", {
|
|
32
34
|
className: "ttw:text-base ttw:text-muted-foreground",
|
|
33
35
|
children: T
|
|
34
|
-
}), /* @__PURE__ */
|
|
36
|
+
}), /* @__PURE__ */ S("div", {
|
|
35
37
|
className: "ttw:flex ttw:flex-wrap ttw:items-end ttw:gap-2",
|
|
36
|
-
children: [/* @__PURE__ */
|
|
38
|
+
children: [/* @__PURE__ */ x("p", {
|
|
37
39
|
className: "ttw:text-4xl ttw:font-semibold ttw:text-foreground",
|
|
38
40
|
children: E
|
|
39
|
-
}), D ? /* @__PURE__ */
|
|
41
|
+
}), D ? /* @__PURE__ */ x("p", {
|
|
40
42
|
className: "ttw:pb-1 ttw:text-xs ttw:text-muted-foreground",
|
|
41
43
|
children: D
|
|
42
44
|
}) : null]
|
|
43
45
|
})]
|
|
44
46
|
}),
|
|
45
|
-
/* @__PURE__ */
|
|
46
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ x(d, { labels: q.requiredFieldsLegend }),
|
|
48
|
+
/* @__PURE__ */ S("div", {
|
|
47
49
|
className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
|
|
48
|
-
children: [/* @__PURE__ */
|
|
50
|
+
children: [/* @__PURE__ */ S("div", {
|
|
49
51
|
className: "ttw:grid ttw:gap-2.5",
|
|
50
|
-
children: [/* @__PURE__ */
|
|
52
|
+
children: [/* @__PURE__ */ x(c, { children: O }), /* @__PURE__ */ x("div", {
|
|
51
53
|
"aria-disabled": !0,
|
|
52
54
|
className: "ttw:flex ttw:h-9 ttw:items-center ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted ttw:px-3 ttw:text-sm ttw:font-medium ttw:text-muted-foreground",
|
|
53
55
|
children: k
|
|
54
56
|
})]
|
|
55
|
-
}), /* @__PURE__ */
|
|
57
|
+
}), /* @__PURE__ */ S("div", {
|
|
56
58
|
className: "ttw:grid ttw:gap-2.5",
|
|
57
59
|
children: [
|
|
58
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ x(c, {
|
|
59
61
|
id: J,
|
|
60
62
|
requirement: s.Required,
|
|
61
63
|
labels: q.fieldMarkers,
|
|
62
64
|
children: q.paymentDate
|
|
63
65
|
}),
|
|
64
|
-
/* @__PURE__ */
|
|
66
|
+
/* @__PURE__ */ x("span", {
|
|
65
67
|
id: X,
|
|
66
68
|
className: "ttw:sr-only",
|
|
67
69
|
children: q.fieldMarkers.requiredAccessibleText
|
|
68
70
|
}),
|
|
69
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ S(l, { children: [/* @__PURE__ */ x(ne, {
|
|
70
72
|
asChild: !0,
|
|
71
|
-
children: /* @__PURE__ */
|
|
73
|
+
children: /* @__PURE__ */ S(t, {
|
|
72
74
|
type: "button",
|
|
73
75
|
variant: "outline",
|
|
74
76
|
className: "ttw:justify-start ttw:gap-2",
|
|
75
77
|
"aria-labelledby": `${J} ${Y} ${X}`,
|
|
76
78
|
children: [
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */
|
|
79
|
+
/* @__PURE__ */ x(ie, { className: "ttw:size-4" }),
|
|
80
|
+
/* @__PURE__ */ x("span", {
|
|
79
81
|
id: Y,
|
|
80
82
|
children: j ?? q.paymentDatePlaceholder
|
|
81
83
|
}),
|
|
82
|
-
N ? /* @__PURE__ */
|
|
84
|
+
N ? /* @__PURE__ */ x(e, {
|
|
83
85
|
variant: "secondary",
|
|
84
86
|
children: q.today
|
|
85
87
|
}) : null
|
|
86
88
|
]
|
|
87
89
|
})
|
|
88
|
-
}), /* @__PURE__ */
|
|
90
|
+
}), /* @__PURE__ */ x(u, {
|
|
89
91
|
align: "start",
|
|
90
92
|
className: "ttw:w-auto ttw:p-0",
|
|
91
|
-
children: /* @__PURE__ */
|
|
93
|
+
children: /* @__PURE__ */ x(n, {
|
|
92
94
|
mode: "single",
|
|
93
95
|
selected: A,
|
|
94
96
|
onSelect: V,
|
|
@@ -98,75 +100,75 @@ function w({ open: v, onOpenChange: w, amountDueLabel: T, amountDue: E, dueDateS
|
|
|
98
100
|
]
|
|
99
101
|
})]
|
|
100
102
|
}),
|
|
101
|
-
/* @__PURE__ */
|
|
103
|
+
/* @__PURE__ */ S("div", {
|
|
102
104
|
className: "ttw:grid ttw:gap-2.5",
|
|
103
105
|
children: [
|
|
104
|
-
/* @__PURE__ */
|
|
106
|
+
/* @__PURE__ */ x(c, {
|
|
105
107
|
id: Z,
|
|
106
108
|
requirement: s.Required,
|
|
107
109
|
labels: q.fieldMarkers,
|
|
108
110
|
children: q.payFrom
|
|
109
111
|
}),
|
|
110
|
-
/* @__PURE__ */
|
|
112
|
+
/* @__PURE__ */ S(f, {
|
|
111
113
|
value: P,
|
|
112
114
|
disabled: Q,
|
|
113
115
|
onValueChange: H,
|
|
114
|
-
children: [/* @__PURE__ */
|
|
116
|
+
children: [/* @__PURE__ */ x(h, {
|
|
115
117
|
className: "ttw:w-full ttw:data-[size=default]:h-14 ttw:*:data-[slot=select-value]:min-w-0 ttw:*:data-[slot=select-value]:flex-1",
|
|
116
118
|
"aria-labelledby": Z,
|
|
117
119
|
"aria-required": !0,
|
|
118
|
-
children: /* @__PURE__ */
|
|
120
|
+
children: /* @__PURE__ */ x(g, {
|
|
119
121
|
placeholder: q.payFromPlaceholder,
|
|
120
|
-
children: $ ? /* @__PURE__ */
|
|
122
|
+
children: $ ? /* @__PURE__ */ S(re, { children: [/* @__PURE__ */ S("span", {
|
|
121
123
|
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:text-left",
|
|
122
|
-
children: [/* @__PURE__ */
|
|
124
|
+
children: [/* @__PURE__ */ x("span", {
|
|
123
125
|
className: "ttw:truncate",
|
|
124
126
|
children: $.primaryLabel
|
|
125
|
-
}), $.secondaryLabel ? /* @__PURE__ */
|
|
127
|
+
}), $.secondaryLabel ? /* @__PURE__ */ x("span", {
|
|
126
128
|
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
127
129
|
children: $.secondaryLabel
|
|
128
130
|
}) : null]
|
|
129
|
-
}), I ? /* @__PURE__ */
|
|
131
|
+
}), I ? /* @__PURE__ */ x(e, {
|
|
130
132
|
variant: "secondary",
|
|
131
133
|
className: "ttw:shrink-0",
|
|
132
134
|
children: q.poweredByBank(I)
|
|
133
135
|
}) : null] }) : null
|
|
134
136
|
})
|
|
135
|
-
}), /* @__PURE__ */
|
|
137
|
+
}), /* @__PURE__ */ x(p, { children: F.map((e) => /* @__PURE__ */ x(m, {
|
|
136
138
|
value: e.id,
|
|
137
|
-
children: /* @__PURE__ */
|
|
139
|
+
children: /* @__PURE__ */ S("span", {
|
|
138
140
|
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col",
|
|
139
|
-
children: [/* @__PURE__ */
|
|
141
|
+
children: [/* @__PURE__ */ x("span", {
|
|
140
142
|
className: "ttw:truncate",
|
|
141
143
|
children: e.primaryLabel
|
|
142
|
-
}), e.secondaryLabel ? /* @__PURE__ */
|
|
144
|
+
}), e.secondaryLabel ? /* @__PURE__ */ x("span", {
|
|
143
145
|
className: "ttw:truncate ttw:text-xs ttw:text-muted-foreground",
|
|
144
146
|
children: e.secondaryLabel
|
|
145
147
|
}) : null]
|
|
146
148
|
})
|
|
147
149
|
}, e.id)) })]
|
|
148
150
|
}),
|
|
149
|
-
Q ? /* @__PURE__ */
|
|
150
|
-
className:
|
|
151
|
+
Q ? /* @__PURE__ */ x("p", {
|
|
152
|
+
className: _("ttw:text-sm", z ? "ttw:text-destructive" : "ttw:text-muted-foreground"),
|
|
151
153
|
role: z ? "alert" : void 0,
|
|
152
154
|
children: R ? q.loadingAccounts : z ? q.accountsError : q.noAccounts
|
|
153
155
|
}) : null
|
|
154
156
|
]
|
|
155
157
|
}),
|
|
156
|
-
L.message ? /* @__PURE__ */
|
|
157
|
-
className:
|
|
158
|
+
L.message ? /* @__PURE__ */ x("p", {
|
|
159
|
+
className: _("ttw:text-sm", C[L.state]),
|
|
158
160
|
children: L.message
|
|
159
161
|
}) : null
|
|
160
162
|
]
|
|
161
163
|
}),
|
|
162
|
-
/* @__PURE__ */
|
|
164
|
+
/* @__PURE__ */ S(te, {
|
|
163
165
|
className: "ttw:pt-4 ttw:sm:gap-3",
|
|
164
|
-
children: [/* @__PURE__ */
|
|
166
|
+
children: [/* @__PURE__ */ x(t, {
|
|
165
167
|
type: "button",
|
|
166
168
|
variant: "outline",
|
|
167
169
|
onClick: W,
|
|
168
170
|
children: q.cancelButton
|
|
169
|
-
}), /* @__PURE__ */
|
|
171
|
+
}), /* @__PURE__ */ x(t, {
|
|
170
172
|
type: "button",
|
|
171
173
|
loading: B,
|
|
172
174
|
onClick: U,
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js
CHANGED
|
@@ -10,7 +10,9 @@ function x({ open: x, amountDue: S, dueDateSuffix: C, paymentAmount: w, selected
|
|
|
10
10
|
open: x,
|
|
11
11
|
onOpenChange: (e) => e ? void 0 : N(),
|
|
12
12
|
children: /* @__PURE__ */ y(i, {
|
|
13
|
+
closeDisabled: k,
|
|
13
14
|
"data-testid": P,
|
|
15
|
+
labels: { close: L.close },
|
|
14
16
|
className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-3",
|
|
15
17
|
children: [
|
|
16
18
|
/* @__PURE__ */ y(s, { children: [/* @__PURE__ */ v(c, { children: L.title }), /* @__PURE__ */ v(a, { children: L.description })] }),
|
package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js
CHANGED
|
@@ -13,7 +13,9 @@ function f({ open: f, onOpenChange: p, amountLabel: m, amount: h, rows: g, payTo
|
|
|
13
13
|
open: f,
|
|
14
14
|
onOpenChange: (e) => e ? p(e) : b(),
|
|
15
15
|
children: /* @__PURE__ */ d(n, {
|
|
16
|
+
closeDisabled: v,
|
|
16
17
|
"data-testid": S,
|
|
18
|
+
labels: { close: w.close },
|
|
17
19
|
className: "ttw:flex ttw:max-w-lg ttw:flex-col ttw:gap-6",
|
|
18
20
|
children: [
|
|
19
21
|
/* @__PURE__ */ d(a, {
|
|
@@ -2,6 +2,7 @@ import { LABEL_LABELS_EN as e } from "../../../../../packages/shared-ui-shadcn/d
|
|
|
2
2
|
//#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js
|
|
3
3
|
var t = {
|
|
4
4
|
cancelButton: "Cancel",
|
|
5
|
+
close: "Close",
|
|
5
6
|
orConnector: "or",
|
|
6
7
|
fieldMarkers: e
|
|
7
8
|
};
|
|
@@ -15,7 +15,9 @@ function g({ open: g, copy: _, onConfirm: v, onCancel: y, isPending: b, confirmI
|
|
|
15
15
|
e || y();
|
|
16
16
|
},
|
|
17
17
|
children: /* @__PURE__ */ h(t, {
|
|
18
|
+
closeDisabled: b,
|
|
18
19
|
"data-testid": C,
|
|
20
|
+
labels: { close: D.close },
|
|
19
21
|
children: [
|
|
20
22
|
/* @__PURE__ */ h(i, {
|
|
21
23
|
className: P ? "ttw:items-center ttw:sm:text-center" : void 0,
|
|
@@ -305,6 +305,7 @@ function j({ open: e, onOpenChange: o, privacyResetKey: m, mode: h = "customer",
|
|
|
305
305
|
onOpenChange: Q,
|
|
306
306
|
children: /* @__PURE__ */ b(c, {
|
|
307
307
|
className: "ttw:w-160 ttw:sm:max-w-160 ttw:gap-0",
|
|
308
|
+
labels: { close: K.closeAction },
|
|
308
309
|
children: /* @__PURE__ */ x("div", {
|
|
309
310
|
className: "ttw:m-auto ttw:flex ttw:w-3/4 ttw:flex-col ttw:items-center ttw:gap-4 ttw:p-4",
|
|
310
311
|
children: [/* @__PURE__ */ b(w, { className: "ttw:size-8 ttw:text-destructive" }), /* @__PURE__ */ x("div", {
|
|
@@ -10,21 +10,25 @@ function d({ open: d, onOpenChange: f, isRemoving: p, onConfirm: m, onCancel: h,
|
|
|
10
10
|
return /* @__PURE__ */ l(e, {
|
|
11
11
|
open: d,
|
|
12
12
|
onOpenChange: f,
|
|
13
|
-
children: /* @__PURE__ */ u(n, {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
children: /* @__PURE__ */ u(n, {
|
|
14
|
+
closeDisabled: p,
|
|
15
|
+
labels: { close: _.close },
|
|
16
|
+
children: [/* @__PURE__ */ u(a, { children: [/* @__PURE__ */ l(o, { children: _.title }), /* @__PURE__ */ l(r, { children: _.message })] }), /* @__PURE__ */ u(i, { children: [/* @__PURE__ */ l(t, {
|
|
17
|
+
asChild: !0,
|
|
18
|
+
children: /* @__PURE__ */ l(s, {
|
|
19
|
+
variant: "ghost",
|
|
20
|
+
onClick: h,
|
|
21
|
+
disabled: p,
|
|
22
|
+
children: _.cancelButton
|
|
23
|
+
})
|
|
24
|
+
}), /* @__PURE__ */ l(s, {
|
|
25
|
+
variant: "destructive",
|
|
26
|
+
onClick: m,
|
|
18
27
|
disabled: p,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
onClick: m,
|
|
24
|
-
disabled: p,
|
|
25
|
-
loading: p,
|
|
26
|
-
children: _.confirmButton
|
|
27
|
-
})] })] })
|
|
28
|
+
loading: p,
|
|
29
|
+
children: _.confirmButton
|
|
30
|
+
})] })]
|
|
31
|
+
})
|
|
28
32
|
});
|
|
29
33
|
}
|
|
30
34
|
//#endregion
|
|
@@ -3,7 +3,8 @@ var e = {
|
|
|
3
3
|
title: "Remove receipt?",
|
|
4
4
|
message: "The receipt will be returned to the inbox and can be matched to another transaction.",
|
|
5
5
|
cancelButton: "Cancel",
|
|
6
|
-
confirmButton: "Remove receipt"
|
|
6
|
+
confirmButton: "Remove receipt",
|
|
7
|
+
close: "Close"
|
|
7
8
|
};
|
|
8
9
|
//#endregion
|
|
9
10
|
export { e as DELETE_RECEIPT_DIALOG_LABELS_EN };
|
|
@@ -22,7 +22,8 @@ var e = {
|
|
|
22
22
|
recurrenceEmailMessagePlaceholder: "e.g., Thank you for your business",
|
|
23
23
|
recurrenceEmailFootnote: "Each invoice is finalized and emailed automatically on its schedule.",
|
|
24
24
|
recurrenceEmailCancel: "Cancel",
|
|
25
|
-
recurrenceEmailSave: "Save"
|
|
25
|
+
recurrenceEmailSave: "Save",
|
|
26
|
+
recurrenceEmailClose: "Close"
|
|
26
27
|
};
|
|
27
28
|
//#endregion
|
|
28
29
|
export { t as RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN, e as RECEIVABLE_RECURRENCE_SECTION_LABELS_EN };
|
|
@@ -194,12 +194,14 @@ var a = { all: "All invoices" }, o = {
|
|
|
194
194
|
createdByLabel: "Created by",
|
|
195
195
|
reviewWarning: "Please, check the details of your payment record. You won't be able to change or delete it after.",
|
|
196
196
|
editRecordButton: "Edit record",
|
|
197
|
-
confirmButton: "Confirm"
|
|
197
|
+
confirmButton: "Confirm",
|
|
198
|
+
close: "Close"
|
|
198
199
|
}, d = {
|
|
199
200
|
cancelButton: "Cancel",
|
|
200
201
|
confirmButton: "Confirm",
|
|
201
202
|
commentLabel: "Comment (optional)",
|
|
202
|
-
commentPlaceholder: "Add a comment"
|
|
203
|
+
commentPlaceholder: "Add a comment",
|
|
204
|
+
close: "Close"
|
|
203
205
|
};
|
|
204
206
|
//#endregion
|
|
205
207
|
export { o as RECEIVABLES_SCREEN_LABELS_EN, d as RECEIVABLE_ACTION_DIALOG_LABELS_EN, l as RECEIVABLE_DETAILS_PANEL_LABELS_EN, c as RECEIVABLE_FORM_DIALOG_LABELS_EN, u as RECEIVABLE_PAYMENT_DIALOG_LABELS_EN, a as RECEIVABLE_STATUS_CARDS_LABELS_EN, s as UNSAVED_INVOICE_DIALOG_LABELS_EN };
|
|
@@ -12,6 +12,8 @@ function p({ open: p, onOpenChange: m, title: h, description: g, confirmLabel: _
|
|
|
12
12
|
open: p,
|
|
13
13
|
onOpenChange: m,
|
|
14
14
|
children: /* @__PURE__ */ f(n, {
|
|
15
|
+
closeDisabled: x,
|
|
16
|
+
labels: { close: D.close },
|
|
15
17
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
16
18
|
children: [
|
|
17
19
|
/* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(o, { children: h }), /* @__PURE__ */ d(r, {
|
|
@@ -194,6 +194,7 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
|
|
|
194
194
|
},
|
|
195
195
|
modal: !1,
|
|
196
196
|
children: /* @__PURE__ */ D(a, {
|
|
197
|
+
showCloseButton: !1,
|
|
197
198
|
fullScreen: !0,
|
|
198
199
|
className: "ttw:flex ttw:flex-col ttw:gap-0 ttw:overflow-hidden ttw:p-0",
|
|
199
200
|
onInteractOutside: (e) => e.preventDefault(),
|
|
@@ -36,6 +36,8 @@ function C({ open: C, onOpenChange: w, step: T, values: E, errors: D, currencySy
|
|
|
36
36
|
open: C,
|
|
37
37
|
onOpenChange: w,
|
|
38
38
|
children: /* @__PURE__ */ _(a, {
|
|
39
|
+
closeDisabled: j,
|
|
40
|
+
labels: { close: z.close },
|
|
39
41
|
"aria-describedby": void 0,
|
|
40
42
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
41
43
|
children: T === "review" && A ? /* @__PURE__ */ v(g, { children: [
|
|
@@ -18,6 +18,7 @@ function g({ idPrefix: l, view: f, onOpenChange: g, onChange: v, onSave: y, labe
|
|
|
18
18
|
onOpenChange: g,
|
|
19
19
|
children: /* @__PURE__ */ h(n, {
|
|
20
20
|
className: "ttw:gap-0 ttw:p-0 ttw:max-w-150 ttw:sm:max-w-150",
|
|
21
|
+
labels: { close: x.recurrenceEmailClose },
|
|
21
22
|
children: [/* @__PURE__ */ h(a, {
|
|
22
23
|
className: "ttw:border-b ttw:border-border ttw:p-6",
|
|
23
24
|
children: [/* @__PURE__ */ m(o, { children: x.recurrenceEmailTitle }), /* @__PURE__ */ m(r, {
|
|
@@ -13,32 +13,35 @@ function d({ open: d, onSaveDraft: f, onDiscard: p, onCancel: m, isSaving: h, is
|
|
|
13
13
|
onOpenChange: (e) => {
|
|
14
14
|
!e && !h && m();
|
|
15
15
|
},
|
|
16
|
-
children: /* @__PURE__ */ l(t, {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
className: "ttw:
|
|
24
|
-
children:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
16
|
+
children: /* @__PURE__ */ l(t, {
|
|
17
|
+
showCloseButton: !1,
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ l("button", {
|
|
20
|
+
type: "button",
|
|
21
|
+
onClick: m,
|
|
22
|
+
disabled: h,
|
|
23
|
+
className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:opacity-70 ttw:ring-offset-background ttw:transition-opacity ttw:hover:opacity-100 ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2 ttw:disabled:pointer-events-none",
|
|
24
|
+
children: [/* @__PURE__ */ c(u, { className: "ttw:size-4" }), /* @__PURE__ */ c("span", {
|
|
25
|
+
className: "ttw:sr-only",
|
|
26
|
+
children: v.unsavedCloseButton
|
|
27
|
+
})]
|
|
28
|
+
}),
|
|
29
|
+
/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: v.unsavedTitle }), /* @__PURE__ */ c(n, { children: v.unsavedDescription })] }),
|
|
30
|
+
/* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
31
|
+
type: "button",
|
|
32
|
+
variant: "outline",
|
|
33
|
+
onClick: p,
|
|
34
|
+
disabled: h,
|
|
35
|
+
children: v.unsavedDiscardButton
|
|
36
|
+
}), /* @__PURE__ */ c(o, {
|
|
37
|
+
type: "button",
|
|
38
|
+
loading: h,
|
|
39
|
+
disabled: h || g,
|
|
40
|
+
onClick: f,
|
|
41
|
+
children: v.unsavedSaveDraftButton
|
|
42
|
+
})] })
|
|
43
|
+
]
|
|
44
|
+
})
|
|
42
45
|
});
|
|
43
46
|
}
|
|
44
47
|
//#endregion
|
|
@@ -12,7 +12,8 @@ var e = {
|
|
|
12
12
|
productsQuestion: "Do you want to also save these items?",
|
|
13
13
|
productsCaption: "Saved items can be quickly added to future invoices.",
|
|
14
14
|
productsAllLabel: "Products and services",
|
|
15
|
-
saveItemsButton: "Save selected items"
|
|
15
|
+
saveItemsButton: "Save selected items",
|
|
16
|
+
close: "Close"
|
|
16
17
|
};
|
|
17
18
|
//#endregion
|
|
18
19
|
export { e as RECEIVABLE_ACTIONS_MODAL_LABELS_EN };
|
|
@@ -16,6 +16,7 @@ function s({ idPrefix: s, open: c, view: l, onSkip: u, onSubjectChange: d, onMes
|
|
|
16
16
|
},
|
|
17
17
|
children: /* @__PURE__ */ o(t, {
|
|
18
18
|
className: "ttw:gap-0 ttw:p-0 ttw:max-w-178 ttw:sm:max-w-178",
|
|
19
|
+
labels: { close: y.close },
|
|
19
20
|
children: [l?.step === "issue" && /* @__PURE__ */ a(r, {
|
|
20
21
|
idPrefix: s,
|
|
21
22
|
view: l,
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js
CHANGED
|
@@ -10,6 +10,7 @@ function u({ open: u, labels: d, editForm: f, isSubmitting: p, isActionDisabled:
|
|
|
10
10
|
onOpenChange: g,
|
|
11
11
|
children: /* @__PURE__ */ l(n, {
|
|
12
12
|
showCloseButton: !0,
|
|
13
|
+
labels: { close: d.closeButton },
|
|
13
14
|
className: "ttw:gap-0 ttw:rounded-xl ttw:p-0",
|
|
14
15
|
children: [
|
|
15
16
|
/* @__PURE__ */ c(i, {
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js
CHANGED
|
@@ -10,6 +10,7 @@ function m({ open: m, labels: h, accountNumber: g, isSubmitting: _, isActionDisa
|
|
|
10
10
|
open: m,
|
|
11
11
|
onOpenChange: b,
|
|
12
12
|
children: /* @__PURE__ */ d(r, {
|
|
13
|
+
showCloseButton: !1,
|
|
13
14
|
className: "ttw:gap-0 ttw:rounded-xl ttw:p-0",
|
|
14
15
|
children: [
|
|
15
16
|
/* @__PURE__ */ d(o, {
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js
CHANGED
|
@@ -15,6 +15,7 @@ function y({ open: y, labels: b, verifyForm: x, accountName: S, accountNumber: C
|
|
|
15
15
|
onOpenChange: j,
|
|
16
16
|
children: /* @__PURE__ */ p(n, {
|
|
17
17
|
showCloseButton: !0,
|
|
18
|
+
labels: { close: b.closeButton },
|
|
18
19
|
className: "ttw:gap-0 ttw:rounded-xl ttw:p-0",
|
|
19
20
|
children: w ? /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(a, {
|
|
20
21
|
className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-3 ttw:px-6 ttw:pb-6 ttw:pt-6 ttw:text-center",
|
package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js
CHANGED
|
@@ -17,6 +17,7 @@ function v({ open: v, labels: y, connectStep: b, connectForm: x, accessRows: S,
|
|
|
17
17
|
onOpenChange: P,
|
|
18
18
|
children: /* @__PURE__ */ p(n, {
|
|
19
19
|
showCloseButton: !0,
|
|
20
|
+
labels: { close: y.closeButton },
|
|
20
21
|
"data-testid": s.connectAccountDialog,
|
|
21
22
|
className: "ttw:flex ttw:max-h-[90dvh] ttw:flex-col ttw:gap-0 ttw:rounded-xl ttw:p-0",
|
|
22
23
|
children: z && w ? /* @__PURE__ */ p(u, {
|
|
@@ -67,7 +67,8 @@ var n = {
|
|
|
67
67
|
title: "Delete \"{name}\"?",
|
|
68
68
|
message: "It will remain in all the documents where it is added. You can't undo this action.",
|
|
69
69
|
confirmButton: "Delete",
|
|
70
|
-
cancelButton: "Cancel"
|
|
70
|
+
cancelButton: "Cancel",
|
|
71
|
+
close: "Close"
|
|
71
72
|
};
|
|
72
73
|
//#endregion
|
|
73
74
|
export { r as PRODUCTS_SCREEN_LABELS_EN, a as PRODUCT_DELETE_DIALOG_LABELS_EN, i as PRODUCT_DETAILS_SHEET_LABELS_EN, n as PRODUCT_TYPE_BADGE_LABELS_EN };
|
|
@@ -10,18 +10,22 @@ function u({ open: u, onOpenChange: d, productName: f, isDeleting: p, onConfirm:
|
|
|
10
10
|
return /* @__PURE__ */ c(e, {
|
|
11
11
|
open: u,
|
|
12
12
|
onOpenChange: d,
|
|
13
|
-
children: /* @__PURE__ */ l(t, {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
children: /* @__PURE__ */ l(t, {
|
|
14
|
+
closeDisabled: p,
|
|
15
|
+
labels: { close: _.close },
|
|
16
|
+
children: [/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: _.title.replace("{name}", f) }), /* @__PURE__ */ c(n, { children: _.message })] }), /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
17
|
+
variant: "ghost",
|
|
18
|
+
onClick: h,
|
|
19
|
+
disabled: p,
|
|
20
|
+
children: _.cancelButton
|
|
21
|
+
}), /* @__PURE__ */ c(o, {
|
|
22
|
+
variant: "destructive",
|
|
23
|
+
onClick: m,
|
|
24
|
+
disabled: p,
|
|
25
|
+
loading: p,
|
|
26
|
+
children: _.confirmButton
|
|
27
|
+
})] })]
|
|
28
|
+
})
|
|
25
29
|
});
|
|
26
30
|
}
|
|
27
31
|
//#endregion
|
|
@@ -39,7 +39,8 @@ var e = {
|
|
|
39
39
|
title: "Delete {name}?",
|
|
40
40
|
message: "This cannot be undone.",
|
|
41
41
|
confirmButton: "Delete",
|
|
42
|
-
cancelButton: "Cancel"
|
|
42
|
+
cancelButton: "Cancel",
|
|
43
|
+
close: "Close"
|
|
43
44
|
};
|
|
44
45
|
//#endregion
|
|
45
46
|
export { n as ACCOUNT_DELETE_DIALOG_LABELS_EN, t as ACCOUNT_FORM_SHEET_LABELS_EN, e as CHART_OF_ACCOUNTS_LABELS_EN };
|