@tesouro/embedded-components-react 0.11.235 → 0.11.237
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 +2 -2
- package/dist/index.css +12 -0
- package/dist/index.d.ts +24 -0
- package/dist/lib/ReceivablesWidget.d.ts +24 -0
- package/dist/lib/WidgetSuite.d.ts +24 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index.js +6 -6
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index31.js +198 -118
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index32.js +76 -194
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index33.js +67 -75
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index34.js +111 -69
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index35.js +459 -108
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index36.js +101 -449
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index37.js +9 -117
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index38.js +85 -8
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index39.js +67 -73
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index40.js +246 -71
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index41.js +40 -251
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index42.js +237 -38
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index43.js +21 -244
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index44.js +529 -21
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index45.js +4 -530
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index46.js +44 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index47.js +242 -41
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index48.js +3 -245
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index49.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index50.js +63 -4
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index51.js +1 -64
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/feature/dist/index5.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/lib/BillPayWidget/BillsTab.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/feature/dist/mocks/billPay.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/ReceivablesWidget.js +386 -354
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/labels.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivableActions.js +1 -1
- 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 +260 -258
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/lib/ReceivablesWidget/useReceivablesWidget.js +219 -179
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +26 -25
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index19.js +15 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index32.js +31 -40
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index33.js +18 -17
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index34.js +40 -8
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index35.js +30 -63
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index36.js +463 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index37.js +15 -29
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index38.js +8 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index39.js +18 -18
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index40.js +19 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index41.js +15 -66
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index42.js +66 -391
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +148 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +173 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index45.js +3 -71
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index46.js +37 -432
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index47.js +66 -188
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index48.js +455 -22
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index49.js +191 -5
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +23 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +5 -265
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index53.js +261 -125
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index54.js +2 -27
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js +122 -230
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js +27 -3
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +216 -224
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index58.js +3 -30
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index59.js +228 -168
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index60.js +29 -21
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index61.js +152 -109
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index62.js +22 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index63.js +140 -43
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index64.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index65.js +47 -0
- package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/document-preview.js +1 -0
- 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/feature/dist/lib/document/documentPreview.js +122 -0
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/feature/dist/index52.js +0 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index52.js +0 -2
|
@@ -1,239 +1,131 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
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 "./index18.js";
|
|
3
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
5
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index55.js
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
let N = {
|
|
5
|
+
function g({ idPrefix: l, view: f, onOpenChange: g, onChange: v, onSave: y, labels: b }) {
|
|
6
|
+
let x = {
|
|
9
7
|
...p,
|
|
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
|
-
className: "ttw:absolute ttw:top-full ttw:left-0 ttw:mt-1 ttw:text-nowrap",
|
|
50
|
-
errors: [{ message: F.maxOccurrencesError }]
|
|
51
|
-
})]
|
|
52
|
-
}), /* @__PURE__ */ g(i, {
|
|
53
|
-
htmlFor: P.occurrences,
|
|
54
|
-
className: v,
|
|
55
|
-
children: e.unitLabel
|
|
56
|
-
})] });
|
|
57
|
-
return /* @__PURE__ */ _("section", {
|
|
58
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
59
|
-
children: [
|
|
60
|
-
/* @__PURE__ */ _("div", {
|
|
61
|
-
className: "ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2.5",
|
|
62
|
-
children: [
|
|
63
|
-
/* @__PURE__ */ g(i, {
|
|
64
|
-
htmlFor: P.frequency,
|
|
65
|
-
className: v,
|
|
66
|
-
children: N.recurrenceRepeatLabel
|
|
67
|
-
}),
|
|
68
|
-
/* @__PURE__ */ _(a, {
|
|
69
|
-
value: b.frequency.value,
|
|
70
|
-
disabled: x || b.frequency.disabled,
|
|
71
|
-
onValueChange: S,
|
|
72
|
-
children: [/* @__PURE__ */ g(l, {
|
|
73
|
-
id: P.frequency,
|
|
74
|
-
className: "ttw:w-31",
|
|
75
|
-
children: /* @__PURE__ */ g(u, {})
|
|
76
|
-
}), /* @__PURE__ */ g(o, { children: b.frequency.options.map((e) => /* @__PURE__ */ g(s, {
|
|
77
|
-
value: e.value,
|
|
78
|
-
children: e.label
|
|
79
|
-
}, e.value)) })]
|
|
80
|
-
}),
|
|
81
|
-
b.monthDay && /* @__PURE__ */ _(h, { children: [
|
|
82
|
-
/* @__PURE__ */ g(i, {
|
|
83
|
-
htmlFor: P.monthDay,
|
|
84
|
-
className: v,
|
|
85
|
-
children: N.recurrenceMonthDayLead
|
|
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
|
|
46
|
+
})
|
|
86
47
|
}),
|
|
87
|
-
/* @__PURE__ */ _
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
value: e.value,
|
|
99
|
-
children: e.label
|
|
100
|
-
}, e.value)),
|
|
101
|
-
/* @__PURE__ */ g(c, {}),
|
|
102
|
-
b.monthDay.dayOptions.map((e) => /* @__PURE__ */ g(s, {
|
|
103
|
-
value: e.value,
|
|
104
|
-
children: e.label
|
|
105
|
-
}, e.value))
|
|
106
|
-
] })]
|
|
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
|
+
})
|
|
107
59
|
}),
|
|
108
|
-
/* @__PURE__ */
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
component: "span",
|
|
120
|
-
children: N.recurrenceWeekdayLead
|
|
121
|
-
}), /* @__PURE__ */ g("div", {
|
|
122
|
-
className: f("ttw:flex ttw:h-8 ttw:w-56 ttw:rounded-md ttw:border ttw:border-border", b.weekday.invalid && "ttw:border-destructive", b.weekday.disabled && "ttw:opacity-50"),
|
|
123
|
-
children: b.weekday.options.map((e, t, n) => /* @__PURE__ */ g("button", {
|
|
124
|
-
type: "button",
|
|
125
|
-
disabled: x || b.weekday?.disabled,
|
|
126
|
-
"aria-pressed": e.pressed,
|
|
127
|
-
onClick: () => w(e.value),
|
|
128
|
-
className: f("ttw:flex ttw:flex-1 ttw:items-center ttw:justify-center ttw:text-sm ttw:font-medium ttw:transition-colors ttw:hover:cursor-pointer ttw:hover:bg-muted ttw:disabled:pointer-events-none", e.pressed && "ttw:bg-muted", t < n.length - 1 && "ttw:border-r ttw:border-border"),
|
|
129
|
-
children: e.label
|
|
130
|
-
}, e.value))
|
|
131
|
-
})] })
|
|
132
|
-
]
|
|
133
|
-
}),
|
|
134
|
-
F && /* @__PURE__ */ _("div", {
|
|
135
|
-
className: f("ttw:flex ttw:flex-wrap ttw:items-center ttw:gap-2.5", F.maxOccurrencesError && "ttw:pb-6"),
|
|
136
|
-
children: [
|
|
137
|
-
/* @__PURE__ */ g(i, {
|
|
138
|
-
htmlFor: P.startDate,
|
|
139
|
-
className: v,
|
|
140
|
-
children: N.recurrenceStartOnLabel
|
|
141
|
-
}),
|
|
142
|
-
L(P.startDate, F.start, T),
|
|
143
|
-
F.end.kind === "choice" ? /* @__PURE__ */ _(h, { children: [
|
|
144
|
-
/* @__PURE__ */ g(i, {
|
|
145
|
-
htmlFor: P.endMode,
|
|
146
|
-
className: v,
|
|
147
|
-
children: N.recurrenceEndChoiceLead
|
|
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
|
+
})
|
|
148
71
|
}),
|
|
149
|
-
/* @__PURE__ */ _
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
children: /* @__PURE__ */ g(u, {})
|
|
158
|
-
}), /* @__PURE__ */ g(o, { children: F.end.mode.options.map((e) => /* @__PURE__ */ g(s, {
|
|
159
|
-
value: e.value,
|
|
160
|
-
children: e.label
|
|
161
|
-
}, e.value)) })]
|
|
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
|
+
})
|
|
162
80
|
}),
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
children: b.lastDayCaption
|
|
177
|
-
}),
|
|
178
|
-
I && /* @__PURE__ */ _("div", {
|
|
179
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2 ttw:pt-1.5",
|
|
180
|
-
children: [
|
|
181
|
-
/* @__PURE__ */ g(i, {
|
|
182
|
-
htmlFor: P.creationMode,
|
|
183
|
-
children: /* @__PURE__ */ _(d, {
|
|
184
|
-
variant: "body2",
|
|
185
|
-
component: "span",
|
|
186
|
-
className: "ttw:block",
|
|
187
|
-
children: [
|
|
188
|
-
N.recurrenceCreationModeQuestion,
|
|
189
|
-
" ",
|
|
190
|
-
/* @__PURE__ */ g(d, {
|
|
191
|
-
variant: "body2",
|
|
192
|
-
component: "span",
|
|
193
|
-
color: "muted",
|
|
194
|
-
children: N.recurrenceCreationModeHint
|
|
195
|
-
})
|
|
196
|
-
]
|
|
197
|
-
})
|
|
198
|
-
}),
|
|
199
|
-
/* @__PURE__ */ _(a, {
|
|
200
|
-
value: I.value,
|
|
201
|
-
disabled: x,
|
|
202
|
-
onValueChange: (e) => k(e),
|
|
203
|
-
children: [/* @__PURE__ */ g(l, {
|
|
204
|
-
id: P.creationMode,
|
|
205
|
-
"aria-invalid": !!I.emailError || void 0,
|
|
206
|
-
"aria-describedby": I.emailError ? P.emailError : void 0,
|
|
207
|
-
className: "ttw:h-auto! ttw:w-full ttw:py-2.5 ttw:*:data-[slot=select-value]:line-clamp-none",
|
|
208
|
-
children: /* @__PURE__ */ g(u, {})
|
|
209
|
-
}), /* @__PURE__ */ g(o, { children: I.options.map((e) => /* @__PURE__ */ g(s, {
|
|
210
|
-
value: e.value,
|
|
211
|
-
children: /* @__PURE__ */ g(m, { option: e })
|
|
212
|
-
}, e.value)) })]
|
|
213
|
-
}),
|
|
214
|
-
I.emailSummary !== void 0 && /* @__PURE__ */ _("div", {
|
|
215
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
216
|
-
children: [/* @__PURE__ */ g(d, {
|
|
217
|
-
variant: "body2",
|
|
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",
|
|
218
94
|
color: "muted",
|
|
219
|
-
className: "ttw:
|
|
220
|
-
children:
|
|
221
|
-
})
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
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
|
+
})
|
|
116
|
+
});
|
|
117
|
+
}
|
|
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
|
+
})]
|
|
237
129
|
});
|
|
238
130
|
}
|
|
239
|
-
export {
|
|
131
|
+
export { g as ReceivableRecurrenceEmailDialog, g as default };
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
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";
|
|
4
|
+
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index56.js
|
|
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
|
|
23
|
+
})]
|
|
24
|
+
})]
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
export { s as CreationModeOption };
|