@tesouro/embedded-components-react 0.9.17 → 0.9.18
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/index.css +66 -16
- package/dist/index.d.ts +21 -0
- package/dist/lib/BankAccountOnboardingWidget.d.ts +2 -0
- package/dist/lib/CounterpartsWidget.d.ts +6 -0
- package/dist/lib/CounterpartsWidgetPublic.d.ts +6 -0
- package/dist/lib/CustomersWidget.d.ts +6 -0
- package/dist/lib/LinkedAccountsWidget.d.ts +1 -0
- package/dist/lib/ProductsWidget.d.ts +8 -0
- package/dist/lib/ReceivablesWidget.d.ts +12 -0
- package/dist/lib/WidgetSuite.d.ts +3 -0
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index31.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bank-account-onboarding-widget/ui/dist/index32.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/account-details/ui/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bank-accounts-widget/ui/dist/lib/CreateAccountDialog.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index42.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index43.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bill-detail/ui/dist/index52.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index5.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/bills-list/ui/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index10.js +57 -55
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index2.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index3.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index5.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index6.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/pay-bill/ui/dist/index8.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/bill-pay-widget/ui/dist/index4.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/counterparts-widget/ui/dist/index7.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/DeleteReceiptDialog/DeleteReceiptDialog.js +18 -14
- package/dist/libs/tesouro-embedded-components-react/expense-management-widget/ui/dist/lib/TransactionDetails/DeleteReceiptDialog/labels.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index13.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index14.js +4 -2
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index15.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index43.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index44.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index50.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index57.js +29 -26
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index6.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index11.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index13.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index14.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index15.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/linked-accounts-widget/ui/dist/index9.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index2.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/products-widget/ui/dist/index7.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index2.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/chart-of-accounts/ui/dist/index5.js +26 -22
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index13.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index3.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index6.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index11.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index12.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index15.js +37 -33
- package/dist/libs/tesouro-embedded-components-react/settings-widget/team/ui/dist/index6.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index17.js +2 -1
- package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js +2 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js +16 -12
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js +5 -3
- package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js +36 -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/ui/dist/index2.js +5 -2
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index4.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index5.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js +39 -35
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/index.js +1 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetContainer/WidgetContainer.js +9 -21
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js +35 -0
- package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetTitleWithIconAndChildren/WidgetTitleWithIconAndChildren.js +9 -31
- package/dist/libs/tesouro-embedded-components-react/transfers-widget/ui/dist/lib/TransferMoneyModal/TransferMoneyModal.js +1 -0
- package/dist/packages/shared-ui-shadcn/dist/index.js +4699 -4648
- package/package.json +1 -1
|
@@ -10,29 +10,33 @@ function d({ open: d, onOpenChange: f, title: p, message: m, isDeleting: h, erro
|
|
|
10
10
|
return /* @__PURE__ */ l(e, {
|
|
11
11
|
open: d,
|
|
12
12
|
onOpenChange: f,
|
|
13
|
-
children: /* @__PURE__ */ u(n, {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
children: /* @__PURE__ */ u(n, {
|
|
14
|
+
closeDisabled: h,
|
|
15
|
+
labels: { close: b.close },
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ u(a, { children: [/* @__PURE__ */ l(o, { children: p }), /* @__PURE__ */ l(r, { children: m ?? b.message })] }),
|
|
18
|
+
g && /* @__PURE__ */ l("p", {
|
|
19
|
+
role: "alert",
|
|
20
|
+
className: "ttw:rounded-md ttw:bg-destructive/10 ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-destructive",
|
|
21
|
+
children: g
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ u(i, { children: [/* @__PURE__ */ l(t, {
|
|
24
|
+
asChild: !0,
|
|
25
|
+
children: /* @__PURE__ */ l(s, {
|
|
26
|
+
variant: "outline",
|
|
27
|
+
onClick: v,
|
|
28
|
+
disabled: h,
|
|
29
|
+
children: b.cancelButton
|
|
30
|
+
})
|
|
31
|
+
}), /* @__PURE__ */ l(s, {
|
|
32
|
+
variant: "destructive",
|
|
33
|
+
onClick: _,
|
|
25
34
|
disabled: h,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
disabled: h,
|
|
32
|
-
loading: h,
|
|
33
|
-
children: b.confirmButton
|
|
34
|
-
})] })
|
|
35
|
-
] })
|
|
35
|
+
loading: h,
|
|
36
|
+
children: b.confirmButton
|
|
37
|
+
})] })
|
|
38
|
+
]
|
|
39
|
+
})
|
|
36
40
|
});
|
|
37
41
|
}
|
|
38
42
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index13.js
CHANGED
|
@@ -74,6 +74,7 @@ function d({ canRead: d, canWrite: f, featureLabels: p }) {
|
|
|
74
74
|
membersEmptyMessage: p.groupMembersEmpty,
|
|
75
75
|
cancelButton: p.groupCancelButton,
|
|
76
76
|
saveButton: p.groupSaveButton,
|
|
77
|
+
close: p.groupCloseButton,
|
|
77
78
|
deleteButton: p.locationDeleteAction
|
|
78
79
|
},
|
|
79
80
|
countLabels: {
|
package/dist/libs/tesouro-embedded-components-react/settings-widget/team/feature/dist/index6.js
CHANGED
|
@@ -74,6 +74,7 @@ function d({ canRead: d, canWrite: f, featureLabels: p }) {
|
|
|
74
74
|
membersEmptyMessage: p.groupMembersEmpty,
|
|
75
75
|
cancelButton: p.groupCancelButton,
|
|
76
76
|
saveButton: p.groupSaveButton,
|
|
77
|
+
close: p.groupCloseButton,
|
|
77
78
|
deleteButton: p.departmentDeleteAction
|
|
78
79
|
},
|
|
79
80
|
countLabels: {
|
|
@@ -18,6 +18,7 @@ function m({ open: m, isEditMode: h, name: g, onNameChange: _, options: v, selec
|
|
|
18
18
|
onOpenChange: C,
|
|
19
19
|
children: /* @__PURE__ */ p(a, {
|
|
20
20
|
className: "ttw:gap-0",
|
|
21
|
+
labels: { close: D.close },
|
|
21
22
|
children: [/* @__PURE__ */ p(c, { children: [/* @__PURE__ */ f(l, { children: h ? D.editTitle : D.createTitle }), /* @__PURE__ */ f(o, { children: D.description })] }), /* @__PURE__ */ p("form", {
|
|
22
23
|
noValidate: !0,
|
|
23
24
|
className: "ttw:flex ttw:flex-1 ttw:flex-col",
|
|
@@ -16,39 +16,43 @@ function f({ open: f, icon: p, title: m, description: h, subjectName: g, subject
|
|
|
16
16
|
return /* @__PURE__ */ u(e, {
|
|
17
17
|
open: f,
|
|
18
18
|
onOpenChange: S,
|
|
19
|
-
children: /* @__PURE__ */ d(n, {
|
|
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
|
-
children:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
19
|
+
children: /* @__PURE__ */ d(n, {
|
|
20
|
+
closeDisabled: x,
|
|
21
|
+
labels: { close: T.actionDialogCloseButton },
|
|
22
|
+
children: [
|
|
23
|
+
p ? /* @__PURE__ */ u("div", {
|
|
24
|
+
className: "ttw:flex ttw:justify-center",
|
|
25
|
+
children: /* @__PURE__ */ u("span", {
|
|
26
|
+
className: `ttw:flex ttw:size-12 ttw:items-center ttw:justify-center ttw:rounded-full ${y === "destructive" ? "ttw:bg-destructive/10 ttw:text-destructive" : "ttw:bg-primary/10 ttw:text-primary"}`,
|
|
27
|
+
children: p
|
|
28
|
+
})
|
|
29
|
+
}) : null,
|
|
30
|
+
/* @__PURE__ */ d(a, {
|
|
31
|
+
className: p ? "ttw:text-center" : void 0,
|
|
32
|
+
children: [/* @__PURE__ */ u(o, { children: m }), /* @__PURE__ */ u(r, { children: h })]
|
|
33
|
+
}),
|
|
34
|
+
g && /* @__PURE__ */ d("div", {
|
|
35
|
+
className: "ttw:rounded-md ttw:border ttw:border-border ttw:bg-muted/50 ttw:px-3 ttw:py-2",
|
|
36
|
+
children: [/* @__PURE__ */ u("p", {
|
|
37
|
+
className: "ttw:text-sm ttw:font-medium ttw:text-foreground",
|
|
38
|
+
children: g
|
|
39
|
+
}), _ && /* @__PURE__ */ u("p", {
|
|
40
|
+
className: "ttw:truncate ttw:text-sm ttw:text-muted-foreground",
|
|
41
|
+
children: _
|
|
42
|
+
})]
|
|
43
|
+
}),
|
|
44
|
+
b && /* @__PURE__ */ u(c, { children: b }),
|
|
45
|
+
/* @__PURE__ */ d(i, { children: [/* @__PURE__ */ u(t, {
|
|
46
|
+
disabled: x,
|
|
47
|
+
children: T.actionDialogCancelButton
|
|
48
|
+
}), /* @__PURE__ */ u(s, {
|
|
49
|
+
variant: y,
|
|
50
|
+
loading: x,
|
|
51
|
+
onClick: C,
|
|
52
|
+
children: v
|
|
53
|
+
})] })
|
|
54
|
+
]
|
|
55
|
+
})
|
|
52
56
|
});
|
|
53
57
|
}
|
|
54
58
|
//#endregion
|
|
@@ -93,7 +93,8 @@ var e = {
|
|
|
93
93
|
editAccountAccessLabel: "Account access",
|
|
94
94
|
editCancelButton: "Cancel",
|
|
95
95
|
editSaveButton: "Save changes",
|
|
96
|
-
actionDialogCancelButton: "Cancel"
|
|
96
|
+
actionDialogCancelButton: "Cancel",
|
|
97
|
+
actionDialogCloseButton: "Close"
|
|
97
98
|
};
|
|
98
99
|
//#endregion
|
|
99
100
|
export { e as DEFAULT_LABELS };
|
package/dist/libs/tesouro-embedded-components-react/shared/approval-policy/ui/dist/index18.js
CHANGED
|
@@ -13,6 +13,8 @@ var f = ({ open: f, onOpenChange: p, onConfirm: m, onCancel: h, isDeleting: g, c
|
|
|
13
13
|
open: f,
|
|
14
14
|
onOpenChange: p,
|
|
15
15
|
children: /* @__PURE__ */ u(t, {
|
|
16
|
+
closeDisabled: g,
|
|
17
|
+
labels: { close: b.Close },
|
|
16
18
|
"data-testid": y?.root,
|
|
17
19
|
className: "ttw:sm:max-w-sm",
|
|
18
20
|
children: [/* @__PURE__ */ u(i, {
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index10.js
CHANGED
|
@@ -121,6 +121,7 @@ function O({ open: e, onOpenChange: c, mode: l, counterpartMode: f = "customer",
|
|
|
121
121
|
initialFocusId: I ? `${F}-legal-name` : `${F}-first-name`,
|
|
122
122
|
submitLabel: H,
|
|
123
123
|
cancelLabel: P.cancelButton,
|
|
124
|
+
labels: { close: P.close },
|
|
124
125
|
onSubmit: j,
|
|
125
126
|
onCancel: M,
|
|
126
127
|
children: /* @__PURE__ */ x("div", {
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index13.js
CHANGED
|
@@ -10,18 +10,22 @@ function u({ open: u, onOpenChange: d, title: f, message: p, isDeleting: m, onCo
|
|
|
10
10
|
return /* @__PURE__ */ c(e, {
|
|
11
11
|
open: u,
|
|
12
12
|
onOpenChange: d,
|
|
13
|
-
children: /* @__PURE__ */ l(t, {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
13
|
+
children: /* @__PURE__ */ l(t, {
|
|
14
|
+
closeDisabled: m,
|
|
15
|
+
labels: { close: v.close },
|
|
16
|
+
children: [/* @__PURE__ */ l(i, { children: [/* @__PURE__ */ c(a, { children: f }), /* @__PURE__ */ c(n, { children: p })] }), /* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(o, {
|
|
17
|
+
variant: "ghost",
|
|
18
|
+
onClick: g,
|
|
19
|
+
disabled: m,
|
|
20
|
+
children: v.cancelButton
|
|
21
|
+
}), /* @__PURE__ */ c(o, {
|
|
22
|
+
variant: "destructive",
|
|
23
|
+
onClick: h,
|
|
24
|
+
disabled: m,
|
|
25
|
+
loading: m,
|
|
26
|
+
children: v.confirmButton
|
|
27
|
+
})] })]
|
|
28
|
+
})
|
|
25
29
|
});
|
|
26
30
|
}
|
|
27
31
|
//#endregion
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index2.js
CHANGED
|
@@ -69,6 +69,7 @@ var n = {
|
|
|
69
69
|
createButtonCustomer: "Save customer",
|
|
70
70
|
createButtonVendor: "Save vendor",
|
|
71
71
|
saveButton: "Save",
|
|
72
|
+
close: "Close",
|
|
72
73
|
address: r,
|
|
73
74
|
ach: i,
|
|
74
75
|
fieldMarkers: e,
|
|
@@ -87,7 +88,8 @@ var n = {
|
|
|
87
88
|
fieldMarkers: e
|
|
88
89
|
}, s = {
|
|
89
90
|
confirmButton: "Delete",
|
|
90
|
-
cancelButton: "Cancel"
|
|
91
|
-
|
|
91
|
+
cancelButton: "Cancel",
|
|
92
|
+
close: "Close"
|
|
93
|
+
}, c = { close: "Close" };
|
|
92
94
|
//#endregion
|
|
93
|
-
export { i as ACH_FIELD_GROUP_LABELS_EN, r as ADDRESS_FIELD_GROUP_LABELS_EN, o as BANK_ACCOUNT_FORM_SHEET_LABELS_EN, s as CONFIRM_DELETE_DIALOG_LABELS_EN, a as COUNTERPART_FORM_SHEET_LABELS_EN, n as COUNTERPART_TYPE_CHOOSER_LABELS_EN };
|
|
95
|
+
export { i as ACH_FIELD_GROUP_LABELS_EN, r as ADDRESS_FIELD_GROUP_LABELS_EN, o as BANK_ACCOUNT_FORM_SHEET_LABELS_EN, s as CONFIRM_DELETE_DIALOG_LABELS_EN, a as COUNTERPART_FORM_SHEET_LABELS_EN, n as COUNTERPART_TYPE_CHOOSER_LABELS_EN, c as FORM_SHEET_LABELS_EN };
|
package/dist/libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js
CHANGED
|
@@ -1,58 +1,63 @@
|
|
|
1
1
|
import { Button as e, Sheet as t, SheetContent as n, SheetDescription as r, SheetFooter as i, SheetHeader as a, SheetTitle as o } from "../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { FORM_SHEET_LABELS_EN as s } from "./index2.js";
|
|
3
|
+
import { useId as c } from "react";
|
|
4
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
4
5
|
//#region ../../libs/tesouro-embedded-components-react/shared/counterpart-management/ui/dist/index9.js
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
6
|
+
function d({ open: d, onOpenChange: f, title: p, description: m, formError: h, inProgress: g, submitDisabled: _, initialFocusId: v, submitLabel: y, cancelLabel: b, onSubmit: x, onCancel: S, children: C, labels: w }) {
|
|
7
|
+
let T = {
|
|
8
|
+
...s,
|
|
9
|
+
...w
|
|
10
|
+
}, E = c();
|
|
11
|
+
return /* @__PURE__ */ l(t, {
|
|
12
|
+
open: d,
|
|
13
|
+
onOpenChange: f,
|
|
14
|
+
children: /* @__PURE__ */ u(n, {
|
|
11
15
|
className: "ttw:w-150 ttw:sm:max-w-150 ttw:overflow-y-auto",
|
|
16
|
+
labels: { close: T.close },
|
|
12
17
|
onOpenAutoFocus: (e) => {
|
|
13
|
-
let t =
|
|
18
|
+
let t = v ? document.getElementById(v) : null;
|
|
14
19
|
t && (e.preventDefault(), t.focus());
|
|
15
20
|
},
|
|
16
21
|
children: [
|
|
17
|
-
/* @__PURE__ */
|
|
22
|
+
/* @__PURE__ */ u(a, {
|
|
18
23
|
className: "ttw:border-b ttw:border-border",
|
|
19
|
-
children: [/* @__PURE__ */
|
|
24
|
+
children: [/* @__PURE__ */ l(o, {
|
|
20
25
|
className: "ttw:text-2xl",
|
|
21
|
-
children:
|
|
22
|
-
}), /* @__PURE__ */
|
|
23
|
-
className:
|
|
24
|
-
children:
|
|
26
|
+
children: p
|
|
27
|
+
}), /* @__PURE__ */ l(r, {
|
|
28
|
+
className: m ? void 0 : "ttw:sr-only",
|
|
29
|
+
children: m ?? p
|
|
25
30
|
})]
|
|
26
31
|
}),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
id:
|
|
32
|
+
/* @__PURE__ */ l("form", {
|
|
33
|
+
id: E,
|
|
29
34
|
noValidate: !0,
|
|
30
35
|
onSubmit: (e) => {
|
|
31
|
-
e.preventDefault(), e.stopPropagation(),
|
|
36
|
+
e.preventDefault(), e.stopPropagation(), x();
|
|
32
37
|
},
|
|
33
|
-
children: /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ u("div", {
|
|
34
39
|
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:px-6 ttw:pt-8 ttw:pb-6",
|
|
35
|
-
children: [
|
|
40
|
+
children: [h && /* @__PURE__ */ l("p", {
|
|
36
41
|
role: "alert",
|
|
37
42
|
className: "ttw:rounded-md ttw:bg-destructive/10 ttw:px-3 ttw:py-2 ttw:text-sm ttw:text-destructive",
|
|
38
|
-
children:
|
|
39
|
-
}),
|
|
43
|
+
children: h
|
|
44
|
+
}), C]
|
|
40
45
|
})
|
|
41
46
|
}),
|
|
42
|
-
/* @__PURE__ */
|
|
47
|
+
/* @__PURE__ */ u(i, {
|
|
43
48
|
className: "ttw:flex ttw:flex-row ttw:justify-end ttw:gap-2",
|
|
44
|
-
children: [/* @__PURE__ */
|
|
49
|
+
children: [/* @__PURE__ */ l(e, {
|
|
45
50
|
type: "button",
|
|
46
51
|
variant: "ghost",
|
|
47
52
|
size: "lg",
|
|
48
|
-
onClick:
|
|
49
|
-
children:
|
|
50
|
-
}), /* @__PURE__ */
|
|
53
|
+
onClick: S,
|
|
54
|
+
children: b
|
|
55
|
+
}), /* @__PURE__ */ l(e, {
|
|
51
56
|
type: "submit",
|
|
52
|
-
form:
|
|
57
|
+
form: E,
|
|
53
58
|
size: "lg",
|
|
54
|
-
disabled:
|
|
55
|
-
children:
|
|
59
|
+
disabled: g || _,
|
|
60
|
+
children: y
|
|
56
61
|
})]
|
|
57
62
|
})
|
|
58
63
|
]
|
|
@@ -60,4 +65,4 @@ function u({ open: u, onOpenChange: d, title: f, description: p, formError: m, i
|
|
|
60
65
|
});
|
|
61
66
|
}
|
|
62
67
|
//#endregion
|
|
63
|
-
export {
|
|
68
|
+
export { d as FormSheet, d as default };
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.9.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.9.18", n = "5fe60eee17764a2ad85523b90e2d35c4910227b1", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index2.js
CHANGED
|
@@ -22,6 +22,7 @@ var r = {
|
|
|
22
22
|
cancelButton: "Cancel",
|
|
23
23
|
createButton: "Save {type}",
|
|
24
24
|
saveButton: "Save",
|
|
25
|
+
close: "Close",
|
|
25
26
|
fieldMarkers: e,
|
|
26
27
|
requiredFieldsLegend: t
|
|
27
28
|
};
|
|
@@ -52,7 +53,8 @@ var a = {
|
|
|
52
53
|
moreActionsLabel: "More actions",
|
|
53
54
|
saveAction: "Save unit",
|
|
54
55
|
cancelAction: "Cancel edit",
|
|
55
|
-
emptyText: "No measure units yet."
|
|
56
|
+
emptyText: "No measure units yet.",
|
|
57
|
+
close: "Close"
|
|
56
58
|
}, o = {
|
|
57
59
|
title: "Delete \"{name}\"?",
|
|
58
60
|
messageNoItems: "There are no items created with this measure unit.",
|
|
@@ -60,7 +62,8 @@ var a = {
|
|
|
60
62
|
messageWithItems: "Any products or services referencing this unit will update to use a blank unit of measure.",
|
|
61
63
|
messageWithItemsHint: "Previously issued invoices will not be impacted.",
|
|
62
64
|
confirmButton: "Delete",
|
|
63
|
-
cancelButton: "Cancel"
|
|
65
|
+
cancelButton: "Cancel",
|
|
66
|
+
close: "Close"
|
|
64
67
|
}, s = {
|
|
65
68
|
fieldLabel: "Item name",
|
|
66
69
|
placeholder: "e.g., Office supplies",
|
package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index4.js
CHANGED
|
@@ -11,6 +11,7 @@ function f({ open: f, onOpenChange: p, values: m, errors: h, unitOptions: g, pri
|
|
|
11
11
|
onOpenChange: p,
|
|
12
12
|
children: /* @__PURE__ */ d(n, {
|
|
13
13
|
className: "ttw:w-150 ttw:sm:max-w-150 ttw:gap-0",
|
|
14
|
+
labels: { close: C.close },
|
|
14
15
|
children: [
|
|
15
16
|
/* @__PURE__ */ d(a, {
|
|
16
17
|
className: "ttw:border-b ttw:border-border",
|
package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index5.js
CHANGED
|
@@ -14,6 +14,7 @@ function k({ open: k, onOpenChange: A, units: j, isLoading: M, searchValue: N, o
|
|
|
14
14
|
onOpenChange: A,
|
|
15
15
|
children: /* @__PURE__ */ S(l, {
|
|
16
16
|
className: "ttw:w-150 ttw:sm:max-w-150 ttw:gap-0 ttw:p-0",
|
|
17
|
+
labels: { close: Z.close },
|
|
17
18
|
children: [
|
|
18
19
|
/* @__PURE__ */ S(f, {
|
|
19
20
|
className: "ttw:border-b ttw:border-border",
|
package/dist/libs/tesouro-embedded-components-react/shared/product-catalog/ui/dist/index6.js
CHANGED
|
@@ -10,41 +10,45 @@ function h({ open: h, onOpenChange: g, unitName: _, affectedProducts: v, isLoadi
|
|
|
10
10
|
return /* @__PURE__ */ p(e, {
|
|
11
11
|
open: h,
|
|
12
12
|
onOpenChange: g,
|
|
13
|
-
children: /* @__PURE__ */ m(t, {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
children: T ? w.
|
|
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
|
-
|
|
13
|
+
children: /* @__PURE__ */ m(t, {
|
|
14
|
+
closeDisabled: b,
|
|
15
|
+
labels: { close: w.close },
|
|
16
|
+
children: [
|
|
17
|
+
/* @__PURE__ */ m(i, { children: [/* @__PURE__ */ p(a, { children: w.title.replace("{name}", _) }), /* @__PURE__ */ p(n, { children: T ? w.messageWithItems : w.messageNoItems })] }),
|
|
18
|
+
/* @__PURE__ */ p("p", {
|
|
19
|
+
className: "ttw:text-sm ttw:text-muted-foreground",
|
|
20
|
+
children: T ? w.messageWithItemsHint : w.messageNoItemsHint
|
|
21
|
+
}),
|
|
22
|
+
y ? /* @__PURE__ */ p("div", {
|
|
23
|
+
className: "ttw:flex ttw:justify-center ttw:py-4",
|
|
24
|
+
children: /* @__PURE__ */ p(s, {})
|
|
25
|
+
}) : T ? /* @__PURE__ */ p("div", {
|
|
26
|
+
className: "ttw:max-h-60 ttw:overflow-auto ttw:rounded-md ttw:border",
|
|
27
|
+
children: /* @__PURE__ */ p(c, { children: /* @__PURE__ */ p(l, { children: v.map((e) => /* @__PURE__ */ m(d, {
|
|
28
|
+
className: "ttw:border-border ttw:hover:bg-transparent",
|
|
29
|
+
children: [/* @__PURE__ */ p(u, {
|
|
30
|
+
className: "ttw:pl-4 ttw:whitespace-normal ttw:text-text ttw:font-medium",
|
|
31
|
+
children: e.name
|
|
32
|
+
}), /* @__PURE__ */ p(u, {
|
|
33
|
+
className: "ttw:pr-4 ttw:text-right ttw:text-text ttw:font-medium",
|
|
34
|
+
children: e.priceLabel
|
|
35
|
+
})]
|
|
36
|
+
}, e.id)) }) })
|
|
37
|
+
}) : null,
|
|
38
|
+
/* @__PURE__ */ m(r, { children: [/* @__PURE__ */ p(o, {
|
|
39
|
+
variant: "ghost",
|
|
40
|
+
onClick: S,
|
|
41
|
+
disabled: b,
|
|
42
|
+
children: w.cancelButton
|
|
43
|
+
}), /* @__PURE__ */ p(o, {
|
|
44
|
+
variant: "destructive",
|
|
45
|
+
onClick: x,
|
|
46
|
+
disabled: b || y,
|
|
47
|
+
loading: b,
|
|
48
|
+
children: w.confirmButton
|
|
49
|
+
})] })
|
|
50
|
+
]
|
|
51
|
+
})
|
|
48
52
|
});
|
|
49
53
|
}
|
|
50
54
|
//#endregion
|
|
@@ -11,6 +11,7 @@ import { registerDesignSystemEnsurer as o, registerUIRenderers as s, useDesignSy
|
|
|
11
11
|
import "./lib/UIContext/index.js";
|
|
12
12
|
import { HostIsolationScope as u } from "./lib/HostIsolationScope/HostIsolationScope.js";
|
|
13
13
|
import { Link as d } from "./lib/Link/Link.js";
|
|
14
|
+
import "./lib/WidgetFrame/WidgetFrame.js";
|
|
14
15
|
import { WidgetContainer as f } from "./lib/WidgetContainer/WidgetContainer.js";
|
|
15
16
|
import { EmptyState as p } from "./lib/EmptyState/EmptyState.js";
|
|
16
17
|
import { ERROR_STATE_ID as m, ErrorState as h } from "./lib/ErrorState/ErrorState.js";
|
|
@@ -1,25 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { jsx as t
|
|
1
|
+
import { WidgetFrame as e } from "../WidgetFrame/WidgetFrame.js";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
3
|
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetContainer/WidgetContainer.js
|
|
4
|
-
function
|
|
5
|
-
return /* @__PURE__ */
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className: "ttw:flex ttw:shrink-0 ttw:items-center ttw:leading-none",
|
|
11
|
-
children: r
|
|
12
|
-
}) : null, /* @__PURE__ */ t(e, {
|
|
13
|
-
component: "h2",
|
|
14
|
-
variant: "h6",
|
|
15
|
-
className: "ttw:font-semibold ttw:text-foreground",
|
|
16
|
-
children: i
|
|
17
|
-
})]
|
|
18
|
-
}), /* @__PURE__ */ t("div", {
|
|
19
|
-
className: "ttw:flex ttw:flex-col ttw:p-4",
|
|
20
|
-
children: a
|
|
21
|
-
})]
|
|
4
|
+
function n({ icon: n, title: r, children: i, showHeaderDivider: a = !0 }) {
|
|
5
|
+
return /* @__PURE__ */ t(e, {
|
|
6
|
+
icon: n,
|
|
7
|
+
title: r,
|
|
8
|
+
showHeaderDivider: a,
|
|
9
|
+
children: i
|
|
22
10
|
});
|
|
23
11
|
}
|
|
24
12
|
//#endregion
|
|
25
|
-
export {
|
|
13
|
+
export { n as WidgetContainer };
|
package/dist/libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Separator as e, Typography as t, cn as n } from "../../../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
3
|
+
//#region ../../libs/tesouro-embedded-components-react/shared/ui/dist/lib/WidgetFrame/WidgetFrame.js
|
|
4
|
+
function o({ title: o, icon: s, action: c, showHeaderDivider: l = !0, bodyClassName: u, className: d, children: f, ...p }) {
|
|
5
|
+
let m = o !== void 0 || c != null;
|
|
6
|
+
return /* @__PURE__ */ a("div", {
|
|
7
|
+
"data-slot": "widget-frame",
|
|
8
|
+
className: n("ttw:@container/widget ttw:flex ttw:w-full ttw:flex-col ttw:overflow-hidden ttw:rounded-lg ttw:border ttw:border-border ttw:bg-card ttw:text-card-foreground", d),
|
|
9
|
+
...p,
|
|
10
|
+
children: [m ? /* @__PURE__ */ a(r, { children: [/* @__PURE__ */ a("div", {
|
|
11
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-3 ttw:px-4 ttw:py-3",
|
|
12
|
+
children: [o === void 0 ? null : /* @__PURE__ */ a("div", {
|
|
13
|
+
className: "ttw:flex ttw:min-w-0 ttw:items-center ttw:gap-2",
|
|
14
|
+
children: [s ? /* @__PURE__ */ i("span", {
|
|
15
|
+
"aria-hidden": !0,
|
|
16
|
+
className: "ttw:flex ttw:shrink-0 ttw:items-center ttw:text-primary ttw:[&>svg]:size-5 ttw:[&>svg]:text-primary",
|
|
17
|
+
children: s
|
|
18
|
+
}) : null, /* @__PURE__ */ i(t, {
|
|
19
|
+
component: "h2",
|
|
20
|
+
variant: "h6",
|
|
21
|
+
className: "ttw:min-w-0 ttw:font-semibold ttw:text-foreground",
|
|
22
|
+
children: o
|
|
23
|
+
})]
|
|
24
|
+
}), c == null ? null : /* @__PURE__ */ i("div", {
|
|
25
|
+
className: "ttw:ml-auto ttw:flex ttw:shrink-0 ttw:items-center ttw:justify-end ttw:gap-2",
|
|
26
|
+
children: c
|
|
27
|
+
})]
|
|
28
|
+
}), l ? /* @__PURE__ */ i(e, {}) : null] }) : null, /* @__PURE__ */ i("div", {
|
|
29
|
+
className: n("ttw:flex ttw:flex-col ttw:p-4", u),
|
|
30
|
+
children: f
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//#endregion
|
|
35
|
+
export { o as WidgetFrame };
|