@tesouro/embedded-components-react 0.3.24 → 0.3.26

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 (80) hide show
  1. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index11.js +2 -2
  2. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index13.js +2 -2
  3. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index2.js +1 -1
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index25.js +17 -12
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index27.js +1 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index32.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index44.js +5 -5
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index46.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index47.js +1 -0
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index48.js +8 -4
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index59.js +1 -1
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index61.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index64.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index68.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index69.js +1 -0
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index70.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/index73.js +2 -2
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index.js +33 -30
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index18.js +0 -1
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index22.js +2 -40
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index23.js +23 -266
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index25.js +46 -6
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index26.js +273 -45
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index28.js +5 -18
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index29.js +45 -282
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index31.js +19 -13
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index32.js +273 -107
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index34.js +13 -9
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index35.js +113 -92
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index37.js +9 -10
  31. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index38.js +95 -54
  32. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index40.js +9 -50
  33. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index41.js +53 -137
  34. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index43.js +52 -2
  35. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index44.js +138 -37
  36. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index46.js +2 -5
  37. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index47.js +37 -88
  38. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index49.js +5 -2
  39. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index50.js +88 -12
  40. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index52.js +2 -77
  41. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index53.js +11 -253
  42. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index54.js +2 -13
  43. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index55.js +82 -0
  44. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index56.js +264 -8
  45. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index57.js +9 -45
  46. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index58.js +0 -1
  47. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index59.js +7 -36
  48. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index60.js +47 -10
  49. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.js +2 -201
  50. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.js +39 -3
  51. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index63.js +3 -7
  52. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index64.js +188 -301
  53. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index65.js +3 -10
  54. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index66.js +12 -4
  55. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index67.js +317 -81
  56. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index68.js +10 -0
  57. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index69.js +8 -2
  58. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index70.js +91 -16
  59. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index72.js +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index73.js +14 -3
  61. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index74.js +109 -26
  62. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index76.js +3 -3
  63. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index77.js +26 -30
  64. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index79.js +4 -9
  65. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index80.js +30 -102
  66. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index82.js +9 -14
  67. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index83.js +85 -104
  68. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index85.js +10 -11
  69. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index86.js +123 -8
  70. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index87.js +2 -170
  71. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index88.js +18 -2
  72. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index89.js +7 -11
  73. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index90.js +158 -96
  74. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index91.js +1 -1
  75. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index92.js +14 -0
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index93.js +108 -0
  77. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index94.js +2 -0
  78. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  79. package/package.json +1 -1
  80. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index71.js +0 -113
@@ -1,201 +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 "./index59.js";
3
- import { BillsFilterField as f } from "./index60.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
- //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index61.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: "md",
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: /* @__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)), b.length > 0 ? /* @__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
- }) : null]
194
- })
195
- });
196
- }
197
- function b(e) {
198
- return /* @__PURE__ */ p(y, { ...e }, e.fields.join("|"));
199
- }
200
- //#endregion
201
- export { b as BillsFilterBar, b as default };
1
+ import "./index59.js";
2
+ import "./index60.js";
@@ -1,3 +1,39 @@
1
- import "./index59.js";
2
- import "./index60.js";
3
- import "./index61.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
+ //#region ../../libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index62.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
+ //#endregion
39
+ export { i as BILLS_FILTER_BAR_LABELS_EN };
@@ -3,14 +3,10 @@ var e = {
3
3
  Vendor: "vendor",
4
4
  IssueDate: "issueDate",
5
5
  DueDate: "dueDate",
6
- ScheduledDate: "scheduledDate",
7
- PaidDate: "paidDate",
8
6
  Status: "status",
9
- AmountDue: "amountDue",
10
- AmountScheduled: "amountScheduled",
11
- AmountPaid: "amountPaid",
12
7
  TotalAmount: "totalAmount",
13
- AddedOn: "addedOn"
8
+ AddedOn: "addedOn",
9
+ Attachment: "attachment"
14
10
  };
15
11
  //#endregion
16
- export { e as BillColumn };
12
+ export { e as BillsFilterField };