@tesouro/embedded-components-react 0.5.211 → 0.5.213

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 (33) hide show
  1. package/dist/index.d.ts +16 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/ReceivablesWidget.d.ts +16 -0
  4. package/dist/lib/ReceivablesWidget.js +1 -1
  5. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index.js +1 -1
  6. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index10.js +113 -109
  7. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index11.js +416 -132
  8. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index12.js +113 -211
  9. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index13.js +154 -37
  10. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index14.js +193 -135
  11. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index15.js +32 -37
  12. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index16.js +150 -58
  13. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index17.js +35 -89
  14. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index18.js +58 -116
  15. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index19.js +96 -47
  16. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index20.js +103 -347
  17. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index21.js +364 -64
  18. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index22.js +66 -106
  19. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index23.js +105 -275
  20. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index24.js +288 -0
  21. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index6.js +76 -61
  22. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/feature/dist/index9.js +48 -422
  23. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index.js +5 -5
  24. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index22.js +38 -62
  25. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js +61 -391
  26. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index24.js +457 -89
  27. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index25.js +91 -234
  28. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index26.js +234 -78
  29. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index27.js +80 -331
  30. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index28.js +344 -0
  31. package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index3.js +10 -0
  32. package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js +1 -1
  33. package/package.json +1 -1
@@ -1,402 +1,72 @@
1
- import { Alert as e, AlertDescription as t, Button as n, Checkbox as r, Field as i, FieldContent as a, FieldLabel as o, Input as s, InputGroup as c, InputGroupAddon as l, InputGroupInput as u, Label as d, RadioGroup as f, RadioGroupItem as p, Select as m, SelectContent as h, SelectItem as g, SelectTrigger as _, SelectValue as v, Sheet as y, SheetContent as b, SheetDescription as x, SheetFooter as S, SheetHeader as C, SheetTitle as w, Spinner as T, Typography as E, cn as D } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
- import { RECEIVABLE_FORM_SHEET_LABELS_EN as O } from "./index3.js";
3
- import { ReceivableNotesSection as k } from "./index22.js";
4
- import { useId as ee } from "react";
5
- import { jsx as A, jsxs as j } from "react/jsx-runtime";
6
- import { MinusIcon as M, PlusIcon as N, Trash2Icon as P } from "lucide-react";
1
+ import { Field as e, FieldContent as t, FieldDescription as n, FieldError as r, FieldLabel as i, Textarea as a, Typography as o } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
2
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
7
3
  //#region ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index23.js
8
- var F = "__none__", I = "__manage__";
9
- function L({ message: e }) {
10
- return e ? /* @__PURE__ */ A("p", {
11
- className: "ttw:text-sm ttw:text-destructive",
12
- children: e
13
- }) : null;
4
+ function l({ id: l, value: u, error: d, disabled: f, label: p, optionalSuffix: m, placeholder: h, description: g, onChange: _ }) {
5
+ return /* @__PURE__ */ s(e, { children: /* @__PURE__ */ c(t, { children: [
6
+ /* @__PURE__ */ c(i, {
7
+ htmlFor: l,
8
+ className: "ttw:text-nowrap",
9
+ children: [p, /* @__PURE__ */ s(o, {
10
+ variant: "body2",
11
+ component: "span",
12
+ color: "muted",
13
+ className: "ttw:leading-snug",
14
+ children: m
15
+ })]
16
+ }),
17
+ /* @__PURE__ */ s(a, {
18
+ id: l,
19
+ value: u,
20
+ disabled: f,
21
+ placeholder: h,
22
+ className: "ttw:h-26 ttw:resize-none",
23
+ "aria-invalid": !!d,
24
+ onChange: (e) => _(e.target.value)
25
+ }),
26
+ /* @__PURE__ */ s(n, { children: g }),
27
+ /* @__PURE__ */ s(r, { errors: d ? [{ message: d }] : [] })
28
+ ] }) });
14
29
  }
15
- function te({ formId: e, lineItem: t, errors: i, controls: a, focusOnMount: o, canRemove: s, unitOptions: d, currencySymbol: f, labels: p, renderProductSelector: y, onChange: b, onCommit: x, onQuantityStep: S, onManageUnits: C, onRemove: w }) {
16
- let T = `${e}-line-${t.id}`;
17
- return /* @__PURE__ */ j("li", {
18
- className: "ttw:flex ttw:h-9 ttw:items-center ttw:gap-2.5",
30
+ function u({ idPrefix: e, openingNote: t, closingNote: n, openingNoteError: r, closingNoteError: i, disabled: a, onOpeningNoteChange: u, onClosingNoteChange: d, labels: f }) {
31
+ return /* @__PURE__ */ c("div", {
32
+ className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
19
33
  children: [
20
- /* @__PURE__ */ A("div", {
21
- className: "ttw:min-w-30 ttw:flex-1",
22
- children: y(t, {
23
- inputId: `${T}-name`,
24
- invalid: !!i?.name,
25
- focusOnMount: o
26
- })
27
- }),
28
- /* @__PURE__ */ j("div", {
29
- className: D("ttw:flex ttw:h-9 ttw:w-26 ttw:min-w-26 ttw:items-center ttw:rounded-md ttw:border ttw:border-input ttw:shadow-xs", i?.quantity && "ttw:border-destructive"),
30
- children: [
31
- /* @__PURE__ */ A("button", {
32
- type: "button",
33
- "aria-label": p.decreaseQuantityButton,
34
- disabled: a ? !a.canDecreaseQuantity : !1,
35
- className: "ttw:flex ttw:size-6 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:hover:bg-accent ttw:disabled:pointer-events-none ttw:disabled:opacity-50",
36
- onClick: () => S(-1),
37
- children: /* @__PURE__ */ A(M, { className: "ttw:size-3.5" })
38
- }),
39
- /* @__PURE__ */ A("input", {
40
- id: `${T}-quantity`,
41
- "aria-label": p.quantityLabel,
42
- "aria-invalid": !!i?.quantity || void 0,
43
- type: "text",
44
- inputMode: "decimal",
45
- className: "ttw:h-full ttw:w-full ttw:min-w-0 ttw:bg-transparent ttw:px-0 ttw:text-center ttw:text-sm ttw:outline-none",
46
- value: t.quantity,
47
- onChange: (e) => b({ quantity: e.target.value }),
48
- onBlur: () => x("quantity")
49
- }),
50
- /* @__PURE__ */ A("button", {
51
- type: "button",
52
- "aria-label": p.increaseQuantityButton,
53
- disabled: a ? !a.canIncreaseQuantity : !1,
54
- className: "ttw:flex ttw:size-6 ttw:shrink-0 ttw:items-center ttw:justify-center ttw:rounded-sm ttw:text-muted-foreground ttw:hover:bg-accent ttw:disabled:pointer-events-none ttw:disabled:opacity-50",
55
- onClick: () => S(1),
56
- children: /* @__PURE__ */ A(N, { className: "ttw:size-3.5" })
57
- })
58
- ]
59
- }),
60
- /* @__PURE__ */ j(m, {
61
- value: t.unit || F,
62
- onValueChange: (e) => {
63
- if (e === I) {
64
- C?.();
65
- return;
66
- }
67
- b({ unit: e === F ? "" : e });
68
- },
69
- children: [/* @__PURE__ */ A(_, {
70
- id: `${T}-unit`,
71
- "aria-label": p.unitLabel,
72
- "aria-invalid": !!i?.measureUnit || void 0,
73
- className: "ttw:w-22",
74
- children: /* @__PURE__ */ A(v, {
75
- className: "ttw:truncate",
76
- placeholder: p.unitPlaceholder
77
- })
78
- }), /* @__PURE__ */ j(h, { children: [
79
- C && /* @__PURE__ */ j(g, {
80
- value: I,
81
- className: "ttw:font-semibold ttw:text-primary ttw:hover:text-primary ttw:focus:text-primary",
82
- children: [/* @__PURE__ */ A(N, { className: "ttw:text-primary" }), p.manageUnitsOption]
83
- }),
84
- /* @__PURE__ */ A(g, {
85
- value: F,
86
- children: p.unitNone
87
- }),
88
- d.map((e) => /* @__PURE__ */ A(g, {
89
- value: e.value,
90
- children: e.label
91
- }, e.value))
92
- ] })]
93
- }),
94
- /* @__PURE__ */ j(c, {
95
- className: "ttw:w-full ttw:max-w-41 ttw:min-w-29",
96
- children: [/* @__PURE__ */ A(l, {
97
- align: "inline-start",
98
- children: f
99
- }), /* @__PURE__ */ A(u, {
100
- id: `${T}-price`,
101
- "aria-label": p.priceLabel,
102
- "aria-invalid": !!i?.price || void 0,
103
- "data-has-start-addon": !0,
104
- type: "text",
105
- inputMode: "decimal",
106
- className: "ttw:text-right",
107
- value: t.price,
108
- onChange: (e) => b({ price: e.target.value }),
109
- onBlur: () => x("price")
34
+ /* @__PURE__ */ c("div", {
35
+ className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
36
+ children: [/* @__PURE__ */ s(o, {
37
+ variant: "h4",
38
+ children: f.notesHeading
39
+ }), /* @__PURE__ */ s(o, {
40
+ variant: "body2",
41
+ color: "muted",
42
+ className: "ttw:font-medium",
43
+ children: f.notesDescription
110
44
  })]
111
45
  }),
112
- /* @__PURE__ */ A("div", {
113
- className: "ttw:flex ttw:w-12 ttw:min-w-12 ttw:items-center ttw:justify-center",
114
- children: /* @__PURE__ */ A(r, {
115
- id: `${T}-taxable`,
116
- "aria-label": p.taxableLabel,
117
- checked: t.taxable,
118
- onCheckedChange: (e) => b({ taxable: e === !0 })
119
- })
46
+ /* @__PURE__ */ s(l, {
47
+ id: `${e}-opening-note`,
48
+ value: t,
49
+ error: r,
50
+ disabled: a,
51
+ label: f.openingNoteLabel,
52
+ optionalSuffix: f.optionalSuffix,
53
+ placeholder: f.openingNotePlaceholder,
54
+ description: f.openingNoteDescription,
55
+ onChange: u
120
56
  }),
121
- s && /* @__PURE__ */ A(n, {
122
- type: "button",
123
- variant: "ghost",
124
- size: "sm",
125
- "aria-label": p.removeLineItemButton,
126
- className: "ttw:w-10 ttw:rounded-none ttw:border-l ttw:border-border ttw:pl-4 ttw:text-muted-foreground ttw:hover:bg-transparent ttw:hover:text-destructive ttw:has-[>svg]:pr-0",
127
- onClick: w,
128
- children: /* @__PURE__ */ A(P, {})
57
+ /* @__PURE__ */ s(l, {
58
+ id: `${e}-closing-note`,
59
+ value: n,
60
+ error: i,
61
+ disabled: a,
62
+ label: f.closingNoteLabel,
63
+ optionalSuffix: f.optionalSuffix,
64
+ placeholder: f.closingNotePlaceholder,
65
+ description: f.closingNoteDescription,
66
+ onChange: d
129
67
  })
130
68
  ]
131
69
  });
132
70
  }
133
- function R({ open: r, onOpenChange: M, mode: P = "create", values: F, errors: I, currencyOptions: R, unitOptions: ne, currencySymbol: re, lineItemControls: z, autoFocusLineItemId: B, lineItemsLoading: V, inProgress: H, customerSelector: U, renderProductSelector: W, onChange: G, onLineItemChange: K, onLineItemCommit: q, onLineItemQuantityStep: J, onTaxRateCommit: Y, onManageUnits: ie, onAddLineItem: ae, onRemoveLineItem: oe, showDueDateField: X, billingSection: se, remindersSection: ce, bankAccountSection: le, attachmentsSection: ue, cancelDisabled: de, saveDisabled: fe, onSubmit: pe, onCancel: me, labels: he }) {
134
- let Z = {
135
- ...O,
136
- ...he
137
- }, Q = ee(), $ = P === "edit", ge = D("ttw:grid ttw:gap-4", $ && X ? "ttw:grid-cols-3" : "ttw:grid-cols-2");
138
- return /* @__PURE__ */ A(y, {
139
- open: r,
140
- onOpenChange: M,
141
- children: /* @__PURE__ */ j(b, {
142
- className: "ttw:w-180 ttw:overflow-y-auto ttw:sm:max-w-180",
143
- children: [
144
- /* @__PURE__ */ j(C, { children: [/* @__PURE__ */ A(w, { children: P === "edit" ? Z.editTitle : Z.createTitle }), /* @__PURE__ */ A(x, {
145
- className: "ttw:sr-only",
146
- children: Z.hiddenDescription
147
- })] }),
148
- /* @__PURE__ */ A("form", {
149
- id: Q,
150
- onSubmit: (e) => {
151
- e.preventDefault(), e.stopPropagation(), pe();
152
- },
153
- children: /* @__PURE__ */ j("div", {
154
- className: "ttw:flex ttw:flex-col ttw:gap-5 ttw:px-6 ttw:pb-6",
155
- children: [
156
- I?.form && /* @__PURE__ */ A("p", {
157
- role: "alert",
158
- className: "ttw:rounded-md ttw:bg-destructive/10 ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-destructive",
159
- children: I.form
160
- }),
161
- /* @__PURE__ */ j("div", {
162
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
163
- children: [
164
- /* @__PURE__ */ A(d, { children: Z.documentTypeLabel }),
165
- /* @__PURE__ */ j(f, {
166
- className: "ttw:flex ttw:flex-row ttw:gap-6",
167
- disabled: P === "edit",
168
- value: F.type,
169
- onValueChange: (e) => G({ type: e }),
170
- children: [/* @__PURE__ */ j("div", {
171
- className: "ttw:flex ttw:items-center ttw:gap-2",
172
- children: [/* @__PURE__ */ A(p, {
173
- value: "invoice",
174
- id: `${Q}-invoice`
175
- }), /* @__PURE__ */ A(d, {
176
- htmlFor: `${Q}-invoice`,
177
- children: Z.typeInvoice
178
- })]
179
- }), /* @__PURE__ */ j("div", {
180
- className: "ttw:flex ttw:items-center ttw:gap-2",
181
- children: [/* @__PURE__ */ A(p, {
182
- value: "quote",
183
- id: `${Q}-quote`
184
- }), /* @__PURE__ */ A(d, {
185
- htmlFor: `${Q}-quote`,
186
- children: Z.typeQuote
187
- })]
188
- })]
189
- }),
190
- /* @__PURE__ */ A(L, { message: I?.type })
191
- ]
192
- }),
193
- /* @__PURE__ */ j("div", {
194
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
195
- children: [
196
- /* @__PURE__ */ A(d, { children: Z.customerLabel }),
197
- U,
198
- /* @__PURE__ */ A("p", {
199
- className: "ttw:text-xs ttw:text-muted-foreground",
200
- children: Z.customerHint
201
- }),
202
- /* @__PURE__ */ A(L, { message: I?.customerId })
203
- ]
204
- }),
205
- /* @__PURE__ */ j("div", {
206
- className: ge,
207
- children: [
208
- /* @__PURE__ */ j("div", {
209
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
210
- children: [
211
- /* @__PURE__ */ A(d, {
212
- htmlFor: `${Q}-currency`,
213
- children: Z.currencyLabel
214
- }),
215
- /* @__PURE__ */ j(m, {
216
- value: F.currency,
217
- onValueChange: (e) => G({ currency: e }),
218
- children: [/* @__PURE__ */ A(_, {
219
- id: `${Q}-currency`,
220
- children: /* @__PURE__ */ A(v, {})
221
- }), /* @__PURE__ */ A(h, { children: R.map((e) => /* @__PURE__ */ A(g, {
222
- value: e.value,
223
- children: e.label
224
- }, e.value)) })]
225
- }),
226
- /* @__PURE__ */ A(L, { message: I?.currency })
227
- ]
228
- }),
229
- $ && /* @__PURE__ */ j("div", {
230
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
231
- children: [
232
- /* @__PURE__ */ A(d, {
233
- htmlFor: `${Q}-issue-date`,
234
- children: Z.issueDateLabel
235
- }),
236
- /* @__PURE__ */ A(s, {
237
- id: `${Q}-issue-date`,
238
- type: "date",
239
- value: F.issueDate,
240
- onChange: (e) => G({ issueDate: e.target.value })
241
- }),
242
- /* @__PURE__ */ A(L, { message: I?.issueDate })
243
- ]
244
- }),
245
- X && /* @__PURE__ */ j("div", {
246
- className: "ttw:flex ttw:flex-col ttw:gap-1.5",
247
- children: [
248
- /* @__PURE__ */ A(d, {
249
- htmlFor: `${Q}-due-date`,
250
- children: Z.dueDateLabel
251
- }),
252
- /* @__PURE__ */ A(s, {
253
- id: `${Q}-due-date`,
254
- type: "date",
255
- value: F.dueDate,
256
- onChange: (e) => G({ dueDate: e.target.value })
257
- }),
258
- /* @__PURE__ */ A(L, { message: I?.dueDate })
259
- ]
260
- })
261
- ]
262
- }),
263
- se,
264
- ce,
265
- /* @__PURE__ */ j("div", {
266
- className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:rounded-xl ttw:border ttw:border-border ttw:p-6",
267
- children: [
268
- /* @__PURE__ */ j("div", {
269
- className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pb-4",
270
- children: [/* @__PURE__ */ A(E, {
271
- variant: "h4",
272
- children: Z.lineItemsHeading
273
- }), /* @__PURE__ */ A(E, {
274
- variant: "body2",
275
- color: "muted",
276
- className: "ttw:font-medium",
277
- children: Z.lineItemsDescription
278
- })]
279
- }),
280
- I?.lineItemsSummary?.length ? /* @__PURE__ */ A(e, {
281
- variant: "destructive",
282
- className: "ttw:mb-2",
283
- children: /* @__PURE__ */ A(t, { children: /* @__PURE__ */ A("ul", { children: I.lineItemsSummary.map((e) => /* @__PURE__ */ A("li", { children: e }, e)) }) })
284
- }) : null,
285
- /* @__PURE__ */ j("ul", {
286
- className: "ttw:flex ttw:flex-col ttw:gap-2.5",
287
- children: [/* @__PURE__ */ j("li", {
288
- "aria-hidden": !0,
289
- className: "ttw:flex ttw:h-5 ttw:items-center ttw:gap-2.5 ttw:text-sm ttw:leading-5 ttw:font-medium",
290
- children: [
291
- /* @__PURE__ */ A("span", {
292
- className: "ttw:inline-flex ttw:min-w-30 ttw:flex-1 ttw:whitespace-nowrap",
293
- children: Z.productLabel
294
- }),
295
- /* @__PURE__ */ A("span", {
296
- className: "ttw:w-24 ttw:min-w-24",
297
- children: Z.quantityLabel
298
- }),
299
- /* @__PURE__ */ A("span", {
300
- className: "ttw:w-20.5 ttw:min-w-20.5",
301
- children: Z.unitLabel
302
- }),
303
- /* @__PURE__ */ A("span", {
304
- className: "ttw:w-full ttw:max-w-41 ttw:min-w-29",
305
- children: Z.priceLabel
306
- }),
307
- /* @__PURE__ */ A("span", {
308
- className: "ttw:w-12 ttw:min-w-12",
309
- children: Z.taxableLabel
310
- }),
311
- F.lineItems.length > 1 && /* @__PURE__ */ A("span", { className: "ttw:w-10 ttw:min-w-10" })
312
- ]
313
- }), V ? /* @__PURE__ */ A("li", {
314
- className: "ttw:flex ttw:h-9 ttw:items-center ttw:justify-center",
315
- children: /* @__PURE__ */ A(T, { className: "ttw:size-5" })
316
- }) : F.lineItems.map((e) => /* @__PURE__ */ A(te, {
317
- formId: Q,
318
- lineItem: e,
319
- errors: I?.lineItems?.[e.id],
320
- controls: z?.[e.id],
321
- focusOnMount: e.id === B,
322
- canRemove: F.lineItems.length > 1,
323
- unitOptions: ne,
324
- currencySymbol: re,
325
- labels: Z,
326
- renderProductSelector: W,
327
- onChange: (t) => K(e.id, t),
328
- onCommit: (t) => q(e.id, t),
329
- onQuantityStep: (t) => J(e.id, t),
330
- onManageUnits: ie,
331
- onRemove: () => oe(e.id)
332
- }, e.id))]
333
- }),
334
- /* @__PURE__ */ j(n, {
335
- type: "button",
336
- variant: "ghost",
337
- className: "ttw:w-fit ttw:text-primary ttw:hover:text-primary",
338
- onClick: ae,
339
- children: [/* @__PURE__ */ A(N, { className: "ttw:size-5 ttw:text-primary" }), Z.addLineItemButton]
340
- }),
341
- /* @__PURE__ */ A(i, { children: /* @__PURE__ */ j(a, {
342
- className: "ttw:flex-row ttw:justify-end",
343
- children: [/* @__PURE__ */ A(o, {
344
- htmlFor: `${Q}-tax-rate`,
345
- children: Z.taxRateLabel
346
- }), /* @__PURE__ */ j(c, {
347
- className: "ttw:w-40 ttw:has-[>[data-align=inline-end]]:[&>input]:pr-0",
348
- children: [/* @__PURE__ */ A(u, {
349
- id: `${Q}-tax-rate`,
350
- className: "ttw:text-right",
351
- placeholder: Z.taxRatePlaceholder,
352
- type: "text",
353
- inputMode: "decimal",
354
- value: F.taxRate,
355
- onChange: (e) => G({ taxRate: e.target.value }),
356
- onBlur: Y
357
- }), /* @__PURE__ */ A(l, {
358
- align: "inline-end",
359
- children: Z.taxRateSuffix
360
- })]
361
- })]
362
- }) })
363
- ]
364
- }),
365
- le,
366
- /* @__PURE__ */ A(k, {
367
- idPrefix: Q,
368
- openingNote: F.openingNote,
369
- closingNote: F.closingNote,
370
- openingNoteError: I?.openingNote,
371
- closingNoteError: I?.closingNote,
372
- disabled: H,
373
- onOpeningNoteChange: (e) => G({ openingNote: e }),
374
- onClosingNoteChange: (e) => G({ closingNote: e }),
375
- labels: Z
376
- }),
377
- ue
378
- ]
379
- })
380
- }),
381
- /* @__PURE__ */ A(S, { children: /* @__PURE__ */ j("div", {
382
- className: "ttw:flex ttw:justify-end ttw:gap-2",
383
- children: [/* @__PURE__ */ A(n, {
384
- type: "button",
385
- variant: "ghost",
386
- disabled: de,
387
- onClick: me,
388
- children: Z.cancelButton
389
- }), /* @__PURE__ */ A(n, {
390
- type: "submit",
391
- form: Q,
392
- loading: H,
393
- disabled: fe,
394
- children: P === "edit" ? Z.updateButton : Z.createButton
395
- })]
396
- }) })
397
- ]
398
- })
399
- });
400
- }
401
71
  //#endregion
402
- export { R as ReceivableFormSheet, R as default };
72
+ export { u as ReceivableNotesSection };