@tesouro/embedded-components-react 0.11.122 → 0.11.124
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 -10
- package/dist/index.d.ts +33 -6
- package/dist/index.js +15 -14
- package/dist/lib/ReceivablesWidget.d.ts +29 -6
- package/dist/lib/ReceivablesWidget.js +3 -1
- package/dist/lib/WidgetSuite.d.ts +31 -4
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/feature/dist/lib/BalanceHistoryWidget/labels.js +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/index.js +2 -2
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index4.js → lib/BalanceHistoryCard/BalanceHistoryCard.js} +9 -9
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index2.js → lib/BalanceHistoryCard/BalanceHistoryChart.js} +1 -1
- package/dist/libs/tesouro-embedded-components-react/balance-history-widget/ui/dist/{index3.js → lib/BalanceHistoryCard/labels.js} +1 -1
- 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/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuiteProvider.js +30 -39
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/AccountsSection.js +2 -5
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js +18 -31
- package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js +31 -34
- package/package.json +1 -1
- package/dist/libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index51.js +0 -27
|
@@ -1,122 +1,58 @@
|
|
|
1
|
-
import { Button as e,
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Button as e, Tabs as t, TabsContent as n, TabsList as r, TabsTrigger as i, Tooltip as a, TooltipContent as o, TooltipProvider as s, TooltipTrigger as c } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { INVOICING_TABS_LABELS_EN as l } from "./index6.js";
|
|
3
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
4
|
+
import { CogIcon as f } from "lucide-react";
|
|
4
5
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index7.js
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
function p({ headerStart: p, tabs: m, selectedTabId: h, onTabChange: g, onSettingsClick: _, actionContainerRef: v, labels: y }) {
|
|
7
|
+
let b = {
|
|
8
|
+
...l,
|
|
9
|
+
...y
|
|
10
|
+
};
|
|
11
|
+
return /* @__PURE__ */ d("div", {
|
|
12
|
+
className: "ttw:flex ttw:flex-col ttw:gap-4",
|
|
13
|
+
children: [p && /* @__PURE__ */ u("div", {
|
|
14
|
+
className: "ttw:flex ttw:flex-col ttw:gap-2",
|
|
15
|
+
children: p
|
|
16
|
+
}), /* @__PURE__ */ d(t, {
|
|
17
|
+
value: h,
|
|
18
|
+
onValueChange: g,
|
|
19
|
+
className: "ttw:flex ttw:w-full ttw:flex-col ttw:gap-4",
|
|
20
|
+
children: [/* @__PURE__ */ d("div", {
|
|
21
|
+
className: "ttw:flex ttw:items-center ttw:justify-between ttw:gap-4",
|
|
22
|
+
children: [/* @__PURE__ */ u(r, {
|
|
23
|
+
variant: "underline",
|
|
24
|
+
children: m.map((e) => /* @__PURE__ */ u(i, {
|
|
25
|
+
value: e.id,
|
|
26
|
+
children: e.label
|
|
27
|
+
}, e.id))
|
|
15
28
|
}), /* @__PURE__ */ d("div", {
|
|
16
|
-
className: "ttw:flex ttw:
|
|
17
|
-
children: [/* @__PURE__ */ u(
|
|
18
|
-
|
|
19
|
-
children:
|
|
29
|
+
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
30
|
+
children: [_ && /* @__PURE__ */ u(s, { children: /* @__PURE__ */ d(a, { children: [/* @__PURE__ */ u(c, {
|
|
31
|
+
asChild: !0,
|
|
32
|
+
children: /* @__PURE__ */ u(e, {
|
|
33
|
+
type: "button",
|
|
34
|
+
variant: "ghost",
|
|
35
|
+
size: "icon",
|
|
36
|
+
"aria-label": b.settingsButton,
|
|
37
|
+
onClick: _,
|
|
38
|
+
children: /* @__PURE__ */ u(f, {
|
|
39
|
+
className: "ttw:size-4",
|
|
40
|
+
"aria-hidden": !0
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
}), /* @__PURE__ */ u(o, {
|
|
44
|
+
sideOffset: 4,
|
|
45
|
+
children: b.settingsButton
|
|
46
|
+
})] }) }), /* @__PURE__ */ u("div", {
|
|
47
|
+
ref: v,
|
|
48
|
+
className: "ttw:contents"
|
|
20
49
|
})]
|
|
21
50
|
})]
|
|
22
|
-
})
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
29
|
-
children: [/* @__PURE__ */ u(c, {
|
|
30
|
-
variant: "body2",
|
|
31
|
-
color: "muted",
|
|
32
|
-
className: "ttw:w-16 ttw:shrink-0",
|
|
33
|
-
children: b.toLabel
|
|
34
|
-
}), /* @__PURE__ */ u(c, {
|
|
35
|
-
variant: "body2",
|
|
36
|
-
children: h.recipient
|
|
37
|
-
})]
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ d("div", {
|
|
40
|
-
className: "ttw:flex ttw:items-center ttw:gap-4",
|
|
41
|
-
children: [/* @__PURE__ */ u(o, {
|
|
42
|
-
htmlFor: x,
|
|
43
|
-
className: "ttw:w-16 ttw:shrink-0 ttw:font-normal ttw:text-muted-foreground",
|
|
44
|
-
children: b.subjectLabel
|
|
45
|
-
}), /* @__PURE__ */ u(a, {
|
|
46
|
-
id: x,
|
|
47
|
-
className: "ttw:flex-1",
|
|
48
|
-
value: h.subject,
|
|
49
|
-
onChange: (e) => g(e.target.value),
|
|
50
|
-
disabled: h.inProgress
|
|
51
|
-
})]
|
|
52
|
-
}),
|
|
53
|
-
/* @__PURE__ */ d("div", {
|
|
54
|
-
className: "ttw:flex ttw:items-start ttw:gap-4",
|
|
55
|
-
children: [/* @__PURE__ */ u(o, {
|
|
56
|
-
htmlFor: S,
|
|
57
|
-
className: "ttw:w-16 ttw:shrink-0 ttw:pt-2 ttw:font-normal ttw:text-muted-foreground",
|
|
58
|
-
children: b.messageLabel
|
|
59
|
-
}), /* @__PURE__ */ u(s, {
|
|
60
|
-
id: S,
|
|
61
|
-
className: "ttw:flex-1",
|
|
62
|
-
value: h.message,
|
|
63
|
-
onChange: (e) => _(e.target.value),
|
|
64
|
-
placeholder: b.messagePlaceholder,
|
|
65
|
-
disabled: h.inProgress
|
|
66
|
-
})]
|
|
67
|
-
}),
|
|
68
|
-
h.attachments.length > 0 && /* @__PURE__ */ d("div", {
|
|
69
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5 ttw:pl-20",
|
|
70
|
-
children: [/* @__PURE__ */ d("div", {
|
|
71
|
-
className: "ttw:flex ttw:flex-col",
|
|
72
|
-
children: [/* @__PURE__ */ u(c, {
|
|
73
|
-
variant: "body2",
|
|
74
|
-
color: "muted",
|
|
75
|
-
children: b.attachmentsLabel
|
|
76
|
-
}), /* @__PURE__ */ u(c, {
|
|
77
|
-
variant: "caption",
|
|
78
|
-
color: "muted",
|
|
79
|
-
children: b.attachmentsCaption
|
|
80
|
-
})]
|
|
81
|
-
}), /* @__PURE__ */ u("ul", {
|
|
82
|
-
className: "ttw:flex ttw:flex-col ttw:gap-2.5",
|
|
83
|
-
children: h.attachments.map((e) => /* @__PURE__ */ d("li", {
|
|
84
|
-
className: "ttw:rounded-lg ttw:bg-muted ttw:px-2 ttw:py-1 ttw:text-sm ttw:font-medium",
|
|
85
|
-
children: [
|
|
86
|
-
e.name,
|
|
87
|
-
" ",
|
|
88
|
-
/* @__PURE__ */ d("span", {
|
|
89
|
-
className: "ttw:text-muted-foreground",
|
|
90
|
-
children: [
|
|
91
|
-
"(",
|
|
92
|
-
e.sizeLabel,
|
|
93
|
-
")"
|
|
94
|
-
]
|
|
95
|
-
})
|
|
96
|
-
]
|
|
97
|
-
}, e.id))
|
|
98
|
-
})]
|
|
99
|
-
})
|
|
100
|
-
]
|
|
101
|
-
}),
|
|
102
|
-
/* @__PURE__ */ d(n, {
|
|
103
|
-
className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
|
|
104
|
-
children: [/* @__PURE__ */ u(e, {
|
|
105
|
-
type: "button",
|
|
106
|
-
variant: "outline",
|
|
107
|
-
className: "ttw:flex-1 ttw:border-border",
|
|
108
|
-
disabled: h.inProgress,
|
|
109
|
-
onClick: v,
|
|
110
|
-
children: h.dismissLabel
|
|
111
|
-
}), /* @__PURE__ */ u(e, {
|
|
112
|
-
type: "button",
|
|
113
|
-
className: "ttw:flex-1",
|
|
114
|
-
disabled: h.sendDisabled,
|
|
115
|
-
loading: h.inProgress,
|
|
116
|
-
onClick: y,
|
|
117
|
-
children: b.sendButton
|
|
118
|
-
})]
|
|
119
|
-
})
|
|
120
|
-
] });
|
|
51
|
+
}), m.map((e) => /* @__PURE__ */ u(n, {
|
|
52
|
+
value: e.id,
|
|
53
|
+
children: e.content
|
|
54
|
+
}, e.id))]
|
|
55
|
+
})]
|
|
56
|
+
});
|
|
121
57
|
}
|
|
122
|
-
export {
|
|
58
|
+
export { p as InvoicingTabs, p as default };
|
|
@@ -1,101 +1,11 @@
|
|
|
1
|
-
import { Button as e
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Button as e } from "../../../../../packages/shared-ui-shadcn/dist/index.js";
|
|
2
|
+
import { createPortal as t } from "react-dom";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index8.js
|
|
5
|
-
function
|
|
6
|
-
return /* @__PURE__ */
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
className: "ttw:flex ttw:flex-row ttw:items-center ttw:gap-4",
|
|
11
|
-
children: [/* @__PURE__ */ c("span", {
|
|
12
|
-
className: "ttw:flex ttw:size-10 ttw:items-center ttw:justify-center ttw:rounded-full ttw:border ttw:border-emerald-200 ttw:bg-emerald-50",
|
|
13
|
-
children: /* @__PURE__ */ c(u, { className: "ttw:size-6 ttw:text-green-700" })
|
|
14
|
-
}), d.title]
|
|
15
|
-
})
|
|
16
|
-
}),
|
|
17
|
-
/* @__PURE__ */ l("div", {
|
|
18
|
-
className: "ttw:flex ttw:flex-col ttw:gap-4 ttw:p-6",
|
|
19
|
-
children: [/* @__PURE__ */ l("div", {
|
|
20
|
-
className: "ttw:flex ttw:items-start ttw:justify-between ttw:gap-1.5",
|
|
21
|
-
children: [/* @__PURE__ */ l("div", {
|
|
22
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-col ttw:gap-1",
|
|
23
|
-
children: [/* @__PURE__ */ c(o, {
|
|
24
|
-
variant: "h4",
|
|
25
|
-
children: _.productsQuestion
|
|
26
|
-
}), /* @__PURE__ */ c(o, {
|
|
27
|
-
variant: "caption",
|
|
28
|
-
color: "muted",
|
|
29
|
-
children: _.productsCaption
|
|
30
|
-
})]
|
|
31
|
-
}), /* @__PURE__ */ c(e, {
|
|
32
|
-
type: "button",
|
|
33
|
-
variant: "ghost",
|
|
34
|
-
className: "ttw:shrink-0 ttw:text-primary ttw:hover:text-primary",
|
|
35
|
-
disabled: d.inProgress,
|
|
36
|
-
onClick: p,
|
|
37
|
-
children: d.toggleAllLabel
|
|
38
|
-
})]
|
|
39
|
-
}), /* @__PURE__ */ l("ul", {
|
|
40
|
-
className: "ttw:flex ttw:flex-col ttw:gap-3",
|
|
41
|
-
children: [
|
|
42
|
-
/* @__PURE__ */ l("li", {
|
|
43
|
-
className: "ttw:flex ttw:items-center ttw:gap-2",
|
|
44
|
-
children: [/* @__PURE__ */ c(t, {
|
|
45
|
-
checked: d.allSelected,
|
|
46
|
-
onCheckedChange: (e) => m(e === !0),
|
|
47
|
-
disabled: d.inProgress || d.items.length === 0,
|
|
48
|
-
"aria-label": _.productsAllLabel
|
|
49
|
-
}), /* @__PURE__ */ c(o, {
|
|
50
|
-
variant: "body2",
|
|
51
|
-
className: "ttw:font-semibold",
|
|
52
|
-
children: _.productsAllLabel
|
|
53
|
-
})]
|
|
54
|
-
}),
|
|
55
|
-
/* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(a, {}) }),
|
|
56
|
-
d.items.map((e) => /* @__PURE__ */ l("li", {
|
|
57
|
-
className: "ttw:flex ttw:items-start ttw:gap-2",
|
|
58
|
-
children: [/* @__PURE__ */ c(t, {
|
|
59
|
-
checked: e.selected,
|
|
60
|
-
onCheckedChange: () => f(e.key),
|
|
61
|
-
disabled: d.inProgress,
|
|
62
|
-
"aria-label": e.name
|
|
63
|
-
}), /* @__PURE__ */ l("div", {
|
|
64
|
-
className: "ttw:flex ttw:min-w-0 ttw:flex-1 ttw:flex-col ttw:gap-1",
|
|
65
|
-
children: [/* @__PURE__ */ c(o, {
|
|
66
|
-
variant: "caption",
|
|
67
|
-
className: "ttw:truncate",
|
|
68
|
-
title: e.name,
|
|
69
|
-
children: e.name
|
|
70
|
-
}), /* @__PURE__ */ c(o, {
|
|
71
|
-
variant: "caption",
|
|
72
|
-
color: "muted",
|
|
73
|
-
className: "ttw:truncate",
|
|
74
|
-
children: e.priceLabel
|
|
75
|
-
})]
|
|
76
|
-
})]
|
|
77
|
-
}, e.key))
|
|
78
|
-
]
|
|
79
|
-
})]
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ l(n, {
|
|
82
|
-
className: "ttw:flex ttw:flex-row ttw:gap-4 ttw:border-t ttw:border-border ttw:p-6",
|
|
83
|
-
children: [/* @__PURE__ */ c(e, {
|
|
84
|
-
type: "button",
|
|
85
|
-
variant: "outline",
|
|
86
|
-
className: "ttw:flex-1 ttw:border-border",
|
|
87
|
-
disabled: d.inProgress,
|
|
88
|
-
onClick: h,
|
|
89
|
-
children: _.skipButton
|
|
90
|
-
}), /* @__PURE__ */ c(e, {
|
|
91
|
-
type: "button",
|
|
92
|
-
className: "ttw:flex-1",
|
|
93
|
-
disabled: d.saveDisabled,
|
|
94
|
-
loading: d.inProgress,
|
|
95
|
-
onClick: g,
|
|
96
|
-
children: _.saveItemsButton
|
|
97
|
-
})]
|
|
98
|
-
})
|
|
99
|
-
] });
|
|
5
|
+
function r({ container: r, label: i, onClick: a }) {
|
|
6
|
+
return r ? t(/* @__PURE__ */ n(e, {
|
|
7
|
+
onClick: a,
|
|
8
|
+
children: i
|
|
9
|
+
}), r) : null;
|
|
100
10
|
}
|
|
101
|
-
export {
|
|
11
|
+
export { r as TabRowAction, r as default };
|
|
@@ -1,40 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { ReceivableActionsModalProductsStep as i } from "./index8.js";
|
|
5
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
-
// ../../libs/tesouro-embedded-components-react/invoicing-widget/ui/dist/index9.js
|
|
7
|
-
function s({ idPrefix: s, open: c, view: l, onSkip: u, onSubjectChange: d, onMessageChange: f, onSend: p, onToggleItem: m, onToggleAll: h, onAllSelectedChange: g, onSaveItems: _, labels: v }) {
|
|
8
|
-
let y = {
|
|
9
|
-
...n,
|
|
10
|
-
...v
|
|
11
|
-
};
|
|
12
|
-
return /* @__PURE__ */ a(e, {
|
|
13
|
-
open: c && !!l,
|
|
14
|
-
onOpenChange: (e) => {
|
|
15
|
-
e || u();
|
|
16
|
-
},
|
|
17
|
-
children: /* @__PURE__ */ o(t, {
|
|
18
|
-
className: "ttw:gap-0 ttw:p-0 ttw:max-w-178 ttw:sm:max-w-178",
|
|
19
|
-
labels: { close: y.close },
|
|
20
|
-
children: [l?.step === "issue" && /* @__PURE__ */ a(r, {
|
|
21
|
-
idPrefix: s,
|
|
22
|
-
view: l,
|
|
23
|
-
onSubjectChange: d,
|
|
24
|
-
onMessageChange: f,
|
|
25
|
-
onSkip: u,
|
|
26
|
-
onSend: p,
|
|
27
|
-
labels: y
|
|
28
|
-
}), l?.step === "products" && /* @__PURE__ */ a(i, {
|
|
29
|
-
view: l,
|
|
30
|
-
onToggleItem: m,
|
|
31
|
-
onToggleAll: h,
|
|
32
|
-
onAllSelectedChange: g,
|
|
33
|
-
onSkip: u,
|
|
34
|
-
onSave: _,
|
|
35
|
-
labels: y
|
|
36
|
-
})]
|
|
37
|
-
})
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
export { s as ReceivableActionsModal };
|
|
1
|
+
import "./index6.js";
|
|
2
|
+
import "./index7.js";
|
|
3
|
+
import "./index8.js";
|
package/dist/libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// ../../libs/tesouro-embedded-components-react/shared/feature/dist/lib/analytics/build-info.js
|
|
2
|
-
var e = "@tesouro/embedded-components-react", t = "0.11.
|
|
2
|
+
var e = "@tesouro/embedded-components-react", t = "0.11.124", n = "0f0378f073f4e5f1c20d686c784c82a8b24f1240", r = Object.freeze({
|
|
3
3
|
library_name: e,
|
|
4
4
|
library_version: t,
|
|
5
5
|
library_sha: n
|
|
@@ -2,51 +2,42 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { useControllableState as s } from "@radix-ui/react-use-controllable-state";
|
|
5
|
+
import { createContext as e, useCallback as t, useContext as n, useEffect as r, useState as i } from "react";
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
import { useControllableState as o } from "@radix-ui/react-use-controllable-state";
|
|
9
8
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/WidgetSuiteProvider.js
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
let [
|
|
13
|
-
prop:
|
|
14
|
-
defaultProp:
|
|
9
|
+
var s = e(null);
|
|
10
|
+
function c({ sections: e, availableSections: n, grantedScopes: c, labels: l, section: u, defaultSection: d, onSectionChange: f, cardArtSrc: p, children: m }) {
|
|
11
|
+
let [h, g] = o({
|
|
12
|
+
prop: u,
|
|
13
|
+
defaultProp: d ?? e[0],
|
|
15
14
|
caller: "WidgetSuite"
|
|
16
|
-
}),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}, [
|
|
20
|
-
let
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, [p, _]), w = n((t) => {
|
|
27
|
-
b(t), _(e.Accounts), p?.(e.Accounts);
|
|
28
|
-
}, [p, _]), T = n((e) => {
|
|
29
|
-
S(e), _(e), p?.(e);
|
|
30
|
-
}, [p, _]);
|
|
31
|
-
return /* @__PURE__ */ o(c.Provider, {
|
|
15
|
+
}), _ = h && n.includes(h) ? h : n.at(0), [v, y] = i(null);
|
|
16
|
+
r(() => {
|
|
17
|
+
y((e) => e === _ ? e : null);
|
|
18
|
+
}, [_]);
|
|
19
|
+
let b = t((e) => {
|
|
20
|
+
g(e), f?.(e);
|
|
21
|
+
}, [f, g]), x = t((e) => {
|
|
22
|
+
y(e), g(e), f?.(e);
|
|
23
|
+
}, [f, g]);
|
|
24
|
+
return /* @__PURE__ */ a(s.Provider, {
|
|
32
25
|
value: {
|
|
33
|
-
availableSections:
|
|
34
|
-
activeSection:
|
|
35
|
-
grantedScopes:
|
|
36
|
-
labels:
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
openFlow: T,
|
|
42
|
-
cardArtSrc: m
|
|
26
|
+
availableSections: n,
|
|
27
|
+
activeSection: _,
|
|
28
|
+
grantedScopes: c,
|
|
29
|
+
labels: l,
|
|
30
|
+
navigate: b,
|
|
31
|
+
arrivingFlow: v,
|
|
32
|
+
openFlow: x,
|
|
33
|
+
cardArtSrc: p
|
|
43
34
|
},
|
|
44
|
-
children:
|
|
35
|
+
children: m
|
|
45
36
|
});
|
|
46
37
|
}
|
|
47
|
-
function
|
|
48
|
-
let e =
|
|
38
|
+
function l() {
|
|
39
|
+
let e = n(s);
|
|
49
40
|
if (!e) throw Error("useWidgetSuiteProvider must be called inside a section rendered by WidgetSuite.");
|
|
50
41
|
return e;
|
|
51
42
|
}
|
|
52
|
-
export {
|
|
43
|
+
export { c as WidgetSuiteProvider, l as useWidgetSuiteProvider };
|
|
@@ -10,11 +10,8 @@ import "../../../../../../bank-accounts-widget/feature/dist/index.js";
|
|
|
10
10
|
import { jsx as r } from "react/jsx-runtime";
|
|
11
11
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/AccountsSection.js
|
|
12
12
|
function i() {
|
|
13
|
-
let {
|
|
14
|
-
return /* @__PURE__ */ r(n, {
|
|
15
|
-
defaultSelectedAccountId: t,
|
|
16
|
-
...i.sections.accounts
|
|
17
|
-
});
|
|
13
|
+
let { labels: t } = e();
|
|
14
|
+
return /* @__PURE__ */ r(n, { ...t.sections.accounts });
|
|
18
15
|
}
|
|
19
16
|
var a = {
|
|
20
17
|
anyOfScopes: [t.BankAccountReadOrg, t.ExternalBankAccountReadOrg],
|
|
@@ -2,44 +2,31 @@
|
|
|
2
2
|
"use client";
|
|
3
3
|
"use client";
|
|
4
4
|
"use client";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { Scope as i } from "../../../../../../shared/data-access/dist/lib/scopes.js";
|
|
10
|
-
import "../../../../../../shared/data-access/dist/index.js";
|
|
11
|
-
import { DashboardQuickActions as a } from "./DashboardQuickActions.js";
|
|
12
|
-
import { BalanceHistoryWidget as o } from "../../../../../../balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js";
|
|
5
|
+
import { WidgetSuiteSectionId as e } from "./sectionIds.js";
|
|
6
|
+
import { useWidgetSuiteProvider as t } from "../WidgetSuiteProvider.js";
|
|
7
|
+
import { DashboardQuickActions as n } from "./DashboardQuickActions.js";
|
|
8
|
+
import { BalanceHistoryWidget as r } from "../../../../../../balance-history-widget/feature/dist/lib/BalanceHistoryWidget/BalanceHistoryWidgetFeature.js";
|
|
13
9
|
import "../../../../../../balance-history-widget/feature/dist/index.js";
|
|
14
|
-
import {
|
|
15
|
-
import "../../../../../../balances-widget/feature/dist/index.js";
|
|
16
|
-
import { InsightsWidget as c } from "../../../../../../insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
10
|
+
import { InsightsWidget as i } from "../../../../../../insights-widget/feature/dist/lib/InsightsWidget/InsightsWidgetFeature.js";
|
|
17
11
|
import "../../../../../../insights-widget/feature/dist/index.js";
|
|
18
|
-
import { jsx as
|
|
12
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
19
13
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/lib/WidgetSuite/sections/DashboardSection.js
|
|
20
|
-
function
|
|
21
|
-
let {
|
|
22
|
-
return /* @__PURE__ */
|
|
14
|
+
function s() {
|
|
15
|
+
let { availableSections: s, labels: c, navigate: l } = t(), u = s.includes(e.Transfers) ? () => l(e.Transfers) : void 0;
|
|
16
|
+
return /* @__PURE__ */ o("div", {
|
|
23
17
|
className: "ttw:flex ttw:flex-col ttw:gap-6",
|
|
24
18
|
children: [
|
|
25
|
-
/* @__PURE__ */
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
...
|
|
28
|
-
onTransferFromExternalClick:
|
|
19
|
+
/* @__PURE__ */ a(n, {}),
|
|
20
|
+
/* @__PURE__ */ a(r, {
|
|
21
|
+
...c.sections.dashboard.balanceHistory,
|
|
22
|
+
onTransferFromExternalClick: u
|
|
29
23
|
}),
|
|
30
|
-
/* @__PURE__ */
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
...p.sections.dashboard.balances,
|
|
34
|
-
onViewAllAccountsClick: y,
|
|
35
|
-
onBalanceRowClick: _ ? h : void 0
|
|
36
|
-
}), /* @__PURE__ */ l(c, {
|
|
37
|
-
...p.sections.dashboard.insights,
|
|
38
|
-
onLinkExternalAccountClick: b
|
|
39
|
-
})]
|
|
24
|
+
/* @__PURE__ */ a(i, {
|
|
25
|
+
...c.sections.dashboard.insights,
|
|
26
|
+
onLinkExternalAccountClick: u
|
|
40
27
|
})
|
|
41
28
|
]
|
|
42
29
|
});
|
|
43
30
|
}
|
|
44
|
-
var
|
|
45
|
-
export {
|
|
31
|
+
var c = { Content: s };
|
|
32
|
+
export { s as DashboardSection, c as dashboardSection };
|
package/dist/libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js
CHANGED
|
@@ -11,59 +11,56 @@ import { bankAccountsScenarios as l } from "../../../../bank-accounts-widget/fea
|
|
|
11
11
|
import "../../../../bank-accounts-widget/feature/dist/scenarios.js";
|
|
12
12
|
import { acceptDisclosuresScenarios as u } from "../../../../accept-disclosures-widget/feature/dist/mocks/acceptDisclosures.js";
|
|
13
13
|
import "../../../../accept-disclosures-widget/feature/dist/scenarios.js";
|
|
14
|
-
import {
|
|
15
|
-
import "../../../../
|
|
16
|
-
import { creditCardsScenarios as f } from "../../../../cards-widget/feature/dist/mocks/creditCards.js";
|
|
17
|
-
import { debitCardsScenarios as p } from "../../../../cards-widget/feature/dist/mocks/debitCards.js";
|
|
14
|
+
import { creditCardsScenarios as d } from "../../../../cards-widget/feature/dist/mocks/creditCards.js";
|
|
15
|
+
import { debitCardsScenarios as f } from "../../../../cards-widget/feature/dist/mocks/debitCards.js";
|
|
18
16
|
import "../../../../cards-widget/feature/dist/scenarios.js";
|
|
19
|
-
import { insightsScenarios as
|
|
17
|
+
import { insightsScenarios as p } from "../../../../insights-widget/feature/dist/mocks/insights.js";
|
|
20
18
|
import "../../../../insights-widget/feature/dist/scenarios.js";
|
|
21
|
-
import { linkedAccountsScenarios as
|
|
19
|
+
import { linkedAccountsScenarios as m } from "../../../../linked-accounts-widget/feature/dist/mocks/linkedAccounts.js";
|
|
22
20
|
import "../../../../linked-accounts-widget/feature/dist/scenarios.js";
|
|
23
|
-
import { offerScenarios as
|
|
21
|
+
import { offerScenarios as h } from "../../../../offer-widget/feature/dist/mocks/offer.js";
|
|
24
22
|
import "../../../../offer-widget/feature/dist/scenarios.js";
|
|
25
|
-
import { settingsScenarios as
|
|
23
|
+
import { settingsScenarios as g } from "../../../../settings-widget/feature/dist/mocks/settings.js";
|
|
26
24
|
import "../../../../settings-widget/feature/dist/scenarios.js";
|
|
27
|
-
import { transfersScenarios as
|
|
25
|
+
import { transfersScenarios as _ } from "../../../../transfers-widget/feature/dist/mocks/transfers.js";
|
|
28
26
|
import "../../../../transfers-widget/feature/dist/scenarios.js";
|
|
29
|
-
import { WIDGET_SUITE_LABELS as
|
|
27
|
+
import { WIDGET_SUITE_LABELS as v } from "./labels.js";
|
|
30
28
|
// ../../libs/tesouro-embedded-components-react/widget-suite/feature/dist/mocks/widgetSuite.js
|
|
31
|
-
var
|
|
29
|
+
var y = (e, t) => {
|
|
32
30
|
let n = e.find((e) => e.key === t);
|
|
33
31
|
if (!n) throw Error(`No scenario '${t}'`);
|
|
34
32
|
return n;
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
], S = (e, t, r) => ({
|
|
33
|
+
}, b = [
|
|
34
|
+
y(l, "populated"),
|
|
35
|
+
y(m, "populated"),
|
|
36
|
+
y(_, "populated"),
|
|
37
|
+
y(p, "populated"),
|
|
38
|
+
y(d, "populated"),
|
|
39
|
+
y(f, "populated"),
|
|
40
|
+
y(c, "populated"),
|
|
41
|
+
y(a, "populated"),
|
|
42
|
+
y(o, "team-queue"),
|
|
43
|
+
y(g, "team"),
|
|
44
|
+
y(h, "default")
|
|
45
|
+
], x = (e, t, r) => ({
|
|
49
46
|
key: e,
|
|
50
|
-
...
|
|
47
|
+
...v.scenarios[e],
|
|
51
48
|
routes: n(t),
|
|
52
49
|
props: r
|
|
53
|
-
}),
|
|
54
|
-
|
|
55
|
-
|
|
50
|
+
}), S = [
|
|
51
|
+
x("populated", b),
|
|
52
|
+
x("banking-only", b, { sections: [
|
|
56
53
|
"dashboard",
|
|
57
54
|
"accounts",
|
|
58
55
|
"cards",
|
|
59
56
|
"transfers"
|
|
60
57
|
] }),
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
x("prospect", [y(s, "default"), ...b]),
|
|
59
|
+
x("disclosures-owed", [y(u, "default"), ...b]),
|
|
63
60
|
{
|
|
64
61
|
key: "init-failed",
|
|
65
|
-
...
|
|
66
|
-
routes: () => [t((t) => t.endsWith(e), () => r(503, "Service Unavailable", "Init is unavailable.")), ...i(
|
|
62
|
+
...v.scenarios["init-failed"],
|
|
63
|
+
routes: () => [t((t) => t.endsWith(e), () => r(503, "Service Unavailable", "Init is unavailable.")), ...i(y(h, "default"))]
|
|
67
64
|
}
|
|
68
65
|
];
|
|
69
|
-
export {
|
|
66
|
+
export { S as widgetSuiteScenarios };
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
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/index51.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 };
|