@tesouro/embedded-components-react 0.11.122 → 0.11.124

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 (88) hide show
  1. package/README.md +6 -3
  2. package/dist/index.css +0 -10
  3. package/dist/index.d.ts +33 -6
  4. package/dist/index.js +15 -14
  5. package/dist/lib/ReceivablesWidget.d.ts +29 -6
  6. package/dist/lib/ReceivablesWidget.js +3 -1
  7. package/dist/lib/WidgetSuite.d.ts +31 -4
  8. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +1 -1
  9. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js +1 -1
  10. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index.js +2 -2
  11. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index4.js → lib/BalanceHistoryCard/BalanceHistoryCard.js} +9 -9
  12. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index2.js → lib/BalanceHistoryCard/BalanceHistoryChart.js} +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index3.js → lib/BalanceHistoryCard/labels.js} +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -1
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +342 -295
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +26 -0
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -1
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/mocks/labels.js +1 -1
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +30 -26
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +18 -2
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +121 -11
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +100 -11
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +39 -27
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +2 -205
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +11 -52
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +11 -210
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +27 -159
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +203 -14
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +51 -22
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +210 -2
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +154 -111
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +15 -3
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +21 -195
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +3 -2
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +116 -53
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +3 -22
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +197 -8
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -78
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +53 -39
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +20 -17
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +8 -41
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +73 -25
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +36 -17
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +17 -9
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +39 -34
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +29 -14
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +18 -24
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -85
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +33 -490
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +15 -2
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +22 -42
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +82 -65
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +475 -426
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -226
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +46 -21
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +69 -5
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +445 -0
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +208 -246
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +22 -2
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +5 -129
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +247 -222
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +1 -2
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +125 -242
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +23 -56
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +229 -209
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +3 -47
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +248 -0
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +60 -0
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -17
  77. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +194 -0
  78. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +47 -0
  79. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +53 -117
  80. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +9 -99
  81. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +3 -40
  82. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  83. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuiteProvider.js +30 -39
  84. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/AccountsSection.js +2 -5
  85. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +18 -31
  86. package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js +31 -34
  87. package/package.json +1 -1
  88. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +0 -27
@@ -1,78 +1,2 @@
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 "./index27.js";
3
- import { sectionChevronClass as o, sectionCountBadgeClass as s, sectionItemClass as c, sectionTriggerClass as l } from "./index25.js";
4
- import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
- import { Check as f } from "lucide-react";
6
- // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.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
- }
78
- export { p as AttachmentsItem };
1
+ import "./index16.js";
2
+ import "./index27.js";
@@ -1,40 +1,54 @@
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 "./index27.js";
3
- import { sectionChevronClass as s, sectionCountBadgeClass as c, sectionItemClass as l, sectionTriggerClass as u } from "./index25.js";
4
- import { jsx as d, jsxs as f } from "react/jsx-runtime";
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";
5
2
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.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, {
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
- })] })]
38
- });
39
- }
40
- export { p as AuditHistoryItem };
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();
54
+ 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,19 +1,22 @@
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";
1
+ import { Typography as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { amountValueToneClass as n } from "./index29.js";
3
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
5
4
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.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" })
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, {
10
+ variant: "caption",
11
+ color: "muted",
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
+ })]
17
20
  });
18
- });
19
- export { i as CloseButton };
21
+ }
22
+ export { a as AmountCell };
@@ -1,42 +1,9 @@
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";
4
1
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.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"
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
- })]
40
- });
41
- }
42
- export { o as CustomerNameRow };
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 };
@@ -1,30 +1,78 @@
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, Badge as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RECEIVABLE_DETAILS_SECTION as a } from "./index31.js";
3
+ import { sectionChevronClass as o, sectionCountBadgeClass as s, sectionItemClass as c, sectionTriggerClass as l } from "./index29.js";
4
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
5
+ import { Check as f } from "lucide-react";
4
6
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.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
- })]
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
25
23
  })]
26
24
  })
27
- })
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
+ }) })]
28
76
  });
29
77
  }
30
- export { o as DetailsMessage };
78
+ export { p as AttachmentsItem };
@@ -1,21 +1,40 @@
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 { 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 "./index31.js";
3
+ import { sectionChevronClass as s, sectionCountBadgeClass as c, sectionItemClass as l, sectionTriggerClass as u } from "./index29.js";
4
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
3
5
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.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",
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, {
25
+ variant: "caption",
10
26
  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
- })]
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
+ })] })]
19
38
  });
20
39
  }
21
- export { r as InfoRow };
40
+ export { p as AuditHistoryItem };
@@ -1,11 +1,19 @@
1
- import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { jsx as t } 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
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.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)
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" })
9
17
  });
10
- }
11
- export { n as LoadingSpinner };
18
+ });
19
+ export { i as CloseButton };
@@ -1,37 +1,42 @@
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 "./index25.js";
3
- import { jsx as f, jsxs as p } from "react/jsx-runtime";
4
- import { MoreVerticalIcon as m } from "lucide-react";
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";
5
4
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.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
+ 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"
18
31
  })
19
- })
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
- })] });
32
+ ]
33
+ }) : /* @__PURE__ */ r("div", {
34
+ className: a,
35
+ children: [l, /* @__PURE__ */ n(e, {
36
+ component: "span",
37
+ variant: "body2",
38
+ children: s
39
+ })]
40
+ });
36
41
  }
37
- export { h as OverflowMenu };
42
+ export { o as CustomerNameRow };
@@ -1,15 +1,30 @@
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
4
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.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
- };
15
- export { e as RECURRENCE_CHIP_CLASS, t as RECURRENCE_DOT_CLASS };
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
+ })]
26
+ })
27
+ })
28
+ });
29
+ }
30
+ export { o as DetailsMessage };
@@ -1,27 +1,21 @@
1
- import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { SERIES_STATUS_ICON as n } from "./index25.js";
3
- import { RECURRENCE_CHIP_CLASS as r, RECURRENCE_DOT_CLASS as i } from "./index36.js";
4
- import { jsx as a, jsxs as o } 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";
5
3
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js
6
- function s({ label: i, tone: s, icon: c }) {
7
- let l = c ? n[c] : void 0;
8
- return /* @__PURE__ */ o(e, {
9
- variant: "outline",
10
- className: t("ttw:inline-flex ttw:items-center ttw:gap-1 ttw:border-transparent", r[s]),
11
- children: [l ? /* @__PURE__ */ a(l, {
12
- className: "ttw:size-3",
13
- "aria-hidden": !0
14
- }) : null, i]
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
+ })]
15
19
  });
16
20
  }
17
- function c({ label: n, tone: s }) {
18
- return /* @__PURE__ */ o(e, {
19
- variant: "outline",
20
- className: t("ttw:inline-flex ttw:items-center ttw:gap-1 ttw:border-transparent", r[s]),
21
- children: [/* @__PURE__ */ a("span", {
22
- "aria-hidden": !0,
23
- className: t("ttw:inline-block ttw:size-2 ttw:rounded-full", i[s])
24
- }), n]
25
- });
26
- }
27
- export { c as IterationStatusChip, s as SeriesStatusChip };
21
+ export { r as InfoRow };