@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.
Files changed (54) hide show
  1. package/README.md +7 -4
  2. package/dist/experimental/QuickViewWidget.d.ts +25 -13
  3. package/dist/experimental/index.d.ts +25 -13
  4. package/dist/index.css +388 -25
  5. package/dist/index.d.ts +18 -2
  6. package/dist/lib/AcceptDisclosuresWidget.d.ts +6 -2
  7. package/dist/lib/BankAccountsWidget.d.ts +4 -0
  8. package/dist/lib/ExpenseManagementWidget.d.ts +7 -0
  9. package/dist/lib/ReceivablesWidget.d.ts +1 -0
  10. package/dist/lib/WidgetSuite.d.ts +12 -0
  11. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +1 -2
  12. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/feature/dist/lib/AcceptDisclosuresWidget/resolveAcceptDisclosuresContent.js +1 -2
  13. package/dist/libs/tesouro-embedded-components-react/accept-disclosures-widget/ui/dist/lib/AcceptDisclosuresWidget/AcceptDisclosuresWidget.js +0 -1
  14. package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index25.js +7 -0
  15. package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index9.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +5 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index12.js +27 -13
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index29.js +1 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index31.js +3 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index21.js +28 -30
  21. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index2.js +1 -0
  22. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/receipt-match/ui/dist/index5.js +3 -0
  23. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/AccordionItemCard/AccordionItemCard.js +8 -3
  24. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/ExpensesTransactionsFilterBar/ExpensesTransactionsFilterBar.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/FileViewer.js +3 -0
  26. package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/FileViewer/labels.js +1 -0
  27. package/dist/libs/tesouro-embedded-components-react/insights-widget/ui/dist/lib/InsightsWidget/SingleInsight/SingleInsight.js +47 -44
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +66 -63
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +73 -74
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +2 -1
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +4 -1
  32. package/dist/libs/tesouro-embedded-components-react/offer-widget/ui/dist/index7.js +1 -1
  33. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/feature/dist/lib/BillsQuickViewWidget/BillsQuickViewWidgetFeature.js +0 -8
  34. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index3.js +13 -14
  35. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/feature/dist/lib/CardsQuickViewWidget/CardsQuickViewWidgetFeature.js +1 -6
  36. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js +5 -5
  37. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/feature/dist/lib/InvoicesQuickViewWidget/InvoicesQuickViewWidgetFeature.js +0 -8
  38. package/dist/libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js +13 -14
  39. package/dist/libs/tesouro-embedded-components-react/remote-check-capture/ui/dist/index6.js +1 -0
  40. package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index12.js +5 -6
  41. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index3.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  43. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index9.js +86 -77
  44. package/dist/libs/tesouro-embedded-components-react/shared/quick-view/ui/dist/index3.js +18 -19
  45. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/ConsentBlock/ConsentBlock.js +11 -12
  46. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/FdicLogo.js +76 -72
  47. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/OnboardingShell/OnboardingShell.js +7 -5
  48. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadTray/UploadTray.js +49 -43
  49. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/createTheme.js +20 -4
  50. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/theme/themeTokens.js +10 -10
  51. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/feature/dist/lib/UploadReceiptWidget.js +1 -0
  52. package/dist/libs/tesouro-embedded-components-react/upload-receipt-widget/ui/dist/index2.js +1 -0
  53. package/dist/packages/shared-ui-shadcn/dist/index.js +141 -124
  54. package/package.json +1 -1
@@ -4,15 +4,9 @@ import { ReceivableFormTotals as te } from "./index44.js";
4
4
  import { ReceivableNotesSection as T } from "./index45.js";
5
5
  import { useId as ne } from "react";
6
6
  import { jsx as E, jsxs as D } from "react/jsx-runtime";
7
- import { CircleAlertIcon as O, MinusIcon as k, PlusIcon as A, Trash2Icon as j, XIcon as M } from "lucide-react";
7
+ import { CircleAlertIcon as re, MinusIcon as O, PlusIcon as k, Trash2Icon as A, XIcon as j } from "lucide-react";
8
8
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js
9
- var N = "__none__", P = "__manage__", F = "ttw:flex ttw:h-9 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", I = "ttw:h-full ttw:min-w-0 ttw:flex-1 ttw:bg-transparent ttw:text-right ttw:text-base ttw:outline-none ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:md:text-sm", L = "ttw:flex ttw:items-center ttw:text-sm ttw:font-medium ttw:text-muted-foreground ttw:select-none", R = "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:outline-none ttw:transition-all ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50 ttw:disabled:pointer-events-none ttw:disabled:opacity-50";
10
- function re({ message: e }) {
11
- return e ? /* @__PURE__ */ E("p", {
12
- className: "ttw:text-sm ttw:text-destructive",
13
- children: e
14
- }) : null;
15
- }
9
+ var M = "__none__", N = "__manage__", P = "ttw:flex ttw:h-9 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", F = "ttw:h-full ttw:min-w-0 ttw:flex-1 ttw:bg-transparent ttw:text-right ttw:text-base ttw:outline-none ttw:placeholder:text-muted-foreground ttw:disabled:cursor-not-allowed ttw:disabled:opacity-50 ttw:md:text-sm", I = "ttw:flex ttw:items-center ttw:text-sm ttw:font-medium ttw:text-muted-foreground ttw:select-none", L = "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:outline-none ttw:transition-all ttw:hover:bg-accent ttw:hover:text-accent-foreground ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50 ttw:disabled:pointer-events-none ttw:disabled:opacity-50";
16
10
  function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, canRemove: s, unitOptions: c, currencySymbol: l, labels: u, renderProductSelector: d, onChange: f, onCommit: p, onQuantityStep: m, onManageUnits: h, onRemove: x }) {
17
11
  let S = `${e}-line-${t.id}`;
18
12
  return /* @__PURE__ */ D("li", {
@@ -27,15 +21,15 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
27
21
  })
28
22
  }),
29
23
  /* @__PURE__ */ D("div", {
30
- className: w(F, "ttw:w-26 ttw:min-w-26 ttw:px-[0.3rem]"),
24
+ className: w(P, "ttw:w-26 ttw:min-w-26 ttw:px-[0.3rem]"),
31
25
  children: [
32
26
  /* @__PURE__ */ E("button", {
33
27
  type: "button",
34
28
  "aria-label": u.decreaseQuantityButton,
35
29
  disabled: a ? !a.canDecreaseQuantity : !1,
36
- className: R,
30
+ className: L,
37
31
  onClick: () => m(-1),
38
- children: /* @__PURE__ */ E(k, { className: "ttw:size-3.5" })
32
+ children: /* @__PURE__ */ E(O, { className: "ttw:size-3.5" })
39
33
  }),
40
34
  /* @__PURE__ */ E("input", {
41
35
  id: `${S}-quantity`,
@@ -52,16 +46,16 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
52
46
  type: "button",
53
47
  "aria-label": u.increaseQuantityButton,
54
48
  disabled: a ? !a.canIncreaseQuantity : !1,
55
- className: R,
49
+ className: L,
56
50
  onClick: () => m(1),
57
- children: /* @__PURE__ */ E(A, { className: "ttw:size-3.5" })
51
+ children: /* @__PURE__ */ E(k, { className: "ttw:size-3.5" })
58
52
  })
59
53
  ]
60
54
  }),
61
55
  /* @__PURE__ */ E("div", { children: /* @__PURE__ */ D(g, {
62
- value: t.unit || N,
56
+ value: t.unit || M,
63
57
  onValueChange: (e) => {
64
- e === P ? h?.() : f({ unit: e === N ? "" : e });
58
+ e === N ? h?.() : f({ unit: e === M ? "" : e });
65
59
  },
66
60
  children: [/* @__PURE__ */ E(y, {
67
61
  id: `${S}-unit`,
@@ -74,12 +68,12 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
74
68
  })
75
69
  }), /* @__PURE__ */ D(_, { children: [
76
70
  h && /* @__PURE__ */ D(v, {
77
- value: P,
71
+ value: N,
78
72
  className: "ttw:font-semibold ttw:text-primary ttw:hover:text-primary ttw:focus:text-primary",
79
- children: [/* @__PURE__ */ E(A, { className: "ttw:text-primary" }), u.manageUnitsOption]
73
+ children: [/* @__PURE__ */ E(k, { className: "ttw:text-primary" }), u.manageUnitsOption]
80
74
  }),
81
75
  /* @__PURE__ */ E(v, {
82
- value: N,
76
+ value: M,
83
77
  children: u.unitNone
84
78
  }),
85
79
  c.map((e) => /* @__PURE__ */ E(v, {
@@ -89,9 +83,9 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
89
83
  ] })]
90
84
  }) }),
91
85
  /* @__PURE__ */ D("div", {
92
- className: w(F, "ttw:w-full ttw:max-w-41 ttw:min-w-29"),
86
+ className: w(P, "ttw:w-full ttw:max-w-41 ttw:min-w-29"),
93
87
  children: [/* @__PURE__ */ E("span", {
94
- className: w(L, "ttw:pl-3"),
88
+ className: w(I, "ttw:pl-3"),
95
89
  children: l
96
90
  }), /* @__PURE__ */ E("input", {
97
91
  id: `${S}-price`,
@@ -99,7 +93,7 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
99
93
  "aria-invalid": !!i?.price || void 0,
100
94
  type: "text",
101
95
  inputMode: "decimal",
102
- className: w(I, "ttw:pr-3 ttw:pl-2"),
96
+ className: w(F, "ttw:pr-3 ttw:pl-2"),
103
97
  value: t.price,
104
98
  onChange: (e) => f({ price: e.target.value }),
105
99
  onBlur: () => p("price")
@@ -121,7 +115,7 @@ function ie({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, c
121
115
  "aria-label": u.removeLineItemButton,
122
116
  className: "ttw:w-10 ttw:rounded-none ttw:border-l ttw:border-border ttw:pl-4 ttw:text-muted-foreground ttw:hover:bg-transparent ttw:hover:text-destructive ttw:has-[>svg]:pr-0",
123
117
  onClick: x,
124
- children: /* @__PURE__ */ E(j, {})
118
+ children: /* @__PURE__ */ E(A, {})
125
119
  })
126
120
  ]
127
121
  });
@@ -145,9 +139,9 @@ function ae({ inputId: e, discountType: t, value: n, error: r, currencySymbol: i
145
139
  className: w(r && "ttw:text-destructive"),
146
140
  children: o.discountLabel
147
141
  }), /* @__PURE__ */ D("div", {
148
- className: w(F, "ttw:w-40 ttw:overflow-hidden"),
142
+ className: w(P, "ttw:w-40 ttw:overflow-hidden"),
149
143
  children: [/* @__PURE__ */ E("div", {
150
- className: w(L, "ttw:items-stretch ttw:self-stretch"),
144
+ className: w(I, "ttw:items-stretch ttw:self-stretch"),
151
145
  children: g.map((e) => /* @__PURE__ */ E("button", {
152
146
  type: "button",
153
147
  "aria-label": e.ariaLabel,
@@ -161,7 +155,7 @@ function ae({ inputId: e, discountType: t, value: n, error: r, currencySymbol: i
161
155
  id: e,
162
156
  type: "text",
163
157
  inputMode: "decimal",
164
- className: w(I, "ttw:pr-3 ttw:pl-2"),
158
+ className: w(F, "ttw:pr-3 ttw:pl-2"),
165
159
  "aria-invalid": !!r || void 0,
166
160
  "aria-describedby": r ? h : void 0,
167
161
  disabled: a,
@@ -178,10 +172,10 @@ function ae({ inputId: e, discountType: t, value: n, error: r, currencySymbol: i
178
172
  })]
179
173
  });
180
174
  }
181
- function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors: y, unitOptions: b, currencySymbol: k, lineItemControls: j, autoFocusLineItemId: N, lineItemsLoading: P, inProgress: R, customerSection: z, renderProductSelector: B, onChange: V, onLineItemChange: H, onLineItemCommit: U, onLineItemQuantityStep: W, onTaxRateCommit: G, onDiscountFocus: K, onDiscountCommit: q, totals: J, onManageUnits: oe, onAddLineItem: se, onRemoveLineItem: ce, showDueDateField: le, billingSection: ue, bankAccountSection: de, attachmentsSection: fe, preview: pe, closeDisabled: me, cancelDisabled: he, draftButtonLabel: Y, draftDisabled: X, draftLoading: ge, primaryButtonLabel: _e, primaryDisabled: ve, primaryLoading: ye, scrollContainerRef: be, onSubmit: xe, onDraftClick: Z, onPrimaryClick: Se, labels: Ce }) {
175
+ function R({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors: y, unitOptions: b, currencySymbol: O, lineItemControls: A, autoFocusLineItemId: M, lineItemsLoading: N, inProgress: L, customerSection: R, renderProductSelector: z, onChange: B, onLineItemChange: V, onLineItemCommit: H, onLineItemQuantityStep: U, onTaxRateCommit: W, onDiscountFocus: G, onDiscountCommit: K, totals: q, onManageUnits: J, onAddLineItem: oe, onRemoveLineItem: se, showDueDateField: ce, billingSection: le, bankAccountSection: ue, attachmentsSection: de, preview: fe, closeDisabled: pe, cancelDisabled: me, draftButtonLabel: Y, draftDisabled: X, draftLoading: he, primaryButtonLabel: ge, primaryDisabled: _e, primaryLoading: ve, scrollContainerRef: ye, onSubmit: be, onDraftClick: Z, onPrimaryClick: xe, labels: Se }) {
182
176
  let Q = {
183
177
  ...ee,
184
- ...Ce
178
+ ...Se
185
179
  }, $ = ne();
186
180
  return /* @__PURE__ */ E(i, {
187
181
  open: r,
@@ -213,21 +207,21 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
213
207
  variant: "ghost",
214
208
  className: "ttw:p-2 ttw:has-[>svg]:px-2",
215
209
  "aria-label": Q.closeButton,
216
- disabled: me,
210
+ disabled: pe,
217
211
  onClick: g,
218
- children: /* @__PURE__ */ E(M, { className: "ttw:size-6.5" })
212
+ children: /* @__PURE__ */ E(j, { className: "ttw:size-6.5" })
219
213
  })]
220
214
  }), /* @__PURE__ */ D("div", {
221
215
  className: "ttw:flex ttw:min-h-0 ttw:flex-1",
222
216
  children: [/* @__PURE__ */ D("div", {
223
- ref: be,
217
+ ref: ye,
224
218
  className: "ttw:h-full ttw:min-h-0 ttw:w-1/2 ttw:overflow-auto ttw:px-8 ttw:pt-6",
225
219
  children: [/* @__PURE__ */ D("form", {
226
220
  id: $,
227
221
  noValidate: !0,
228
222
  className: "ttw:pb-10",
229
223
  onSubmit: (e) => {
230
- e.preventDefault(), e.stopPropagation(), xe();
224
+ e.preventDefault(), e.stopPropagation(), be();
231
225
  },
232
226
  children: [/* @__PURE__ */ E("button", {
233
227
  type: "submit",
@@ -239,8 +233,8 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
239
233
  }), /* @__PURE__ */ D("div", {
240
234
  className: "ttw:flex ttw:flex-col ttw:gap-8",
241
235
  children: [
242
- z,
243
- le && /* @__PURE__ */ E("div", {
236
+ R,
237
+ ce && /* @__PURE__ */ E("div", {
244
238
  className: "ttw:grid ttw:grid-cols-2 ttw:gap-4",
245
239
  children: /* @__PURE__ */ D("div", {
246
240
  className: "ttw:flex ttw:flex-col ttw:gap-1.5",
@@ -253,13 +247,18 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
253
247
  id: `${$}-due-date`,
254
248
  type: "date",
255
249
  value: v.dueDate,
256
- onChange: (e) => V({ dueDate: e.target.value })
250
+ "aria-invalid": !!y?.dueDate || void 0,
251
+ "aria-describedby": y?.dueDate ? `${$}-due-date-error` : void 0,
252
+ onChange: (e) => B({ dueDate: e.target.value })
257
253
  }),
258
- /* @__PURE__ */ E(re, { message: y?.dueDate })
254
+ y?.dueDate && /* @__PURE__ */ E(f, {
255
+ id: `${$}-due-date-error`,
256
+ children: y.dueDate
257
+ })
259
258
  ]
260
259
  })
261
260
  }),
262
- ue,
261
+ le,
263
262
  /* @__PURE__ */ D("div", {
264
263
  className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
265
264
  children: [
@@ -278,7 +277,7 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
278
277
  y?.lineItemsSummary?.length ? /* @__PURE__ */ D(e, {
279
278
  variant: "destructive",
280
279
  className: "ttw:flex ttw:mb-2",
281
- children: [/* @__PURE__ */ E(O, {}), /* @__PURE__ */ E(t, { children: /* @__PURE__ */ E("ul", { children: y.lineItemsSummary.map((e) => /* @__PURE__ */ E("li", { children: e }, e)) }) })]
280
+ children: [/* @__PURE__ */ E(re, {}), /* @__PURE__ */ E(t, { children: /* @__PURE__ */ E("ul", { children: y.lineItemsSummary.map((e) => /* @__PURE__ */ E("li", { children: e }, e)) }) })]
282
281
  }) : null,
283
282
  /* @__PURE__ */ D("ul", {
284
283
  className: "ttw:flex ttw:flex-col ttw:gap-2.5",
@@ -308,46 +307,46 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
308
307
  }),
309
308
  v.lineItems.length > 1 && /* @__PURE__ */ E("span", { className: "ttw:w-10 ttw:min-w-10" })
310
309
  ]
311
- }), P ? /* @__PURE__ */ E("li", {
310
+ }), N ? /* @__PURE__ */ E("li", {
312
311
  className: "ttw:flex ttw:h-9 ttw:items-center ttw:justify-center",
313
312
  children: /* @__PURE__ */ E(S, { className: "ttw:size-5" })
314
313
  }) : v.lineItems.map((e) => /* @__PURE__ */ E(ie, {
315
314
  formId: $,
316
315
  lineItem: e,
317
316
  errors: y?.lineItems?.[e.id],
318
- controls: j?.[e.id],
319
- focusOnMount: e.id === N,
317
+ controls: A?.[e.id],
318
+ focusOnMount: e.id === M,
320
319
  canRemove: v.lineItems.length > 1,
321
320
  unitOptions: b,
322
- currencySymbol: k,
321
+ currencySymbol: O,
323
322
  labels: Q,
324
- renderProductSelector: B,
325
- onChange: (t) => H(e.id, t),
326
- onCommit: (t) => U(e.id, t),
327
- onQuantityStep: (t) => W(e.id, t),
328
- onManageUnits: oe,
329
- onRemove: () => ce(e.id)
323
+ renderProductSelector: z,
324
+ onChange: (t) => V(e.id, t),
325
+ onCommit: (t) => H(e.id, t),
326
+ onQuantityStep: (t) => U(e.id, t),
327
+ onManageUnits: J,
328
+ onRemove: () => se(e.id)
330
329
  }, e.id))]
331
330
  }),
332
331
  /* @__PURE__ */ D(n, {
333
332
  type: "button",
334
333
  variant: "ghost",
335
334
  className: "ttw:w-fit ttw:text-primary ttw:hover:text-primary",
336
- onClick: se,
337
- children: [/* @__PURE__ */ E(A, { className: "ttw:size-5 ttw:text-primary" }), Q.addLineItemButton]
335
+ onClick: oe,
336
+ children: [/* @__PURE__ */ E(k, { className: "ttw:size-5 ttw:text-primary" }), Q.addLineItemButton]
338
337
  }),
339
338
  /* @__PURE__ */ E(ae, {
340
339
  inputId: `${$}-discount`,
341
340
  discountType: v.discountType,
342
341
  value: v.discount,
343
342
  error: y?.discount,
344
- currencySymbol: k,
345
- disabled: R,
343
+ currencySymbol: O,
344
+ disabled: L,
346
345
  labels: Q,
347
- onChange: (e) => V({ discount: e }),
348
- onTypeChange: (e) => V({ discountType: e }),
349
- onFocus: K,
350
- onBlur: q
346
+ onChange: (e) => B({ discount: e }),
347
+ onTypeChange: (e) => B({ discountType: e }),
348
+ onFocus: G,
349
+ onBlur: K
351
350
  }),
352
351
  /* @__PURE__ */ D(u, {
353
352
  className: "ttw:flex-col",
@@ -358,20 +357,20 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
358
357
  className: w(y?.taxRate && "ttw:text-destructive"),
359
358
  children: Q.taxRateLabel
360
359
  }), /* @__PURE__ */ D("div", {
361
- className: w(F, "ttw:w-40"),
360
+ className: w(P, "ttw:w-40"),
362
361
  children: [/* @__PURE__ */ E("input", {
363
362
  id: `${$}-tax-rate`,
364
- className: w(I, "ttw:pl-3"),
363
+ className: w(F, "ttw:pl-3"),
365
364
  placeholder: Q.taxRatePlaceholder,
366
365
  type: "text",
367
366
  inputMode: "decimal",
368
367
  "aria-invalid": !!y?.taxRate || void 0,
369
368
  "aria-describedby": y?.taxRate ? `${$}-tax-rate-error` : void 0,
370
369
  value: v.taxRate,
371
- onChange: (e) => V({ taxRate: e.target.value }),
372
- onBlur: G
370
+ onChange: (e) => B({ taxRate: e.target.value }),
371
+ onBlur: W
373
372
  }), /* @__PURE__ */ E("span", {
374
- className: w(L, "ttw:pr-3"),
373
+ className: w(I, "ttw:pr-3"),
375
374
  children: Q.taxRateSuffix
376
375
  })]
377
376
  })]
@@ -383,24 +382,24 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
383
382
  }),
384
383
  /* @__PURE__ */ E(x, {}),
385
384
  /* @__PURE__ */ E(te, {
386
- totals: J,
385
+ totals: q,
387
386
  labels: Q
388
387
  })
389
388
  ]
390
389
  }),
391
- de,
390
+ ue,
392
391
  /* @__PURE__ */ E(T, {
393
392
  idPrefix: $,
394
393
  openingNote: v.openingNote,
395
394
  closingNote: v.closingNote,
396
395
  openingNoteError: y?.openingNote,
397
396
  closingNoteError: y?.closingNote,
398
- disabled: R,
399
- onOpeningNoteChange: (e) => V({ openingNote: e }),
400
- onClosingNoteChange: (e) => V({ closingNote: e }),
397
+ disabled: L,
398
+ onOpeningNoteChange: (e) => B({ openingNote: e }),
399
+ onClosingNoteChange: (e) => B({ closingNote: e }),
401
400
  labels: Q
402
401
  }),
403
- fe
402
+ de
404
403
  ]
405
404
  })]
406
405
  }), /* @__PURE__ */ D(s, {
@@ -409,7 +408,7 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
409
408
  /* @__PURE__ */ E(n, {
410
409
  type: "button",
411
410
  variant: "ghost",
412
- disabled: he,
411
+ disabled: me,
413
412
  onClick: g,
414
413
  children: Q.cancelButton
415
414
  }),
@@ -417,7 +416,7 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
417
416
  type: "submit",
418
417
  form: $,
419
418
  variant: "secondary",
420
- loading: ge,
419
+ loading: he,
421
420
  disabled: X,
422
421
  onClick: Z,
423
422
  children: Y
@@ -425,19 +424,19 @@ function z({ open: r, onRequestClose: g, mode: _ = "create", values: v, errors:
425
424
  /* @__PURE__ */ E(n, {
426
425
  type: "submit",
427
426
  form: $,
428
- loading: ye,
429
- disabled: ve,
430
- onClick: Se,
431
- children: _e
427
+ loading: ve,
428
+ disabled: _e,
429
+ onClick: xe,
430
+ children: ge
432
431
  })
433
432
  ]
434
433
  })]
435
434
  }), /* @__PURE__ */ E("div", {
436
435
  className: "ttw:h-full ttw:min-h-0 ttw:w-1/2 ttw:overflow-auto ttw:bg-muted",
437
- children: pe
436
+ children: fe
438
437
  })]
439
438
  })]
440
439
  })
441
440
  });
442
441
  }
443
- export { z as ReceivableFormDialog, z as default };
442
+ export { R as ReceivableFormDialog, R as default };
@@ -17,6 +17,7 @@ var e = {
17
17
  amountColumn: "Amount",
18
18
  noItems: "No items",
19
19
  payOnline: "Pay online",
20
- paymentQrCodeLabel: "Sample payment QR code"
20
+ paymentQrCodeLabel: "Sample payment QR code",
21
+ previewRegionLabel: "Invoice preview"
21
22
  };
22
23
  export { e as RECEIVABLE_PREVIEW_LABELS_EN };
@@ -4,7 +4,7 @@ import { PreviewLines as n } from "./index49.js";
4
4
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
5
5
  import { ArrowRightIcon as o } from "lucide-react";
6
6
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js
7
- var s = "ttw:text-[#999999]", c = "ttw:bg-[#f2f2f2]", l = e(c, "ttw:m-0 ttw:rounded ttw:px-[0.554rem] ttw:py-[0.2775rem] ttw:text-[length:inherit] ttw:leading-[1.333] ttw:font-medium"), u = "ttw:border-b ttw:border-[#e6e6e6] ttw:p-[0.554rem] ttw:align-top", d = "ttw:px-[0.554rem] ttw:py-[0.2775rem] ttw:text-left ttw:leading-[1.333] ttw:font-bold";
7
+ var s = "ttw:text-muted-foreground", c = "ttw:bg-[#f2f2f2]", l = e(c, "ttw:m-0 ttw:rounded ttw:px-[0.554rem] ttw:py-[0.2775rem] ttw:text-[length:inherit] ttw:leading-[1.333] ttw:font-medium"), u = "ttw:border-b ttw:border-[#e6e6e6] ttw:p-[0.554rem] ttw:align-top", d = "ttw:px-[0.554rem] ttw:py-[0.2775rem] ttw:text-left ttw:leading-[1.333] ttw:font-bold";
8
8
  function f({ value: t, pendingLabel: n }) {
9
9
  return t.kind === "pending" ? /* @__PURE__ */ i("span", {
10
10
  className: e(s, "ttw:italic"),
@@ -47,6 +47,9 @@ function p({ view: p, labels: m }) {
47
47
  }] : []
48
48
  ];
49
49
  return /* @__PURE__ */ i("div", {
50
+ role: "region",
51
+ "aria-label": h.previewRegionLabel,
52
+ tabIndex: 0,
50
53
  className: "ttw:relative ttw:flex ttw:h-full ttw:min-h-0 ttw:w-full ttw:overflow-auto ttw:bg-muted ttw:p-12 ttw:[align-items:safe_center] ttw:[justify-content:safe_center] ttw:[transform:translateZ(0)]",
51
54
  children: /* @__PURE__ */ i("div", {
52
55
  className: "ttw:aspect-[8.5/11] ttw:min-h-[1056px] ttw:w-full ttw:max-w-[8.5in] ttw:min-w-[816px] ttw:shrink-0 ttw:overflow-hidden ttw:bg-white ttw:shadow-md",
@@ -21,7 +21,7 @@ function d({ open: d, vspLogo: f, providedByCaption: p, primaryModalHeader: m, h
21
21
  className: "ttw:max-h-[90vh] ttw:max-w-[500px] ttw:gap-0 ttw:overflow-y-auto ttw:p-6",
22
22
  children: [
23
23
  /* @__PURE__ */ c(n, {
24
- className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:text-muted-foreground 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",
24
+ className: "ttw:absolute ttw:right-4 ttw:top-4 ttw:cursor-pointer ttw:rounded-sm ttw:text-muted-foreground ttw:ring-offset-background ttw:transition-colors ttw:hover:text-foreground ttw:focus:outline-hidden ttw:focus:ring-2 ttw:focus:ring-ring ttw:focus:ring-offset-2",
25
25
  onClick: y,
26
26
  "aria-label": C.dismissModalAriaLabel,
27
27
  children: /* @__PURE__ */ c(u, {
@@ -39,7 +39,6 @@ var S = (r) => {
39
39
  function C(e, t, n) {
40
40
  let r = (e, t = "viewBills") => ({
41
41
  subtext: e,
42
- description: e,
43
42
  subtextTone: "muted",
44
43
  callToAction: t
45
44
  });
@@ -48,7 +47,6 @@ function C(e, t, n) {
48
47
  let i = e.awaitingApprovalCount > 0 ? [t.awaitingApprovalCount(e.awaitingApprovalCount)] : [], a = e.overdueCount > 0 ? [t.overdueCount(e.overdueCount), ...i] : [t.billCount(e.openCount), ...i];
49
48
  return {
50
49
  subtext: t.joinSubtext(a),
51
- description: t.joinDescription(a),
52
50
  subtextTone: e.overdueCount > 0 ? "warning" : "muted",
53
51
  callToAction: "viewBills"
54
52
  };
@@ -78,12 +76,6 @@ function w({ labels: e, onViewBillsClick: t, onAddBillClick: n, className: c, st
78
76
  subtextTone: U?.subtextTone,
79
77
  linkText: w[U?.callToAction ?? "viewBills"],
80
78
  onClick: W,
81
- ariaLabel: U ? w.accessibleName({
82
- title: w.accessibleTitle,
83
- value: H?.exact ?? "",
84
- detail: U.description,
85
- action: w[U.callToAction]
86
- }) : void 0,
87
79
  isLoading: z,
88
80
  isError: B,
89
81
  onRetry: B ? V : void 0,
@@ -3,31 +3,30 @@ import "../../../../shared/quick-view/ui/dist/index.js";
3
3
  import { BILLS_QUICK_VIEW_TILE_LABELS_EN as t } from "./index2.js";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/bills/ui/dist/index3.js
6
- function r({ value: r, exactValue: i, subtext: a, subtextTone: o, linkText: s, onClick: c, ariaLabel: l, isLoading: u, isError: d, onRetry: f, labels: p, testIds: m, className: h, style: g }) {
7
- let _ = {
6
+ function r({ value: r, exactValue: i, subtext: a, subtextTone: o, linkText: s, onClick: c, isLoading: l, isError: u, onRetry: d, labels: f, testIds: p, className: m, style: h }) {
7
+ let g = {
8
8
  ...t,
9
- ...p
9
+ ...f
10
10
  };
11
11
  return /* @__PURE__ */ n(e, {
12
- title: _.title,
12
+ title: g.title,
13
13
  value: r,
14
14
  exactValue: i,
15
15
  subtext: a,
16
16
  subtextTone: o,
17
17
  linkText: s,
18
18
  onClick: c,
19
- ariaLabel: l,
20
- isLoading: u,
21
- isError: d,
22
- onRetry: f,
19
+ isLoading: l,
20
+ isError: u,
21
+ onRetry: d,
23
22
  labels: {
24
- loadingLabel: _.loadingLabel,
25
- loadErrorTitle: _.loadErrorTitle,
26
- loadErrorRetry: _.loadErrorRetry
23
+ loadingLabel: g.loadingLabel,
24
+ loadErrorTitle: g.loadErrorTitle,
25
+ loadErrorRetry: g.loadErrorRetry
27
26
  },
28
- testIds: m,
29
- className: h,
30
- style: g
27
+ testIds: p,
28
+ className: m,
29
+ style: h
31
30
  });
32
31
  }
33
32
  export { r as BillsQuickViewTile };
@@ -57,13 +57,8 @@ function w({ labels: e, onViewCardsClick: t, className: n, style: c }) {
57
57
  exactValue: H?.compact ? U : void 0,
58
58
  subtext: G,
59
59
  linkText: g.viewCards,
60
+ spokenValue: H?.isNegative ? g.negativeAmount(H.magnitude) : void 0,
60
61
  onClick: t,
61
- ariaLabel: N && G && V !== void 0 ? g.accessibleName({
62
- title: g.accessibleTitleForMonth(V),
63
- value: H?.isNegative ? g.negativeAmount(H.magnitude) : U,
64
- detail: G,
65
- action: g.viewCards
66
- }) : void 0,
67
62
  isLoading: R,
68
63
  isError: z,
69
64
  onRetry: z ? B : void 0,
@@ -3,7 +3,7 @@ import "../../../../shared/quick-view/ui/dist/index.js";
3
3
  import { CARDS_QUICK_VIEW_TILE_LABELS_EN as t } from "./index2.js";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/cards/ui/dist/index3.js
6
- function r({ title: r, value: i, exactValue: a, subtext: o, linkText: s, onClick: c, ariaLabel: l, isLoading: u, isError: d, onRetry: f, labels: p, testIds: m, className: h, style: g }) {
6
+ function r({ title: r, value: i, exactValue: a, spokenValue: o, subtext: s, linkText: c, onClick: l, isLoading: u, isError: d, onRetry: f, labels: p, testIds: m, className: h, style: g }) {
7
7
  let _ = {
8
8
  ...t,
9
9
  ...p
@@ -12,10 +12,10 @@ function r({ title: r, value: i, exactValue: a, subtext: o, linkText: s, onClick
12
12
  title: r ?? _.title,
13
13
  value: i,
14
14
  exactValue: a,
15
- subtext: o,
16
- linkText: s,
17
- onClick: c,
18
- ariaLabel: l,
15
+ spokenValue: o,
16
+ subtext: s,
17
+ linkText: c,
18
+ onClick: l,
19
19
  isLoading: u,
20
20
  isError: d,
21
21
  onRetry: f,
@@ -40,7 +40,6 @@ var S = (r) => {
40
40
  function C(e, t, n) {
41
41
  let r = (e, t = "viewInvoices") => ({
42
42
  subtext: e,
43
- description: e,
44
43
  subtextTone: "muted",
45
44
  callToAction: t
46
45
  });
@@ -54,7 +53,6 @@ function C(e, t, n) {
54
53
  text: t.overdueAmount(n.shown),
55
54
  tone: "destructive"
56
55
  }, { text: r }],
57
- description: t.overdueDescription(n.exact, e.overdueCount),
58
56
  exactSubtext: n.shown === n.exact ? void 0 : `${t.overdueAmount(n.exact)}${r}`,
59
57
  subtextTone: "muted",
60
58
  callToAction: "viewInvoices"
@@ -88,12 +86,6 @@ function w({ labels: e, onViewInvoicesClick: t, onCreateInvoiceClick: n, classNa
88
86
  subtextTone: U?.subtextTone,
89
87
  linkText: w[U?.callToAction ?? "viewInvoices"],
90
88
  onClick: W,
91
- ariaLabel: U ? w.accessibleName({
92
- title: w.title,
93
- value: H?.exact ?? "",
94
- detail: U.description,
95
- action: w[U.callToAction]
96
- }) : void 0,
97
89
  isLoading: z,
98
90
  isError: B,
99
91
  onRetry: B ? V : void 0,
@@ -3,13 +3,13 @@ import "../../../../shared/quick-view/ui/dist/index.js";
3
3
  import { INVOICES_QUICK_VIEW_TILE_LABELS_EN as t } from "./index2.js";
4
4
  import { jsx as n } from "react/jsx-runtime";
5
5
  // ../../libs/tesouro-embedded-components-react/quick-view-widget/invoices/ui/dist/index3.js
6
- function r({ value: r, exactValue: i, exactSubtext: a, subtext: o, subtextTone: s, linkText: c, onClick: l, ariaLabel: u, isLoading: d, isError: f, onRetry: p, labels: m, testIds: h, className: g, style: _ }) {
7
- let v = {
6
+ function r({ value: r, exactValue: i, exactSubtext: a, subtext: o, subtextTone: s, linkText: c, onClick: l, isLoading: u, isError: d, onRetry: f, labels: p, testIds: m, className: h, style: g }) {
7
+ let _ = {
8
8
  ...t,
9
- ...m
9
+ ...p
10
10
  };
11
11
  return /* @__PURE__ */ n(e, {
12
- title: v.title,
12
+ title: _.title,
13
13
  value: r,
14
14
  exactValue: i,
15
15
  exactSubtext: a,
@@ -17,18 +17,17 @@ function r({ value: r, exactValue: i, exactSubtext: a, subtext: o, subtextTone:
17
17
  subtextTone: s,
18
18
  linkText: c,
19
19
  onClick: l,
20
- ariaLabel: u,
21
- isLoading: d,
22
- isError: f,
23
- onRetry: p,
20
+ isLoading: u,
21
+ isError: d,
22
+ onRetry: f,
24
23
  labels: {
25
- loadingLabel: v.loadingLabel,
26
- loadErrorTitle: v.loadErrorTitle,
27
- loadErrorRetry: v.loadErrorRetry
24
+ loadingLabel: _.loadingLabel,
25
+ loadErrorTitle: _.loadErrorTitle,
26
+ loadErrorRetry: _.loadErrorRetry
28
27
  },
29
- testIds: h,
30
- className: g,
31
- style: _
28
+ testIds: m,
29
+ className: h,
30
+ style: g
32
31
  });
33
32
  }
34
33
  export { r as InvoicesQuickViewTile };
@@ -82,6 +82,7 @@ function h({ labels: h, testIds: g, side: _, onCapture: v }) {
82
82
  C ? /* @__PURE__ */ c("div", {
83
83
  className: "ttw:flex ttw:h-full ttw:w-full ttw:flex-col ttw:items-center ttw:justify-center ttw:gap-4 ttw:px-8 ttw:text-center",
84
84
  children: [/* @__PURE__ */ s("p", {
85
+ role: "alert",
85
86
  className: "ttw:text-base ttw:text-white",
86
87
  children: y.cameraError
87
88
  }), /* @__PURE__ */ s(e, {
@@ -10,16 +10,15 @@ function b({ id: e, label: t }) {
10
10
  };
11
11
  }
12
12
  function x({ option: t, isSelected: n, isDisabled: r, reason: o, onToggle: c }) {
13
- let l = /* @__PURE__ */ g("label", {
13
+ let l = r && !n, u = /* @__PURE__ */ g("label", {
14
14
  "data-testid": `approver-option-${t.id}`,
15
- "aria-selected": n,
16
- "aria-disabled": r,
17
15
  className: `ttw:flex ttw:w-full ttw:items-center ttw:gap-2 ttw:rounded-sm ttw:px-2 ttw:py-1.5 ttw:text-sm ${r ? "ttw:cursor-not-allowed ttw:opacity-50" : "ttw:cursor-pointer ttw:hover:bg-accent ttw:hover:text-accent-foreground"}`,
18
16
  children: [
19
17
  /* @__PURE__ */ h(e, {
20
18
  checked: n,
19
+ "aria-disabled": l,
21
20
  onCheckedChange: () => {
22
- (!r || n) && c();
21
+ l || c();
23
22
  }
24
23
  }),
25
24
  /* @__PURE__ */ h("span", {
@@ -34,11 +33,11 @@ function x({ option: t, isSelected: n, isDisabled: r, reason: o, onToggle: c })
34
33
  });
35
34
  return o ? /* @__PURE__ */ g(i, { children: [/* @__PURE__ */ h(s, {
36
35
  asChild: !0,
37
- children: l
36
+ children: u
38
37
  }), /* @__PURE__ */ h(a, {
39
38
  side: "right",
40
39
  children: o
41
- })] }) : l;
40
+ })] }) : u;
42
41
  }
43
42
  var S = ({ value: e, options: S, onChange: C, lockedSections: w, lockedOptions: T, disabled: E, error: D, labels: O, testId: k }) => {
44
43
  let [A, j] = p(!1), [M, N] = p(""), P = u(), F = u(), I = f(null), L = f(null), R = d(() => new Set(e.map((e) => e.id)), [e]), z = d(() => {