@tesouro/embedded-components-react 0.5.278 → 0.5.280

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 (107) hide show
  1. package/dist/index.d.ts +21 -6
  2. package/dist/lib/ReceivablesWidget.d.ts +21 -6
  3. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index.js +14 -13
  4. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index10.js +24 -168
  5. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index11.js +173 -44
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index12.js +42 -94
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index13.js +91 -76
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index14.js +67 -173
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index15.js +186 -17
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index16.js +27 -0
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index3.js +11 -13
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index4.js +42 -27
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index5.js +28 -132
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index6.js +137 -16
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index7.js +16 -62
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index8.js +66 -28
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/data-access/dist/index9.js +28 -34
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +38 -0
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +304 -287
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/customer.js +58 -0
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +15 -15
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +14 -6
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/permissions.js +2 -1
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +62 -62
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +41 -35
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/totals.js +21 -13
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +124 -124
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +11 -11
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableAttachmentUploads.js +13 -13
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableBankAccount.js +1 -1
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableCustomerPicker.js +109 -0
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +6 -6
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +520 -476
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableIssuePreflight.js +10 -10
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +6 -6
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentTerms.js +1 -1
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePreview.js +1 -1
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableRecurrence.js +92 -77
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableReminders.js +11 -11
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableStatusCards.js +1 -1
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +4 -4
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +79 -75
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useSendReceivableWithPaymentLink.js +3 -3
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -23
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +9 -25
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +26 -228
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +227 -52
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +50 -212
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +193 -138
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +157 -12
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +10 -19
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +23 -2
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +2 -116
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +118 -3
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +3 -39
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +209 -53
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +2 -23
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +36 -7
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +53 -77
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +17 -35
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +8 -18
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +73 -37
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +36 -26
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +17 -19
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +39 -8
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +26 -33
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +20 -14
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +8 -24
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +34 -84
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +14 -492
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +28 -2
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +79 -39
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +490 -68
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +2 -487
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +41 -217
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +70 -21
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +440 -5
  82. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +224 -0
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +21 -263
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +8 -2
  85. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +261 -24
  86. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +2 -237
  87. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +100 -3
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +21 -242
  89. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +226 -82
  90. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +3 -60
  91. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +233 -178
  92. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +85 -37
  93. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +60 -0
  94. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +194 -0
  95. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +45 -0
  96. package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/feature/dist/lib/useLinkedAccountsWidget.js +1 -1
  97. package/dist/libs/tesouro-embedded-components-react/monite-sdk/dist/index503.js +1 -1
  98. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/index.js +9 -9
  99. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/CounterpartSelector.js +2 -23
  100. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/feature/dist/lib/useCounterpartSelector.js +2 -51
  101. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index.js +8 -8
  102. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index15.js +4 -80
  103. package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +10 -22
  104. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  105. package/dist/libs/tesouro-embedded-components-react/shared/util/dist/lib/widgetDomEvents.js +1 -1
  106. package/package.json +1 -1
  107. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +0 -100
@@ -1,79 +1,55 @@
1
- import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, Badge as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RECEIVABLE_DETAILS_SECTION as a } from "./index25.js";
3
- import { sectionChevronClass as o, sectionCountBadgeClass as s, sectionItemClass as c, sectionTriggerClass as l } from "./index23.js";
4
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
- import { Check as f } from "lucide-react";
1
+ import { Ban as e, CalendarX2 as t, Check as n, ChevronsRight as r, CircleCheck as i, CircleOff as a, CircleX as o, ClipboardCheck as s, Clock as c, CopyPlus as l, FileCheck as u, Mail as d, Pause as f, PenTool as p, Pencil as m, Play as h, Send as g, Trash2 as _ } from "lucide-react";
6
2
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js
7
- function p({ attachments: p, labels: m }) {
8
- return /* @__PURE__ */ d(t, {
9
- value: a.attachments,
10
- className: c,
11
- children: [/* @__PURE__ */ u(n, {
12
- className: l,
13
- iconClassName: o,
14
- children: /* @__PURE__ */ d("span", {
15
- className: "ttw:flex ttw:items-center ttw:gap-2",
16
- children: [/* @__PURE__ */ u("span", {
17
- className: "ttw:group-hover:underline",
18
- children: m.attachmentsHeading
19
- }), /* @__PURE__ */ u(r, {
20
- variant: "secondary",
21
- className: s,
22
- children: p.countLabel
23
- })]
24
- })
25
- }), /* @__PURE__ */ u(e, { children: p.rows.length === 0 ? /* @__PURE__ */ u(i, {
26
- variant: "body2",
27
- color: "muted",
28
- children: m.attachmentsEmpty
29
- }) : /* @__PURE__ */ d("table", {
30
- className: "ttw:w-full ttw:border-collapse",
31
- children: [/* @__PURE__ */ u("thead", { children: /* @__PURE__ */ d("tr", {
32
- className: "ttw:border-b ttw:border-border",
33
- children: [/* @__PURE__ */ u("th", {
34
- scope: "col",
35
- className: "ttw:py-2 ttw:text-left",
36
- children: /* @__PURE__ */ u(i, {
37
- component: "span",
38
- variant: "caption",
39
- color: "muted",
40
- children: m.attachmentsFileColumn
41
- })
42
- }), /* @__PURE__ */ u("th", {
43
- scope: "col",
44
- className: "ttw:py-2 ttw:text-right",
45
- children: /* @__PURE__ */ u(i, {
46
- component: "span",
47
- variant: "caption",
48
- color: "muted",
49
- children: m.attachmentsEmailedColumn
50
- })
51
- })]
52
- }) }), /* @__PURE__ */ u("tbody", { children: p.rows.map((e) => /* @__PURE__ */ d("tr", {
53
- className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
54
- children: [/* @__PURE__ */ u("td", {
55
- className: "ttw:py-3",
56
- children: /* @__PURE__ */ u("a", {
57
- href: e.url,
58
- target: "_blank",
59
- rel: "noreferrer",
60
- className: "ttw:text-primary ttw:hover:underline",
61
- children: e.name
62
- })
63
- }), /* @__PURE__ */ u("td", {
64
- className: "ttw:py-3 ttw:text-right ttw:align-middle",
65
- children: e.includeInEmail ? /* @__PURE__ */ u(f, {
66
- role: "img",
67
- "aria-label": e.emailedLabel,
68
- className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
69
- }) : /* @__PURE__ */ u("span", {
70
- className: "ttw:sr-only",
71
- children: e.emailedLabel
72
- })
73
- })]
74
- }, e.id)) })]
75
- }) })]
76
- });
77
- }
3
+ var v = {
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
+ }, y = {
20
+ edit: m,
21
+ issue: u,
22
+ issueAndSend: g,
23
+ recordPayment: s,
24
+ send: d,
25
+ accept: i,
26
+ decline: o,
27
+ markPaid: i,
28
+ markUncollectible: a,
29
+ cancel: e,
30
+ clone: l,
31
+ delete: _,
32
+ pauseRecurrence: f,
33
+ resumeRecurrence: h,
34
+ cancelRecurrence: t
35
+ }, b = {
36
+ draft: p,
37
+ issuing: c,
38
+ issued: c,
39
+ partially_paid: c,
40
+ paid: n,
41
+ overdue: c,
42
+ canceled: e
43
+ }, x = {
44
+ forward: r,
45
+ pause: f,
46
+ ban: e,
47
+ check: n
48
+ }, S = {
49
+ default: "ttw:text-foreground",
50
+ danger: "ttw:text-red-600",
51
+ success: "ttw:text-emerald-600",
52
+ muted: "ttw:text-muted-foreground"
53
+ }, C = "ttw:group ttw:cursor-pointer ttw:hover:no-underline", w = "ttw:translate-y-0.5", T = "ttw:border-border", E = "ttw:rounded-full ttw:bg-muted ttw:text-muted-foreground", D = "ttw:bg-primary ttw:text-primary-foreground", O = "ttw:bg-primary ttw:fill-primary", k = "ttw:bg-muted ttw:text-muted-foreground ttw:hover:bg-accent", A = (e) => e.preventDefault();
78
54
  //#endregion
79
- export { p as AttachmentsItem };
55
+ export { y as ACTION_ICON, v as ACTION_LABEL_KEY, x as SERIES_STATUS_ICON, b as STATUS_ICON, S as amountValueToneClass, k as headerIconButtonClass, O as headerTooltipArrowClass, D as headerTooltipClass, A as preventTooltipFocusOpen, w as sectionChevronClass, E as sectionCountBadgeClass, T as sectionItemClass, C as sectionTriggerClass };
@@ -1,41 +1,23 @@
1
- import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, AuditHistoryList as r, Badge as i, Typography as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RECEIVABLE_DETAILS_SECTION as o } from "./index25.js";
3
- import { sectionChevronClass as s, sectionCountBadgeClass as c, sectionItemClass as l, sectionTriggerClass as u } from "./index23.js";
4
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
1
+ import { Typography as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { amountValueToneClass as n } from "./index26.js";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
4
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js
6
- function p({ auditHistory: p, labels: m }) {
7
- return /* @__PURE__ */ f(t, {
8
- value: o.auditHistory,
9
- className: l,
10
- children: [/* @__PURE__ */ d(n, {
11
- className: u,
12
- iconClassName: s,
13
- children: /* @__PURE__ */ f("span", {
14
- className: "ttw:flex ttw:items-center ttw:gap-2",
15
- children: [/* @__PURE__ */ d("span", {
16
- className: "ttw:group-hover:underline",
17
- children: m.auditHistoryHeading
18
- }), p.countLabel ? /* @__PURE__ */ d(i, {
19
- variant: "secondary",
20
- className: c,
21
- children: p.countLabel
22
- }) : null]
23
- })
24
- }), /* @__PURE__ */ f(e, { children: [p.showNamesError ? /* @__PURE__ */ d(a, {
5
+ function a({ row: a, defaultTone: o }) {
6
+ let s = a.tone ?? (a.emphasis ? o : "default");
7
+ return /* @__PURE__ */ i("div", {
8
+ className: "ttw:flex ttw:flex-col ttw:gap-0.5",
9
+ children: [/* @__PURE__ */ r(e, {
25
10
  variant: "caption",
26
11
  color: "muted",
27
- children: m.auditHistoryNamesError
28
- }) : null, /* @__PURE__ */ d(r, {
29
- rows: p.rows,
30
- isLoading: p.isLoading,
31
- isError: p.isError,
32
- labels: {
33
- empty: m.auditHistoryEmpty,
34
- loading: m.auditHistoryLoading,
35
- error: m.auditHistoryError
36
- }
37
- })] })]
12
+ className: "ttw:font-medium",
13
+ children: a.label
14
+ }), /* @__PURE__ */ r(e, {
15
+ component: "span",
16
+ variant: a.emphasis ? "h3" : "body1",
17
+ className: t(!a.emphasis && "ttw:font-medium", n[s]),
18
+ children: a.value
19
+ })]
38
20
  });
39
21
  }
40
22
  //#endregion
41
- export { p as AuditHistoryItem };
23
+ export { a as AmountCell };
@@ -1,20 +1,10 @@
1
- import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { forwardRef as t } from "react";
3
- import { jsx as n } from "react/jsx-runtime";
4
- import { XIcon as r } from "lucide-react";
5
1
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js
6
- var i = t(function({ label: t, onClose: i, variant: a = "ghost", size: o = "icon", onClick: s, ...c }, l) {
7
- return /* @__PURE__ */ n(e, {
8
- ref: l,
9
- variant: a,
10
- size: o,
11
- ...c,
12
- "aria-label": t,
13
- onClick: (e) => {
14
- s?.(e), i();
15
- },
16
- children: /* @__PURE__ */ n(r, { className: "ttw:size-4" })
17
- });
18
- });
2
+ var e = {
3
+ billing: "billing",
4
+ lineItems: "line-items",
5
+ notes: "notes",
6
+ attachments: "attachments",
7
+ auditHistory: "audit-history"
8
+ };
19
9
  //#endregion
20
- export { i as CloseButton };
10
+ export { e as RECEIVABLE_DETAILS_SECTION };
@@ -1,43 +1,79 @@
1
- import { Typography as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
- import { ChevronRight as i } from "lucide-react";
1
+ import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, Badge as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RECEIVABLE_DETAILS_SECTION as a } from "./index28.js";
3
+ import { sectionChevronClass as o, sectionCountBadgeClass as s, sectionItemClass as c, sectionTriggerClass as l } from "./index26.js";
4
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
+ import { Check as f } from "lucide-react";
4
6
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js
5
- var a = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
6
- function o({ label: o, name: s, onOpen: c }) {
7
- let l = /* @__PURE__ */ n(e, {
8
- component: "span",
9
- variant: "body2",
10
- color: "muted",
11
- className: "ttw:w-40 ttw:shrink-0",
12
- children: o
13
- });
14
- return c ? /* @__PURE__ */ r("button", {
15
- type: "button",
16
- onClick: c,
17
- "aria-haspopup": "dialog",
18
- className: t(a, "ttw:group ttw:w-full ttw:cursor-pointer ttw:rounded-sm ttw:text-left ttw:outline-none ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50"),
19
- children: [
20
- l,
21
- /* @__PURE__ */ n(e, {
22
- component: "span",
23
- variant: "body2",
24
- color: "primary",
25
- className: "ttw:underline-offset-4 ttw:group-hover:underline",
26
- children: s
27
- }),
28
- /* @__PURE__ */ n(i, {
29
- className: "ttw:ml-auto ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
30
- "aria-hidden": "true"
7
+ function p({ attachments: p, labels: m }) {
8
+ return /* @__PURE__ */ d(t, {
9
+ value: a.attachments,
10
+ className: c,
11
+ children: [/* @__PURE__ */ u(n, {
12
+ className: l,
13
+ iconClassName: o,
14
+ children: /* @__PURE__ */ d("span", {
15
+ className: "ttw:flex ttw:items-center ttw:gap-2",
16
+ children: [/* @__PURE__ */ u("span", {
17
+ className: "ttw:group-hover:underline",
18
+ children: m.attachmentsHeading
19
+ }), /* @__PURE__ */ u(r, {
20
+ variant: "secondary",
21
+ className: s,
22
+ children: p.countLabel
23
+ })]
31
24
  })
32
- ]
33
- }) : /* @__PURE__ */ r("div", {
34
- className: a,
35
- children: [l, /* @__PURE__ */ n(e, {
36
- component: "span",
25
+ }), /* @__PURE__ */ u(e, { children: p.rows.length === 0 ? /* @__PURE__ */ u(i, {
37
26
  variant: "body2",
38
- children: s
39
- })]
27
+ color: "muted",
28
+ children: m.attachmentsEmpty
29
+ }) : /* @__PURE__ */ d("table", {
30
+ className: "ttw:w-full ttw:border-collapse",
31
+ children: [/* @__PURE__ */ u("thead", { children: /* @__PURE__ */ d("tr", {
32
+ className: "ttw:border-b ttw:border-border",
33
+ children: [/* @__PURE__ */ u("th", {
34
+ scope: "col",
35
+ className: "ttw:py-2 ttw:text-left",
36
+ children: /* @__PURE__ */ u(i, {
37
+ component: "span",
38
+ variant: "caption",
39
+ color: "muted",
40
+ children: m.attachmentsFileColumn
41
+ })
42
+ }), /* @__PURE__ */ u("th", {
43
+ scope: "col",
44
+ className: "ttw:py-2 ttw:text-right",
45
+ children: /* @__PURE__ */ u(i, {
46
+ component: "span",
47
+ variant: "caption",
48
+ color: "muted",
49
+ children: m.attachmentsEmailedColumn
50
+ })
51
+ })]
52
+ }) }), /* @__PURE__ */ u("tbody", { children: p.rows.map((e) => /* @__PURE__ */ d("tr", {
53
+ className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
54
+ children: [/* @__PURE__ */ u("td", {
55
+ className: "ttw:py-3",
56
+ children: /* @__PURE__ */ u("a", {
57
+ href: e.url,
58
+ target: "_blank",
59
+ rel: "noreferrer",
60
+ className: "ttw:text-primary ttw:hover:underline",
61
+ children: e.name
62
+ })
63
+ }), /* @__PURE__ */ u("td", {
64
+ className: "ttw:py-3 ttw:text-right ttw:align-middle",
65
+ children: e.includeInEmail ? /* @__PURE__ */ u(f, {
66
+ role: "img",
67
+ "aria-label": e.emailedLabel,
68
+ className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
69
+ }) : /* @__PURE__ */ u("span", {
70
+ className: "ttw:sr-only",
71
+ children: e.emailedLabel
72
+ })
73
+ })]
74
+ }, e.id)) })]
75
+ }) })]
40
76
  });
41
77
  }
42
78
  //#endregion
43
- export { o as CustomerNameRow };
79
+ export { p as AttachmentsItem };
@@ -1,31 +1,41 @@
1
- import { SheetTitle as e, Typography as t, typographyVariants as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
- import { SearchX as a } from "lucide-react";
1
+ import { AccordionContent as e, AccordionItem as t, AccordionTrigger as n, AuditHistoryList as r, Badge as i, Typography as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RECEIVABLE_DETAILS_SECTION as o } from "./index28.js";
3
+ import { sectionChevronClass as s, sectionCountBadgeClass as c, sectionItemClass as l, sectionTriggerClass as u } from "./index26.js";
4
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
4
5
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js
5
- function o({ title: o, description: s }) {
6
- return /* @__PURE__ */ r("div", {
7
- className: "ttw:m-auto ttw:w-3/4",
8
- children: /* @__PURE__ */ r("div", {
9
- className: "ttw:flex ttw:h-full ttw:w-full ttw:items-center ttw:justify-center",
10
- children: /* @__PURE__ */ i("div", {
11
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-4",
12
- children: [/* @__PURE__ */ r(a, {
13
- className: "ttw:size-8 ttw:text-destructive",
14
- "aria-hidden": "true"
15
- }), /* @__PURE__ */ i("div", {
16
- className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-2",
17
- children: [/* @__PURE__ */ r(e, {
18
- className: n({ variant: "h4" }),
19
- children: o
20
- }), /* @__PURE__ */ r(t, {
21
- variant: "body1",
22
- className: "ttw:text-center",
23
- children: s
24
- })]
25
- })]
6
+ function p({ auditHistory: p, labels: m }) {
7
+ return /* @__PURE__ */ f(t, {
8
+ value: o.auditHistory,
9
+ className: l,
10
+ children: [/* @__PURE__ */ d(n, {
11
+ className: u,
12
+ iconClassName: s,
13
+ children: /* @__PURE__ */ f("span", {
14
+ className: "ttw:flex ttw:items-center ttw:gap-2",
15
+ children: [/* @__PURE__ */ d("span", {
16
+ className: "ttw:group-hover:underline",
17
+ children: m.auditHistoryHeading
18
+ }), p.countLabel ? /* @__PURE__ */ d(i, {
19
+ variant: "secondary",
20
+ className: c,
21
+ children: p.countLabel
22
+ }) : null]
26
23
  })
27
- })
24
+ }), /* @__PURE__ */ f(e, { children: [p.showNamesError ? /* @__PURE__ */ d(a, {
25
+ variant: "caption",
26
+ color: "muted",
27
+ children: m.auditHistoryNamesError
28
+ }) : null, /* @__PURE__ */ d(r, {
29
+ rows: p.rows,
30
+ isLoading: p.isLoading,
31
+ isError: p.isError,
32
+ labels: {
33
+ empty: m.auditHistoryEmpty,
34
+ loading: m.auditHistoryLoading,
35
+ error: m.auditHistoryError
36
+ }
37
+ })] })]
28
38
  });
29
39
  }
30
40
  //#endregion
31
- export { o as DetailsMessage };
41
+ export { p as AuditHistoryItem };
@@ -1,22 +1,20 @@
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";
1
+ import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { forwardRef as t } from "react";
3
+ import { jsx as n } from "react/jsx-runtime";
4
+ import { XIcon as r } from "lucide-react";
3
5
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js
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
- })]
6
+ var i = t(function({ label: t, onClose: i, variant: a = "ghost", size: o = "icon", onClick: s, ...c }, l) {
7
+ return /* @__PURE__ */ n(e, {
8
+ ref: l,
9
+ variant: a,
10
+ size: o,
11
+ ...c,
12
+ "aria-label": t,
13
+ onClick: (e) => {
14
+ s?.(e), i();
15
+ },
16
+ children: /* @__PURE__ */ n(r, { className: "ttw:size-4" })
19
17
  });
20
- }
18
+ });
21
19
  //#endregion
22
- export { r as InfoRow };
20
+ export { i as CloseButton };
@@ -1,12 +1,43 @@
1
- import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as t } from "react/jsx-runtime";
1
+ import { Typography as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
+ import { ChevronRight as i } from "lucide-react";
3
4
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js
4
- function n({ className: n, label: r }) {
5
- return /* @__PURE__ */ t("div", {
6
- role: r ? "status" : void 0,
7
- "aria-label": r,
8
- className: e("ttw:size-8 ttw:animate-spin ttw:rounded-full ttw:border-3 ttw:border-primary ttw:border-t-transparent", n)
5
+ var a = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
6
+ function o({ label: o, name: s, onOpen: c }) {
7
+ let l = /* @__PURE__ */ n(e, {
8
+ component: "span",
9
+ variant: "body2",
10
+ color: "muted",
11
+ className: "ttw:w-40 ttw:shrink-0",
12
+ children: o
13
+ });
14
+ return c ? /* @__PURE__ */ r("button", {
15
+ type: "button",
16
+ onClick: c,
17
+ "aria-haspopup": "dialog",
18
+ className: t(a, "ttw:group ttw:w-full ttw:cursor-pointer ttw:rounded-sm ttw:text-left ttw:outline-none ttw:focus-visible:ring-[3px] ttw:focus-visible:ring-ring/50"),
19
+ children: [
20
+ l,
21
+ /* @__PURE__ */ n(e, {
22
+ component: "span",
23
+ variant: "body2",
24
+ color: "primary",
25
+ className: "ttw:underline-offset-4 ttw:group-hover:underline",
26
+ children: s
27
+ }),
28
+ /* @__PURE__ */ n(i, {
29
+ className: "ttw:ml-auto ttw:size-4 ttw:shrink-0 ttw:text-muted-foreground",
30
+ "aria-hidden": "true"
31
+ })
32
+ ]
33
+ }) : /* @__PURE__ */ r("div", {
34
+ className: a,
35
+ children: [l, /* @__PURE__ */ n(e, {
36
+ component: "span",
37
+ variant: "body2",
38
+ children: s
39
+ })]
9
40
  });
10
41
  }
11
42
  //#endregion
12
- export { n as LoadingSpinner };
43
+ export { o as CustomerNameRow };
@@ -1,38 +1,31 @@
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, headerTooltipArrowClass as l, headerTooltipClass as u, preventTooltipFocusOpen as d } from "./index23.js";
3
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
4
- import { MoreVerticalIcon as m } from "lucide-react";
1
+ import { SheetTitle as e, Typography as t, typographyVariants as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
+ import { SearchX as a } from "lucide-react";
5
4
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js
6
- function h({ actions: h, triggerLabel: g, getActionLabel: _, onSelect: v, disabledActions: y, className: b }) {
7
- return /* @__PURE__ */ p(t, { children: [/* @__PURE__ */ p(a, { children: [/* @__PURE__ */ f(s, {
8
- asChild: !0,
9
- onFocus: d,
10
- children: /* @__PURE__ */ f(i, {
11
- asChild: !0,
12
- children: /* @__PURE__ */ f(e, {
13
- variant: "ghost",
14
- size: "icon",
15
- className: b,
16
- "aria-label": g,
17
- children: /* @__PURE__ */ f(m, { className: "ttw:size-4" })
5
+ function o({ title: o, description: s }) {
6
+ return /* @__PURE__ */ r("div", {
7
+ className: "ttw:m-auto ttw:w-3/4",
8
+ children: /* @__PURE__ */ r("div", {
9
+ className: "ttw:flex ttw:h-full ttw:w-full ttw:items-center ttw:justify-center",
10
+ children: /* @__PURE__ */ i("div", {
11
+ className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-4",
12
+ children: [/* @__PURE__ */ r(a, {
13
+ className: "ttw:size-8 ttw:text-destructive",
14
+ "aria-hidden": "true"
15
+ }), /* @__PURE__ */ i("div", {
16
+ className: "ttw:flex ttw:flex-col ttw:items-center ttw:gap-2",
17
+ children: [/* @__PURE__ */ r(e, {
18
+ className: n({ variant: "h4" }),
19
+ children: o
20
+ }), /* @__PURE__ */ r(t, {
21
+ variant: "body1",
22
+ className: "ttw:text-center",
23
+ children: s
24
+ })]
25
+ })]
18
26
  })
19
27
  })
20
- }), /* @__PURE__ */ f(o, {
21
- className: u,
22
- arrowClassName: l,
23
- children: g
24
- })] }), /* @__PURE__ */ f(n, {
25
- align: "end",
26
- children: h.map((e) => {
27
- let t = c[e];
28
- return /* @__PURE__ */ p(r, {
29
- variant: e === "delete" ? "destructive" : "default",
30
- disabled: y?.includes(e),
31
- onClick: () => v(e),
32
- children: [/* @__PURE__ */ f(t, { className: "ttw:size-4" }), _(e)]
33
- }, e);
34
- })
35
- })] });
28
+ });
36
29
  }
37
30
  //#endregion
38
- export { h as OverflowMenu };
31
+ export { o as DetailsMessage };
@@ -1,16 +1,22 @@
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";
1
3
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js
2
- var e = {
3
- neutral: "ttw:bg-muted ttw:text-muted-foreground",
4
- info: "ttw:bg-indigo-100 ttw:text-indigo-700",
5
- warning: "ttw:bg-yellow-100 ttw:text-yellow-700",
6
- danger: "ttw:bg-destructive/10 ttw:text-destructive",
7
- success: "ttw:bg-green-100 ttw:text-green-700"
8
- }, t = {
9
- neutral: "ttw:bg-muted-foreground",
10
- info: "ttw:bg-indigo-700",
11
- warning: "ttw:bg-yellow-700",
12
- danger: "ttw:bg-destructive",
13
- success: "ttw:bg-green-700"
14
- };
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
+ })]
19
+ });
20
+ }
15
21
  //#endregion
16
- export { e as RECURRENCE_CHIP_CLASS, t as RECURRENCE_DOT_CLASS };
22
+ export { r as InfoRow };