@tesouro/embedded-components-react 0.3.38 → 0.3.40

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 (16) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index11.js +59 -48
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index4.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index5.js +163 -51
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/index6.js +39 -20
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +25 -24
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +5 -0
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -0
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +68 -65
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +1 -0
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +77 -65
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +1 -0
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +1 -0
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +156 -138
  14. package/dist/libs/tesouro-embedded-components-react/shared/data-access/dist/index.js +23 -23
  15. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  16. package/package.json +1 -1
@@ -11,17 +11,17 @@ import { VendorSection as m } from "./index41.js";
11
11
  import "./index42.js";
12
12
  import { mergeBillCreateScreenLabels as h } from "./index43.js";
13
13
  import { Fragment as g, jsx as _, jsxs as v } from "react/jsx-runtime";
14
- import { MoreVertical as y, X as b } from "lucide-react";
14
+ import { Minimize2 as y, MoreVertical as b, X as x } from "lucide-react";
15
15
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js
16
- function x({ open: x, onOpenChange: S, title: C, subtitle: w, notice: T, vendor: E, values: D, errors: O, onChange: k, lineItems: A, documentPanel: j, menuItems: M, readOnly: N, detail: P, isLineItemsLoading: F, isSaving: I, isSavingDraft: L, isFinalizing: R, onCancel: z, onSaveDraft: B, onFinalize: V, testId: H, labels: U }) {
17
- let W = h(U), G = !!(N && P);
16
+ function S({ open: S, onOpenChange: C, title: w, subtitle: T, notice: E, vendor: D, values: O, errors: k, onChange: A, lineItems: j, documentPanel: M, menuItems: N, readOnly: P, detail: F, isLineItemsLoading: I, isSaving: L, isSavingDraft: R, isFinalizing: z, onCancel: B, onCollapse: V, onSaveDraft: H, onFinalize: U, testId: W, labels: G }) {
17
+ let K = h(G), q = !!(P && F);
18
18
  return /* @__PURE__ */ _(t, {
19
- open: x,
20
- onOpenChange: S,
19
+ open: S,
20
+ onOpenChange: C,
21
21
  children: /* @__PURE__ */ v(n, {
22
22
  showCloseButton: !1,
23
23
  className: "ttw:flex ttw:h-[calc(100vh-3rem)] ttw:w-[calc(100vw-3rem)] ttw:max-w-[calc(100vw-3rem)] ttw:flex-col ttw:gap-0 ttw:p-0",
24
- "data-testid": H,
24
+ "data-testid": W,
25
25
  children: [
26
26
  /* @__PURE__ */ v(i, {
27
27
  className: "ttw:flex ttw:flex-row ttw:items-start ttw:justify-between ttw:border-b ttw:border-border ttw:px-6 ttw:py-4",
@@ -30,45 +30,57 @@ function x({ open: x, onOpenChange: S, title: C, subtitle: w, notice: T, vendor:
30
30
  children: [
31
31
  /* @__PURE__ */ _(a, {
32
32
  className: "ttw:text-xl ttw:font-semibold",
33
- children: C
33
+ children: w
34
34
  }),
35
- w ? /* @__PURE__ */ _("p", {
35
+ T ? /* @__PURE__ */ _("p", {
36
36
  className: "ttw:text-sm ttw:text-muted-foreground",
37
- children: w
37
+ children: T
38
38
  }) : null,
39
39
  /* @__PURE__ */ _(r, {
40
40
  className: "ttw:sr-only",
41
- children: W.hiddenDescription
41
+ children: K.hiddenDescription
42
42
  })
43
43
  ]
44
44
  }), /* @__PURE__ */ v("div", {
45
45
  className: "ttw:flex ttw:items-center ttw:gap-1",
46
- children: [M && M.length > 0 ? /* @__PURE__ */ v(o, { children: [/* @__PURE__ */ _(l, {
47
- asChild: !0,
48
- children: /* @__PURE__ */ _(e, {
46
+ children: [
47
+ V ? /* @__PURE__ */ _(e, {
49
48
  type: "button",
50
49
  variant: "ghost",
51
50
  size: "icon",
52
- "aria-label": W.menuTrigger,
53
- disabled: I,
51
+ "aria-label": K.collapseButton,
52
+ disabled: L,
53
+ onClick: V,
54
54
  children: /* @__PURE__ */ _(y, { className: "ttw:size-4" })
55
+ }) : null,
56
+ N && N.length > 0 ? /* @__PURE__ */ v(o, { children: [/* @__PURE__ */ _(l, {
57
+ asChild: !0,
58
+ children: /* @__PURE__ */ _(e, {
59
+ type: "button",
60
+ variant: "ghost",
61
+ size: "icon",
62
+ "aria-label": K.menuTrigger,
63
+ disabled: L,
64
+ children: /* @__PURE__ */ _(b, { className: "ttw:size-4" })
65
+ })
66
+ }), /* @__PURE__ */ _(s, {
67
+ align: "end",
68
+ children: N.map((e) => /* @__PURE__ */ _(c, {
69
+ variant: e.destructive ? "destructive" : void 0,
70
+ onSelect: e.onSelect,
71
+ children: e.label
72
+ }, e.id))
73
+ })] }) : null,
74
+ /* @__PURE__ */ _(e, {
75
+ type: "button",
76
+ variant: "ghost",
77
+ size: "icon",
78
+ "aria-label": K.closeButton,
79
+ disabled: L,
80
+ onClick: B,
81
+ children: /* @__PURE__ */ _(x, { className: "ttw:size-4" })
55
82
  })
56
- }), /* @__PURE__ */ _(s, {
57
- align: "end",
58
- children: M.map((e) => /* @__PURE__ */ _(c, {
59
- variant: e.destructive ? "destructive" : void 0,
60
- onSelect: e.onSelect,
61
- children: e.label
62
- }, e.id))
63
- })] }) : null, /* @__PURE__ */ _(e, {
64
- type: "button",
65
- variant: "ghost",
66
- size: "icon",
67
- "aria-label": W.closeButton,
68
- disabled: I,
69
- onClick: z,
70
- children: /* @__PURE__ */ _(b, { className: "ttw:size-4" })
71
- })]
83
+ ]
72
84
  })]
73
85
  }),
74
86
  /* @__PURE__ */ v("div", {
@@ -76,62 +88,62 @@ function x({ open: x, onOpenChange: S, title: C, subtitle: w, notice: T, vendor:
76
88
  children: [/* @__PURE__ */ v("div", {
77
89
  className: "ttw:flex ttw:flex-col ttw:gap-6 ttw:overflow-y-auto ttw:px-6 ttw:py-6",
78
90
  children: [
79
- O?.form ? /* @__PURE__ */ _(u, { children: O.form }) : null,
80
- T ? /* @__PURE__ */ _("div", {
91
+ k?.form ? /* @__PURE__ */ _(u, { children: k.form }) : null,
92
+ E ? /* @__PURE__ */ _("div", {
81
93
  className: "ttw:flex ttw:flex-col ttw:gap-3",
82
- children: T
94
+ children: E
83
95
  }) : null,
84
- G ? /* @__PURE__ */ _(d, {
85
- ...P,
86
- labels: W.detailBody
96
+ q ? /* @__PURE__ */ _(d, {
97
+ ...F,
98
+ labels: K.detailBody
87
99
  }) : /* @__PURE__ */ v(g, { children: [
88
100
  /* @__PURE__ */ _(m, {
89
- ...E,
90
- onEdit: N ? void 0 : E.onEdit,
91
- onClear: N ? void 0 : E.onClear,
92
- disabled: N,
93
- labels: W.vendorSection
101
+ ...D,
102
+ onEdit: P ? void 0 : D.onEdit,
103
+ onClear: P ? void 0 : D.onClear,
104
+ disabled: P,
105
+ labels: K.vendorSection
94
106
  }),
95
107
  /* @__PURE__ */ _(f, {
96
- values: D,
97
- errors: O,
98
- onChange: k,
99
- disabled: N,
100
- labels: W.detailsFields
108
+ values: O,
109
+ errors: k,
110
+ onChange: A,
111
+ disabled: P,
112
+ labels: K.detailsFields
101
113
  }),
102
114
  /* @__PURE__ */ _(p, {
103
- ...A,
104
- disabled: A.disabled || F || N,
105
- labels: W.lineItems
115
+ ...j,
116
+ disabled: j.disabled || I || P,
117
+ labels: K.lineItems
106
118
  })
107
119
  ] })
108
120
  ]
109
121
  }), /* @__PURE__ */ _("div", {
110
122
  className: "ttw:overflow-y-auto ttw:bg-muted/30 ttw:px-6 ttw:py-6",
111
- children: j
123
+ children: M
112
124
  })]
113
125
  }),
114
- G ? null : /* @__PURE__ */ v("div", {
126
+ q ? null : /* @__PURE__ */ v("div", {
115
127
  className: "ttw:flex ttw:justify-end ttw:gap-2 ttw:border-t ttw:border-border ttw:px-6 ttw:py-4",
116
128
  children: [/* @__PURE__ */ _(e, {
117
129
  type: "button",
118
130
  variant: "ghost",
119
- disabled: I,
120
- onClick: z,
121
- children: N ? W.closeButton : W.cancelButton
122
- }), N ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(e, {
131
+ disabled: L,
132
+ onClick: B,
133
+ children: P ? K.closeButton : K.cancelButton
134
+ }), P ? null : /* @__PURE__ */ v(g, { children: [/* @__PURE__ */ _(e, {
123
135
  type: "button",
124
136
  variant: "secondary",
125
- onClick: B,
126
- loading: L,
127
- disabled: R || F || E.mode === "creating",
128
- children: W.saveDraftButton
137
+ onClick: H,
138
+ loading: R,
139
+ disabled: z || I || D.mode === "creating",
140
+ children: K.saveDraftButton
129
141
  }), /* @__PURE__ */ _(e, {
130
142
  type: "button",
131
- onClick: V,
132
- loading: R,
133
- disabled: L || F || E.mode === "creating",
134
- children: W.finalizeButton
143
+ onClick: U,
144
+ loading: z,
145
+ disabled: R || I || D.mode === "creating",
146
+ children: K.finalizeButton
135
147
  })] })]
136
148
  })
137
149
  ]
@@ -139,4 +151,4 @@ function x({ open: x, onOpenChange: S, title: C, subtitle: w, notice: T, vendor:
139
151
  });
140
152
  }
141
153
  //#endregion
142
- export { x as BillCreateScreen, x as default };
154
+ export { S as BillCreateScreen, S as default };
@@ -48,6 +48,7 @@ var o = {
48
48
  }, l = {
49
49
  createButton: "Add bill",
50
50
  columnVendor: "Vendor",
51
+ columnAttachment: "Attachment",
51
52
  columnIssueDate: "Issue date",
52
53
  columnDueDate: "Due date",
53
54
  columnScheduledDate: "Scheduled date",
@@ -1,6 +1,7 @@
1
1
  //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js
2
2
  var e = {
3
3
  Vendor: "vendor",
4
+ Attachment: "attachment",
4
5
  IssueDate: "issueDate",
5
6
  DueDate: "dueDate",
6
7
  ScheduledDate: "scheduledDate",