@tesouro/embedded-components-react 0.11.185 → 0.11.188

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 (52) hide show
  1. package/dist/index.css +6 -0
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index.js +3 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index6.js +31 -4
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/data-access/dist/index7.js +5 -0
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index.js +4 -4
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index10.js +143 -12
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index11.js +33 -83
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index12.js +15 -48
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index13.js +76 -254
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index14.js +48 -34
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index15.js +241 -438
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index16.js +29 -298
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index17.js +460 -4
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index18.js +327 -4
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index19.js +3 -37
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index20.js +5 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index21.js +38 -0
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index22.js +1 -0
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index7.js +30 -2
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index8.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index.js +7 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index10.js +2 -200
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js +38 -3
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index12.js +10 -2
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index13.js +196 -11
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index14.js +1 -0
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js +2 -2
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js +9 -15
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js +2 -54
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index19.js +20 -16
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index20.js +2 -460
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index21.js +54 -2
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index22.js +17 -0
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index23.js +463 -0
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index24.js +3 -0
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index8.js +5 -36
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index9.js +28 -10
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/queryKeys.js +8 -5
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +11 -9
  42. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/index.js +1 -0
  43. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  44. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/layout/useAnchoredOverlayLayout.js +5 -0
  45. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +4 -0
  46. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyAddress/CopyAddress.js +30 -46
  47. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyButton/CopyButton.js +36 -0
  48. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/CopyButton/labels.js +3 -0
  49. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadEmailOption/UploadEmailOption.js +2 -0
  50. package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/UploadPopover/UploadPopover.js +8 -0
  51. package/dist/packages/shared-ui-shadcn/dist/index.js +3623 -3539
  52. package/package.json +1 -1
@@ -1,200 +1,2 @@
1
- import { AmountFilter as e, DateRangePicker as t, FilterBar as n, FilterMenuButton as r, FilterTag as ee, Input as te, MultiSelectFilter as i, Popover as a, PopoverContent as o, PopoverTrigger as s, RadioGroup as c, RadioGroupItem as l, useFilterPanel as u } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILLS_FILTER_BAR_LABELS_EN as d } from "./index8.js";
3
- import { BillsFilterField as f } from "./index9.js";
4
- import { useMemo as ne } from "react";
5
- import { jsx as p, jsxs as m } from "react/jsx-runtime";
6
- import { ListFilterIcon as h } from "lucide-react";
7
- // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index10.js
8
- var g = {
9
- date: "ttw:w-auto",
10
- status: "ttw:w-56",
11
- amount: "ttw:w-64",
12
- vendor: "ttw:w-64",
13
- attachment: "ttw:w-56"
14
- }, _ = {
15
- [f.Vendor]: "vendor",
16
- [f.IssueDate]: "date",
17
- [f.DueDate]: "date",
18
- [f.Status]: "status",
19
- [f.TotalAmount]: "amount",
20
- [f.AddedOn]: "date",
21
- [f.Attachment]: "attachment"
22
- }, v = [
23
- f.IssueDate,
24
- f.DueDate,
25
- f.AddedOn
26
- ];
27
- function y({ fields: f, activeFilterCount: y, chips: b, onRemoveChip: x, onClearAll: S, dateField: C, onDateFieldChange: w, datePresets: T, selectedDatePreset: E, dateFrom: D, dateTo: O, onDateRangeChange: k, onDatePresetChange: A, statusOptions: j, selectedStatuses: M, onStatusChange: N, amountMode: P, onAmountModeChange: F, amountMin: I, amountMax: L, onAmountMinChange: re, onAmountMaxChange: R, vendorOptions: z, selectedVendors: B, onVendorChange: V, vendorSearchValue: H, onVendorSearchChange: U, isVendorLoading: W, isVendorError: G, hasAttachment: K, onHasAttachmentChange: q, searchSlot: J, testIds: Y, labels: X, className: ie }) {
28
- let Z = ne(() => ({
29
- ...d,
30
- ...X,
31
- fields: {
32
- ...d.fields,
33
- ...X?.fields
34
- },
35
- filterMenuButton: {
36
- ...d.filterMenuButton,
37
- ...X?.filterMenuButton
38
- },
39
- filterTag: {
40
- ...d.filterTag,
41
- ...X?.filterTag
42
- },
43
- amountFilter: {
44
- ...d.amountFilter,
45
- ...X?.amountFilter
46
- },
47
- dateRangePicker: {
48
- ...d.dateRangePicker,
49
- ...X?.dateRangePicker
50
- }
51
- }), [X]), Q = u(), $ = Q.activePanelId, ae = Q.isMenuOpen || !!$, oe = ($ && g[$]) ?? "ttw:w-52", se = (e) => {
52
- $ && e.preventDefault(), Q.toggleMenu();
53
- }, ce = (e) => {
54
- e || (Q.closeMenu(), Q.closePanel());
55
- }, le = (e) => {
56
- v.includes(e) && w(e), Q.openPanel(_[e]);
57
- }, ue = K === void 0 ? "any" : K ? "has" : "none", de = (e) => {
58
- q(e === "any" ? void 0 : e === "has");
59
- };
60
- return /* @__PURE__ */ p(n, {
61
- className: ie,
62
- searchSlot: J,
63
- menuSlot: /* @__PURE__ */ m(a, {
64
- open: ae,
65
- onOpenChange: ce,
66
- children: [/* @__PURE__ */ p(s, {
67
- asChild: !0,
68
- children: /* @__PURE__ */ p(r, {
69
- size: "default",
70
- activeCount: y,
71
- onClick: se,
72
- labels: Z.filterMenuButton,
73
- "data-testid": Y?.menuButton
74
- })
75
- }), /* @__PURE__ */ m(o, {
76
- align: "start",
77
- className: `ttw:p-0 ${oe}`,
78
- children: [
79
- Q.isMenuOpen ? /* @__PURE__ */ p("div", {
80
- className: "ttw:p-1",
81
- role: "menu",
82
- "aria-label": Z.fieldMenuLabel,
83
- children: f.map((e) => /* @__PURE__ */ m("button", {
84
- type: "button",
85
- role: "menuitem",
86
- className: "ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-md ttw:px-2 ttw:py-1.5 ttw:text-xs ttw:font-medium ttw:transition-colors ttw:hover:bg-accent",
87
- onClick: () => le(e),
88
- children: [/* @__PURE__ */ p(h, {
89
- className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
90
- "aria-hidden": !0
91
- }), Z.fields[e]]
92
- }, e))
93
- }) : null,
94
- $ === "date" ? /* @__PURE__ */ p(t, {
95
- from: D,
96
- to: O,
97
- onRangeChange: k,
98
- selectedPreset: E,
99
- onPresetChange: A,
100
- presets: [...T],
101
- labels: {
102
- ...Z.dateRangePicker,
103
- fieldLabel: Z.fields[C]
104
- }
105
- }) : null,
106
- $ === "status" ? /* @__PURE__ */ p(i, {
107
- options: [...j],
108
- selectedValues: [...M],
109
- onSelectionChange: N
110
- }) : null,
111
- $ === "amount" ? /* @__PURE__ */ p(e, {
112
- mode: P,
113
- onModeChange: F,
114
- min: I,
115
- max: L,
116
- onMinChange: re,
117
- onMaxChange: R,
118
- showFlowDirection: !1,
119
- labels: {
120
- ...Z.amountFilter,
121
- min: Z.amountMin,
122
- max: Z.amountMax
123
- }
124
- }) : null,
125
- $ === "vendor" ? /* @__PURE__ */ m("div", {
126
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-3",
127
- children: [/* @__PURE__ */ p(te, {
128
- type: "search",
129
- className: "ttw:h-8 ttw:text-xs",
130
- "aria-label": Z.vendorSearchLabel,
131
- placeholder: Z.vendorSearchPlaceholder,
132
- value: H,
133
- onChange: (e) => U(e.target.value)
134
- }), W ? /* @__PURE__ */ p("p", {
135
- className: "ttw:px-1 ttw:text-xs ttw:text-muted-foreground",
136
- children: Z.vendorLoading
137
- }) : G ? /* @__PURE__ */ p("p", {
138
- className: "ttw:px-1 ttw:text-xs ttw:text-destructive",
139
- children: Z.vendorError
140
- }) : z.length === 0 ? /* @__PURE__ */ p("p", {
141
- className: "ttw:px-1 ttw:text-xs ttw:text-muted-foreground",
142
- children: Z.vendorEmpty
143
- }) : /* @__PURE__ */ p(i, {
144
- options: [...z],
145
- selectedValues: [...B],
146
- onSelectionChange: V
147
- })]
148
- }) : null,
149
- $ === "attachment" ? /* @__PURE__ */ p("div", {
150
- className: "ttw:p-3",
151
- children: /* @__PURE__ */ p(c, {
152
- value: ue,
153
- onValueChange: de,
154
- "aria-label": Z.attachmentLabel,
155
- className: "ttw:flex ttw:flex-col ttw:gap-1",
156
- children: [
157
- {
158
- value: "any",
159
- label: Z.attachmentAny
160
- },
161
- {
162
- value: "has",
163
- label: Z.attachmentHas
164
- },
165
- {
166
- value: "none",
167
- label: Z.attachmentNone
168
- }
169
- ].map(({ value: e, label: t }) => /* @__PURE__ */ m("label", {
170
- className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
171
- children: [/* @__PURE__ */ p(l, { value: e }), /* @__PURE__ */ p("span", {
172
- className: "ttw:text-xs ttw:font-medium",
173
- children: t
174
- })]
175
- }, e))
176
- })
177
- }) : null
178
- ]
179
- })]
180
- }),
181
- activeChipsSlot: b.length > 0 ? /* @__PURE__ */ m("span", {
182
- className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
183
- "data-testid": Y?.chips,
184
- children: [b.map((e) => /* @__PURE__ */ p(ee, {
185
- label: e.label,
186
- labels: Z.filterTag,
187
- onDismiss: () => x(e.key)
188
- }, e.key)), /* @__PURE__ */ p("button", {
189
- type: "button",
190
- className: "ttw:cursor-pointer ttw:whitespace-nowrap ttw:text-xs ttw:text-muted-foreground ttw:transition-colors ttw:hover:text-foreground",
191
- onClick: S,
192
- children: Z.clearAll
193
- })]
194
- }) : void 0
195
- });
196
- }
197
- function b(e) {
198
- return /* @__PURE__ */ p(y, { ...e }, e.fields.join("|"));
199
- }
200
- export { b as BillsFilterBar, b as default };
1
+ import "./index8.js";
2
+ import "./index9.js";
@@ -1,3 +1,38 @@
1
- import "./index8.js";
2
- import "./index9.js";
3
- import "./index10.js";
1
+ import { AMOUNT_FILTER_LABELS_EN as e, DATE_RANGE_PICKER_LABELS_EN as t, FILTER_MENU_BUTTON_LABELS_EN as n, FILTER_TAG_LABELS_EN as r } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index11.js
3
+ var i = {
4
+ fields: {
5
+ vendor: "Vendor",
6
+ issueDate: "Issue date",
7
+ dueDate: "Due date",
8
+ status: "Status",
9
+ totalAmount: "Total amount",
10
+ addedOn: "Added on",
11
+ attachment: "Attachment"
12
+ },
13
+ fieldMenuLabel: "Filter bills by",
14
+ amountMin: "No less than",
15
+ amountMax: "No more than",
16
+ vendorSearchPlaceholder: "Search vendors",
17
+ vendorSearchLabel: "Search vendors",
18
+ vendorEmpty: "No vendors match",
19
+ vendorLoading: "Loading vendors",
20
+ vendorError: "Couldn't load vendors",
21
+ attachmentAny: "Any",
22
+ attachmentHas: "Has attachment",
23
+ attachmentNone: "No attachment",
24
+ attachmentLabel: "Filter by attachment",
25
+ clearAll: "Clear all",
26
+ filterMenuButton: n,
27
+ filterTag: r,
28
+ amountFilter: {
29
+ modeAny: e.modeAny,
30
+ modeExact: e.modeExact,
31
+ modeRange: e.modeRange,
32
+ flowAny: e.flowAny,
33
+ flowIn: e.flowIn,
34
+ flowOut: e.flowOut
35
+ },
36
+ dateRangePicker: { presetPlaceholder: t.presetPlaceholder }
37
+ };
38
+ export { i as BILLS_FILTER_BAR_LABELS_EN };
@@ -1,3 +1,11 @@
1
1
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index12.js
2
- var e = { missing: "Missing" };
3
- export { e as MISSING_VALUE_LABELS_EN };
2
+ var e = {
3
+ Vendor: "vendor",
4
+ IssueDate: "issueDate",
5
+ DueDate: "dueDate",
6
+ Status: "status",
7
+ TotalAmount: "totalAmount",
8
+ AddedOn: "addedOn",
9
+ Attachment: "attachment"
10
+ };
11
+ export { e as BillsFilterField };
@@ -1,15 +1,200 @@
1
- import { cn as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { MISSING_VALUE_LABELS_EN as t } from "./index12.js";
3
- import { jsx as n } from "react/jsx-runtime";
1
+ import { AmountFilter as e, DateRangePicker as t, FilterBar as n, FilterMenuButton as r, FilterTag as ee, Input as te, MultiSelectFilter as i, Popover as a, PopoverContent as o, PopoverTrigger as s, RadioGroup as c, RadioGroupItem as l, useFilterPanel as u } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { BILLS_FILTER_BAR_LABELS_EN as d } from "./index11.js";
3
+ import { BillsFilterField as f } from "./index12.js";
4
+ import { useMemo as ne } from "react";
5
+ import { jsx as p, jsxs as m } from "react/jsx-runtime";
6
+ import { ListFilterIcon as h } from "lucide-react";
4
7
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index13.js
5
- function r({ labels: r, className: i }) {
6
- let a = {
7
- ...t,
8
- ...r
8
+ var g = {
9
+ date: "ttw:w-auto",
10
+ status: "ttw:w-56",
11
+ amount: "ttw:w-64",
12
+ vendor: "ttw:w-64",
13
+ attachment: "ttw:w-56"
14
+ }, _ = {
15
+ [f.Vendor]: "vendor",
16
+ [f.IssueDate]: "date",
17
+ [f.DueDate]: "date",
18
+ [f.Status]: "status",
19
+ [f.TotalAmount]: "amount",
20
+ [f.AddedOn]: "date",
21
+ [f.Attachment]: "attachment"
22
+ }, v = [
23
+ f.IssueDate,
24
+ f.DueDate,
25
+ f.AddedOn
26
+ ];
27
+ function y({ fields: f, activeFilterCount: y, chips: b, onRemoveChip: x, onClearAll: S, dateField: C, onDateFieldChange: w, datePresets: T, selectedDatePreset: E, dateFrom: D, dateTo: O, onDateRangeChange: k, onDatePresetChange: A, statusOptions: j, selectedStatuses: M, onStatusChange: N, amountMode: P, onAmountModeChange: F, amountMin: I, amountMax: L, onAmountMinChange: re, onAmountMaxChange: R, vendorOptions: z, selectedVendors: B, onVendorChange: V, vendorSearchValue: H, onVendorSearchChange: U, isVendorLoading: W, isVendorError: G, hasAttachment: K, onHasAttachmentChange: q, searchSlot: J, testIds: Y, labels: X, className: ie }) {
28
+ let Z = ne(() => ({
29
+ ...d,
30
+ ...X,
31
+ fields: {
32
+ ...d.fields,
33
+ ...X?.fields
34
+ },
35
+ filterMenuButton: {
36
+ ...d.filterMenuButton,
37
+ ...X?.filterMenuButton
38
+ },
39
+ filterTag: {
40
+ ...d.filterTag,
41
+ ...X?.filterTag
42
+ },
43
+ amountFilter: {
44
+ ...d.amountFilter,
45
+ ...X?.amountFilter
46
+ },
47
+ dateRangePicker: {
48
+ ...d.dateRangePicker,
49
+ ...X?.dateRangePicker
50
+ }
51
+ }), [X]), Q = u(), $ = Q.activePanelId, ae = Q.isMenuOpen || !!$, oe = ($ && g[$]) ?? "ttw:w-52", se = (e) => {
52
+ $ && e.preventDefault(), Q.toggleMenu();
53
+ }, ce = (e) => {
54
+ e || (Q.closeMenu(), Q.closePanel());
55
+ }, le = (e) => {
56
+ v.includes(e) && w(e), Q.openPanel(_[e]);
57
+ }, ue = K === void 0 ? "any" : K ? "has" : "none", de = (e) => {
58
+ q(e === "any" ? void 0 : e === "has");
9
59
  };
10
- return /* @__PURE__ */ n("span", {
11
- className: e("ttw:text-amber-700", i),
12
- children: a.missing
60
+ return /* @__PURE__ */ p(n, {
61
+ className: ie,
62
+ searchSlot: J,
63
+ menuSlot: /* @__PURE__ */ m(a, {
64
+ open: ae,
65
+ onOpenChange: ce,
66
+ children: [/* @__PURE__ */ p(s, {
67
+ asChild: !0,
68
+ children: /* @__PURE__ */ p(r, {
69
+ size: "default",
70
+ activeCount: y,
71
+ onClick: se,
72
+ labels: Z.filterMenuButton,
73
+ "data-testid": Y?.menuButton
74
+ })
75
+ }), /* @__PURE__ */ m(o, {
76
+ align: "start",
77
+ className: `ttw:p-0 ${oe}`,
78
+ children: [
79
+ Q.isMenuOpen ? /* @__PURE__ */ p("div", {
80
+ className: "ttw:p-1",
81
+ role: "menu",
82
+ "aria-label": Z.fieldMenuLabel,
83
+ children: f.map((e) => /* @__PURE__ */ m("button", {
84
+ type: "button",
85
+ role: "menuitem",
86
+ className: "ttw:flex ttw:w-full ttw:cursor-pointer ttw:items-center ttw:gap-2 ttw:rounded-md ttw:px-2 ttw:py-1.5 ttw:text-xs ttw:font-medium ttw:transition-colors ttw:hover:bg-accent",
87
+ onClick: () => le(e),
88
+ children: [/* @__PURE__ */ p(h, {
89
+ className: "ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
90
+ "aria-hidden": !0
91
+ }), Z.fields[e]]
92
+ }, e))
93
+ }) : null,
94
+ $ === "date" ? /* @__PURE__ */ p(t, {
95
+ from: D,
96
+ to: O,
97
+ onRangeChange: k,
98
+ selectedPreset: E,
99
+ onPresetChange: A,
100
+ presets: [...T],
101
+ labels: {
102
+ ...Z.dateRangePicker,
103
+ fieldLabel: Z.fields[C]
104
+ }
105
+ }) : null,
106
+ $ === "status" ? /* @__PURE__ */ p(i, {
107
+ options: [...j],
108
+ selectedValues: [...M],
109
+ onSelectionChange: N
110
+ }) : null,
111
+ $ === "amount" ? /* @__PURE__ */ p(e, {
112
+ mode: P,
113
+ onModeChange: F,
114
+ min: I,
115
+ max: L,
116
+ onMinChange: re,
117
+ onMaxChange: R,
118
+ showFlowDirection: !1,
119
+ labels: {
120
+ ...Z.amountFilter,
121
+ min: Z.amountMin,
122
+ max: Z.amountMax
123
+ }
124
+ }) : null,
125
+ $ === "vendor" ? /* @__PURE__ */ m("div", {
126
+ className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-3",
127
+ children: [/* @__PURE__ */ p(te, {
128
+ type: "search",
129
+ className: "ttw:h-8 ttw:text-xs",
130
+ "aria-label": Z.vendorSearchLabel,
131
+ placeholder: Z.vendorSearchPlaceholder,
132
+ value: H,
133
+ onChange: (e) => U(e.target.value)
134
+ }), W ? /* @__PURE__ */ p("p", {
135
+ className: "ttw:px-1 ttw:text-xs ttw:text-muted-foreground",
136
+ children: Z.vendorLoading
137
+ }) : G ? /* @__PURE__ */ p("p", {
138
+ className: "ttw:px-1 ttw:text-xs ttw:text-destructive",
139
+ children: Z.vendorError
140
+ }) : z.length === 0 ? /* @__PURE__ */ p("p", {
141
+ className: "ttw:px-1 ttw:text-xs ttw:text-muted-foreground",
142
+ children: Z.vendorEmpty
143
+ }) : /* @__PURE__ */ p(i, {
144
+ options: [...z],
145
+ selectedValues: [...B],
146
+ onSelectionChange: V
147
+ })]
148
+ }) : null,
149
+ $ === "attachment" ? /* @__PURE__ */ p("div", {
150
+ className: "ttw:p-3",
151
+ children: /* @__PURE__ */ p(c, {
152
+ value: ue,
153
+ onValueChange: de,
154
+ "aria-label": Z.attachmentLabel,
155
+ className: "ttw:flex ttw:flex-col ttw:gap-1",
156
+ children: [
157
+ {
158
+ value: "any",
159
+ label: Z.attachmentAny
160
+ },
161
+ {
162
+ value: "has",
163
+ label: Z.attachmentHas
164
+ },
165
+ {
166
+ value: "none",
167
+ label: Z.attachmentNone
168
+ }
169
+ ].map(({ value: e, label: t }) => /* @__PURE__ */ m("label", {
170
+ className: "ttw:flex ttw:cursor-pointer ttw:items-center ttw:gap-2",
171
+ children: [/* @__PURE__ */ p(l, { value: e }), /* @__PURE__ */ p("span", {
172
+ className: "ttw:text-xs ttw:font-medium",
173
+ children: t
174
+ })]
175
+ }, e))
176
+ })
177
+ }) : null
178
+ ]
179
+ })]
180
+ }),
181
+ activeChipsSlot: b.length > 0 ? /* @__PURE__ */ m("span", {
182
+ className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2",
183
+ "data-testid": Y?.chips,
184
+ children: [b.map((e) => /* @__PURE__ */ p(ee, {
185
+ label: e.label,
186
+ labels: Z.filterTag,
187
+ onDismiss: () => x(e.key)
188
+ }, e.key)), /* @__PURE__ */ p("button", {
189
+ type: "button",
190
+ className: "ttw:cursor-pointer ttw:whitespace-nowrap ttw:text-xs ttw:text-muted-foreground ttw:transition-colors ttw:hover:text-foreground",
191
+ onClick: S,
192
+ children: Z.clearAll
193
+ })]
194
+ }) : void 0
13
195
  });
14
196
  }
15
- export { r as MissingValue, r as default };
197
+ function b(e) {
198
+ return /* @__PURE__ */ p(y, { ...e }, e.fields.join("|"));
199
+ }
200
+ export { b as BillsFilterBar, b as default };
@@ -1,2 +1,3 @@
1
+ import "./index11.js";
1
2
  import "./index12.js";
2
3
  import "./index13.js";
@@ -1,3 +1,3 @@
1
1
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index15.js
2
- var e = { none: "None" };
3
- export { e as NO_VALUE_LABELS_EN };
2
+ var e = { missing: "Missing" };
3
+ export { e as MISSING_VALUE_LABELS_EN };
@@ -1,21 +1,15 @@
1
1
  import { cn as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { NO_VALUE_LABELS_EN as t } from "./index15.js";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
2
+ import { MISSING_VALUE_LABELS_EN as t } from "./index15.js";
3
+ import { jsx as n } from "react/jsx-runtime";
4
4
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index16.js
5
- function i({ labels: i, className: a }) {
6
- let o = {
5
+ function r({ labels: r, className: i }) {
6
+ let a = {
7
7
  ...t,
8
- ...i
8
+ ...r
9
9
  };
10
- return /* @__PURE__ */ r("span", {
11
- className: e("ttw:text-muted-foreground", a),
12
- children: [/* @__PURE__ */ n("span", {
13
- "aria-hidden": !0,
14
- children: "—"
15
- }), /* @__PURE__ */ n("span", {
16
- className: "ttw:sr-only",
17
- children: o.none
18
- })]
10
+ return /* @__PURE__ */ n("span", {
11
+ className: e("ttw:text-amber-700", i),
12
+ children: a.missing
19
13
  });
20
14
  }
21
- export { i as NoValue, i as default };
15
+ export { r as MissingValue, r as default };
@@ -1,55 +1,3 @@
1
- import { DATA_TABLE_LABELS_EN as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { BILL_STATUS_BADGE_LABELS_EN as t } from "../../../../shared/document-status/ui/dist/index2.js";
3
- import "../../../../shared/document-status/ui/dist/index.js";
4
- import { ADD_BILL_PANEL_LABELS_EN as n } from "./index2.js";
5
- import "./index4.js";
6
- import { MISSING_VALUE_LABELS_EN as r } from "./index12.js";
7
- import "./index14.js";
8
- import { NO_VALUE_LABELS_EN as i } from "./index15.js";
9
- import "./index17.js";
10
1
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index18.js
11
- var a = ".pdf,.png,.jpg,.jpeg,.doc,.docx", o = {
12
- ...n,
13
- dropzone: {
14
- ...n.dropzone,
15
- fileTypesHint: "PDF, DOC, JPG, or PNG (max. 3MB)"
16
- }
17
- }, s = {
18
- createButton: "Add bill",
19
- columnVendor: "Vendor",
20
- columnInvoiceNumber: "Invoice number",
21
- columnAttachment: "Attachment",
22
- columnIssueDate: "Issue date",
23
- columnDueDate: "Due date",
24
- columnScheduledDate: "Scheduled date",
25
- columnPaidDate: "Paid date",
26
- columnAmountDue: "Amount due",
27
- columnAmountScheduled: "Amount scheduled",
28
- columnAmountPaid: "Amount paid",
29
- columnTotalAmount: "Total amount",
30
- columnStatus: "Status",
31
- columnAddedOn: "Added on",
32
- columnActions: "Actions",
33
- openRow: (e) => `View bill — ${e}`,
34
- vendorResolving: "Loading vendor",
35
- vendorUnavailable: "Vendor unavailable",
36
- searchPlaceholder: "Search by vendor name",
37
- searchLabel: "Search bills by vendor name",
38
- filterTabsLabel: "Filter bills by status",
39
- filteredEmptyTitle: "No bills match",
40
- filteredEmptyDescription: "Try a different search or status filter.",
41
- errorTitle: "Couldn't load bills",
42
- errorDescription: "Something went wrong. Try again.",
43
- errorRetry: "Retry",
44
- tableDropzoneTitle: "Drop your files here",
45
- statusBadge: t,
46
- addBill: o,
47
- sortableHeader: {
48
- sortedAscending: e.sortedAscending,
49
- sortedDescending: e.sortedDescending,
50
- notSorted: e.notSorted
51
- },
52
- missingValue: r,
53
- noValue: i
54
- };
55
- export { s as BILLS_SCREEN_LABELS_EN, a as BILLS_SCREEN_UPLOAD_ACCEPT };
2
+ var e = { none: "None" };
3
+ export { e as NO_VALUE_LABELS_EN };
@@ -1,17 +1,21 @@
1
+ import { cn as e } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { NO_VALUE_LABELS_EN as t } from "./index18.js";
3
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
1
4
  // ../../libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index19.js
2
- var e = {
3
- Vendor: "vendor",
4
- InvoiceNumber: "invoiceNumber",
5
- Attachment: "attachment",
6
- IssueDate: "issueDate",
7
- DueDate: "dueDate",
8
- ScheduledDate: "scheduledDate",
9
- PaidDate: "paidDate",
10
- Status: "status",
11
- AmountDue: "amountDue",
12
- AmountScheduled: "amountScheduled",
13
- AmountPaid: "amountPaid",
14
- TotalAmount: "totalAmount",
15
- AddedOn: "addedOn"
16
- };
17
- export { e as BillColumn };
5
+ function i({ labels: i, className: a }) {
6
+ let o = {
7
+ ...t,
8
+ ...i
9
+ };
10
+ return /* @__PURE__ */ r("span", {
11
+ className: e("ttw:text-muted-foreground", a),
12
+ children: [/* @__PURE__ */ n("span", {
13
+ "aria-hidden": !0,
14
+ children: "—"
15
+ }), /* @__PURE__ */ n("span", {
16
+ className: "ttw:sr-only",
17
+ children: o.none
18
+ })]
19
+ });
20
+ }
21
+ export { i as NoValue, i as default };