@tesouro/embedded-components-react 0.11.235 → 0.11.237

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 (77) hide show
  1. package/README.md +2 -2
  2. package/dist/index.css +12 -0
  3. package/dist/index.d.ts +24 -0
  4. package/dist/lib/ReceivablesWidget.d.ts +24 -0
  5. package/dist/lib/WidgetSuite.d.ts +24 -0
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +198 -118
  8. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +76 -194
  9. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +67 -75
  10. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +111 -69
  11. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +459 -108
  12. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +101 -449
  13. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +9 -117
  14. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +85 -8
  15. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +67 -73
  16. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +246 -71
  17. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +40 -251
  18. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +237 -38
  19. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +21 -244
  20. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +529 -21
  21. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +4 -530
  22. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +44 -4
  23. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +242 -41
  24. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +3 -245
  25. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +5 -3
  26. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index50.js +63 -4
  27. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index51.js +1 -64
  28. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +1 -1
  29. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +1 -1
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +386 -354
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +1 -0
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +1 -1
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +260 -258
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +219 -179
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -25
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +15 -0
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +31 -40
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -17
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +40 -8
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +30 -63
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +463 -27
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +15 -29
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -18
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +18 -18
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +19 -30
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +15 -66
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +66 -391
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +148 -2
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +173 -43
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +3 -71
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +37 -432
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +66 -188
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +455 -22
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +191 -5
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +23 -0
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +5 -265
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +261 -125
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +2 -27
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +122 -230
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +27 -3
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +216 -224
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +3 -30
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +228 -168
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +29 -21
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +152 -109
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +22 -2
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +140 -43
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +2 -0
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index65.js +47 -0
  72. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/document-preview.js +1 -0
  73. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  74. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/document/documentPreview.js +122 -0
  75. package/package.json +1 -1
  76. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index52.js +0 -1
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +0 -2
@@ -1,41 +1,32 @@
1
- import { Ban as e, CalendarX2 as t, CircleCheck as n, CircleOff as r, CircleX as i, ClipboardCheck as a, CopyPlus as o, FileCheck as s, Mail as c, Pause as l, Pencil as u, Play as d, Send as f, Trash2 as p } from "lucide-react";
1
+ import { Button as e, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
2
3
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js
3
- var m = {
4
- edit: "editButton",
5
- issue: "issueButton",
6
- issueAndSend: "issueAndSendButton",
7
- recordPayment: "recordPaymentButton",
8
- send: "sendButton",
9
- accept: "acceptButton",
10
- decline: "declineButton",
11
- markPaid: "markPaidButton",
12
- markUncollectible: "markUncollectibleButton",
13
- cancel: "cancelButton",
14
- clone: "cloneButton",
15
- delete: "deleteButton",
16
- pauseRecurrence: "pauseRecurrenceButton",
17
- resumeRecurrence: "resumeRecurrenceButton",
18
- cancelRecurrence: "cancelRecurrenceButton"
19
- }, h = {
20
- edit: u,
21
- issue: s,
22
- issueAndSend: f,
23
- recordPayment: a,
24
- send: c,
25
- accept: n,
26
- decline: i,
27
- markPaid: n,
28
- markUncollectible: r,
29
- cancel: e,
30
- clone: o,
31
- delete: p,
32
- pauseRecurrence: l,
33
- resumeRecurrence: d,
34
- cancelRecurrence: t
35
- }, g = /* @__PURE__ */ new Set([
36
- "delete",
37
- "cancel",
38
- "markUncollectible",
39
- "cancelRecurrence"
40
- ]), _ = "ttw:border-border", v = (e) => e.preventDefault();
41
- export { h as ACTION_ICON, m as ACTION_LABEL_KEY, g as DESTRUCTIVE_ACTIONS, v as preventTooltipFocusOpen, _ as sectionItemClass };
4
+ var i = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
5
+ function a({ label: a, name: o, onOpen: s }) {
6
+ let c = /* @__PURE__ */ n(t, {
7
+ component: "span",
8
+ variant: "body2",
9
+ color: "muted",
10
+ className: "ttw:w-40 ttw:shrink-0",
11
+ children: a
12
+ });
13
+ return s ? /* @__PURE__ */ r("div", {
14
+ className: i,
15
+ children: [c, /* @__PURE__ */ n(e, {
16
+ type: "button",
17
+ variant: "link",
18
+ "aria-haspopup": "dialog",
19
+ className: "ttw:h-auto ttw:px-0 ttw:text-left",
20
+ onClick: s,
21
+ children: o
22
+ })]
23
+ }) : /* @__PURE__ */ r("div", {
24
+ className: i,
25
+ children: [c, /* @__PURE__ */ n(t, {
26
+ component: "span",
27
+ variant: "body2",
28
+ children: o
29
+ })]
30
+ });
31
+ }
32
+ export { a as CustomerNameRow };
@@ -1,20 +1,21 @@
1
- import { AccordionTrigger as e, Badge as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
1
+ import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
3
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js
4
- function i({ heading: i, countLabel: a }) {
5
- return /* @__PURE__ */ n(e, {
6
- className: "ttw:group ttw:cursor-pointer ttw:hover:no-underline",
7
- iconClassName: "ttw:translate-y-0.5",
8
- children: /* @__PURE__ */ r("span", {
9
- className: "ttw:flex ttw:items-center ttw:gap-2",
10
- children: [/* @__PURE__ */ n("span", {
11
- className: "ttw:group-hover:underline",
12
- children: i
13
- }), a ? /* @__PURE__ */ n(t, {
14
- tone: "neutral",
15
- children: a
16
- }) : null]
17
- })
4
+ function r({ label: r, value: i }) {
5
+ return /* @__PURE__ */ n("div", {
6
+ className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0",
7
+ children: [/* @__PURE__ */ t(e, {
8
+ component: "span",
9
+ variant: "body2",
10
+ color: "muted",
11
+ className: "ttw:w-40 ttw:shrink-0",
12
+ children: r
13
+ }), /* @__PURE__ */ t(e, {
14
+ component: "span",
15
+ variant: "body2",
16
+ className: "ttw:whitespace-pre-line",
17
+ children: i
18
+ })]
18
19
  });
19
20
  }
20
- export { i as SectionTrigger };
21
+ export { r as InfoRow };
@@ -1,9 +1,41 @@
1
+ import { Ban as e, CalendarX2 as t, CircleCheck as n, CircleOff as r, CircleX as i, ClipboardCheck as a, CopyPlus as o, FileCheck as s, Mail as c, Pause as l, Pencil as u, Play as d, Send as f, Trash2 as p } from "lucide-react";
1
2
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js
2
- var e = {
3
- billing: "billing",
4
- lineItems: "line-items",
5
- notes: "notes",
6
- attachments: "attachments",
7
- auditHistory: "audit-history"
8
- };
9
- export { e as RECEIVABLE_DETAILS_SECTION };
3
+ var m = {
4
+ edit: "editButton",
5
+ issue: "issueButton",
6
+ issueAndSend: "issueAndSendButton",
7
+ recordPayment: "recordPaymentButton",
8
+ send: "sendButton",
9
+ accept: "acceptButton",
10
+ decline: "declineButton",
11
+ markPaid: "markPaidButton",
12
+ markUncollectible: "markUncollectibleButton",
13
+ cancel: "cancelButton",
14
+ clone: "cloneButton",
15
+ delete: "deleteButton",
16
+ pauseRecurrence: "pauseRecurrenceButton",
17
+ resumeRecurrence: "resumeRecurrenceButton",
18
+ cancelRecurrence: "cancelRecurrenceButton"
19
+ }, h = {
20
+ edit: u,
21
+ issue: s,
22
+ issueAndSend: f,
23
+ recordPayment: a,
24
+ send: c,
25
+ accept: n,
26
+ decline: i,
27
+ markPaid: n,
28
+ markUncollectible: r,
29
+ cancel: e,
30
+ clone: o,
31
+ delete: p,
32
+ pauseRecurrence: l,
33
+ resumeRecurrence: d,
34
+ cancelRecurrence: t
35
+ }, g = /* @__PURE__ */ new Set([
36
+ "delete",
37
+ "cancel",
38
+ "markUncollectible",
39
+ "cancelRecurrence"
40
+ ]), _ = "ttw:border-border", v = (e) => e.preventDefault();
41
+ export { h as ACTION_ICON, m as ACTION_LABEL_KEY, g as DESTRUCTIVE_ACTIONS, v as preventTooltipFocusOpen, _ as sectionItemClass };
@@ -1,65 +1,32 @@
1
- import { AccordionContent as e, AccordionItem as t, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RECEIVABLE_DETAILS_SECTION as r } from "./index34.js";
3
- import { sectionItemClass as i } from "./index32.js";
4
- import { SectionTrigger as a } from "./index33.js";
5
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
1
+ import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i, Tooltip as a, TooltipContent as o, TooltipTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ACTION_ICON as c, DESTRUCTIVE_ACTIONS as l, preventTooltipFocusOpen as u } from "./index34.js";
3
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
4
+ import { MoreVerticalIcon as p } from "lucide-react";
6
5
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js
7
- function c({ attachments: c, labels: l }) {
8
- return /* @__PURE__ */ s(t, {
9
- value: r.attachments,
10
- className: i,
11
- children: [/* @__PURE__ */ o(a, {
12
- heading: l.attachmentsHeading,
13
- countLabel: c.countLabel
14
- }), /* @__PURE__ */ o(e, { children: c.rows.length === 0 ? /* @__PURE__ */ o(n, {
15
- variant: "body2",
16
- color: "muted",
17
- children: l.attachmentsEmpty
18
- }) : /* @__PURE__ */ s("table", {
19
- className: "ttw:w-full ttw:border-collapse",
20
- children: [/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ s("tr", {
21
- className: "ttw:border-b ttw:border-border",
22
- children: [/* @__PURE__ */ o("th", {
23
- scope: "col",
24
- className: "ttw:py-2 ttw:text-left",
25
- children: /* @__PURE__ */ o(n, {
26
- component: "span",
27
- variant: "caption",
28
- color: "muted",
29
- children: l.attachmentsFileColumn
30
- })
31
- }), /* @__PURE__ */ o("th", {
32
- scope: "col",
33
- className: "ttw:py-2 ttw:text-right",
34
- children: /* @__PURE__ */ o(n, {
35
- component: "span",
36
- variant: "caption",
37
- color: "muted",
38
- children: l.attachmentsEmailedColumn
39
- })
40
- })]
41
- }) }), /* @__PURE__ */ o("tbody", { children: c.rows.map((e) => /* @__PURE__ */ s("tr", {
42
- className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
43
- children: [/* @__PURE__ */ o("td", {
44
- className: "ttw:py-3",
45
- children: /* @__PURE__ */ o("a", {
46
- href: e.url,
47
- target: "_blank",
48
- rel: "noreferrer",
49
- className: "ttw:text-primary ttw:hover:underline",
50
- children: e.name
51
- })
52
- }), /* @__PURE__ */ o("td", {
53
- className: "ttw:py-3 ttw:text-right ttw:align-middle",
54
- children: /* @__PURE__ */ o(n, {
55
- component: "span",
56
- variant: "body2",
57
- color: e.includeInEmail ? void 0 : "muted",
58
- children: e.emailedLabel
59
- })
60
- })]
61
- }, e.id)) })]
62
- }) })]
63
- });
6
+ function m({ actions: m, triggerLabel: h, getActionLabel: g, onSelect: _, disabledActions: v }) {
7
+ return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(s, {
8
+ asChild: !0,
9
+ onFocus: u,
10
+ children: /* @__PURE__ */ d(i, {
11
+ asChild: !0,
12
+ children: /* @__PURE__ */ d(e, {
13
+ variant: "ghost",
14
+ size: "icon",
15
+ "aria-label": h,
16
+ children: /* @__PURE__ */ d(p, { className: "ttw:size-4" })
17
+ })
18
+ })
19
+ }), /* @__PURE__ */ d(o, { children: h })] }), /* @__PURE__ */ d(n, {
20
+ align: "end",
21
+ children: m.map((e) => {
22
+ let t = c[e];
23
+ return /* @__PURE__ */ f(r, {
24
+ variant: l.has(e) ? "destructive" : "default",
25
+ disabled: v?.includes(e),
26
+ onClick: () => _(e),
27
+ children: [/* @__PURE__ */ d(t, { className: "ttw:size-4" }), g(e)]
28
+ }, e);
29
+ })
30
+ })] });
64
31
  }
65
- export { c as AttachmentsItem };
32
+ export { m as OverflowMenu };