@tesouro/embedded-components-react 0.5.268 → 0.5.271

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 (60) hide show
  1. package/dist/index.css +4 -10
  2. package/dist/index.d.ts +13 -9
  3. package/dist/lib/ReceivablesWidget.d.ts +13 -9
  4. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/data-access/dist/index2.js +22 -18
  5. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index14.js +8 -4
  6. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/invalidation.js +3 -3
  7. package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/data-access/dist/lib/invalidatePayableQueries/reconcileSubmittedForApprovalQueries.js +1 -1
  8. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/index.js +3 -1
  9. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/CounterpartDetailsContainer.js +44 -0
  10. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartDetailsSheetView.js +97 -0
  11. package/dist/libs/tesouro-embedded-components-react/counterparts-widget/feature/dist/lib/CounterpartsWidget/useCounterpartsWidget.js +76 -150
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +63 -57
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/actionsModal.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/auditHistory/labels.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +161 -152
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +30 -34
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +12 -8
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusCards.js +18 -19
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +208 -158
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +91 -85
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +197 -196
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +147 -115
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +14 -14
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +3 -5
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +37 -34
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +22 -7
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +17 -15
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +17 -13
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +37 -31
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +29 -23
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +38 -11
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +26 -28
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +20 -14
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +8 -24
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +34 -83
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +14 -404
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +28 -2
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +79 -39
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +490 -68
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +2 -502
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +41 -216
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +70 -21
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +484 -5
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +224 -0
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +21 -263
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +8 -2
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +261 -24
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +2 -237
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +100 -3
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +21 -242
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +226 -82
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +3 -59
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +233 -178
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +85 -37
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +60 -0
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +194 -0
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +45 -0
  58. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  59. package/package.json +1 -1
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +0 -100
@@ -1,66 +1,72 @@
1
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
2
  import { RECEIVABLE_DETAILS_SECTION as a } from "./index25.js";
3
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
4
- import { Check as c } from "lucide-react";
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";
5
6
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js
6
- function l({ attachments: l, labels: u }) {
7
- return /* @__PURE__ */ s(t, {
7
+ function p({ attachments: p, labels: m }) {
8
+ return /* @__PURE__ */ d(t, {
8
9
  value: a.attachments,
9
- children: [/* @__PURE__ */ o(n, { children: /* @__PURE__ */ s("span", {
10
- className: "ttw:flex ttw:items-center ttw:gap-2",
11
- children: [/* @__PURE__ */ o("span", {
12
- className: "ttw:group-hover:underline",
13
- children: u.attachmentsHeading
14
- }), /* @__PURE__ */ o(r, {
15
- variant: "secondary",
16
- className: "ttw:rounded-full",
17
- children: l.countLabel
18
- })]
19
- }) }), /* @__PURE__ */ o(e, { children: l.rows.length === 0 ? /* @__PURE__ */ o(i, {
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, {
20
26
  variant: "body2",
21
27
  color: "muted",
22
- children: u.attachmentsEmpty
23
- }) : /* @__PURE__ */ s("table", {
28
+ children: m.attachmentsEmpty
29
+ }) : /* @__PURE__ */ d("table", {
24
30
  className: "ttw:w-full ttw:border-collapse",
25
- children: [/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ s("tr", {
31
+ children: [/* @__PURE__ */ u("thead", { children: /* @__PURE__ */ d("tr", {
26
32
  className: "ttw:border-b ttw:border-border",
27
- children: [/* @__PURE__ */ o("th", {
33
+ children: [/* @__PURE__ */ u("th", {
28
34
  scope: "col",
29
35
  className: "ttw:py-2 ttw:text-left",
30
- children: /* @__PURE__ */ o(i, {
36
+ children: /* @__PURE__ */ u(i, {
31
37
  component: "span",
32
38
  variant: "caption",
33
39
  color: "muted",
34
- children: u.attachmentsFileColumn
40
+ children: m.attachmentsFileColumn
35
41
  })
36
- }), /* @__PURE__ */ o("th", {
42
+ }), /* @__PURE__ */ u("th", {
37
43
  scope: "col",
38
44
  className: "ttw:py-2 ttw:text-right",
39
- children: /* @__PURE__ */ o(i, {
45
+ children: /* @__PURE__ */ u(i, {
40
46
  component: "span",
41
47
  variant: "caption",
42
48
  color: "muted",
43
- children: u.attachmentsEmailedColumn
49
+ children: m.attachmentsEmailedColumn
44
50
  })
45
51
  })]
46
- }) }), /* @__PURE__ */ o("tbody", { children: l.rows.map((e) => /* @__PURE__ */ s("tr", {
52
+ }) }), /* @__PURE__ */ u("tbody", { children: p.rows.map((e) => /* @__PURE__ */ d("tr", {
47
53
  className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
48
- children: [/* @__PURE__ */ o("td", {
54
+ children: [/* @__PURE__ */ u("td", {
49
55
  className: "ttw:py-3",
50
- children: /* @__PURE__ */ o("a", {
56
+ children: /* @__PURE__ */ u("a", {
51
57
  href: e.url,
52
58
  target: "_blank",
53
59
  rel: "noreferrer",
54
60
  className: "ttw:text-primary ttw:hover:underline",
55
61
  children: e.name
56
62
  })
57
- }), /* @__PURE__ */ o("td", {
63
+ }), /* @__PURE__ */ u("td", {
58
64
  className: "ttw:py-3 ttw:text-right ttw:align-middle",
59
- children: e.includeInEmail ? /* @__PURE__ */ o(c, {
65
+ children: e.includeInEmail ? /* @__PURE__ */ u(f, {
60
66
  role: "img",
61
67
  "aria-label": e.emailedLabel,
62
68
  className: "ttw:inline-block ttw:size-4 ttw:text-emerald-600"
63
- }) : /* @__PURE__ */ o("span", {
69
+ }) : /* @__PURE__ */ u("span", {
64
70
  className: "ttw:sr-only",
65
71
  children: e.emailedLabel
66
72
  })
@@ -70,4 +76,4 @@ function l({ attachments: l, labels: u }) {
70
76
  });
71
77
  }
72
78
  //#endregion
73
- export { l as AttachmentsItem };
79
+ export { p as AttachmentsItem };
@@ -1,35 +1,41 @@
1
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
2
  import { RECEIVABLE_DETAILS_SECTION as o } from "./index25.js";
3
- import { jsx as s, jsxs as c } from "react/jsx-runtime";
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";
4
5
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js
5
- function l({ auditHistory: l, labels: u }) {
6
- return /* @__PURE__ */ c(t, {
6
+ function p({ auditHistory: p, labels: m }) {
7
+ return /* @__PURE__ */ f(t, {
7
8
  value: o.auditHistory,
8
- children: [/* @__PURE__ */ s(n, { children: /* @__PURE__ */ c("span", {
9
- className: "ttw:flex ttw:items-center ttw:gap-2",
10
- children: [/* @__PURE__ */ s("span", {
11
- className: "ttw:group-hover:underline",
12
- children: u.auditHistoryHeading
13
- }), l.countLabel ? /* @__PURE__ */ s(i, {
14
- variant: "secondary",
15
- className: "ttw:rounded-full",
16
- children: l.countLabel
17
- }) : null]
18
- }) }), /* @__PURE__ */ c(e, { children: [l.showNamesError ? /* @__PURE__ */ s(a, {
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, {
19
25
  variant: "caption",
20
26
  color: "muted",
21
- children: u.auditHistoryNamesError
22
- }) : null, /* @__PURE__ */ s(r, {
23
- rows: l.rows,
24
- isLoading: l.isLoading,
25
- isError: l.isError,
27
+ children: m.auditHistoryNamesError
28
+ }) : null, /* @__PURE__ */ d(r, {
29
+ rows: p.rows,
30
+ isLoading: p.isLoading,
31
+ isError: p.isError,
26
32
  labels: {
27
- empty: u.auditHistoryEmpty,
28
- loading: u.auditHistoryLoading,
29
- error: u.auditHistoryError
33
+ empty: m.auditHistoryEmpty,
34
+ loading: m.auditHistoryLoading,
35
+ error: m.auditHistoryError
30
36
  }
31
37
  })] })]
32
38
  });
33
39
  }
34
40
  //#endregion
35
- export { l as AuditHistoryItem };
41
+ export { p as AuditHistoryItem };
@@ -1,16 +1,43 @@
1
- import { jsx as e, jsxs 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";
2
4
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js
3
- function n({ label: n, value: r }) {
4
- return /* @__PURE__ */ t("div", {
5
- className: "ttw:flex ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:text-sm ttw:last:border-b-0",
6
- children: [/* @__PURE__ */ e("span", {
7
- className: "ttw:w-40 ttw:shrink-0 ttw:text-muted-foreground",
8
- children: n
9
- }), /* @__PURE__ */ e("span", {
10
- className: "ttw:whitespace-pre-line ttw:text-foreground",
11
- children: r
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
12
39
  })]
13
40
  });
14
41
  }
15
42
  //#endregion
16
- export { n as InfoRow };
43
+ export { o as CustomerNameRow };
@@ -1,33 +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 } from "./index23.js";
3
- import { jsx as l, jsxs as u } from "react/jsx-runtime";
4
- import { MoreVerticalIcon as d } 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/index30.js
6
- function f({ actions: f, triggerLabel: p, getActionLabel: m, onSelect: h, disabledActions: g, className: _ }) {
7
- return /* @__PURE__ */ u(t, { children: [/* @__PURE__ */ u(a, { children: [/* @__PURE__ */ l(s, {
8
- asChild: !0,
9
- children: /* @__PURE__ */ l(i, {
10
- asChild: !0,
11
- children: /* @__PURE__ */ l(e, {
12
- variant: "ghost",
13
- size: "icon",
14
- className: _,
15
- "aria-label": p,
16
- children: /* @__PURE__ */ l(d, { 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
+ })]
17
26
  })
18
27
  })
19
- }), /* @__PURE__ */ l(o, { children: p })] }), /* @__PURE__ */ l(n, {
20
- align: "end",
21
- children: f.map((e) => {
22
- let t = c[e];
23
- return /* @__PURE__ */ u(r, {
24
- variant: e === "delete" ? "destructive" : "default",
25
- disabled: g?.includes(e),
26
- onClick: () => h(e),
27
- children: [/* @__PURE__ */ l(t, { className: "ttw:size-4" }), m(e)]
28
- }, e);
29
- })
30
- })] });
28
+ });
31
29
  }
32
30
  //#endregion
33
- export { f 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/index31.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 };
@@ -1,28 +1,12 @@
1
- import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { SERIES_STATUS_ICON as n } from "./index23.js";
3
- import { RECURRENCE_CHIP_CLASS as r, RECURRENCE_DOT_CLASS as i } from "./index31.js";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as t } from "react/jsx-runtime";
5
3
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.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]
15
- });
16
- }
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]
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)
25
9
  });
26
10
  }
27
11
  //#endregion
28
- export { c as IterationStatusChip, s as SeriesStatusChip };
12
+ export { n as LoadingSpinner };
@@ -1,87 +1,38 @@
1
- import { Button as e, Typography as t, cn as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { ReceivableStatusBadge as r } from "./index22.js";
3
- import { IterationStatusChip as i } from "./index32.js";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
5
- import { ChevronRight as s } from "lucide-react";
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";
6
5
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js
7
- var c = "ttw:h-10 ttw:px-2 ttw:text-left ttw:text-sm ttw:font-medium ttw:leading-5", l = "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left ttw:text-sm ttw:font-normal ttw:leading-5";
8
- function u({ rows: u, labels: d }) {
9
- return u.length === 0 ? /* @__PURE__ */ a(t, {
10
- variant: "body2",
11
- color: "muted",
12
- children: d.scheduleEmpty
13
- }) : /* @__PURE__ */ o("table", {
14
- className: "ttw:w-full",
15
- children: [/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ o("tr", { children: [
16
- /* @__PURE__ */ a("th", {
17
- scope: "col",
18
- className: n(c, "ttw:pl-0"),
19
- children: d.scheduleIssueDateColumn
20
- }),
21
- /* @__PURE__ */ a("th", {
22
- scope: "col",
23
- className: c,
24
- children: d.scheduleAmountColumn
25
- }),
26
- /* @__PURE__ */ a("th", {
27
- scope: "col",
28
- className: c,
29
- children: d.scheduleStatusColumn
30
- }),
31
- /* @__PURE__ */ a("th", {
32
- scope: "col",
33
- className: c,
34
- children: d.scheduleNumberColumn
35
- }),
36
- /* @__PURE__ */ a("th", {
37
- className: "ttw:h-10 ttw:w-6 ttw:pl-2",
38
- "aria-hidden": "true"
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" })
39
18
  })
40
- ] }) }), /* @__PURE__ */ a("tbody", { children: u.map((t) => {
41
- let { onOpen: c } = t;
42
- return /* @__PURE__ */ o("tr", {
43
- className: "ttw:border-t ttw:border-border",
44
- children: [
45
- /* @__PURE__ */ a("td", {
46
- className: n(l, "ttw:pl-0"),
47
- children: t.issueDateLabel
48
- }),
49
- /* @__PURE__ */ a("td", {
50
- className: l,
51
- children: t.amountLabel
52
- }),
53
- /* @__PURE__ */ a("td", {
54
- className: "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left",
55
- children: t.chip.kind === "invoice" ? /* @__PURE__ */ a(r, {
56
- label: t.chip.label,
57
- tone: t.chip.tone
58
- }) : /* @__PURE__ */ a(i, {
59
- label: t.chip.label,
60
- tone: t.chip.tone
61
- })
62
- }),
63
- /* @__PURE__ */ a("td", {
64
- className: l,
65
- children: t.numberLabel
66
- }),
67
- /* @__PURE__ */ a("td", {
68
- className: "ttw:h-9 ttw:w-6 ttw:py-2 ttw:pl-2 ttw:text-right ttw:text-muted-foreground",
69
- children: c ? /* @__PURE__ */ a(e, {
70
- variant: "ghost",
71
- size: "icon",
72
- className: "ttw:size-6",
73
- "aria-label": t.openLabel,
74
- onClick: c,
75
- children: /* @__PURE__ */ a(s, {
76
- className: "ttw:size-4",
77
- "aria-hidden": "true"
78
- })
79
- }) : null
80
- })
81
- ]
82
- }, t.id);
83
- }) })]
84
- });
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
+ })] });
85
36
  }
86
37
  //#endregion
87
- export { u as ScheduledInvoicesTable };
38
+ export { h as OverflowMenu };