@tesouro/embedded-components-react 0.11.205 → 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.
- package/dist/experimental/BalanceHistoryWidget.d.ts +1 -1
- package/dist/experimental/index.d.ts +1 -1
- package/dist/index.css +13 -126
- package/dist/index.d.ts +7 -6
- package/dist/lib/ReceivablesWidget.d.ts +6 -5
- package/dist/lib/WidgetSuite.d.ts +7 -6
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableAttachmentsSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivableCustomerSection.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +16 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/details.js +186 -239
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/helpers.js +59 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +5 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentRecord.js +5 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/paymentTerms.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/preview.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurrence.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/recurringSeries.js +19 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/statusColors.js +34 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +2 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActionsModal.js +5 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +16 -16
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableForm.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablePaymentRecord.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesTable.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +28 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +18 -120
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +89 -84
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +91 -36
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +41 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +2 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +9 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +9 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +26 -208
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +209 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +50 -208
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +186 -138
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +157 -12
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +10 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +23 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +2 -116
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +117 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +3 -198
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +198 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +2 -54
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +14 -19
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +22 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +40 -77
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +17 -37
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +61 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +27 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +26 -15
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +14 -6
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +19 -35
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +31 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +67 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +391 -84
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +2 -494
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +62 -38
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +433 -61
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +176 -428
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +20 -224
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +6 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +264 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +2 -264
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +131 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +22 -126
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +235 -23
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +3 -239
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +247 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +26 -244
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +183 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +21 -194
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +143 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +2 -143
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +47 -2
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/shared/document-status/ui/dist/index7.js +2 -31
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/feature/dist/lib/helpers.js +1 -1
- package/dist/packages/shared-ui-shadcn/dist/index.js +1554 -1544
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +0 -7
- 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 "./
|
|
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
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import "./index26.js";
|
|
22
|
-
import
|
|
23
|
-
import "./index28.js";
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import "./
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import "./
|
|
30
|
-
import {
|
|
31
|
-
import "./
|
|
32
|
-
import {
|
|
33
|
-
import
|
|
34
|
-
import "./
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import "./
|
|
40
|
-
import {
|
|
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 {
|
|
2
|
-
import {
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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 {
|
|
20
|
+
export { a as StepHeader };
|
|
@@ -1,101 +1,106 @@
|
|
|
1
|
-
import { Button as e,
|
|
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
|
|
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(
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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:
|
|
19
|
-
children: [
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
children:
|
|
26
|
-
}), /* @__PURE__ */ c(
|
|
27
|
-
variant: "
|
|
28
|
-
|
|
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
|
-
}),
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
52
|
-
children:
|
|
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
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
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(
|
|
82
|
-
className: "ttw:
|
|
88
|
+
/* @__PURE__ */ l(t, {
|
|
89
|
+
className: "ttw:p-6 ttw:pt-4",
|
|
83
90
|
children: [/* @__PURE__ */ c(e, {
|
|
84
91
|
type: "button",
|
|
85
|
-
variant: "
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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 {
|
|
106
|
+
export { f as ReceivableActionsModalIssueStep };
|
|
@@ -1,40 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
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
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
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 {
|
|
95
|
+
export { u as ReceivableActionsModalProductsStep };
|
|
@@ -1,2 +1,41 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "./
|
|
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
|
-
|
|
2
|
-
|
|
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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
12
|
+
export { e as RECEIVABLE_BILLING_SECTION_LABELS_EN };
|