@tesouro/embedded-components-react 0.11.206 → 0.11.209

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 (84) hide show
  1. package/dist/index.css +13 -126
  2. package/dist/index.d.ts +6 -5
  3. package/dist/lib/ReceivablesWidget.d.ts +6 -5
  4. package/dist/lib/WidgetSuite.d.ts +6 -5
  5. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +16 -18
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +186 -239
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +59 -52
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +5 -4
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentRecord.js +5 -5
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +19 -23
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusColors.js +34 -0
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +2 -6
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +5 -1
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +16 -16
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -1
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +1 -2
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +2 -0
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +28 -27
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +18 -120
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +89 -84
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +91 -36
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +41 -2
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +2 -12
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +9 -9
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +9 -25
  32. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +26 -208
  33. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +209 -52
  34. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +50 -208
  35. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +186 -138
  36. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +157 -12
  37. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +10 -19
  38. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +23 -2
  39. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +2 -116
  40. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +117 -3
  41. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +3 -198
  42. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +198 -2
  43. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +2 -54
  44. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +14 -19
  45. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +22 -8
  46. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +40 -77
  47. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +17 -37
  48. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +8 -18
  49. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +61 -38
  50. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +27 -27
  51. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -15
  52. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +14 -6
  53. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +19 -35
  54. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +31 -14
  55. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +67 -24
  56. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +391 -84
  57. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +2 -494
  58. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +47 -2
  59. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +62 -38
  60. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +433 -61
  61. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +176 -428
  62. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +20 -224
  63. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +6 -21
  64. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +264 -0
  65. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +2 -264
  66. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +131 -2
  67. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +22 -126
  68. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +235 -23
  69. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +3 -239
  70. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +247 -3
  71. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +26 -244
  72. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +183 -26
  73. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +21 -194
  74. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +143 -21
  75. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +2 -143
  76. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +47 -2
  77. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +2 -2
  78. package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +2 -31
  79. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  80. package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/helpers.js +1 -1
  81. package/dist/packages/shared-ui-shadcn/dist/index.js +1554 -1544
  82. package/package.json +1 -1
  83. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +0 -7
  84. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +0 -47
@@ -1,40 +1,20 @@
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";
1
+ import { AccordionTrigger as e, Badge as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
5
3
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.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
- })] })]
4
+ function i({ heading: i, countLabel: a }) {
5
+ return /* @__PURE__ */ n(e, {
6
+ className: "ttw:group ttw:cursor-pointer ttw:hover:no-underline",
7
+ iconClassName: "ttw:translate-y-0.5",
8
+ children: /* @__PURE__ */ r("span", {
9
+ className: "ttw:flex ttw:items-center ttw:gap-2",
10
+ children: [/* @__PURE__ */ n("span", {
11
+ className: "ttw:group-hover:underline",
12
+ children: i
13
+ }), a ? /* @__PURE__ */ n(t, {
14
+ tone: "neutral",
15
+ children: a
16
+ }) : null]
17
+ })
38
18
  });
39
19
  }
40
- export { p as AuditHistoryItem };
20
+ export { i as SectionTrigger };
@@ -1,19 +1,9 @@
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
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.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
- });
19
- export { i as CloseButton };
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,42 +1,65 @@
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, Typography as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RECEIVABLE_DETAILS_SECTION as r } from "./index34.js";
3
+ import { sectionItemClass as i } from "./index32.js";
4
+ import { SectionTrigger as a } from "./index33.js";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
4
6
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.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",
7
+ function c({ attachments: c, labels: l }) {
8
+ return /* @__PURE__ */ s(t, {
9
+ value: r.attachments,
10
+ className: i,
11
+ children: [/* @__PURE__ */ o(a, {
12
+ heading: l.attachmentsHeading,
13
+ countLabel: c.countLabel
14
+ }), /* @__PURE__ */ o(e, { children: c.rows.length === 0 ? /* @__PURE__ */ o(n, {
37
15
  variant: "body2",
38
- children: s
39
- })]
16
+ color: "muted",
17
+ children: l.attachmentsEmpty
18
+ }) : /* @__PURE__ */ s("table", {
19
+ className: "ttw:w-full ttw:border-collapse",
20
+ children: [/* @__PURE__ */ o("thead", { children: /* @__PURE__ */ s("tr", {
21
+ className: "ttw:border-b ttw:border-border",
22
+ children: [/* @__PURE__ */ o("th", {
23
+ scope: "col",
24
+ className: "ttw:py-2 ttw:text-left",
25
+ children: /* @__PURE__ */ o(n, {
26
+ component: "span",
27
+ variant: "caption",
28
+ color: "muted",
29
+ children: l.attachmentsFileColumn
30
+ })
31
+ }), /* @__PURE__ */ o("th", {
32
+ scope: "col",
33
+ className: "ttw:py-2 ttw:text-right",
34
+ children: /* @__PURE__ */ o(n, {
35
+ component: "span",
36
+ variant: "caption",
37
+ color: "muted",
38
+ children: l.attachmentsEmailedColumn
39
+ })
40
+ })]
41
+ }) }), /* @__PURE__ */ o("tbody", { children: c.rows.map((e) => /* @__PURE__ */ s("tr", {
42
+ className: "ttw:border-b ttw:border-border ttw:last:border-b-0",
43
+ children: [/* @__PURE__ */ o("td", {
44
+ className: "ttw:py-3",
45
+ children: /* @__PURE__ */ o("a", {
46
+ href: e.url,
47
+ target: "_blank",
48
+ rel: "noreferrer",
49
+ className: "ttw:text-primary ttw:hover:underline",
50
+ children: e.name
51
+ })
52
+ }), /* @__PURE__ */ o("td", {
53
+ className: "ttw:py-3 ttw:text-right ttw:align-middle",
54
+ children: /* @__PURE__ */ o(n, {
55
+ component: "span",
56
+ variant: "body2",
57
+ color: e.includeInEmail ? void 0 : "muted",
58
+ children: e.emailedLabel
59
+ })
60
+ })]
61
+ }, e.id)) })]
62
+ }) })]
40
63
  });
41
64
  }
42
- export { o as CustomerNameRow };
65
+ export { c as AttachmentsItem };
@@ -1,30 +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
+ import { AccordionContent as e, AccordionItem as t, AuditHistoryList as n, Typography as r } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RECEIVABLE_DETAILS_SECTION as i } from "./index34.js";
3
+ import { sectionItemClass as a } from "./index32.js";
4
+ import { SectionTrigger as o } from "./index33.js";
5
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
4
6
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.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
- })]
26
- })
27
- })
7
+ function l({ auditHistory: l, labels: u }) {
8
+ return /* @__PURE__ */ c(t, {
9
+ value: i.auditHistory,
10
+ className: a,
11
+ children: [/* @__PURE__ */ s(o, {
12
+ heading: u.auditHistoryHeading,
13
+ countLabel: l.countLabel
14
+ }), /* @__PURE__ */ c(e, { children: [l.showNamesError ? /* @__PURE__ */ s(r, {
15
+ variant: "caption",
16
+ color: "muted",
17
+ children: u.auditHistoryNamesError
18
+ }) : null, /* @__PURE__ */ s(n, {
19
+ rows: l.rows,
20
+ isLoading: l.isLoading,
21
+ isError: l.isError,
22
+ labels: {
23
+ empty: u.auditHistoryEmpty,
24
+ loading: u.auditHistoryLoading,
25
+ error: u.auditHistoryError
26
+ }
27
+ })] })]
28
28
  });
29
29
  }
30
- export { o as DetailsMessage };
30
+ export { l as AuditHistoryItem };
@@ -1,21 +1,32 @@
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, Typography as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as n, jsxs as r } from "react/jsx-runtime";
3
3
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.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, {
4
+ var i = "ttw:flex ttw:items-center ttw:gap-4 ttw:border-b ttw:border-border ttw:py-3 ttw:last:border-b-0";
5
+ function a({ label: a, name: o, onOpen: s }) {
6
+ let c = /* @__PURE__ */ n(t, {
7
+ component: "span",
8
+ variant: "body2",
9
+ color: "muted",
10
+ className: "ttw:w-40 ttw:shrink-0",
11
+ children: a
12
+ });
13
+ return s ? /* @__PURE__ */ r("div", {
14
+ className: i,
15
+ children: [c, /* @__PURE__ */ n(e, {
16
+ type: "button",
17
+ variant: "link",
18
+ "aria-haspopup": "dialog",
19
+ className: "ttw:h-auto ttw:px-0 ttw:text-left",
20
+ onClick: s,
21
+ children: o
22
+ })]
23
+ }) : /* @__PURE__ */ r("div", {
24
+ className: i,
25
+ children: [c, /* @__PURE__ */ n(t, {
14
26
  component: "span",
15
27
  variant: "body2",
16
- className: "ttw:whitespace-pre-line",
17
- children: i
28
+ children: o
18
29
  })]
19
30
  });
20
31
  }
21
- export { r as InfoRow };
32
+ export { a as CustomerNameRow };
@@ -1,11 +1,19 @@
1
- import { cn as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
+ import { EmptyState as e } from "../../../shared/ui/dist/lib/EmptyState/EmptyState.js";
2
+ import "../../../shared/ui/dist/index.js";
2
3
  import { jsx as t } from "react/jsx-runtime";
4
+ import { SearchX as n } from "lucide-react";
3
5
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js
4
- function n({ className: n, label: r }) {
6
+ function r({ title: r, description: i }) {
5
7
  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)
8
+ className: "ttw:flex ttw:min-h-full ttw:items-center ttw:justify-center",
9
+ children: /* @__PURE__ */ t(e, {
10
+ icon: /* @__PURE__ */ t(n, {
11
+ className: "ttw:size-5",
12
+ "aria-hidden": "true"
13
+ }),
14
+ title: r,
15
+ description: i
16
+ })
9
17
  });
10
18
  }
11
- export { n as LoadingSpinner };
19
+ export { r as DetailsMessage };
@@ -1,37 +1,21 @@
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 "./index29.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 } 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/index39.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" })
18
- })
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
- })] });
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
+ });
36
20
  }
37
- export { h as OverflowMenu };
21
+ export { r as InfoRow };
@@ -1,15 +1,32 @@
1
+ import { Button as e, DropdownMenu as t, DropdownMenuContent as n, DropdownMenuItem as r, DropdownMenuTrigger as i, Tooltip as a, TooltipContent as o, TooltipTrigger as s } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { ACTION_ICON as c, DESTRUCTIVE_ACTIONS as l, preventTooltipFocusOpen as u } from "./index32.js";
3
+ import { jsx as d, jsxs as f } from "react/jsx-runtime";
4
+ import { MoreVerticalIcon as p } from "lucide-react";
1
5
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.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 };
6
+ function m({ actions: m, triggerLabel: h, getActionLabel: g, onSelect: _, disabledActions: v }) {
7
+ return /* @__PURE__ */ f(t, { children: [/* @__PURE__ */ f(a, { children: [/* @__PURE__ */ d(s, {
8
+ asChild: !0,
9
+ onFocus: u,
10
+ children: /* @__PURE__ */ d(i, {
11
+ asChild: !0,
12
+ children: /* @__PURE__ */ d(e, {
13
+ variant: "ghost",
14
+ size: "icon",
15
+ "aria-label": h,
16
+ children: /* @__PURE__ */ d(p, { className: "ttw:size-4" })
17
+ })
18
+ })
19
+ }), /* @__PURE__ */ d(o, { children: h })] }), /* @__PURE__ */ d(n, {
20
+ align: "end",
21
+ children: m.map((e) => {
22
+ let t = c[e];
23
+ return /* @__PURE__ */ f(r, {
24
+ variant: l.has(e) ? "destructive" : "default",
25
+ disabled: v?.includes(e),
26
+ onClick: () => _(e),
27
+ children: [/* @__PURE__ */ d(t, { className: "ttw:size-4" }), g(e)]
28
+ }, e);
29
+ })
30
+ })] });
31
+ }
32
+ export { m as OverflowMenu };
@@ -1,27 +1,70 @@
1
- import { Badge as e, cn as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { SERIES_STATUS_ICON as n } from "./index29.js";
3
- import { RECURRENCE_CHIP_CLASS as r, RECURRENCE_DOT_CLASS as i } from "./index40.js";
4
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { Button as e, Typography as t, cn as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { StatusBadge as r } from "./index30.js";
3
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
5
4
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.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]
5
+ var o = "ttw:h-10 ttw:px-2 ttw:text-left ttw:text-sm ttw:font-medium ttw:leading-5", s = "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left ttw:text-sm ttw:font-normal ttw:leading-5";
6
+ function c({ rows: c, labels: l }) {
7
+ return c.length === 0 ? /* @__PURE__ */ i(t, {
8
+ variant: "body2",
9
+ color: "muted",
10
+ children: l.scheduleEmpty
11
+ }) : /* @__PURE__ */ a("table", {
12
+ className: "ttw:w-full",
13
+ children: [/* @__PURE__ */ i("thead", { children: /* @__PURE__ */ a("tr", { children: [
14
+ /* @__PURE__ */ i("th", {
15
+ scope: "col",
16
+ className: n(o, "ttw:pl-0"),
17
+ children: l.scheduleIssueDateColumn
18
+ }),
19
+ /* @__PURE__ */ i("th", {
20
+ scope: "col",
21
+ className: o,
22
+ children: l.scheduleAmountColumn
23
+ }),
24
+ /* @__PURE__ */ i("th", {
25
+ scope: "col",
26
+ className: o,
27
+ children: l.scheduleStatusColumn
28
+ }),
29
+ /* @__PURE__ */ i("th", {
30
+ scope: "col",
31
+ className: o,
32
+ children: l.scheduleNumberColumn
33
+ })
34
+ ] }) }), /* @__PURE__ */ i("tbody", { children: c.map((t) => {
35
+ let { onOpen: o } = t;
36
+ return /* @__PURE__ */ a("tr", {
37
+ className: "ttw:border-t ttw:border-border",
38
+ children: [
39
+ /* @__PURE__ */ i("td", {
40
+ className: n(s, "ttw:pl-0"),
41
+ children: t.issueDateLabel
42
+ }),
43
+ /* @__PURE__ */ i("td", {
44
+ className: s,
45
+ children: t.amountLabel
46
+ }),
47
+ /* @__PURE__ */ i("td", {
48
+ className: "ttw:h-9 ttw:px-2 ttw:py-2 ttw:text-left",
49
+ children: /* @__PURE__ */ i(r, {
50
+ label: t.chip.label,
51
+ color: t.chip.color
52
+ })
53
+ }),
54
+ /* @__PURE__ */ i("td", {
55
+ className: s,
56
+ children: o ? /* @__PURE__ */ i(e, {
57
+ type: "button",
58
+ variant: "link",
59
+ className: "ttw:h-auto ttw:px-0",
60
+ "aria-label": t.openLabel,
61
+ onClick: o,
62
+ children: t.numberLabel
63
+ }) : t.numberLabel
64
+ })
65
+ ]
66
+ }, t.id);
67
+ }) })]
15
68
  });
16
69
  }
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 };
70
+ export { c as ScheduledInvoicesTable };