@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
@@ -7,35 +7,36 @@ import { InvoicingTabs as r } from "./index7.js";
7
7
  import "./index8.js";
8
8
  import "./index9.js";
9
9
  import "./index10.js";
10
- import { ReceivableActionsModal as i } from "./index13.js";
11
- import "./index14.js";
10
+ import { ReceivableActionsModal as i } from "./index14.js";
12
11
  import "./index15.js";
13
12
  import "./index16.js";
14
13
  import "./index17.js";
15
14
  import "./index18.js";
16
- import { ReceivableActionDialog as a } from "./index19.js";
17
- import { ReceivableBankAccountSection as o } from "./index20.js";
18
- import { ReceivableAttachmentsSection as s } from "./index21.js";
19
- import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as c, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as l } from "./index24.js";
20
- import { ReceivableBillingSection as u } from "./index25.js";
21
- import "./index26.js";
22
- import { ReceivableCustomerSection as d } from "./index27.js";
23
- import "./index28.js";
24
- import { RECEIVABLE_DETAILS_SECTION as f } from "./index31.js";
25
- import { ReceivableDetailsPanel as p } from "./index43.js";
26
- import "./index44.js";
27
- import { ReceivableFormDialog as m } from "./index47.js";
28
- import { ReceivablePaymentDialog as h } from "./index48.js";
29
- import "./index49.js";
30
- import { ReceivablePreview as g } from "./index52.js";
31
- import "./index53.js";
32
- import { ReceivableRecurrenceEmailDialog as _ } from "./index54.js";
33
- import { ReceivableRecurrenceSection as v } from "./index56.js";
34
- import "./index57.js";
35
- import { ReceivableRemindersSection as y } from "./index58.js";
36
- import { ReceivablesScreen as b } from "./index60.js";
37
- import { RECURRING_SERIES_SCREEN_LABELS_EN as x } from "./index61.js";
38
- import { RecurringSeriesScreen as S } from "./index62.js";
39
- import "./index63.js";
40
- import { UnsavedInvoiceDialog as C } from "./index64.js";
15
+ import "./index19.js";
16
+ import { ReceivableActionDialog as a } from "./index20.js";
17
+ import { ReceivableBankAccountSection as o } from "./index21.js";
18
+ import { ReceivableAttachmentsSection as s } from "./index22.js";
19
+ import { RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE as c, RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE as l } from "./index25.js";
20
+ import { ReceivableBillingSection as u } from "./index26.js";
21
+ import "./index27.js";
22
+ import { ReceivableCustomerSection as d } from "./index28.js";
23
+ import "./index29.js";
24
+ import "./index30.js";
25
+ import { RECEIVABLE_DETAILS_SECTION as f } from "./index34.js";
26
+ import { ReceivableDetailsPanel as p } from "./index42.js";
27
+ import "./index43.js";
28
+ import { ReceivableFormDialog as m } from "./index46.js";
29
+ import { ReceivablePaymentDialog as h } from "./index47.js";
30
+ import "./index48.js";
31
+ import { ReceivablePreview as g } from "./index51.js";
32
+ import "./index52.js";
33
+ import { ReceivableRecurrenceEmailDialog as _ } from "./index53.js";
34
+ import { ReceivableRecurrenceSection as v } from "./index55.js";
35
+ import "./index56.js";
36
+ import { ReceivableRemindersSection as y } from "./index57.js";
37
+ import { ReceivablesScreen as b } from "./index59.js";
38
+ import { RECURRING_SERIES_SCREEN_LABELS_EN as x } from "./index60.js";
39
+ import { RecurringSeriesScreen as S } from "./index61.js";
40
+ import "./index62.js";
41
+ import { UnsavedInvoiceDialog as C } from "./index63.js";
41
42
  export { n as INVOICING_TABS_LABELS_EN, t as InvoicesFilterBar, e as InvoicesFilterField, r as InvoicingTabs, f as RECEIVABLE_DETAILS_SECTION, c as RECEIVABLE_PAYMENT_TERMS_CUSTOM_DATE, l as RECEIVABLE_PAYMENT_TERMS_RECEIPT_DUE, x as RECURRING_SERIES_SCREEN_LABELS_EN, a as ReceivableActionDialog, i as ReceivableActionsModal, s as ReceivableAttachmentsSection, o as ReceivableBankAccountSection, u as ReceivableBillingSection, d as ReceivableCustomerSection, p as ReceivableDetailsPanel, m as ReceivableFormDialog, h as ReceivablePaymentDialog, g as ReceivablePreview, _ as ReceivableRecurrenceEmailDialog, v as ReceivableRecurrenceSection, y as ReceivableRemindersSection, b as ReceivablesScreen, S as RecurringSeriesScreen, C as UnsavedInvoiceDialog };
@@ -1,122 +1,20 @@
1
- import { Button as e, DialogDescription as t, DialogFooter as n, DialogHeader as r, DialogTitle as i, Input as a, Label as o, Textarea as s, Typography as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
3
- import { Check as f, Send as p } from "lucide-react";
1
+ import { DialogDescription as e, DialogHeader as t, DialogTitle as n } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as r, jsxs as i } from "react/jsx-runtime";
4
3
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js
5
- function m({ idPrefix: m, view: h, onSubjectChange: g, onMessageChange: _, onSkip: v, onSend: y, labels: b }) {
6
- let x = `${m}-subject`, S = `${m}-message`;
7
- return /* @__PURE__ */ d(l, { children: [
8
- /* @__PURE__ */ u(r, {
9
- className: "ttw:border-b ttw:border-border ttw:p-6",
10
- children: /* @__PURE__ */ d("div", {
11
- className: "ttw:flex ttw:items-center ttw:gap-4",
12
- children: [/* @__PURE__ */ u("span", {
13
- className: "ttw:flex ttw:size-10 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50",
14
- children: h.icon === "send" ? /* @__PURE__ */ u(p, { className: "ttw:size-6 ttw:text-green-700" }) : /* @__PURE__ */ u(f, { className: "ttw:size-6 ttw:text-green-700" })
15
- }), /* @__PURE__ */ d("div", {
16
- className: "ttw:flex ttw:flex-col ttw:gap-1",
17
- children: [/* @__PURE__ */ u(i, { children: h.title }), /* @__PURE__ */ u(t, {
18
- className: "ttw:text-xs",
19
- children: b.issueDescription
20
- })]
21
- })]
22
- })
23
- }),
24
- /* @__PURE__ */ d("div", {
25
- className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:p-6",
26
- children: [
27
- /* @__PURE__ */ d("div", {
28
- className: "ttw:flex ttw:items-center ttw:gap-4",
29
- children: [/* @__PURE__ */ u(c, {
30
- variant: "body2",
31
- color: "muted",
32
- className: "ttw:w-16 ttw:shrink-0",
33
- children: b.toLabel
34
- }), /* @__PURE__ */ u(c, {
35
- variant: "body2",
36
- children: h.recipient
37
- })]
38
- }),
39
- /* @__PURE__ */ d("div", {
40
- className: "ttw:flex ttw:items-center ttw:gap-4",
41
- children: [/* @__PURE__ */ u(o, {
42
- htmlFor: x,
43
- className: "ttw:w-16 ttw:shrink-0 ttw:font-normal ttw:text-muted-foreground",
44
- children: b.subjectLabel
45
- }), /* @__PURE__ */ u(a, {
46
- id: x,
47
- className: "ttw:flex-1",
48
- value: h.subject,
49
- onChange: (e) => g(e.target.value),
50
- disabled: h.inProgress
51
- })]
52
- }),
53
- /* @__PURE__ */ d("div", {
54
- className: "ttw:flex ttw:items-start ttw:gap-4",
55
- children: [/* @__PURE__ */ u(o, {
56
- htmlFor: S,
57
- className: "ttw:w-16 ttw:shrink-0 ttw:pt-2 ttw:font-normal ttw:text-muted-foreground",
58
- children: b.messageLabel
59
- }), /* @__PURE__ */ u(s, {
60
- id: S,
61
- className: "ttw:flex-1",
62
- value: h.message,
63
- onChange: (e) => _(e.target.value),
64
- placeholder: b.messagePlaceholder,
65
- disabled: h.inProgress
66
- })]
67
- }),
68
- h.attachments.length > 0 && /* @__PURE__ */ d("div", {
69
- className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pl-20",
70
- children: [/* @__PURE__ */ d("div", {
71
- className: "ttw:flex ttw:flex-col",
72
- children: [/* @__PURE__ */ u(c, {
73
- variant: "body2",
74
- color: "muted",
75
- children: b.attachmentsLabel
76
- }), /* @__PURE__ */ u(c, {
77
- variant: "caption",
78
- color: "muted",
79
- children: b.attachmentsCaption
80
- })]
81
- }), /* @__PURE__ */ u("ul", {
82
- className: "ttw:flex ttw:flex-col ttw:gap-2.5",
83
- children: h.attachments.map((e) => /* @__PURE__ */ d("li", {
84
- className: "ttw:rounded-lg ttw:bg-muted ttw:px-2 ttw:py-1 ttw:text-sm ttw:font-medium",
85
- children: [
86
- e.name,
87
- " ",
88
- /* @__PURE__ */ d("span", {
89
- className: "ttw:text-muted-foreground",
90
- children: [
91
- "(",
92
- e.sizeLabel,
93
- ")"
94
- ]
95
- })
96
- ]
97
- }, e.id))
98
- })]
99
- })
100
- ]
101
- }),
102
- /* @__PURE__ */ d(n, {
103
- className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
104
- children: [/* @__PURE__ */ u(e, {
105
- type: "button",
106
- variant: "outline",
107
- className: "ttw:flex-1 ttw:border-border",
108
- disabled: h.inProgress,
109
- onClick: v,
110
- children: h.dismissLabel
111
- }), /* @__PURE__ */ u(e, {
112
- type: "button",
113
- className: "ttw:flex-1",
114
- disabled: h.sendDisabled,
115
- loading: h.inProgress,
116
- onClick: y,
117
- children: b.sendButton
118
- })]
119
- })
120
- ] });
4
+ function a({ icon: a, title: o, stepLabel: s, description: c }) {
5
+ return /* @__PURE__ */ i(t, {
6
+ className: "ttw:p-6 ttw:pr-14 ttw:pb-4",
7
+ children: [
8
+ /* @__PURE__ */ i(n, {
9
+ className: "ttw:flex ttw:items-center ttw:gap-2 ttw:[&>svg]:size-5 ttw:[&>svg]:shrink-0",
10
+ children: [a, o]
11
+ }),
12
+ s ? /* @__PURE__ */ r("p", {
13
+ className: "ttw:text-sm ttw:text-muted-foreground",
14
+ children: s
15
+ }) : null,
16
+ c ? /* @__PURE__ */ r(e, { children: c }) : null
17
+ ]
18
+ });
121
19
  }
122
- export { m as ReceivableActionsModalIssueStep };
20
+ export { a as StepHeader };
@@ -1,101 +1,106 @@
1
- import { Button as e, Checkbox as t, DialogFooter as n, DialogHeader as r, DialogTitle as i, Separator as a, Typography as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
1
+ import { Button as e, DialogFooter as t, Input as n, Label as r, Textarea as i, Typography as a } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { StepHeader as o } from "./index11.js";
2
3
  import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
3
- import { Check as u } from "lucide-react";
4
+ import { Check as u, Send as d } from "lucide-react";
4
5
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js
5
- function d({ view: d, onToggleItem: f, onToggleAll: p, onAllSelectedChange: m, onSkip: h, onSave: g, labels: _ }) {
6
+ function f({ idPrefix: f, view: p, onSubjectChange: m, onMessageChange: h, onSkip: g, onSend: _, labels: v }) {
7
+ let y = `${f}-subject`, b = `${f}-message`;
6
8
  return /* @__PURE__ */ l(s, { children: [
7
- /* @__PURE__ */ c(r, {
8
- className: "ttw:border-b ttw:border-border ttw:p-6",
9
- children: /* @__PURE__ */ l(i, {
10
- className: "ttw:flex ttw:flex-row ttw:items-center ttw:gap-4",
11
- children: [/* @__PURE__ */ c("span", {
12
- className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50",
13
- children: /* @__PURE__ */ c(u, { className: "ttw:size-6 ttw:text-green-700" })
14
- }), d.title]
15
- })
9
+ /* @__PURE__ */ c(o, {
10
+ icon: p.icon === "send" ? /* @__PURE__ */ c(d, { "aria-hidden": !0 }) : /* @__PURE__ */ c(u, { "aria-hidden": !0 }),
11
+ title: p.title,
12
+ stepLabel: p.stepLabel,
13
+ description: v.issueDescription
16
14
  }),
17
15
  /* @__PURE__ */ l("div", {
18
- className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-6",
19
- children: [/* @__PURE__ */ l("div", {
20
- className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-1.5",
21
- children: [/* @__PURE__ */ l("div", {
22
- className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-1",
23
- children: [/* @__PURE__ */ c(o, {
24
- variant: "h4",
25
- children: _.productsQuestion
26
- }), /* @__PURE__ */ c(o, {
27
- variant: "caption",
28
- color: "muted",
29
- children: _.productsCaption
16
+ className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-1",
17
+ children: [
18
+ /* @__PURE__ */ l("div", {
19
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
20
+ children: [/* @__PURE__ */ c(a, {
21
+ variant: "body2",
22
+ className: "ttw:font-medium",
23
+ children: v.toLabel
24
+ }), /* @__PURE__ */ c(a, {
25
+ variant: "body2",
26
+ children: p.recipient
30
27
  })]
31
- }), /* @__PURE__ */ c(e, {
32
- type: "button",
33
- variant: "ghost",
34
- className: "ttw:shrink-0 ttw:text-primary ttw:hover:text-primary",
35
- disabled: d.inProgress,
36
- onClick: p,
37
- children: d.toggleAllLabel
38
- })]
39
- }), /* @__PURE__ */ l("ul", {
40
- className: "ttw:flex ttw:flex-col ttw:gap-3",
41
- children: [
42
- /* @__PURE__ */ l("li", {
43
- className: "ttw:flex ttw:items-center ttw:gap-2",
44
- children: [/* @__PURE__ */ c(t, {
45
- checked: d.allSelected,
46
- onCheckedChange: (e) => m(e === !0),
47
- disabled: d.inProgress || d.items.length === 0,
48
- "aria-label": _.productsAllLabel
49
- }), /* @__PURE__ */ c(o, {
28
+ }),
29
+ /* @__PURE__ */ l("div", {
30
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
31
+ children: [/* @__PURE__ */ c(r, {
32
+ htmlFor: y,
33
+ children: v.subjectLabel
34
+ }), /* @__PURE__ */ c(n, {
35
+ id: y,
36
+ value: p.subject,
37
+ onChange: (e) => m(e.target.value),
38
+ disabled: p.inProgress
39
+ })]
40
+ }),
41
+ /* @__PURE__ */ l("div", {
42
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
43
+ children: [/* @__PURE__ */ c(r, {
44
+ htmlFor: b,
45
+ children: v.messageLabel
46
+ }), /* @__PURE__ */ c(i, {
47
+ id: b,
48
+ value: p.message,
49
+ onChange: (e) => h(e.target.value),
50
+ placeholder: v.messagePlaceholder,
51
+ disabled: p.inProgress
52
+ })]
53
+ }),
54
+ p.attachments.length > 0 && /* @__PURE__ */ l("div", {
55
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
56
+ children: [/* @__PURE__ */ l("div", {
57
+ className: "ttw:flex ttw:flex-col",
58
+ children: [/* @__PURE__ */ c(a, {
50
59
  variant: "body2",
51
- className: "ttw:font-semibold",
52
- children: _.productsAllLabel
60
+ color: "muted",
61
+ children: v.attachmentsLabel
62
+ }), /* @__PURE__ */ c(a, {
63
+ variant: "caption",
64
+ color: "muted",
65
+ children: v.attachmentsCaption
53
66
  })]
54
- }),
55
- /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(a, {}) }),
56
- d.items.map((e) => /* @__PURE__ */ l("li", {
57
- className: "ttw:flex ttw:items-start ttw:gap-2",
58
- children: [/* @__PURE__ */ c(t, {
59
- checked: e.selected,
60
- onCheckedChange: () => f(e.key),
61
- disabled: d.inProgress,
62
- "aria-label": e.name
63
- }), /* @__PURE__ */ l("div", {
64
- className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-1",
65
- children: [/* @__PURE__ */ c(o, {
66
- variant: "caption",
67
- className: "ttw:truncate",
68
- title: e.name,
69
- children: e.name
70
- }), /* @__PURE__ */ c(o, {
71
- variant: "caption",
72
- color: "muted",
73
- className: "ttw:truncate",
74
- children: e.priceLabel
75
- })]
76
- })]
77
- }, e.key))
78
- ]
79
- })]
67
+ }), /* @__PURE__ */ c("ul", {
68
+ className: "ttw:flex ttw:flex-col ttw:gap-2",
69
+ children: p.attachments.map((e) => /* @__PURE__ */ l("li", {
70
+ className: "ttw:rounded-lg ttw:bg-muted ttw:px-2 ttw:py-1 ttw:text-sm ttw:font-medium",
71
+ children: [
72
+ e.name,
73
+ " ",
74
+ /* @__PURE__ */ l("span", {
75
+ className: "ttw:text-muted-foreground",
76
+ children: [
77
+ "(",
78
+ e.sizeLabel,
79
+ ")"
80
+ ]
81
+ })
82
+ ]
83
+ }, e.id))
84
+ })]
85
+ })
86
+ ]
80
87
  }),
81
- /* @__PURE__ */ l(n, {
82
- className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
88
+ /* @__PURE__ */ l(t, {
89
+ className: "ttw:p-6 ttw:pt-4",
83
90
  children: [/* @__PURE__ */ c(e, {
84
91
  type: "button",
85
- variant: "outline",
86
- className: "ttw:flex-1 ttw:border-border",
87
- disabled: d.inProgress,
88
- onClick: h,
89
- children: _.skipButton
92
+ variant: "ghost",
93
+ disabled: p.inProgress,
94
+ onClick: g,
95
+ children: p.dismissLabel
90
96
  }), /* @__PURE__ */ c(e, {
91
97
  type: "button",
92
- className: "ttw:flex-1",
93
- disabled: d.saveDisabled,
94
- loading: d.inProgress,
95
- onClick: g,
96
- children: _.saveItemsButton
98
+ disabled: p.sendDisabled,
99
+ loading: p.inProgress,
100
+ onClick: _,
101
+ children: v.sendButton
97
102
  })]
98
103
  })
99
104
  ] });
100
105
  }
101
- export { d as ReceivableActionsModalProductsStep };
106
+ export { f as ReceivableActionsModalIssueStep };
@@ -1,40 +1,95 @@
1
- import { Dialog as e, DialogContent as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RECEIVABLE_ACTIONS_MODAL_LABELS_EN as n } from "./index10.js";
3
- import { ReceivableActionsModalIssueStep as r } from "./index11.js";
4
- import { ReceivableActionsModalProductsStep as i } from "./index12.js";
5
- import { jsx as a, jsxs as o } from "react/jsx-runtime";
1
+ import { Button as e, Checkbox as t, DialogFooter as n, Separator as r, Typography as i } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { StepHeader as a } from "./index11.js";
3
+ import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
4
+ import { Check as l } from "lucide-react";
6
5
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js
7
- function s({ idPrefix: s, open: c, view: l, onSkip: u, onSubjectChange: d, onMessageChange: f, onSend: p, onToggleItem: m, onToggleAll: h, onAllSelectedChange: g, onSaveItems: _, labels: v }) {
8
- let y = {
9
- ...n,
10
- ...v
11
- };
12
- return /* @__PURE__ */ a(e, {
13
- open: c && !!l,
14
- onOpenChange: (e) => {
15
- e || u();
16
- },
17
- children: /* @__PURE__ */ o(t, {
18
- className: "ttw:gap-0 ttw:p-0 ttw:max-w-178 ttw:sm:max-w-178",
19
- labels: { close: y.close },
20
- children: [l?.step === "issue" && /* @__PURE__ */ a(r, {
21
- idPrefix: s,
22
- view: l,
23
- onSubjectChange: d,
24
- onMessageChange: f,
25
- onSkip: u,
26
- onSend: p,
27
- labels: y
28
- }), l?.step === "products" && /* @__PURE__ */ a(i, {
29
- view: l,
30
- onToggleItem: m,
31
- onToggleAll: h,
32
- onAllSelectedChange: g,
33
- onSkip: u,
34
- onSave: _,
35
- labels: y
6
+ function u({ view: u, onToggleItem: d, onToggleAll: f, onAllSelectedChange: p, onSkip: m, onSave: h, labels: g }) {
7
+ return /* @__PURE__ */ c(o, { children: [
8
+ /* @__PURE__ */ s(a, {
9
+ icon: /* @__PURE__ */ s(l, { "aria-hidden": !0 }),
10
+ title: u.title,
11
+ stepLabel: u.stepLabel
12
+ }),
13
+ /* @__PURE__ */ c("div", {
14
+ className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:py-1",
15
+ children: [/* @__PURE__ */ c("div", {
16
+ className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-1.5",
17
+ children: [/* @__PURE__ */ c("div", {
18
+ className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-1",
19
+ children: [/* @__PURE__ */ s(i, {
20
+ variant: "h4",
21
+ children: g.productsQuestion
22
+ }), /* @__PURE__ */ s(i, {
23
+ variant: "caption",
24
+ color: "muted",
25
+ children: g.productsCaption
26
+ })]
27
+ }), /* @__PURE__ */ s(e, {
28
+ type: "button",
29
+ variant: "link",
30
+ className: "ttw:shrink-0",
31
+ disabled: u.inProgress,
32
+ onClick: f,
33
+ children: u.toggleAllLabel
34
+ })]
35
+ }), /* @__PURE__ */ c("ul", {
36
+ className: "ttw:flex ttw:flex-col ttw:gap-3",
37
+ children: [
38
+ /* @__PURE__ */ c("li", {
39
+ className: "ttw:flex ttw:items-center ttw:gap-2",
40
+ children: [/* @__PURE__ */ s(t, {
41
+ checked: u.allSelected,
42
+ onCheckedChange: (e) => p(e === !0),
43
+ disabled: u.inProgress || u.items.length === 0,
44
+ "aria-label": g.productsAllLabel
45
+ }), /* @__PURE__ */ s(i, {
46
+ variant: "body2",
47
+ className: "ttw:font-semibold",
48
+ children: g.productsAllLabel
49
+ })]
50
+ }),
51
+ /* @__PURE__ */ s("li", { children: /* @__PURE__ */ s(r, {}) }),
52
+ u.items.map((e) => /* @__PURE__ */ c("li", {
53
+ className: "ttw:flex ttw:items-start ttw:gap-2",
54
+ children: [/* @__PURE__ */ s(t, {
55
+ checked: e.selected,
56
+ onCheckedChange: () => d(e.key),
57
+ disabled: u.inProgress,
58
+ "aria-label": e.name
59
+ }), /* @__PURE__ */ c("div", {
60
+ className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-1",
61
+ children: [/* @__PURE__ */ s(i, {
62
+ variant: "caption",
63
+ className: "ttw:truncate",
64
+ title: e.name,
65
+ children: e.name
66
+ }), /* @__PURE__ */ s(i, {
67
+ variant: "caption",
68
+ color: "muted",
69
+ className: "ttw:truncate",
70
+ children: e.priceLabel
71
+ })]
72
+ })]
73
+ }, e.key))
74
+ ]
75
+ })]
76
+ }),
77
+ /* @__PURE__ */ c(n, {
78
+ className: "ttw:p-6 ttw:pt-4",
79
+ children: [/* @__PURE__ */ s(e, {
80
+ type: "button",
81
+ variant: "ghost",
82
+ disabled: u.inProgress,
83
+ onClick: m,
84
+ children: g.skipButton
85
+ }), /* @__PURE__ */ s(e, {
86
+ type: "button",
87
+ disabled: u.saveDisabled,
88
+ loading: u.inProgress,
89
+ onClick: h,
90
+ children: g.saveItemsButton
36
91
  })]
37
92
  })
38
- });
93
+ ] });
39
94
  }
40
- export { s as ReceivableActionsModal };
95
+ export { u as ReceivableActionsModalProductsStep };
@@ -1,2 +1,41 @@
1
- import "./index10.js";
2
- import "./index13.js";
1
+ import { Dialog as e, DialogContent as t } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { RECEIVABLE_ACTIONS_MODAL_LABELS_EN as n } from "./index10.js";
3
+ import { ReceivableActionsModalIssueStep as r } from "./index12.js";
4
+ import { ReceivableActionsModalProductsStep as i } from "./index13.js";
5
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
6
+ // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js
7
+ function s({ idPrefix: s, open: c, view: l, onSkip: u, onSubjectChange: d, onMessageChange: f, onSend: p, onToggleItem: m, onToggleAll: h, onAllSelectedChange: g, onSaveItems: _, labels: v }) {
8
+ let y = {
9
+ ...n,
10
+ ...v
11
+ };
12
+ return /* @__PURE__ */ a(e, {
13
+ open: c && !!l,
14
+ onOpenChange: (e) => {
15
+ e || u();
16
+ },
17
+ children: /* @__PURE__ */ o(t, {
18
+ size: "form",
19
+ className: "ttw:gap-0 ttw:p-0",
20
+ labels: { close: y.close },
21
+ children: [l?.step === "issue" && /* @__PURE__ */ a(r, {
22
+ idPrefix: s,
23
+ view: l,
24
+ onSubjectChange: d,
25
+ onMessageChange: f,
26
+ onSkip: u,
27
+ onSend: p,
28
+ labels: y
29
+ }), l?.step === "products" && /* @__PURE__ */ a(i, {
30
+ view: l,
31
+ onToggleItem: m,
32
+ onToggleAll: h,
33
+ onAllSelectedChange: g,
34
+ onSkip: u,
35
+ onSave: _,
36
+ labels: y
37
+ })]
38
+ })
39
+ });
40
+ }
41
+ export { s as ReceivableActionsModal };
@@ -1,12 +1,2 @@
1
- // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js
2
- var e = {
3
- billingHeading: "Billing details",
4
- billingDescription: "What are the billing terms?",
5
- paymentTermsLabel: "Payment terms",
6
- paymentTermsPlaceholder: "Select payment terms",
7
- paymentTermsReceiptDue: "Due on receipt",
8
- paymentTermsCustomDate: "Custom date",
9
- purchaseOrderLabel: "PO Number",
10
- purchaseOrderOptional: "(optional)"
11
- };
12
- export { e as RECEIVABLE_BILLING_SECTION_LABELS_EN };
1
+ import "./index10.js";
2
+ import "./index14.js";
@@ -1,12 +1,12 @@
1
1
  // ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js
2
2
  var e = {
3
- customerHeading: "Customer details",
4
- customerDescription: "Who are you billing?",
5
- customerNameLabel: "Name",
6
- customerListToggleButton: "Show customers",
7
- customerEmailLabel: "Email",
8
- addCustomerDetailsButton: "Add more details including address, phone, etc.",
9
- viewCustomerDetailsButton: "View details",
10
- clearCustomerButton: "Clear"
3
+ billingHeading: "Billing details",
4
+ billingDescription: "What are the billing terms?",
5
+ paymentTermsLabel: "Payment terms",
6
+ paymentTermsPlaceholder: "Select payment terms",
7
+ paymentTermsReceiptDue: "Due on receipt",
8
+ paymentTermsCustomDate: "Custom date",
9
+ purchaseOrderLabel: "PO Number",
10
+ purchaseOrderOptional: "(optional)"
11
11
  };
12
- export { e as RECEIVABLE_CUSTOMER_SECTION_LABELS_EN };
12
+ export { e as RECEIVABLE_BILLING_SECTION_LABELS_EN };