@tesouro/embedded-components-react 0.11.122 → 0.11.123
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/README.md +6 -3
- package/dist/index.css +0 -7
- package/dist/index.d.ts +29 -6
- package/dist/index.js +29 -28
- package/dist/lib/ReceivablesWidget.d.ts +29 -6
- package/dist/lib/ReceivablesWidget.js +3 -1
- package/dist/lib/WidgetSuite.d.ts +27 -4
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +3 -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 +342 -295
- 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/reminders.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/tabs.js +26 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableDetails.js +1 -1
- 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/mocks/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +30 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index10.js +18 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index11.js +121 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index12.js +100 -11
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +39 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +2 -205
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +11 -52
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index16.js +11 -210
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index17.js +27 -159
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index18.js +203 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +51 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index20.js +210 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index21.js +154 -111
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +15 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +21 -195
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +3 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +116 -53
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +3 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +197 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +2 -78
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index29.js +53 -39
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index30.js +20 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index31.js +8 -41
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +73 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +36 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +17 -9
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +39 -34
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +29 -14
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +18 -24
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -85
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +33 -490
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +15 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +22 -42
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +82 -65
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +475 -426
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -226
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +46 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +69 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +445 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +208 -246
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +5 -129
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +247 -222
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +1 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +125 -242
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +23 -56
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +229 -209
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +3 -47
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +248 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +60 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +194 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js +53 -117
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js +9 -99
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +3 -40
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +0 -27
|
@@ -1,248 +1,131 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
5
|
-
import { PlusIcon as f } from "lucide-react";
|
|
1
|
+
import { Button as e, Dialog as t, DialogContent as n, DialogDescription as r, DialogFooter as i, DialogHeader as a, DialogTitle as o, Input as s, InputTags as c, Label as l, Textarea as u, Typography as d, cn as f } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { RECEIVABLE_RECURRENCE_EMAIL_DIALOG_LABELS_EN as p } from "./index17.js";
|
|
3
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
6
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
" ",
|
|
49
|
-
/* @__PURE__ */ u("span", {
|
|
50
|
-
className: t,
|
|
51
|
-
children: e
|
|
52
|
-
}),
|
|
53
|
-
" ",
|
|
54
|
-
n.reminderDueDate
|
|
55
|
-
]
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
function v({ idPrefix: n, view: r, labels: i, onSelect: a, onInputChange: s, onSave: c }) {
|
|
59
|
-
let { create: l } = r, f = `${n}-error`;
|
|
60
|
-
return /* @__PURE__ */ d("div", {
|
|
61
|
-
className: m,
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ u(_, {
|
|
64
|
-
direction: i.reminderBefore,
|
|
65
|
-
directionClassName: "ttw:text-green-700 ttw:font-bold",
|
|
66
|
-
labels: i
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ u(g, {
|
|
69
|
-
idPrefix: `${n}-option`,
|
|
70
|
-
options: r.options,
|
|
71
|
-
selectedId: r.selectedId,
|
|
72
|
-
noneLabel: i.reminderNone,
|
|
73
|
-
onSelect: a
|
|
74
|
-
}),
|
|
75
|
-
l && /* @__PURE__ */ d("div", {
|
|
76
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
77
|
-
children: [
|
|
78
|
-
l.caption && /* @__PURE__ */ u(o, {
|
|
79
|
-
variant: "caption",
|
|
80
|
-
color: "muted",
|
|
81
|
-
children: l.caption
|
|
82
|
-
}),
|
|
83
|
-
/* @__PURE__ */ d("div", {
|
|
84
|
-
className: "ttw:flex ttw:items-center ttw:gap-2.5",
|
|
85
|
-
children: [
|
|
86
|
-
/* @__PURE__ */ u(t, {
|
|
87
|
-
type: "text",
|
|
88
|
-
inputMode: "numeric",
|
|
89
|
-
value: l.value,
|
|
90
|
-
onChange: (e) => s(e.target.value),
|
|
91
|
-
onKeyDown: p,
|
|
92
|
-
disabled: l.inputDisabled,
|
|
93
|
-
className: "ttw:text-right ttw:w-full ttw:p-1.5 ttw:max-w-56",
|
|
94
|
-
placeholder: i.reminderPlaceholder,
|
|
95
|
-
"aria-label": i.reminderBeforeDueInputLabel,
|
|
96
|
-
"aria-invalid": !!l.error,
|
|
97
|
-
"aria-describedby": l.error ? f : void 0
|
|
98
|
-
}),
|
|
99
|
-
/* @__PURE__ */ u(o, {
|
|
100
|
-
variant: "body2",
|
|
101
|
-
children: l.unitLabel
|
|
102
|
-
}),
|
|
103
|
-
/* @__PURE__ */ u(e, {
|
|
104
|
-
type: "button",
|
|
105
|
-
variant: "secondary",
|
|
106
|
-
className: "ttw:hover:brightness-95 ttw:text-secondary-foreground ttw:text-xs",
|
|
107
|
-
disabled: l.saveDisabled,
|
|
108
|
-
loading: l.isSaving,
|
|
109
|
-
onClick: c,
|
|
110
|
-
children: i.reminderSaveButton
|
|
5
|
+
function g({ idPrefix: l, view: f, onOpenChange: g, onChange: v, onSave: y, labels: b }) {
|
|
6
|
+
let x = {
|
|
7
|
+
...p,
|
|
8
|
+
...b
|
|
9
|
+
}, S = {
|
|
10
|
+
to: `${l}-recipients-to`,
|
|
11
|
+
cc: `${l}-recipients-cc`,
|
|
12
|
+
bcc: `${l}-recipients-bcc`,
|
|
13
|
+
subject: `${l}-subject`,
|
|
14
|
+
message: `${l}-message`
|
|
15
|
+
};
|
|
16
|
+
return /* @__PURE__ */ m(t, {
|
|
17
|
+
open: f.open,
|
|
18
|
+
onOpenChange: g,
|
|
19
|
+
children: /* @__PURE__ */ h(n, {
|
|
20
|
+
className: "ttw:gap-0 ttw:p-0 ttw:max-w-150 ttw:sm:max-w-150",
|
|
21
|
+
labels: { close: x.recurrenceEmailClose },
|
|
22
|
+
children: [/* @__PURE__ */ h(a, {
|
|
23
|
+
className: "ttw:border-b ttw:border-border ttw:p-6",
|
|
24
|
+
children: [/* @__PURE__ */ m(o, { children: x.recurrenceEmailTitle }), /* @__PURE__ */ m(r, {
|
|
25
|
+
className: "ttw:text-xs",
|
|
26
|
+
children: x.recurrenceEmailDescription
|
|
27
|
+
})]
|
|
28
|
+
}), f.ready && /* @__PURE__ */ h("form", {
|
|
29
|
+
onSubmit: (e) => {
|
|
30
|
+
e.preventDefault(), e.stopPropagation(), f.saveDisabled || y();
|
|
31
|
+
},
|
|
32
|
+
children: [/* @__PURE__ */ h("div", {
|
|
33
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:p-6",
|
|
34
|
+
children: [
|
|
35
|
+
/* @__PURE__ */ m(_, {
|
|
36
|
+
label: x.recurrenceEmailTo,
|
|
37
|
+
htmlFor: S.to,
|
|
38
|
+
children: /* @__PURE__ */ m(c, {
|
|
39
|
+
id: S.to,
|
|
40
|
+
value: f.to,
|
|
41
|
+
onChange: (e) => v("to", e),
|
|
42
|
+
inputValue: f.toInput,
|
|
43
|
+
onInputValueChange: (e) => v("toInput", e),
|
|
44
|
+
removeTagLabel: f.removeRecipientLabel,
|
|
45
|
+
placeholder: f.showToPlaceholder ? x.recurrenceEmailRecipientPlaceholder : void 0
|
|
111
46
|
})
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
children: [/* @__PURE__ */ u(e, {
|
|
182
|
-
type: "button",
|
|
183
|
-
variant: "ghost",
|
|
184
|
-
className: "ttw:text-xs",
|
|
185
|
-
disabled: y.clearDisabled,
|
|
186
|
-
onClick: h,
|
|
187
|
-
children: i.reminderClearButton
|
|
188
|
-
}), /* @__PURE__ */ u(e, {
|
|
189
|
-
type: "button",
|
|
190
|
-
variant: "secondary",
|
|
191
|
-
className: "ttw:hover:brightness-95 ttw:text-secondary-foreground ttw:text-xs",
|
|
192
|
-
disabled: y.saveDisabled,
|
|
193
|
-
loading: y.isSaving,
|
|
194
|
-
onClick: v,
|
|
195
|
-
children: i.reminderSaveButton
|
|
196
|
-
})]
|
|
197
|
-
})
|
|
198
|
-
]
|
|
199
|
-
})
|
|
200
|
-
]
|
|
47
|
+
}),
|
|
48
|
+
/* @__PURE__ */ m(_, {
|
|
49
|
+
label: x.recurrenceEmailCc,
|
|
50
|
+
htmlFor: S.cc,
|
|
51
|
+
children: /* @__PURE__ */ m(c, {
|
|
52
|
+
id: S.cc,
|
|
53
|
+
value: f.cc,
|
|
54
|
+
onChange: (e) => v("cc", e),
|
|
55
|
+
inputValue: f.ccInput,
|
|
56
|
+
onInputValueChange: (e) => v("ccInput", e),
|
|
57
|
+
removeTagLabel: f.removeRecipientLabel
|
|
58
|
+
})
|
|
59
|
+
}),
|
|
60
|
+
/* @__PURE__ */ m(_, {
|
|
61
|
+
label: x.recurrenceEmailBcc,
|
|
62
|
+
htmlFor: S.bcc,
|
|
63
|
+
children: /* @__PURE__ */ m(c, {
|
|
64
|
+
id: S.bcc,
|
|
65
|
+
value: f.bcc,
|
|
66
|
+
onChange: (e) => v("bcc", e),
|
|
67
|
+
inputValue: f.bccInput,
|
|
68
|
+
onInputValueChange: (e) => v("bccInput", e),
|
|
69
|
+
removeTagLabel: f.removeRecipientLabel
|
|
70
|
+
})
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ m(_, {
|
|
73
|
+
label: x.recurrenceEmailSubject,
|
|
74
|
+
htmlFor: S.subject,
|
|
75
|
+
children: /* @__PURE__ */ m(s, {
|
|
76
|
+
id: S.subject,
|
|
77
|
+
value: f.subject,
|
|
78
|
+
onChange: (e) => v("subject", e.target.value)
|
|
79
|
+
})
|
|
80
|
+
}),
|
|
81
|
+
/* @__PURE__ */ m(_, {
|
|
82
|
+
label: x.recurrenceEmailMessage,
|
|
83
|
+
htmlFor: S.message,
|
|
84
|
+
alignTop: !0,
|
|
85
|
+
children: /* @__PURE__ */ m(u, {
|
|
86
|
+
id: S.message,
|
|
87
|
+
placeholder: x.recurrenceEmailMessagePlaceholder,
|
|
88
|
+
value: f.message,
|
|
89
|
+
onChange: (e) => v("message", e.target.value)
|
|
90
|
+
})
|
|
91
|
+
}),
|
|
92
|
+
/* @__PURE__ */ m(d, {
|
|
93
|
+
variant: "caption",
|
|
94
|
+
color: "muted",
|
|
95
|
+
className: "ttw:pl-20",
|
|
96
|
+
children: x.recurrenceEmailFootnote
|
|
97
|
+
})
|
|
98
|
+
]
|
|
99
|
+
}), /* @__PURE__ */ h(i, {
|
|
100
|
+
className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
|
|
101
|
+
children: [/* @__PURE__ */ m(e, {
|
|
102
|
+
type: "button",
|
|
103
|
+
variant: "outline",
|
|
104
|
+
className: "ttw:flex-1",
|
|
105
|
+
onClick: () => g(!1),
|
|
106
|
+
children: x.recurrenceEmailCancel
|
|
107
|
+
}), /* @__PURE__ */ m(e, {
|
|
108
|
+
type: "submit",
|
|
109
|
+
className: "ttw:flex-1",
|
|
110
|
+
disabled: f.saveDisabled,
|
|
111
|
+
children: x.recurrenceEmailSave
|
|
112
|
+
})]
|
|
113
|
+
})]
|
|
114
|
+
})]
|
|
115
|
+
})
|
|
201
116
|
});
|
|
202
117
|
}
|
|
203
|
-
function
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
className: "ttw:flex
|
|
212
|
-
children:
|
|
213
|
-
|
|
214
|
-
disabled: t.toggleDisabled,
|
|
215
|
-
onCheckedChange: n,
|
|
216
|
-
"aria-label": b.remindersToggleLabel
|
|
217
|
-
}), /* @__PURE__ */ u(o, {
|
|
218
|
-
variant: "body2",
|
|
219
|
-
children: b.remindersDescription
|
|
220
|
-
})]
|
|
221
|
-
}), x && /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ d("div", {
|
|
222
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:w-full ttw:xl:flex-row",
|
|
223
|
-
children: [x.beforeDue && /* @__PURE__ */ u(v, {
|
|
224
|
-
idPrefix: `${e}-before`,
|
|
225
|
-
view: x.beforeDue,
|
|
226
|
-
labels: b,
|
|
227
|
-
onSelect: r,
|
|
228
|
-
onInputChange: c,
|
|
229
|
-
onSave: f
|
|
230
|
-
}), /* @__PURE__ */ u(y, {
|
|
231
|
-
idPrefix: `${e}-overdue`,
|
|
232
|
-
view: x.overdue,
|
|
233
|
-
labels: b,
|
|
234
|
-
onSelect: i,
|
|
235
|
-
onTermChange: p,
|
|
236
|
-
onAddTerm: m,
|
|
237
|
-
onClear: h,
|
|
238
|
-
onSave: g
|
|
239
|
-
})]
|
|
240
|
-
}), /* @__PURE__ */ u(o, {
|
|
241
|
-
variant: "body2",
|
|
242
|
-
color: "muted",
|
|
243
|
-
className: "ttw:font-medium",
|
|
244
|
-
children: b.remindersLibraryNote
|
|
245
|
-
})] })]
|
|
118
|
+
function _({ label: e, htmlFor: t, alignTop: n = !1, children: r }) {
|
|
119
|
+
return /* @__PURE__ */ h("div", {
|
|
120
|
+
className: f("ttw:flex ttw:gap-4", n ? "ttw:items-start" : "ttw:items-center"),
|
|
121
|
+
children: [/* @__PURE__ */ m(l, {
|
|
122
|
+
htmlFor: t,
|
|
123
|
+
className: f("ttw:w-16 ttw:shrink-0 ttw:font-normal ttw:text-muted-foreground", n && "ttw:pt-2"),
|
|
124
|
+
children: e
|
|
125
|
+
}), /* @__PURE__ */ m("div", {
|
|
126
|
+
className: "ttw:flex-1",
|
|
127
|
+
children: r
|
|
128
|
+
})]
|
|
246
129
|
});
|
|
247
130
|
}
|
|
248
|
-
export {
|
|
131
|
+
export { g as ReceivableRecurrenceEmailDialog, g as default };
|
|
@@ -1,60 +1,27 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import { RECEIVABLE_STATUS_CARDS_LABELS_EN as r } from "./index14.js";
|
|
5
|
-
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
1
|
+
import { Typography as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
+
import { FileIcon as r, MailXIcon as i, SendIcon as a } from "lucide-react";
|
|
6
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js
|
|
7
|
-
var o =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}) : /* @__PURE__ */ a("div", {
|
|
26
|
-
className: "ttw:mb-2 ttw:flex ttw:gap-2 ttw:overflow-x-auto ttw:[scrollbar-width:none] ttw:[&::-webkit-scrollbar]:hidden",
|
|
27
|
-
children: [/* @__PURE__ */ a(s, {
|
|
28
|
-
selected: t.all.selected,
|
|
29
|
-
onClick: () => c(t.all.value),
|
|
30
|
-
children: [/* @__PURE__ */ i("span", {
|
|
31
|
-
className: "ttw:text-xs ttw:font-medium ttw:text-foreground",
|
|
32
|
-
children: u.all
|
|
33
|
-
}), /* @__PURE__ */ i("span", {
|
|
34
|
-
className: "ttw:text-2xl ttw:font-medium ttw:leading-8 ttw:tabular-nums ttw:text-foreground",
|
|
35
|
-
children: t.all.countLabel
|
|
5
|
+
var o = {
|
|
6
|
+
issue_and_send: a,
|
|
7
|
+
issue: i,
|
|
8
|
+
draft: r
|
|
9
|
+
};
|
|
10
|
+
function s({ option: r }) {
|
|
11
|
+
let i = o[r.value];
|
|
12
|
+
return /* @__PURE__ */ n("div", {
|
|
13
|
+
className: "ttw:flex ttw:items-center ttw:gap-3",
|
|
14
|
+
children: [/* @__PURE__ */ t(i, { className: "ttw:size-5 ttw:shrink-0 ttw:text-muted-foreground" }), /* @__PURE__ */ n("div", {
|
|
15
|
+
className: "ttw:flex ttw:flex-col ttw:text-left",
|
|
16
|
+
children: [/* @__PURE__ */ t(e, {
|
|
17
|
+
variant: "body2",
|
|
18
|
+
children: r.title
|
|
19
|
+
}), /* @__PURE__ */ t(e, {
|
|
20
|
+
variant: "body2",
|
|
21
|
+
color: "muted",
|
|
22
|
+
children: r.description
|
|
36
23
|
})]
|
|
37
|
-
})
|
|
38
|
-
selected: e.selected,
|
|
39
|
-
onClick: () => c(e.value),
|
|
40
|
-
children: /* @__PURE__ */ a("div", {
|
|
41
|
-
className: "ttw:flex ttw:flex-col",
|
|
42
|
-
children: [/* @__PURE__ */ a("div", {
|
|
43
|
-
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-2",
|
|
44
|
-
children: [/* @__PURE__ */ i(n, {
|
|
45
|
-
label: e.statusLabel,
|
|
46
|
-
status: e.value,
|
|
47
|
-
variant: "filled"
|
|
48
|
-
}), /* @__PURE__ */ i("span", {
|
|
49
|
-
className: "ttw:text-xs ttw:font-medium ttw:leading-4.5 ttw:tabular-nums ttw:text-foreground",
|
|
50
|
-
children: e.countLabel
|
|
51
|
-
})]
|
|
52
|
-
}), /* @__PURE__ */ i("span", {
|
|
53
|
-
className: "ttw:overflow-hidden ttw:text-ellipsis ttw:whitespace-nowrap ttw:text-2xl ttw:font-medium ttw:leading-8 ttw:tabular-nums ttw:text-foreground",
|
|
54
|
-
children: e.amountLabel
|
|
55
|
-
})]
|
|
56
|
-
})
|
|
57
|
-
}, e.value))]
|
|
24
|
+
})]
|
|
58
25
|
});
|
|
59
26
|
}
|
|
60
|
-
export {
|
|
27
|
+
export { s as CreationModeOption };
|