@tesouro/embedded-components-react 0.4.19 → 0.4.20

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 (22) hide show
  1. package/dist/index.css +11 -0
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index18.js +23 -14
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index34.js +49 -50
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index43.js +0 -1
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index56.js +254 -250
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +71 -65
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index6.js +5 -9
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +3 -4
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +11 -11
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index75.js +4 -4
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index12.js +1 -2
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index13.js +1 -6
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index16.js +3 -4
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index17.js +3 -2
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +1 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index30.js +142 -137
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +1 -1
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +2 -2
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +1 -0
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +52 -47
  21. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  22. package/package.json +1 -1
@@ -49,85 +49,85 @@ function D({ heading: e, children: t }) {
49
49
  }), /* @__PURE__ */ x(r, { children: t })]
50
50
  });
51
51
  }
52
- function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolicy: C, paymentHistory: O, paymentHistoryError: k, paymentHistoryLoading: A, isLoading: j, isError: M, notice: N, onClose: P, onExpand: F, testId: I, labels: L }) {
53
- let R = {
52
+ function O({ open: n, onOpenChange: r, details: i, actions: C = _, approvalPolicy: O, showApprovalOverrideNotice: k, paymentHistory: A, paymentHistoryError: j, paymentHistoryLoading: M, isLoading: N, isError: P, notice: F, onClose: I, onExpand: L, testId: R, labels: z }) {
53
+ let B = {
54
54
  ...y,
55
- ...L,
55
+ ...z,
56
56
  statusBadge: {
57
57
  ...y.statusBadge,
58
- ...L?.statusBadge
58
+ ...z?.statusBadge
59
59
  },
60
60
  approvalPolicy: {
61
61
  ...y.approvalPolicy,
62
- ...L?.approvalPolicy
62
+ ...z?.approvalPolicy
63
63
  },
64
64
  dueDate: {
65
65
  ...y.dueDate,
66
- ...L?.dueDate
66
+ ...z?.dueDate
67
67
  }
68
68
  };
69
69
  return /* @__PURE__ */ x(a, {
70
70
  open: n,
71
- onOpenChange: (e) => e ? r(e) : P(),
71
+ onOpenChange: (e) => e ? r(e) : I(),
72
72
  children: /* @__PURE__ */ S(o, {
73
73
  showCloseButton: !1,
74
74
  className: "ttw:w-150 ttw:gap-0 ttw:overflow-y-auto ttw:sm:max-w-150",
75
- "data-testid": I,
75
+ "data-testid": R,
76
76
  children: [/* @__PURE__ */ S(c, {
77
77
  className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:gap-3",
78
78
  children: [/* @__PURE__ */ S("div", {
79
79
  className: "ttw:flex ttw:flex-col ttw:gap-0.5",
80
80
  children: [
81
81
  /* @__PURE__ */ x(l, {
82
- className: j ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
83
- children: M ? R.errorTitle : j ? R.loadingTitle : i?.title
82
+ className: N ? "ttw:sr-only" : "ttw:text-xl ttw:font-semibold",
83
+ children: P ? B.errorTitle : N ? B.loadingTitle : i?.title
84
84
  }),
85
- j ? /* @__PURE__ */ S("div", {
85
+ N ? /* @__PURE__ */ S("div", {
86
86
  "aria-hidden": !0,
87
87
  className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:py-1",
88
88
  children: [/* @__PURE__ */ x(u, { className: "ttw:h-6 ttw:w-48" }), /* @__PURE__ */ x(u, { className: "ttw:h-4 ttw:w-28" })]
89
89
  }) : null,
90
- i && !j && !M ? /* @__PURE__ */ x("p", {
90
+ i && !N && !P ? /* @__PURE__ */ x("p", {
91
91
  className: "ttw:text-sm ttw:text-muted-foreground",
92
92
  children: i.subtitle
93
93
  }) : null,
94
94
  /* @__PURE__ */ x(s, {
95
95
  className: "ttw:sr-only",
96
- children: R.hiddenDescription
96
+ children: B.hiddenDescription
97
97
  })
98
98
  ]
99
99
  }), /* @__PURE__ */ S("div", {
100
100
  className: "ttw:flex ttw:items-center ttw:gap-1",
101
101
  children: [
102
- F ? /* @__PURE__ */ x(t, {
102
+ L ? /* @__PURE__ */ x(t, {
103
103
  type: "button",
104
104
  variant: "ghost",
105
105
  size: "icon",
106
- "aria-label": R.expandButton,
107
- onClick: F,
106
+ "aria-label": B.expandButton,
107
+ onClick: L,
108
108
  children: /* @__PURE__ */ x(w, { className: "ttw:size-4" })
109
109
  }) : null,
110
- i && !j && !M ? /* @__PURE__ */ x(v, {
111
- actions: d.menu,
112
- triggerLabel: R.overflowMenuTrigger,
110
+ i && !N && !P ? /* @__PURE__ */ x(v, {
111
+ actions: C.menu,
112
+ triggerLabel: B.overflowMenuTrigger,
113
113
  placement: "header"
114
114
  }) : null,
115
115
  /* @__PURE__ */ x(t, {
116
116
  type: "button",
117
117
  variant: "ghost",
118
118
  size: "icon",
119
- "aria-label": R.closeButton,
120
- onClick: P,
119
+ "aria-label": B.closeButton,
120
+ onClick: I,
121
121
  children: /* @__PURE__ */ x(T, { className: "ttw:size-4" })
122
122
  })
123
123
  ]
124
124
  })]
125
125
  }), /* @__PURE__ */ x("div", {
126
126
  className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:px-6 ttw:pb-6",
127
- children: M ? /* @__PURE__ */ x("p", {
127
+ children: P ? /* @__PURE__ */ x("p", {
128
128
  className: "ttw:text-sm ttw:text-muted-foreground",
129
- children: R.errorDescription
130
- }) : j ? /* @__PURE__ */ S("div", {
129
+ children: B.errorDescription
130
+ }) : N ? /* @__PURE__ */ S("div", {
131
131
  className: "ttw:flex ttw:flex-col ttw:gap-6",
132
132
  children: [/* @__PURE__ */ x(u, { className: "ttw:h-32 ttw:w-full" }), /* @__PURE__ */ S("div", {
133
133
  className: "ttw:flex ttw:flex-col ttw:gap-2",
@@ -138,7 +138,7 @@ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolic
138
138
  ]
139
139
  })]
140
140
  }) : i ? /* @__PURE__ */ S(b, { children: [
141
- N,
141
+ F,
142
142
  /* @__PURE__ */ S("section", {
143
143
  className: "ttw:flex ttw:flex-col ttw:gap-3 ttw:rounded-lg ttw:bg-muted/50 ttw:p-4",
144
144
  children: [
@@ -150,7 +150,7 @@ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolic
150
150
  className: "ttw:flex ttw:flex-col",
151
151
  children: [/* @__PURE__ */ x("span", {
152
152
  className: "ttw:text-sm ttw:text-muted-foreground",
153
- children: R.amountDueHeading
153
+ children: B.amountDueHeading
154
154
  }), /* @__PURE__ */ x("span", {
155
155
  className: "ttw:text-3xl ttw:font-semibold",
156
156
  children: i.amountDueLabel
@@ -159,7 +159,7 @@ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolic
159
159
  className: "ttw:flex ttw:flex-col",
160
160
  children: [/* @__PURE__ */ x("span", {
161
161
  className: "ttw:text-sm ttw:text-muted-foreground",
162
- children: R.amountPaidHeading
162
+ children: B.amountPaidHeading
163
163
  }), /* @__PURE__ */ x("span", {
164
164
  className: "ttw:text-3xl ttw:font-semibold ttw:text-emerald-600",
165
165
  children: i.amountPaidLabel
@@ -167,7 +167,7 @@ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolic
167
167
  })]
168
168
  }) : /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x("span", {
169
169
  className: "ttw:text-sm ttw:text-muted-foreground",
170
- children: R.amountDueHeading
170
+ children: B.amountDueHeading
171
171
  }), /* @__PURE__ */ x("span", {
172
172
  className: "ttw:text-3xl ttw:font-semibold",
173
173
  children: i.amountDueLabel
@@ -178,7 +178,7 @@ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolic
178
178
  }) : /* @__PURE__ */ x(p, {
179
179
  status: i.status,
180
180
  tone: i.statusTone,
181
- labels: R.statusBadge
181
+ labels: B.statusBadge
182
182
  }) })]
183
183
  }),
184
184
  /* @__PURE__ */ S("div", {
@@ -187,7 +187,7 @@ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolic
187
187
  className: "ttw:flex ttw:flex-col",
188
188
  children: [/* @__PURE__ */ x("span", {
189
189
  className: "ttw:text-xs ttw:text-muted-foreground",
190
- children: R.invoiceDateLabel
190
+ children: B.invoiceDateLabel
191
191
  }), /* @__PURE__ */ x("span", {
192
192
  className: "ttw:text-sm ttw:font-medium",
193
193
  children: i.invoiceDateLabel
@@ -196,34 +196,39 @@ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolic
196
196
  className: "ttw:flex ttw:flex-col",
197
197
  children: [/* @__PURE__ */ x("span", {
198
198
  className: "ttw:text-xs ttw:text-muted-foreground",
199
- children: R.dueDateLabel
199
+ children: B.dueDateLabel
200
200
  }), /* @__PURE__ */ x(m, {
201
201
  className: "ttw:text-sm ttw:font-medium",
202
202
  value: i.dueDateLabel,
203
203
  tone: i.dueDateTone,
204
- labels: R.dueDate
204
+ labels: B.dueDate
205
205
  })]
206
206
  })]
207
207
  }),
208
- d.row.length ? /* @__PURE__ */ x("div", {
208
+ k ? /* @__PURE__ */ x(d, {
209
+ variant: "caption",
210
+ color: "muted",
211
+ children: B.approvalOverrideNotice
212
+ }) : null,
213
+ C.row.length ? /* @__PURE__ */ x("div", {
209
214
  className: "ttw:flex ttw:items-center ttw:gap-2",
210
- children: /* @__PURE__ */ x(g, { actions: d.row })
215
+ children: /* @__PURE__ */ x(g, { actions: C.row })
211
216
  }) : null
212
217
  ]
213
218
  }),
214
219
  /* @__PURE__ */ x(D, {
215
- heading: i.paidOnLabel ? R.payToHeadingPaid : R.payToHeading,
220
+ heading: i.paidOnLabel ? B.payToHeadingPaid : B.payToHeading,
216
221
  children: /* @__PURE__ */ x(E, { items: i.payToItems })
217
222
  }),
218
- O?.length || k || A ? /* @__PURE__ */ x(D, {
219
- heading: R.paymentHistoryHeading,
220
- children: k ? /* @__PURE__ */ x("p", {
223
+ A?.length || j || M ? /* @__PURE__ */ x(D, {
224
+ heading: B.paymentHistoryHeading,
225
+ children: j ? /* @__PURE__ */ x("p", {
221
226
  className: "ttw:text-sm ttw:text-muted-foreground",
222
- children: R.paymentHistoryErrorDescription
223
- }) : A ? /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ x(h, { records: O ?? [] })
227
+ children: B.paymentHistoryErrorDescription
228
+ }) : M ? /* @__PURE__ */ x(u, { className: "ttw:h-9 ttw:w-full" }) : /* @__PURE__ */ x(h, { records: A ?? [] })
224
229
  }) : null,
225
230
  /* @__PURE__ */ x(D, {
226
- heading: R.invoiceDetailsHeading,
231
+ heading: B.invoiceDetailsHeading,
227
232
  children: /* @__PURE__ */ S("div", {
228
233
  className: "ttw:flex ttw:flex-col ttw:gap-4",
229
234
  children: [
@@ -235,15 +240,15 @@ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolic
235
240
  children: [
236
241
  /* @__PURE__ */ x("th", {
237
242
  className: "ttw:px-3 ttw:py-2 ttw:text-left ttw:font-normal",
238
- children: R.lineItemsHeading
243
+ children: B.lineItemsHeading
239
244
  }),
240
245
  /* @__PURE__ */ x("th", {
241
246
  className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
242
- children: R.lineItemsQuantityHeading
247
+ children: B.lineItemsQuantityHeading
243
248
  }),
244
249
  /* @__PURE__ */ x("th", {
245
250
  className: "ttw:px-3 ttw:py-2 ttw:text-right ttw:font-normal",
246
- children: R.lineItemsAmountHeading
251
+ children: B.lineItemsAmountHeading
247
252
  })
248
253
  ]
249
254
  }) }), /* @__PURE__ */ x("tbody", { children: i.lineItems.map((e) => /* @__PURE__ */ S("tr", {
@@ -283,9 +288,9 @@ function O({ open: n, onOpenChange: r, details: i, actions: d = _, approvalPolic
283
288
  ]
284
289
  })
285
290
  }),
286
- C ? /* @__PURE__ */ x(f, {
287
- view: C,
288
- labels: R.approvalPolicy
291
+ O ? /* @__PURE__ */ x(f, {
292
+ view: O,
293
+ labels: B.approvalPolicy
289
294
  }) : null
290
295
  ] }) : null
291
296
  })]
@@ -1,5 +1,5 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
2
- var e = "@tesouro/embedded-components-react", t = "0.4.19", n = "a961a8a7b45e4d505f679336f464b9dfc0b94039", r = Object.freeze({
2
+ var e = "@tesouro/embedded-components-react", t = "0.4.20", n = "e680bd5b652b943a74f77e84710ec84dda3c4568", r = Object.freeze({
3
3
  library_name: e,
4
4
  library_version: t,
5
5
  library_sha: n
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tesouro/embedded-components-react",
3
- "version": "0.4.19",
3
+ "version": "0.4.20",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "packageDepSync": {